/* Header — floating glass pills (logo + nav · language · CTA).
 * Loaded after reference.css on every page; replaces the old condensed HOME button. */
.header{height:auto;padding:16px var(--pad);align-items:center;gap:12px}
.glass{background:rgba(34,34,34,.58);-webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);border-radius:6px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);transition:background .35s ease}
.header.is-scrolled .glass{background:rgba(30,30,30,.72)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.glass{background:rgba(30,30,30,.94)}}

.nav-group{display:flex;align-items:center;height:50px;padding:0 10px 0 14px}
.header .nav-group .logo-link{min-width:0;min-height:0;margin-right:10px}
.nav-group .studio-logo{height:24px!important;width:auto}
.header .desktop-nav{display:flex;gap:2px;margin:0;font:var(--font-weight-regular) 15px/1 var(--font-primary);letter-spacing:-.01em;text-transform:none}
.header .desktop-nav a{padding:10px 8px;color:var(--ink);transition:opacity .2s}
.header .desktop-nav a:after{display:none}
.header .desktop-nav a:hover{opacity:.6}

.header .nav-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.lang-switch{display:flex;align-items:center;gap:6px;height:50px;padding:0 16px;font-size:15px;letter-spacing:-.01em;color:var(--ink)}
.lang-switch button{appearance:none;-webkit-appearance:none;background:none;border:0;border-radius:3px;margin:-10px -5px;padding:10px 5px;font:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;cursor:pointer;transition:color .2s}
.lang-switch .lang-off{color:#7c7c7c}
.lang-switch .lang-off:hover{color:var(--ink)}
.lang-switch .lang-on{cursor:default}
.lang-switch button:focus-visible{outline-offset:2px}
.lang-switch .lang-sep{color:#6a6a6a}
.header .pill.nav-cta{display:inline-flex;align-items:center;height:50px;min-height:50px;padding:0 16px;gap:0;border-radius:6px;font:var(--font-weight-regular) 15px/1 var(--font-primary);letter-spacing:-.01em;text-transform:none;color:var(--ink)}
.header .pill.nav-cta:hover{background:rgba(58,58,58,.8);transform:none}

/* Old condensed state is retired: nav stays visible on desktop */
.header.is-condensed .desktop-nav{display:flex}
.header.is-condensed .nav-actions>.contact-trigger{display:inline-flex}
.header .menu-button{display:none;height:50px;min-height:50px;width:auto;min-width:0;padding:0 16px;gap:10px;border-radius:6px;font:var(--font-weight-regular) 15px/1 var(--font-primary);letter-spacing:-.01em;text-transform:none}
.header.is-condensed .menu-button{display:none}
.mobile-menu{top:76px}

@media(max-width:991px){
  .header .desktop-nav{display:none!important}
  .nav-group{padding:0 14px}
  .header .nav-group .logo-link{margin-right:0}
  .header .menu-button,.header.is-condensed .menu-button{display:flex}
}
@media(max-width:600px){
  .header{padding:12px var(--pad)}
  .nav-group,.lang-switch,.header .pill.nav-cta,.header .menu-button{height:44px;min-height:44px}
  .lang-switch{padding:0 12px;font-size:14px}
  .header .menu-button{padding:0 14px;font-size:14px}
  .header .nav-actions>.nav-cta{display:none!important}
  .mobile-menu{top:66px}
}
/* Northeast arrow as inline SVG: the shipped DM Sans / Plus Jakarta subsets have no
 * U+2197, and iOS falls back to its colour emoji for it. Sized in em, so it scales
 * with the text it sits in (CTA labels, next-project titles); stroke follows currentColor.
 * Size/offset match the previous desktop ↗ glyph: ~0.53em ink, bottom on the baseline. */
.icon-ne{display:inline-block;width:.785em;height:.785em;vertical-align:-.12em;flex:none;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.1;stroke-linecap:butt;stroke-linejoin:miter}
/* Play icon (reel button + reel dialog toggle) as inline SVG: U+25B6 is emoji-capable and
 * renders as a colour emoji on iOS. Sizes match the previous desktop glyphs (►: 0.6em square on
 * the baseline; ▶ in the dialog: 0.77 × 0.91em); margins stand in for the old glyphs' side
 * bearings so button widths stay the same. Filled with currentColor. */
.icon-play{display:inline-block;width:.6em;height:.6em;margin:0 .2em;vertical-align:0;flex:none;fill:currentColor}
.reel-controls .icon-play{width:.77em;height:.91em;margin:0 0 0 .14em;vertical-align:-.12em}
.reel-button .reel-label{font:inherit}
/* Label spans next to the icon keep their parent's text style (not the generic span rules). */
.mobile-menu a.mobile-menu-cta span,.footer-studio button span{font:inherit;padding:0;color:inherit}
.mobile-menu a.mobile-menu-cta{display:block;border:0;padding:0;margin-top:24px;font-size:16px;color:var(--accent)}

/* Mobile menu never runs past the bottom of the visible viewport (landscape phones: the
 * "Let's talk" row was off-screen and unreachable); it scrolls inside itself instead. */
.mobile-menu{max-height:calc(100vh - 88px);max-height:calc(100dvh - 88px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:600px){.mobile-menu{max-height:calc(100vh - 78px);max-height:calc(100dvh - 78px)}}
/* Anchor targets clear the fixed header on small screens (was 25px, under the 56–66px header). */
@media(max-width:760px){html{scroll-padding-top:76px}}
/* Logo: larger tap area without changing the visible logo (was 20×24px). */
.header .nav-group .logo-link{position:relative}
.header .nav-group .logo-link::before{content:'';position:absolute;inset:-10px -8px}

/* i18n.js hides a Vietnamese page only until its text is swapped (max 2.5 s). */
.i18n-pending body{visibility:hidden}
