/* Spike website - one stylesheet for every page.
   Brand palette: cream #F3DDBF, caramel #B97A4F, chocolate #4A3326, brown #C98A5E, tongue red #E0564F.
   Breakpoints (designed, not stretched): phone < 600, tablet 600-1023, laptop 1024-1599, desktop >= 1600. */

/* ---------- tokens ---------- */
:root {
  --cream: #F3DDBF;
  --caramel: #B97A4F;
  --chocolate: #4A3326;
  --brown: #C98A5E;
  --tongue: #E0564F;

  --bg: #FBF5EC;
  --bg-tint: #F5E7D3;
  --surface: #FFFDF9;
  --surface-2: #FAF0E2;
  --ink: #2E2019;
  --ink-2: #66503F;
  --ink-3: #7A6352; /* was #8C7462 (4.05:1 on the page, under WCAG AA); now 5.2:1, and 4.6:1 at the deepest point of the light field */
  --line: #EADBC6;
  --line-strong: #DCC6AA;
  --accent: #B97A4F;
  --accent-text: #8A5330;
  --btn-bg: #4A3326;
  --btn-ink: #FBF0E0;
  --btn-bg-hover: #5C412F;
  --stage-hi: #FCF5EB;
  --stage-lo: #EEDCC5;
  /* the light field behind the pages (assets/js/light-field.js): every knob, light mode. See UPDATING.md. */
  --field-glow: #DDA56C;     /* the aurora's warm amber */
  --field-accent: #B97A4F;   /* the spotlight's caramel */
  --field-aurora: .5;        /* how strong the drifting bands are (0 = none) */
  --field-spot: .55;         /* the pointer spotlight's strength */
  --field-spot-size: 1.25;   /* its size (1 = the portfolio's) */
  --field-speed: 1;          /* drift speed (1 = the portfolio's) */
  --field-vignette: .12;     /* darker corners */
  --field-scrim: .96;        /* how much of the page colour comes back behind text (keeps it AA) */
  --grain: .13;              /* paper grain opacity */
  --grain-size: 180px;
  --grain-blend: multiply;
  --dust-count: 2600;        /* at 1366 x 768; scales with screen area, 300 to 4000 */
  --dust-size: 1.7;          /* px */
  --dust-opacity: .55;
  --dust-color: #8A5A36;
  --dust-push: 1.3;          /* how hard the cursor pushes the dust */
  --dust-radius: 150;        /* px around the cursor */
  --ok: #3F8A5A;
  --soon: #B7742F;
  --shadow-sm: 0 1px 2px rgba(74, 51, 38, .06), 0 2px 8px rgba(74, 51, 38, .05);
  --shadow-md: 0 2px 6px rgba(74, 51, 38, .06), 0 18px 40px -12px rgba(74, 51, 38, .18);
  --shadow-lg: 0 4px 10px rgba(74, 51, 38, .06), 0 40px 80px -24px rgba(74, 51, 38, .28);

  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;

  --gutter: 20px;
  --max: 1200px;
  --section: 88px;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: 2.25rem;
  --step-5: 2.75rem;

  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media all {
  :root:not([data-theme="light"]) {
    --bg: #15100C;
    --bg-tint: #1E1611;
    --surface: #221914;
    --surface-2: #2A1F18;
    --ink: #F6EADB;
    --ink-2: #CDB6A1;
    --ink-3: #A48C78;
    --line: #36291F;
    --line-strong: #4A3829;
    --accent: #D9956A;
    --accent-text: #E7AA80;
    --btn-bg: #F3DDBF;
    --btn-ink: #2E2019;
    --btn-bg-hover: #F8E7D0;
    --stage-hi: #3B2B21;
    --stage-lo: #1C1410;
    --field-glow: #6B3F22;   /* the portfolio's Spike page dusk */
    --field-accent: #D9956A;
    --field-aurora: .42;
    --field-spot: .55;
    --field-spot-size: 1.15;
    --field-speed: 1;
    --field-vignette: .18;
    --field-scrim: .9;
    --grain: .07;
    --grain-blend: normal;
    --dust-opacity: .4;
    --dust-color: #F3C9A0;
    --ok: #6CC08A;
    --soon: #E3A15B;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, .25), 0 18px 40px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, .25), 0 40px 80px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

@media (min-width: 600px) {
  :root { --gutter: 32px; --section: 104px; --step-4: 2.5rem; --step-5: 3.25rem; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; --section: 128px; --step-3: 2rem; --step-4: 2.75rem; --step-5: 4rem; }
}
@media (min-width: 1600px) {
  :root { --max: 1360px; --gutter: 64px; --section: 152px; --step-0: 1.0625rem; --step-1: 1.1875rem;
          --step-2: 1.5rem; --step-3: 2.25rem; --step-4: 3.25rem; --step-5: 4.75rem; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* the light field (assets/js/light-field.js): a fixed WebGL canvas behind everything. Its own background is the page
   colour, so the page looks right if WebGL is off or fails. It never takes the pointer. */
#field, #dust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none; }
#field { background: var(--bg); }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain); mix-blend-mode: var(--grain-blend); background-size: var(--grain-size); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media print { #field, #dust, .grain { display: none; } }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cream); color: var(--chocolate); }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 60;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: color-mix(in srgb, var(--bg-tint) 55%, transparent); } /* see-through, so the light field runs under it too */
.section--tight { padding-block: calc(var(--section) * .6); }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 0.75rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .7; }
.display { font-size: var(--step-5); font-weight: 600; letter-spacing: -0.025em; line-height: 1.02; }
.display em, .h2 em { font-style: italic; font-weight: 500; color: var(--accent-text); font-variation-settings: "SOFT" 100; }
.h2 { font-size: var(--step-4); }
.h3 { font-size: var(--step-2); line-height: 1.2; }
.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.6; max-width: 38em; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
@media (min-width: 1024px) { .section-head { margin-bottom: 64px; gap: 20px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 var(--step-0)/1 var(--body); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease), border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--btn-bg-hover); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--store { padding-left: 20px; }
.btn--store .store-text { display: grid; gap: 3px; text-align: left; }
.btn--store .store-text small { font: 500 0.6875rem/1 var(--body); letter-spacing: .04em; opacity: .75; }
.btn--store .store-text span { font: 600 var(--step-0)/1 var(--body); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: var(--step--1); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- pills / status ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font: 600 0.8125rem/1 var(--body); color: var(--ink-2);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.pill--live::before { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.pill--soon::before { background: var(--soon); }
.pill--build::before { background: var(--accent); }
.pill--plain::before { display: none; }
.tag {
  display: inline-block; padding: 5px 10px; border-radius: 8px; white-space: nowrap;
  font: 600 0.75rem/1 var(--body); letter-spacing: .02em; color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand-name { font: 600 1.375rem/1 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: -0.02em; }
.nav-links { display: none; }
.nav-links a {
  position: relative; padding: 8px 2px; color: var(--ink-2); text-decoration: none;
  font: 500 0.9375rem/1 var(--body); transition: color .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--tongue);
}
.nav-cta { display: none; }
.menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.mobile-menu {
  display: none; border-top: 1px solid var(--line); background: var(--bg);
  padding: 12px var(--gutter) 24px;
}
.menu-open .mobile-menu { display: block; }
.mobile-menu a:not(.btn) {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 4px;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font: 600 1.25rem/1.2 var(--display);
}
.mobile-menu a[aria-current="page"] { color: var(--accent-text); }
.mobile-menu .btn { margin-top: 20px; width: 100%; }
@media (min-width: 900px) {
  .nav { height: 76px; }
  .nav-links { display: flex; gap: 32px; }
  .nav-cta { display: inline-flex; }
  .menu-btn, .mobile-menu, .menu-open .mobile-menu { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: 32px 40px; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--cream) 70%, transparent), transparent 70%);
  pointer-events: none; z-index: -1; opacity: .9;
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .lead { max-width: 33em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.page-hero { padding-block: 40px 56px; }
.page-hero .container { display: grid; gap: 20px; justify-items: start; }
.page-hero .lead { max-width: 40em; }
@media (min-width: 600px) {
  .hero { padding-block: 48px 48px; }
  .page-hero { padding-block: 64px 72px; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 56px 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; }
  .hero-copy { gap: 28px; }
  .page-hero { padding-block: 88px 88px; }
}
@media (min-width: 1600px) {
  .hero { padding-block: 72px 72px; }
  .hero-grid { gap: 96px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page-hero { padding-block: 120px 104px; }
}

/* the stage: a soft cream studio card the renders are shot in */
.stage {
  position: relative; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 30%, var(--stage-hi), var(--stage-lo));
  box-shadow: var(--shadow-lg); aspect-ratio: 1 / 1;
}
.stage img { width: 100%; height: 100%; object-fit: cover; }
.stage .stage-img { position: absolute; inset: 0; transition: opacity .6s var(--ease); }
.stage .stage-img.is-hidden { opacity: 0; }
.stage-wrap { display: grid; gap: 18px; justify-items: center; }
.stage-wrap .stage { width: 100%; }
.stage-controls {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.stage-controls button {
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  font: 600 0.875rem/1 var(--body); padding: 10px 16px; border-radius: 999px; min-height: 40px;
  transition: background-color .2s, color .2s;
}
.stage-controls button:hover { color: var(--ink); }
.stage-controls button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.stage-caption { position: absolute; left: 20px; top: 18px; }


/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .grid { gap: 20px; } .grid-2, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { gap: 24px; } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .grid { gap: 28px; } }
.card {
  position: relative; display: grid; align-content: start; gap: 12px;
  padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 1600px) { .card { padding: 36px; } }
.card .h3 { margin-top: 4px; }
.card p { color: var(--ink-2); }
.card-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text);
}
.card-icon svg { width: 24px; height: 24px; }
.card--link { text-decoration: none; color: inherit; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); text-decoration: none; }
.card-arrow { margin-top: 8px; font-weight: 600; color: var(--accent-text); display: inline-flex; gap: 6px; align-items: center; }
.card-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card--link:hover .card-arrow svg { transform: translateX(3px); }

/* the three ways to have Spike (Home) */
.way { padding: 0; overflow: hidden; gap: 0; }
.way-media { aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 50% 30%, var(--stage-hi), var(--stage-lo)); overflow: hidden; }
.way-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.way-media--shot { padding: 32px 0 0 32px; display: flex; align-items: flex-end; }
.way-media--shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 12px 0 0 0; box-shadow: var(--shadow-md); }
.way-media--phone { padding: 32px 0 0; display: flex; justify-content: center; align-items: flex-start; }
.way-media--phone img { width: 52%; height: auto; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-md); object-fit: contain; }
.card--link:hover .way-media img { transform: scale(1.03); }
.way-body { display: grid; gap: 10px; padding: 24px 28px 28px; justify-items: start; }
@media (min-width: 1600px) { .way-body { padding: 28px 36px 36px; } }
@media (min-width: 600px) and (max-width: 1023px) {
  .ways .way:first-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .ways .way:first-child .way-media { aspect-ratio: auto; height: 100%; }
  .ways .way:first-child .way-body { align-content: center; }
}

/* ---------- split feature rows ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.split + .split { margin-top: 88px; }
.split-copy { display: grid; gap: 18px; justify-items: start; max-width: 560px; }
.split-media { min-width: 0; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 72px; }
  .split--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .split--flip .split-copy { order: 2; }
  .split + .split { margin-top: 128px; }
}
@media (min-width: 1600px) { .split { gap: 112px; } .split + .split { margin-top: 168px; } }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.ticks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B97A4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ticks strong { color: var(--ink); font-weight: 600; }

/* ---------- Android download block ---------- */
.dl { display: grid; gap: 12px; justify-items: start; }
.dl-meta { font-size: var(--step--1); color: var(--ink-2); }
.install { border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); }
.install summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.install summary::-webkit-details-marker { display: none; }
.install summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s var(--ease); flex: none; margin-top: -4px; }
.install[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.install > :not(summary) { margin: 0 18px 16px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-ink); font: 600 var(--step--1)/1 var(--body); }
.install code { word-break: break-all; font-size: .85em; }

/* ---------- screenshot frames ---------- */
.shot {
  border-radius: 14px; overflow: hidden; background: #241914;
  box-shadow: var(--shadow-lg); border: 1px solid color-mix(in srgb, var(--chocolate) 30%, transparent);
}
.shot img { width: 100%; }
.shot--window { padding-top: 26px; position: relative; }
.shot--window::before {
  content: ""; position: absolute; top: 9px; left: 14px; width: 8px; height: 8px; border-radius: 50%;
  background: #5B4334; box-shadow: 14px 0 0 #5B4334, 28px 0 0 #5B4334;
}
.phone {
  width: 100%; max-width: 300px; border-radius: 36px; padding: 10px; background: #120C09;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone img { border-radius: 27px; width: 100%; }
.phones { display: flex; gap: 24px; justify-content: center; align-items: flex-start; }
.phones .phone:nth-child(2) { margin-top: 56px; }
@media (max-width: 599px) { .phones { gap: 14px; } .phone { border-radius: 26px; padding: 7px; } .phone img { border-radius: 20px; } .phones .phone:nth-child(2) { margin-top: 32px; } }

/* app gallery: tabs */
.gallery { display: grid; gap: 28px; }
.gallery-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gallery-tabs button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; white-space: nowrap;
  font: 600 0.875rem/1 var(--body); padding: 12px 18px; border-radius: 999px; min-height: 44px; transition: all .2s;
}
.gallery-tabs button:hover { border-color: var(--line-strong); color: var(--ink); }
.gallery-tabs button[aria-selected="true"] { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.gallery-panel[hidden] { display: none; }
.gallery-panel figure { display: grid; gap: 24px; }
.gallery-panel figcaption { text-align: center; color: var(--ink-2); max-width: 44em; margin-inline: auto; }
.gallery-panel figcaption strong { color: var(--ink); }
@media (max-width: 599px) {
  .gallery-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .gallery-tabs::-webkit-scrollbar { display: none; }
}

/* ---------- figures ---------- */
.figure { display: grid; gap: 12px; }
.figure figcaption { font-size: var(--step--1); color: var(--ink-3); }
.frame { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.frame--stage { background: radial-gradient(120% 90% at 50% 30%, var(--stage-hi), var(--stage-lo)); border: 0; }
.frame--cad { background: #F2F3F4; border-color: transparent; }
.frame img { width: 100%; }
.mosaic { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mosaic .wide { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .mosaic { gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mosaic .wide { grid-column: span 2; grid-row: span 2; }
  .mosaic .wide .frame, .mosaic .wide img { height: 100%; object-fit: cover; }
}

/* ---------- interactive 3D ---------- */
.viewer3d { position: relative; aspect-ratio: 4 / 5; }
.viewer3d iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer3d .poster { position: absolute; inset: 0; }
.viewer3d .load3d { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: var(--shadow-md); }
.viewer3d.is-live .poster, .viewer3d.is-live .load3d { display: none; }
@media (min-width: 600px) { .viewer3d { aspect-ratio: 4 / 3; } }
@media (min-width: 1024px) { .viewer3d { aspect-ratio: 16 / 10; } }
@media (min-width: 1600px) { .viewer3d { aspect-ratio: 16 / 9; } }
.viewer3d .poster img { object-fit: contain; }

/* ---------- abilities ---------- */
.abilities { display: flex; flex-wrap: wrap; gap: 10px; }
.ability {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font: 600 0.9375rem/1 var(--body); color: var(--ink);
}
.ability svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.ability--dev { color: var(--ink-2); border-style: dashed; background: transparent; }
.ability--dev svg { color: var(--soon); }
.ability--dev small { font: 500 0.75rem/1 var(--body); color: var(--ink-3); }

/* ---------- specs ---------- */
.specs { display: grid; border-top: 1px solid var(--line); }
.spec { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 600 0.75rem/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 0; color: var(--ink); }
@media (min-width: 600px) { .spec { grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; } .spec dt { padding-top: 3px; } }
@media (min-width: 1024px) { .specs { grid-template-columns: 1fr 1fr; column-gap: 56px; } .spec { grid-template-columns: 160px 1fr; } }
@media (min-width: 1600px) { .specs { column-gap: 80px; } .spec { grid-template-columns: 190px 1fr; } }

/* ---------- build progress ---------- */
.progress { list-style: none; display: grid; gap: 0; counter-reset: step; }
.progress li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding-bottom: 28px; }
.progress li::before {
  counter-increment: step; content: counter(step);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  font: 700 0.875rem/1 var(--body); background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink-3);
}
.progress li::after { content: ""; position: absolute; left: 17.5px; top: 36px; bottom: 0; width: 1px; background: var(--line-strong); }
.progress li:last-child::after { display: none; }
.progress li:last-child { padding-bottom: 0; }
.progress li.done::before { content: ""; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--ok); }
.progress li.now::before { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); }
.progress li.done::after { background: var(--ok); }
.progress h3 { font: 600 var(--step-1)/1.3 var(--body); letter-spacing: -0.005em; color: var(--ink); padding-top: 6px; }
.progress p { color: var(--ink-2); margin-top: 4px; }
.progress .state { margin-left: 8px; vertical-align: 2px; }
@media (min-width: 1024px) {
  .progress--h { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 24px; }
  .progress--h li { grid-template-columns: 1fr; gap: 14px; padding: 0; }
  .progress--h li::after { left: 44px; right: -20px; top: 17.5px; bottom: auto; width: auto; height: 1px; }
  .progress--h li:last-child::after { display: none; }
  .progress--h h3 { padding-top: 0; }
}

/* ---------- updates ---------- */
.updates { list-style: none; display: grid; gap: 0; }
.update { display: grid; gap: 10px; padding: 28px 0; border-top: 1px solid var(--line); }
.update:last-child { border-bottom: 1px solid var(--line); }
.update-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.update time { font: 600 0.875rem/1 var(--body); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.update h3 { font-size: var(--step-2); line-height: 1.2; }
.update p { color: var(--ink-2); max-width: 44em; }
.update a.more { font-weight: 600; }
@media (min-width: 1024px) {
  .update { grid-template-columns: 200px minmax(0, 1fr); column-gap: 48px; padding: 36px 0; }
  .update-meta { flex-direction: column; align-items: flex-start; gap: 12px; grid-row: span 3; padding-top: 6px; }
}
@media (min-width: 1600px) { .update { grid-template-columns: 240px minmax(0, 1fr); column-gap: 72px; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; white-space: nowrap;
  font: 600 0.875rem/1 var(--body); padding: 11px 16px; border-radius: 999px; min-height: 42px;
}
.filters button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.latest { display: grid; gap: 16px; }
@media (min-width: 1024px) { .latest { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.latest .card time { font: 600 0.8125rem/1 var(--body); color: var(--ink-3); }
.latest .card .card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* ---------- privacy band & CTA ---------- */
.band { background: var(--chocolate); color: #F6EADB; border-radius: var(--r-xl); padding: 48px 28px; position: relative; overflow: hidden; }
.band h2, .band h3 { color: #FBF0E0; }
.band .eyebrow { color: #E7AA80; }
.band p, .band li { color: #D9C3AD; }
.band .ticks strong { color: #FBF0E0; }
.band .ticks li::before { background-color: rgba(231, 170, 128, .18); }
.band a:not(.btn) { color: #F3C9A4; }
.band .btn--primary { background: #F3DDBF; color: #2E2019; }
.band .btn--primary:hover { background: #F8E7D0; }
.band .btn--ghost { color: #FBF0E0; border-color: rgba(243, 221, 191, .35); }
.band .btn--ghost:hover { background: rgba(243, 221, 191, .08); border-color: rgba(243, 221, 191, .6); }
@media all { :root:not([data-theme="light"]) .band { background: #251A14; box-shadow: inset 0 0 0 1px #3A2A20; } }
.band-grid { display: grid; gap: 32px; position: relative; }
@media (min-width: 600px) { .band { padding: 64px 48px; } }
@media (min-width: 1024px) { .band { padding: 88px 80px; } .band-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; } }
@media (min-width: 1600px) { .band { padding: 112px 112px; } }
.band-logo { position: absolute; right: -60px; bottom: -80px; width: 340px; opacity: .06; transform: rotate(-12deg); pointer-events: none; }
.cta { text-align: center; display: grid; gap: 24px; justify-items: center; }
.cta img.cta-logo { width: 88px; height: 88px; border-radius: 24px; box-shadow: var(--shadow-md); }

/* ---------- prose (privacy, long text) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--step-3); margin: 56px 0 16px; }
.prose p, .prose ul { margin: 0 0 16px; color: var(--ink-2); }
.prose ul { padding-left: 22px; display: grid; gap: 10px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 28px; color: var(--ink); }
.doc-layout { display: grid; gap: 40px; }
.toc { display: none; }
@media (min-width: 1024px) {
  .doc-layout { grid-template-columns: 240px minmax(0, 720px); gap: 80px; }
  .toc { display: block; position: sticky; top: 108px; align-self: start; }
  .toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
  .toc a { display: block; padding: 7px 0 7px 18px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-size: var(--step--1); }
  .toc a:hover { color: var(--ink); border-left-color: var(--line-strong); }
  .toc .toc-title { font: 600 0.75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
}
@media (min-width: 1600px) { .doc-layout { grid-template-columns: 280px minmax(0, 760px); gap: 120px; } .prose { max-width: 760px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: grid; gap: 14px; justify-items: start; max-width: 360px; }
.footer-brand p { color: var(--ink-2); font-size: var(--step--1); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-cols h2 { font: 600 0.75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-cols ul { list-style: none; display: grid; gap: 10px; }
.footer-cols a { color: var(--ink-2); text-decoration: none; font-size: var(--step--1); }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-base { display: grid; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-3); }
.footer-base a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-base a:hover { color: var(--ink); }
@media (min-width: 600px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px; }
  .footer-base { grid-template-columns: 1fr auto; }
}

/* ---------- 404 ---------- */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.lost .container { display: grid; gap: 20px; justify-items: center; }
.lost img { width: 120px; height: 120px; border-radius: 30px; box-shadow: var(--shadow-md); transform: rotate(-8deg); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.hero .stage-wrap { animation: rise 1.1s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- print ---------- */
@media print { .site-header, .site-footer, .stage-controls, .menu-btn { display: none; } body { background: #fff; color: #000; } }

/* ---------- rhythm fixes ---------- */
.section--tight + .section { padding-top: calc(var(--section) * .6); }
.latest .card p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
figure { margin: 0; }
.card > .tag, .card > .pill, .card > .card-icon { justify-self: start; }
.frame--cad { background: #FEFEFE; }
.viewer3d .load3d { top: auto; bottom: 28px; transform: translateX(-50%); }
@media (min-width: 1024px) { .viewer3d .load3d { bottom: 40px; } }
.progress li { align-content: start; }
.page-hero--split .container { gap: 40px; }
.page-hero-copy { display: grid; gap: 20px; justify-items: start; }
.page-hero-media { width: 100%; box-shadow: var(--shadow-md); }
@media (min-width: 1024px) {
  .page-hero--split .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
}
@media (min-width: 1600px) { .page-hero--split .container { gap: 112px; } }
@media (max-width: 599px) { .card { padding: 24px; } .way-body { padding: 22px 24px 24px; } }
@media (min-width: 600px) and (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ways > :last-child:nth-child(odd) { grid-column: auto; }
  .hero .stage-wrap { width: 100%; max-width: 560px; justify-self: center; }
  .split-media .phones { max-width: 560px; margin-inline: auto; }
}
.stage picture.stage-img img, .poster picture img { width: 100%; height: 100%; object-fit: cover; }
.viewer3d .poster picture img { object-fit: contain; }
picture { display: block; }
.mosaic .wide picture { height: 100%; }
.display em, .h2 em { margin-right: .06em; }

/* ---------- Home hero: short enough that the scroll stage below peeks into the first screen ---------- */
/* 300px = the 76px header + the 56px hero top and bottom padding + the 58px screen switcher + 54px of the stage below */
@media (min-width: 1024px) {
  .hero .stage-wrap { width: min(100%, calc(100vh - 300px)); width: min(100%, calc(100svh - 300px)); justify-self: center; }
}

/* ---------- Inside Spike scroll story (exploded-view mode="scroll" 1.4.0, layout="minimal"), on Home and Inside Spike ----------
   The stage is full-screen and edge to edge. While it is pinned (the component sets data-pinned) the site header
   slides away, and it comes back as the section ends. */
.details { position: relative; }
.details exploded-view {
  display: block;
  --ev-font: var(--body);
  --ev-display-font: var(--display);
  --ev-sticky-top: 0px;
}
.site-header { transition: border-color .3s, transform .4s cubic-bezier(.2, .7, .2, 1); }
body:has(.details exploded-view[data-pinned]) .site-header:not(.menu-open) { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
/* before the component arrives: hold one full screen with the poster on the stage colour */
.details exploded-view:not(:defined) {
  display: grid; place-items: center; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 480px;
  background: radial-gradient(120% 100% at 62% 38%, #3B2B21, #120D0A);
}
.details exploded-view[stage="none"]:not(:defined) { background: none; }
.details exploded-view[stage="light"]:not(:defined) { background: radial-gradient(120% 100% at 62% 38%, #FFFAF2, #E8D2B6); }
.details exploded-view:not(:defined) > img { width: min(78vh, 88vw); width: min(78svh, 88vw); height: auto; aspect-ratio: 1; object-fit: contain; }
/* 1.4.0 layout="minimal": the poster is a tight render of the whole model, contained in the same centred box the 3D
   fills (84 % of the width, 82 % of the height), so the swap to 3D does not move him */
.details exploded-view[layout="minimal"]:not(:defined) > img { width: 84vw; height: 82vh; height: 82svh; aspect-ratio: auto; object-fit: contain; }
.details-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px;
  padding-block: 24px 8px; text-align: center;
}
.details-foot p { max-width: 40em; }
@media (min-width: 1024px) { .details-foot { padding-block: 32px 8px; } }
