/* ==========================================================================
   TRG Media Group
   Palette is two colour temperatures: 3200K (tungsten, dark) and 5600K (daylight).
   Type is Archivo on its width axis: expanded = display, normal = body,
   condensed = metadata. Newsreader italic carries the editorial voice.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */

:root,
.tone-dark,
[data-theme="light"] .tone-flip,
[data-theme="light"] body[data-page="home"] .site-header.is-top {
  --bg: #07181B;
  --bg-2: #0B2327;
  --surface: #0F2C31;
  --text: #EEE8DC;
  --muted: #9FB4B4;
  --line: rgba(238, 232, 220, .16);
  --line-strong: rgba(238, 232, 220, .42);
  --accent: #FFB43A;
  --accent-text: #FFB43A;
  --on-accent: #1A1202;
  --scrim: 7, 24, 27;
}
[data-theme="light"],
.tone-light,
:root:not([data-theme="light"]) .tone-flip {
  --bg: #E8EEEF;
  --bg-2: #DAE4E6;
  --surface: #F5F9F9;
  --text: #07181B;
  --muted: #45605F;
  --line: rgba(var(--ink), .16);
  --line-strong: rgba(var(--ink), .5);
  --accent: #FFB43A;
  --accent-text: #8A5200;
  --on-accent: #1A1202;
  --scrim: 232, 238, 239;
}
.tone-accent {
  --bg: #FFB43A; --bg-2: #F5A524; --surface: #FFC566;
  --text: #1A1202; --muted: #4A3608;
  --line: rgba(26, 18, 2, .22); --line-strong: rgba(26, 18, 2, .6);
  --accent-text: #1A1202;
}
.tone-dark, .tone-light, .tone-flip, .tone-accent { background: var(--bg); color: var(--text); }

:root {
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font);
  --ink: 7, 24, 27;            /* the dark base as r, g, b: overlays on artwork are always this, in either theme */
  --bg-deep: #051215;
  --mark: #0C2529;
  --accent-soft: #FFE2AE;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 64px);
  --header-h: 76px;
  --fs-meta: .75rem;
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.125rem, 1.35vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 2vw, 1.875rem);
  --fs-xl: clamp(2.25rem, 5vw, 4.75rem);
  --fs-display: clamp(2.5rem, 5.9vw, 7.25rem);
  color-scheme: dark;
}
[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { max-width: 62ch; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 1px; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1640px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 11vw, 176px); }
.section--alt { background: var(--bg-2); }
.section__head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: 24px 48px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.section__aside { color: var(--muted); }
@media (max-width: 800px) { .section__head { grid-template-columns: 1fr; } }

/* ---------- Type ---------- */

.h-xl {
  font-size: var(--fs-xl); font-weight: 750; font-stretch: 112%;
  line-height: .98; letter-spacing: -.022em; text-wrap: balance;
}
.h-lg {
  font-size: clamp(1.75rem, 3.2vw, 3rem); font-weight: 700; font-stretch: 108%;
  line-height: 1.04; letter-spacing: -.018em; text-wrap: balance;
}
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--text); max-width: 46ch; }
.serif-lead {
  font-family: var(--serif); font-style: italic; font-weight: 350;
  font-size: clamp(1.5rem, 2.3vw, 2.25rem); line-height: 1.28; letter-spacing: -.005em;
  max-width: 30ch;
}
.meta {
  font-size: var(--fs-meta); font-weight: 600; font-stretch: 78%;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
  color: var(--muted); max-width: none;
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center;
}
.tag { color: var(--accent-text); }
.tag::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; vertical-align: 1px;
}
.tone-accent .tag::before { background: currentColor; }

.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .3s;
  padding-bottom: 2px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link--strong {
  display: inline-block; padding-block: 10px 6px;
  font-weight: 650; font-stretch: 108%;
  background-size: 100% 1px; background-position: 100% 100%;
}
.link--strong:hover { background-size: 0 1px; }

/* Anamorphic de-squeeze: lines open out horizontally, the way a scope lens
   un-squeezes a frame. Uses transform so nothing reflows. */
.squeeze .line { display: block; transform-origin: 0 50%; }
.js .squeeze .line { opacity: 0; transform: scaleX(.4); filter: blur(8px); }
.js .squeeze.is-in .line {
  opacity: 1; transform: none; filter: none;
  transition: transform 1.2s var(--ease), opacity .7s ease, filter .9s ease;
}
.js .squeeze.is-in .line:nth-child(2) { transition-delay: .09s; }
.js .squeeze.is-in .line:nth-child(3) { transition-delay: .18s; }
.js .squeeze.is-in .line:nth-child(4) { transition-delay: .27s; }

/* ---------- Buttons ---------- */

.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  font-weight: 650; font-stretch: 105%; font-size: .9375rem; letter-spacing: .005em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 2px;
  transition: color .35s ease, border-color .35s ease, transform .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease);
}
.btn::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; flex: none;
  transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn:hover::after, .btn:focus-visible::after { transform: translateX(5px) scale(1.25); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary::before { background: var(--accent-soft); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--bg); border-color: var(--text); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--text);
  background: rgba(var(--scrim), .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: background-color .45s ease, border-color .45s ease, color .45s ease;
  view-transition-name: site-header;
}
.js .site-header.is-top { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 58px; padding-inline: var(--gutter);
  transition: height .45s var(--ease);
}
.js .site-header.is-top .site-header__bar { height: var(--header-h); }
.site-header__tools { display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: baseline; text-decoration: none; white-space: nowrap; }
.brand__trg { font-weight: 850; font-stretch: 125%; font-size: 1.375rem; letter-spacing: -.02em; }
.brand__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  margin: 0 10px 0 4px; align-self: center; transform: translateY(3px);
}
.brand__mg {
  font-weight: 400; font-stretch: 86%; font-size: 1rem; letter-spacing: .02em; color: var(--muted);
  max-width: 8em; overflow: hidden;
  transition: max-width .6s var(--ease), opacity .4s ease;
}
.site-header:not(.is-top) .brand__mg { max-width: 0; opacity: 0; }
html:not(.js) .brand__mg { max-width: 8em; opacity: 1; }

.nav__list { display: flex; gap: clamp(18px, 2.2vw, 36px); }
.nav__link {
  position: relative; display: block; padding: 8px 0;
  font-size: .9375rem; font-weight: 500; text-decoration: none;
  color: var(--muted); transition: color .3s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform .45s var(--ease);
}
.nav__link:hover, .nav__link:focus-visible, .nav__link[aria-current] { color: var(--text); }
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__link[aria-current]::before {
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px;
  margin-left: -2.5px; border-radius: 50%; background: var(--accent);
}
.tone-accent .nav__link[aria-current]::before { background: currentColor; }

.kelvin {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: .6875rem; font-weight: 650; font-stretch: 78%; letter-spacing: .1em;
  border: 1px solid var(--line); border-radius: 2px; padding: 2px;
}
.kelvin__opt { padding: 5px 8px; color: var(--muted); border-radius: 1px; transition: background-color .3s, color .3s; }
:root:not([data-theme="light"]) .kelvin__opt[data-k="dark"],
[data-theme="light"] .kelvin__opt[data-k="light"] { background: var(--text); color: var(--bg); }
.kelvin:hover { border-color: var(--line-strong); }

.menu-toggle { display: none; align-items: center; gap: 12px; min-height: 44px; font-size: .9375rem; font-weight: 600; }
.menu-toggle__bars { position: relative; width: 26px; height: 12px; }
.menu-toggle__bars i {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--bg); color: var(--text);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__link {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(2rem, 9vw, 3.25rem); font-weight: 750; font-stretch: 112%;
  letter-spacing: -.02em; line-height: 1.1; text-decoration: none;
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s ease, transform .7s var(--ease);
}
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: .12s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: .17s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: .22s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: .27s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: .32s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(6) { transition-delay: .37s; }
.mobile-menu__link[aria-current]::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); align-self: center;
}
.mobile-menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }

@media (max-width: 1080px) {
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 1360px) {
  .site-header--long .nav, .site-header--long .site-header__cta { display: none; }
  .site-header--long .menu-toggle { display: inline-flex; }
}
@media (max-width: 520px) {
  .site-header .kelvin { display: none; }
}
/* without JavaScript the menu button cannot work, so the links stay in the bar */
html:not(.js) .menu-toggle, html:not(.js) .kelvin { display: none; }
html:not(.js) .nav { display: block; }
html:not(.js) .nav__list { flex-wrap: wrap; gap: 0 18px; }
html:not(.js) .site-header__bar { height: auto; min-height: 58px; flex-wrap: wrap; padding-block: 8px; gap: 4px 24px; }

/* ---------- Frame guides, timecode, marks ---------- */

.frame { position: absolute; inset: calc(var(--header-h) + 8px) var(--gutter) 28px; pointer-events: none; z-index: 2; }
.frame__c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--line-strong); }
.frame__c--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.frame__c--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.frame__c--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.frame__c--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.tc { font-variant-numeric: tabular-nums; color: var(--text); gap: 10px; }
.tc__rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: rec 2.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }

.regmark {
  position: absolute; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%;
}
.regmark::before, .regmark::after { content: ""; position: absolute; background: var(--line-strong); }
.regmark::before { left: 50%; top: -12px; bottom: -12px; width: 1px; }
.regmark::after { top: 50%; left: -12px; right: -12px; height: 1px; }
.regmark--tr { top: clamp(28px, 4vw, 56px); right: var(--gutter); }

.ruler {
  height: 14px; margin-inline: var(--gutter);
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px);
  background-size: auto 100%, auto 50%; background-repeat: repeat-x; background-position: 0 100%;
}

/* ---------- Plates (generated imagery) ---------- */

.plate {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: var(--ratio, 1.5);
  background: linear-gradient(160deg, #0F3238, #061417);
}
.plate svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.1s var(--ease), clip-path 1.2s var(--ease); }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), clip-path 1.2s var(--ease); }
.plate--fill { position: absolute; inset: 0; aspect-ratio: auto; }
/* the wipe clips the artwork, never the observed box, so IntersectionObserver still sees it */
.js .plate[data-wipe]:not(.is-in) { background: none; }
.js .plate[data-wipe]:not(.is-in) svg, .js .plate[data-wipe]:not(.is-in) img { clip-path: inset(0 0 100% 0); }
.plate[data-wipe].is-in svg, .plate[data-wipe].is-in img { clip-path: inset(0); }
a:hover > .plate svg, a:focus-visible > .plate svg, .g-item:hover .plate svg, .g-item:focus-visible .plate svg,
a:hover > .plate img, a:focus-visible > .plate img, .g-item:hover .plate img, .g-item:focus-visible .plate img,
.post:hover .plate svg, .post:hover .plate img, .lead-story:hover .plate svg, .lead-story:hover .plate img { transform: scale(1.05); }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: min(100svh, 1240px); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--header-h) + 8px);
  background:
    radial-gradient(120% 90% at 92% -10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, var(--surface), transparent 60%),
    var(--bg);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__top, .hero__body, .hero__rail { position: relative; z-index: 3; }
.hero__top { display: flex; justify-content: space-between; padding-top: 18px; padding-inline: calc(var(--gutter) + 38px); }
.hero__body { align-self: end; padding-block: clamp(32px, 6vh, 88px) clamp(40px, 7vh, 96px); }
.hero__title {
  font-size: var(--fs-display); font-weight: 800; font-stretch: 114%;
  line-height: .93; letter-spacing: -.03em;
  text-shadow: 0 2px 40px rgba(var(--ink), .55);
}
.hero__sub { margin-top: clamp(28px, 4vh, 48px); display: grid; gap: 28px; }
.hero__sub .lede { color: #D5DAD3; }
.hero__rail {
  display: flex; border-top: 1px solid var(--line);
  padding-block: 0; margin-bottom: 28px;
}
.hero__rail a {
  flex: 1; padding: 18px 0 20px; text-decoration: none;
  font-size: var(--fs-meta); font-weight: 600; font-stretch: 78%; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); position: relative; transition: color .3s;
}
.hero__rail a::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease);
}
.hero__rail a:hover, .hero__rail a:focus-visible { color: var(--text); }
.hero__rail a:hover::before, .hero__rail a:focus-visible::before { transform: scaleX(1); }

@media (max-width: 760px) {
  .hero__title { font-stretch: 100%; font-size: clamp(2.5rem, 11.4vw, 4.5rem); }
  /* leaves a clear band under the timecode for the lit TRG letters */
  .hero__body { padding-top: calc(36vw + 56px); }
  .hero__top { padding-inline: calc(var(--gutter) + 14px); }
  .hero__rail { flex-wrap: wrap; border-top: 0; margin-bottom: 20px; }
  .hero__rail a { flex: 1 1 50%; border-top: 1px solid var(--line); padding: 13px 0; }
  .frame { inset-block-end: 12px; }
  .frame__c { width: 14px; height: 14px; }
}

/* ---------- Intro ---------- */

.intro { position: relative; padding-block: clamp(88px, 12vw, 190px) 0; }
.intro__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px clamp(40px, 6vw, 120px); align-items: end;
  padding-bottom: clamp(72px, 9vw, 150px);
}
.intro__verbs {
  font-size: clamp(2.75rem, 6.1vw, 7.25rem); font-weight: 820; font-stretch: 118%;
  line-height: .94; letter-spacing: -.035em; white-space: nowrap;
}
.intro__verbs .line:nth-child(2) { padding-left: .4em; }
.intro__verbs .line:nth-child(3) { padding-left: .8em; }
.intro__copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: start; padding-bottom: .6rem; }
.intro__copy p:not(.serif-lead) { color: var(--muted); }
@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__verbs { font-size: clamp(1.9rem, 10.2vw, 6rem); }
  .intro__verbs .line:nth-child(2) { padding-left: .2em; }
  .intro__verbs .line:nth-child(3) { padding-left: .4em; }
  .regmark--tr { display: none; }
}

/* ---------- Service panels (home) ---------- */

.panels { display: flex; height: clamp(500px, 70vh, 760px); border-block: 1px solid var(--line); padding-inline: 0; max-width: calc(1640px - 2 * var(--gutter)); width: calc(100% - 2 * var(--gutter)); }
.panel { position: relative; flex: 1 1 0; min-width: 0; border-left: 1px solid var(--line); transition: flex-grow .8s var(--ease); }
.panel:first-child { border-left: 0; }
.panel__link {
  position: relative; isolation: isolate; overflow: hidden;
  display: block; height: 100%; text-decoration: none; color: var(--text);
  transition: color .5s ease;
}
.panel__plate { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; opacity: 0; transition: opacity .7s ease; }
.panel__plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--ink),.94) 4%, rgba(var(--ink),.6) 38%, rgba(var(--ink),0) 72%); }
.panel__num {
  position: absolute; top: 22px; left: 24px;
  font-size: clamp(3.25rem, 5vw, 5.5rem); font-weight: 250; font-stretch: 62%;
  line-height: 1; letter-spacing: -.02em; color: var(--muted);
  transition: color .5s ease;
}
.panel__title {
  position: absolute; left: 22px; bottom: 26px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: clamp(1.5rem, 2.3vw, 2.375rem); font-weight: 750; font-stretch: 112%;
  letter-spacing: -.015em; line-height: 1; white-space: nowrap;
}
.panel__reveal {
  position: absolute; left: clamp(84px, 7vw, 120px); bottom: 26px; width: min(21rem, 30vw);
  opacity: 0; transform: translateX(-14px);
  transition: opacity .35s ease, transform .7s var(--ease);
}
.panel__desc { font-size: 1.0625rem; line-height: 1.45; }
.panel__more { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.panel__more li { font-size: .9375rem; color: var(--muted); padding: 3px 0; }
.panel__go { display: inline-block; margin-top: 16px; font-weight: 650; font-stretch: 105%; font-size: .9375rem; color: var(--accent-text); }

/* exactly one panel is open: the hovered/focused one, else the first */
.panels:not(:hover):not(:focus-within) .panel:first-child,
.panel:hover, .panel:focus-within { flex-grow: 3.4; }
.panels:not(:hover):not(:focus-within) .panel:first-child .panel__link,
.panel:hover .panel__link, .panel:focus-within .panel__link {
  --text: #EEE8DC; --muted: #A9BCBC; --accent-text: #FFB43A; --line: rgba(238,232,220,.2);
}
.panels:not(:hover):not(:focus-within) .panel:first-child .panel__plate,
.panel:hover .panel__plate, .panel:focus-within .panel__plate { opacity: 1; }
.panels:not(:hover):not(:focus-within) .panel:first-child .panel__num,
.panel:hover .panel__num, .panel:focus-within .panel__num { color: var(--accent-text); }
.panels:not(:hover):not(:focus-within) .panel:first-child .panel__reveal,
.panel:hover .panel__reveal, .panel:focus-within .panel__reveal { opacity: 1; transform: none; transition-delay: .18s; }

@media (max-width: 1000px), (hover: none) {
  .panels { display: block; height: auto; border-bottom: 0; }
  .panel, .panel:first-child { border-left: 0; border-bottom: 1px solid var(--line); }
  .panel__link { display: grid; grid-template-columns: clamp(64px, 12vw, 120px) minmax(0, 1fr); gap: 4px 20px; padding: 28px 0 32px; height: auto; overflow: visible; }
  .panel__link, .panel:hover .panel__link, .panel:focus-within .panel__link,
  .panels:not(:hover):not(:focus-within) .panel:first-child .panel__link { --text: inherit; --muted: inherit; --accent-text: inherit; --line: inherit; }
  .panel__plate { position: relative; inset: auto; grid-column: 1 / -1; aspect-ratio: 3.2; opacity: 1 !important; margin-bottom: 20px; z-index: 0; }
  .panel__plate::after { display: none; }
  .panel__num { position: static; grid-row: 2 / span 2; }
  .panel__title { position: static; writing-mode: horizontal-tb; transform: none; white-space: normal; font-size: clamp(1.625rem, 4.4vw, 2.25rem); align-self: end; }
  .panel__reveal { position: static; width: auto; opacity: 1; transform: none; grid-column: 2; margin-top: 10px; }
  .panel__more ul { display: flex; flex-wrap: wrap; gap: 2px 18px; }
}

/* ---------- Featured work (home, editorial layout) ---------- */

.editorial { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 88px) clamp(20px, 2.4vw, 40px); align-items: start; }
.work { display: block; text-decoration: none; color: inherit; }
.work--a { grid-column: 1 / span 8; }
.work--b { grid-column: 9 / span 4; margin-top: clamp(40px, 8vw, 140px); }
.work--c { grid-column: 2 / span 4; margin-top: clamp(32px, 6vw, 110px); }
.work--d { grid-column: 6 / span 7; }
.work__cap { display: grid; gap: 8px; padding-top: 18px; }
.work__cap p:not(.meta) { color: var(--muted); }
.work__title {
  font-size: var(--fs-h3); font-weight: 750; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.1;
  width: fit-content;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size .6s var(--ease);
}
.work:hover .work__title, .work:focus-visible .work__title { background-size: 100% 2px; }
.work-home__foot { margin-top: clamp(48px, 6vw, 96px); display: flex; justify-content: flex-end; }
@media (max-width: 860px) {
  .editorial { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .work--a { grid-column: 1 / -1; }
  .work--b { grid-column: 2 / -1; margin-top: 0; }
  .work--c { grid-column: 1 / span 4; margin-top: 0; }
  .work--d { grid-column: 1 / -1; }
  .work-home__foot { justify-content: flex-start; }
}

/* ---------- Featured project ---------- */

.feature { position: relative; min-height: 100vh; min-height: min(100svh, 1100px); display: grid; align-items: end; overflow: hidden; }
.feature__visual { position: absolute; inset: -8% 0; will-change: transform; }
.feature::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(var(--ink),.94) 4%, rgba(var(--ink),.25) 55%, rgba(var(--ink),.5));
}
.feature .frame { inset-block-start: 28px; z-index: 3; }
.feature__body {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px clamp(40px, 6vw, 120px); align-items: end;
  padding-block: clamp(140px, 22vh, 260px) clamp(64px, 9vh, 120px);
  padding-inline: calc(var(--gutter) + clamp(0px, 3vw, 38px));
}
.feature__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: start; }
.feature__title { font-size: clamp(3.25rem, 10.5vw, 12rem); font-weight: 850; font-stretch: 120%; line-height: .86; letter-spacing: -.04em; }
.feature__info { border-top: 1px solid var(--line-strong); }
.feature__info > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
dt { font-size: var(--fs-meta); font-weight: 600; font-stretch: 78%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
@media (max-width: 860px) { .feature__body { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { position: relative; overflow: hidden; background: var(--bg-deep); padding-top: clamp(80px, 10vw, 160px); }
.site-footer__lead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; padding-bottom: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.site-footer__statement { font-size: clamp(1.75rem, 3.6vw, 3.5rem); font-weight: 700; font-stretch: 110%; line-height: 1.04; letter-spacing: -.022em; max-width: 19ch; text-wrap: balance; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); gap: 40px clamp(24px, 4vw, 72px); padding-block: clamp(48px, 6vw, 88px); }
.site-footer__cols h2 { margin-bottom: 18px; }
.site-footer__list li { padding: 0; }
.site-footer__list a { display: inline-block; padding-block: 7px 5px; }
.site-footer__about p { color: var(--muted); max-width: 40ch; }
.site-footer__mark {
  display: flex; align-items: flex-end; justify-content: center; gap: 1.5vw;
  font-size: min(30.5vw, 600px); font-weight: 900; font-stretch: 125%; line-height: .74; letter-spacing: -.05em;
  color: var(--mark); user-select: none; white-space: nowrap;
  height: .62em; overflow: hidden; align-items: flex-start; padding-top: .02em;
}
.site-footer__mark i { width: .13em; height: .13em; border-radius: 50%; background: var(--accent); margin-top: .52em; flex: none; }
.site-footer__base a { padding-block: 13px; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding-block: 10px 14px; border-top: 1px solid var(--line); position: relative; }
@media (max-width: 860px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__about { grid-column: 1 / -1; }
}

/* ---------- Interior page slate ---------- */

.slate { position: relative; padding-top: calc(var(--header-h) + clamp(56px, 9vw, 140px)); }
.slate__grid { display: grid; gap: clamp(20px, 2.4vw, 36px); padding-bottom: clamp(48px, 6vw, 96px); }
.slate__title { font-size: clamp(2.5rem, 6.2vw, 7.5rem); font-weight: 820; font-stretch: 116%; line-height: .94; letter-spacing: -.034em; }
.slate__meta { margin-bottom: clamp(28px, 4vw, 56px); justify-content: space-between; }
.slate__side { display: grid; gap: 20px; justify-self: end; width: min(100%, 27rem); }
.slate__side p { color: var(--muted); }
@media (max-width: 900px) { .slate__side { justify-self: start; } }

/* ---------- About ---------- */

.story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px clamp(20px, 2.4vw, 40px); align-items: start; }
.story__head { grid-column: 1 / span 3; position: sticky; top: calc(var(--header-h) + 24px); }
.story__body { grid-column: 4 / span 5; display: grid; gap: 22px; }
.story__body p:not(.serif-lead) { color: var(--muted); }
.story__plate { grid-column: 10 / span 3; margin-top: clamp(0px, 8vw, 120px); }
.note {
  border-left: 2px solid var(--accent); padding: 4px 0 4px 16px;
  font-size: .9375rem; color: var(--muted);
}
@media (max-width: 960px) {
  .story__head { grid-column: 1 / -1; position: static; }
  .story__body { grid-column: 1 / span 8; }
  .story__plate { grid-column: 9 / span 4; margin-top: 0; }
}
@media (max-width: 640px) {
  .story__body, .story__plate { grid-column: 1 / -1; }
  .story__plate { max-width: 70%; }
}

.vision { padding-block: clamp(96px, 13vw, 220px); position: relative; }
.vision__text { font-size: clamp(2.25rem, 6.4vw, 7.5rem); font-weight: 820; font-stretch: 116%; line-height: .94; letter-spacing: -.035em; max-width: none; }
.vision__foot { margin-top: clamp(36px, 5vw, 72px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.vision .regmark { top: clamp(28px, 4vw, 56px); right: var(--gutter); }

.approach { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-top: 1px solid var(--line-strong); }
.approach__item { padding: 32px clamp(20px, 2.4vw, 40px) 8px 0; display: grid; gap: 14px; align-content: start; }
.approach__item + .approach__item { border-left: 1px solid var(--line); padding-left: clamp(20px, 2.4vw, 40px); }
.approach__item p { color: var(--muted); }
.approach__glyph { width: 56px; height: 56px; color: var(--accent-text); margin-bottom: 20px; }
@media (max-width: 800px) {
  .approach { grid-template-columns: 1fr; }
  .approach__item + .approach__item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .approach__item { padding-bottom: 32px; }
}

.timeline { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); overflow-x: auto; scroll-snap-type: x proximity; padding: 8px 0 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.timeline__item { scroll-snap-align: start; position: relative; padding: 44px 32px 8px 0; border-top: 1px solid var(--line-strong); display: grid; gap: 10px; align-content: start; }
.timeline__item::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-strong); }
.timeline__item.is-now::before { background: var(--accent); border-color: var(--accent); }
.timeline__year { font-size: clamp(2.5rem, 4vw, 3.75rem); font-weight: 250; font-stretch: 62%; line-height: 1; color: var(--text); }
.timeline__item h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 108%; }
.timeline__item p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 760px) {
  .timeline { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; border-left: 1px solid var(--line-strong); }
  .timeline__item { border-top: 0; padding: 0 0 40px 28px; }
  .timeline__item::before { top: 12px; left: -6px; }
}

/* ---------- Services page ---------- */

.svc { padding-block: clamp(72px, 9vw, 150px); border-top: 1px solid var(--line); }
.svc:nth-of-type(even) { background: var(--bg-2); }
.svc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(20px, 2.4vw, 40px); align-items: center; }
.svc__text { grid-column: 1 / span 5; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: start; }
.svc__visual { grid-column: 7 / span 6; grid-row: 1; }
.svc:nth-of-type(even) .svc__text { grid-column: 8 / span 5; }
.svc:nth-of-type(even) .svc__visual { grid-column: 1 / span 6; }
.svc__num { font-size: clamp(4.5rem, 9vw, 9rem); font-weight: 220; font-stretch: 62%; line-height: .8; color: var(--accent-text); }
.svc__title { font-size: clamp(2.25rem, 4.1vw, 4.25rem); overflow-wrap: break-word; font-weight: 820; font-stretch: 116%; line-height: .94; letter-spacing: -.03em; }
.svc__text > p { color: var(--muted); }
.svc__list { width: 100%; border-top: 1px solid var(--line); columns: 2; column-gap: 32px; padding-top: 14px; }
.svc__list li { padding: 5px 0; font-size: .9375rem; break-inside: avoid; }
@media (max-width: 900px) {
  .svc__text, .svc:nth-of-type(even) .svc__text { grid-column: 1 / -1; grid-row: 2; }
  .svc__visual, .svc:nth-of-type(even) .svc__visual { grid-column: 1 / -1; grid-row: 1; }
  .svc__visual .plate { --ratio: 1.778 !important; }
}
@media (max-width: 480px) { .svc__list { columns: 1; } }

.closer { text-align: left; }
.closer__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px 64px; align-items: end; }
@media (max-width: 800px) { .closer__grid { grid-template-columns: 1fr; } }

/* ---------- Filters (projects + media) ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 4px 6px; border-block: 1px solid var(--line); padding-block: 10px; margin-bottom: clamp(32px, 4vw, 64px); }
.filter {
  min-height: 40px; padding: 0 16px; border-radius: 2px;
  font-size: .875rem; font-weight: 600; color: var(--muted);
  transition: color .3s, background-color .3s;
}
.filter sup { font-size: .6875rem; font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.filter:hover { color: var(--text); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
}

/* ---------- Projects gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); grid-auto-flow: dense; align-items: start; }
.g-item { position: relative; display: block; width: 100%; text-align: left; grid-column: span 4; }
.g-item[hidden] { display: none; }
.g-wide { grid-column: span 8; }
.g-half { grid-column: span 6; }
.g-full { grid-column: 1 / -1; }
.g-item .plate { display: block; }
.g-item__cap { display: grid; gap: 6px; padding-top: 14px; }
.g-item__title { display: block; font-size: var(--fs-h3); font-weight: 750; font-stretch: 112%; letter-spacing: -.015em; line-height: 1.1; }
.g-item__desc { display: block; color: var(--muted); }
.g-item__view { display: none; }
.gallery.is-filtered .g-item { grid-column: span 6; }

@media (hover: hover) and (pointer: fine) and (min-width: 861px) {
  .g-item__cap {
    position: absolute; inset: auto 0 0 0; padding: 72px 24px 22px;
    --text: #EEE8DC; --muted: #B5C4C4; --accent-text: #FFB43A; color: var(--text);
    background: linear-gradient(0deg, rgba(var(--ink),.95) 12%, rgba(var(--ink),0));
    opacity: 0; transform: translateY(14px);
    transition: opacity .45s ease, transform .7s var(--ease);
    pointer-events: none;
  }
  .g-item:hover .g-item__cap, .g-item:focus-visible .g-item__cap { opacity: 1; transform: none; }
  .g-item__view { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .875rem; font-weight: 650; color: var(--accent-text); }
  .g-item__view::after { content: ""; width: 22px; height: 1px; background: currentColor; transition: width .5s var(--ease); }
  .g-item:hover .g-item__view::after { width: 40px; }
  .g-item::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .4s ease; pointer-events: none; }
  .g-item:hover::after, .g-item:focus-visible::after { border-color: var(--accent); }
}
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .g-item, .g-half { grid-column: span 3; }
  .g-wide, .g-full { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .g-item, .g-half, .gallery.is-filtered .g-item { grid-column: 1 / -1; }
}

/* Project dialog */
.pd { width: min(1180px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); padding: 0; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); overflow: auto; }
.pd::backdrop { background: rgba(3, 12, 14, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pd[open] { animation: pd-in .5s var(--ease); }
@keyframes pd-in { from { opacity: 0; transform: translateY(24px) scale(.985); } }
.pd__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pd__visual { position: relative; min-height: 340px; }
.pd__body { padding: clamp(28px, 3.4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: center; justify-items: start; }
.pd__title { font-size: clamp(2rem, 3.6vw, 3.5rem); font-weight: 820; font-stretch: 116%; line-height: .96; letter-spacing: -.03em; }
.pd__body > p { color: var(--muted); }
.pd__info { width: 100%; border-top: 1px solid var(--line); }
.pd__info > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.pd__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 50%; font-size: 1.25rem; line-height: 1; transition: transform .4s var(--ease), background-color .3s, color .3s; }
.pd__close:hover { transform: rotate(90deg); background: var(--text); color: var(--bg); }
@media (max-width: 800px) { .pd__grid { grid-template-columns: 1fr; } .pd__visual { min-height: 0; aspect-ratio: 1.6; } }

/* ---------- Media page ---------- */

.lead-story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px clamp(20px, 2.4vw, 40px); align-items: end; text-decoration: none; color: inherit; }
.lead-story__visual { grid-column: 1 / span 8; position: relative; }
.lead-story__text { grid-column: 9 / span 4; display: grid; gap: 18px; padding-bottom: 6px; }
.lead-story__title { font-size: clamp(1.9rem, 3.1vw, 3.25rem); font-weight: 800; font-stretch: 112%; line-height: .98; letter-spacing: -.028em; text-wrap: balance; }
.lead-story__deck { font-family: var(--serif); font-style: italic; font-weight: 350; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.35; color: var(--muted); }
@media (max-width: 900px) { .lead-story__visual, .lead-story__text { grid-column: 1 / -1; } }

.posts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 4.4vw, 72px) clamp(20px, 2.4vw, 40px); align-items: start; }
.post { grid-column: span 4; display: grid; gap: 14px; text-decoration: none; color: inherit; align-content: start; }
.post[hidden] { display: none; }
.post--lg { grid-column: span 6; }
.post__visual { position: relative; }
.post__title { font-size: 1.375rem; font-weight: 720; font-stretch: 108%; line-height: 1.14; letter-spacing: -.012em; text-wrap: balance; }
.post--lg .post__title { font-size: clamp(1.625rem, 2.5vw, 2.375rem); font-weight: 780; font-stretch: 112%; line-height: 1.04; letter-spacing: -.022em; }
.post__title span { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .6s var(--ease); }
.post:hover .post__title span, .post:focus-visible .post__title span,
.lead-story:hover .lead-story__title span, .lead-story:focus-visible .lead-story__title span { background-size: 100% 2px; }
.lead-story__title span { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size .7s var(--ease); }
.post p:not(.meta) { color: var(--muted); font-size: .9875rem; }
.post--text { border-top: 1px solid var(--line-strong); padding-top: 18px; }
.play {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px;
  background: rgba(var(--ink),.78); color: #EEE8DC; border-radius: 2px;
  font-size: .75rem; font-weight: 650; font-stretch: 80%; letter-spacing: .1em; font-variant-numeric: tabular-nums;
}
.play::before { content: ""; border-left: 10px solid var(--accent); border-block: 6px solid transparent; }
@media (max-width: 900px) {
  .post, .post--lg { grid-column: span 6; }
}
@media (max-width: 560px) {
  .post, .post--lg { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px clamp(40px, 7vw, 140px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.field { display: grid; gap: 6px; position: relative; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-meta); font-weight: 600; font-stretch: 78%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1.1875rem; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 10px 0 14px; transition: border-color .3s;
}
.field textarea { min-height: 9.5rem; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .6; }
.field::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent-text); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field:focus-within label { color: var(--text); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field.has-error input, .field.has-error textarea { border-bottom-color: #E5484D; }
.field__error { font-size: .875rem; color: #FF8A8E; min-height: 0; }
[data-theme="light"] .field__error { color: #B3261E; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.form__status { font-size: .9375rem; color: var(--muted); max-width: 44ch; }
.form__status.is-ok { color: var(--text); }
.contact__aside { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.contact__row { display: grid; gap: 6px; padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.contact__row .value { font-size: 1.1875rem; font-weight: 550; }
.pd__info > div[hidden] { display: none; }
.placeholder { color: var(--muted); font-family: var(--serif); font-style: italic; font-weight: 350; font-size: 1.25rem; }
.contact__social { display: flex; flex-wrap: wrap; gap: 0 20px; }
.contact__social a { padding-block: 9px 5px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.lost { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; gap: 28px; justify-items: start; padding-block: calc(var(--header-h) + 48px) 96px; }
.lost__code { font-size: clamp(7rem, 26vw, 24rem); font-weight: 880; font-stretch: 125%; line-height: .78; letter-spacing: -.05em; }

/* ---------- Cursor badge + grain ---------- */

.view-cursor {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-size: .8125rem; font-weight: 700; font-stretch: 90%; letter-spacing: .08em; text-transform: uppercase;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
  transition: transform .45s var(--ease);
}
.view-cursor.is-on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media not ((hover: hover) and (pointer: fine)) { .view-cursor { display: none; } }

.grain {
  position: fixed; inset: -50%; z-index: 110; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] .grain { opacity: .035; filter: invert(1); }

/* ---------- Page transitions ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }
::view-transition-group(site-header) { animation-duration: .3s; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .squeeze .line { opacity: 1; transform: none; filter: none; }
  .js .plate[data-wipe]:not(.is-in) svg, .js .plate[data-wipe]:not(.is-in) img { clip-path: none; }
  .view-cursor { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  @view-transition { navigation: none; }
}

/* ---------- Ultrawide ---------- */
@media (min-width: 2200px) {
  :root { --fs-body: 1.125rem; }
  .wrap { max-width: 1840px; }
  .panels { max-width: calc(1840px - 2 * var(--gutter)); }
}

/* ---------- Added sections (blocks) ---------- */
.story--wide .story__body { grid-column: 4 / span 7; }
.story--wide .story__body .btn { justify-self: start; margin-top: 8px; }
.block--text .story__body p:not(.lede) { color: var(--muted); }
.bm { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(20px, 2.4vw, 40px); align-items: center; }
.bm__text { grid-column: 1 / span 5; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: start; }
.bm__visual { grid-column: 7 / span 6; grid-row: 1; }
.bm--left .bm__text { grid-column: 8 / span 5; }
.bm--left .bm__visual { grid-column: 1 / span 6; }
.bm__text p:not(.lede) { color: var(--muted); }
.block--statement .vision__text { max-width: 22ch; text-wrap: balance; }
.block--statement:not(.tone-accent):not(.tone-dark):not(.tone-light) { background: transparent; }
@media (max-width: 960px) { .story--wide .story__body { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .bm__text, .bm--left .bm__text { grid-column: 1 / -1; grid-row: 2; }
  .bm__visual, .bm--left .bm__visual { grid-column: 1 / -1; grid-row: 1; }
  .bm__visual .plate { --ratio: 1.778 !important; }
}

/* ---------- Uploaded logo ---------- */
.brand__logo { display: block; height: 32px; width: auto; max-width: min(220px, 46vw); object-fit: contain; transition: height .45s var(--ease); }
.site-header:not(.is-top) .brand__logo { height: 26px; }
.brand__logo--light { display: none; }
[data-theme="light"] .brand__logo--dark { display: none; }
[data-theme="light"] .brand__logo--light { display: block; }
/* places that stay dark in the light theme keep the dark-background logo */
[data-theme="light"] body[data-page="home"] .site-header.is-top .brand__logo--dark, [data-theme="light"] .tone-dark .brand__logo--dark, .signin .brand__logo--dark { display: block; }
[data-theme="light"] body[data-page="home"] .site-header.is-top .brand__logo--light, [data-theme="light"] .tone-dark .brand__logo--light, .signin .brand__logo--light { display: none; }

/* ---------- Contact form extras ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* ---------- Owner-selectable heading font ---------- */
.h-xl, .h-lg, .hero__title, .slate__title, .intro__verbs, .feature__title, .vision__text, .svc__title, .svc__num, .lead-story__title,
.post__title, .work__title, .g-item__title, .panel__title, .panel__num, .site-footer__statement, .site-footer__mark, .lost__code,
.pd__title, .brand__trg, .mobile-menu__link, .timeline__item h3, .timeline__year { font-family: var(--font-display); }

/* ---------- More added sections: gallery, columns, quote, video, questions ---------- */
.block__title { margin-bottom: clamp(32px, 4vw, 64px); max-width: 22ch; }
.bgal { display: grid; gap: clamp(16px, 2vw, 32px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bgal--1 { grid-template-columns: minmax(0, 1fr); } .bgal--2, .bgal--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bgal__item { display: grid; gap: 12px; align-content: start; }
.bgal__item figcaption { color: var(--muted); font-size: .9375rem; }
.bgal--1 .plate { --ratio: 2.2 !important; }
.bcols .approach__item h3 { font-size: clamp(1.375rem, 2.2vw, 2rem); }
.bquote { margin: 0; display: grid; gap: 28px; max-width: 60rem; }
.bquote__text { font-family: var(--serif); font-style: italic; font-weight: 350; font-size: clamp(1.75rem, 3.6vw, 3.5rem); line-height: 1.18; letter-spacing: -.01em; max-width: none; text-wrap: balance; }
.bquote__text::before { content: "\201C"; } .bquote__text::after { content: "\201D"; }
.bquote__by { font-size: var(--fs-meta); font-weight: 600; font-stretch: 78%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bquote__by::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 14px; }
.bvideo { position: relative; aspect-ratio: 16 / 9; background: var(--bg-deep); border: 1px solid var(--line); overflow: hidden; }
.bvideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bvideo__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); max-width: none; }
.bvideo__cap { margin-top: 14px; color: var(--muted); font-size: .9375rem; }
.bfaq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(24px, 5vw, 96px); align-items: start; }
.bfaq .block__title { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.bfaq__list { border-top: 1px solid var(--line-strong); }
.bfaq__item { border-bottom: 1px solid var(--line); }
.bfaq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; padding: 22px 0; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 650; font-stretch: 106%; }
.bfaq__item summary::-webkit-details-marker { display: none; }
.bfaq__item summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(45deg) translate(-3px, -3px); transition: transform .4s var(--ease); }
.bfaq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.bfaq__item p { padding: 0 0 26px; color: var(--muted); }
@media (max-width: 860px) {
  .bgal, .bgal--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bfaq { grid-template-columns: 1fr; } .bfaq .block__title { position: static; }
}
@media (max-width: 520px) { .bgal, .bgal--2, .bgal--4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Dropdown submenus ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nav__item--sub { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__more { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px; color: var(--muted); transition: color .3s; }
.nav__more--label { padding: 8px 0; font-size: .9375rem; font-weight: 500; }
.nav__more i { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .4s var(--ease); }
.nav__item--sub:hover .nav__more, .nav__more:hover, .nav__more:focus-visible, .nav__item--sub.is-inside .nav__more--label { color: var(--text); }
.nav__item--sub.is-inside > .nav__more--label::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent); }
.nav__sub {
  position: absolute; top: 100%; left: -16px; z-index: 5; min-width: 200px; padding: 8px 0; margin-top: 8px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s ease, transform .4s var(--ease), visibility 0s .25s;
}
.nav__sub::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }      /* bridges the gap so the pointer can reach it */
.nav__item--sub:hover .nav__sub, .nav__item--sub:focus-within .nav__sub, .nav__item--sub.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__item--sub:hover .nav__more i, .nav__item--sub.is-open .nav__more i { transform: rotate(-135deg) translateY(-2px); }
.nav__sublink { display: block; padding: 9px 18px; font-size: .9375rem; text-decoration: none; color: var(--muted); white-space: nowrap; transition: color .2s, background-color .2s; }
.nav__sublink:hover, .nav__sublink:focus-visible, .nav__sublink[aria-current] { color: var(--text); background: var(--bg-2); }
.nav__sublink[aria-current] { box-shadow: inset 2px 0 0 var(--accent); }
.mobile-menu__link--sub { font-size: clamp(1.25rem, 5vw, 1.75rem); font-weight: 600; font-stretch: 100%; padding-left: 22px; color: var(--muted); }
.mobile-menu__link--label { color: var(--muted); }
html:not(.js) .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0; margin: 0; display: flex; gap: 12px; }
