/* ==========================================================================
   North Garden — recreation
   Shared design system. Placeholder content; free fonts (Geist / Geist Mono)
   stand in for the original's licensed FT System Grotesk / Mono.
   ========================================================================== */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* type */
  --font-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  /* ---- Kaiho brand ---- */
  --accent: #3a5800;      /* olive green — katakana tablet / circle mark */
  --accent-2: #4f7410;    /* brighter olive for links/hover */
  --cream: #f6f1d6;       /* parchment wordmark */
  --rose: #e8cdce;        /* blush alt surface */

  /* light surface (work / about / contact / inner pages) — warm cream base */
  --bg: #fbf8ec;
  --ink: #16180e;         /* warm near-black */
  --ink-2: #4d503d;       /* secondary text */
  --ink-3: #8b8d76;       /* muted / metadata */
  --hair: #e7e2cf;        /* hairlines */
  --hair-2: #d8d3bd;

  /* hero text over the video */
  --dusk-ink: #f6f1d6;

  /* glass nav */
  --glass-bg: rgba(251, 248, 236, 0.6);
  --glass-bd: rgba(255, 255, 255, 0.55);
  --glass-bg-dark: rgba(22, 28, 14, 0.26);
  --glass-bd-dark: rgba(246, 241, 214, 0.2);

  /* spacing scale */
  --gut: clamp(18px, 4vw, 56px);   /* page gutter */
  --maxw: 1480px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ----- Lenis smooth scroll ---------------------------------------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ----- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

/* selection */
::selection { background: var(--ink); color: var(--bg); }

/* ----- Layout helpers --------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(72px, 12vh, 160px); }
.hairline { height: 1px; background: var(--hair); border: 0; }

/* mono micro-label */
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ----- Floating glass nav ---------------------------------------------- */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px;
  border-radius: 999px;            /* stadium: circle when collapsed, rounded bar when open */
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.45);
  /* liquid glass — frosted refraction + layered glass edges */
  backdrop-filter: blur(16px) saturate(185%) brightness(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(185%) brightness(1.06);
  box-shadow:
    0 18px 50px rgba(10, 12, 20, 0.20),
    0 3px 10px rgba(10, 12, 20, 0.10),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.9),
    inset 0 -2px 8px rgba(255, 255, 255, 0.28),
    inset 0 0 30px rgba(255, 255, 255, 0.14);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
/* glossy specular sheen across the top of the glass */
.nav::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.08) 44%, rgba(255,255,255,0) 62%);
}
.nav > * { position: relative; z-index: 2; }
.nav__brand {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
/* concentric-ring brand mark (echoes the logo's circular "i" dot) */
.ring-mark { position: relative; display: inline-block; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; color: var(--accent); transition: transform 0.4s var(--ease-spring); }
/* inner ring centered on the exact same point as the outer ring */
.ring-mark::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.nav--dark .ring-mark { color: var(--cream); }
/* the two circles are the affordance — nudge them on hover */
.nav:hover .ring-mark, .nav:focus-within .ring-mark { transform: scale(1.12); }

/* --- interactive collapse: only the two circles show until hover/focus --- */
.nav__links {
  display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; white-space: nowrap;
  max-width: 0; opacity: 0; overflow: hidden;
  transition: max-width 0.55s var(--ease-out), opacity 0.4s var(--ease-out);
}
.nav:hover .nav__links, .nav:focus-within .nav__links { max-width: 480px; opacity: 1; }
.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.nav__link:hover { color: var(--ink); background: rgba(0,0,0,0.05); }
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__sep {
  width: 0; height: 16px; background: var(--hair-2); margin-inline: 0; overflow: hidden;
  transition: width 0.55s var(--ease-out), margin 0.55s var(--ease-out);
}
.nav:hover .nav__sep, .nav:focus-within .nav__sep { width: 1px; margin-inline: 6px; }

/* touch devices have no hover — keep the full nav open */
@media (hover: none) {
  .nav__links { max-width: 480px; opacity: 1; }
  .nav__sep { width: 1px; margin-inline: 6px; }
}

/* dark variant over the dusk hero */
.nav--dark { background: var(--glass-bg-dark); border-color: rgba(255, 255, 255, 0.22); }
.nav--dark .nav__brand,
.nav--dark .nav__link[aria-current="page"] { color: #fff; }
.nav--dark .nav__link { color: rgba(255,255,255,0.72); }
.nav--dark .nav__link:hover { color: #fff; background: rgba(255,255,255,0.12); }
.nav--dark .nav__sep { background: rgba(255,255,255,0.18); }

/* ----- WebGL hero shell ------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video, .hero__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
}
.hero__poster { z-index: 0; }
.hero__video { z-index: 1; }
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  /* legibility wash: gentle darken top (for nav) + bottom (for title) */
  background:
    linear-gradient(to bottom, rgba(20,30,10,0.28) 0%, rgba(20,30,10,0) 22%),
    linear-gradient(to top, rgba(20,30,10,0.38) 0%, rgba(20,30,10,0) 38%);
}
/* hide the autoplay video and show the still when motion is reduced */
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* Kaiho wordmark in the hero */
.hero__logo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  z-index: 2; width: min(62vw, 720px);
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.35));
}
.hero__logo + .hero__sub {
  position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
  z-index: 2; text-align: center; width: 90%;
  font-family: var(--font-mono); font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(246,241,214,0.86);
}
.hero__title {
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 92%;
  color: var(--dusk-ink);
  z-index: 2;
}
.hero__title h1 {
  font-size: clamp(40px, 9vw, 150px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.94;
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
}
.hero__title p {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243,239,233,0.78);
}
.scrollcue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(243,239,233,0.7);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scrollcue::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(rgba(243,239,233,0.7), transparent);
  animation: cueSlide 2.4s var(--ease-out) infinite;
}
@keyframes cueSlide { 0% { opacity:0; transform: scaleY(0.3); transform-origin: top; } 40% { opacity:1; } 100% { opacity:0; transform: scaleY(1); transform-origin: top; } }

/* ----- Display type ----------------------------------------------------- */
.display {
  font-size: clamp(34px, 5.5vw, 88px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.lead {
  font-size: clamp(22px, 2.7vw, 38px);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.18;
  max-width: 24ch;
}
.prose {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 30ch;
  color: var(--ink);
}
.muted { color: var(--ink-2); }

/* ----- Section header (label + title) ---------------------------------- */
.sechead { display: grid; gap: 18px; }
.sechead .label::before { content: "— "; }

/* ----- Work list -------------------------------------------------------- */
.worklist { border-top: 1px solid var(--hair); }
.workrow {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.4fr;
  gap: clamp(20px, 5vw, 80px);
  padding-block: clamp(28px, 4vw, 56px);
  border-bottom: 1px solid var(--hair);
  align-items: start;
}
.workrow__meta { display: grid; gap: 16px; align-content: start; }
.workrow__idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-3); }
.workrow__title { font-size: clamp(26px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }
.workrow__desc { color: var(--ink-2); max-width: 42ch; font-size: 15px; line-height: 1.5; }
.workrow__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--hair-2); border-radius: 999px; padding: 5px 10px;
}
.workrow__media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.media {
  position: relative; overflow: hidden; border-radius: 10px; background: #efeff1;
  aspect-ratio: 4 / 3;
}
.media--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.media__glow { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.28), transparent 55%); mix-blend-mode: multiply; pointer-events: none; }
.workrow:hover .media img { transform: scale(1.04); }

/* generic clickable card lift */
.lift { transition: transform 0.5s var(--ease-spring); }
a:hover > .lift, .lift:hover { transform: translateY(-4px); }

/* ----- About: trusted-by + capabilities -------------------------------- */
.about-hero { position: relative; width: 100%; }
.about-hero__figure {
  position: relative; width: 100%; margin: 0; font-size: 0; line-height: 0;
  height: clamp(480px, 86vh, 920px); overflow: hidden;
}
.about-hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 66%; display: block;
  /* dissolve the bottom of the illustration into the cream page */
  -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}
.about-hero__mark {
  position: absolute; left: 50%; top: 12%; transform: translateX(-50%);
  width: min(44vw, 480px); z-index: 2;
  /* layered cream glow so the black wordmark reads over the busy ink */
  filter: drop-shadow(0 0 22px rgba(246,241,214,0.95)) drop-shadow(0 2px 8px rgba(246,241,214,0.9));
}
/* video strip at the foot of the about page */
.about-strip { position: relative; height: clamp(320px, 44vh, 500px); overflow: hidden; }
.about-strip__video, .about-strip__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 90%;
}
@media (prefers-reduced-motion: reduce) { .about-strip__video { display: none; } }
/* fade the cream page into the (dark) footage at top and bottom */
.about-strip::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(251,248,236,0) 22%),
    linear-gradient(to top, var(--bg) 0%, rgba(251,248,236,0) 14%);
}

.about-statement {
  font-size: clamp(22px, 3.2vw, 44px);
  font-weight: 450; letter-spacing: -0.025em; line-height: 1.16; max-width: 30ch;
}
.trusted { columns: 2; column-gap: clamp(24px, 6vw, 90px); max-width: 760px; }
.trusted li { font-size: 15px; color: var(--ink-2); padding-block: 6px; break-inside: avoid; }

.capability { display: grid; grid-template-columns: 220px 1fr; gap: clamp(16px, 4vw, 60px); padding-block: 34px; border-top: 1px solid var(--hair); align-items: start; }
.capability:last-child { border-bottom: 1px solid var(--hair); }
.capability h3 { font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.02em; }
.capability p { color: var(--ink-2); max-width: 52ch; font-size: clamp(15px, 1.6vw, 18px); }

/* ----- Contact ---------------------------------------------------------- */
.contact-hero {
  position: relative; height: 100svh; min-height: 560px;
  display: grid; place-items: center; text-align: center; overflow: hidden;
  background: #0b0d09;
}
.contact-hero__video, .contact-hero__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
@media (prefers-reduced-motion: reduce) { .contact-hero__video { display: none; } }
.contact-hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8,10,7,0.5) 0%, rgba(8,10,7,0) 22%),                              /* top: nav */
    linear-gradient(to bottom, transparent 22%, rgba(8,10,7,0.55) 42%, rgba(8,10,7,0.55) 60%, transparent 82%); /* middle: text */
}
.contact-hero__inner { position: relative; z-index: 2; max-width: 640px; padding-inline: var(--gut); }
.contact-hero__inner h1 { font-size: clamp(34px, 6vw, 76px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.0; color: var(--cream); text-shadow: 0 2px 36px rgba(0,0,0,0.55); }
.contact-hero__inner p { margin-top: 16px; color: rgba(246,241,214,0.88); font-size: clamp(15px, 1.8vw, 19px); text-shadow: 0 1px 20px rgba(0,0,0,0.5); }
/* fade the bottom of the footage into the cream page below */
.contact-grad { position: absolute; left:0; right:0; bottom:0; height: 24%; background: linear-gradient(to top, var(--bg) 6%, rgba(251,248,236,0)); z-index: 1; }

/* light pill button for use on dark imagery (.btn.btn--light wins over .btn) */
.btn.btn--light { background: var(--cream); color: var(--ink); }
.btn.btn--light .btn__dot { background: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 22px; border-radius: 999px; margin-top: 28px;
  transition: transform 0.4s var(--ease-spring), background 0.4s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bg); transition: transform 0.4s var(--ease-spring); }
.btn:hover .btn__dot { transform: scale(1.6); }

/* form */
.field { display: grid; gap: 8px; margin-bottom: 22px; text-align: left; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--hair-2); padding: 10px 2px;
  transition: border-color 0.3s var(--ease-out);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }

/* ----- Case-study detail ------------------------------------------------ */
.cs { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: clamp(24px, 5vw, 72px); padding-top: clamp(110px, 16vh, 190px); }
.cs__aside { position: sticky; top: 96px; align-self: start; display: grid; gap: 26px; }
.cs__title { font-size: clamp(30px, 4.4vw, 60px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.0; }
.cs__desc { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 44ch; }
.cs__credits { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.cs__credit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 11px; border-bottom: 1px solid var(--hair); font-size: 13px; }
.cs__credit span:first-child { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); align-self: center; }
.cs__media { display: grid; gap: clamp(12px, 2vw, 22px); }
.cs__media .media { aspect-ratio: 16 / 10; border-radius: 12px; }

/* ----- Footer ----------------------------------------------------------- */
.footer { padding-block: 28px; border-top: 1px solid var(--hair); }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__nav { display: flex; gap: 18px; }
.footer__nav a, .footer__social a, .footer__legal {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  transition: color 0.3s var(--ease-out);
}
.footer__nav a:hover, .footer__social a:hover { color: var(--ink); }
.footer__social { display: flex; gap: 14px; }
.footer__brand { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hair-2); font-family: var(--font-mono); font-size: 12px; }

/* ----- Scroll-reveal ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* page-load fade for routed pages.
   NOTE: opacity only — animating filter/transform on <body> would create a
   containing block and break the fixed nav's positioning while scrolling. */
.page-enter { animation: pageEnter 0.7s var(--ease-out); }
@keyframes pageEnter { from { opacity: 0; } to { opacity: 1; } }

/* hero title stagger on load */
.hero__title > * { animation: heroUp 1.1s var(--ease-out) backwards; }
.hero__title > *:nth-child(1) { animation-delay: 0.25s; }
.hero__title > *:nth-child(2) { animation-delay: 0.45s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* ----- Services page ---------------------------------------------------- */
.services-hero { padding-top: clamp(118px, 16vh, 190px); }

/* reactive divider with a live px-width readout (mono) */
.reactive-divider { position: relative; display: flex; align-items: center; gap: 0; margin-block: clamp(30px, 5vw, 60px); }
.reactive-divider .anchor { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); }
.reactive-divider .divider-line {
  position: relative; flex: 1 1 auto; height: 1px; background: var(--hair-2);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out);
}
.reactive-divider.is-in .divider-line { transform: scaleX(1); }
.reactive-divider .width-display {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--ink-3); white-space: nowrap;
}

/* quadrant service grid with crosshair dividers + ring nodes */
.services-grid {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hair); border-left: 1px solid var(--hair);
}
.quadrant {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(220px, 30vh, 340px);
  padding: clamp(20px, 2.4vw, 36px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.quadrant__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.6s var(--ease-out); }
.quadrant:hover .quadrant__bg { opacity: 1; }
.quadrant__idx { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.quadrant__title { font-size: clamp(25px, 3vw, 42px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.0; transition: transform 0.5s var(--ease-out); }
.quadrant:hover .quadrant__title { transform: translateX(8px); }
.quadrant__desc { color: var(--ink-2); font-size: 14px; line-height: 1.5; max-width: 44ch;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease-out), opacity 0.5s var(--ease-out); }
.quadrant:hover .quadrant__desc { max-height: 120px; opacity: 1; }
.quadrant__foot { display: flex; align-items: flex-end; justify-content: space-between; }
.quadrant__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.quadrant__arrow { font-family: var(--font-mono); font-size: 16px; color: var(--ink-3); transition: transform 0.5s var(--ease-spring), color 0.3s var(--ease-out); }
.quadrant:hover .quadrant__arrow { transform: translate(5px, -5px); color: var(--accent); }

/* ring nodes sitting on the interior crosshair intersections */
.cross-node {
  position: absolute; left: 50%; top: var(--y); transform: translate(-50%, -50%); z-index: 3;
  display: grid; place-items: center; padding: 5px; border-radius: 50%; background: var(--bg);
}

/* ----- Service detail page ---------------------------------------------- */
.svc-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-top: clamp(120px, 16vh, 190px); }
.svc-hero__copy { display: grid; gap: 22px; align-content: center; }
.svc-hero__copy h1 { font-size: clamp(38px, 6vw, 88px); font-weight: 500; letter-spacing: -0.04em; line-height: 0.96; }
.svc-hero__media { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #efeae0; }
.svc-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* tagline + three value props */
.svc-values { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.svc-values__lead { font-size: clamp(26px, 3.4vw, 46px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; }
.svc-value { padding-block: clamp(20px, 2.4vw, 30px); border-top: 1px solid var(--hair); }
.svc-value:last-child { border-bottom: 1px solid var(--hair); }
.svc-value .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ink-3); }
.svc-value h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; }
.svc-value p { color: var(--ink-2); margin-top: 8px; max-width: 48ch; font-size: 15px; line-height: 1.55; }

/* image + text feature */
.svc-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.svc-feature--flip .svc-feature__media { order: 2; }
.svc-feature__media { aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; background: #efeae0; }
.svc-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-feature__copy h2 { font-size: clamp(26px, 3.2vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; }
.svc-feature__copy p { color: var(--ink-2); margin-top: 16px; max-width: 46ch; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; }

/* deliverables list */
.svc-deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 5vw, 60px); }
.svc-deliverables li { display: flex; gap: 12px; padding-block: 14px; border-top: 1px solid var(--hair); font-size: 15px; color: var(--ink); }
.svc-deliverables li::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 7px; border-radius: 50%; background: var(--accent); }

/* related work */
.svc-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.svc-related a { display: grid; gap: 14px; }
.svc-related .media { aspect-ratio: 4 / 3; }
.svc-related h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }

/* statement + "what you get" + index proof */
.svc-prose { color: var(--ink-2); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.55; max-width: 54ch; }
.svc-prose + .svc-prose { margin-top: 14px; }
.svc-feature__copy .label { display: block; margin-bottom: 14px; }
.svc-youget { font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.18; max-width: 24ch; }
.svc-youget + p { color: var(--ink-2); margin-top: 14px; font-size: clamp(15px, 1.5vw, 17px); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 3vw, 44px); }
.stat { border-top: 1px solid var(--hair); padding-top: 18px; }
.stat strong { display: block; font-size: clamp(30px, 4.2vw, 56px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.stat p { color: var(--ink-2); font-size: 14px; line-height: 1.45; margin-top: 10px; }
.stat .src { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 880px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 880px) {
  .svc-hero, .svc-values, .svc-feature { grid-template-columns: 1fr; }
  .svc-feature--flip .svc-feature__media { order: 0; }
  .svc-deliverables { grid-template-columns: 1fr; }
  .svc-related { grid-template-columns: 1fr; gap: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .cross-node { display: none; }
  .quadrant__desc { max-height: 120px; opacity: 1; }   /* always show on touch/narrow */
  .workrow { grid-template-columns: 1fr; gap: 22px; }
  .capability { grid-template-columns: 1fr; gap: 10px; }
  .cs { grid-template-columns: 1fr; }
  .cs__aside { position: static; }
  .nav__links .nav__link { padding: 8px 10px; }
}
@media (max-width: 560px) {
  .trusted { columns: 1; }
  .workrow__media { grid-template-columns: 1fr; }
}

/* ----- Reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
