/* =========================================================================
   Ego Eimi — Homepage (experiment v4: the apex pass)
   Light craftsman system: paper, ink, hairlines, one flame.
   Standalone stylesheet: this page does not load site.css.
   ========================================================================= */

/* ---------- Fonts (self-hosted, CSP-safe) ---------- */
@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Azeret Mono"; src: url("/assets/fonts/azeret-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --paper: #FAF8F3;
  --paper-raised: #FFFFFF;
  --ink: #16140F;
  --ink-soft: #34302A;
  --muted: #6E6A60;
  --faint: #9B968B;
  --ghost: #C9C4B8;
  --hairline: rgba(22, 20, 15, 0.13);
  --hairline-soft: rgba(22, 20, 15, 0.07);
  --flame: #FF7436;
  --flame-deep: #E85B1C;

  --font-sans: "Outfit", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Azeret Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --pad: clamp(20px, 4vw, 64px);
  --nav-h: 68px;
  --shadow-media: 0 2px 6px rgba(22, 20, 15, 0.05), 0 22px 60px -12px rgba(22, 20, 15, 0.13);
  --shadow-panel: 0 1px 2px rgba(22, 20, 15, 0.04), 0 24px 70px -18px rgba(22, 20, 15, 0.18);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* The glass surface — the flyout's language, used across the page */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--hairline-soft);
  box-shadow: var(--shadow-panel);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html, body { margin: 0; padding: 0; }
body.home {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--flame); color: #1C0E05; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, p, dl, dd, dt, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: 1560px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 10000;
  background: var(--ink); color: var(--paper); font-weight: 500; font-size: 14px;
  padding: 10px 16px; border-radius: 10px;
  transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus-visible { transform: none; }

html.js:not(.is-ready) .anim-hide {
  opacity: 0;
  animation: ee-force-show 0.01s linear 2.5s forwards;
}
@keyframes ee-force-show { to { opacity: 1; } }

/* Paper grain — barely-there texture */
.grain {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: 0.022;
  mix-blend-mode: multiply;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: 11px; font-weight: 500; letter-spacing: 0.004em;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.12s ease;
}
.btn:active { transform: scale(0.985); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2B2721; }
.btn--ghost { border: 1px solid var(--hairline); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: rgba(22, 20, 15, 0.34); background: rgba(22, 20, 15, 0.03); }
.btn--sm { padding: 9px 17px; font-size: 13.5px; border-radius: 9px; }
.btn--lg { padding: 15px 25px; font-size: 15px; }
.btn__down { color: var(--faint); font-size: 0.92em; }
.btn--ghost:hover .btn__down { color: var(--ink-soft); }

.textlink {
  position: relative; display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink); padding-bottom: 4px;
}
.textlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ink);
  transform: scaleX(0.32); transform-origin: left center; opacity: 0.35;
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
.textlink:hover::after { transform: scaleX(1); opacity: 1; }
.textlink__arr { display: inline-block; transition: transform 0.3s var(--ease-out); }
.textlink:hover .textlink__arr { transform: translateX(4px); }

/* ---------- Section label ---------- */
.sec-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.06em; color: var(--muted);
  margin-bottom: clamp(24px, 4vh, 44px);
}
.sec-label--center { text-align: center; }

/* ---------- Nav ---------- */
.nav-scrim {
  position: fixed; inset: 0; z-index: 9300; pointer-events: none;
  background: rgba(250, 248, 243, 0.55);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  opacity: 0; transition: opacity 0.45s ease;
}
.nav-scrim.is-on { opacity: 1; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9500;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(250, 248, 243, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--hairline-soft);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  max-width: 1560px; margin: 0 auto;
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__wordmark { font-weight: 500; font-size: 16px; letter-spacing: 0.01em; }
.nav__center { position: static; }
.nav__links { display: flex; gap: 2px; position: absolute; left: 50%; top: 0; height: var(--nav-h); align-items: center; transform: translateX(-50%); }
.nav__link {
  font-size: 14px; font-weight: 400; color: var(--muted);
  padding: 8px 13px; border-radius: 9px;
  transition: color 0.22s, background-color 0.22s;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); background: rgba(22, 20, 15, 0.05); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.nav__burger { display: none; position: relative; width: 44px; height: 44px; }
.nav__burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 19px; }
.nav__burger span:nth-child(2) { top: 26px; }
.nav__burger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Flyout panel */
.nav__panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 2 * var(--pad));
  padding-top: 10px;
  visibility: hidden; pointer-events: none;
}
.nav__panel.is-open { visibility: visible; pointer-events: auto; }
.nav__panel-inner {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--hairline-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  opacity: 0; transform: translateY(-6px) scale(0.985);
}
.nav__sec { display: none; padding: clamp(18px, 2vw, 26px); }
.nav__sec.is-current { display: block; }
.nav__sec[data-nav-sec="work"] { width: min(880px, calc(100vw - 2 * var(--pad))); }
.nav__sec[data-nav-sec="process"] { width: min(480px, calc(100vw - 2 * var(--pad))); }
.nav__sec-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.1fr; gap: 18px; align-items: stretch; }
.navwork { display: grid; gap: 9px; align-content: start; border-radius: 12px; }
.navwork__thumb { display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.navwork__thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.94); transform: scale(1.01); transition: transform 0.7s var(--ease-out); }
.navwork:hover .navwork__thumb img { transform: scale(1.06); }
.navwork__name { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.navwork__metric { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--muted); }
.nav__sec-side { display: grid; gap: 4px; align-content: center; border-left: 1px solid var(--hairline-soft); padding-left: 18px; }
.nav__sec-list { display: grid; gap: 2px; }
.nav__sec-row {
  display: grid; gap: 2px; padding: 11px 12px; border-radius: 11px;
  transition: background-color 0.2s;
}
.nav__sec-row:hover { background: rgba(22, 20, 15, 0.045); }
.nav__sec-row > span:first-child { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.nav__sec-hint { font-size: 13px; font-weight: 300; color: var(--muted); }

/* Mobile menu: a glass sheet in the flyout's language */
.menu {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9400;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(1.45); backdrop-filter: blur(22px) saturate(1.45);
  border-bottom: 1px solid var(--hairline-soft);
  border-radius: 0 0 22px 22px;
  box-shadow: var(--shadow-panel);
  padding: calc(var(--nav-h) + 10px) var(--pad) calc(20px + env(safe-area-inset-bottom));
  max-height: calc(100svh - 10px);
  overflow-y: auto;
  transform: translateY(-104%);
  visibility: hidden;
  transition: transform 0.55s var(--ease-out), visibility 0s 0.55s;
}
.menu.is-open { transform: none; visibility: visible; transition: transform 0.55s var(--ease-out); }
.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(26px, 6.6vw, 40px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.3;
  padding: 11px 0; border-bottom: 1px solid var(--hairline-soft);
}
.menu__link:last-child { border-bottom: 0; }
.menu__i { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--flame); }
.menu__feat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--hairline-soft);
}
.menu__featcard { display: grid; gap: 7px; align-content: start; }
.menu__featcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.menu__featcard span { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }
.menu__featcard small { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--faint); }
.menu__foot { display: grid; gap: 12px; justify-items: stretch; margin-top: 16px; }
.menu__foot .btn { width: 100%; }
.menu__mail { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); justify-self: center; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; overflow: clip; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__halo {
  position: absolute; z-index: 1; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -54%);
  width: min(900px, 100vw); height: min(440px, 56vh);
  background: radial-gradient(closest-side, rgba(250, 248, 243, 0.9) 0%, rgba(250, 248, 243, 0.5) 55%, rgba(250, 248, 243, 0) 100%);
}
.hero.no-webgl::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 0;
  background:
    radial-gradient(2px 2px at 12% 28%, rgba(22, 20, 15, 0.35) 50%, transparent 51%),
    radial-gradient(2px 2px at 32% 64%, rgba(22, 20, 15, 0.28) 50%, transparent 51%),
    radial-gradient(3px 3px at 56% 18%, rgba(22, 20, 15, 0.2) 50%, transparent 51%),
    radial-gradient(2px 2px at 74% 48%, rgba(232, 91, 28, 0.4) 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 72%, rgba(22, 20, 15, 0.3) 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 84%, rgba(22, 20, 15, 0.26) 50%, transparent 51%),
    radial-gradient(3px 3px at 66% 88%, rgba(22, 20, 15, 0.16) 50%, transparent 51%),
    radial-gradient(2px 2px at 22% 12%, rgba(22, 20, 15, 0.22) 50%, transparent 51%);
  background-size: 480px 480px;
}
.hero.no-webgl .hero__canvas { display: none; }
.hero__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  min-height: 100svh;
  padding-top: var(--nav-h);
}
.hero__center {
  margin: auto;
  display: grid; justify-items: center; text-align: center;
  gap: clamp(20px, 3.2vh, 32px);
  max-width: 1080px;
}
.hero__title {
  font-size: clamp(42px, 7vw, 104px);
  font-weight: 400; line-height: 1.04; letter-spacing: -0.028em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: inline-block; will-change: transform; }
.love { font-style: normal; color: var(--flame); }
.hero__lede {
  max-width: 600px;
  font-size: clamp(16.5px, 1.32vw, 19px); font-weight: 400; color: var(--ink-soft);
  line-height: 1.62;
}
.hero__ctas { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.hero__stats {
  display: flex; align-items: stretch; gap: clamp(16px, 2.2vw, 40px);
  border-top: 1px solid var(--hairline-soft);
  padding: 22px 0 30px;
}
.stat { display: grid; gap: 3px; padding-left: clamp(16px, 2.2vw, 40px); border-left: 1px solid var(--hairline-soft); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat__v { font-weight: 400; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.stat__v--quiet { color: var(--muted); }
.stat__k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--faint); }
.stat--right { margin-left: auto; text-align: right; }
.stat--right .stat__v, .stat--right .stat__k { justify-self: end; }

/* ---------- Clients strip ---------- */
.clients { border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); padding: 26px 0; }
.clients__head { margin-bottom: 14px; }
.clients__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--faint); }
.clients__rail { overflow: clip; }
.clients__track { display: flex; width: max-content; will-change: transform; }
.clients__set { display: inline-flex; align-items: baseline; gap: 28px; padding-right: 28px; white-space: nowrap; }
.clients__set a {
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 400; letter-spacing: -0.01em; color: var(--ink-soft);
  opacity: 0.82; transition: opacity 0.25s, color 0.25s;
}
.clients__set a:hover { opacity: 1; color: var(--flame-deep); }
.clients__sep { color: var(--flame); opacity: 0.8; }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(100px, 17vh, 220px) 0; }
.manifesto__text {
  font-size: clamp(28px, 3.7vw, 58px);
  font-weight: 400; line-height: 1.22; letter-spacing: -0.02em;
  max-width: 1180px;
}
.manifesto__text .k { font-style: normal; color: var(--flame-deep); }
.manifesto__text .w { display: inline-block; }
html.js:not(.rm) .manifesto__text.is-split .w { opacity: 0.18; }
.manifesto__foot {
  margin-top: clamp(30px, 5vh, 52px); margin-left: auto;
  max-width: 470px; color: var(--muted); font-size: 16.5px; font-weight: 300; line-height: 1.7;
}

/* ---------- Work: unboxed editorial panels ---------- */
.work { position: relative; padding-top: clamp(50px, 8vh, 110px); }
.work__head { display: grid; gap: 6px; margin-bottom: clamp(30px, 5vh, 60px); }
.work__title { font-size: clamp(32px, 4.2vw, 68px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; }

.work__rail { position: relative; }
.work__track {
  display: flex; align-items: flex-start; gap: clamp(36px, 4.5vw, 88px);
  padding: 10px var(--pad) 26px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
}
.panel { position: relative; display: grid; gap: 0; width: clamp(380px, 44vw, 720px); }
.panel__media {
  display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px;
  box-shadow: var(--shadow-media);
  transform: translateZ(0);
}
.panel__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.1s var(--ease-out), filter 0.8s;
  filter: saturate(0.94);
}
.panel:hover .panel__media img { transform: scale(1.08); filter: saturate(1.02); }
.panel__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--hairline-soft); padding-top: 14px;
}
.panel__tag, .panel__index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--faint); }
.panel__title {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 8px;
  font-size: clamp(23px, 2.1vw, 32px); font-weight: 400; letter-spacing: -0.018em; line-height: 1.1;
}
.panel__arr { font-size: 0.8em; color: var(--ghost); transition: transform 0.35s var(--ease-out), color 0.3s; }
.panel:hover .panel__arr { transform: translateX(7px); color: var(--flame-deep); }
.panel__desc { margin-top: 8px; color: var(--muted); font-size: 15.5px; font-weight: 300; line-height: 1.55; max-width: 52ch; }
.panel__facts { margin-top: 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--ink-soft); }
.panel__facts em { font-style: normal; color: var(--flame); padding: 0 7px; }
.panel--more {
  align-self: center; justify-items: start; gap: 18px;
  width: clamp(300px, 28vw, 460px); padding-top: 6vh;
}
.panel__moretitle { font-size: clamp(38px, 4.2vw, 66px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.06; color: var(--ink); }
.work__progress { height: 1px; background: var(--hairline-soft); margin-top: clamp(14px, 2.4vh, 24px); }
.work__progressbar { display: block; height: 100%; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; }

/* ---------- Principles: ruled index ---------- */
.principles { padding: clamp(110px, 17vh, 230px) 0 clamp(60px, 9vh, 130px); }
.principles__grid { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2.6fr); gap: clamp(24px, 4vw, 80px); align-items: start; }
.principles__label { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.prow {
  display: grid; grid-template-columns: 64px 1fr; gap: clamp(16px, 2vw, 36px);
  border-top: 1px solid var(--hairline);
  padding: clamp(26px, 3.4vh, 44px) 0 clamp(30px, 4vh, 52px);
}
.prow:last-child { border-bottom: 1px solid var(--hairline); }
.prow__i { font-family: var(--font-mono); font-size: 12.5px; color: var(--flame-deep); padding-top: 9px; }
.prow__body { display: grid; gap: 12px; }
.prow__statement { font-size: clamp(25px, 2.9vw, 46px); font-weight: 400; letter-spacing: -0.022em; line-height: 1.1; }
.prow__copy { color: var(--muted); font-size: clamp(15.5px, 1.15vw, 17.5px); font-weight: 300; line-height: 1.65; max-width: 56ch; }

/* ---------- Numbers: compact ruled grid ---------- */
.numbers { padding: clamp(80px, 12vh, 170px) 0; }
.statgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.scell {
  display: grid; gap: 14px; align-content: space-between;
  padding: clamp(22px, 2.6vw, 36px) clamp(18px, 2vw, 32px);
  border-left: 1px solid var(--hairline-soft);
}
.scell:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.scell:nth-child(n + 4) { border-top: 1px solid var(--hairline-soft); }
.scell__label {
  display: grid; gap: 4px;
  font-size: 14.5px; font-weight: 300; color: var(--ink-soft);
  order: 2;
}
.scell__src { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; color: var(--faint); }
.scell__value {
  order: 1;
  display: flex; align-items: baseline; gap: 8px;
  font-size: clamp(38px, 3.8vw, 64px);
  font-weight: 300; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s;
}
.scell:hover .scell__value { color: var(--flame-deep); }
.scell__per { font-size: 0.42em; font-weight: 400; color: var(--faint); }
.numbers__quote { margin-top: clamp(26px, 4.5vh, 44px); font-size: clamp(17px, 1.5vw, 21px); font-weight: 300; color: var(--ink-soft); display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; }
.numbers__link { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--flame-deep); }

/* ---------- The studio: typographic index ---------- */
.studio { padding: 0 0 clamp(80px, 12vh, 160px); }
.studio__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-bottom: clamp(20px, 3.6vh, 40px);
}
.studio__title { font-size: clamp(32px, 4.2vw, 64px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.05; }
.studio__intro { max-width: 430px; color: var(--muted); font-size: 16px; font-weight: 300; line-height: 1.7; padding-bottom: 6px; }
.srow {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: baseline;
  gap: clamp(14px, 2vw, 36px);
  border-top: 1px solid var(--hairline);
  padding: clamp(18px, 2.6vh, 30px) 0 clamp(20px, 2.8vh, 34px);
}
.srow:last-child { border-bottom: 1px solid var(--hairline); }
.srow::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%;
  background: var(--flame);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.srow:hover::before { transform: scaleX(1); }
.srow__i { font-family: var(--font-mono); font-size: 12px; color: var(--faint); transition: color 0.3s; }
.srow:hover .srow__i { color: var(--flame-deep); }
.srow__main { display: grid; gap: 6px; }
.srow__name {
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 300; letter-spacing: -0.025em; line-height: 1.06;
  color: var(--faint);
  transition: color 0.45s, transform 0.6s var(--ease-out);
}
.srow:hover .srow__name { color: var(--ink); transform: translateX(10px); }
.srow__desc { color: var(--muted); font-size: 15px; font-weight: 300; line-height: 1.6; max-width: 56ch; }
.srow__meta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--faint);
  white-space: nowrap;
  opacity: 0.7; transition: opacity 0.3s, color 0.3s;
}
.srow:hover .srow__meta { opacity: 1; color: var(--ink-soft); }

/* ---------- From the founder: open editorial split ---------- */
.founder { padding: clamp(40px, 7vh, 100px) 0 clamp(110px, 17vh, 220px); }
.fcard {
  display: grid; grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(36px, 6vh, 64px);
}
.fcard__media { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95); }
.fcard__body { display: grid; gap: clamp(16px, 2.2vh, 24px); justify-items: start; }
.fcard__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.fcard__quote p {
  font-size: clamp(24px, 2.7vw, 44px); font-weight: 300; line-height: 1.26; letter-spacing: -0.02em;
  max-width: 24ch;
}
.fcard__byrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; width: 100%; max-width: 560px; }
.fcard__who { display: grid; gap: 1px; }
.fcard__who strong { font-weight: 500; font-size: 15.5px; }
.fcard__who span { font-size: 13.5px; font-weight: 300; color: var(--muted); }
.fcard__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fcard__chips li {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-soft);
  border: 1px solid var(--hairline); border-radius: 99px; padding: 7px 13px;
}

/* ---------- Closing: open, numbered like every section ---------- */
.close {
  position: relative; overflow: clip;
  padding: clamp(70px, 11vh, 150px) 0 clamp(170px, 30vh, 340px);
}
.close__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.close.no-webgl .close__canvas { display: none; }
.close__content { position: relative; z-index: 1; }
.close__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 16px;
  margin-bottom: clamp(48px, 9vh, 110px);
}
.close__lbl { margin-bottom: 0; }
.close__status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
}
.close__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flame); animation: ee-pulse 2.4s ease-in-out infinite; }
@keyframes ee-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 116, 54, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(255, 116, 54, 0); }
}
html.rm .close__dot { animation: none; }
.close__body { display: grid; justify-items: center; text-align: center; gap: clamp(22px, 3.2vh, 32px); }
.close__title { font-size: clamp(48px, 7.6vw, 132px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.0; }
.close__copy { color: var(--muted); font-size: clamp(15.5px, 1.25vw, 18px); font-weight: 300; max-width: 46ch; }
.close__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.close__alt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--faint); }
.close__alt a { color: var(--ink-soft); transition: color 0.25s; }
.close__alt a:hover { color: var(--flame-deep); }

/* ---------- Footer ---------- */
.footer { padding: clamp(48px, 8vh, 88px) 0 36px; background: var(--paper); border-top: 1px solid var(--hairline-soft); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-bottom: clamp(40px, 7vh, 72px); }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 17px; }
.footer__tagline { color: var(--muted); margin-top: 10px; font-weight: 300; }
.footer h5 { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.07em; color: var(--faint); margin-bottom: 16px; }
.footer__list { display: grid; gap: 10px; font-size: 15px; font-weight: 300; color: var(--muted); }
.footer__list a { transition: color 0.25s; }
.footer__list a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--hairline-soft); padding-top: 22px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--faint);
}
.footer__toplink { display: none; }

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .nav__links, .nav__panel { display: none; }
  .nav__burger { display: block; }
  /* No hover on touch: names readable at rest, scroll position drives the highlight */
  .srow__name { color: var(--ink-soft); }
  .srow.is-active::before { transform: scaleX(1); }
  .srow.is-active .srow__i { color: var(--flame-deep); }
  .srow.is-active .srow__name { color: var(--ink); }
  .nav__cta { display: none; }
  .studio__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .srow__meta { display: none; }
  .stat--wide { display: none; }
  .principles__grid { grid-template-columns: 1fr; gap: 28px; }
  .principles__label { position: static; }
}

@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .hero__stats { flex-wrap: wrap; gap: 16px; row-gap: 20px; }
  .stat--right { margin-left: 0; text-align: left; }
  .stat--right .stat__v, .stat--right .stat__k { justify-self: start; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .work__track {
    width: auto; gap: 16px;
    padding: 10px var(--pad) 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .work__track::-webkit-scrollbar { display: none; }
  .panel { width: 84vw; max-width: 480px; flex: none; scroll-snap-align: center; }
  .panel--more { width: 84vw; max-width: 480px; padding-top: 0; align-self: center; }
  .work__progress { display: block; margin-top: 10px; }
  .fcard { grid-template-columns: 1fr; gap: 28px; }
  .fcard__media { max-width: 340px; aspect-ratio: 4 / 5; }

  /* Footer: a closing page, not a cramped grid */
  .footer { padding: 44px 0 0; }
  .footer .container { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .footer__top { display: block; margin-bottom: 0; }
  .footer__brandcol { padding-bottom: 20px; }
  .footer__tagline { margin-top: 8px; }
  .footer__top > div:not(.footer__brandcol) {
    border-top: 1px solid var(--hairline-soft);
    padding: 15px 0 17px;
  }
  .footer h5 { margin-bottom: 9px; }
  .footer__list { display: flex; flex-wrap: wrap; gap: 2px 0; }
  .footer__list li { display: inline-flex; align-items: center; }
  .footer__list li:not(:last-child)::after { content: "·"; color: var(--flame); opacity: 0.75; padding: 0 11px; }
  .footer__list a, .footer__list li { font-size: 15px; }
  .footer__list a { display: inline-block; padding: 7px 0; }
  .footer__toplink {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid var(--hairline-soft);
    padding: 16px 0;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
    color: var(--ink-soft);
  }
  .footer__toplink span { color: var(--flame-deep); }
  .footer__bottom { padding-top: 18px; }
}

@media (max-width: 640px) {
  body.home { font-size: 16px; }
  .hero__title { font-size: clamp(38px, 11vw, 58px); }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn--lg { flex: 1 1 auto; }
  /* Stats: 2x2 ruled grid (visible cells: capital, ads, admin, builds) */
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0 0 24px; }
  .stat { border-left: 0; padding: 14px 16px 14px 0; }
  .stat:nth-child(2), .stat:nth-child(6) { border-left: 1px solid var(--hairline-soft); padding-left: 16px; padding-right: 0; }
  .stat:nth-child(3), .stat:nth-child(6) { border-top: 1px solid var(--hairline-soft); }
  .stat--right { text-align: left; }
  .stat--right .stat__v, .stat--right .stat__k { justify-self: start; }
  /* Tighter vertical rhythm on small screens */
  .manifesto { padding: 72px 0; }
  .work { padding-top: 44px; }
  .principles { padding: 84px 0 56px; }
  .numbers { padding: 64px 0; }
  .studio { padding-bottom: 72px; }
  .founder { padding: 24px 0 88px; }
  .fcard { border-top: 0; padding-top: 0; }
  .fcard__media { display: none; }
  .close { padding: 56px 0 96px; }
  .statgrid { grid-template-columns: 1fr 1fr; }
  .scell { border-left: 0; padding-left: 0; border-top: 1px solid var(--hairline-soft); }
  .scell:nth-child(-n + 2) { border-top: 0; }
  .scell:nth-child(2n) { border-left: 1px solid var(--hairline-soft); padding-left: 16px; }
  .scell__value { font-size: clamp(30px, 8.4vw, 42px); }
  .close__head { flex-direction: column; gap: 10px; align-items: flex-start; }
  .prow { grid-template-columns: 40px 1fr; }
  .srow { grid-template-columns: 36px 1fr; }
  .close__ctas { width: 100%; }
  .close__ctas .btn--lg { flex: 1 1 auto; }
  .menu__foot .btn--lg { width: 100%; }
}

/* =========================================================================
   Reduced motion: static, fully visible page
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}
html.rm .anim-hide { opacity: 1 !important; transform: none !important; }
html.rm .manifesto__text.is-split .w { opacity: 1; }

/* =========================================================================
   Booking modal — the nav flyout's glass language, around a calendar embed
   ========================================================================= */
.cal {
  position: fixed; inset: 0; z-index: 9600;
  display: grid; place-items: center;
  padding: clamp(14px, 4vw, 48px);
  visibility: hidden; pointer-events: none;
}
.cal.is-open { visibility: visible; pointer-events: auto; }
.cal__scrim {
  position: absolute; inset: 0;
  background: rgba(250, 248, 243, 0.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.45s ease;
}
.cal.is-open .cal__scrim { opacity: 1; }
.cal__panel {
  position: relative; z-index: 1;
  width: min(620px, 100%); height: min(760px, 88vh);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--hairline-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-panel);
  opacity: 0; transform: translateY(-8px) scale(0.985);
}
.cal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 16px 15px 20px;
  border-bottom: 1px solid var(--hairline-soft); flex: none;
}
.cal__title {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink);
}
.cal__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--flame); flex: none; }
.cal__close {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); transition: background-color 0.2s, color 0.2s;
}
.cal__close:hover { background: rgba(22, 20, 15, 0.06); color: var(--ink); }
.cal__close svg { width: 16px; height: 16px; }
.cal__body { position: relative; flex: 1; min-height: 0; background: #fff; }
.cal__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cal__loading {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; color: var(--faint);
  background: #fff;
}
@media (max-width: 640px) {
  .cal { padding: 0; }
  .cal__panel { width: 100%; height: 100svh; border-radius: 0; border: 0; }
}

/* =========================================================================
   FAQ — native <details> rows, hairline aesthetic. Answers stay in the DOM
   (open or closed) so crawlers and answer engines always read them.
   ========================================================================= */
.faq { border-top: 1px solid var(--hairline); max-width: 880px; }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: clamp(18px, 2.4vh, 26px) 0;
  font-size: clamp(17px, 1.5vw, 21px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.3;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; flex: none; width: 13px; height: 13px; margin-top: 0.35em;
  background:
    linear-gradient(var(--flame-deep), var(--flame-deep)) center/13px 1.5px no-repeat,
    linear-gradient(var(--flame-deep), var(--flame-deep)) center/1.5px 13px no-repeat;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--flame-deep); }
.faq__a {
  padding: 0 clamp(28px, 4vw, 56px) clamp(20px, 2.8vh, 30px) 0;
  max-width: 70ch;
}
.faq__a p { color: var(--muted); font-weight: 300; font-size: clamp(15.5px, 1.2vw, 17.5px); line-height: 1.65; margin: 0 0 0.8em; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a a { color: var(--flame-deep); }
.faq__item[open] .faq__q { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .faq__q::after { transition: none; } }
