/* Dual Architects — "Atelier" design system (public site).
   Cinematic and editorial: a floating glass navigation capsule, full-bleed imagery,
   rounded dark panels, a light display serif and unhurried scroll-driven motion.
   Presentation only; markup, routes and behaviour are unchanged.
   Loaded after every legacy stylesheet so it takes precedence. */

:root {
  --paper: #f5f2ea;
  --paper-2: #ebe6d8;
  --paper-3: #ddd6c3;
  --ink: #0b1310;
  --ink-2: #34413a;
  --muted: #66716a;
  --green: #0c2a21;
  --green-2: #1a6a53;
  --green-ink: #d9e6df;
  --brass: #c8a45d;
  --brass-2: #a8873f;
  --rule: rgba(11, 19, 16, 0.13);
  --rule-strong: rgba(11, 19, 16, 0.4);
  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1440px;
  --mast: 80px;
  --radius: 20px;
  --display: "Fraunces", ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Avoid browser snapshots stacking the previous route under the next page. */
@view-transition { navigation: none; }

body.studio {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.studio img { display: block; max-width: 100%; height: auto; }
body.studio p a, body.studio li a, body.studio address a, body.studio dd a { color: var(--green-2); text-underline-offset: 4px; }
body.studio :focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
body.studio ::selection { background: var(--brass); color: var(--ink); }
body.studio .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; border-radius: 999px; }
.skip-link:focus { top: 12px; }

/* Scroll progress hairline (element added by studio.js) */
.s-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 80; background: linear-gradient(90deg, var(--brass), #f1dca4); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

/* ---------- Layout primitives ---------- */
.s-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.s-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); }
.s-section { padding-block: clamp(80px, 11vw, 168px); }
.s-section--tight { padding-block: clamp(48px, 6vw, 96px); }
.s-section--rule { border-top: 1px solid var(--rule); }

/* ---------- Type ---------- */
.s-kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 24px;
  font: 700 11.5px/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--green-2);
}
.s-kicker::before { content: ""; width: 34px; height: 1px; background: currentColor; transform-origin: left; animation: s-line 1.2s var(--ease-out) both; }
@keyframes s-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.s-h1, .s-h2, .s-h3 { font-family: var(--display); font-weight: 300; color: var(--ink); margin: 0; letter-spacing: -0.025em; text-wrap: balance; font-variation-settings: "opsz" 144; }
.s-h1 { font-size: clamp(2.8rem, 6.4vw, 6.6rem); line-height: 0.98; }
.s-h2 { font-size: clamp(2.1rem, 4.4vw, 4.2rem); line-height: 1.02; }
.s-h3 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.15; }
.s-lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 40ch; margin: 28px 0 0; }
.s-body { color: var(--ink-2); max-width: 60ch; }
.s-body p { margin: 0 0 1em; }
.s-meta { font: 600 11.5px/1.5 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Buttons and links ---------- */
.s-btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 12px 0 26px;
  border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 700 14px/1 var(--sans); letter-spacing: 0.02em; text-decoration: none; transition: color .5s var(--ease-out), border-color .5s var(--ease-out), translate .35s var(--ease-out);
}
.s-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brass); transform: translateY(101%); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transition: transform .6s var(--ease-out), border-radius .6s var(--ease-out); }
.s-btn::after { content: "→"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); font-size: 15px; transition: transform .5s var(--ease-out), background-color .4s; }
.s-btn:hover { color: var(--ink); border-color: var(--brass); }
.s-btn:hover::before { transform: translateY(0); border-radius: 0; }
.s-btn:hover::after { transform: translateX(3px) rotate(-45deg); background: rgba(11, 19, 16, 0.12); }
.s-btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.s-btn--ghost { background: transparent; color: var(--ink); }

.s-link {
  position: relative; display: inline-flex; align-items: center; gap: 10px; font: 700 14px/1.2 var(--sans); letter-spacing: 0.02em;
  color: var(--ink); text-decoration: none; padding-bottom: 8px; border-bottom: 1px solid var(--rule-strong);
}
.s-link::after { content: "→"; transition: transform .4s var(--ease-out); }
.s-link::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--brass-2); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.s-link:hover::before { transform: scaleX(1); transform-origin: left; }
.s-link:hover::after { transform: translateX(5px); }

/* ---------- Masthead: floating glass capsule ---------- */
.s-masthead { position: sticky; top: 0; z-index: 60; padding: 12px var(--gutter) 0; pointer-events: none; animation: s-drop .9s var(--ease-out) both; }
@keyframes s-drop { from { opacity: 0; } to { opacity: 1; } }
.s-masthead .s-masthead__inner {
  pointer-events: auto; position: relative; width: min(var(--max), 100%); max-width: none; padding: 0 12px 0 26px; min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 999px;
}
.s-masthead .s-masthead__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: rgba(11, 19, 16, 0.9); border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(11, 19, 16, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background-color .5s var(--ease-out);
}
.studio:has(.s-hero__media) .s-masthead .s-masthead__inner::before { background: rgba(11, 19, 16, 0.5); }
.studio-scrolled .studio:has(.s-hero__media) .s-masthead .s-masthead__inner::before, .studio-scrolled body.studio .s-masthead .s-masthead__inner::before { background: rgba(11, 19, 16, 0.88); }
.s-brand { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.s-brand .dual-lockup, .s-brand .tkngu-lockup { display: block; height: 40px; width: auto; object-fit: contain; }
.s-brand__rule { width: 1px; height: 28px; background: rgba(255, 255, 255, 0.25); }

.s-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.s-nav a {
  position: relative; font: 600 13.5px/1 var(--sans); letter-spacing: 0.01em; text-decoration: none; color: #c9d2cc;
  padding: 12px 16px; border-radius: 999px; white-space: nowrap; transition: color .3s var(--ease), background-color .3s var(--ease);
}
.s-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.s-nav a[aria-current="page"] { color: var(--ink); background: #f5f2ea; }
.s-staff {
  margin-left: 8px; font: 700 13px/1 var(--sans); text-decoration: none; padding: 15px 22px; border-radius: 999px; white-space: nowrap; color: var(--ink);
  background: linear-gradient(135deg, #e6cd8b, var(--brass)); transition: filter .3s, translate .35s var(--ease-out);
}
.s-staff:hover { filter: brightness(1.08); }
.s-staff-mobile { display: none; }
body.menu-open { overflow: hidden; }

.menu-toggle, .preview-menu {
  display: none; position: relative; z-index: 3; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; background: rgba(255, 255, 255, 0.06); cursor: pointer; padding: 0; flex: none;
}
.menu-toggle span, .preview-menu span, .menu-toggle i, .preview-menu i { position: absolute; left: 50%; width: 18px; height: 1.5px; background: #f5f2ea; transform: translateX(-50%); transition: transform .45s var(--ease-out), opacity .2s; }
.menu-toggle span:nth-of-type(1), .preview-menu span:nth-of-type(1) { top: 17px; }
.menu-toggle span:nth-of-type(2), .preview-menu span:nth-of-type(2) { top: 22px; }
.menu-toggle span:nth-of-type(3), .preview-menu span:nth-of-type(3) { top: 27px; }
.menu-toggle.is-open span:nth-of-type(1), .preview-menu.is-open span:nth-of-type(1) { transform: translate(-50%, 5px) rotate(45deg); }
.menu-toggle.is-open span:nth-of-type(2), .preview-menu.is-open span:nth-of-type(2) { opacity: 0; }
.menu-toggle.is-open span:nth-of-type(3), .preview-menu.is-open span:nth-of-type(3) { transform: translate(-50%, -5px) rotate(-45deg); }

/* ---------- Hero: home (cinematic full-bleed) ---------- */
.s-hero { --hero-fg: #f7f3e9; position: relative; margin-top: calc(var(--mast) * -1); background: var(--ink); color: var(--hero-fg); overflow: hidden; max-width: none; padding-inline: 0; }
.s-hero__grid { position: static; width: min(var(--max), 100%); min-height: 100svh; margin-inline: auto; padding: calc(var(--mast) + 48px) var(--gutter) clamp(48px, 7vw, 96px); align-content: end; row-gap: 40px; }
.s-hero__copy { position: relative; z-index: 3; grid-column: 1 / span 9; }
.s-hero .s-h1 { color: var(--hero-fg); font-size: clamp(3rem, 8.2vw, 8.6rem); line-height: 0.93; letter-spacing: -0.035em; }
.s-hero .s-kicker { color: #e2c887; }
.s-hero .s-lede { color: rgba(247, 243, 233, 0.82); max-width: 34ch; }
.s-hero__media { position: absolute; inset: 0; z-index: 0; grid-column: auto; margin: 0; }
.s-hero__media.s-reveal { opacity: 1; transform: none; }
.s-hero__media figure { position: absolute; inset: 0; margin: 0; }
body.studio .s-hero__media img { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: cover; object-position: 50% 62%; transform: translate3d(0, var(--py, 0px), 0) scale(1.14); animation: s-kenburns 3.2s var(--ease-out) both; will-change: transform; }
@keyframes s-kenburns { from { scale: 1.12; filter: brightness(0.55); } to { scale: 1; filter: brightness(1); } }
.s-hero__media::before { content: none; }
.s-hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11, 19, 16, 0.55) 0%, rgba(11, 19, 16, 0.08) 32%, rgba(11, 19, 16, 0.2) 55%, rgba(11, 19, 16, 0.9) 100%),
  radial-gradient(900px 520px at 12% 88%, rgba(11, 19, 16, 0.65), transparent 70%); }
.s-hero .s-caption { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(20px, 3vw, 36px); margin: 0; display: flex; gap: 14px; align-items: center; font: 600 11.5px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 243, 233, 0.82); }
.s-hero .s-caption strong { color: #fff; font-weight: 700; }
.s-hero .s-caption span::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; margin-right: 12px; vertical-align: middle; }
.s-page-hero .s-caption { display: grid; justify-items: start; gap: 4px; margin: 14px 0 0; }
.s-page-hero .s-caption strong { display: block; color: var(--ink); font: 650 14px/1.35 var(--sans); letter-spacing: 0; }
.s-page-hero .s-caption span { display: block; color: var(--muted); font: 600 10px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.s-hero__actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 44px; }
.s-hero .s-link { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.s-hero .s-btn { background: #f7f3e9; color: var(--ink); border-color: #f7f3e9; }
.s-hero .s-btn::after { background: rgba(11, 19, 16, 0.1); }
.s-hero .s-copy-in { animation: s-rise 1.3s var(--ease-out) both; }
@keyframes s-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Careers keeps a light hero with the poster beside the copy */
.s-hero:has(.s-careers-hero__grid) { --hero-fg: var(--ink); margin-top: 0; background: var(--paper); overflow: visible; }
.s-hero:has(.s-careers-hero__grid) .s-hero__grid { min-height: 0; padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 96px); align-content: center; }
.s-hero:has(.s-careers-hero__grid) .s-kicker { color: var(--green-2); }
.s-hero:has(.s-careers-hero__grid) .s-lede { color: var(--ink-2); }
.s-hero:has(.s-careers-hero__grid) .s-link { color: var(--ink); border-color: var(--rule-strong); }
.s-hero:has(.s-careers-hero__grid) .s-btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.s-hero:has(.s-careers-hero__grid) .s-btn::after { background: rgba(255, 255, 255, 0.14); }
.s-hero:has(.s-careers-hero__grid) .s-h1 { max-width: 11ch; font-size: clamp(2.8rem, 5.7vw, 5.6rem); line-height: 1; overflow-wrap: anywhere; }
.s-hero:has(.s-careers-hero__grid) .s-hero__copy { grid-column: 1 / span 7; }

/* ---------- Marquee ---------- */
.s-marquee { overflow: hidden; background: var(--ink); color: #e9e4d6; border-block: 1px solid rgba(255, 255, 255, 0.08); }
.s-marquee__track { display: flex; width: max-content; animation: s-marquee 60s linear infinite; }
.s-marquee:hover .s-marquee__track { animation-play-state: paused; }
.s-marquee span { display: inline-flex; align-items: center; gap: clamp(28px, 4vw, 56px); padding: 22px clamp(14px, 2vw, 28px); font: 300 clamp(1.3rem, 2.4vw, 2.1rem)/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.s-marquee span::after { content: "✦"; font-size: 0.55em; color: var(--brass); }
@keyframes s-marquee { to { transform: translateX(-50%); } }

/* ---------- Index: numbered work strip ---------- */
.s-index { padding-block: clamp(72px, 10vw, 150px) 0; }
.s-index__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-block: 0 clamp(32px, 4vw, 56px); }
.s-index__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); }
.s-tile { display: block; text-decoration: none; color: inherit; }
.s-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.s-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.s-index__grid .s-tile:nth-child(2) { margin-top: clamp(0px, 5vw, 80px); }
.s-tile:hover .s-media img { transform: scale(1.06); }
.s-tile .s-media::after { content: "↗"; position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 16px; opacity: 0; transform: translate(-6px, 6px) scale(0.8); transition: opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.s-tile:hover .s-media::after { opacity: 1; transform: none; }
.s-tile > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.s-tile__num { display: flex; justify-content: space-between; margin-top: 18px; font: 700 11px/1 var(--sans); letter-spacing: 0.18em; color: var(--green-2); text-transform: uppercase; }
.s-tile h3 { margin: 12px 0 4px; font: 300 clamp(1.3rem, 1.9vw, 1.7rem)/1.15 var(--display); letter-spacing: -0.015em; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); display: inline; }
.s-tile:hover h3 { background-size: 100% 1px; }
.s-tile p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Dark practice band: rounded floating panel ---------- */
.s-band {
  position: relative; margin-inline: clamp(8px, 1.6vw, 24px); border-radius: clamp(28px, 4vw, 56px); color: var(--green-ink); overflow: hidden;
  background: radial-gradient(900px 520px at 88% -8%, rgba(200, 164, 93, 0.2), transparent 62%), radial-gradient(760px 560px at -6% 108%, rgba(40, 140, 108, 0.38), transparent 62%), var(--green);
}
.s-band .s-h2, .s-band .s-h1 { color: #f7f3e9; }
.s-band .s-kicker { color: #e2c887; }
.s-band .s-body { color: var(--green-ink); }
.s-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(48px, 6vw, 88px); }
.s-principle { position: relative; padding: clamp(24px, 2.6vw, 36px); border: 1px solid rgba(247, 243, 233, 0.14); border-radius: 24px; background: rgba(255, 255, 255, 0.04); transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), translate .6s var(--ease-out); }
.s-principle:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(226, 200, 135, 0.5); translate: 0 -6px; }
.s-principle span { font: 700 11px/1 var(--sans); letter-spacing: 0.2em; color: #e2c887; }
.s-principle h3 { margin: 22px 0 12px; font: 300 clamp(1.5rem, 2.3vw, 2.1rem)/1.1 var(--display); letter-spacing: -0.02em; color: #f7f3e9; }
.s-principle p { margin: 0; color: var(--green-ink); opacity: .86; }
.s-band .s-tile h3 { color: #f7f3e9; }
.s-band .s-tile p { color: var(--green-ink); opacity: 0.8; }
.s-band .s-tile__num, .s-band .s-tile__num span:first-child { color: #e2c887; }

/* ---------- About split (logos panel) ---------- */
.s-split { align-items: center; row-gap: 48px; }
.s-logo-panel {
  grid-column: 1 / span 5; position: relative; overflow: hidden; border-radius: clamp(24px, 3vw, 40px); padding: clamp(36px, 5vw, 72px); display: grid; gap: 40px; justify-items: start;
  background: radial-gradient(520px 340px at 90% 0%, rgba(200, 164, 93, 0.22), transparent 65%), radial-gradient(520px 340px at 0% 100%, rgba(40, 140, 108, 0.35), transparent 65%), var(--ink);
}
.s-logo-panel img { width: auto; }
.s-logo-panel .dual-full { height: clamp(120px, 13vw, 190px); }
.s-logo-panel .tkngu-full { height: clamp(40px, 4.4vw, 60px); }
.s-logo-panel .s-meta { margin-top: 0; color: #9aa59f; }
.s-split__copy { grid-column: 7 / span 6; }
.s-split__copy .s-body { margin-top: 26px; }

/* ---------- Process steps ---------- */
.s-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); margin-top: clamp(40px, 5vw, 72px); counter-reset: step; }
.s-step { position: relative; padding-top: 0; }
.s-step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 26px; border-radius: var(--radius); }
.s-step .s-media { margin-bottom: 26px; }
.s-step .s-media img { margin: 0; aspect-ratio: 4 / 3; }
.s-step:hover .s-media img { transform: scale(1.05); }
.s-step > span { display: inline-block; padding: 7px 12px; border: 1px solid var(--rule-strong); border-radius: 999px; font: 700 11px/1 var(--sans); letter-spacing: 0.16em; color: var(--green-2); }
.s-step h3 { margin: 18px 0 10px; font: 300 clamp(1.4rem, 2.1vw, 1.9rem)/1.12 var(--display); letter-spacing: -0.02em; }
.s-step p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.s-steps:not(:has(img)) .s-step { padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--rule); border-radius: 24px; background: #faf8f2; transition: translate .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.s-steps:not(:has(img)) .s-step:hover { translate: 0 -6px; box-shadow: 0 24px 60px rgba(11, 19, 16, 0.1); }

/* ---------- Feature project ---------- */
.s-feature { position: relative; margin: 0; overflow: hidden; border-radius: clamp(24px, 3vw, 40px); }
.s-feature img { width: 100%; aspect-ratio: 21 / 10; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.12); will-change: transform; }
.s-feature__card {
  position: absolute; left: clamp(14px, 3vw, 40px); bottom: clamp(14px, 3vw, 40px); max-width: min(520px, calc(100% - 28px)); padding: clamp(24px, 3vw, 40px); border-radius: 28px;
  background: rgba(245, 242, 234, 0.82); -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3); border: 1px solid rgba(255, 255, 255, 0.5);
}
.s-feature__card h3 { font: 300 clamp(1.8rem, 3vw, 2.8rem)/1.05 var(--display); letter-spacing: -0.025em; margin: 0 0 14px; }
.s-feature__card p { margin: 0 0 22px; color: var(--ink-2); }

/* ---------- Gallery ---------- */
.s-gallery { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(20px, 2.6vw, 40px); margin-top: clamp(40px, 5vw, 64px); }
.s-gallery .s-tile img { aspect-ratio: 4 / 3; }
.s-gallery__side { display: grid; gap: clamp(20px, 2.6vw, 40px); }

/* ---------- Numbers ---------- */
.s-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); margin-top: clamp(40px, 5vw, 72px); }
.s-stat { padding-top: 22px; border-top: 1px solid var(--rule-strong); }
.s-stat strong { display: block; font: 300 clamp(3rem, 7vw, 6.4rem)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.s-stat span { display: block; margin-top: 12px; font: 700 11px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contact CTA ---------- */
.s-cta { position: relative; }
.s-cta__inner {
  position: relative; display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; overflow: hidden; border-radius: clamp(28px, 4vw, 56px); padding: clamp(40px, 6vw, 96px);
  background: radial-gradient(700px 420px at 100% 0%, rgba(200, 164, 93, 0.3), transparent 62%), radial-gradient(640px 460px at 0% 100%, rgba(40, 140, 108, 0.4), transparent 62%), var(--green);
}
.s-cta .s-h2 { max-width: 15ch; color: #f7f3e9; font-size: clamp(2.2rem, 5vw, 4.8rem); }
.s-cta .s-kicker { color: #e2c887; }
.s-cta .s-body { color: var(--green-ink); }
.s-cta .s-btn { background: #f7f3e9; color: var(--ink); border-color: #f7f3e9; }
.s-cta .s-btn::after { background: rgba(11, 19, 16, 0.1); }
.s-cta .s-link { color: #f7f3e9; border-color: rgba(247, 243, 233, 0.4); }

/* ---------- Page hero (inner pages) ---------- */
.s-page-hero {
  position: relative; margin-top: calc(var(--mast) * -1); padding-block: calc(var(--mast) + clamp(56px, 8vw, 120px)) clamp(48px, 6vw, 96px); overflow: hidden;
  background: radial-gradient(760px 460px at 96% 0%, rgba(200, 164, 93, 0.22), transparent 64%), radial-gradient(640px 460px at -4% 100%, rgba(26, 106, 83, 0.14), transparent 64%), var(--paper);
}
.s-page-hero::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--rule); }
.s-page-hero__grid { align-items: end; row-gap: 32px; }
.s-page-hero__title { grid-column: 1 / span 8; }
.s-page-hero__aside { grid-column: 9 / span 4; }

/* ---------- Services as a ruled table ---------- */
.s-table { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(247, 243, 233, 0.3); }
.s-table li { display: grid; grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid rgba(247, 243, 233, 0.14); align-items: baseline; transition: padding-left .6s var(--ease-out), background-color .5s; }
.s-table li:hover { padding-left: 16px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent); }
.s-table span { font: 700 11px/1.3 var(--sans); letter-spacing: 0.18em; color: #e2c887; }
.s-table h3 { font: 300 clamp(1.5rem, 2.4vw, 2.2rem)/1.1 var(--display); letter-spacing: -0.02em; margin: 0; color: #f7f3e9; }
.s-table p { margin: 0; color: var(--green-ink); }

/* ---------- Team ---------- */
.s-team-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.s-team-group { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--rule); border-radius: 28px; background: #faf8f2; transition: box-shadow .6s var(--ease-out), translate .6s var(--ease-out); }
.s-team-group:hover { box-shadow: 0 28px 70px rgba(11, 19, 16, 0.09); translate: 0 -4px; }
.s-team-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.s-team-group__head h3 { font: 300 clamp(1.6rem, 2.5vw, 2.2rem)/1.1 var(--display); letter-spacing: -0.02em; margin: 0; }
.s-team-group__head span { font: 700 11px/1 var(--sans); letter-spacing: 0.16em; color: var(--green-2); text-transform: uppercase; white-space: nowrap; }
.s-team-list { list-style: none; margin: 0; padding: 0; }
.s-team-list li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.s-team-list strong { font-weight: 600; color: var(--ink); }
.s-team-list span { color: var(--muted); font-size: 14px; }
.s-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.s-filters li { transition: background-color .3s, color .3s; }

/* ---------- Portfolio index ---------- */
.s-filters button {
  min-height: 44px; padding: 0 20px; border: 1px solid var(--rule-strong); border-radius: 999px; background: transparent; color: var(--ink);
  font: 600 13.5px/1 var(--sans); cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s, translate .35s var(--ease-out);
}
.s-filters button:hover { border-color: var(--ink); translate: 0 -2px; }
.s-filters button.is-active, .s-filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.s-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 28px; border-block: 1px solid var(--rule); margin-top: 48px; }
.s-count { font: 600 13px/1.4 var(--sans); letter-spacing: 0.04em; color: var(--muted); margin: 0; }
.preview-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.6vw, 56px) clamp(20px, 2.6vw, 40px); margin-top: 48px; }
.preview-project-card { display: block; text-decoration: none; color: inherit; }
.preview-project-card .project-card-image { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.preview-project-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.preview-project-card:hover img { transform: scale(1.06); }
.preview-project-card .project-card-number { position: absolute; left: 14px; top: 14px; border-radius: 999px; background: rgba(245, 242, 234, 0.9); padding: 8px 11px; font: 700 11px/1 var(--sans); letter-spacing: 0.12em; color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.preview-project-card .project-card-copy { display: grid; gap: 6px; padding-top: 18px; }
.preview-project-card h2 { font: 300 clamp(1.25rem, 1.7vw, 1.55rem)/1.2 var(--display); letter-spacing: -0.015em; margin: 0; color: var(--ink); }
.preview-project-card p { margin: 0; font: 600 12.5px/1.4 var(--sans); color: var(--muted); letter-spacing: 0.04em; }
.preview-project-card .project-card-arrow { display: none; }
.project-motion-pending { opacity: 0; transform: translateY(24px); }
.project-motion-pending.is-visible { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--project-motion-index, 0) * 70ms); }

/* ---------- Careers ---------- */
.s-careers-hero__grid { align-items: center; row-gap: 36px; }
.s-careers-hero__grid > * { min-width: 0; }
.s-poster { margin: 0; grid-column: 8 / span 5; }
.s-poster img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; border-radius: 28px; box-shadow: 0 24px 56px rgba(11, 19, 16, 0.14); }
.s-poster figcaption { margin-top: 16px; font: 600 12px/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.s-role { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 4vw, 72px); }
.s-role__meta { border-top: 1px solid rgba(247, 243, 233, 0.4); padding-top: 22px; }
.s-role__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(24px, 3vw, 48px); }
.s-role__list h4 { font: 700 11px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #e2c887; margin: 0 0 14px; }
.s-role__list ul { margin: 0; padding: 0 0 0 18px; color: var(--green-ink); }
.s-role__list li { margin-bottom: 10px; }
.s-apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.s-apply__card { border-radius: 32px; padding: clamp(28px, 4vw, 56px); background: #faf8f2; border: 1px solid var(--rule); box-shadow: 0 30px 80px rgba(11, 19, 16, 0.08); }
.s-apply__card p { color: var(--ink-2); }

/* ---------- Contact ---------- */
.s-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.s-contact dl { margin: 0; display: grid; gap: 0; }
.s-contact dl > div { padding: 24px 0; border-top: 1px solid var(--rule); display: grid; gap: 6px; transition: padding-left .5s var(--ease-out); }
.s-contact dl > div:hover { padding-left: 10px; }
.s-contact dl > div:first-child { border-top: 1px solid var(--rule-strong); }
.s-contact dt { font: 700 11px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-2); }
.s-contact dd { margin: 0; color: var(--ink); font-size: 17px; }
.s-contact a { text-underline-offset: 4px; }
.s-map { width: 100%; height: clamp(380px, 42vw, 600px); border: 0; border-radius: 32px; background: var(--paper-2); filter: grayscale(0.35) contrast(1.02); box-shadow: 0 30px 80px rgba(11, 19, 16, 0.12); }

/* ---------- Footer ---------- */
.s-footer {
  position: relative; overflow: hidden; margin: clamp(8px, 1.6vw, 24px); margin-top: clamp(48px, 6vw, 96px); border-radius: clamp(28px, 4vw, 56px); color: #cfd5d1; padding-block: clamp(56px, 7vw, 104px) 36px;
  background: radial-gradient(800px 480px at 90% 0%, rgba(200, 164, 93, 0.16), transparent 62%), radial-gradient(700px 520px at 0% 100%, rgba(40, 140, 108, 0.28), transparent 62%), var(--ink);
}
.s-footer::after { content: "DUAL"; position: absolute; left: 50%; bottom: -0.2em; translate: -50% 0; font: 300 clamp(10rem, 30vw, 30rem)/1 var(--display); letter-spacing: -0.05em; color: rgba(255, 255, 255, 0.04); pointer-events: none; user-select: none; }
.s-footer__grid { position: relative; z-index: 1; row-gap: 40px; align-items: start; }
.s-footer__brand { grid-column: 1 / span 5; display: grid; grid-template-columns: max-content max-content; align-items: center; justify-content: start; gap: 24px 18px; }
.s-footer__brand .dual-lockup, .s-footer__brand .tkngu-lockup { display: block; height: 54px; width: auto; object-fit: contain; }
.s-footer__brand p { grid-column: 1 / -1; margin: 0; max-width: 40ch; color: #aab3ad; }
.s-footer__nav { grid-column: 7 / span 2; display: grid; gap: 12px; align-content: start; }
.s-footer__visit { grid-column: 10 / span 3; display: grid; gap: 12px; align-content: start; }
.s-footer__visit p, .s-footer__visit a { margin: 0; color: #f0ece2; font-size: 15px; text-decoration: none; }
.s-footer__visit a:hover, .s-footer__nav a:hover { color: #e2c887; }
.s-footer__nav a { text-decoration: none; color: #f0ece2; font-size: 15px; transition: color .3s, translate .4s var(--ease-out); }
.s-footer__nav a:hover { translate: 6px 0; }
.s-footer__nav h2, .s-footer__visit h2 { font: 700 11px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: #8c968f; margin: 0 0 6px; }
.s-footer__legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 26px; font-size: 13px; color: #8c968f; }
.s-footer__legal a { color: #f0ece2; text-decoration: none; }

/* ---------- Scroll reveal ---------- */
.s-reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.s-reveal.is-visible { opacity: 1; transform: none; }
.s-reveal .s-media { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.5s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
.s-reveal .s-media img { transform: scale(1.3); transition: transform 2s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.s-reveal.is-visible .s-media { clip-path: inset(0 0 0 0 round var(--radius)); }
.s-reveal.is-visible .s-media img { transform: scale(1); }
.s-reveal.is-visible:hover .s-media img { transform: scale(1.06); transition-duration: 1.4s; transition-delay: 0s; }

/* ---------- Responsive: large tablet and below ---------- */
@media (max-width: 1100px) {
  .s-hero__copy { grid-column: 1 / -1; }
  .s-hero:has(.s-careers-hero__grid) .s-hero__copy { grid-column: 1 / -1; }
  .s-hero:has(.s-careers-hero__grid) .s-poster { grid-column: 1 / -1; width: min(760px, 100%); justify-self: end; }
  .s-page-hero__title, .s-page-hero__aside { grid-column: 1 / -1; }
  .s-split .s-logo-panel, .s-split__copy, .s-poster { grid-column: 1 / -1; }
  .s-footer__brand { grid-column: 1 / -1; }
  .s-footer__nav { grid-column: span 4; }
}

/* ---------- Responsive: navigation drawer (tablet and phone) ---------- */
@media (max-width: 1100px) {
  :root { --mast: 72px; }
  .menu-toggle, .preview-menu { display: inline-block; }
  .s-masthead .s-masthead__inner { min-height: 60px; padding: 0 7px 0 20px; }
  .s-staff { display: none; }
  .s-staff-mobile { display: block; margin-top: 32px; }
  .s-nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; margin: 0;
    background: radial-gradient(600px 420px at 100% 0%, rgba(200, 164, 93, 0.2), transparent 62%), var(--ink); padding: 96px var(--gutter) 40px; overflow-y: auto;
    clip-path: circle(0% at calc(100% - 38px) 38px); visibility: hidden; transition: clip-path .8s var(--ease-out), visibility 0s .8s;
  }
  .s-nav.is-open { clip-path: circle(150% at calc(100% - 38px) 38px); visibility: visible; transition: clip-path .9s var(--ease-out); }
  .s-nav a { font: 300 clamp(2rem, 8vw, 3.2rem)/1.1 var(--display); letter-spacing: -0.02em; color: #f5f2ea; padding: 16px 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
  .s-nav.is-open a { opacity: 1; transform: none; }
  .s-nav.is-open a:nth-child(1) { transition-delay: .18s; } .s-nav.is-open a:nth-child(2) { transition-delay: .24s; }
  .s-nav.is-open a:nth-child(3) { transition-delay: .30s; } .s-nav.is-open a:nth-child(4) { transition-delay: .36s; }
  .s-nav.is-open a:nth-child(5) { transition-delay: .42s; } .s-nav.is-open a:nth-child(6) { transition-delay: .48s; }
  .s-nav a:hover { background: none; }
  .s-nav a[aria-current="page"] { background: none; color: #e2c887; }
  .s-nav .s-staff-mobile { color: #e2c887; font: 700 15px/1 var(--sans); letter-spacing: 0.04em; border: 0; padding: 22px 0 0; }
  .s-brand .dual-lockup, .s-brand .tkngu-lockup { height: 34px; }
  .s-brand__rule { display: none; }
}

/* ---------- Responsive: tablet and phone layouts ---------- */
@media (max-width: 900px) {
  /* Several pages place blocks with inline grid-column values; stack them on narrow screens. */
  .s-grid > [style*="grid-column"], .s-split > * { grid-column: 1 / -1 !important; }
  .s-grid > figure[style*="align-self"] { align-self: start !important; }
  .s-index__grid, .s-steps, .s-principles { grid-template-columns: 1fr; }
  .s-index__grid .s-tile:nth-child(2) { margin-top: 0; }
  .s-media img { aspect-ratio: 4 / 3; }
  .s-table li { grid-template-columns: 1fr; gap: 10px; }
  .s-team-groups { grid-template-columns: 1fr; }
  .preview-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-gallery { grid-template-columns: 1fr; }
  .s-role, .s-apply, .s-contact { grid-template-columns: 1fr; }
  .s-role__list { grid-template-columns: 1fr; }
  .s-footer__nav, .s-footer__visit { grid-column: 1 / -1; }
  .s-stats { grid-template-columns: 1fr; }
  .s-stat strong { font-size: clamp(3rem, 14vw, 5rem); }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  body.studio { font-size: 15px; }
  .s-hero .s-h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .s-hero:has(.s-careers-hero__grid) .s-h1 { max-width: 100%; font-size: clamp(2.55rem, 11vw, 4rem); }
  .s-hero .s-caption { display: none; }
  .preview-project-grid { grid-template-columns: 1fr; }
  .s-feature img { aspect-ratio: 4 / 5; }
  .s-feature__card { position: relative; left: auto; bottom: auto; max-width: none; margin: -56px 12px 12px; }
  .s-hero__actions .s-btn, .s-cta__inner .s-btn { width: 100%; justify-content: space-between; }
  .s-toolbar { flex-direction: column; align-items: stretch; }
  .s-caption { flex-direction: column; gap: 4px; }
  .s-footer__legal { flex-direction: column; }
  .s-footer { margin-inline: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .s-reveal, .project-motion-pending { opacity: 1 !important; transform: none !important; }
  .s-reveal .s-media { clip-path: none !important; }
  .s-reveal .s-media img, .s-hero__media img, .s-feature img, .s-tile img, .preview-project-card img { transform: none !important; }
  .s-marquee__track { animation: none !important; }
  .s-progress { display: none; }
}

/* =====================================================================
   Legacy pages: project details, the Careers application page and the
   shared header and footer that site.js renders. These keep their markup
   and behaviour; only their appearance moves to the Studio Ledger system.
   ===================================================================== */

body.studio [hidden] { display: none !important; }
body.studio .eyebrow { font: 600 12px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-2); margin: 0 0 18px; }
body.studio h1, body.studio h2, body.studio h3 { font-family: var(--display); font-weight: 400; color: var(--ink); letter-spacing: -0.015em; text-wrap: balance; }
body.studio .lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 44ch; margin: 24px 0 0; }
body.studio .section-wrap { max-width: var(--max); margin-inline: auto; padding: clamp(56px, 8vw, 120px) var(--gutter); }
body.studio .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
body.studio .section-heading h2, body.studio .application-intro h2, body.studio .contact-callout h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.05; margin: 0; }

/* Buttons used by legacy markup */
body.studio .button { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
body.studio .button-dark { background: var(--ink); color: var(--paper); }
body.studio .button-dark:hover { background: transparent; color: var(--ink); }
body.studio button.button { font-family: var(--sans); }

/* ---------- Shared header (site.js renders the links) ---------- */
body.studio .site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; padding: 0 var(--gutter); background: var(--ink); color: #f3f0e8; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
body.studio .site-header .brand { display: inline-flex; align-items: center; gap: 20px; text-decoration: none; flex: none; }
body.studio .site-header .brand img, body.studio .dual-logo-frame img { height: 60px; width: auto; max-width: none; }
body.studio .site-header .brand .tkngu-logo { height: 26px; }
body.studio .dual-logo-frame { display: inline-flex; background: none; padding: 0; border: 0; box-shadow: none; border-radius: 0; }
body.studio .primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
body.studio .primary-nav a { font: 500 14px/1 var(--sans); color: #cfd6d0; text-decoration: none; padding-block: 8px; white-space: nowrap; transition: color .25s var(--ease); }
body.studio .primary-nav a:hover, body.studio .primary-nav a[aria-current="page"] { color: #f3f0e8; }
body.studio .primary-nav .header-search-link { display: none; }
body.studio .primary-nav .tracker-link { font: 600 13px/1 var(--sans); padding: 12px 16px; border: 1px solid rgba(243, 240, 232, 0.55); border-radius: 999px; color: #f3f0e8; }
body.studio .primary-nav .tracker-link:hover { background: #f3f0e8; color: var(--ink); border-color: #f3f0e8; }
body.studio .site-header .menu-toggle { display: none; width: 48px; height: 48px; border: 1px solid rgba(243, 240, 232, 0.45); border-radius: 999px; background: transparent; cursor: pointer; position: relative; padding: 0; flex: none; }
body.studio .site-header .menu-toggle i { position: absolute; left: 50%; width: 18px; height: 1.5px; background: #f3f0e8; transform: translateX(-50%); transition: transform .35s var(--ease), opacity .2s; }
body.studio .site-header .menu-toggle i:nth-of-type(1) { top: 19px; }
body.studio .site-header .menu-toggle i:nth-of-type(2) { top: 23px; }
body.studio .site-header .menu-toggle i:nth-of-type(3) { top: 27px; }
body.studio .site-header .menu-toggle.is-open i:nth-of-type(1) { transform: translate(-50%, 4px) rotate(45deg); }
body.studio .site-header .menu-toggle.is-open i:nth-of-type(2) { opacity: 0; }
body.studio .site-header .menu-toggle.is-open i:nth-of-type(3) { transform: translate(-50%, -4px) rotate(-45deg); }

@media (max-width: 1100px) {
  body.studio .site-header .menu-toggle { display: inline-block; }
  body.studio .site-header .brand .dual-logo-frame img { height: 46px; }
  body.studio .site-header .brand .tkngu-logo { height: 20px; }
  body.studio .primary-nav { position: fixed; inset: 92px 0 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 16px var(--gutter) 40px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  body.studio .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  body.studio .primary-nav a { font: 400 clamp(1.8rem, 6vw, 2.4rem)/1.1 var(--display); color: #f3f0e8; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  body.studio .primary-nav .tracker-link { margin-top: 28px; border: 0; padding: 0; font: 600 15px/1 var(--sans); color: #c9b27c; border-radius: 0; }
  body.studio .primary-nav .tracker-link:hover { background: none; color: #f3f0e8; }
  body.studio .site-header { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Shared footer (site.js renders it) ---------- */
body.studio .site-footer { background: var(--ink); color: #cfd5d1; padding: clamp(56px, 7vw, 96px) var(--gutter) 36px; }
body.studio .site-footer .footer-top { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; max-width: var(--max); margin: 0 auto; }
body.studio .site-footer .footer-brand { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; }
body.studio .site-footer .footer-brand img { height: 54px; width: auto; object-fit: contain; }
body.studio .site-footer .footer-top p { margin: 0; color: #aab3ad; max-width: 40ch; }
body.studio .site-footer .footer-tracker { font: 600 13px/1 var(--sans); color: #f3f0e8; text-decoration: none; padding: 12px 16px; border: 1px solid rgba(243, 240, 232, 0.55); border-radius: 999px; }
body.studio .site-footer .footer-tracker:hover { background: #f3f0e8; color: var(--ink); }
body.studio .site-footer .footer-bottom { max-width: var(--max); margin: 36px auto 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8c968f; }
body.studio .site-footer .footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
body.studio .site-footer .footer-bottom a { color: #f0ece2; text-decoration: none; font-size: 14px; }
body.studio .site-footer .footer-bottom a:hover { color: #c9b27c; }

/* ---------- Project detail ---------- */
body.studio .project-detail-intro { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 110px) var(--gutter) clamp(32px, 4vw, 56px); display: grid; gap: 4px; }
body.studio .project-detail-intro h1 { font-size: clamp(2.6rem, 5vw, 5.1rem); line-height: 1; margin: 0; }
body.studio .project-detail-intro .lead { margin-top: 26px; }
body.studio .back-link { font: 600 13px/1 var(--sans); letter-spacing: 0.02em; color: var(--muted); text-decoration: none; margin-bottom: 40px; justify-self: start; border-bottom: 1px solid var(--rule-strong); padding-bottom: 6px; }
body.studio .back-link:hover { color: var(--ink); border-color: var(--ink); }
body.studio .detail-hero { margin: 0 auto; max-width: var(--max); padding: 0 var(--gutter); }
body.studio .detail-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
body.studio .detail-hero figcaption, body.studio .project-gallery figcaption { margin-top: 14px; font: 500 13px/1.4 var(--sans); color: var(--muted); }
body.studio .project-gallery { max-width: var(--max); margin: clamp(40px, 5vw, 72px) auto 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
body.studio .project-gallery figure { margin: 0; }
body.studio .project-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
body.studio .project-gallery figure:first-child { grid-column: 1 / -1; }
body.studio .project-gallery figure:first-child img { aspect-ratio: 16 / 9; }
body.studio .next-project { max-width: var(--max); margin: clamp(56px, 8vw, 120px) auto 0; padding: clamp(48px, 6vw, 96px) var(--gutter); border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
body.studio .next-project a { font: 600 15px/1 var(--sans); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 6px; }
body.studio .empty-state { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter); }
body.studio .empty-state h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); margin: 0 0 32px; }

/* ---------- Careers: landing hero, vacancies and application ---------- */
body.studio .careers-hero { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 110px) var(--gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 32px); align-items: center; row-gap: 48px; }
body.studio .careers-hero-copy { grid-column: 1 / span 6; }
body.studio .careers-hero h1 { font-size: clamp(2.6rem, 5vw, 5.1rem); line-height: 1; margin: 0; }
body.studio .careers-hero .button { margin-top: 36px; }
body.studio .careers-poster { grid-column: 8 / span 5; margin: 0; }
body.studio .careers-poster img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
body.studio .careers-poster figcaption { margin-top: 14px; font: 500 13px/1.4 var(--sans); color: var(--muted); }
body.studio .career-job-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; padding: 32px 0; border-top: 2px solid var(--ink); align-items: start; }
body.studio .career-job-card:last-child { border-bottom: 1px solid var(--rule); }
body.studio .career-job-heading h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 0; }
body.studio .career-job-summary { margin: 14px 0 0; color: var(--ink-2); max-width: 60ch; }
body.studio .career-job-details { margin: 0; font-size: 14px; color: var(--muted); }
body.studio .career-job-card .button { justify-self: end; }
body.studio .career-open-label { font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-2); }
body.studio .career-no-jobs, body.studio .career-experience-note { color: var(--ink-2); }
body.studio .application-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
body.studio .application-intro .lead { font-size: 1.05rem; }
body.studio .application-contact a { color: var(--green-2); }
body.studio .career-form { display: grid; gap: 22px; }
body.studio .career-form label { display: grid; gap: 8px; font: 600 14px/1.3 var(--sans); color: var(--ink); }
body.studio .career-form input:not([type="checkbox"]):not([type="file"]), body.studio .career-form textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: #fbfaf6; border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 14px 16px; min-height: 48px; }
body.studio .career-form textarea { min-height: 120px; resize: vertical; }
body.studio .career-form input:focus, body.studio .career-form textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
body.studio .career-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
body.studio .career-file-fields { display: grid; gap: 18px; }
body.studio .file-hint, body.studio .file-size-note, body.studio .optional-label { font: 500 13px/1.4 var(--sans); color: var(--muted); }
body.studio .career-consent { display: flex; gap: 14px; align-items: start; font: 400 14px/1.6 var(--sans); color: var(--ink-2); }
body.studio .career-consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--green-2); }
body.studio .career-honeypot { position: absolute; left: -9999px; }
body.studio .career-form-message { font: 600 14px/1.5 var(--sans); padding: 16px 18px; border-left: 3px solid var(--green-2); background: var(--paper-2); margin: 0; }
body.studio .career-submit { justify-self: start; cursor: pointer; }
body.studio .career-apply-prompt { margin-top: 28px; padding: 22px; background: var(--paper-2); }
body.studio .career-apply-prompt p { margin: 0; color: var(--ink-2); }
body.studio .contact-callout { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--rule); }

@media (max-width: 1100px) {
  body.studio .careers-hero-copy, body.studio .careers-poster { grid-column: 1 / -1; }
  body.studio .careers-poster { max-width: 560px; }
}
@media (max-width: 900px) {
  body.studio .application-section, body.studio .career-form-grid { grid-template-columns: 1fr; }
  body.studio .career-job-card { grid-template-columns: 1fr; }
  body.studio .career-job-card .button { justify-self: start; }
  body.studio .project-gallery { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body.studio .section-heading { flex-direction: column; align-items: start; }
  body.studio .site-footer .footer-brand img { height: 72px; }
  body.studio .project-detail-intro .lead, body.studio .careers-hero .lead { font-size: 1.05rem; }
  body.studio .button, body.studio .button-dark { width: 100%; justify-content: center; }
  body.studio .career-job-card .button { width: auto; }
}

/* ---------- Atelier treatment for the legacy pages ---------- */
body.studio .site-header {
  position: sticky; top: 12px; z-index: 60; width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 12px auto -80px; min-height: 68px; padding: 0 12px 0 26px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px;
  background: rgba(11, 19, 16, 0.78); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 10px 40px rgba(11, 19, 16, 0.22);
}
body.studio .site-header .brand img, body.studio .dual-logo-frame img { height: 40px; }
body.studio .site-header .brand .tkngu-logo { height: 40px; }
body.studio .primary-nav { gap: 4px; }
body.studio .primary-nav a { padding: 12px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px; }
body.studio .primary-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
body.studio .primary-nav a[aria-current="page"] { background: #f5f2ea; color: var(--ink); }
body.studio .primary-nav .tracker-link { margin-left: 8px; border: 0; background: linear-gradient(135deg, #e6cd8b, var(--brass)); color: var(--ink); padding: 15px 22px; font-weight: 700; }
body.studio .primary-nav .tracker-link:hover { filter: brightness(1.08); background: linear-gradient(135deg, #e6cd8b, var(--brass)); color: var(--ink); }
body.studio .project-detail-intro, body.studio .careers-hero, body.studio .section-wrap:first-child { padding-top: calc(var(--mast) + clamp(48px, 7vw, 110px)); }
body.studio .project-detail-intro h1, body.studio .careers-hero h1 { font-weight: 300; font-size: clamp(2.8rem, 6.4vw, 6.6rem); letter-spacing: -0.03em; }
body.studio .detail-hero img, body.studio .project-gallery img, body.studio .careers-poster img { border-radius: 28px; }
body.studio .detail-hero img { aspect-ratio: 16 / 8; }
body.studio .button { position: relative; overflow: hidden; isolation: isolate; border-radius: 999px; transition: color .5s var(--ease-out), border-color .5s var(--ease-out); }
body.studio .button-dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--brass); transform: translateY(101%); transition: transform .6s var(--ease-out); }
body.studio .button-dark:hover { background: var(--ink); color: var(--ink); border-color: var(--brass); }
body.studio .button-dark:hover::before { transform: none; }
body.studio .career-form input:not([type="checkbox"]):not([type="file"]), body.studio .career-form textarea { border-radius: 16px; background: #faf8f2; transition: border-color .3s, box-shadow .3s; }
body.studio .career-form input:focus, body.studio .career-form textarea:focus { box-shadow: 0 0 0 4px rgba(200, 164, 93, 0.25); }
body.studio .career-job-card { border-top-width: 1px; }
body.studio .site-footer { margin: clamp(8px, 1.6vw, 24px); margin-top: clamp(48px, 6vw, 96px); border-radius: clamp(28px, 4vw, 56px); background: radial-gradient(800px 480px at 90% 0%, rgba(200, 164, 93, 0.16), transparent 62%), radial-gradient(700px 520px at 0% 100%, rgba(40, 140, 108, 0.28), transparent 62%), var(--ink); }
body.studio .site-footer .footer-tracker { border: 0; background: linear-gradient(135deg, #e6cd8b, var(--brass)); color: var(--ink); font-weight: 700; padding: 15px 22px; }
@media (max-width: 1100px) {
  body.studio .site-header { margin-bottom: -72px; min-height: 60px; padding: 0 7px 0 20px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  body.studio .site-header .brand img, body.studio .dual-logo-frame img { height: 34px; }
  body.studio .site-header .brand .tkngu-logo { height: 34px; }
  body.studio .site-footer .footer-brand img { height: 44px; }
  body.studio .primary-nav { inset: 0; padding-top: 96px; background: radial-gradient(600px 420px at 100% 0%, rgba(200, 164, 93, 0.2), transparent 62%), var(--ink); justify-content: center; }
  body.studio .primary-nav a { border-radius: 0; font-weight: 300; }
  body.studio .primary-nav a[aria-current="page"] { background: none; color: #e2c887; }
  body.studio .primary-nav .tracker-link { background: none; color: #e2c887; padding: 22px 0 0; margin-left: 0; }
  body.studio .site-header .menu-toggle { position: relative; z-index: 3; }
  body.studio .site-header .brand { position: relative; z-index: 3; }
}

/* Project detail hero and gallery: Atelier frames over the legacy figure styling. */
body.studio .detail-hero { margin-inline: auto; width: min(var(--max), calc(100% - 2 * var(--gutter))); padding: 0; border: 0; border-radius: 28px; background: var(--paper-3); box-shadow: 0 30px 80px rgba(11, 19, 16, 0.14); overflow: hidden; }
body.studio .detail-hero img { height: 100%; aspect-ratio: auto; border-radius: 0; }
body.studio .detail-hero figcaption { left: 18px; bottom: 18px; padding: 9px 14px; border-radius: 999px; background: rgba(11, 19, 16, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #f5f2ea; font: 700 10px/1.3 var(--sans); letter-spacing: 0.14em; }
body.studio .project-gallery figure { overflow: hidden; border-radius: 28px; background: var(--paper-3); }
body.studio .project-gallery img { border-radius: 0; transition: transform 1.4s var(--ease-out); }
body.studio .project-gallery figure:hover img { transform: scale(1.04); }
body.studio .project-gallery figcaption { padding: 12px 6px 0; }
