/* The navigation, field plates and contact card share the colors and cut from the home page. */
[hidden] { display:none!important; }
.mast { grid-template-columns:auto 1fr auto; column-gap:clamp(18px,3vw,55px); }
.mast .brand { grid-column:1;grid-row:1; }
.primary-pages { display:flex;justify-content:center;align-items:center;gap:clamp(18px,2.6vw,54px); }
.primary-pages a,.foot-pages a { position:relative;display:inline-flex;align-items:center;min-height:44px;font-size:.92rem;font-weight:500;white-space:nowrap; }
.primary-pages [aria-current]::after,.foot-pages [aria-current]::after { content:"";position:absolute;bottom:5px;left:0;right:0;height:2px;background:var(--accent-on-dark);transform:skewX(-26deg); }
.primary-pages a:hover,.foot-pages a:hover { text-decoration:underline;text-underline-offset:5px; }
.mast .menu-button { display:none; }
.menu-body nav [aria-current] { color:var(--mark-blue); }
body:not([data-page=index]) .mast { position:relative;inset:auto;margin:0;padding-inline:var(--pad);background:var(--ink);color:white;border:0; }
.foot-pages { grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:6px clamp(14px,3vw,50px);border-top:1px solid #8195a7;padding-top:12px; }
footer .footer-base { margin-top:0; }
.inner-footer { display:block;padding-block:30px;color:white;background:var(--ink); }.inner-footer .foot-pages { border:0;margin-bottom:20px;padding:0; }
.chapter-route { display:block;width:fit-content;margin-top:15px;font-weight:600;border-left:3px solid var(--mark-blue);padding:4px 12px; }
.chapter-route:hover { text-decoration:underline; }.address .chapter-route { border-color:var(--accent-on-dark); }
.inside { color:var(--ink); }
.inside h1,.inside h2,.inside h3 { font-weight:500;line-height:1.02;letter-spacing:var(--ls-large); }
.inside h3 { line-height:var(--lh-h3); letter-spacing:var(--ls-tight); }   /* subheads are body-face text, not display */
.inside h1 { font-size:clamp(58px,7.1vw,138px); }
.inside h2 { font-size:clamp(31px,3.7vw,72px); }

.route-link { display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:11px 24px 11px 17px;background:var(--deep-blue);color:#fff;clip-path:var(--cut-corner);font-size:.91rem;font-weight:600;width:fit-content;transition:background-color .2s var(--ease), color .2s var(--ease); }
.route-link:hover { background:var(--mark-blue); }.route-link:focus-visible { outline-offset:-4px; }

.projects-page { background:#152b41;color:var(--chalk);padding-bottom:var(--section); }
.projects-page .route-link { background:var(--mist);color:var(--ink); }
.projects-page .route-link:hover { background:white; }

#case-dialog { width:min(1040px,94vw);max-height:92dvh; }
.case-toolbar,.case-step { display:flex;align-items:center;gap:16px;padding:10px clamp(16px,2.5vw,38px); }
.case-toolbar { color:white;background:var(--deep-blue); }.case-toolbar .language-switch { margin-left:auto; }.case-step { justify-content:space-between;border-top:1px solid var(--line); }
.case-step button { border:0;border-bottom:1px solid var(--ink);background:transparent;min-height:40px; }.case-step button:disabled{opacity:.45;cursor:default;}

.office-card {isolation:isolate;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:clamp(315px,29vw,500px);background:var(--deep-blue);color:white;padding:clamp(22px,3.3vw,65px);clip-path:polygon(0 0,100% 0,100% calc(100% - 32px),calc(100% - 32px) 100%,0 100%);}
.office-card::before{position:absolute;z-index:-1;content:"";inset:0 -44% -26% 20%;background:#14518e;mask:var(--sweep-mask) center/contain no-repeat;}
.office-mark{width:min(175px,48%);}.office-card>div{margin-block:27px 20px;}.office-card address{font:500 clamp(28px,3vw,54px)/1.07 var(--display);letter-spacing:.01em;margin:10px 0 17px;}
.office-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;}.office-actions button,.office-link,.vcard{color:white;background:none;border:0;border-bottom:1px solid var(--accent-on-dark);font:500 var(--fs-small)/1.4 var(--body);padding:5px 0;min-height:var(--hit);display:inline-flex;align-items:center;width:fit-content;}
.copy-status{font-size:.82rem;min-height:1.35em;}.vcard{align-self:start;}
.office-email{font-size:clamp(16px,1.4vw,24px);border-bottom:1px solid var(--mark-blue);overflow-wrap:anywhere;}

:lang(ko) .inside h1,:lang(ko) .inside h2,:lang(ko) .inside h3 {font-weight:600;line-height:1.15;}

@media(max-width:920px){
  .primary-pages{gap:14px;}.primary-pages a{font-size:.84rem;}.mast{column-gap:16px;}
}
@media(max-width:760px){
  .mast{grid-template-columns:1fr auto 1fr;}.mast .menu-button{display:inline-flex;grid-column:1;grid-row:1;}.mast .brand{grid-column:2;}.primary-pages{display:none;}
  .case-toolbar,.case-step{gap:9px;}
  .office-card{padding:20px;}
}
@media(max-width:550px){
  .inside h1{font-size:clamp(44px,11.7vw,67px);}.foot-pages{gap:4px 14px;}.foot-pages a{font-size:.84rem;}
  .office-card{min-height:255px;}.case-toolbar .eyebrow{font-size:.69rem;}.case-toolbar .language-switch button{min-width:31px;}.case-step button{font-size:.85rem;}
}

/* ---------- film hero (Services, Projects, About): a full-bleed loop from the kit, a scrim, the copy at the lower left.
   A page sets --fhero-focus (which part of the film stays in frame) and --fhero-measure (the title's line length). ---------- */
:root{
  --fhero-h: min(82svh, 820px);
  --fhero-min: 540px;
  --fhero-h-sm: 80svh;
  --fhero-scrim: linear-gradient(90deg, #102742eb 0%, #102742b8 36%, #10274214 72%), linear-gradient(0deg, #102742d9 0%, #10274200 48%);
}
.fhero{ position:relative; height:var(--fhero-h); min-height:var(--fhero-min); overflow:hidden; color:white; background:var(--ink); }
.fhero > .loop{ position:absolute; inset:0; aspect-ratio:auto; height:100%; }
.fhero__media > img,.fhero__media > video{ object-position:var(--fhero-focus, 50% 50%); }
.fhero__media::after{ content:""; position:absolute; inset:0; z-index:1; background:var(--fhero-scrim); pointer-events:none; }
.fhero__copy{ position:relative; z-index:2; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start;
  padding:0 var(--pad) var(--space-8); pointer-events:none; }
.fhero__copy > *{ pointer-events:auto; }
.inside .fhero h1{ margin:var(--space-4) 0 var(--space-5); max-width:var(--fhero-measure, 9em);
  font:500 var(--fs-display)/var(--lh-display) var(--display); letter-spacing:var(--ls-display); text-transform:uppercase; text-wrap:balance; }
:lang(ko) .inside .fhero h1{ max-width:12em; font-size:var(--fs-display-ko); line-height:var(--lh-display-ko); font-weight:var(--fw-display-ko);
  letter-spacing:var(--ls-display-ko); text-transform:none; word-break:keep-all; }
.fhero__lead{ font-size:var(--fs-lead); line-height:var(--lh-lead); max-width:38ch; color:var(--on-dark); }
.fhero .route-link{ margin-top:var(--space-6); background:var(--mist); color:var(--ink); }
.fhero .route-link:hover{ background:white; }
@media (max-width: 760px){
  /* on a phone the copy spans the width, so the scrim rises from the bottom instead of the left */
  .fhero{ height:var(--fhero-h-sm); --fhero-scrim: linear-gradient(0deg, #102742f5 0%, #102742e6 40%, #102742a6 62%, #10274200 88%); }
  .fhero__copy{ padding-bottom:var(--space-7); }
}

/* ---------- closing band: one question and two routes at the end of Services and About (Projects has its own) ---------- */
.next-cta{ padding:var(--section-y) var(--pad) var(--stack-head); background:var(--ink); color:white; border-top:1px solid var(--rule-dark); }   /* the hairline shows only after a dark section */
.inside .next-cta h2{ font:500 var(--fs-h2)/var(--lh-display) var(--display); letter-spacing:var(--ls-display); text-transform:uppercase; text-wrap:balance; }
:lang(ko) .inside .next-cta h2{ font-size:var(--fs-h2-ko); font-weight:var(--fw-display-ko); line-height:var(--lh-h2-ko); letter-spacing:var(--ls-display-ko); text-transform:none; }
.next-cta > div{ display:flex; flex-wrap:wrap; gap:var(--space-4); margin-top:var(--stack-head); }
.next-cta .route-link{ background:var(--mist); color:var(--ink); }
.next-cta .route-link:hover{ background:white; }
.next-cta .next-cta__alt{ background:transparent; color:white; box-shadow:inset 0 0 0 1px var(--rule-dark-strong); }
.next-cta .next-cta__alt:hover{ background:var(--deep-blue); }
.next-cta--light{ background:var(--mist); color:var(--ink); border-top:1px solid var(--line); }
.next-cta--light .route-link{ background:var(--deep-blue); color:white; }
.next-cta--light .route-link:hover{ background:var(--mark-blue); }
.next-cta--light .next-cta__alt{ background:transparent; color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); }
.next-cta--light .next-cta__alt:hover{ background:var(--chalk); }

/* ---------- the menu label stays on one line, also on the narrowest phones ---------- */
.menu-button{ white-space:nowrap; }
@media (max-width:365px){ .mast{ column-gap:8px; } }

/* ---------- phones: the top bar follows the page ----------
   --mast-h is the bar's height while it follows (0 on wider screens); bars that stick below it use it as their top. */
:root{ --mast-h:0px; }
@media (max-width:760px){
  :root{ --mast-h:60px; }
  html{ scroll-padding-top:calc(var(--mast-h) + 8px); }
  .mast,body:not([data-page=index]) .mast{ position:sticky; top:0; z-index:9; height:var(--mast-h); margin:0; padding-inline:var(--pad); background:var(--ink); border:0; box-shadow:0 1px 0 transparent; transition:background-color .2s linear, box-shadow .2s linear; }
  .mast.is-stuck{ box-shadow:0 1px 0 var(--rule-dark); }
  body[data-page=index] .mast{ position:fixed; left:0; right:0; background:transparent; box-shadow:0 1px 0 #dfebff59; }
  body[data-page=index] .mast.is-stuck{ background:var(--ink); box-shadow:0 1px 0 var(--rule-dark); }
}
@media (max-width:760px) and (max-height:520px) and (orientation:landscape){ :root{ --mast-h:46px; } }
@media (prefers-reduced-motion: reduce){ .mast{ transition:none; } }

/* ---------- round 13: touch targets on phones ---------- */
@media (max-width:760px){
  .mast .brand{ display:grid; align-content:center; min-height:44px; }
  .mast .language-switch button{ min-width:44px; min-height:44px; }
  footer .phone,footer .chapter-route,.footer-base > a{ display:inline-flex; align-items:center; min-height:44px; }
}
@media (max-width:365px){ .mast .language-switch button{ min-width:40px; } }

/* ---------- round 13: a hero's still may sit inside <picture> (a portrait cut for phones); it lays out exactly as a bare <img> does ---------- */
.loop > picture{ display:contents; }
.loop > picture > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fhero__media > picture > img{ object-position:var(--fhero-focus, 50% 50%); }

/* ---------- Korean type (round 14): Hangul set in Pretendard. Wrapped lines get more leading than Latin capitals need,
   and tracking is eased from the values that were tuned for the system face ---------- */
html:lang(ko) .opening h1>span:first-child{ letter-spacing:-.025em; }
html:lang(ko) .h-founder blockquote{ line-height:1.45; }
html:lang(ko) .ab-founder blockquote,html:lang(ko) .ab .ab-mission__text{ line-height:1.42; }
html:lang(ko) .tl__visual blockquote{ line-height:1.4; }
html:lang(ko) .crew__end{ line-height:1.35; }
html:lang(ko) .c-part>legend{ line-height:1.3; }
html:lang(ko) .c-choice__face,html:lang(ko) .cap-jobs a{ line-height:1.35; }
html:lang(ko) .h-lane__actions a,html:lang(ko) .lane-q span{ line-height:1.4; }
html:lang(ko) .thennow__label{ letter-spacing:.02em; }

/* ---------- language choice on phones (round 15) ---------- */
/* each word is a 44px target; the stroke stays midway between the two words */
@media (max-width:1024px){
  .language-switch{ --ls-pad:10px; }
  .language-switch button:first-child{ --ls-pad:12px; }
  .mast .language-switch button{ min-width:0; }
}
@media (max-width:339px){ .language-switch{ --ls-pad:7px; } .language-switch button:first-child{ --ls-pad:9px; } }
@media (max-width:640px){ .footer-base{ flex-wrap:nowrap; } }
/* phone menu: the place and the phone number share the first line, the language choice takes the second */
@media (max-width:640px){ .menu-foot .language-switch{ order:3; flex-basis:100%; justify-content:flex-start; margin-left:-12px; } }
