:root {
  --action: #075a43;
  --focus-ring: #007754;
  --tap-size: 44px;
}
html {scroll-padding-top: 0}
.hero .intro {align-items: end}
.hero .intro > p {font-size: clamp(24px,3.2vw,49px); line-height: 1.35; letter-spacing: -.035em; text-wrap: balance}
.hero .text-link, header .contact, .product-site {
  display: inline-flex; align-items: center; justify-content: center; gap: .9em;
  min-height: var(--tap-size); padding: .55em 1.2em; border-radius: 100px;
  background: var(--action); color: white; border: 1px solid transparent; text-decoration: none;
}
.hero .text-link span, header .contact span {color: inherit}
.hero .text-link:hover, header .contact:hover, .product-site:hover {background: #12483b; color: white}
header a:focus-visible, .product-site:focus-visible, footer a:focus-visible {outline: 3px solid var(--focus-ring); outline-offset: 3px}
.family-sites {display: flex; align-items: center; gap: 1em}
.family-sites > span {font-size: .78rem; color: #47645f}
.family-sites a {display: inline-flex; align-items: center; min-height: var(--tap-size); font-weight: 700; color: var(--action)}
.cinema-chapter .business-copy {background: linear-gradient(135deg,#102e30dc,#193936bd)}
.product-site {background: #e3ffef; color: #0c402e; font-weight: 700}
@media(min-width: 861px) {
  .hero {display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,.87fr); gap: 24px 5%; align-items: center; padding-block: clamp(48px,7vw,100px)}
  .hero > .eyebrow {grid-column: 1/-1}
  .hero h1 {margin: 0; font-size: clamp(76px,8.3vw,148px)}
  .hero .intro {display: grid; gap: 20px; margin: 0}
  .hero .intro > p {margin: 0}
  .hero .intro > div {max-width: none}
}
@media(max-width: 860px) {
  body > header {display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand languages" "nav contact"; height: auto; gap: 4px 8px; padding: 8px 14px}
  header .brand {grid-area: brand}
  header .language-switch {grid-area: languages}
  header .language-switch a, header nav a {min-height: var(--tap-size); min-width: var(--tap-size); display: inline-flex; align-items:center; justify-content:center}
  body > header nav {grid-area: nav; display:flex; justify-content:flex-start; gap: 14px; width: auto; padding:0}
  header .contact {grid-area: contact; justify-self:end; font-size:13px}
  footer {flex-wrap: wrap; gap: 16px}
  .family-sites {display:flex}
  #business-2 .cinema-media video {object-position: 72% center}
}
@media(prefers-reduced-motion: reduce) {html {scroll-behavior:auto}}
@media(min-width:861px){.hero .intro>div{width:100%;justify-self:stretch}.hero .intro{grid-template-columns:minmax(0,1fr)}}

/* The service selector uses stills from the films it opens. */
.business-intro nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 24px);
}
.business-intro nav a {
  --still: url("/lab/films/it.jpg");
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .5em;
  min-height: clamp(130px, 16vw, 225px);
  padding: clamp(16px, 2vw, 30px);
  border: 0;
  border-radius: 18px;
  background: linear-gradient(0deg, #082923f5, #08292316 95%), var(--still) center / cover;
  color: white;
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.35;
}
.business-intro nav a:nth-child(2) {--still: url("/lab/films/travel.jpg")}
.business-intro nav a:nth-child(3) {--still: url("/lab/films/laos-products.jpg")}
.business-intro nav a:hover {outline: 2px solid var(--action); outline-offset: 3px}
.business-intro nav a span:last-child {transition: transform 180ms ease-out}
.business-intro nav a:hover span:last-child {transform: translate(2px,-2px)}
.experiment-caption, .section-heading p, .local-first p, .locations p {text-wrap: pretty}
.ai-research .flow-stack > div {border-radius: 14px; background: #ffffffab; border-color: #accfc7}
.research-outcomes span, .flow-stack small, .office-photos figcaption {color: #40645e}
body > footer {border-top: 1px solid #c2d7d0}
body > footer .family-sites a {padding-inline: 12px; border: 1px solid #bbd5cd; border-radius: 12px}
:lang(ko) :is(h2,h3,.intro p,.business-copy p,.expertise-film-caption p) {word-break: keep-all; overflow-wrap: anywhere}
html[lang=lo] :is(.intro p,h2,h3,.business-copy p,.expertise-film-caption p) {letter-spacing: normal; line-height: 1.55}
:is(.cinema-toggle,.experiment-top button,.example-choices button,#code-replay) {min-height: 44px; min-width: 44px}
@media(max-width:760px) {
  .business-intro nav {grid-template-columns: 1fr}
  .business-intro nav a {min-height: 86px; border-radius: 14px; align-items: center; background-position: center 45%}
  .cinema-chapter .business-copy > p, .expertise-film-caption p {font-size: 14px; line-height: 1.65}
  .experiment-caption p, .locations p, .flow-stack small, .research-outcomes span {font-size: 14px; line-height: 1.65}
  .showcase-grid > *, .code-experience > *, .locations > div {min-width: 0}
  .together .locations {display: grid; grid-template-columns: 1fr 1fr; align-items: stretch}
  .together .locations > div {padding: 16px 12px}
  body > footer .family-sites {display: flex; gap: 8px}
}
@media(prefers-reduced-motion:reduce) {
  .business-intro nav a span:last-child {transition: none; transform: none}
}

.service-directory, #expertise .capabilities-details {
  width:91%; max-width:1456px; margin-inline:auto;
}
.service-directory {padding-block:clamp(36px,5vw,76px) 24px}
.service-directory h2 {font-size:clamp(30px,4vw,56px); margin:0 0 24px; line-height:1.25}
.service-grid {display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(14px,2vw,32px)}
.service-item {overflow:hidden; display:flex; flex-direction:column; border:1px solid #c5dcd5; border-radius:20px; background:#ffffffce}
.service-item > img {display:block; width:100%; height:auto; aspect-ratio:16/8; object-fit:cover}
.service-body {display:flex; flex-direction:column; flex:1; padding:clamp(18px,2vw,30px)}
.service-body h3 {font-size:clamp(22px,2.4vw,34px); line-height:1.3; margin:0}
.service-body p {font-size:16px; line-height:1.7; color:#3c5e57; margin:12px 0 20px}
.service-actions {display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin-top:auto}
.service-actions button,.player-bar button {color:#174a3c; background:#e2f4ec; border:0; border-radius:22px; padding:8px 16px; min-height:44px; cursor:pointer}
.service-actions a {display:inline-flex; align-items:center; min-height:44px; color:#075a43}
#expertise .capabilities-details {padding:16px 0 36px}
#expertise .capabilities-details summary {cursor:pointer; padding:16px 0; font-size:20px; font-weight:700; border-top:1px solid #b8d3c9}
#expertise .capabilities-details .expertise-list {display:block; padding:0; width:100%}
.service-player {width:min(92vw,960px); max-height:92dvh; padding:0; color:white; border:0; border-radius:18px; background:#102d27}
.service-player::backdrop {background:#071713cf}
.player-bar {display:flex; align-items:center; justify-content:space-between; padding:10px 16px; gap:12px}
.player-bar h3 {margin:0}
.service-player video {display:block;width:100%; max-height:75dvh; background:black}
@media(max-width:760px){
  .service-grid {grid-template-columns:1fr}
  .service-item > img {aspect-ratio:3.6}
}

body > header {
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  margin-inline: auto;
  background: rgba(248,255,252,.94);
}
.brand-film {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  background: #102521;
  color: white;
}
.brand-film video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-film::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg,rgba(3,22,18,.83),transparent 86%),
              linear-gradient(90deg,rgba(3,22,18,.45),transparent 72%);
}
.brand-film-copy {
  position: absolute;
  z-index: 1;
  left: max(5%,env(safe-area-inset-left));
  right: 5%;
  bottom: max(68px,calc(48px + env(safe-area-inset-bottom)));
  max-width: 58rem;
  pointer-events: none;
}
.brand-film-copy h1 {
  font-size: clamp(42px,7.2vw,112px);
  line-height: 1.05;
  letter-spacing: -.045em;
  color: white;
  margin: 0 0 .22em;
}
.brand-film-copy p {
  font-size: clamp(14px,1.3vw,19px);
  line-height: 1.5;
  margin: .45em 0;
  text-wrap: pretty;
}
.brand-film-copy .brand-lead {font-size: clamp(20px,2.2vw,36px); font-weight:700}
.brand-film-copy a {
  display: inline-flex; align-items:center; gap:18px; min-height:44px;
  margin-top:10px; padding:8px 18px; border-radius:24px;
  background:#ecfff4; color:#104535; pointer-events:auto;
}
@media(min-width:761px) {.brand-lead br {display:none}}
@media(max-height:500px) and (orientation:landscape) {
  body > header {margin-top:0}
  .brand-film-copy {bottom:44px}
  .brand-film-copy h1 {font-size:32px}
  .brand-film-copy p {margin:2px 0}
  .brand-film-copy .brand-lead {font-size:17px}
  .brand-lead br {display:none}
}

@media (orientation: portrait) {
  .brand-film video {
    object-fit: cover;
    background: #102521;
  }
  .brand-film::after {
    background: linear-gradient(0deg, #061912ed, #061912b3 24%, transparent 51%);
  }
}
