/* ==========================================================================
   Image Urbaine: design system
   Warm stone paper, deep forest ink, brand lime used sparingly as signal.
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  /* palette */
  --paper: #f3efe7;
  --paper-2: #e9e3d7;
  --surface: #fbf9f4;
  --ink: #141c17;
  --ink-2: #4a554e;
  --line: color-mix(in oklab, var(--ink) 13%, transparent);
  --forest: #16201a;
  --forest-2: #1f2d24;
  --on-dark: #eef0e9;
  --on-dark-2: #a8b3aa;
  --line-dark: color-mix(in oklab, var(--on-dark) 16%, transparent);
  --lime: #a7cc4f;          /* brand green, from the logo emblem */
  --lime-ink: #1d2a0c;
  --moss: #4c6a29;          /* lime darkened for text on paper (AA) */
  --corten: #a5532b;

  /* type */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --display-s: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --display-m: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  --display-l: clamp(3rem, 1.6rem + 5.6vw, 6.5rem);
  --display-xl: clamp(3.75rem, 1.5rem + 9vw, 10rem);

  /* space + shape */
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1440px;
  --section: clamp(80px, 11vw, 168px);
  --radius: 22px;
  --radius-s: 12px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 84px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lime); color: var(--lime-ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.muted { color: var(--ink-2); }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--lime); color: var(--lime-ink);
}
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; }

/* ---------- type ---------- */
.display-xl, .display-l, .display-m, .display-s, .hero-title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: .95;
}
.display-xl { font-size: var(--display-xl); line-height: .88; letter-spacing: -0.03em; }
.display-l { font-size: var(--display-l); }
.display-m { font-size: var(--display-m); line-height: 1; }
.display-s { font-size: var(--display-s); line-height: 1.05; letter-spacing: -0.01em; }
em { font-style: italic; }
.display-m em, .display-l em, .display-xl em, .hero-title em { color: var(--moss); }
.section--dark em, .on-dark em, .page-hero em, .hero em, .banner em, .site-footer em, .project-hero em { color: var(--lime); }

.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 var(--step--1)/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1.25rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none; }
.eyebrow.on-dark { color: var(--on-dark-2); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .95rem 1.1rem .95rem 1.5rem; border-radius: 999px;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-weight: 500; font-size: .95rem; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
.btn .icon-arrow {
  width: 2rem; height: 2rem; padding: .45rem; border-radius: 50%;
  background: color-mix(in oklab, var(--fg) 14%, transparent);
  transition: transform .35s var(--ease), background-color .3s;
}
.btn:hover .icon-arrow { transform: translateX(3px) rotate(-45deg); }
.btn:active { transform: scale(.98); }
.btn--accent { --bg: var(--lime); --fg: var(--lime-ink); }
.btn--accent:hover { --bg: #b7da60; }
.btn--primary:hover { --bg: var(--forest-2); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--glass {
  --bg: color-mix(in oklab, white 12%, transparent); --fg: #fff;
  border-color: color-mix(in oklab, white 22%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.btn--glass:hover { --bg: #fff; --fg: var(--ink); }
.btn[data-size="sm"] { padding: .55rem .6rem .55rem 1.1rem; font-size: .9rem; }
.btn[data-size="sm"] .icon-arrow { width: 1.7rem; height: 1.7rem; padding: .35rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.link-arrow .icon-arrow { width: 1.2rem; height: 1.2rem; transition: transform .35s var(--ease); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s, transform .45s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgb(10 16 12 / .55), transparent);
  transition: opacity .4s;
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; }
.brand { flex: none; display: grid; }
.brand .logo { grid-area: 1 / 1; height: 58px; width: auto; transition: opacity .4s; }
.logo--dark { opacity: 0; }
.nav { margin-inline: auto; }
.nav > ul { display: flex; gap: .25rem; }
.nav a {
  display: block; padding: .55rem 1rem; border-radius: 999px; text-decoration: none;
  font-size: .95rem; font-weight: 450; transition: background-color .25s;
}
.nav a:hover, .nav a[aria-current="page"] { background: color-mix(in oklab, currentColor 12%, transparent); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: .5rem;
  background: var(--surface); color: var(--ink); border-radius: var(--radius-s);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / .35);
  opacity: 0; translate: 0 -6px; visibility: hidden;
  transition: opacity .25s, translate .25s var(--ease), visibility .25s;
}
.sub a { border-radius: 8px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; translate: 0; visibility: visible; }
.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.header-phone { text-decoration: none; font-size: .9rem; font-variant-numeric: tabular-nums; opacity: .85; }
.header-phone:hover { opacity: 1; }

.site-header.is-scrolled {
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  color: var(--ink); box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled .logo--light { opacity: 0; }
.site-header.is-scrolled .logo--dark { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid color-mix(in oklab, currentColor 30%, transparent);
  position: relative;
}
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; border-radius: 2px; }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { bottom: 18px; }

/* mobile menu: native popover */
.mobile-menu {
  inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0;
  border: 0; padding: 0 0 2rem; background: var(--forest); color: var(--on-dark);
  display: none; flex-direction: column; overflow-y: auto;
  opacity: 0; translate: 0 -12px;
  transition: opacity .35s var(--ease), translate .35s var(--ease), display .35s allow-discrete, overlay .35s allow-discrete;
}
.mobile-menu:popover-open { display: flex; opacity: 1; translate: 0; }
@starting-style { .mobile-menu:popover-open { opacity: 0; translate: 0 -12px; } }
.mobile-menu::backdrop { background: transparent; }
.mm-top { height: var(--header-h); display: flex; justify-content: space-between; align-items: center; }
.mm-top .logo { height: 46px; width: auto; }
.mm-close { padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-dark); }
.mm-links { margin-block: 2rem auto; }
.mm-links a {
  display: flex; align-items: baseline; gap: 1rem; padding: .5rem 0; text-decoration: none;
  font: 400 clamp(2.6rem, 11vw, 4rem)/1.05 var(--serif); border-bottom: 1px solid var(--line-dark);
}
.mm-num { font: 500 .8rem/1 var(--sans); color: var(--lime); letter-spacing: .1em; }
.mm-foot { display: grid; gap: .6rem; margin-top: 2rem; color: var(--on-dark-2); }
.mm-foot a { text-decoration: none; color: var(--on-dark); }
.mm-rbq { font-size: .85rem; }

/* ---------- socials ---------- */
.socials { display: flex; gap: .5rem; list-style: none; padding: 0; }
.socials a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-dark); transition: background-color .25s, color .25s, border-color .25s;
}
.socials a:hover { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.socials .icon { width: 18px; height: 18px; }
.contact-card .socials a { border-color: var(--line); }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 96px); }
.section--stone { background: var(--paper-2); }
.section--dark { background: var(--forest); color: var(--on-dark); }
.section--dark .lead { color: var(--on-dark); }
.section--dark p { color: var(--on-dark-2); }
.section--dark .lead, .section--dark h2, .section--dark h3 { color: var(--on-dark); }

.split-head {
  display: grid; gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(40px, 6vw, 88px);
}
.split-head > p { color: var(--ink-2); max-width: 62ch; }
.split-head .lead { color: var(--ink); }
@media (min-width: 900px) {
  .split-head { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- home hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  color: #fff; isolation: isolate; overflow: hidden; background: var(--forest);
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(10 16 12 / .88) 0%, rgb(10 16 12 / .45) 50%, rgb(10 16 12 / .4) 100%),
    radial-gradient(110% 90% at 0% 85%, rgb(10 16 12 / .6), transparent 65%);
}
.hero-inner { align-self: end; padding-top: calc(var(--header-h) + 4rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.hero-title {
  font-size: clamp(4.5rem, 2rem + 13vw, 15rem); line-height: .82; letter-spacing: -0.035em;
  display: flex; flex-wrap: wrap; column-gap: .22em;
}
.hero-word { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero-word:nth-child(2) { animation-delay: .12s; }
.hero-word:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; translate: 0 .35em; filter: blur(8px); } }
.hero-foot {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgb(255 255 255 / .22);
  animation: rise 1.1s .4s var(--ease) both;
}
.hero-sub { font: italic 400 clamp(1.75rem, 1.2rem + 2vw, 3rem)/1 var(--serif); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-bar {
  display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.25rem;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .7);
}
.video-toggle { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; padding: .4rem 0; }
.video-toggle:hover { color: #fff; }

/* ---------- page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--forest); color: var(--on-dark);
  padding-top: calc(var(--header-h) + clamp(4rem, 10vw, 9rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}
.page-hero--media { min-height: min(88svh, 900px); display: grid; align-items: end; }
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { scale: 1.08; } }
.page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(10 16 12 / .9), rgb(10 16 12 / .35) 55%, rgb(10 16 12 / .5));
}
.page-hero h1 { animation: rise 1s var(--ease) both; }
.page-hero .lead { max-width: 52ch; margin-top: 1.75rem; color: var(--on-dark); animation: rise 1s .15s var(--ease) both; }

.chip-nav { margin-top: 2.25rem; animation: rise 1s .25s var(--ease) both; }
.chip-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-nav a {
  display: inline-flex; align-items: center; gap: .6rem; padding: .6rem 1.1rem; border-radius: 999px;
  text-decoration: none; font-size: .92rem;
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background-color .25s, color .25s;
}
.chip-nav a span { font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; background: var(--lime); color: var(--lime-ink); }
.chip-nav a:hover { background: #fff; color: var(--ink); }

/* ---------- mission ---------- */
.mission-grid { display: grid; gap: 3rem; align-items: center; }
.mission-copy > p:not(.eyebrow) { margin-top: 1.5rem; max-width: 60ch; }
.mission-copy > p:not(.eyebrow):not(.lead) { color: var(--ink-2); }
.mission-copy .btn { margin-top: 2.25rem; }
.mission-media { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }
.mission-media figure { overflow: hidden; border-radius: var(--radius); }
.mission-media img { width: 100%; height: 100%; object-fit: cover; }
.m-a { grid-column: 1 / 10; grid-row: 1; aspect-ratio: 4 / 5; }
.m-b { grid-column: 6 / 13; grid-row: 1; margin-top: 55%; aspect-ratio: 1; border: 8px solid var(--paper); border-radius: calc(var(--radius) + 8px) !important; }
@media (min-width: 960px) {
  .mission-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 8rem); }
}

/* ---------- duo cards ---------- */
.duo { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo-card {
  position: relative; display: grid; min-height: clamp(420px, 48vw, 640px); overflow: hidden;
  border-radius: var(--radius); color: #fff; text-decoration: none; isolation: isolate;
}
.duo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.2s var(--ease); }
.duo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(10 16 12 / .85), transparent 60%); }
.duo-body { align-self: end; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: .75rem; max-width: 34rem; }
.duo-body p { color: rgb(255 255 255 / .82); }
.duo-tag { font-size: .8rem; letter-spacing: .14em; color: var(--lime); }
.duo-card .display-s { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem); }
.duo-card:hover img { scale: 1.05; }
.duo-card:hover .link-arrow .icon-arrow, .project-card a:hover .icon-arrow { transform: translateX(4px); }

/* ---------- project cards ---------- */
.project-card a { display: block; text-decoration: none; color: inherit; }
.card-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease), filter .6s; }
.project-card a:hover .card-media img { scale: 1.06; }
.card-body {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 1rem;
  padding: 1.1rem .25rem 0;
}
.card-num { grid-row: span 2; font-size: .78rem; letter-spacing: .1em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-title { font: 400 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.05 var(--serif); letter-spacing: -0.01em; }
.card-meta { grid-column: 2; display: flex; justify-content: space-between; gap: 1rem; margin-top: .35rem; font-size: .9rem; color: var(--ink-2); }
.section--dark .card-num, .section--dark .card-meta { color: var(--on-dark-2); }
.card-body:not(:has(.card-num)) { grid-template-columns: 1fr; }
.card-body:not(:has(.card-num)) .card-meta { grid-column: 1; }

.project-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem) clamp(16px, 2vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 1100px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid .project-card:nth-child(6n + 2) { translate: 0 clamp(2rem, 5vw, 5rem); }
  .project-grid .project-card:nth-child(6n + 5) { translate: 0 clamp(2rem, 5vw, 5rem); }
  .project-grid { padding-bottom: clamp(2rem, 5vw, 5rem); }
}

/* ---------- home project rail ---------- */
.rail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.rail-controls { display: flex; align-items: center; gap: .6rem; }
.rail-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-dark); color: var(--on-dark); transition: background-color .25s, color .25s;
}
.rail-btn .icon-arrow { width: 20px; }
.rail-btn[data-rail-prev] .icon-arrow { rotate: 180deg; }
.rail-btn:hover { background: var(--on-dark); color: var(--ink); }
.rail {
  --peek: max(var(--gutter), (100vw - var(--wrap)) / 2);
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 34vw, 520px); gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding-inline: var(--peek); scroll-padding-inline: var(--peek);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
.rail .card-media { aspect-ratio: 4 / 5; }

/* ---------- expect ---------- */
.expect-grid { display: grid; gap: 3rem; align-items: center; }
.expect-media { display: grid; grid-template-columns: repeat(12, 1fr); }
.expect-media figure { overflow: hidden; border-radius: var(--radius); }
.expect-media img { width: 100%; height: 100%; object-fit: cover; }
.expect-media figure:first-child { grid-column: 1 / 11; grid-row: 1; aspect-ratio: 4 / 5; }
.expect-media figure:last-child { grid-column: 7 / 13; grid-row: 1; align-self: end; margin-bottom: -12%; aspect-ratio: 4 / 3; border: 8px solid var(--paper); border-radius: calc(var(--radius) + 8px); }
.expect-copy > p:not(.eyebrow) { margin-top: 1.5rem; max-width: 60ch; }
.expect-copy > p:not(.eyebrow):not(.lead) { color: var(--ink-2); }
.expect-copy .btn { margin-top: 2rem; }
.steps-mini { display: flex; gap: .5rem; margin-top: 2rem; flex-wrap: wrap; }
.steps-mini li {
  display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem .55rem .6rem; border-radius: 999px;
  border: 1px solid var(--line); font-family: var(--serif); font-size: 1.35rem; line-height: 1;
}
.steps-mini span { font: 500 .72rem/1 var(--sans); padding: .35rem .45rem; border-radius: 999px; background: var(--lime); color: var(--lime-ink); }
@media (min-width: 960px) {
  .expect-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 8rem); }
}

/* ---------- partners ---------- */
.partners { padding-block: clamp(64px, 8vw, 120px) 0; background: var(--forest); color: var(--on-dark); overflow: hidden; }
.partners-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.partners-head .eyebrow { color: var(--on-dark-2); }
.marquee {
  display: flex; width: max-content;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: clamp(3rem, 6vw, 6rem); padding-right: clamp(3rem, 6vw, 6rem); animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; width: clamp(110px, 12vw, 170px); height: 60px; display: grid; place-items: center; }
.marquee-track img { max-height: 100%; max-width: 100%; width: auto; height: auto; opacity: .85; transition: opacity .3s; }
.marquee-track img:hover { opacity: 1; }
@keyframes marquee { to { translate: -100% 0; } }

/* ---------- services page ---------- */
.process { display: grid; gap: clamp(3rem, 6vw, 6rem); counter-reset: step; }
.process-step { display: grid; gap: 2rem; align-items: center; }
.process-media { overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 4 / 3; }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.process-copy { max-width: 52ch; }
.process-copy p { margin-top: 1rem; color: var(--ink-2); }
.process-num {
  display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem;
  border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .85rem; letter-spacing: .06em;
}
@media (min-width: 900px) {
  .process-step { grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 6vw, 7rem); }
  .process-step:nth-child(even) .process-media { order: 2; }
}

.svc-grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.svc-card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgb(20 28 23 / .35); }
.svc-media { aspect-ratio: 3 / 2; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.svc-card:hover .svc-media img { scale: 1.05; }
.svc-body { padding: 1.5rem 1.5rem 1.75rem; display: grid; gap: .6rem; align-content: start; }
.svc-num { font-size: .78rem; letter-spacing: .12em; color: var(--moss); font-weight: 500; }
.svc-title { font: 400 1.85rem/1.05 var(--serif); letter-spacing: -0.01em; }
.svc-body p { color: var(--ink-2); font-size: .97rem; }
@media (min-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-card:is(:nth-child(1), :nth-child(6), :nth-child(9), :nth-child(14)) { grid-column: span 2; flex-direction: row; }
  .svc-card:is(:nth-child(1), :nth-child(6), :nth-child(9), :nth-child(14)) .svc-media { flex: 1.3; aspect-ratio: auto; }
  .svc-card:is(:nth-child(1), :nth-child(6), :nth-child(9), :nth-child(14)) .svc-body { flex: 1; align-content: end; padding: 2.25rem; }
  .svc-card:is(:nth-child(1), :nth-child(6), :nth-child(9), :nth-child(14)) .svc-title { font-size: 2.6rem; }
}

.comm-grid { display: grid; gap: 3rem; align-items: center; }
.comm-copy > p:not(.eyebrow) { margin-top: 1.25rem; max-width: 58ch; }
.comm-list { display: grid; gap: .5rem; margin-block: 2.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.comm-list li {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--radius-s);
  background: var(--forest-2); border: 1px solid var(--line-dark); font-weight: 500;
}
.comm-list svg { width: 28px; height: 28px; flex: none; color: var(--lime); }
.comm-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.5vw, 20px); }
.comm-media figure { overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 4; }
.comm-media figure:last-child { margin-top: 20%; }
.comm-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .comm-grid { grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 7vw, 8rem); } }

/* ---------- project page ---------- */
.project-hero {
  position: relative; isolation: isolate; min-height: 92svh; display: grid; align-items: end;
  color: #fff; background: var(--forest); overflow: hidden;
}
.project-hero-media { position: absolute; inset: 0; z-index: -1; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 16 12 / .85), transparent 55%), linear-gradient(to bottom, rgb(10 16 12 / .45), transparent 30%); }
.project-hero-inner { padding-block: calc(var(--header-h) + 3rem) clamp(2.5rem, 5vw, 4.5rem); }
.project-hero h1 { animation: rise 1s .1s var(--ease) both; }
.back-link {
  display: flex; width: fit-content; align-items: center; gap: .6rem; margin-bottom: 2rem; text-decoration: none;
  font-size: .9rem; color: rgb(255 255 255 / .8);
}
.back-link .icon-arrow { width: 18px; rotate: 180deg; transition: translate .3s var(--ease); }
.back-link:hover { color: #fff; }
.back-link:hover .icon-arrow { translate: -3px 0; }

.project-intro { padding-bottom: clamp(32px, 4vw, 56px); }
.project-intro-grid { display: grid; gap: 3rem; }
.project-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.project-meta div { padding-top: 1.1rem; }
.project-meta dt { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.project-meta dd { margin: .4rem 0 0; font: 400 clamp(1.25rem, 1rem + .9vw, 1.75rem)/1.15 var(--serif); }
.project-story { display: grid; gap: 1.25rem; max-width: 64ch; }
.project-story p:first-child:not(.muted) { font: 400 clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem)/1.25 var(--serif); letter-spacing: -0.005em; }
.project-story p:not(:first-child) { color: var(--ink-2); }
@media (min-width: 960px) {
  .project-intro-grid { grid-template-columns: 1fr 1.4fr; gap: clamp(3rem, 8vw, 9rem); align-items: start; }
  .project-meta { grid-template-columns: 1fr; position: sticky; top: calc(var(--header-h) + 2rem); }
  .project-meta div { display: flex; justify-content: space-between; align-items: baseline; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
  .project-meta dd { margin: 0; text-align: right; }
}

.gallery { columns: 1; column-gap: clamp(12px, 1.5vw, 20px); }
.gallery li { break-inside: avoid; margin-bottom: clamp(12px, 1.5vw, 20px); }
.gallery-item { display: block; width: 100%; overflow: hidden; border-radius: var(--radius-s); cursor: zoom-in; background: var(--paper-2); }
.gallery-item img { width: 100%; transition: scale .9s var(--ease), opacity .4s; }
.gallery-item:hover img { scale: 1.04; }
@media (min-width: 700px) { .gallery { columns: 2; } }
@media (min-width: 1100px) { .gallery { columns: 3; } }

.project-pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: var(--section);
}
.pager-link {
  display: grid; gap: .4rem; padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: background-color .3s, color .3s;
}
.pager-link--next { text-align: right; }
.pager-label { font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.pager-title { font: 400 clamp(1.5rem, 1.1rem + 1.6vw, 2.75rem)/1 var(--serif); }
.pager-link:hover { background: var(--ink); color: var(--paper); }
.pager-link:hover .pager-label { color: var(--on-dark-2); }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(8 12 9 / .96); color: #fff; overflow: hidden;
  opacity: 0; transition: opacity .3s, display .3s allow-discrete, overlay .3s allow-discrete;
}
.lightbox[open] { opacity: 1; display: grid; place-items: center; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: calc(100vw - 2 * var(--gutter)); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox-count { position: absolute; left: 50%; bottom: 1.5rem; translate: -50% 0; font-size: .85rem; letter-spacing: .14em; color: rgb(255 255 255 / .7); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); color: #fff; font-size: 1.6rem; line-height: 1;
  backdrop-filter: blur(10px); transition: background-color .25s, color .25s;
}
.lb-btn:hover { background: #fff; color: var(--ink); }
.lb-btn .icon-arrow { width: 22px; }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; top: 50%; translate: 0 -50%; }
.lb-prev .icon-arrow { rotate: 180deg; }
.lb-next { right: 1.25rem; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
  .lb-prev, .lb-next { top: auto; bottom: 1rem; translate: none; }
}

/* ---------- about ---------- */
.founder-grid, .approach-grid { display: grid; gap: 3rem; align-items: center; }
.founder-copy > p:not(.eyebrow), .approach-grid p:not(.eyebrow) { margin-top: 1.5rem; max-width: 60ch; }
.founder-copy > p:not(.eyebrow):not(.lead), .approach-grid p:not(.eyebrow):not(.lead) { color: var(--ink-2); }
.founder-media, .approach-grid figure { overflow: hidden; border-radius: var(--radius); }
.founder-media img, .approach-grid figure img { width: 100%; height: 100%; object-fit: cover; }
.founder-media { aspect-ratio: 4 / 5; max-width: 520px; justify-self: center; width: 100%; }
.approach-grid figure { aspect-ratio: 3 / 4; }
.approach-grid .btn { margin-top: 2rem; }
.signature { margin-top: 2.5rem; display: grid; gap: .5rem; }
.signature img { width: 200px; height: auto; filter: brightness(0) saturate(100%); opacity: .85; }
.signature figcaption { font-size: .9rem; color: var(--ink-2); }
@media (min-width: 960px) {
  .founder-grid { grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 7vw, 8rem); }
  .approach-grid { grid-template-columns: .8fr 1fr; gap: clamp(3rem, 7vw, 8rem); }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.stat { padding: 2rem clamp(1rem, 2vw, 2rem) 2rem 0; border-top: 1px solid var(--line-dark); }
.stat-num { font: 400 clamp(4rem, 2.5rem + 5vw, 7.5rem)/.9 var(--serif); color: var(--on-dark) !important; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-num span { display: inline-block; min-width: 1ch; }
.stat-label { margin-top: 1.25rem; font: 500 .85rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--lime) !important; }
.stat p:last-child { margin-top: .6rem; font-size: .95rem; max-width: 26ch; }

.banner { position: relative; isolation: isolate; min-height: 80svh; display: grid; align-items: end; color: #fff; overflow: hidden; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(10 16 12 / .88), rgb(10 16 12 / .45) 55%, rgb(10 16 12 / .2)); }
.banner-inner { padding-block: clamp(3rem, 7vw, 6rem); }
.banner-inner .btn { margin-top: 2rem; }

/* ---------- careers ---------- */
.value-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.value-card { padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 1rem; align-content: start; }
.value-card p { color: var(--ink-2); }
.value-num { font-size: .8rem; letter-spacing: .12em; color: var(--moss); font-weight: 500; }
.value-media { overflow: hidden; border-radius: var(--radius); min-height: 360px; }
.value-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .value-grid { grid-template-columns: 1fr 1fr .9fr; } .value-media { grid-row: span 1; } }
.join-grid { display: grid; gap: 2.5rem; }
.join-grid p:not(.eyebrow) { margin-top: 1.25rem; max-width: 60ch; }
.join-grid a:not(.btn) { color: var(--lime); }
.join-grid .btn { margin-top: 2rem; }
.role-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.role-list li { padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-dark); background: var(--forest-2); font-weight: 500; }
@media (min-width: 960px) { .join-grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 8rem); align-items: start; } }

/* ---------- contact ---------- */
.contact-section { padding-top: clamp(2rem, 4vw, 3.5rem); }
.contact-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.contact-cards { display: grid; gap: clamp(12px, 1.5vw, 16px); align-content: start; }
.contact-card {
  display: grid; gap: .25rem; padding: 1.5rem 1.6rem; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: background-color .3s, color .3s, border-color .3s;
}
.contact-card .eyebrow { margin-bottom: .5rem; }
.contact-value { font: 400 clamp(1.35rem, 1.1rem + .8vw, 1.75rem)/1.2 var(--serif); overflow-wrap: anywhere; }
.contact-card .link-arrow { margin-top: .75rem; font-size: .9rem; }
a.contact-card:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
a.contact-card:hover .eyebrow { color: var(--on-dark-2); }
.contact-card--plain { gap: 1rem; }

.contact-form {
  padding: clamp(1.5rem, 4vw, 3.25rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 1.25rem; align-content: start;
}
.contact-form > .muted { margin-top: -.5rem; margin-bottom: .5rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .5rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 500; padding: 0; }
.field label span { color: var(--moss); }
.field input, .field textarea {
  width: 100%; padding: .95rem 1.1rem; border-radius: var(--radius-s); border: 1px solid var(--line);
  background: var(--paper); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px color-mix(in oklab, var(--lime) 45%, transparent); }
.field input:user-invalid { border-color: var(--corten); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
  font-size: .92rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.contact-form .btn { justify-self: start; margin-top: .5rem; }
.form-status { font-size: .95rem; color: var(--moss); min-height: 1.5em; }
.form-status.is-error { color: var(--corten); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .8fr 1.2fr; } }

/* ---------- privacy ---------- */
.prose-grid { display: grid; gap: 3rem; }
.prose-toc ol { display: grid; gap: .35rem; counter-reset: toc; }
.prose-toc a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.prose-toc a:hover { color: var(--ink); }
.prose { max-width: 70ch; display: grid; gap: 3rem; }
.prose section { display: grid; gap: 1rem; }
.prose p { color: var(--ink-2); }
@media (min-width: 960px) {
  .prose-grid { grid-template-columns: 280px 1fr; gap: clamp(3rem, 8vw, 9rem); }
  .prose-toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--forest); color: var(--on-dark); padding-top: clamp(80px, 10vw, 150px); }
.footer-cta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line-dark);
}
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 5rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-brand { display: grid; gap: 1.25rem; align-content: start; max-width: 34ch; }
.footer-brand .logo { height: 56px; width: auto; }
.footer-brand p { color: var(--on-dark-2); font-size: .95rem; }
.footer-h { font: 500 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 1.25rem; }
.footer-list { display: grid; gap: .6rem; }
.footer-list a { text-decoration: none; transition: color .2s; }
.footer-list a:hover { color: var(--lime); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.75rem 2.25rem;
  border-top: 1px solid var(--line-dark); font-size: .85rem; color: var(--on-dark-2);
}
.footer-base a { text-decoration: none; }
.footer-base a:hover { color: var(--on-dark); }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; translate: 0 32px; transition: opacity 1s var(--ease), translate 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; translate: 0; }

/* scroll-driven parallax where supported */
@supports (animation-timeline: view()) {
  .banner-img {
    inset: -12% 0; height: 124%;
    animation: parallax linear both; animation-timeline: view(); animation-range: cover;
  }
  @keyframes parallax { from { translate: 0 -8%; } to { translate: 0 8%; } }
}

/* ---------- view transitions ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease); }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: var(--ease); }

/* ---------- responsive header ---------- */
@media (max-width: 1080px) {
  .nav, .header-phone { display: none; }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 520px) {
  :root { --header-h: 72px; }
  .brand .logo { height: 42px; }
  .header-actions .btn { display: none; }
  .project-meta { grid-template-columns: 1fr; }
  .project-meta div { display: flex; justify-content: space-between; align-items: baseline; padding-block: .9rem; border-bottom: 1px solid var(--line); }
  .project-meta dd { margin: 0; }
  .pager-title { font-size: 1.35rem; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .marquee { width: auto; flex-wrap: wrap; mask-image: none; justify-content: center; }
  .marquee-track { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .marquee-track[aria-hidden="true"] { display: none; }
  @view-transition { navigation: none; }
}

.lang-switch { font-size: .8rem; font-weight: 600; letter-spacing: .08em; padding: .3rem .65rem; border: 1px solid currentColor; border-radius: 999px; opacity: .85; }
.lang-switch:hover { opacity: 1; }

/* Cookie consent banner (bottom right) */
.consent { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: min(380px, calc(100vw - 32px)); padding: 18px 20px; background: var(--forest); color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-s); box-shadow: 0 12px 40px rgb(0 0 0 / .3); font-size: .9rem; line-height: 1.5; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; }
.consent a { color: var(--lime); text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.consent .btn { padding: .55rem 1.1rem; font-size: .85rem; }
.consent .btn--ghost { --fg: var(--on-dark); border-color: var(--line-dark); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--on-dark); }
