/* =========================================================
   SG Systems — style.css
   Pearl Studio design system. See BUILD-PLAN.md §17–22.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --pearl-50: #FFFFFF;
  --pearl-100: #FAF9F6;
  --pearl-200: #ECEAE4;
  --silver-300: #CDD0D1;
  --silver-500: #6A716E;   /* readable label grey (5:1 on white) */
  --silver-400: #A3A9A6;   /* decorative strokes only */
  --graphite-700: #4A5054;
  --charcoal-900: #27332E;

  --sage-300: #B9CBBE;
  --sage-500: #879F8B;     /* decorative accent */
  --sage-700: #56705C;     /* buttons, links, eyebrow text (5.4:1) */
  --sage-800: #475E4D;     /* button hover */

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 20px 60px -20px rgba(30, 34, 37, .18);
  --chrome: linear-gradient(135deg, #F7F8F8 0%, #C9CDCF 28%, #FDFDFD 48%, #9EA4A7 70%, #E9EBEC 100%);
  --chrome-text: linear-gradient(100deg, #2E3A35 0%, #5E656A 30%, #7C8387 46%, #4A5156 62%, #27332E 100%);
  --studio: radial-gradient(ellipse 80% 70% at 50% 18%, #FFFFFF 0%, #FDFCFA 45%, #FAF9F6 100%);

  --f-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: var(--f-body); /* labels use Inter; no monospace face */

  --fs-mega: clamp(2.5rem, 6vw, 5.25rem);
  --fs-hero: clamp(2.6rem, 5.2vw, 5rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.25rem);
  --fs-h3: clamp(1.2rem, 1.5vw, 1.375rem);
  --fs-lead: clamp(1.125rem, 1.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-label: 0.8125rem;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 20px;
  --nav-h: 72px;
  --section-y: clamp(7rem, 13vw, 11rem);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
[hidden] { display: none !important; }

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

/* ---------- 3. Base ---------- */
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  color: var(--charcoal-900);
  background: var(--pearl-50);
  overflow-x: hidden;
}
::selection { background: var(--sage-300); color: var(--charcoal-900); }
:focus-visible { outline: 2px solid var(--sage-700); outline-offset: 3px; border-radius: 6px; }

.mono { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }
.eyebrow { display: inline-flex; align-items: center; gap: .7em; color: var(--graphite-700); margin-bottom: 1.5rem; }
.node { width: 8px; height: 8px; border-radius: 2px; background: var(--sage-500); display: inline-block; box-shadow: 0 0 0 4px rgba(126, 154, 134, .15); }
.lead { font-size: var(--fs-lead); line-height: 1.4; letter-spacing: -.01em; color: var(--graphite-700); max-width: 34ch; }

.h-display, .h-mega {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
}
.h-display { font-size: var(--fs-h2); }
.h-mega { font-size: var(--fs-mega); line-height: .9; letter-spacing: -.03em; }
.h-display em, .h-mega em, .hero__title em {
  font-style: normal;
  background: var(--chrome-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .06em;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: .7rem 1rem; border-radius: 10px;
  background: var(--charcoal-900); color: #fff;
  transform: translateY(-150%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* Split-text helpers */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .09em .18em 0; margin: 0 -.09em -.18em 0; }
.w-in { display: inline-block; }
em.is-split { background: none; color: inherit; padding-right: 0; }
em.is-split .w-in { background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.mw { transition: none; }
.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; }

/* ---------- 4. Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none;
  opacity: .025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.13 0 0 0 0 0.14 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- 5. Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 180;
  background: var(--studio);
}
.preloader__inner { display: grid; justify-items: center; gap: 1rem; }
.preloader__trace { width: 160px; }
.preloader__trace .trace { stroke: var(--silver-400); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; }
.preloader__trace .node { fill: var(--sage-500); opacity: 0; transform-box: fill-box; transform-origin: center; }
.preloader__word { font-family: var(--f-display); font-size: 2rem; letter-spacing: -.01em; }
.preloader__count { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .14em; color: var(--silver-500); }
.is-loaded .preloader { pointer-events: none; }

/* ---------- 6. Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 170; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--charcoal-900); }
  .cursor__ring {
    width: 36px; height: 36px; margin: -18px 0 0 -18px;
    border: 1px solid rgba(30, 34, 37, .35);
    display: grid; place-items: center;
    transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background-color .3s, border-color .3s;
  }
  .cursor__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
  .cursor.is-hover .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--sage-500); }
  .cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--charcoal-900); border-color: transparent; }
  .cursor.is-label .cursor__label { opacity: 1; }
}

/* ---------- 7. Buttons ---------- */
.btn {
  --pad-y: 1rem; --pad-x: 1.6rem;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: var(--pad-y) var(--pad-x); min-height: 48px;
  border-radius: 999px;
  font-weight: 500; font-size: 1rem; letter-spacing: -.005em; line-height: 1;
  white-space: nowrap;
  transition: background-color .3s, color .3s, box-shadow .4s var(--ease);
}
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn::after { /* chrome sheen sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn--primary { background: var(--sage-700); color: #fff; box-shadow: 0 10px 30px -10px rgba(86, 112, 92, .55), 0 1px 0 rgba(255, 255, 255, .25) inset; }
.btn--primary:hover { background: var(--sage-800); box-shadow: 0 16px 40px -12px rgba(86, 112, 92, .65), 0 1px 0 rgba(255, 255, 255, .25) inset; }
.btn--glass {
  background: var(--glass-bg); color: var(--charcoal-900);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn--glass:hover { background: var(--glass-bg-strong); }
.btn--sm { --pad-y: .7rem; --pad-x: 1.15rem; min-height: 42px; font-size: .92rem; }
.btn--lg { --pad-y: 1.2rem; --pad-x: 2rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
[data-magnetic] > * { pointer-events: none; }

/* ---------- 8. Glass + skeleton atoms ---------- */
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
}
.sk { display: block; height: .5em; border-radius: 99px; background: linear-gradient(90deg, #D6DADB, #E9EBEB); flex-shrink: 0; }
.sk--xs { height: .36em; opacity: .8; }
.sk--xl { height: 1.05em; background: linear-gradient(90deg, #3B4145, #7A8186); opacity: .9; }
.sk--w8 { width: 8%; } .sk--w20 { width: 20%; } .sk--w30 { width: 30%; } .sk--w40 { width: 40%; } .sk--w50 { width: 50%; }
.sk--w60 { width: 60%; } .sk--w70 { width: 70%; } .sk--w90 { width: 90%; }
.pill { display: block; width: 14%; height: 1.4em; border-radius: 99px; background: var(--silver-300); flex-shrink: 0; }
.pill--sage { background: linear-gradient(180deg, var(--sage-500), var(--sage-700)); box-shadow: 0 6px 14px -6px rgba(86, 112, 92, .55); }
.pill--lg { width: 32%; height: 1.9em; margin-top: .4em; }
.pill--full { width: 100%; height: 1.7em; }
.dot { width: 1.2em; height: 1.2em; border-radius: 50%; flex-shrink: 0; }
.dot--chrome { background: var(--chrome); box-shadow: inset -2px -2px 4px rgba(0, 0, 0, .15); }
.dot--sage { background: var(--sage-500); }
.row-gap { flex: 1; }
.icon-circle { width: 2.4em; height: 2.4em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #DCE5DE 60%, var(--sage-300)); border: 1px solid #fff; flex-shrink: 0; }
.face-img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: .5em; background: linear-gradient(135deg, #EEF0EF, #D3DAD5 60%, #C5D2C8); flex-shrink: 0; }

/* ---------- 9. Navigation ---------- */
.nav {
  position: fixed; z-index: 100; top: 14px; left: var(--gutter); right: var(--gutter);
  height: 60px; padding: 0 10px 0 18px;
  display: flex; align-items: center; gap: 2rem;
  border-radius: 999px; border: 1px solid transparent;
  transition: transform .6s var(--ease), background-color .4s, border-color .4s, box-shadow .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.nav.is-glass {
  background: var(--glass-bg-strong); border-color: var(--glass-border); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.nav__logo { display: flex; align-items: center; gap: .7rem; font-weight: 600; letter-spacing: -.01em; }
.nav__logo img { width: 44px; height: auto; mix-blend-mode: multiply; }
.nav__logo span { font-size: 1rem; }
.nav__links { display: flex; gap: 2rem; margin-left: auto; }
.nav__links a { position: relative; font-size: .95rem; color: var(--graphite-700); transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--sage-500); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover { color: var(--charcoal-900); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 90;
  padding: calc(var(--nav-h) + 40px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  background: var(--studio);
}
.menu ul { display: grid; gap: .4rem; }
.menu li { overflow: hidden; }
.menu li a { display: flex; align-items: baseline; gap: 1rem; font-family: var(--f-display); font-size: clamp(3rem, 14vw, 5rem); line-height: 1.05; letter-spacing: -.02em; }
.menu li a span { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; color: var(--silver-500); }
.menu__foot { color: var(--silver-500); text-align: center; }

/* ---------- 10. Hero ---------- */
.hero { position: relative; background: var(--pearl-100); }
.hero__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.studio { position: absolute; inset: 0; background: var(--studio); }
.studio::after { /* floor line */
  content: ""; position: absolute; left: 0; right: 0; top: 68%; height: 32%;
  background: linear-gradient(180deg, rgba(250, 249, 246, 0) 0%, rgba(240, 238, 232, .55) 100%);
}

.stage { position: absolute; inset: 0; perspective: 1600px; }
.stage__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Orb */
.orb-wrap {
  position: absolute; left: 50%; top: 44%;
  width: min(40vh, 34vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.orb-wrap::before { /* soft sage halo */
  content: ""; position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(135, 159, 139, .3), rgba(135, 159, 139, 0));
  filter: blur(10px);
}
.orb {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: #D9DCDD;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 30px 60px -30px rgba(30, 34, 37, .45);
  isolation: isolate;
}
.orb__metal {
  position: absolute; inset: -25%;
  background: conic-gradient(from 0deg, #FBFBFB, #B4BABD 8%, #F4F5F5 16%, #7B8286 26%, #E9EBEC 36%, #C3C8CA 46%, #FFFFFF 56%, #8D9498 66%, #DFE2E3 78%, #A6ACAF 88%, #FBFBFB);
  filter: blur(9px);
  will-change: transform;
}
.orb__horizon {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 36%, rgba(58, 64, 68, .32) 49%, rgba(255, 255, 255, .05) 53%, rgba(214, 226, 217, .45) 82%, rgba(255, 255, 255, .2) 100%);
}
.orb__shade { position: absolute; inset: 0; background: radial-gradient(circle at 38% 30%, transparent 38%, rgba(40, 46, 50, .16) 62%, rgba(20, 24, 27, .52) 100%); }
.orb__spec {
  position: absolute; left: 20%; top: 13%; width: 26%; height: 15%; border-radius: 50%;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)); transform: rotate(-32deg);
}
.orb__seams { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb__seams ellipse, .orb__seams path { fill: none; stroke: var(--sage-500); stroke-width: .8; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: .9; }
.orb__seams .seam-node { fill: #EAF1EC; stroke: var(--sage-500); stroke-width: .8; opacity: 0; transform-box: fill-box; transform-origin: center; }
.orb__mark { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); mix-blend-mode: multiply; opacity: 0; }
.orb-shadow {
  position: absolute; left: 10%; right: 10%; top: 108%; height: 12%;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 34, 37, .22), rgba(30, 34, 37, 0));
  filter: blur(6px);
}
.orb--sm .orb__metal, .orb--lg .orb__metal { animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Board + panels */
.board {
  position: absolute; left: 50%; top: 50%;
  top: 43%;
  width: min(1040px, 76vw); height: min(54vh, 44vw);
  transform: translate(-50%, -48%);
  transform-style: preserve-3d;
  font-size: clamp(7px, .95vw, 13px);
}
.panel {
  position: absolute;
  left: var(--x, 0%); top: var(--y, 0%); width: var(--w, 30%); height: var(--h, 30%);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
/* No-JS fallback layout (website) */
.panel[data-panel="0"] { --x: 0%; --y: 0%; --w: 100%; --h: 9%; }
.panel[data-panel="1"] { --x: 0%; --y: 12%; --w: 60%; --h: 50%; }
.panel[data-panel="2"] { --x: 62%; --y: 12%; --w: 38%; --h: 50%; }
.panel[data-panel="3"] { --x: 0%; --y: 65%; --w: 32%; --h: 35%; }
.panel[data-panel="4"] { --x: 34%; --y: 65%; --w: 32%; --h: 35%; }
.panel[data-panel="5"] { --x: 68%; --y: 65%; --w: 32%; --h: 35%; }
.panel[data-panel="6"] { --x: 86%; --y: 30%; --w: 17%; --h: 72%; }
.js .panel { opacity: 0; }

.panel__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.face {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; gap: .9em; padding: 1em 1.2em;
  border-radius: 1.1em;
  background: linear-gradient(160deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .5));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(160, 166, 170, .18), 0 30px 60px -28px rgba(30, 34, 37, .35);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.face::before { /* glass edge reflection */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(200, 205, 208, .25) 100%);
}
.face--dash { transform: rotateY(180deg); }
.face--col { flex-direction: column; align-items: flex-start; justify-content: center; gap: .75em; }
.face--center { justify-content: center; }
.face--img { padding: .8em; }
.face--img::after {
  content: ""; position: absolute; inset: .8em; border-radius: .7em; z-index: -1;
  background: linear-gradient(150deg, #F3F4F2, #D8DFDA 55%, #BFCDC3);
}
.mini-orb { position: relative; z-index: 1; width: 42%; aspect-ratio: 1; margin: auto; border-radius: 50%; background: conic-gradient(from 40deg, #fff, #9EA4A7, #F4F5F5, #7B8286, #fff); box-shadow: inset -.6em -.8em 1.6em rgba(20, 24, 27, .35), 0 1em 2em -1em rgba(30, 34, 37, .4); }
.panel--phone .face { border-radius: 1.6em; padding: 1.4em .9em; gap: .7em; }
.notch { display: block; width: 34%; height: .5em; border-radius: 99px; background: #D2D6D7; align-self: center; margin-bottom: .4em; }

.tab { width: 9%; height: 1.6em; border-radius: .5em; background: #E4E7E7; flex-shrink: 0; }
.tab.is-on { background: var(--charcoal-900); }
.bars { display: flex; align-items: flex-end; gap: 4%; width: 100%; flex: 1; padding-top: .6em; }
.bars i, .pv-sheet__chart i {
  flex: 1; height: calc(var(--h) * 100%);
  border-radius: .35em .35em .15em .15em;
  background: linear-gradient(180deg, #E8EAEB, #A9AFB2);
  box-shadow: inset 0 1px 0 #fff;
  transform-origin: bottom;
}
.bars i.is-sage, .pv-sheet__chart i.is-sage { background: linear-gradient(180deg, var(--sage-300), var(--sage-700)); }
.donut { width: 72%; max-height: 92%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 16; }
.donut__track { stroke: #E4E7E7; }
.donut__a { stroke: var(--sage-500); stroke-dasharray: 62 100; }
.donut__b { stroke: #A9AFB2; stroke-dasharray: 22 100; stroke-dashoffset: -64; }
.kpi { display: block; width: 58%; height: 2.4em; border-radius: .4em; background: linear-gradient(90deg, #2D3337, #7A8186); }
.kpi--sm { width: 70%; height: 2em; }
.spark { width: 100%; height: 2.6em; overflow: visible; }
.spark path, .line__stroke { fill: none; stroke: var(--sage-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.linechart { width: 100%; flex: 1; }
.line__area { fill: rgba(126, 154, 134, .16); }
.grid-sheet, .pv-sheet__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; width: 100%; height: 100%; }
.grid-sheet i, .pv-sheet__grid i { border-radius: 3px; background: rgba(205, 208, 209, .45); }
.grid-sheet i:nth-child(-n+4), .pv-sheet__grid i:nth-child(-n+4) { background: rgba(30, 34, 37, .75); }
.grid-sheet i.is-sage { background: rgba(126, 154, 134, .55); }
.mini-bar { display: block; height: .9em; width: calc(var(--w) * 100%); border-radius: 99px; background: linear-gradient(90deg, #C9CDCF, #E6E8E8); }
.mini-bar.is-sage { background: linear-gradient(90deg, var(--sage-700), var(--sage-300)); }

/* Hero copy */
.hero__copy {
  position: absolute; z-index: 5;
  left: var(--gutter); right: var(--gutter); bottom: clamp(5.5rem, 13vh, 9rem);
  max-width: 1100px;
}
.hero__copy .eyebrow { margin-bottom: 1.25rem; }
.hero__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: var(--fs-hero); line-height: .92; letter-spacing: -.025em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; }
.hero__title .line__in { display: inline-block; }
.hero__sub { margin-top: 1.9rem; max-width: 46ch; font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--graphite-700); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.4rem; }

.chapters { position: absolute; z-index: 4; left: var(--gutter); bottom: clamp(3rem, 9vh, 6rem); right: var(--gutter); pointer-events: none; }
.chapter {
  position: absolute; left: 0; bottom: 0; max-width: 22ch;
  font-family: var(--f-display); font-size: clamp(1.9rem, 3.2vw, 3.3rem); line-height: 1.02; letter-spacing: -.02em;
  opacity: 0;
}
.chapter .mono { display: block; margin-bottom: 1rem; color: var(--sage-700); font-family: var(--f-mono); }

.hero__progress {
  position: absolute; z-index: 5; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: .9rem; justify-items: end; color: var(--silver-500);
  opacity: 0;
}
.hero__progress span { transition: color .4s; }
.hero__progress span.is-on { color: var(--charcoal-900); }
.hero__bar { position: absolute; right: -14px; top: 0; bottom: 0; width: 1px; background: var(--pearl-200); }
.hero__bar b { position: absolute; inset: 0; background: var(--sage-700); transform-origin: top; transform: scaleY(0); }

.scroll-cue > * { opacity: 1; }
.js .scroll-cue > * { opacity: 0; }
.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: .6rem; color: var(--silver-500); }
.scroll-cue i { width: 1px; height: 36px; background: linear-gradient(var(--silver-300), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--charcoal-900); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- 11. Capabilities strip ---------- */
.strip { position: relative; z-index: 2; padding: clamp(5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6.5rem); background: var(--pearl-50); border-top: 1px solid var(--pearl-200); }
.strip__stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  margin: 0 var(--gutter); border-top: 1px solid var(--pearl-200);
}
.strip__stats li { padding: 1.6rem 1.2rem 0 0; display: grid; gap: .5rem; align-content: start; }
.strip__stats li + li { padding-left: 1.2rem; border-left: 1px solid var(--pearl-200); }
.strip__stats strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 5.5vw, 5.5rem); line-height: 1; letter-spacing: -.02em; }
.strip__stats li > span { color: var(--graphite-700); font-size: .95rem; max-width: 20ch; }

.marquee { margin-top: clamp(4.5rem, 9vw, 8rem); overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee span {
  font-family: var(--f-display); font-size: clamp(3.5rem, 9vw, 9rem); line-height: 1.05; letter-spacing: -.02em;
  padding-right: .5em; position: relative;
}
.marquee span::after { content: "·"; position: absolute; right: .14em; color: var(--sage-500); -webkit-text-stroke: 0; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.2px var(--silver-400); }

/* ---------- 12. Mission ---------- */
.mission {
  position: relative; overflow: hidden;
  min-height: 100vh; padding: var(--section-y) var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--pearl-100);
}
.mission__text {
  font-family: var(--f-display); font-size: clamp(2.1rem, 4.6vw, 4.75rem); line-height: 1.08; letter-spacing: -.015em;
  max-width: 22em; position: relative; z-index: 1;
}
.mission__text strong { font-weight: 600; }
.mission__note { margin-top: 3rem; color: var(--graphite-700); max-width: 52ch; line-height: 1.7; position: relative; z-index: 1; }
.float-orb { position: absolute; right: -6vw; top: 8%; width: clamp(160px, 24vw, 380px); opacity: .9; }

/* ---------- 13. Pillars ---------- */
.pillars { position: relative; background: var(--pearl-50); }
.pillars__pin { min-height: 100vh; display: flex; align-items: center; padding: clamp(4rem, 8vw, 6rem) 0; }
.pillars__track { display: flex; gap: clamp(1rem, 2vw, 2rem); padding: 0 var(--gutter); }
.pillars__intro { flex: 0 0 min(440px, 34vw); align-self: center; padding-right: 2rem; }
.pillars__intro .lead { margin-top: 1.5rem; }
.pillars__hint { margin-top: 2.5rem; color: var(--silver-500); }
.pillar {
  position: relative; flex: 0 0 min(500px, 40vw); min-height: min(70vh, 660px);
  display: flex; flex-direction: column; gap: .9rem;
  padding: clamp(1.4rem, 2.4vw, 2.2rem); border-radius: 28px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .9), rgba(244, 244, 241, .7));
  border: 1px solid #fff; box-shadow: var(--glass-shadow), 0 0 0 1px rgba(205, 208, 209, .35);
  transform-style: preserve-3d; will-change: transform;
}
.pillar::after { /* pointer specular */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .6), transparent 40%);
  opacity: 0; transition: opacity .4s;
}
.pillar:hover::after { opacity: 1; }
.pillar__visual {
  position: relative; flex: 1; min-height: 220px; margin-bottom: 1rem; border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #fff, #EDEEEB 70%);
  border: 1px solid rgba(205, 208, 209, .5);
  font-size: clamp(8px, .8vw, 11px);
}
.pillar__num { color: var(--sage-700); display: flex; align-items: center; gap: .6em; }
.pillar h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 2.8vw, 2.75rem); line-height: 1; letter-spacing: -.015em; }
.pillar__hook { font-weight: 500; font-size: 1.1rem; }
.pillar > p:not(.pillar__num):not(.pillar__hook) { color: var(--graphite-700); }
.badge { display: inline-block; padding: .35em .7em; border-radius: 99px; background: rgba(126, 154, 134, .14); color: var(--sage-700); border: 1px solid rgba(126, 154, 134, .35); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: .6rem; }
.tags li { padding: .45em .85em; border-radius: 99px; font-size: .85rem; background: rgba(255, 255, 255, .7); border: 1px solid var(--pearl-200); color: var(--graphite-700); }

/* Pillar visuals */
.pv-web { padding: 1.6em; display: grid; grid-template-rows: auto 1fr auto; gap: 1em; }
.pv-web__bar { display: flex; gap: .45em; padding: .7em .9em; border-radius: .8em; background: rgba(255, 255, 255, .85); box-shadow: 0 6px 16px -10px rgba(30, 34, 37, .3); }
.pv-web__bar i { width: .7em; height: .7em; border-radius: 50%; background: var(--silver-300); }
.pv-web__hero { display: flex; flex-direction: column; justify-content: center; gap: .8em; padding: 1.4em; border-radius: .9em; background: rgba(255, 255, 255, .85); width: 72%; }
.pv-web__hero .pill { width: 34%; }
.pv-web__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; width: 72%; }
.pv-web__cards i { height: 4.2em; border-radius: .8em; background: rgba(255, 255, 255, .85); border: 1px solid #fff; }
.pv-web__phone {
  position: absolute; right: 7%; top: 18%; width: 24%; height: 70%;
  display: flex; flex-direction: column; gap: .7em; padding: 1.4em .8em;
  border-radius: 1.4em; background: rgba(255, 255, 255, .92); border: 1px solid #fff;
  box-shadow: 0 24px 40px -20px rgba(30, 34, 37, .45);
}
.pv-sheet { padding: 1.6em; display: grid; grid-template-columns: 1.3fr 1fr; gap: 1em; }
.pv-sheet__grid { height: auto; grid-auto-rows: 1.6em; align-content: start; }
.pv-sheet__chart { display: flex; align-items: flex-end; gap: 6%; padding: 1em; border-radius: .9em; background: rgba(255, 255, 255, .85); }
.pv-orb { display: grid; place-items: center; }
.pv-orb .orb { width: 52%; }
.pv-orb .orb__metal { animation: spin 14s linear infinite; }

/* ---------- 14. Story ---------- */
.story { padding: var(--section-y) var(--gutter); background: var(--pearl-100); }
.story__head .h-display { max-width: 13em; }
.story__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 8vw, 9rem); margin-top: clamp(3.75rem, 8.5vw, 7.5rem); }
.story__copy { display: grid; gap: 1.8rem; align-content: start; max-width: 60ch; }
.story__copy p:not(.lead) { color: var(--graphite-700); }
.story__copy .lead { color: var(--charcoal-900); max-width: none; }
.signature { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.signature__badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--pearl-200); box-shadow: var(--glass-shadow); }
.signature__badge img { width: 40px; mix-blend-mode: multiply; }
.signature strong { display: block; font-weight: 600; }
.signature .mono { color: var(--silver-500); }

.timeline { position: relative; display: grid; gap: 2.6rem; padding-left: 2.5rem; align-content: start; }
.timeline__line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--pearl-200); border-radius: 2px; }
.timeline__line i { position: absolute; inset: 0; background: linear-gradient(var(--sage-500), var(--silver-400)); transform-origin: top; }
.js .timeline__line i { transform: scaleY(0); }
.timeline li:not(.timeline__line) { position: relative; }
.timeline li:not(.timeline__line)::before {
  content: ""; position: absolute; left: calc(-2.5rem + 1px); top: .2rem;
  width: 14px; height: 14px; border-radius: 3px; background: #fff; border: 2px solid var(--sage-500);
}
.timeline .mono { color: var(--sage-700); }
.timeline h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--fs-h3); line-height: 1.1; margin: .35rem 0 .3rem; letter-spacing: -.01em; }
.timeline p { color: var(--graphite-700); }
.timeline .is-future { opacity: .62; }
.timeline .is-future::before { border-style: dashed; border-color: var(--silver-500); }
.timeline .is-future .mono { color: var(--silver-500); }

/* ---------- 15. Process ---------- */
.process { padding: var(--section-y) var(--gutter); background: var(--pearl-50); }
.process__head { margin-bottom: clamp(3.75rem, 7.5vw, 6.25rem); }
.process__head .h-display { max-width: 12em; }
.stack { display: grid; gap: 6vh; }
.stack__card {
  position: sticky; top: calc(var(--nav-h) + 40px + var(--i, 0) * 22px);
  min-height: min(52vh, 460px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: end;
  padding: clamp(1.6rem, 4vw, 3.5rem); border-radius: 32px;
  background: linear-gradient(160deg, #FFFFFF, #F1F2EF);
  border: 1px solid #fff; box-shadow: var(--glass-shadow), 0 0 0 1px rgba(205, 208, 209, .4);
  transform-origin: 50% 0;
  --dim: 0;
}
.stack__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #F1EFEA; opacity: var(--dim); pointer-events: none; }
.stack__card:nth-child(1) { --i: 0; } .stack__card:nth-child(2) { --i: 1; } .stack__card:nth-child(3) { --i: 2; } .stack__card:nth-child(4) { --i: 3; }
.stack__num {
  font-family: var(--f-display); font-size: clamp(6rem, 16vw, 15rem); line-height: .8; letter-spacing: -.04em;
  background: var(--chrome-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stack__card h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.015em; margin-bottom: 1rem; }
.stack__card p { color: var(--graphite-700); font-size: var(--fs-lead); line-height: 1.4; max-width: 30ch; }

.included { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); margin-top: clamp(4rem, 8vw, 7rem); }
.included__col { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 24px; border: 1px solid var(--pearl-200); background: var(--pearl-100); }
.included__col .mono { color: var(--sage-700); margin-bottom: 1.2rem; }
.included__col li { padding: .8rem 0; border-top: 1px solid var(--pearl-200); display: flex; gap: .8rem; align-items: center; }
.included__col li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--sage-500); flex-shrink: 0; }

/* ---------- 16. Work ---------- */
.work { padding: var(--section-y) var(--gutter); background: var(--pearl-100); }
.work__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem 4rem; margin-bottom: clamp(3.25rem, 6.25vw, 5rem); }
.work__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.work__head .lead { font-size: 1.05rem; max-width: 36ch; }
.work__list { border-top: 1px solid var(--silver-300); }
.work__row {
  position: relative; width: 100%; text-align: left;
  display: grid; grid-template-columns: 3.5rem 1fr auto 10rem; align-items: center; gap: 1.5rem;
  padding: clamp(1.2rem, 2.4vw, 2rem) 0;
  border-bottom: 1px solid var(--silver-300);
}
.work__row::before {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--sage-700); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.work__idx { color: var(--silver-500); }
.work__title { font-family: var(--f-display); font-size: clamp(2rem, 5.4vw, 5.25rem); line-height: 1; letter-spacing: -.02em; transition: transform .6s var(--ease), color .4s; }
.work__cat { color: var(--graphite-700); }
.work__tag { justify-self: end; padding: .5em .8em; border-radius: 99px; border: 1px solid var(--silver-300); color: var(--graphite-700); font-size: .75rem; }
.work__tag.is-live { border-color: var(--sage-500); color: var(--sage-700); background: rgba(126, 154, 134, .1); }
.work__row:hover::before, .work__row:focus-visible::before { transform: scaleX(1); }
.work__row:hover .work__title { transform: translateX(1.5rem); }

.work__preview {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 360px; aspect-ratio: 3 / 2; margin: -120px 0 0 -180px;
  border-radius: 18px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #fff, #E9EAE7);
  border: 1px solid #fff; box-shadow: 0 40px 80px -30px rgba(30, 34, 37, .45);
  opacity: 0; transform: scale(.6);
  font-size: 9px; visibility: hidden;
}
@media (hover: hover) and (pointer: fine) { .work__preview { visibility: visible; } }
.mock { position: absolute; inset: 0; padding: 1.6em; opacity: 0; transition: opacity .3s; }
.mock.is-on { opacity: 1; }
.mock--web { display: grid; grid-template-rows: auto 1fr auto; gap: 1em; }
.mock__bar { display: flex; gap: .45em; padding: .7em .9em; border-radius: .8em; background: rgba(255, 255, 255, .9); }
.mock__bar i { width: .7em; height: .7em; border-radius: 50%; background: var(--silver-300); }
.mock__hero { display: flex; flex-direction: column; justify-content: center; gap: .8em; padding: 1.4em; border-radius: .9em; background: linear-gradient(120deg, #fff, #E3EAE5); }
.mock__hero .pill { width: 22%; }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.mock__cards i { height: 4em; border-radius: .8em; background: rgba(255, 255, 255, .9); }
.mock--sheet { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto 1fr; gap: 1em; }
.mock__ribbon { grid-column: 1 / -1; height: 2em; border-radius: .6em; background: linear-gradient(90deg, var(--sage-700), var(--sage-500)); }
.mock--app { display: grid; grid-template-columns: 22% 1fr; gap: 1em; }
.mock__side { display: grid; gap: .6em; align-content: start; padding: 1em .8em; border-radius: .9em; background: var(--charcoal-900); }
.mock__side i { height: .7em; border-radius: 99px; background: rgba(255, 255, 255, .25); }
.mock__side i:first-child { background: var(--sage-500); }
.mock__main { display: grid; grid-template-rows: auto 1fr; gap: 1em; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; }
.mock__kpis i { height: 3.4em; border-radius: .8em; background: rgba(255, 255, 255, .95); border: 1px solid #fff; }

.work__tag.is-dev { border-color: var(--silver-500); color: var(--charcoal-900); background: rgba(255, 255, 255, .6); border-style: dashed; }
.work__preview-tag { position: absolute; z-index: 2; right: 10px; bottom: 10px; padding: .35em .6em; border-radius: 99px; background: rgba(255, 255, 255, .85); color: var(--graphite-700); font-size: 12px; }

/* Workbook illustrations (code-built, shown in project dialogs) */
.wb { margin: 0 0 1.6rem; }
.wb__sheet {
  border-radius: 16px; overflow: hidden;
  background: #fff; border: 1px solid var(--pearl-200);
  box-shadow: 0 1px 0 #fff inset, 0 20px 40px -28px rgba(30, 34, 37, .45);
  font-size: .82rem;
}
.wb__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; background: var(--charcoal-900); color: #fff; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: .75rem; }
.wb__head .mono { color: var(--sage-300); font-weight: 400; font-size: .75rem; }
.wb__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 1px; background: var(--pearl-200); border-bottom: 1px solid var(--pearl-200); }
.wb__kpis div { display: grid; gap: .2rem; padding: .75rem .9rem; background: var(--pearl-50); }
.wb__kpis span { color: var(--graphite-700); font-size: .75rem; line-height: 1.2; }
.wb__kpis b { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; }
.wb__kpis .is-sage { background: rgba(126, 154, 134, .12); }
.wb__kpis .is-sage b { color: var(--sage-700); }
.wb__table { display: grid; padding: .4rem .9rem .6rem; font-variant-numeric: tabular-nums; }
.wb__table--4 { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
.wb__table span { padding: .42rem .3rem; border-bottom: 1px solid var(--pearl-200); }
.wb__table span:nth-child(4n+2), .wb__table span:nth-child(4n+3), .wb__table span:nth-child(4n) { text-align: right; }
.wb__table .th { color: var(--silver-500); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.wb__table .flag { color: #9A5A2E; font-weight: 600; }
.wb__table .ok { color: var(--sage-700); font-weight: 600; }
.wb__bars { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .45rem .7rem; padding: .9rem; }
.wb__bars span { color: var(--graphite-700); font-size: .76rem; }
.wb__bars i { display: block; height: 10px; width: calc(var(--v) * 100%); border-radius: 99px; background: linear-gradient(90deg, var(--sage-700), var(--sage-300)); }
.wb__bars em { font-style: normal; font-variant-numeric: tabular-nums; font-size: .76rem; }
.wb__tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: .4rem .5rem 0; background: var(--pearl-100); border-top: 1px solid var(--pearl-200); }
.wb__tabs span { padding: .35rem .7rem; border-radius: 6px 6px 0 0; font-size: .75rem; color: var(--graphite-700); }
.wb__tabs .is-on { background: #fff; color: var(--sage-700); font-weight: 600; box-shadow: inset 0 2px 0 var(--sage-500); }
.wb figcaption { margin-top: .6rem; color: var(--graphite-700); font-size: .8rem; }

/* Modal */
.modal {
  width: min(680px, calc(100vw - 2 * var(--gutter))); max-height: 88vh; overflow: auto; overscroll-behavior: contain;
  margin: auto; padding: 0; border: 0; border-radius: 28px;
  background: linear-gradient(160deg, #FFFFFF, #F3F4F1);
  box-shadow: 0 60px 120px -40px rgba(30, 34, 37, .5);
  color: var(--charcoal-900);
}
.modal::backdrop { background: rgba(250, 249, 246, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal[open] { animation: modal-in .6s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.modal__inner { position: relative; padding: clamp(1.8rem, 5vw, 3rem); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1; background: var(--pearl-100); transition: background-color .3s, transform .4s var(--ease); }
.modal__close:hover { background: var(--pearl-200); transform: rotate(90deg); }
.modal__body > .mono { color: var(--sage-700); padding-right: 3.5rem; }
.modal__body h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; letter-spacing: -.02em; margin: .6rem 0 1.8rem; }
.modal__body dl { display: grid; gap: .4rem; }
.modal__body dt { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--silver-500); margin-top: 1rem; }
.modal__body dd { color: var(--graphite-700); }
.modal__body .tags { margin-top: .3rem; padding-top: 0; }

/* ---------- 17. Final CTA + Quote ---------- */
.cta { position: relative; overflow: hidden; padding: var(--section-y) var(--gutter) clamp(5rem, 10vw, 8rem); background: var(--studio); }
.cta__orb { position: absolute; right: -8vw; top: 4rem; width: clamp(220px, 34vw, 560px); pointer-events: none; }
.cta__head { position: relative; z-index: 1; max-width: 1200px; }
.cta__head .h-mega { max-width: 9.5em; }
.cta__head .lead { margin-top: 2rem; }

.quote { position: relative; z-index: 1; margin-top: clamp(3rem, 6vw, 5rem); max-width: 920px; }
.quote__form, .quote__success {
  padding: clamp(1.4rem, 4vw, 3rem); border-radius: 32px;
  background: rgba(255, 255, 255, .62); border: 1px solid #fff; box-shadow: var(--glass-shadow), 0 0 0 1px rgba(205, 208, 209, .35);
  -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2);
}
.quote__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { position: relative; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; font-size: 16px;
  padding: 1.55rem 1rem .6rem; border-radius: 14px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--pearl-200);
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { padding-top: 1rem; resize: vertical; min-height: 130px; line-height: 1.5; }
.field select { padding: 1rem 2.6rem 1rem 1rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A5054' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sage-500); box-shadow: 0 0 0 4px rgba(126, 154, 134, .2); }
.field label {
  position: absolute; left: 1rem; top: 1.08rem; pointer-events: none;
  color: var(--graphite-700); transform-origin: left top;
  transition: transform .35s var(--ease), color .3s;
}
.field input:not([type=radio]):focus + label, .field input:not([type=radio]):not(:placeholder-shown) + label { transform: translateY(-.62rem) scale(.78); color: var(--sage-700); }
.field label.is-static { position: static; order: -1; margin: 0 0 .5rem .2rem; font-size: .92rem; }
.field label small, .segmented legend small { color: var(--silver-500); font-size: .85em; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #B4574B; }
.field__err { color: #A1473C; font-size: .85rem; margin: .35rem 0 0 .2rem; min-height: 0; }
.field__err:empty { display: none; }

.segmented legend { margin: 0 0 .5rem .2rem; font-size: .92rem; color: var(--graphite-700); }
.segmented__opts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: rgba(231, 231, 227, .7); border: 1px solid var(--pearl-200); }
.segmented__opts--4 { grid-template-columns: repeat(4, 1fr); }
.segmented__note { margin: .55rem 0 0 .2rem; font-size: .85rem; line-height: 1.4; color: var(--silver-500); }
.field[hidden] { display: none; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segmented label { position: relative; left: auto; top: auto; transform: none; pointer-events: auto; z-index: 1; display: grid; place-items: center; text-align: center; min-height: 48px; padding: .6rem .5rem; border-radius: 12px; cursor: pointer; font-size: .95rem; color: var(--graphite-700); transition: color .35s; }
.segmented input:checked + label { color: #fff; }
.segmented input:focus-visible + label { outline: 2px solid var(--sage-700); outline-offset: 2px; }
.segmented__pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 12px; background: var(--sage-700); box-shadow: 0 8px 20px -8px rgba(86, 112, 92, .55); opacity: 0; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; }
.no-pill .segmented input:checked + label { background: var(--sage-700); }

.hp { position: absolute; left: -9999px; }
.quote__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .4rem; }
.quote__note { color: var(--graphite-700); font-size: .92rem; }
.quote__status { color: #A1473C; font-size: .95rem; padding: .9rem 1rem; border-radius: 12px; background: rgba(180, 87, 75, .08); border: 1px solid rgba(180, 87, 75, .25); }
.quote__status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.quote__privacy { color: var(--graphite-700); font-size: .82rem; }
.quote__status:empty { display: none; }
.quote__form.is-sending button[type=submit] { pointer-events: none; opacity: .75; }
.quote__form.is-sending button[type=submit]::after { animation: shimmer 1s linear infinite; }
@keyframes shimmer { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

.quote__success { display: grid; justify-items: start; gap: 1rem; outline: none; }
.quote__success svg { width: 64px; }
.quote__success circle { fill: rgba(126, 154, 134, .12); stroke: var(--sage-500); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1s var(--ease) forwards; }
.quote__success path { fill: none; stroke: var(--sage-700); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .8s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.quote__success h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.02em; }
.quote__success p:not(.mono) { color: var(--graphite-700); font-size: 1.1rem; max-width: 44ch; }
.quote__success .mono { color: var(--sage-700); }

/* ---------- 18. Footer ---------- */
.footer { position: relative; padding: clamp(4rem, 8vw, 6rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom)); background: var(--pearl-100); border-top: 1px solid var(--pearl-200); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 2rem; }
.footer__cols .mono { color: var(--silver-500); margin-bottom: 1rem; }
.footer__cols li + li { margin-top: .15rem; }
.footer__cols a { display: inline-block; padding: .3rem 0; color: var(--graphite-700); transition: color .3s; }
.footer__cols a:hover { color: var(--sage-700); }
.to-top { position: relative; width: 56px; height: 56px; display: grid; place-items: center; align-self: start; border-radius: 50%; }
.to-top svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke-width: 1.5; }
.to-top__track { stroke: var(--pearl-200); }
.to-top__ring { stroke: var(--sage-700); stroke-dasharray: 100; stroke-dashoffset: 100; }
.to-top span { font-size: 1.1rem; transition: transform .4s var(--ease); }
.to-top:hover span { transform: translateY(-3px); }
.footer__word {
  margin: clamp(3rem, 7vw, 6rem) 0 1.5rem; white-space: nowrap;
  font-family: var(--f-display); font-size: clamp(3rem, 24vw, 30rem); line-height: .82; letter-spacing: -.045em;
  display: flex; overflow: hidden; padding-bottom: .06em;
}
.footer__word .fw-char {
  display: inline-block;
  background: linear-gradient(180deg, #2B3034 0%, #6E757A 55%, #B9BEC1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .02em;
}
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--pearl-200); color: var(--silver-500); font-size: .75rem; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }

/* ---------- 19. Initial reveal states (JS only) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js .hero [data-hero-in] { opacity: 0; transform: translateY(20px); }
.js .hero__title .line__in { transform: translateY(105%); }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1100px) {
  .strip__stats { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .strip__stats li:nth-child(4) { border-left: 0; padding-left: 0; }
}

@media (max-width: 900px) {
  .segmented__opts--4 { grid-template-columns: 1fr 1fr; }
  :root { --nav-h: 64px; }
  .nav { top: 10px; height: 54px; padding: 0 6px 0 14px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--glass-bg-strong); border: 1px solid var(--glass-border);
  }
  .nav__toggle span { display: block; width: 18px; height: 1.5px; background: var(--charcoal-900); transition: transform .5s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .orb-wrap { top: 22%; width: min(46vw, 26vh); }
  .board { top: 42%; width: 92vw; height: 50vh; font-size: clamp(5px, 1.5vw, 9px); }
  .hero__copy { bottom: clamp(4.5rem, 10vh, 6rem); }
  .hero__ctas .btn { flex: 1 1 auto; }
  .chapters { bottom: 4.5rem; }
  .chapter { font-size: clamp(1.9rem, 7.5vw, 3rem); max-width: 14ch; }
  .hero__progress { top: auto; bottom: 4.6rem; transform: none; }
  .scroll-cue { display: none; }

  .pillars__track { flex-direction: column; }
  .pillars__intro { flex: none; padding: 0 0 1rem; }
  .pillars__hint { display: none; }
  .pillar { flex: none; min-height: 0; }
  .pillar__visual { min-height: 0; aspect-ratio: 16 / 10; flex: none; }

  .story__grid { grid-template-columns: 1fr; }
  .stack__card { grid-template-columns: 1fr; align-items: start; gap: 1rem; min-height: 0; top: calc(var(--nav-h) + 24px + var(--i, 0) * 14px); }
  .stack__num { font-size: clamp(4.5rem, 22vw, 7rem); }
  .included { grid-template-columns: 1fr; }

  .work__head { grid-template-columns: 1fr; }
  .work__row { grid-template-columns: 2rem 1fr; gap: .4rem 1rem; }
  .work__cat { grid-column: 2; }
  .work__tag { grid-column: 2; justify-self: start; }
  .work__row:hover .work__title { transform: none; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .to-top { justify-self: end; align-self: end; }

  .mobile-cta {
    display: inline-flex; position: fixed; z-index: 80;
    left: var(--gutter); right: var(--gutter); bottom: calc(12px + env(safe-area-inset-bottom));
    transform: translateY(160%); transition: transform .6s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
}

@media (max-width: 640px) {
  .strip__stats { grid-template-columns: 1fr 1fr; }
  .strip__stats li, .strip__stats li + li { border-left: 0; padding-left: 0; }
  .strip__stats li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--pearl-200); }
  .strip__stats li:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .quote__form { grid-template-columns: 1fr; }
  .segmented__opts { grid-template-columns: 1fr; }
  .segmented__pill { display: none; }
  .segmented input:checked + label { background: var(--sage-700); }
  .hero__studio { display: none; }
  .hero__title { font-size: clamp(2.9rem, 13vw, 4rem); }
  .hero__sub { margin-top: 1.1rem; }
  .hero__ctas { margin-top: 1.4rem; }
  .eyebrow.mono { font-size: .75rem; }
  .float-orb { right: -18vw; top: 3%; width: 46vw; opacity: .7; }
  .cta__orb { right: -24vw; top: 2rem; width: 62vw; opacity: .8; }
  .footer__base { flex-direction: column; }
}

/* ---------- 21. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .grain { animation: none; }
}

/* Larger orbs need a softer reflection blur */
.orb--lg .orb__metal { filter: blur(26px); }
.pv-orb .orb__metal, .orb--sm .orb__metal { filter: blur(16px); }

/* ---------- 22. Bento grids (Services + Work) ---------- */
:root {
  --page-warm: #FAF9F6;
  --card: #FFFFFF;
  --sage-50: #E8EEE7;
  --tile-gap: clamp(14px, 1.6vw, 22px);
  --tile-radius: 26px;
  --tile-row: 118px;
}

/* Section shells */
.svc, .work { background: var(--page-warm); }
.svc { padding: var(--section-y) var(--gutter); }
.svc__head, .work__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.svc__head .lead { margin-top: 1.4rem; }

/* Grid */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: var(--tile-row); gap: var(--tile-gap); }

.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--tile-radius);
  background: var(--card); color: var(--charcoal-900);
  border: 1px solid var(--pearl-200);
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -32px rgba(39, 51, 46, .35);
  text-align: left; text-decoration: none; font: inherit;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
button.tile, a.tile { cursor: pointer; }
.tile:hover { transform: translateY(-6px); box-shadow: 0 1px 0 #fff inset, 0 34px 60px -34px rgba(39, 51, 46, .45); border-color: #DCD9D1; }
.tile:focus-visible { outline: 2px solid var(--sage-700); outline-offset: 4px; }

.tile__media { position: relative; flex: 1; min-height: 0; overflow: hidden; background: linear-gradient(160deg, #FFFFFF, var(--page-warm)); }
.tile__media > * { transition: transform .9s var(--ease); }
.tile:hover .tile__media > .zoom { transform: scale(1.035); }
.tile__body { display: grid; gap: .35rem; padding: clamp(1rem, 1.6vw, 1.5rem) clamp(1.1rem, 1.8vw, 1.7rem) clamp(1.1rem, 1.8vw, 1.6rem); }
.tile__body h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.3vw, 2.3rem); line-height: 1.02; letter-spacing: -.015em; }
.tile__body p { color: var(--graphite-700); font-size: .98rem; line-height: 1.45; max-width: 36ch; }
.tile__more { margin-top: .35rem; font-weight: 500; font-size: .92rem; color: var(--sage-700); }
.tile:hover .tile__more { text-decoration: underline; text-underline-offset: 3px; }

.chip { justify-self: start; display: inline-block; padding: .28em .75em; border-radius: 99px; font-size: .78rem; background: var(--sage-50); color: var(--sage-800); }
.chip--live { background: #fff; border: 1px solid var(--sage-500); color: var(--sage-700); }
.chip--dev { background: #fff; border: 1px dashed var(--silver-500); color: var(--charcoal-900); }

/* Honest media labels */
.media-tag {
  position: absolute; z-index: 3; left: 14px; bottom: 14px;
  padding: .3em .7em; border-radius: 99px; font-size: .75rem;
  background: rgba(255, 255, 255, .92); color: var(--graphite-700);
  border: 1px solid var(--pearl-200);
}

/* ---------- Service tiles ---------- */
.t-web { grid-column: 1 / 9; grid-row: span 4; }
.t-excel { grid-column: 9 / 13; grid-row: span 6; }
.t-way { grid-column: 1 / 5; grid-row: span 2; background: var(--sage-50); border-color: #DCE5DB; }
.t-quote { grid-column: 5 / 9; grid-row: span 2; }

/* Laptop + phone with real screenshots of this website */

/* Workbook illustration inside a tile */
.tile .wb { margin: 0; position: absolute; inset: 7% 7% auto; }
.tile .wb__sheet { font-size: .78rem; box-shadow: 0 24px 40px -30px rgba(39, 51, 46, .5); }
.tile .wb__kpis b { font-size: 1.25rem; }
.tile .wb figcaption { display: none; }

/* SG Way tile */
.t-way { flex-direction: row; align-items: center; gap: 1.2rem; padding: 1.4rem 1.6rem; }
.t-way .orb { flex: none; width: 78px; }
.t-way .orb__metal { animation: spin 16s linear infinite; filter: blur(8px); }
.t-way h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.05; }
.t-way p { color: var(--graphite-700); font-size: .95rem; margin-top: .25rem; }

/* Quote tile */
.t-quote { padding: 1.3rem 1.6rem; justify-content: space-between; gap: .8rem; }
.t-quote h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2vw, 1.9rem); line-height: 1.05; }
.steps-mini { display: flex; gap: .5rem 1.1rem; flex-wrap: wrap; list-style: none; padding: 0; color: var(--graphite-700); font-size: .9rem; counter-reset: s; }
.steps-mini li { counter-increment: s; display: flex; align-items: center; gap: .45rem; }
.steps-mini li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sage-50); color: var(--sage-700); font-size: .75rem; font-weight: 600; }
.t-quote .btn { align-self: flex-start; }

/* ---------- Work tiles ---------- */
.w-this { grid-column: 1 / 8; grid-row: span 4; }
.w-sales { grid-column: 8 / 13; grid-row: span 2; }
.w-inventory { grid-column: 8 / 13; grid-row: span 2; }
.w-tracker { grid-column: 1 / 7; grid-row: span 3; }
.w-invoice { grid-column: 7 / 13; grid-row: span 3; }

.shot { position: absolute; inset: 6% 6% 0; border-radius: 14px 14px 0 0; overflow: hidden; border: 1px solid var(--pearl-200); border-bottom: 0; box-shadow: 0 24px 40px -30px rgba(39, 51, 46, .5); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }

/* Side-by-side layout for the short, wide tiles */
.w-sales, .w-inventory { flex-direction: row; }
.w-sales .tile__media, .w-inventory .tile__media { flex: 1.25; }
.w-sales .tile__body, .w-inventory .tile__body { flex: 1; align-content: center; }
.w-sales .wb, .w-inventory .wb { inset: 10% 6% auto 8%; }
.w-sales .wb__kpis { grid-template-columns: repeat(3, 1fr); }
.w-sales .wb__kpis div:nth-child(n+4) { display: none; }
.w-inventory .wb__table span:nth-child(n+13) { display: none; }

.pending-art { position: absolute; inset: 0; display: grid; place-items: center; }
.pending-art span { width: 58%; aspect-ratio: 1; border-radius: 22px; border: 1.5px dashed #B8C6B9; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--sage-700); font-size: .82rem; line-height: 1.35; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-auto-rows: 104px; }
  .w-sales, .w-inventory { flex-direction: column; grid-row: span 3; }
  .w-sales .wb, .w-inventory .wb { inset: 8% 7% auto; }
  .w-inventory { grid-column: 8 / 13; }
  .w-this { grid-row: span 6; }
  .w-tracker, .w-invoice { grid-row: span 4; }
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .tile { grid-column: auto / span 2 !important; grid-row: auto !important; }
  .tile__media { min-height: 0; aspect-ratio: 16 / 11; flex: none; }
  .t-excel .tile__media { aspect-ratio: 4 / 3.4; }
  .t-way, .t-quote { grid-column: auto / span 1 !important; }
  .t-way { flex-direction: column; align-items: flex-start; }
  .w-sales, .w-inventory { flex-direction: column; }
  .w-sales, .w-inventory, .w-tracker, .w-invoice { grid-column: auto / span 1 !important; }
  .w-sales .tile__media, .w-inventory .tile__media, .w-tracker .tile__media, .w-invoice .tile__media { aspect-ratio: 4 / 3.6; }
  .tile:hover { transform: none; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .t-way, .t-quote, .w-sales, .w-inventory, .w-tracker, .w-invoice { grid-column: 1 / -1 !important; }
  .w-sales .tile__media, .w-inventory .tile__media, .w-tracker .tile__media, .w-invoice .tile__media { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .tile__media > * { transition: none; }
  .tile:hover { transform: none; }
  .tile:hover .tile__media > .zoom { transform: none; }
  .t-way .orb__metal { animation: none; }
}

/* Excel service tile: 2 x 2 figures */
.t-excel .wb__kpis { grid-template-columns: repeat(2, 1fr); }

/* Keep honest labels clear of the content they describe */
.w-this .media-tag { left: auto; right: 14px; top: 14px; bottom: auto; }
.w-inventory .wb__kpis { grid-template-columns: repeat(3, 1fr); }

/* Phone fixes */
.t-way .orb { clip-path: circle(50%); }
@media (max-width: 900px) {
  .t-excel .tile__media { aspect-ratio: 1 / 1.12; }
  .t-excel .media-tag { left: auto; right: 14px; top: 14px; bottom: auto; }
}
@media (max-width: 640px) {
  .t-excel .tile__media { aspect-ratio: 1 / 1.3; }
}
.t-way .orb { border-radius: 50%; overflow: hidden; -webkit-mask-image: radial-gradient(circle, #000 69.5%, transparent 70.5%); mask-image: radial-gradient(circle, #000 69.5%, transparent 70.5%); height: 78px; }

/* ---------- 23. About (founder) ---------- */
.story__sub { margin-top: 1.4rem; max-width: 36ch; }
.founder {
  position: relative; margin: clamp(3rem, 6vw, 5rem) 0 0; max-width: 58rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: 32px; background: var(--card, #FFFFFF);
  border: 1px solid var(--pearl-200); box-shadow: var(--glass-shadow);
}
.founder::before {
  content: "\201C"; position: absolute; top: clamp(.5rem, 2vw, 1.25rem); left: clamp(1rem, 3vw, 2.5rem);
  font-family: var(--f-display); font-size: clamp(5rem, 10vw, 8rem); line-height: 1; color: var(--sage-500); opacity: .55;
}
.founder__quote { position: relative; margin: 0; display: grid; gap: 1.2rem; }
.founder__quote p { font-size: var(--fs-lead); line-height: 1.5; color: var(--charcoal-900); max-width: 52ch; }
.founder__quote p:first-child { padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.founder .signature { margin-top: clamp(1.8rem, 3vw, 2.5rem); }

/* ---------- 24. Typography: Plus Jakarta Sans (headings) + Inter (text) ---------- */
body { line-height: 1.65; }
.h-display, .h-mega, .hero__title { font-weight: 600; letter-spacing: -.03em; }
.hero__title { line-height: 1.04; }
.h-display { line-height: 1.1; }
.h-mega { line-height: 1.04; }
.lead { line-height: 1.5; }

/* Labels: Inter, sentence case, readable size */
.mono { font-weight: 600; letter-spacing: .01em; text-transform: none; }
.nav__links a { font-weight: 500; }
.btn { font-weight: 600; letter-spacing: -.005em; }

/* Component sizes tuned for the wider sans */
.preloader__word { font-weight: 600; font-size: 1.6rem; letter-spacing: -.02em; }
.menu li a { font-weight: 600; font-size: clamp(2.25rem, 10vw, 3.5rem); letter-spacing: -.03em; }
.chapter { font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.025em; }
.strip__stats strong { font-weight: 600; font-size: clamp(2.4rem, 4vw, 3.75rem); letter-spacing: -.04em; }
.marquee span { font-weight: 600; font-size: clamp(2.75rem, 6.5vw, 6.5rem); letter-spacing: -.04em; }
.mission__text { font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.3; letter-spacing: -.02em; }
.timeline h3 { font-weight: 600; font-size: 1.25rem; letter-spacing: -.015em; }
.stack__num { font-weight: 600; font-size: clamp(4rem, 10vw, 9rem); letter-spacing: -.05em; }
.stack__card h3 { font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.025em; }
.wb__kpis b { font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.modal__body h3 { font-weight: 600; font-size: clamp(1.75rem, 4vw, 2.4rem); line-height: 1.1; letter-spacing: -.03em; }
.quote__success h3 { font-weight: 600; font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -.025em; }
.footer__word { font-weight: 700; font-size: clamp(3rem, 15.5vw, 19rem); letter-spacing: -.06em; line-height: 1; padding-bottom: .12em; }
.tile__body h3 { font-weight: 600; font-size: clamp(1.3rem, 1.8vw, 1.75rem); line-height: 1.15; letter-spacing: -.025em; }
.t-way h3, .t-quote h3 { font-weight: 600; font-size: clamp(1.2rem, 1.5vw, 1.4rem); letter-spacing: -.02em; }
.founder::before { font-size: clamp(4rem, 8vw, 6rem); }

@media (max-width: 640px) {
  :root { --fs-body: 1rem; }
  .hero__title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
}
/* Let the chrome gradient reach the deeper sans-serif descenders */
.h-display em, .h-mega em, .hero__title em, em.is-split .w-in { padding-bottom: .14em; margin-bottom: -.14em; }

/* ---------- 25. Websites tile: CSS 3D laptop ---------- */
.lt3d-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 6% 0 18% 8%; }
.lt3d-scene { position: relative; width: 37%; perspective: 1800px; }
.t-web .media-tag { left: auto; right: 14px; top: 14px; bottom: auto; }
.lt3d-float { transform-style: preserve-3d; animation: lt3d-float 7s ease-in-out infinite; }
@keyframes lt3d-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.lt3d-tilt, .lt3d-rig { transform-style: preserve-3d; }
.lt3d-rig { transform: rotateX(-14deg) rotateY(-20deg) rotateZ(.5deg); }

.lt3d-lid { position: relative; width: 100%; aspect-ratio: 16 / 10.4; transform-style: preserve-3d; transform-origin: 50% 100%; transform: rotateX(4deg); }
.lt3d-back { position: absolute; inset: 0; border-radius: 12px 12px 4px 4px; transform: translateZ(-5px); background: linear-gradient(135deg, #F3F4F4 0%, #C9CDCF 35%, #E9EBEC 55%, #B7BCBF 100%); }
.lt3d-side { position: absolute; top: 4px; bottom: 2px; right: 0; width: 5px; transform-origin: right center; transform: rotateY(-90deg); background: linear-gradient(180deg, #D9DCDD, #A9AFB2); }
.lt3d-front { position: absolute; inset: 0; border-radius: 12px 12px 4px 4px; padding: 2.4% 2.4% 3.6%; background: #1F2925; box-shadow: 0 0 0 1.5px #C8CCCE, inset 0 0 0 1px #3A4540; }
.lt3d-screen { position: relative; width: 100%; height: 100%; border-radius: 3px; overflow: hidden; background: #fff; }
.lt3d-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.lt3d-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 40%); }

.lt3d-base { position: absolute; left: -5%; width: 110%; top: 100%; aspect-ratio: 110 / 68; transform-origin: 50% 0; transform: rotateX(90deg); transform-style: preserve-3d;
  border-radius: 3px 3px 14px 14px; background: linear-gradient(180deg, #E4E6E7 0%, #D2D6D8 60%, #C3C8CA 100%); box-shadow: inset 0 1px 0 #fff; }
.lt3d-top { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.lt3d-keys { position: absolute; left: 12%; right: 12%; top: 10%; height: 44%; border-radius: 6px; opacity: .55;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(100% / 14 - 2px), #D9DCDD calc(100% / 14 - 2px) calc(100% / 14)),
    repeating-linear-gradient(180deg, transparent 0 calc(100% / 6 - 2px), #D9DCDD calc(100% / 6 - 2px) calc(100% / 6)),
    #8E9598; }
.lt3d-pad { position: absolute; left: 33%; right: 33%; top: 62%; height: 30%; border-radius: 7px; background: linear-gradient(180deg, #DADDDE, #CDD1D3); }
.lt3d-lip { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; transform-origin: 50% 100%; transform: rotateX(-90deg); border-radius: 0 0 8px 8px; background: linear-gradient(180deg, #BFC4C6, #9AA1A4); }
.lt3d-ground { position: absolute; left: 4%; right: 4%; top: 108%; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(39, 51, 46, .2), rgba(39, 51, 46, 0)); filter: blur(3px); }

/* Hover: the screenshot drifts slightly so the "screen" feels alive */
.t-web:hover .lt3d-screen img { transform: translateY(-3%); }

@media (max-width: 900px) {
  .lt3d-scene { width: 60%; }
  .lt3d-rig { transform: rotateX(-12deg) rotateY(-8deg); }
  .lt3d-float { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lt3d-float { animation: none; }
  .lt3d-screen img { transition: none; }
  .t-web:hover .lt3d-screen img { transform: none; }
}

/* ---------- 26. Real Excel views (fictional demo data) ---------- */
.xl-shot { position: absolute; inset: 0; display: grid; place-items: center; padding: 7% 7% 15%; }
.xl-frame {
  position: relative; width: 100%; max-height: 100%; overflow: hidden;
  border-radius: 12px; background: #fff;
  border: 1px solid var(--pearl-200);
  box-shadow: 0 1px 0 #fff inset, 0 22px 40px -30px rgba(39, 51, 46, .5);
}
.xl-frame img { display: block; width: 100%; height: auto; }

/* Tall Excel service tile: sit the dashboard in the upper area */
.t-excel .xl-shot { place-items: center; padding: 7% 12% 14%; }

/* Wide side-by-side tiles: whole sheet, scaled to fit */
.w-sales .xl-shot, .w-inventory .xl-shot { padding: 8% 5% 16% 7%; }

/* Invoice list is very wide: crop to the left columns so text stays legible */
.w-invoice .xl-frame { height: 82%; }
.w-invoice .xl-frame img { height: 100%; width: auto; max-width: none; }

/* Dialog figures */
.wb--real img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--pearl-200); box-shadow: 0 20px 40px -30px rgba(39, 51, 46, .45); }
.wb--real img + img { margin-top: .75rem; }

@media (max-width: 900px) {
  .t-excel .xl-shot { padding: 6% 18% 14%; }
}

/* ---------- 27. Policy pages ---------- */
.legal-page { background: var(--pearl-50, #FAF9F6); }
.legal-page .nav { justify-content: space-between; }
.legal { max-width: 46rem; margin: 0 auto; padding: calc(60px + clamp(4rem, 9vw, 7rem)) var(--gutter) clamp(4rem, 8vw, 6rem); }
.legal .h-display { margin-bottom: .75rem; }
.legal__date { color: var(--graphite-700); font-size: .95rem; margin-bottom: 2.25rem; }
.legal__lead { font-size: 1.15rem; line-height: 1.65; }
.legal h2 { margin: 2.75rem 0 .85rem; font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.2; letter-spacing: -.02em; }
.legal p, .legal li { line-height: 1.7; color: var(--graphite-700); }
.legal p + p { margin-top: 1rem; }
.legal ul { display: grid; gap: .7rem; padding-left: 1.2rem; list-style: disc; }
.legal li::marker { color: var(--sage-500, #879F8B); }
.legal strong { color: var(--charcoal-900); font-weight: 600; }
.legal a { color: var(--sage-700); text-decoration: underline; text-underline-offset: .2em; }
.legal mark.tbc { background: #FFF1C2; color: var(--charcoal-900); padding: 0 .25em; border-radius: 4px; }
.footer--legal { padding-top: 0; }
.footer__base a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.footer__base a:hover { color: var(--sage-700); }
.quote__privacy a { color: var(--sage-700); text-decoration: underline; text-underline-offset: .2em; }
