/* =========================================================
   ERIC ALLI — PORTFOLIO
   Webflow-style class naming (block / block-element / is-state)
   ========================================================= */

:root {
  /* Color — "Ink, Sand & Cobalt" (pulled from the portrait) */
  --paper: #f2f1ee;
  --paper-2: #e7e5e0;
  --sand: #d4b08e;
  --sand-light: #e8d3bd;
  --ink: #131316;
  --graphite: #3a3a40;
  --stone: #6a686e;
  --line: rgba(19, 19, 22, 0.14);
  --line-dark: rgba(242, 241, 238, 0.16);
  --cobalt: #2a45d0;
  --cobalt-soft: #8fa0f0;

  /* Type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.625, 0.05, 0, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --gutter: clamp(16px, 4vw, 64px);
  --radius-s: 4px;
  --radius-pill: 999px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--cobalt); color: var(--paper); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius-pill); transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Type scale ---------- */
.display {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.body-copy { font-size: clamp(1rem, 0.4vw + 0.9rem, 1.2rem); line-height: 1.5; color: var(--graphite); }
.text-cobalt { color: var(--cobalt); }
.text-stone { color: var(--stone); }

/* Split text helpers */
.split-line { overflow: hidden; display: block; padding-bottom: 0.06em; }

/* ---------- Atmosphere ---------- */
.edge-glow {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  box-shadow: inset 0 0 40px rgba(42, 69, 208, 0.22), inset 0 0 140px 6px rgba(42, 69, 208, 0.10);
}
.top-blur {
  position: fixed; top: 0; left: 0; z-index: 800; pointer-events: none;
  width: 100%; height: 10vh; min-height: 72px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  background: rgba(120, 120, 120, 0.04);
  -webkit-mask-image: linear-gradient(#000, #000 40%, transparent);
  mask-image: linear-gradient(#000, #000 40%, transparent);
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.is-scrolled .top-blur { opacity: 1; }
.grain {
  position: fixed; inset: -50%; z-index: 899; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 995; pointer-events: none;
  display: flex; flex-direction: column;
}
.loader-panel {
  position: relative; flex: 1; background: var(--ink);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.loader-fill { position: absolute; inset: 0; background: var(--cobalt); transform: scaleY(0); transform-origin: bottom; }
.loader-name {
  position: relative; display: flex; align-items: center; gap: 0.35em;
  color: var(--paper); font-family: var(--font-display); font-stretch: 125%;
  font-weight: 800; font-size: clamp(2rem, 6vw, 5rem); letter-spacing: -0.04em; text-transform: uppercase;
}
.loader-line { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--sand); }
.is-loaded .loader { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 850;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--gutter);
  color: var(--ink); transition: color 0.4s var(--ease-out);
}
.nav.is-light { color: var(--paper); }
.nav-name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1rem; letter-spacing: -0.02em; text-transform: uppercase; }
.nav-links { display: flex; gap: 6px; padding: 5px; border-radius: var(--radius-pill); background: rgba(242, 241, 238, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.nav.is-light .nav-links { background: rgba(19, 19, 22, 0.4); border-color: var(--line-dark); }
.nav-link { position: relative; display: inline-flex; overflow: hidden; padding: 8px 16px; border-radius: var(--radius-pill); font-size: 0.9rem; font-weight: 500; min-height: 36px; align-items: center; }
.nav-link[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav.is-light .nav-link[aria-current="page"] { background: var(--paper); color: var(--ink); }
.roll { display: inline-grid; overflow: hidden; line-height: 1.2; }
.roll > span { grid-area: 1 / 1; transition: transform 0.45s var(--ease-out); }
.roll > span + span { transform: translateY(110%); }
a:hover .roll > span:first-child { transform: translateY(-110%); }
a:hover .roll > span + span { transform: none; }
.nav-social { display: flex; justify-content: flex-end; gap: 18px; font-size: 0.9rem; font-weight: 500; }
.nav-social a { display: inline-flex; padding: 8px 0; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 910; pointer-events: none;
  display: none;
}
.cursor-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--cobalt); transition: transform 0.35s var(--ease-out); }
.cursor-label {
  position: absolute; top: 14px; left: 14px; white-space: nowrap;
  padding: 7px 12px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--paper); font-size: 0.8rem; font-weight: 500;
  opacity: 0; transform: scale(0.8); transform-origin: top left;
}
.cursor.is-active .cursor-dot { transform: scale(0.4); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* ---------- Buttons ---------- */
.btn-pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 22px 6px 6px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--paper); font-weight: 500;
}
.btn-pill-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cobalt); overflow: hidden; }
.btn-pill-icon svg { width: 16px; height: 16px; transition: transform 0.6s var(--ease-back); }
.btn-pill:hover .btn-pill-icon svg { transform: rotate(-45deg); }
.btn-pill.is-light { background: var(--paper); color: var(--ink); }

/* ---------- Sections ---------- */
.section { position: relative; }
.container { width: 100%; padding: 0 var(--gutter); }

/* ---------- HOME: Hero (editorial split) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: #dcb898; }
.hero-media { position: absolute; inset: 0; }
.hero-media picture, .hero-media img { display: block; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 65% 30%; }
/* Keeps the copy readable when narrower screens push the portrait under it */
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(222, 186, 155, 0.9) 0%, rgba(222, 186, 155, 0.55) 34%, rgba(222, 186, 155, 0) 58%); }
.hero-grid {
  position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  padding: clamp(110px, 14vh, 150px) var(--gutter) clamp(40px, 6vh, 72px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(20px, 3vh, 32px); max-width: min(52vw, 900px); }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill); border: 1px solid rgba(19, 19, 22, 0.16); background: rgba(242, 241, 238, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.9rem; font-weight: 500;
}
.hero-title { font-size: clamp(3rem, min(8.4vw, 15svh), 10rem); }
.hero-title .text-cobalt { display: block; }
.hero-lede { max-width: 38ch; font-size: clamp(1.05rem, 1.25vw, 1.3rem); line-height: 1.5; color: #2a2a2f; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.link-line { position: relative; display: inline-flex; min-height: 44px; align-items: center; font-weight: 500; }
.link-line::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform-origin: right; transition: transform 0.5s var(--ease-out); }
.link-line:hover::after { transform: scaleX(0); }
.hero-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 8px clamp(24px, 3vw, 56px); margin: 8px 0 0; padding-top: 22px; border-top: 1px solid rgba(19, 19, 22, 0.2); }
.hero-meta div { display: flex; flex-direction: column; gap: 6px; }
.hero-meta dt { color: rgba(19, 19, 22, 0.62); }
.hero-meta dd { margin: 0; font-weight: 500; }


@media (min-width: 768px) and (max-height: 820px) {
  .hero-grid { padding-top: 96px; padding-bottom: 28px; }
  .hero-copy { gap: 16px; }
  .hero-meta { padding-top: 16px; }
}

/* ---------- HOME: Statement ---------- */
.statement { padding: 20vh 0 8vh; }
.statement-top { display: flex; justify-content: space-between; padding-bottom: 20px; margin-bottom: 6vh; border-bottom: 1px solid var(--line); }
.statement-text {
  font-size: clamp(2rem, 5.4vw, 6.2rem); line-height: 1; letter-spacing: -0.035em;
  max-width: 17ch; color: var(--ink);
}
.statement-text .word { display: inline-block; }
.inline-pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 1.7em; height: 0.78em; margin: 0 0.04em; vertical-align: -0.02em;
  border-radius: var(--radius-pill); overflow: hidden;
}
.inline-pill.is-cursor { background: var(--cobalt); }
.inline-pill.is-scroll { background: var(--sand); }
.inline-pill.is-photo { background: var(--sand); }
.inline-pill.is-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.pill-cursor { width: 0.36em; height: 0.36em; position: relative; z-index: 1; animation: pill-click 2.4s var(--ease-out) infinite; }
.pill-ripple { position: absolute; left: 50%; top: 50%; width: 0.3em; height: 0.3em; margin: -0.15em 0 0 -0.15em; border-radius: 50%; border: 2px solid var(--paper); opacity: 0; animation: pill-ripple 2.4s ease-out infinite; }
.pill-arrow { width: 0.38em; height: 0.38em; animation: pill-arrow 1.6s var(--ease-out) infinite; }
@keyframes pill-click { 0%, 100% { transform: translate(0.25em, 0.14em); } 40% { transform: translate(0, 0); } 48% { transform: translate(0, 0) scale(0.82); } 56% { transform: translate(0, 0) scale(1); } }
@keyframes pill-ripple { 0%, 46% { opacity: 0; transform: scale(0.4); } 50% { opacity: 0.9; } 80%, 100% { opacity: 0; transform: scale(2.6); } }
@keyframes pill-arrow { 0% { transform: translateY(-110%); } 45%, 60% { transform: translateY(0); } 100% { transform: translateY(110%); } }
.click-word { position: relative; display: inline-block; cursor: pointer; color: var(--cobalt); }
.click-word-bubble {
  position: absolute; left: 50%; bottom: 100%; translate: -50% -8px;
  padding: 10px 16px; border-radius: var(--radius-pill); white-space: nowrap;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-body); font-stretch: 100%; font-size: 0.95rem; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1.2;
  opacity: 0; pointer-events: none;
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12vh 0 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 22px 24px 0 0; border-top: 1px solid var(--line); }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { margin: 0; font-size: clamp(2.4rem, 4.6vw, 5rem); }

/* ---------- HOME: Services ---------- */
.services { padding: 8vh 0 14vh; }
.services-head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; margin-bottom: 10vh; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.services-title { font-size: clamp(1.8rem, 4.2vw, 4.4rem); max-width: 16ch; }
.service-list { display: flex; flex-direction: column; gap: 14vh; }
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 4vw; align-items: center; }
.service:nth-child(even) .service-text { order: 2; }
.service-text { display: flex; flex-direction: column; gap: 18px; }
.service-index { color: var(--cobalt); }
.service-title { font-size: clamp(1.8rem, 3.6vw, 3.8rem); }
.service-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5vw; perspective: 1500px; }
.tile {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-s); overflow: hidden;
  background: var(--paper-2); transform-origin: 50% 100%;
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; }
.tile-ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 10px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(19,19,22,0.72);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(160deg, var(--paper-2), var(--sand-light));
}
.tile:nth-child(2n) .tile-ph { background: linear-gradient(200deg, #2a45d0, #131316); color: rgba(242,241,238,0.8); }
.tile:nth-child(3n) .tile-ph { background: linear-gradient(170deg, #3a3a40, #131316); color: rgba(242,241,238,0.8); }

/* ---------- HOME: Work teaser ---------- */
.teaser { position: relative; height: 110vh; display: grid; place-items: center; overflow: hidden; }
.teaser-word {
  position: absolute; font-size: 38vw; line-height: 0.8; color: transparent;
  -webkit-text-stroke: 1.5px var(--line); pointer-events: none; white-space: nowrap;
}
.teaser-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.stack { position: relative; display: block; width: clamp(200px, 22vw, 320px); aspect-ratio: 4 / 3; cursor: pointer; }
.stack-card {
  position: absolute; inset: 0; border-radius: 10px; transform-origin: 50% 100%;
  box-shadow: 0 20px 40px -20px rgba(19,19,22,0.4);
  transition: transform 0.7s var(--ease-back);
}
.stack-card:nth-child(1) { background: var(--sand); transform: rotate(-6deg); }
.stack-card:nth-child(2) { background: var(--cobalt); transform: rotate(3deg); }
.stack-card:nth-child(3) {
  background: var(--ink); color: var(--paper);
  display: flex; align-items: flex-end; justify-content: space-between; padding: 18px;
}
.stack:hover .stack-card:nth-child(1), .stack:focus-visible .stack-card:nth-child(1) { transform: translate(-38%, -10%) rotate(-16deg); }
.stack:hover .stack-card:nth-child(2), .stack:focus-visible .stack-card:nth-child(2) { transform: translate(38%, -10%) rotate(14deg); }
.stack:hover .stack-card:nth-child(3), .stack:focus-visible .stack-card:nth-child(3) { transform: translateY(-6%) scale(1.04); }

/* ---------- HOME: Pinned story ---------- */
.story { position: relative; background: var(--ink); color: var(--paper); }
.story-stage { position: relative; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.story-step { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3vh; }
.story-row { font-size: clamp(3rem, 11vw, 12rem); white-space: nowrap; will-change: transform; }
.story-row.is-outline { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.story-portrait {
  position: absolute; z-index: 1; width: clamp(160px, 18vw, 280px); aspect-ratio: 3 / 4.2;
  border-radius: var(--radius-pill); overflow: hidden; background: var(--sand);
}
.story-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.05); }
.story-step-1 .story-row { position: relative; z-index: 2; mix-blend-mode: difference; }
.story-line { width: min(60vw, 900px); height: 1px; background: var(--line-dark); position: relative; overflow: hidden; }
.story-line::after { content: ""; position: absolute; inset: 0; background: var(--sand); transform: scaleX(var(--p, 0)); transform-origin: left; }
.story-caption { font-size: clamp(1.1rem, 1.8vw, 1.8rem); font-weight: 500; color: var(--sand-light); }
.story-step-2 { padding: 0 var(--gutter); opacity: 0; }
.story-step-2 h2 { font-size: clamp(1.8rem, 4vw, 4.2rem); text-align: center; max-width: 18ch; }
.benefits { width: min(100%, 760px); }
.benefit { display: flex; align-items: center; gap: 18px; padding: 18px 0; position: relative; font-size: clamp(1rem, 1.4vw, 1.3rem); }
.benefit::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-dark); transform: scaleX(var(--p, 0)); transform-origin: left; }
.benefit-check { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cobalt); }
.benefit-check svg { width: 14px; height: 14px; }

/* ---------- CTA band ---------- */
.cta { padding: 18vh 0 0; background: var(--paper); position: relative; z-index: 3; }
.cta-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 8vh; padding: 0 var(--gutter); }
.cta-title { font-size: clamp(2rem, 5.6vw, 6rem); max-width: 14ch; }
.cta-band {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%;
  min-height: clamp(110px, 13vw, 220px); padding: 0 var(--gutter);
  background: var(--cobalt); color: var(--paper); overflow: hidden; cursor: pointer; text-align: left;
  border-top: 1px solid var(--line);
}
.cta-band-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--ink); z-index: 0; }
.cta-band > :not(.cta-band-fill) { position: relative; z-index: 1; }
.cta-band-text { font-size: clamp(2rem, 6vw, 6.4rem); }
.cta-band-email { font-size: clamp(1rem, 2.4vw, 2.4rem); font-weight: 500; }
.cta-band-arrow { width: clamp(36px, 5vw, 80px); height: auto; transition: transform 0.6s var(--ease-back); }
.cta-band:hover .cta-band-arrow { transform: rotate(-45deg); }


/* ---------- Logo ---------- */
.logo-mark { width: 26px; height: 26px; flex: none; overflow: visible; }
.logo-dot { fill: var(--cobalt); }
.nav.is-light .logo-dot, .loader .logo-dot, .footer .logo-dot { fill: var(--sand); }
.nav-name { gap: 10px; }
.loader-name .logo-mark { width: 0.9em; height: 0.9em; }

/* ---------- Footer (uncover) ---------- */
.footer { position: relative; z-index: 1; background: var(--ink); color: var(--paper); overflow: hidden; }
.footer-inner { min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(48px, 9vh, 110px); padding: clamp(80px, 14vh, 160px) var(--gutter) 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px 4vw; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 34ch; }
.footer-brand .logo-mark { width: 52px; height: 52px; }
.footer-brand p { font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.45; color: rgba(242, 241, 238, 0.82); }
.footer-status { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-dark); font-size: 0.9rem; }
.status-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: status-ping 2s ease-out infinite; }
@keyframes status-ping { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }
.footer-col h2 { margin-bottom: 18px; color: rgba(242, 241, 238, 0.55); }
.footer-col li { border-bottom: 1px solid var(--line-dark); }
.footer-col a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-size: 1.05rem; }
.footer-col .ext { width: 16px; height: 16px; opacity: 0.5; transition: transform 0.5s var(--ease-back), opacity 0.3s; }
.footer-col a:hover .ext { transform: translate(2px, -2px); opacity: 1; }
.footer-email { word-break: break-all; }
.footer-note { margin-top: 12px; font-size: 0.9rem; color: rgba(242, 241, 238, 0.55); }
.to-top { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; min-height: 44px; font-size: 0.95rem; }
.to-top svg { width: 40px; height: 40px; padding: 11px; border-radius: 50%; border: 1px solid var(--line-dark); transition: background 0.3s, transform 0.5s var(--ease-back); }
.to-top:hover svg { background: var(--paper); color: var(--ink); transform: translateY(-3px); }
.footer-name { display: flex; justify-content: space-between; align-items: center; gap: 2vw; font-size: 12.6vw; line-height: 0.82; margin: 0; overflow: hidden; padding-bottom: 0.02em; }
.fn-part { display: block; }
.fn-mark { display: flex; }
.fn-mark .logo-mark { width: 0.72em; height: 0.72em; }
.footer-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line-dark); color: rgba(242, 241, 238, 0.55); font-size: 0.9rem; }

/* ---------- WORK page ---------- */
.page-head { padding: 22vh var(--gutter) 10vh; display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw; }
.page-title { font-size: clamp(2.4rem, 7vw, 7.6rem); max-width: 11ch; }
.page-title .dash { color: var(--cobalt); }
.page-head-aside { max-width: 30ch; color: var(--stone); }
.work-layout > * { min-width: 0; }
.work-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4vw; padding: 0 var(--gutter) 16vh; }
.work-index { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.work-index a { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--stone); transition: color 0.3s; min-height: 40px; }
.work-index a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; transition: background 0.3s, transform 0.4s var(--ease-back); }
.work-index a.is-active { color: var(--ink); }
.work-index a.is-active::before { background: var(--cobalt); border-color: var(--cobalt); transform: scale(1.3); }
.project { padding-bottom: 16vh; scroll-margin-top: 100px; }
.project-meta { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); margin-bottom: 24px; }
.project-title { font-size: clamp(1.6rem, 2.6vw, 2.6rem); }
.project-type { color: var(--stone); margin-top: 6px; }
.pill { display: inline-flex; padding: 5px 12px; border-radius: var(--radius-pill); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 500; }
.pill.is-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.meta-label { color: var(--stone); margin-bottom: 8px; }
.meta-text { font-size: 0.95rem; color: var(--graphite); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.bento .tile { aspect-ratio: auto; min-height: 220px; transform-origin: 50% 50%; }
.bento .is-wide { grid-column: span 4; aspect-ratio: 16 / 10; }
.bento .is-half { grid-column: span 3; aspect-ratio: 4 / 3; }
.bento .is-third { grid-column: span 2; aspect-ratio: 3 / 4; }
.bento .is-full { grid-column: span 6; aspect-ratio: 21 / 9; }

/* ---------- ABOUT page ---------- */
.about-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6vh; padding: 18vh var(--gutter) 10vh; text-align: center; }
.about-pill { position: relative; width: clamp(120px, 12vw, 190px); aspect-ratio: 1 / 1.45; }
.about-pill-mask { width: 100%; height: 100%; border-radius: var(--radius-pill); overflow: hidden; background: var(--sand); }
.about-pill-mask img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.about-pill-dot { position: absolute; right: -6%; top: 6%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--cobalt); border: 4px solid var(--paper); }
.about-title { font-size: clamp(2.2rem, 6.4vw, 7rem); max-width: 14ch; }
.about-title .dash { color: var(--cobalt); }

.rings-scene { position: relative; height: 260vh; background: var(--ink); }
.rings-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; color: var(--paper); }
.rings-svg { position: absolute; width: min(120vh, 120vw); height: auto; }
.rings-svg circle { fill: none; stroke: var(--paper); stroke-width: 1; opacity: 0.35; }
.rings-svg circle.is-accent { stroke: var(--cobalt-soft); opacity: 0.9; stroke-width: 1.5; }
.rings-glow { position: absolute; width: 60vmin; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(42,69,208,0.55), transparent 65%); filter: blur(30px); }
.rings-copy { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }
.rings-copy .display { font-size: clamp(2.4rem, 8vw, 9rem); }
.rings-copy p { margin-top: 18px; color: rgba(242,241,238,0.65); }

.bio { padding: 16vh var(--gutter); }
.bio-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 4vw; padding: 7vh 0; }
.bio-head { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; font-size: clamp(1.5rem, 2.6vw, 2.6rem); line-height: 0.95; }
.bio-text { display: flex; flex-direction: column; gap: 1.1em; }
.bio-text p { font-size: clamp(1.05rem, 1.3vw, 1.35rem); line-height: 1.5; color: var(--graphite); }
.draw-line { height: 1px; background: var(--line); position: relative; }
.draw-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.draw-line.is-drawn::after { transform: scaleX(1); transition: transform 1.1s var(--ease-out); }
.awards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.award { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }

.news { background: var(--sand-light); padding: 14vh var(--gutter); }
.news-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4vh; }
.news-square { width: 12px; height: 12px; background: var(--cobalt); }
.news-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; align-items: start;
  padding: 6vh 4vw; margin-bottom: 2vh; border-radius: 18px; background: var(--paper);
  transform-origin: 50% 0%;
}
.news-num { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(3rem, 6vw, 6rem); line-height: 0.8; color: var(--cobalt); }
.news-title { font-size: clamp(1.6rem, 3vw, 3rem); }
.news-body { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }

/* ---------- Placeholder marker ---------- */
[data-placeholder] { position: relative; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) and (max-width: 1199px) {
  .hero-media img { object-position: 38% 30%; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-social { display: none; }
}
@media (max-width: 991px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: 44ch; }
  .service, .service:nth-child(even) { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-text { order: 0; }
  .work-layout { grid-template-columns: 1fr; }
  .work-index { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .news-card { grid-template-columns: auto 1fr; }
  .news-body { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-social { display: none; }
  .nav { padding-top: 16px; gap: 8px; }
  .nav-link { padding: 8px 12px; }
  .hero-media img { object-position: 50% 0%; }
  .hero-title { font-size: 13vw; }
  .hero-meta { display: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(19, 19, 22, 0) 28%, rgba(19, 19, 22, 0.55) 52%, rgba(19, 19, 22, 0.9) 100%); }
  .hero-grid { align-items: end; padding-top: 100px; padding-bottom: 32px; }
  .hero-copy { max-width: none; gap: 18px; color: var(--paper); }
  .hero-title .text-cobalt { color: var(--cobalt-soft); }
  .hero-lede { color: rgba(242, 241, 238, 0.88); }
  .hero-eyebrow { color: var(--ink); }
  .hero-meta { border-top-color: var(--line-dark); }
  .hero-meta dt { color: rgba(242, 241, 238, 0.65); }
  .hero-actions .link-line { color: var(--paper); }
  .hero-actions .btn-pill { background: var(--paper); color: var(--ink); }
  .hero-meta { grid-template-columns: repeat(2, auto); }
  .service-strip { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .service-strip .tile:nth-child(n + 4) { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
  .story-stage { height: auto; padding: 14vh 0; }
  .story-step { position: relative; inset: auto; }
  .story-step-2 { opacity: 1; margin-top: 10vh; }
  .story-portrait { position: relative; }
  .story-row { white-space: normal; text-align: center; font-size: 13vw; }
  .story-line::after, .benefit::after { transform: scaleX(1); }
  .bio-block { grid-template-columns: 1fr; }
  .awards { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .tile { min-height: 0; }
  .bento .is-wide, .bento .is-full { grid-column: span 2; }
  .bento .is-half, .bento .is-third { grid-column: span 1; }
  .project-meta { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .cta-band { flex-wrap: wrap; padding-top: 24px; padding-bottom: 24px; }
  .rings-scene { height: auto; }
  .rings-sticky { position: relative; height: 90svh; }
}

/* Static layout for pinned scenes when motion is reduced */
.is-static .story-stage { height: auto; padding: 14vh 0; }
.is-static .story-step { position: relative; inset: auto; }
.is-static .story-step-2 { opacity: 1; margin-top: 10vh; }
.is-static .story-portrait { position: relative; }
.is-static .story-row { white-space: normal; text-align: center; }
.is-static .story-line::after, .is-static .benefit::after { transform: scaleX(1); }
.is-static .rings-scene { height: auto; }
.is-static .rings-sticky { position: relative; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .loader { display: none; }
  .story-step-2 { opacity: 1; }
}
