@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Variable.woff2") format("woff2-variations"), url("fonts/DMSans-Variable.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans-Italic-Variable.woff2") format("woff2-variations"), url("fonts/DMSans-Italic-Variable.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }

:root {
  /* Layout: 12-column grid. Labels sit in the left half, statements and project text in the
     right half, work rows pin and stack as you scroll. Style: near-black, warm off-white type
     in DM Sans, small caps labels, electric blue as the one accent. Ronij's photo leads. */
  /* Palette: Electric Blue #1D5DEF, Black #050505, Beige #DCD8D4, Light Grey #F7F7F7, White #FFFFFF.
     Surfaces and lines are tints of the black; small blue text uses a lighter tint for contrast. */
  --bg: #050505;
  --surface: #0E0E0E;
  --raise: #151515;
  --line: #222222;
  --line-2: #333333;
  --ink: #F7F7F7;
  --ink-2: #DCD8D4;
  --muted: #8C8985;
  --accent: #1D5DEF;
  --accent-text: #5B8AF5;
  --on-accent: #FFFFFF;
  --font-display: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(14px, 1.6vw, 24px);
  --nav-h: 52px;
  --r: 6px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, dl, dd { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip-link:focus { left: var(--pad); top: 8px; }

.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pad); }
.mono { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.count { color: var(--accent-text); }
.t-intro { font-size: clamp(24px, 2.3vw, 38px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 500; color: var(--ink); text-wrap: balance; }

/* ---------------- Intro loader ----------------
   A count to 100 with an electric blue line, then the panel lifts away and the
   page's own entrance plays underneath. First page of a visit only. */
.loader { display: none; position: fixed; inset: 0; z-index: 200; background: var(--bg); color: var(--ink);
  flex-direction: column; justify-content: space-between; padding: 18px var(--pad) clamp(24px, 4vw, 44px); }
html.is-loading .loader, .loader.is-done { display: flex; }
html.is-loading { overflow: hidden; }
.loader__top { display: flex; justify-content: space-between; color: var(--ink-2); }
.loader__count { font-size: clamp(96px, 19vw, 300px); font-weight: 300; line-height: .82; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums; margin-left: -0.04em; }
.loader__bar { height: 2px; margin-top: clamp(16px, 2vw, 26px); background: var(--line); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.loader__top, .loader__bottom { transition: opacity .35s var(--ease), transform .6s var(--ease); }
.loader.is-done { transform: translateY(-100%); transition: transform .95s var(--ease-io) .12s; pointer-events: none; }
.loader.is-done .loader__top, .loader.is-done .loader__bottom { opacity: 0; transform: translateY(-24px); }
/* Hold the page's entrance until the loader lifts */
html.is-loading [data-rise], html.is-loading [data-fade], html.is-loading .hero__portrait,
html.is-loading .portrait__layer img, html.is-loading .portrait__ph svg { animation-play-state: paused; }

/* ---------------- Motion: load rise, page transitions ---------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes twinkle { 0%, 100% { transform: rotate(0) scale(1); opacity: 1; } 50% { transform: rotate(90deg) scale(.6); opacity: .45; } }
[data-rise] { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
[data-fade] { animation: fade .8s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }

@media (hover: hover) and (pointer: fine) { @view-transition { navigation: auto; } }
.navbar { view-transition-name: navbar; }
::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------------- Buttons: fill sweeps in from the left, out to the right ---------------- */
.btn, .pill {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 12px 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  background: transparent; color: var(--ink); cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before, .pill::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--ink);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .55s var(--ease-io);
}
.btn:hover::before, .pill:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn:hover, .pill:hover { color: var(--bg); border-color: var(--ink); }
.btn svg, .pill svg { transition: transform .45s var(--ease); }
.btn:hover svg, .pill:hover svg { transform: translate(2px, -2px); }
.btn--solid, .pill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--solid:hover, .pill:hover { color: var(--bg); border-color: var(--ink); }
.arrow-btn {
  position: relative; isolation: isolate; overflow: hidden;
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--ink);
  display: grid; place-items: center;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.arrow-btn::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .5s var(--ease-io); z-index: -1; }
.featured-row:hover .arrow-btn, .arrow-btn:hover { color: var(--on-accent); border-color: var(--accent); }
.featured-row:hover .arrow-btn::before, .arrow-btn:hover::before { transform: scale(1); }
.arrow-btn svg { transition: transform .45s var(--ease); }
.featured-row:hover .arrow-btn svg { transform: rotate(45deg); }

/* ---------------- Navbar ---------------- */
.navbar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pad);
  align-items: center;
  background: rgba(5, 5, 5, .95);
  border-bottom: 1px solid var(--line);
}
.navbar__logo { grid-column: 1 / 7; justify-self: start; white-space: nowrap; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); transition: color .25s ease; }
.navbar__logo:hover { color: var(--ink); }
.navbar__center { grid-column: 7 / 10; display: flex; gap: 20px; }
.navbar__right { grid-column: 10 / 13; justify-self: end; }
.navbar__link { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: color .25s; }
.navbar__link:hover { color: var(--ink); }
.navbar__link.is-active { color: var(--ink); }
.navbar__link.is-active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.navbar__toggle { display: none; grid-column: 7 / 13; justify-self: end; background: none; border: 0; padding: 8px 0; cursor: pointer; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.navmenu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49;
  background: var(--bg);
  padding: 28px var(--pad);
  display: flex; flex-direction: column; gap: 2px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease-io), visibility .6s;
}
.navmenu a { font-size: 48px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
body.menu-open .navmenu a { opacity: 1; transform: none; }
body.menu-open .navmenu a:nth-child(2) { transition-delay: .06s; }
body.menu-open .navmenu a:nth-child(3) { transition-delay: .12s; }
body.menu-open .navmenu a:nth-child(4) { transition-delay: .18s; }
.navmenu a.is-active { color: var(--accent-text); }
.navmenu a.navmenu__small { margin-top: auto; font: 400 12px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
body.menu-open .navmenu { clip-path: inset(0 0 0 0); visibility: visible; }
body.menu-open { overflow: hidden; }

main { display: block; }

/* ---------------- Hero: portrait + headline + details ---------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr;
  column-gap: var(--pad);
  padding: calc(var(--nav-h) + 20px) var(--pad) 0;
}
.hero__portrait {
  grid-column: 1 / 6; grid-row: 1 / 3; align-self: end;
  width: 100%; height: calc(100svh - var(--nav-h) - 20px);
  margin-bottom: -7svh;
  border-radius: var(--r) var(--r) 0 0;
  animation: reveal-up 1.2s var(--ease-io) both .05s;
}
.hero__headline { grid-column: 7 / 13; grid-row: 1; font-size: clamp(28px, 2.75vw, 44px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; color: var(--ink); text-wrap: balance; }
.hero__details { grid-column: 7 / 13; grid-row: 2; align-self: end; padding: 40px 0 28px; }

.details { border-top: 1px solid var(--line-2); }
.details__row { display: grid; grid-template-columns: minmax(120px, 34%) minmax(0, 1fr); column-gap: var(--pad); padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.details__row dt { color: var(--muted); }
.details__row dd { font-size: 17px; letter-spacing: -0.015em; font-weight: 500; color: var(--ink); }
.details__row dd a { border-bottom: 1px solid var(--line-2); transition: border-color .25s, color .25s; }
.details__row dd a:hover { color: var(--accent-text); border-color: var(--accent-text); }
.details__row dd .muted { color: var(--muted); font-weight: 400; }

/* Portrait with cursor relight: a dim monochrome base, and a lit full-colour copy
   revealed through a soft circle that follows the cursor. */
.portrait { position: relative; overflow: hidden; background: var(--surface); }
.portrait__layer { position: absolute; inset: 0; }
.portrait__layer picture { display: block; width: 100%; height: 100%; }
.portrait__layer img, .portrait__layer > svg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; animation: settle 1.6s var(--ease) both; will-change: transform; }
/* The photo sits still at full strength: no cursor light. */
.portrait__base { filter: grayscale(1) contrast(1.04); }
.portrait__ph { display: none; width: 100%; height: 100%; }
.portrait__ph svg { width: 100%; height: 100%; animation: settle 1.6s var(--ease) both; }
.portrait.is-empty .portrait__layer picture, .portrait.is-empty .portrait__layer img { display: none; }
.portrait.is-empty .portrait__ph { display: block; }
.portrait__note { position: absolute; left: 14px; bottom: calc(7svh + 14px); z-index: 2; color: var(--muted); display: none; }
.portrait.is-empty .portrait__note { display: block; }

/* ---------------- Sections ---------------- */
.sec { padding: clamp(90px, 9vw, 140px) var(--pad) 0; }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pad); }
.sec-head__label { grid-column: 1 / 7; display: inline-flex; align-items: baseline; gap: 8px; padding-top: 8px; color: var(--ink-2); }
.sec-head__body { grid-column: 7 / 13; }

/* ---------------- Featured work: the head pins under the nav, each row pins below it and
   the next row slides up over the pinned one. Rows are opaque for that. ---------------- */
.featured__deck { display: flex; flex-direction: column; gap: 56px; }
.featured__deck > .sec-head { position: sticky; top: var(--nav-h); z-index: 2; background: var(--bg); padding-top: 18px; padding-bottom: 2px; }
.featured-row {
  position: sticky; top: var(--row-pin, 180px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  padding-top: 14px; margin-bottom: 14px;
}
.featured-row__media { grid-column: 1 / 7; grid-row: 1; display: block; }
.featured-row__text { grid-column: 7 / 13; grid-row: 1; display: grid; align-content: space-between; gap: 28px; }
.featured-row__top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 18px; align-items: start; }
.featured-row__num { padding-top: 7px; color: var(--accent-text); }
.featured-row__title { font-size: clamp(24px, 2.05vw, 34px); line-height: 1.04; letter-spacing: -0.032em; font-weight: 600; color: var(--ink); text-wrap: balance; }
.featured-row__meta { margin-top: 12px; color: var(--muted); }
.featured-row__desc { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.38; letter-spacing: -0.012em; color: var(--ink-2); max-width: 34em; }
.featured__lower { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pad); padding-top: 72px; }
.featured__more { grid-column: 7 / 13; justify-self: end; }

/* Cover frame shared by home, work and case pages; a hover video fades in when provided */
.cover-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--raise); }
.cover-frame img, .cover-frame > video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .7s var(--ease); }
@media (hover: hover) and (pointer: fine) { .featured-row:hover .cover-frame img, .work-row:hover .cover-frame img { transform: scale(1.03); } }
/* While an image loads: its average colour, plus a soft blurred preview on covers */
.cover-frame, .csa-frame { background-color: var(--tint, var(--raise)); }
.cover-frame::before, .csa-frame::before { content: ""; position: absolute; inset: -30px; background: var(--lqip, none) center / cover no-repeat; filter: blur(22px); transform: scale(1.06); }
.cover-frame picture, .csa-frame picture { position: relative; display: block; width: 100%; height: 100%; }
.cover-frame > img, .cover-frame > video, .csa-frame > img, .csa-frame > video { position: relative; }
.csa-frame--ph::before { display: none; }
img.fade { opacity: 0; }
img.fade.is-loaded { opacity: 1; }
.tile-reveal { position: absolute; inset: 0; opacity: 0; transition: opacity .5s var(--ease); }
.tile-reveal video { width: 100%; height: 100%; object-fit: cover; }
.cover-frame.is-revealed .tile-reveal { opacity: 1; }

/* Placeholder shown until a real image exists */
.ph { position: absolute; inset: 0; background: var(--ph-bg, #151515); color: var(--ph-fg, #6f6c66); display: grid; place-items: center; overflow: hidden; container-type: inline-size; }
.ph__word { font-size: 9cqw; font-weight: 600; line-height: .95; letter-spacing: -0.035em; text-align: center; padding: 0 6cqw; }
.ph__file { position: absolute; left: 2.2cqw; bottom: 2cqw; font: 400 clamp(9px, 1.5cqw, 12px) var(--font-mono); letter-spacing: .02em; opacity: .6; }

/* ---------------- FAQ ---------------- */
.faq__list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; column-gap: 8px;
  padding: 18px 0;
  font-size: clamp(19px, 1.55vw, 24px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 500; color: var(--ink);
}
.qa__num { color: var(--muted); font-weight: 400; }
.qa__icon { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink); transition: background .35s var(--ease), border-color .35s, color .35s, transform .45s var(--ease); }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; }
.qa__icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.qa__icon::after { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }
.qa__q:hover .qa__icon { border-color: var(--ink); }
.qa.is-open .qa__icon, .csa-acc__item.is-open .qa__icon { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(45deg); }
.qa__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.qa.is-open .qa__panel { grid-template-rows: 1fr; }
.qa__panel-inner { overflow: hidden; }
.qa__a { padding: 0 52px 22px; font-size: 17px; line-height: 1.45; color: var(--ink-2); max-width: 40em; }

/* ---------------- Footer: a big relit line, then the bar ---------------- */
.footer { margin-top: clamp(110px, 11vw, 170px); border-top: 1px solid var(--line); }
.footer__cta { padding: clamp(44px, 5vw, 80px) var(--pad) clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pad); row-gap: 28px; }
.footer__cta-label { grid-column: 1 / -1; color: var(--ink-2); }
.footer__cta-text {
  grid-column: 1 / -1;
  font-size: clamp(52px, 10.2vw, 176px); line-height: .96; letter-spacing: -0.045em; font-weight: 300;
  --lx: 22%; --ly: 30%;
  background: radial-gradient(circle at var(--lx) var(--ly), #FFFFFF 0%, #F7F7F7 12%, #DCD8D4 28%, #9C9894 52%, #6A6764 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__cta-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer__mail { font-size: clamp(20px, 2vw, 30px); letter-spacing: -0.03em; font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.footer__mail:hover { color: var(--accent-text); border-color: var(--accent-text); }
.footer__bar { padding: 18px var(--pad); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 1px solid var(--line); }
.footer__socials { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.footer__socials a { color: var(--ink-2); transition: color .25s; }
.footer__socials a:hover { color: var(--ink); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); }
.footer__clock { font-variant-numeric: tabular-nums; }
.footer--plain .footer__cta { display: none; }
.footer--plain { margin-top: 0; }

/* ---------------- Work page ---------------- */
.opener { height: 70vh; height: 70svh; min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 0 var(--pad) 48px; }
.opener h1 { font-size: clamp(34px, 4.4vw, 72px); line-height: .98; letter-spacing: -0.045em; font-weight: 500; max-width: 13em; text-wrap: balance; }
.work-deck { padding: 0 var(--pad); }
.work-row {
  position: sticky; top: var(--nav-h);
  display: grid; grid-template-columns: 2fr 1fr; column-gap: var(--pad);
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  padding-top: 14px; margin-bottom: 14px;
}
.work-row > .featured-row__media { grid-column: 1; grid-row: 1; }
.work-row > div { grid-column: 2; grid-row: 1; min-width: 0; }
.work-row__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.work-row__lead { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.work-row__title { color: var(--ink-2); font-size: 16px; letter-spacing: -0.01em; }
.work-row__year { color: var(--muted); }
.work-row__body { margin-top: 14px; font-size: 18px; line-height: 1.38; letter-spacing: -0.012em; color: var(--ink-2); }
.work-row__cta { margin-top: 20px; }
.icon { width: 22px; height: 22px; border-radius: 5px; flex: none; object-fit: cover; }
.icon--ph { display: grid; place-items: center; background: var(--ph-bg, #222); color: var(--ph-fg, #aaa); font: 600 11px/1 var(--font-body); }

/* ---------------- Case study ---------------- */
.csa { display: grid; grid-template-columns: 2fr 1fr; column-gap: var(--pad); padding: calc(var(--nav-h) + 16px) var(--pad) 0; align-items: start; }
.csa-gallery { display: flex; flex-direction: column; gap: var(--pad); min-width: 0; }
.csa-row { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: var(--pad); scroll-margin-top: calc(var(--nav-h) + 16px); }
.csa-frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--raise); }
.csa-frame--ph { aspect-ratio: var(--ar, 16 / 9); }
.csa-row[style*="--n: 2"] .csa-frame--ph { --ar: 4 / 5; }
.csa-frame img, .csa-frame video { width: 100%; height: auto; }
.csa-row[style*="--n: 2"] .csa-frame img, .csa-row[style*="--n: 2"] .csa-frame video { height: 100%; object-fit: cover; }
.csa-row:not([style*="--n: 2"]) .csa-frame picture { height: auto; }
.csa-media { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.csa-media.is-loaded { opacity: 1; transform: none; }
.csa-aside { position: sticky; top: calc(var(--nav-h) + 16px); height: calc(100vh - var(--nav-h) - 32px); height: calc(100svh - var(--nav-h) - 32px); display: flex; flex-direction: column; min-width: 0; }
.csa-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.csa-head__lead { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.csa-head__title { color: var(--ink-2); font-size: 16px; letter-spacing: -0.01em; }
.csa-head__year { color: var(--muted); }
.csa-acc { overflow-y: auto; min-height: 0; }
.csa-acc__item { border-bottom: 1px solid var(--line); }
.csa-acc__head { width: 100%; background: none; border: 0; cursor: pointer; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; padding: 12px 0; text-align: left; color: var(--muted); transition: color .25s; }
.csa-acc__head .qa__icon { width: 24px; height: 24px; }
.csa-acc__item.is-open .csa-acc__head, .csa-acc__head:hover { color: var(--ink); }
.csa-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.csa-acc__item.is-open .csa-acc__panel { grid-template-rows: 1fr; }
.csa-acc__panel-inner { overflow: hidden; }
.csa-acc__body { padding: 2px 0 18px 36px; font-size: 18px; line-height: 1.42; letter-spacing: -0.012em; color: var(--ink); }
.csa-next { margin-top: auto; padding-top: 24px; }
.csa-next__card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; transition: border-color .3s; }
.csa-next__card:hover { border-color: var(--accent); }
.csa-next__label { color: var(--accent-text); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.csa-next__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.csa-missing { padding: 140px var(--pad); font-size: 28px; letter-spacing: -0.03em; }
.csa-missing a { border-bottom: 1px solid var(--ink); }

/* ---------------- Contact ---------------- */
.contact-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.contact-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--pad); padding: calc(var(--nav-h) + 22px) var(--pad) 80px; flex: 1; }
.contact-side { grid-column: 1 / 6; display: grid; gap: 24px; align-content: start; }
.contact-side .portrait { width: min(100%, 320px); aspect-ratio: 4 / 5; border-radius: var(--r); }
.contact-side .portrait__note { bottom: 12px; }
.contact-side__meta { color: var(--muted); display: grid; gap: 4px; }
.contact-side__meta b { font-weight: 400; color: var(--ink); }
.contact-col { grid-column: 7 / 13; }
.contact-title { font-size: clamp(32px, 3.2vw, 52px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 500; margin-bottom: 36px; text-wrap: balance; }
.offer-step { display: grid; }
.offer-step[hidden] { display: none; }
.offer-step.is-rising { animation: rise .7s var(--ease) both; }
.offer-field {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line-2);
  padding: 16px 0; font: 400 22px/1.2 var(--font-body); letter-spacing: -0.02em; color: var(--ink);
  border-radius: 0; outline: none; transition: border-color .25s;
}
.offer-field::placeholder { color: #5C5A57; }
.offer-field:focus { border-bottom-color: var(--ink); }
textarea.offer-field { resize: vertical; min-height: 160px; }
.offer-field[aria-invalid="true"] { border-bottom-color: var(--accent); }
.offer-pillgroup { border: 0; margin: 0 0 30px; padding: 0; }
.offer-pill-label { padding: 0; margin-bottom: 14px; font-size: 22px; letter-spacing: -0.025em; font-weight: 500; }
.offer-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.offer-pill-input { position: absolute; opacity: 0; pointer-events: none; }
.offer-pill { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; color: var(--ink-2); cursor: pointer; background: var(--surface); transition: border-color .25s, color .25s, background .25s; }
.offer-pill:hover { border-color: var(--ink); color: var(--ink); }
.offer-pill-input:checked + .offer-pill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.offer-pill-input:focus-visible + .offer-pill { outline: 2px solid var(--accent); outline-offset: 2px; }
.offer-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.offer-dots { display: flex; gap: 6px; }
.offer-dots span { width: 22px; height: 3px; border-radius: 2px; background: var(--line-2); transition: background .3s; }
.offer-dots span.is-on { background: var(--accent); }
.offer-btns { display: flex; gap: 8px; }
.offer-btn--ghost { border-color: transparent; color: var(--muted); }
.offer-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.offer-error { margin-top: 14px; font-size: 14px; color: var(--accent-text); min-height: 1em; }
.offer-done { font-size: 22px; letter-spacing: -0.025em; line-height: 1.3; animation: rise .7s var(--ease) both; }
.offer-done p + p { margin-top: 14px; font-size: 16px; color: var(--ink-2); }
.offer-done a { border-bottom: 1px solid var(--ink); }
.contact-direct { margin-top: 48px; color: var(--muted); }
.contact-direct a { color: var(--ink); border-bottom: 1px solid var(--line-2); text-transform: none; }

/* ---------------- Mobile ---------------- */
/* Tablets and phones: project rows stack (image above text) and stop pinning,
   and case studies put the story above the images. */
@media (max-width: 1100px) {
  .sec-head__label, .sec-head__body { grid-column: 1 / -1; }
  .sec-head { row-gap: 14px; }
  .featured__deck { gap: 32px; }
  .featured__deck > .sec-head { position: static; padding-top: 0; }
  .featured-row { position: static; grid-template-columns: 1fr; row-gap: 14px; margin-bottom: 30px; }
  .featured-row__media, .featured-row__text { grid-column: 1; grid-row: auto; }
  .featured__lower { padding-top: 16px; }
  .featured__more { grid-column: 1 / -1; justify-self: start; }
  .work-row { position: static; grid-template-columns: 1fr; row-gap: 14px; margin-bottom: 30px; }
  .work-row > .featured-row__media, .work-row > div { grid-column: 1; grid-row: auto; }
  .csa { grid-template-columns: 1fr; row-gap: 24px; }
  .csa-aside { position: static; height: auto; order: -1; }
  .csa-acc { overflow: visible; }
  .csa-aside .csa-next { display: none; }
  .csa-next--mobile { display: block !important; padding: 40px var(--pad) 0; }
}
/* Phones */
@media (max-width: 809px) {
  :root { --nav-h: 48px; }
  .navbar__center, .navbar__right { display: none; }
  .navbar__toggle { display: block; }
  .hero { min-height: 0; grid-template-rows: auto auto auto; row-gap: 24px; padding-bottom: 0; }
  .hero__headline { grid-column: 1 / -1; grid-row: 1; font-size: 27px; }
  .hero__details { grid-column: 1 / -1; grid-row: 2; padding: 0; }
  .hero__portrait { grid-column: 1 / -1; grid-row: 3; height: auto; aspect-ratio: 4 / 4.6; margin-bottom: -40px; }
  .portrait__note { bottom: 54px; }
  .featured-row__desc { display: none; }
  .work-row__head { grid-template-columns: 1fr auto; row-gap: 6px; }
  .work-row__title { grid-column: 1 / -1; grid-row: 2; }
  .work-row__body { font-size: 16px; }
  .qa__q { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .qa__a { padding: 0 0 20px 42px; }
  .contact-side { grid-column: 1 / -1; grid-template-columns: 96px 1fr; align-items: end; margin-bottom: 32px; }
  .contact-side .portrait { width: 96px; }
  .contact-side .portrait__note { display: none !important; }
  .contact-col { grid-column: 1 / -1; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}
.csa-next--mobile { display: none; }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none !important; }
  img.fade { opacity: 1; }
  [data-rise], [data-fade], .hero__portrait, .portrait__layer img, .portrait__layer > svg, .offer-step.is-rising, .offer-done { animation: none; }
  .qa__panel, .csa-acc__panel, .navmenu, .navmenu a, .csa-media, .tile-reveal, .cover-frame img, .btn::before, .pill::before, .arrow-btn::before { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
