/* ============================================================
   Warm Paper Studio — design system
   Self-hosted fonts. No remote requests at runtime.
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../assets/fonts/plus-jakarta-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}

:root {
  --paper:        #F7F2E7;
  --ink:          #1C1A17;
  --taupe:        #6B6357;
  --indigo:       #3B2F63;
  --indigo-deep:  #2C2350;
  --amber:        #E8A22B;
  --amber-ink:    #96691B; /* amber held to >=4.3:1 on paper/card — the pure hue fails at 1.95:1 */
  --amber-soft:   #FAE9C8;
  --sage:         #7FA77C;
  --sage-tint:    #DDE8D4;
  --clay:         #C9673E;
  --clay-ink:     #AA5734; /* clay for small text: 4.56:1 on paper. The pure hue is 3.42:1 */
  --lavender:     #E7E0F4;
  --indigo-tint:  #E3DEF0;
  --card:         #FFFDF8;
  --border:       #EAE2D2;

  --r-lg: 40px;
  --r-md: 28px;
  --r-sm: 18px;
  --r-pill: 999px;

  --shadow-1: 0 2px 8px rgba(28,26,23,.05);
  --shadow-2: 0 12px 28px rgba(28,26,23,.09);
  --shadow-3: 0 24px 56px rgba(28,26,23,.16);

  --ff-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --ff-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(.22,1,.36,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain overlay — fixed, pointer-events none */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url('../assets/art/paper-grain.svg');
  opacity: .16;
  mix-blend-mode: multiply;
}

h1, h2, h3, h4, .display {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -.015em;
}

p { margin: 0; }
a { color: inherit; }

img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clay-ink);
  margin: 0 0 18px;
}
.eyebrow.indigo { color: var(--indigo); }

.lede { color: var(--taupe); font-size: 18.5px; max-width: 56ch; }
.lede.lg { font-size: 20px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-body); font-weight: 700; font-size: 16px;
  text-decoration: none; border: none; cursor: pointer;
  padding: 16px 26px 16px 30px; border-radius: var(--r-pill);
  background: var(--indigo); color: #FFFDF8;
  box-shadow: var(--shadow-2);
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { background: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-3); }
.btn:active { transform: translateY(0); }
.btn .chip {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,253,248,.16);
  display: grid; place-items: center;
  transition: transform .4s var(--ease), background .3s var(--ease);
}
.btn:hover .chip { transform: translateX(4px) rotate(-45deg); background: var(--amber); }
.btn .chip svg { width: 16px; height: 16px; }

.btn.amber-ring {
  background: transparent; color: var(--indigo);
  box-shadow: inset 0 0 0 2px var(--amber), var(--shadow-1);
  padding: 13px 24px;
}
.btn.amber-ring:hover { background: var(--indigo); color: #FFFDF8; box-shadow: inset 0 0 0 2px var(--indigo), var(--shadow-2); }
.btn.amber-ring:hover .chip { background: var(--amber); }
.btn.amber-ring .chip { background: var(--amber-soft); }
.btn.amber-ring .chip svg { stroke: var(--indigo); }

.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--border); }
.btn.ghost:hover { background: var(--ink); color: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }

/* underline link */
.ulink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15.5px; color: var(--indigo);
  text-decoration: none; border-bottom: 2px solid rgba(59,47,99,.28);
  padding-bottom: 3px;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.ulink:hover { border-color: var(--amber); gap: 14px; }
.ulink svg { width: 15px; height: 15px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.from-left  { transform: translateX(-100px); }
.reveal.from-right { transform: translateX(100px); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 1000;
  display: flex; align-items: center; gap: 26px;
  max-width: calc(100% - 24px);
  padding: 10px 14px 10px 20px;
  border-radius: var(--r-pill);
  background: rgba(255,253,248,.8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-2);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--indigo); color: #FFFDF8;
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 19px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.14);
  flex: none;
}
.brand .wordmark { font-family: var(--ff-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; }
.brand .wordmark em { font-style: normal; color: var(--amber); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--taupe);
  padding: 9px 14px; border-radius: var(--r-pill);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--ink); background: var(--paper); }

.nav-toggle {
  display: none; background: transparent; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; place-items: center;
}
.nav-toggle:hover { background: var(--paper); }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2.2; fill: none; stroke-linecap: round; }

.nav-sheet {
  position: fixed; inset: 0; z-index: 999; display: none;
}
.nav-sheet.open { display: block; }
.nav-sheet .scrim { position: absolute; inset: 0; background: rgba(28,26,23,.34); }
.nav-sheet .panel {
  position: absolute; top: 76px; left: 12px; right: 12px;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-3);
  padding: 14px; list-style: none; margin: 0;
}
.nav-sheet .panel li + li { margin-top: 4px; }
.nav-sheet .panel a {
  display: block; text-decoration: none; font-weight: 600; font-size: 17px;
  padding: 13px 16px; border-radius: var(--r-sm); color: var(--ink);
}
.nav-sheet .panel a:hover { background: var(--paper); }
.nav-sheet .panel .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }

.hero h1 {
  font-size: clamp(40px, 6.2vw, 82px);
  line-height: 1.03;
  margin: 0 0 26px;
}
.hero h1 .glow-word { position: relative; display: inline-block; color: var(--amber-ink); font-style: italic; }
.hero h1 .glow-word svg {
  position: absolute; left: -4%; right: -4%; bottom: -16px;
  width: 108%; height: 20px; overflow: visible;
  stroke: var(--amber); /* decorative underline: pure hue, non-text */
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 34px 0 30px; }

.trust { display: flex; align-items: center; gap: 14px; }
.avatars { display: flex; }
.avatars span {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3.5px solid var(--paper);
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 16px; color: #FFFDF8;
}
.avatars span + span { margin-left: -14px; }
.avatars span:nth-child(1) { background: var(--indigo); }
.avatars span:nth-child(2) { background: var(--clay); }
.avatars span:nth-child(3) { background: var(--sage); }
.avatars span:nth-child(4) { background: var(--amber); }
.trust .txt { font-size: 14.5px; color: var(--taupe); font-weight: 600; line-height: 1.35; }
.trust .txt b { color: var(--ink); }

/* hero right cluster */
.hero-art { position: relative; height: 560px; }
.hero-art .glow-blob {
  position: absolute; top: -6%; right: -10%; width: 88%; height: 88%;
  background: var(--amber); opacity: .3;
  border-radius: 46% 54% 62% 38% / 52% 44% 56% 48%;
  transform: rotate(-14deg);
  filter: blur(6px);
  z-index: 0;
}
.hero-art .card-info {
  position: absolute; top: 4%; left: 0; width: 262px; z-index: 3;
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 20px 22px; box-shadow: var(--shadow-3);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.hero-art .card-info:hover { transform: translateY(-8px); box-shadow: var(--shadow-3); }
.hero-art .card-info .icon-chip {
  width: 46px; height: 46px; border-radius: 16px; background: var(--sage-tint);
  display: grid; place-items: center; margin-bottom: 12px;
}
.hero-art .card-info .icon-chip svg { width: 24px; height: 24px; }
.hero-art .card-info h3 { font-size: 21px; margin-bottom: 6px; }
.hero-art .card-info p { font-size: 14.5px; color: var(--taupe); }

.hero-art .card-shot {
  position: absolute; bottom: 0; right: 2%; width: 400px; z-index: 2;
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--r-lg);
  padding: 12px; box-shadow: var(--shadow-3);
  transition: transform .45s var(--ease);
}
.hero-art .card-shot .frame { min-width: 0; }
.hero-art .card-shot:hover { transform: translateY(-8px); }
.hero-art .card-shot .frame { border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.hero-art .card-shot .frame svg { width: 100%; height: auto; }
.hero-art .card-shot figcaption {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 14px 8px 6px;
}
.hero-art .card-shot figcaption b { font-family: var(--ff-display); font-size: 17px; }
.hero-art .card-shot figcaption small { color: var(--taupe); font-weight: 600; font-size: 13.5px; }

.doodle { position: absolute; z-index: 4; pointer-events: none; }
.doodle svg { width: 100%; height: 100%; }
.doodle.float { animation: floaty 4.5s ease-in-out infinite; }
.doodle.d1 { top: 8%; right: 40%; width: 34px; }
.doodle.d2 { bottom: 14%; left: 36%; width: 26px; animation-delay: 1.1s; }
.doodle.d3 { top: 42%; right: -4%; width: 22px; animation-delay: 2.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-13px) rotate(8deg); } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--sage-tint);
  border-top: 1.5px solid #CBDCC2; border-bottom: 1.5px solid #CBDCC2;
  padding: 17px 0; overflow: hidden;
}
.marquee .track {
  display: flex; align-items: center; gap: 34px; width: max-content;
  animation: scroll-x 30s linear infinite;
}
.marquee:hover .track { animation-play-state: paused; }
.marquee .item {
  display: flex; align-items: center; gap: 34px;
  font-family: var(--ff-display); font-weight: 600; font-size: 22px; color: var(--indigo);
  white-space: nowrap;
}
.marquee .star { width: 20px; height: 20px; flex: none; animation: spin 12s linear infinite; }
@keyframes scroll-x { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.sec { padding: 110px 0; }
.sec-head { max-width: 62ch; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(32px, 4.2vw, 54px); margin-bottom: 18px; }
.sec-head.center h2 { margin-left: auto; margin-right: auto; }

/* ============================================================
   APPROACH + STATS
   ============================================================ */
.approach-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.approach-grid h2 { font-size: clamp(30px, 3.8vw, 48px); }
.icon-cluster { display: flex; align-items: center; justify-content: center; }
.icon-cluster .circ {
  width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: var(--shadow-2);
  border: 4px solid var(--paper);
}
.icon-cluster .circ + .circ { margin-left: -38px; }
.icon-cluster .circ svg { width: 52px; height: 52px; }
.icon-cluster .c1 { background: var(--amber-soft); }
.icon-cluster .c2 { background: var(--sage-tint); }
.icon-cluster .c3 { background: var(--lavender); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: 72px;
}
.stat {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 30px 26px; box-shadow: var(--shadow-1);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.stat .num { font-family: var(--ff-display); font-weight: 700; font-size: 46px; line-height: 1; color: var(--indigo); }
.stat .num em { font-style: normal; color: var(--amber-ink); }
.stat .lbl { margin-top: 10px; color: var(--taupe); font-weight: 600; font-size: 14.5px; }

.tilt-row { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 26px; align-items: center; margin-top: 60px; }
.tilt-card {
  border-radius: var(--r-lg); padding: 34px 30px; box-shadow: var(--shadow-2);
  border: 1.5px solid rgba(28,26,23,.06);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tilt-card h3 { font-size: 23px; margin-bottom: 10px; }
.tilt-card p { font-size: 15.5px; color: var(--taupe); }
.tilt-card.t-sage { background: var(--sage-tint); transform: rotate(-4deg); }
.tilt-card.t-lav { background: var(--lavender); transform: rotate(4deg); }
.tilt-card:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-3); }
.tilt-card.t-img { padding: 10px; background: var(--card); border-color: var(--border); }
.tilt-card.t-img svg { border-radius: var(--r-md); width: 100%; height: auto; }

/* ============================================================
   WHY SPLIT
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .frame {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3);
  border: 1.5px solid var(--border); background: var(--card);
}
.split .frame svg { width: 100%; height: auto; transition: transform .7s var(--ease); }
.split .frame:hover svg { transform: scale(1.04); }
.split h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 18px; }

.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; margin: 30px 0 34px; }
.feat-list .fi { display: flex; gap: 13px; }
.feat-list .fi .dot {
  width: 34px; height: 34px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
}
.feat-list .fi .dot svg { width: 18px; height: 18px; }
.feat-list .fi h4 { font-size: 17.5px; margin-bottom: 4px; }
.feat-list .fi p { font-size: 14.5px; color: var(--taupe); }
.feat-list .fi.a .dot { background: var(--amber-soft); }
.feat-list .fi.b .dot { background: var(--sage-tint); }
.feat-list .fi.c .dot { background: var(--lavender); }
.feat-list .fi.d .dot { background: #F3DACC; }

.divider { height: 1.5px; background: var(--border); margin: 8px 0 30px; }

/* ============================================================
   WORK GRID
   ============================================================ */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card {
  position: relative; background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 28px 26px 26px;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  text-decoration: none; overflow: hidden;
}
.work-card::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 3px;
  background: var(--amber-ink);
  transform: scaleX(0); transform-origin: left;
  border-radius: 3px;
  transition: transform .5s var(--ease);
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-3); }
.work-card:hover::after { transform: scaleX(1); }
.work-card .glyph {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  margin-bottom: 20px; box-shadow: var(--shadow-1);
}
.work-card .glyph svg, .work-card .glyph img { width: 32px; height: 32px; }
.work-card h3 { font-size: 25px; margin-bottom: 10px; transition: transform .4s var(--ease); }
.work-card:hover h3 { transform: scale(1.03); }
.work-card p { font-size: 15px; color: var(--taupe); flex: 1; }
.work-card .meta {
  display: flex; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap;
}
.pill-tag {
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--paper); color: var(--taupe); border: 1.5px solid var(--border);
}
.pill-tag.live { background: var(--sage-tint); color: #3E5B3B; border-color: #CBDCC2; }
.pill-tag.oss  { background: var(--lavender); color: var(--indigo); border-color: #D6CDEC; }
.pill-tag.tool { background: var(--amber-soft); color: #7A5410; border-color: #F0DCA9; }

.work-cta {
  margin-top: 44px; text-align: center;
}
.work-cta .btn.ghost { margin-top: 8px; }

/* ============================================================
   FEATURE ROWS (deep dives)
   ============================================================ */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center;
  background: var(--sage-tint); border: 1.5px solid #CBDCC2;
  border-radius: var(--r-lg); padding: 44px; margin-bottom: 30px;
  box-shadow: var(--shadow-1);
}
.feature-row.reverse { grid-template-columns: 1fr 1fr; background: var(--lavender); border-color: #D6CDEC; }
.feature-row.reverse .fr-media { order: 2; }
.feature-row .num-circ {
  width: 56px; height: 56px; border-radius: 50%; background: var(--indigo); color: #FFFDF8;
  font-family: var(--ff-display); font-weight: 700; font-size: 21px;
  display: grid; place-items: center; margin-bottom: 22px; box-shadow: var(--shadow-2);
}
.feature-row h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.feature-row p { color: var(--taupe); margin-bottom: 22px; font-size: 16.5px; }
.feature-row .fr-media {
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-3);
  border: 1.5px solid rgba(28,26,23,.08);
}
.feature-row .fr-media svg { width: 100%; height: auto; transition: transform .8s var(--ease); }
.feature-row:hover .fr-media svg { transform: scale(1.06); }

/* ============================================================
   PROCESS MASONRY
   ============================================================ */
.proc-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.proc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.proc-card {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--r-md);
  padding: 24px 22px; box-shadow: var(--shadow-1);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.proc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.proc-card:nth-child(2) { transform: translateY(26px); }
.proc-card:nth-child(4) { transform: translateY(26px); }
.proc-card:nth-child(2):hover, .proc-card:nth-child(4):hover { transform: translateY(20px); }
.proc-card .glyph { width: 42px; height: 42px; margin-bottom: 16px; }
.proc-card .glyph svg { width: 42px; height: 42px; animation: spin 14s linear infinite; }
.proc-card h4 { font-size: 19px; margin-bottom: 8px; }
.proc-card p { font-size: 14.5px; color: var(--taupe); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-band { padding: 60px 0 110px; }
.cta-card {
  position: relative; overflow: hidden;
  border: 3px solid var(--indigo); border-radius: var(--r-lg);
  padding: 72px 40px; text-align: center;
  background: var(--indigo-tint);
  box-shadow: var(--shadow-3);
}
.cta-card .bg-art { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.cta-card .bg-art svg { width: 100%; height: 100%; object-fit: cover; }
.cta-card .inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta-card h2 { font-size: clamp(30px, 4vw, 50px); margin-bottom: 16px; }
.cta-card p { color: var(--taupe); font-size: 18px; margin-bottom: 30px; }
.cta-card .blob { position: absolute; border-radius: 50%; filter: blur(44px); z-index: 0; pointer-events: none; }
.cta-card .blob.b1 { width: 260px; height: 260px; background: var(--amber); opacity: .42; top: -70px; left: -60px; }
.cta-card .blob.b2 { width: 300px; height: 300px; background: var(--sage); opacity: .38; bottom: -100px; right: -80px; }
.cta-card .blob.b3 { width: 200px; height: 200px; background: var(--clay); opacity: .28; bottom: -40px; left: 28%; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: #E9E2D4; padding: 80px 0 0; position: relative; overflow: hidden; }
.footer .fgrid { display: grid; grid-template-columns: 1.4fr .8fr .9fr 1fr; gap: 48px; position: relative; z-index: 1; }
.footer .fgrid > div { min-width: 0; }
.footer h4 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); font-family: var(--ff-body); font-weight: 700; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a { text-decoration: none; color: #C9C0AE; font-size: 15px; transition: color .25s; overflow-wrap: anywhere; }
.footer a:hover { color: #FFFDF8; }
.footer .brand { display: block; }
.footer .brand .mark {
  width: 46px; height: 46px; border-radius: 50%; background: var(--indigo); color: #FFFDF8;
  display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; font-size: 22px;
  margin-bottom: 16px;
}
.footer .brand p { color: #B7AE9C; font-size: 15px; max-width: 34ch; }
.footer .brand .contact { margin-top: 18px; font-size: 14.5px; color: #C9C0AE; display: grid; gap: 6px; }
.footer .contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer .contact svg { width: 15px; height: 15px; }
.footer .contact .loc {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; font-size: 14.5px; color: #9C937F;
}
.footer .contact .loc svg { width: 15px; height: 15px; }

.socials { display: flex; gap: 10px; margin-bottom: 18px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,253,248,.08); transition: background .3s, transform .3s var(--ease);
}
.socials a:hover { background: var(--amber); transform: translateY(-3px); }
.socials a svg { width: 18px; height: 18px; fill: none; stroke: #E9E2D4; stroke-width: 1.9; }
.socials a:hover svg { stroke: var(--ink); }

.footer .status {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 4px 0 20px; font-size: 14.5px; font-weight: 600; color: #C9C0AE;
}
.footer .status .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 3px rgba(127,167,124,.22);
  flex: none;
}

.footer .wa {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--sage); color: var(--ink); font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: var(--r-pill);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.footer .wa:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(127,167,124,.28); }
.footer .wa svg { width: 16px; height: 16px; }

.footer .big-glyph {
  position: absolute; right: -70px; bottom: -90px; width: 340px; height: 340px;
  opacity: .07; z-index: 0; animation: spin 40s linear infinite;
}
.footer .big-glyph svg { width: 100%; height: 100%; }

.fbar {
  margin-top: 64px; border-top: 1px solid rgba(255,253,248,.12);
  padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; font-size: 14px; color: #9C937F; position: relative; z-index: 1;
}
.fbar em { font-style: normal; color: var(--amber); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .reveal.from-left, .reveal.from-right { transform: translateY(30px); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { height: auto; margin-top: 20px; }
  .hero-art .glow-blob { display: none; }
  .hero-art .card-info { position: static; width: 100%; margin: 0 0 18px; }
  .hero-art .card-shot { position: static; width: 100%; margin: 0; right: auto; bottom: auto; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid, .split, .proc-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer .fgrid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .fr-media { order: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  /* the pill is tight; drop the desktop CTA and keep brand + toggle */
  .nav .btn.amber-ring { display: none; }
  .nav { gap: 14px; padding: 8px 10px 8px 16px; }
  .wrap { padding: 0 20px; }
  .sec { padding: 76px 0; }
  .hero { padding: 118px 0 60px; }
  .hero-art .card-info { margin-bottom: 18px; }
  .doodle { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 22px 18px; }
  .stat .num { font-size: 36px; }
  .tilt-row { grid-template-columns: 1fr; }
  .tilt-card.t-sage, .tilt-card.t-lav { transform: none; }
  .work-grid { grid-template-columns: 1fr; }
  .proc-cards { grid-template-columns: 1fr; }
  .proc-card:nth-child(2), .proc-card:nth-child(4) { transform: none; }
  .feat-list { grid-template-columns: 1fr; }
  .feature-row { padding: 28px; }
  .cta-card { padding: 52px 24px; }
  .footer .fgrid { grid-template-columns: 1fr; }
  .footer .big-glyph { display: none; }
  .brand .wordmark { font-size: 18px; }
  .marquee .item { font-size: 18px; gap: 22px; }
  .marquee .track { gap: 22px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .marquee .track { animation: none !important; }
  .doodle.float, .proc-card .glyph svg, .footer .big-glyph, .marquee .star { animation: none !important; }
}

/* browser surfaces — selection, caret, scrollbar carry the theme */
::selection { background: var(--amber-soft); color: var(--ink); }

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: #DCD1BC; border-radius: 99px;
  border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: var(--taupe); }

:root { color-scheme: light; }

/* focus visibility */
:focus-visible {
  outline: 3px solid var(--amber-ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
  z-index: 2000; background: var(--ink); color: var(--card);
  padding: 12px 22px; border-radius: var(--r-pill); font-weight: 700;
  text-decoration: none; transition: top .3s var(--ease);
}
.skip:focus { top: 12px; }
