/* ============================================================
   SITE COSMOS — Websites with gravity
   Light Cosmos: atmosphere, instrumentation, one dark moment.
   ============================================================ */

:root {
  /* ── brand · signal ───────────────────────────── */
  --signal-500:  #2A66FF;
  --signal-600:  #1B4FE0;
  --signal-700:  #123CB8;
  --signal-100:  #E6EEFF;
  --signal-50:   #F1F6FF;

  /* ── atmosphere · nebula (gradients only) ─────── */
  --nebula-300:  #D4E6FF;
  --nebula-200:  #E7F1FF;
  --nebula-100:  #F1F8FF;

  /* ── neutrals · ink (cooled 4° toward blue) ───── */
  --ink-900:     #0A0B0D;
  --ink-700:     #2A2E35;
  --ink-500:     #4C525E;
  --ink-400:     #6E7484;
  --ink-300:     #9AA1AF;
  --line:        #E8ECF3;
  --line-soft:   #F1F4F9;

  /* ── surfaces ─────────────────────────────────── */
  --bg:          #FFFFFF;
  --bg-raised:   #FBFBFC;
  --bg-tint:     #F2F8FF;

  /* ── deep space ───────────────────────────────── */
  --void:        #06070A;
  --void-raised: #0E1017;
  --on-void:     #F5F7FA;
  --on-void-mut: #8A93A6;

  /* ── accents (sparingly) ──────────────────────── */
  --flare:       #FC7A57;
  --success:     #00A63E;

  /* ── type ─────────────────────────────────────── */
  --sans:  "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;

  /* ── metrics ──────────────────────────────────── */
  --container:  1200px;
  --narrow:     780px;
  --pad-x:      24px;
  --sec-y:      104px;
  --r:          10px;
  --r-lg:       16px;
  --r-xl:       20px;

  --shadow-sm: 0 1px 2px rgba(10,11,13,.04), 0 8px 24px rgba(10,11,13,.04);
  --shadow-md: 0 2px 4px rgba(10,11,13,.04), 0 18px 48px rgba(10,11,13,.07);
  --ease:      cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }

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

body {
  background: var(--bg);
  color: var(--ink-500);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }
::selection { background: rgba(42,102,255,.16); color: var(--ink-900); }

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

.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 200;
  background: var(--ink-900); color: #fff; padding: 10px 18px; border-radius: var(--r);
}
.skip-link:focus { left: 24px; }


/* ═══════════════ TYPE SYSTEM ═══════════════ */

h1, h2, h3, h4, h5 {
  color: var(--ink-900);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  text-wrap: balance;   /* keeps the serif tail from being orphaned */
}

p { text-wrap: pretty; }

h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  letter-spacing: -.035em;
  line-height: 1.03;
}

h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.375rem; letter-spacing: -.02em; line-height: 1.3; }
h4 { font-size: 1.0625rem; letter-spacing: -.015em; }

/* ── THE SIGNATURE: serif-italic headline tail ── */
h1 em, h2 em, .closing-h em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -.02em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-400);
  line-height: 1;
}
.eyebrow-center { text-align: center; }

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -.005em;
  max-width: 34rem;
}

.micro { font-size: .8125rem; line-height: 1.5; color: var(--ink-400); }
.micro-void { color: var(--on-void-mut); }

.link {
  color: var(--signal-600);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: .4rem;
}
.link:hover { color: var(--signal-700); }
.arw { display: inline-block; transition: transform .15s var(--ease); }
.link:hover .arw, .btn:hover .arw { transform: translateX(3px); }


/* ═══════════════ LAYOUT ═══════════════ */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container-narrow { max-width: var(--narrow); }

.section { padding-block: var(--sec-y); position: relative; }

.sec-head { max-width: 44rem; margin-bottom: 64px; }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head h2 + .sec-sub { margin-top: 22px; }
.sec-sub { max-width: 40rem; }
.sec-head-center { margin-inline: auto; text-align: center; }
.sec-head-center .sec-sub { margin-inline: auto; }

/* soft atmospheric bleed between light sections */
.section-tint {
  background: linear-gradient(180deg, transparent, var(--bg-tint) 12%, var(--bg-tint) 88%, transparent);
}


/* ═══════════════ BUTTONS ═══════════════ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 52px; padding-inline: 26px;
  border-radius: var(--r);
  font-size: .9375rem; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease),
              border-color .15s var(--ease), transform .15s var(--ease),
              box-shadow .15s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--signal-500); color: #fff;
  box-shadow: 0 1px 2px rgba(42,102,255,.24), 0 8px 22px rgba(42,102,255,.18);
}
.btn-primary:hover { background: var(--signal-600); }

.btn-ghost {
  background: transparent; color: var(--ink-900);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink-300); background: var(--bg-raised); }

.btn-sm { height: 40px; padding-inline: 18px; font-size: .875rem; }
.btn-lg { height: 58px; padding-inline: 34px; font-size: 1rem; }


/* ═══════════════ TICKS / CROSSES ═══════════════ */

.tick, .cross {
  flex: none;
  width: 17px; height: 17px; border-radius: 50%;
  display: inline-grid; place-items: center;
  position: relative; top: 3px;
}
.tick  { background: rgba(0,166,62,.12); }
.cross { background: rgba(252,122,87,.16); }

.tick::after {
  content: ""; width: 8px; height: 4.5px;
  border-left: 1.7px solid var(--success); border-bottom: 1.7px solid var(--success);
  transform: rotate(-45deg) translate(.5px,-1px);
}
.cross::after {
  content: "×"; color: var(--flare); font-size: 12px; line-height: 1; font-weight: 600;
}


/* ═══════════════ NAV — floating pill ═══════════════ */

.nav {
  position: fixed; inset: 14px 0 auto; z-index: 100;
  padding-inline: var(--pad-x);
  display: flex; flex-direction: column; align-items: center;
}

.nav-pill {
  width: 100%; max-width: var(--container);
  display: flex; align-items: center; gap: 20px;
  height: 60px; padding: 0 10px 0 20px;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.nav.is-scrolled .nav-pill {
  background: rgba(255,255,255,.86);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink-900);
  font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-mark { width: 20px; height: 20px; color: var(--signal-500); flex: none; }
.brand-name { white-space: nowrap; }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: .9375rem; color: var(--ink-500);
  transition: color .15s var(--ease);
}
.nav-links a:hover { color: var(--ink-900); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px; margin-left: auto;
  border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  width: 17px; height: 1.6px; background: var(--ink-900); border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.3px) rotate(-45deg); }

.nav-drawer {
  width: 100%; max-width: var(--container);
  margin-top: 8px; padding: 12px;
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.nav-drawer[hidden] { display: none; }
.nav-drawer > a:not(.btn) {
  padding: 13px 14px; border-radius: 8px;
  font-size: .9375rem; color: var(--ink-700);
}
.nav-drawer > a:not(.btn):hover { background: var(--signal-50); color: var(--ink-900); }
.nav-drawer .btn { margin-top: 8px; width: 100%; }


/* ═══════════════ NEBULA ATMOSPHERE ═══════════════ */

.nebula {
  position: absolute; z-index: 0;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}
.nebula-a {
  top: -180px; left: -160px;
  width: 780px; height: 700px;
  background: radial-gradient(circle at 40% 40%, var(--nebula-300), rgba(212,230,255,0) 68%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.nebula-b {
  top: -60px; right: -220px;
  width: 900px; height: 780px;
  background: radial-gradient(circle at 55% 45%, var(--nebula-200), rgba(231,241,255,0) 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.nebula-c {
  top: 4%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 640px;
  background: radial-gradient(ellipse at 50% 40%, var(--nebula-100), rgba(241,248,255,0) 72%);
}

@keyframes drift-a { to { transform: translate3d(50px, 34px, 0) scale(1.07); } }
@keyframes drift-b { to { transform: translate3d(-46px, 30px, 0) scale(1.05); } }


/* ═══════════════ 01 · HERO ═══════════════ */

.hero { position: relative; padding: 172px 0 104px; overflow: hidden; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
  gap: 56px; align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  height: 34px; padding-inline: 15px;
  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8125rem; font-weight: 500; color: var(--ink-700);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal-500);
  box-shadow: 0 0 0 3.5px rgba(42,102,255,.16);
}

.hero-copy h1 { margin-bottom: 26px; }
.hero-copy .lede { margin-bottom: 34px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }

.ticks {
  margin-top: 34px; padding-top: 30px;
  border-top: 1px solid var(--line);
  display: grid; gap: 12px;
}
.ticks li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9375rem; color: var(--ink-500);
}
.ticks strong { color: var(--ink-900); font-weight: 600; }


/* ── Orbital device ── */
/* --orbit drives ring size, node radius and node scale together,
   so the whole device stays self-consistent at any breakpoint. */
.orbit-wrap { display: grid; place-items: center; min-height: 460px; padding: 32px; }

.orbit {
  /* viewport units, never %, — this value is consumed inside translateY()
     on zero-sized .node elements, where a % would resolve to 0. */
  --orbit: min(420px, 34vw);
  --node: 54px;
  position: relative;
  width: var(--orbit); aspect-ratio: 1;
  display: grid; place-items: center;
}

.ring {
  position: absolute; inset: 0; margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(42,102,255,.16);
}
.ring-1 { width: 100%;  height: 100%; }
.ring-2 { width: 72%;   height: 72%;  border-color: rgba(42,102,255,.2); }
.ring-3 { width: 45%;   height: 45%;  border-color: rgba(42,102,255,.13); border-style: dashed; }

.orbit-core {
  position: relative; z-index: 2;
  display: grid; place-items: center; gap: 7px;
  width: 132px; height: 132px;
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}
.core-mark { width: 26px; height: 26px; color: var(--signal-500); }
.core-label {
  font-family: var(--mono);
  font-size: .5625rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-400);
}

.spinner {
  position: absolute; inset: 0;
  animation: spin 44s linear infinite;
}
.node {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
}
.node-in {
  position: absolute;
  width: var(--node); height: var(--node);
  margin: calc(var(--node) / -2) 0 0 calc(var(--node) / -2);
  border-radius: calc(var(--node) / 4);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  animation: spin-rev 44s linear infinite;
  overflow: hidden;
}
.node-in::before {
  content: ""; position: absolute; inset: 0;
}
.node-in::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 9px;
  height: 3px; border-radius: 2px; background: rgba(255,255,255,.62);
}

.node-in[data-swatch="barber"]::before { background: linear-gradient(150deg, #17161A, #2C2A31); }
.node-in[data-swatch="coffee"]::before { background: linear-gradient(150deg, #6B4530, #A9714C); }
.node-in[data-swatch="hotel"]::before  { background: linear-gradient(150deg, #14263D, #2A4A6E); }
.node-in[data-swatch="build"]::before  { background: linear-gradient(150deg, #23262B, #444A52); }
.node-in[data-swatch="clinic"]::before { background: linear-gradient(150deg, #DCE9FA, #F4F8FF); }
.node-in[data-swatch="clinic"]::after  { background: rgba(42,102,255,.35); }

.node-1 { transform: rotate(0deg)   translateY(calc(var(--orbit) / -2)); }
.node-2 { transform: rotate(72deg)  translateY(calc(var(--orbit) / -2)); }
.node-3 { transform: rotate(144deg) translateY(calc(var(--orbit) / -2)); }
.node-4 { transform: rotate(216deg) translateY(calc(var(--orbit) / -2)); }
.node-5 { transform: rotate(288deg) translateY(calc(var(--orbit) / -2)); }

.node-2 .node-in { animation-name: spin-rev-72;  }
.node-3 .node-in { animation-name: spin-rev-144; }
.node-4 .node-in { animation-name: spin-rev-216; }
.node-5 .node-in { animation-name: spin-rev-288; }

@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes spin-rev    { from { transform: rotate(0deg);     } to { transform: rotate(-360deg); } }
@keyframes spin-rev-72 { from { transform: rotate(-72deg);   } to { transform: rotate(-432deg); } }
@keyframes spin-rev-144{ from { transform: rotate(-144deg);  } to { transform: rotate(-504deg); } }
@keyframes spin-rev-216{ from { transform: rotate(-216deg);  } to { transform: rotate(-576deg); } }
@keyframes spin-rev-288{ from { transform: rotate(-288deg);  } to { transform: rotate(-648deg); } }


/* ═══════════════ 02 · INDUSTRIES RAIL ═══════════════ */

.industries { padding-block: 40px 8px; }
.industries .eyebrow { margin-bottom: 26px; }

.rail {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 38px;
  padding-block: 26px;
  border-block: 1px solid var(--line);
}
.rail li {
  font-family: var(--mono);
  font-size: .8125rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-300);
  transition: color .2s var(--ease);
}
.rail li:hover { color: var(--ink-500); }


/* ═══════════════ 03 · SELECTED BUILDS ═══════════════ */

/* browser frame */
.frame {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}
.chrome {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding-inline: 13px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}
.chrome i { width: 8px; height: 8px; border-radius: 50%; background: #DDE2EA; }
.chrome .url {
  margin-left: 12px;
  font-family: var(--mono); font-size: .625rem; letter-spacing: .02em;
  color: var(--ink-300);
}

/* ── featured: interactive live-build showcase ── */
.showcase {
  display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  gap: 60px; align-items: center;
  margin-bottom: 88px;
}

.showcase-view { position: relative; padding: 0 0 34px 42px; }
.frame-lg { position: relative; }

/* stacked real screenshots — cross-fade between features */
.panes { position: relative; aspect-ratio: 16/10; background: #141416; }
.pane {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.pane.is-active { opacity: 1; visibility: visible; }

/* the real site, running. pointer-events:none so it never traps page scroll. */
.live {
  position: absolute; inset: 0; z-index: 2;
  overflow: hidden;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.live.is-on { opacity: 1; }
.live iframe {
  border: 0;
  transform-origin: top left;
  display: block;
}

.live-badge {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  display: flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 9px;
  background: rgba(10,11,13,.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .5625rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: #fff;
}
.live-badge[hidden] { display: none; }
/* smaller badge on the work-grid tiles */
.frame:not(.frame-lg) .live-badge {
  top: 8px; left: 8px; padding: 4px 8px 4px 7px; font-size: .5rem; gap: 5px;
}
.frame:not(.frame-lg) .live-badge span { width: 5px; height: 5px; box-shadow: 0 0 0 2.5px rgba(52,211,153,.22); }
.live-badge span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.22);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* phone, overlapping the desktop frame's lower-left corner */
.phone {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  width: 116px; padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
.phone img { width: 100%; height: auto; border-radius: 11px; display: block; }

.showcase-meta > .eyebrow { margin-bottom: 14px; }
.showcase-meta h3 { margin-bottom: 14px; }
.showcase-intro { font-size: .9375rem; margin-bottom: 26px; }

/* the feature list doubles as the tablist */
.features { display: grid; gap: 2px; margin-bottom: 24px; }
.feat {
  display: block; width: 100%; text-align: left;
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 2px solid transparent;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.feat:hover { background: var(--signal-50); }
.feat.is-active { background: var(--signal-50); border-left-color: var(--signal-500); }

.feat-txt b {
  display: block;
  font-size: .9375rem; font-weight: 600; letter-spacing: -.015em;
  color: var(--ink-900); margin-bottom: 3px;
}
.feat-txt i {
  display: block; font-style: normal;
  font-size: .8125rem; line-height: 1.5; color: var(--ink-400);
}
.feat.is-active .feat-txt i { color: var(--ink-500); }

.scorecard {
  position: absolute; right: 18px; bottom: 18px;
  display: flex; gap: 4px; padding: 5px;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.scorecard div {
  display: grid; gap: 2px; justify-items: center;
  padding: 8px 13px; border-radius: 8px; background: var(--bg-raised);
}
.scorecard b {
  font-family: var(--mono); font-size: 1rem; font-weight: 600;
  letter-spacing: -.03em; color: var(--success); font-variant-numeric: tabular-nums;
}
.scorecard span {
  font-family: var(--mono); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-400);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.showcase-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.link-quiet { color: var(--ink-400); font-weight: 400; }
.link-quiet:hover { color: var(--ink-900); }
.chips li {
  padding: 6px 12px; border-radius: 999px;
  background: var(--signal-50); border: 1px solid var(--signal-100);
  font-size: .75rem; font-weight: 500; color: var(--signal-700);
}

/* grid */
.work-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px;
}
.tile .frame { margin-bottom: 16px; }
.tile:hover .frame { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tile .eyebrow { font-size: .625rem; margin-bottom: 7px; }

.grid-foot { margin-top: 36px; text-align: center; }


/* ═══════════════ 04 · WHY IT MATTERS ═══════════════ */

.section-why .sec-head { margin-inline: auto; text-align: center; }

.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px 56px;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 600; letter-spacing: -.045em; line-height: 1;
  color: var(--ink-900); font-variant-numeric: tabular-nums;
  margin-bottom: 20px;
}
.stat .pc { color: var(--signal-500); }
.stat p { max-width: 19rem; margin-inline: auto; margin-bottom: 12px; }
.stat cite {
  font-family: var(--mono); font-size: .625rem; font-style: normal;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-300);
}


/* ═══════════════ 05 · WHAT'S INCLUDED ═══════════════ */

.incl {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  column-gap: 56px;
  border-top: 1px solid var(--line);
}
.incl li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 17px 2px;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem; color: var(--ink-700);
}
.incl-note {
  max-width: 40rem; margin: 44px auto 0; text-align: center;
  font-size: .9375rem; color: var(--ink-400);
}


/* ═══════════════ 06 · HOW IT WORKS ═══════════════ */

.timeline {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 48px;
  position: relative;
}
/* the hairline rail — no boxes */
.timeline::before {
  content: ""; position: absolute;
  top: 19px; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}
.step { position: relative; }
.node-num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  font-family: var(--mono); font-size: .875rem; font-weight: 600; color: #fff;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}
.node-num[data-tone="blue"]  { background: var(--signal-500); }
.node-num[data-tone="coral"] { background: var(--flare); }
.node-num[data-tone="green"] { background: var(--success); }

.step h3 { margin-bottom: 12px; }
.step p { font-size: .9375rem; max-width: 21rem; }


/* ═══════════════ 07 · PERFORMANCE ═══════════════ */

.section-perf { overflow: hidden; }
.section-perf .container { position: relative; z-index: 1; }
.section-perf .sec-head { margin-inline: auto; text-align: center; }
.section-perf .sec-sub { margin-inline: auto; }

.metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  padding-block: 44px;
  border-block: 1px solid var(--line);
  margin-bottom: 72px;
}
.metric { text-align: center; }
.metric b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600; letter-spacing: -.04em; line-height: 1;
  color: var(--ink-900); font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.metric b i { font-style: normal; color: var(--signal-500); }
.metric span {
  font-family: var(--mono); font-size: .625rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-400);
}

.versus {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 28px; align-items: center;
}
.vs-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.vs-card .eyebrow { margin-bottom: 26px; }
.vs-split {
  font-family: var(--mono); font-size: .6875rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-300);
}
.vs-split span {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
}

/* conic gauge */
.gauge {
  --v: 100;
  width: 128px; height: 128px; margin: 0 auto 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--success) calc(var(--v) * 1%), var(--line-soft) 0);
  position: relative;
}
.gauge::before {
  content: ""; position: absolute; inset: 9px;
  background: #fff; border-radius: 50%;
}
.gauge span {
  position: relative;
  font-family: var(--mono); font-size: 1.875rem; font-weight: 600;
  letter-spacing: -.04em; color: var(--success); font-variant-numeric: tabular-nums;
}
.gauge-bad { background: conic-gradient(var(--flare) calc(var(--v) * 1%), var(--line-soft) 0); }
.gauge-bad span { color: var(--flare); }

.vs-list { display: grid; gap: 11px; text-align: left; max-width: 15rem; margin-inline: auto; }
.vs-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; }
.vs-list-bad li { color: var(--ink-400); }

.vs-caption {
  margin-top: 24px; text-align: center;
  font-family: var(--mono); font-size: .6875rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-300);
}


/* ═══════════════ 08 · FAQ ═══════════════ */

.section-faq { padding-bottom: calc(var(--sec-y) + 8px); }

.faq { border-top: 1px solid var(--line); }

.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 2px;
  list-style: none; cursor: pointer;
  color: var(--ink-900); font-size: 1.0625rem; font-weight: 500; letter-spacing: -.015em;
  transition: color .15s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--signal-600); }

.chev {
  flex: none; width: 11px; height: 11px;
  border-right: 1.6px solid var(--ink-300); border-bottom: 1.6px solid var(--ink-300);
  transform: rotate(45deg) translate(-2px,-2px);
  transition: transform .25s var(--ease), border-color .15s var(--ease);
}
.qa[open] .chev { transform: rotate(-135deg) translate(-3px,-3px); border-color: var(--signal-500); }

.qa-body { overflow: hidden; }
.qa-body p { padding: 0 60px 28px 2px; font-size: .9375rem; }
.qa[open] .qa-body { animation: qa-in .32s var(--ease); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }

.faq-foot { margin-top: 40px; text-align: center; font-size: .9375rem; color: var(--ink-400); }


/* ═══════════════ 09 · CLOSING — the one dark moment ═══════════════ */

.closing {
  position: relative; overflow: hidden;
  background: var(--void);
  padding-block: 132px;
  text-align: center;
}
.void-glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(42,102,255,.28), rgba(42,102,255,0) 66%);
  filter: blur(30px); pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; }

.closing-h {
  color: var(--on-void);
  font-size: clamp(2.125rem, 4.6vw, 3.25rem);
  margin-bottom: 26px;
}
.closing-h em { color: #fff; }

.closing-sub {
  color: var(--on-void-mut);
  font-size: 1.0625rem; max-width: 34rem; margin: 0 auto 38px;
}
.closing .btn-primary { box-shadow: 0 2px 8px rgba(42,102,255,.34), 0 14px 44px rgba(42,102,255,.3); }
.closing .micro { margin-top: 20px; }


/* ═══════════════ FOOTER ═══════════════ */

.footer { background: var(--void); color: var(--on-void-mut); padding-block: 76px 40px; }

.footer-grid {
  display: grid; grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 44px 32px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer .brand { color: var(--on-void); }
.footer .brand-mark { color: var(--signal-500); }
.tagline {
  margin-top: 12px;
  font-family: var(--serif); font-style: italic; font-size: 1.125rem;
  color: var(--on-void-mut);
}

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h5 {
  font-family: var(--mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: #FFF; opacity: .5;
  margin-bottom: 5px;
}
.footer-col a {
  font-size: .875rem; color: var(--on-void-mut);
  transition: color .15s var(--ease);
}
.footer-col a:hover { color: var(--on-void); }

.footer-legal {
  padding-top: 26px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: .8125rem;
}


/* ═══════════════ BOOKING MODAL ═══════════════ */

.booking {
  width: min(1040px, 94vw);
  height: min(760px, 88vh);
  max-width: none; max-height: none;
  /* explicit centring — setting width/height/display on a dialog
     otherwise leaves it pinned to the top-left in some engines */
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 0; border: 0;
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: 0 8px 40px rgba(6,7,10,.28), 0 40px 90px rgba(6,7,10,.32);
  overflow: hidden;
  display: none;
}
.booking[open] { display: flex; flex-direction: column; }

.booking::backdrop {
  background: rgba(6,7,10,.68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.booking[open] { animation: modal-in .32s var(--ease); }
.booking[open]::backdrop { animation: fade-in .32s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes fade-in  { from { opacity: 0; } }

.booking-bar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 16px 16px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}
.booking-title {
  display: flex; align-items: center; gap: 9px;
  font-size: .875rem; font-weight: 500; color: var(--ink-900);
}

.booking-close {
  flex: none;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  color: var(--ink-400);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.booking-close:hover { background: var(--line-soft); color: var(--ink-900); }
.booking-close svg { width: 18px; height: 18px; }

.booking-body { position: relative; flex: 1; min-height: 0; }

.booking-frame {
  width: 100%; height: 100%;
  border: 0; display: block;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.booking-frame.is-ready { opacity: 1; }

.booking-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  font-family: var(--mono);
  font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-300);
}
.booking-loading[hidden] { display: none; }
.spinner-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal-500);
  animation: pulse 1.2s ease-in-out infinite;
}
/* escape hatch if Calendly is slow or blocked */
.booking-fallback {
  font-family: var(--sans);
  font-size: .8125rem; letter-spacing: 0; text-transform: none;
  color: var(--signal-600); font-weight: 500;
}
.booking-fallback:hover { color: var(--signal-700); text-decoration: underline; }

/* stop the page behind from scrolling while the modal is up */
body.is-locked { overflow: hidden; }

@media (max-width: 620px) {
  .booking { width: 100vw; height: 100dvh; border-radius: 0; }
}


/* ═══════════════ SCROLL REVEAL ═══════════════ */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--d, 0ms);
}


/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 1080px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .showcase { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --sec-y: 84px; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-pill { padding-right: 12px; }

  .hero { padding: 128px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }

  /* copy first — the headline must land before any decoration */
  .orbit-wrap { min-height: 0; padding: 20px; }
  .orbit { --orbit: min(300px, 62vw); --node: 44px; }
  .orbit-core { width: 104px; height: 104px; }

  .lede { max-width: none; }
  .sec-head { margin-bottom: 48px; }

  .stats { grid-template-columns: 1fr; gap: 44px; }
  .timeline { grid-template-columns: 1fr; gap: 40px; }
  .timeline::before { display: none; }
  .step p { max-width: none; }

  .metrics { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .versus { grid-template-columns: 1fr; gap: 16px; }
  .vs-split span { margin-inline: auto; }
}

@media (max-width: 620px) {
  :root { --pad-x: 20px; }

  body { font-size: 16px; }
  h1 { font-size: clamp(2.25rem, 9.5vw, 2.75rem); }

  .work-grid { grid-template-columns: 1fr; }
  .incl { grid-template-columns: 1fr; column-gap: 0; }
  .actions .btn { width: 100%; }
  .qa summary { font-size: 1rem; padding-block: 22px; }
  .qa-body p { padding-right: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* scorecard becomes a centred bar across the foot of the frame */
  .scorecard { left: 10px; right: 10px; bottom: 10px; justify-content: center; }
  .scorecard div { flex: 1; padding: 6px 4px; }

  .showcase-view { padding: 0 0 26px 0; }
  .phone { display: none; }
}


/* ═══════════════ MOTION / PRINT ═══════════════ */

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

@media print {
  .nav, .nebula, .void-glow, .orbit-wrap { display: none; }
  .closing, .footer { background: #fff; color: #000; }
  .closing-h, .footer .brand { color: #000; }
}
