/* Sprint holding page.
   Sections: tokens and base, background, layout, wordmark and dot, copy,
   buttons, sign-in link, footer, latest-work drawer, get-started form,
   hover ring, responsive, reduced motion. */

@font-face {
  font-family: 'Google Sans';
  src: url('/assets/fonts/GoogleSans-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:         #FFFFFF;
  --ink-2:       rgba(255,255,255,0.78);
  --muted:       rgba(255,255,255,0.55);
  --muted-2:     rgba(255,255,255,0.38);
  --paper:       #000000;
  --paper-2:     #0B0B0F;
  --line:        rgba(255,255,255,0.12);
  --accent:      #4D8FFF;
  --accent-deep: #7AABFF;
  --sans:        'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:        ui-monospace, SFMono-Regular, 'JetBrains Mono', Menlo, Consolas, monospace;
  --ease:        cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; overscroll-behavior: none; }
body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Background ----------
   Two stacked scene layers so a new scene can crossfade over the old one. */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--paper); }
.bg-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; will-change: opacity; contain: strict; }
.bg-layer.is-on { opacity: 1; }
.bg-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bg-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  opacity: 0.09;
  mix-blend-mode: overlay;
}
.is-lite .bg-grain { display: none; } /* a blended full-screen layer is repainted every frame on WebKit */
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(0,0,0,0) 35%, rgba(0,0,0,0.45) 100%);
}

/* ---------- Layout ----------
   main fills the viewport and the footer floats over its bottom edge, so the
   logo is centred on the screen. The dot flies over the footer (z-index),
   while main itself passes pointer events through to the footer links. */
main {
  position: relative; z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px;
  pointer-events: none;
  overflow-x: clip;
}
.mark {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: auto;
  opacity: 0;
}
.is-ready .mark { animation: mark-in 1.1s var(--ease) both; }
.mark::before { /* halo that lifts the logo off the scene */
  content: ""; position: absolute; inset: -30% -18% -34%; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,0.55), rgba(0,0,0,0));
  pointer-events: none;
}
@keyframes mark-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Wordmark and dot ---------- */
.wordmark {
  width: min(448px, 64vw); height: auto; display: block; margin: 0 auto;
  overflow: visible;   /* the dot travels outside the SVG box */
  touch-action: none;  /* WebKit ignores touch-action on SVG children */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.sprint-wm { fill: var(--ink); font-family: var(--sans); font-size: 210px; font-weight: 800; }
.sw-t1 { letter-spacing: -.04em; }
.sw-t2 { letter-spacing: -.03em; }

.swoosh { fill: var(--accent); clip-path: inset(-10% 100% -10% 0); }
.is-ready .swoosh { animation: swoosh-in 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) 1s both; }
@keyframes swoosh-in {
  from { clip-path: inset(-10% 100% -10% 0); }
  to   { clip-path: inset(-10% 0 -10% 0); }
}

.sprint-dot {
  fill: var(--ink);
  cursor: grab; pointer-events: all; touch-action: none;
  transform-box: fill-box; transform-origin: 50% 100%;
}
.sprint-dot.is-held { cursor: grabbing; }
.sprint-dot:focus { outline: none; }
.sprint-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.sprint-dot.is-entering { transform: translate(0, -58vh); }
.is-ready .sprint-dot.is-entering { animation: sprint-dot-bounce-in 2.1s linear 0.3s both; }
.sprint-dot.is-hopping { animation: sprint-dot-hop 0.55s cubic-bezier(0.3, 0, 0.2, 1) both; }
/* In flight the dot is drawn by .dot-fly, a fixed twin above the whole page,
   so nothing can hide it. The SVG dot stays in place, transparent, to keep
   taking the pointer. */
.sprint-dot.is-mirrored { opacity: 0; }
.dot-fly {
  position: fixed; left: 0; top: 0; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink);
  transform-origin: 50% 100%; will-change: transform;
  pointer-events: none; display: none;
}
@keyframes sprint-dot-hop {
  0%   { transform: translate(0, 0) scale(1); }
  15%  { transform: translate(0, 0) scale(1.25, 0.75); }
  50%  { transform: translate(0, -26px) scale(0.95, 1.05); }
  85%  { transform: translate(0, 0) scale(1.1, 0.9); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes sprint-dot-bounce-in {
  0%   { transform: translate(0, -58vh) scale(1);          animation-timing-function: cubic-bezier(0.55, 0, 1, 1); }
  30%  { transform: translate(0, 26px) scale(1);           animation-timing-function: ease-out; }
  33%  { transform: translate(0, 26px) scale(1.34, 0.66);  animation-timing-function: ease-in; }
  37%  { transform: translate(0, 26px) scale(1, 1);        animation-timing-function: cubic-bezier(0, 0, 0.5, 1); }
  55%  { transform: translate(0, -36px) scale(1);          animation-timing-function: cubic-bezier(0.5, 0, 1, 1); }
  71%  { transform: translate(0, 26px) scale(1);           animation-timing-function: ease-out; }
  73%  { transform: translate(0, 26px) scale(1.18, 0.82);  animation-timing-function: ease-in; }
  77%  { transform: translate(0, 26px) scale(1, 1);        animation-timing-function: cubic-bezier(0, 0, 0.35, 1); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ---------- Copy ---------- */
.tagline { /* tracked capitals justified to the wordmark's width */
  margin: 14px auto 0;
  width: min(448px, 64vw);
  font-weight: 500;
  font-size: clamp(9.5px, 1.3vw, 11.5px);
  line-height: 1.6;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: justify;
  text-align-last: justify;
  white-space: nowrap;
  opacity: 0;
}
.is-ready .tagline { animation: mark-in 1.1s var(--ease) 0.35s both; }
.tagline .t { white-space: nowrap; }
.tagline .sep { color: var(--accent); }
.tagline-sub {
  margin: 14px auto 0;
  max-width: 64ch;
  text-wrap: balance;
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--muted);
  text-align: center;
  opacity: 0;
}
.is-ready .tagline-sub { animation: mark-in 1.1s var(--ease) 0.55s both; }

/* ---------- Buttons ---------- */
.cta-row { margin: 26px auto 0; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.cta {
  margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px 13px 24px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none;
  opacity: 0;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .3s ease, transform .08s ease;
}
.is-ready .cta { animation: cta-power 1.5s var(--ease) 0.75s both; }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta svg { width: 16px; height: 16px; }
.cta--ghost { background: rgba(255,255,255,0.05); color: var(--ink); border-color: rgba(255,255,255,0.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.is-ready .cta--ghost { animation-delay: 0.9s; }
.cta--ghost svg { width: 15px; height: 15px; opacity: 0.85; }
.cta--ghost:hover svg { opacity: 1; }
@keyframes cta-power { /* rise in dim, flare blue, settle */
  0%   { opacity: 0; transform: translateY(8px) scale(0.97); filter: brightness(0.3); box-shadow: 0 0 0 0 rgba(77,143,255,0); }
  40%  { opacity: 1; transform: none; filter: brightness(1.3); box-shadow: 0 0 0 1px rgba(77,143,255,0.7), 0 0 44px 6px rgba(77,143,255,0.5); }
  100% { opacity: 1; transform: none; filter: brightness(1); box-shadow: 0 0 0 0 rgba(77,143,255,0); }
}

/* ---------- Sign-in link ----------
   The hero's glass button, shrunk and parked in the top right: same pill,
   same frosted fill and hover ring (it carries .cta.cta--ghost), just
   smaller type and tighter padding so it reads as a utility link rather
   than a third call to action. Enters after both hero buttons.
   Selector is .cta.portal so the fixed position outweighs the position:
   relative the hover ring gives every .cta further down the file. */
.cta.portal {
  position: fixed; z-index: 3;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  padding: 8px 14px 8px 16px;
  gap: 8px;
  font-size: 13px;
}
.is-ready .portal { animation-delay: 1.05s; }
.portal svg { width: 13px; height: 13px; transition: transform 200ms var(--ease), opacity 200ms ease; }
.portal:hover svg { transform: translateX(2px); }

/* ---------- Footer ---------- */
footer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 30px 24px 36px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
  color: var(--muted); font-size: 13.5px;
}
footer .contact a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line); }
footer .contact a:hover { color: var(--ink); border-color: var(--accent); }
.brand-group { display: inline-flex; align-items: center; gap: 10px; opacity: 0.62; text-decoration: none; transition: opacity 200ms ease; }
.brand-group:hover { opacity: 1; }
.brand-group__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.brand-group img { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }
.legal {
  margin-top: -4px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  column-gap: 10px; row-gap: 4px;
  color: var(--muted-2); font-size: 12px; letter-spacing: 0.01em;
}
.legal .contact { color: var(--muted); }
.legal--group { margin-top: -12px; }
.legal-sep { color: var(--muted-2); }

/* ---------- Latest work drawer ---------- */
.lw { position: fixed; inset: 0; z-index: 20; display: none; }
.lw.is-open { display: block; }
.lw-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); animation: lw-fade .3s ease both; }
.lw-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%);
  display: flex; flex-direction: column;
  background: rgba(11,11,15,0.84); backdrop-filter: blur(28px) saturate(1.2); -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border-left: 1px solid var(--line); box-shadow: -40px 0 120px -40px rgba(0,0,0,0.85);
  animation: lw-in .42s var(--ease) both;
}
.lw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 18px 32px; }
.lw-eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.lw-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.lw-sub { margin: 8px 0 0; max-width: 40ch; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lw-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.lw-card {
  flex: none;
  display: block; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,0.03);
  color: inherit; text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .25s ease;
  animation: lw-card .55s var(--ease) both; animation-delay: calc(0.1s + var(--i) * 0.06s);
}
.lw-card:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.lw-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lw-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0F0F14; border-bottom: 1px solid var(--line); }
.lw-shot img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .7s var(--ease); animation: fade-in .5s ease both; }
.lw-card:hover .lw-shot img { transform: scale(1.03); }
.lw-shot.is-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.lw-mono { position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; font-weight: 800; letter-spacing: -0.04em; color: rgba(255,255,255,0.1); }
.lw-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px 15px; }
.lw-name { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.lw-what { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.lw-domain { display: block; margin-top: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; color: var(--muted-2); }
.lw-arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: background .2s ease, color .2s ease, border-color .2s ease; }
.lw-arrow svg { width: 15px; height: 15px; }
.lw-card:hover .lw-arrow { color: var(--ink); }
.lw-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 32px 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.lw-start { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; color: var(--ink-2); font: inherit; font-weight: 600; cursor: pointer; }
.lw-start:hover { color: var(--ink); }
.lw-start svg { width: 14px; height: 14px; }
@keyframes lw-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lw-in { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }
@keyframes lw-card { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Get started form ----------
   One question per screen. Number keys pick an option, Enter continues,
   Escape closes. */
main, footer { transition: opacity .45s ease; }
.gs-is-open main, .gs-is-open footer { opacity: 0; pointer-events: none; }
.gs { position: fixed; inset: 0; z-index: 20; display: none; background: rgba(0,0,0,0.35); }
.gs.is-open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gs-panel {
  position: relative; min-width: 0; height: 100%;
  display: flex; flex-direction: column;
  background: var(--paper-2); color: var(--ink);
  border-right: 1px solid var(--line);
  animation: gs-in .38s var(--ease) both;
}
.gs-progress { height: 3px; background: rgba(255,255,255,0.08); }
.gs-progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .35s ease; }
.gs-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px 0 40px; }
.gs-logo { width: 96px; height: auto; display: block; overflow: visible; }
.gs-close { width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .3s ease; }
.gs-close:hover { color: var(--ink); }
.gs-body { flex: 1; overflow-y: auto; padding: 28px 40px 12px; display: flex; flex-direction: column; justify-content: center; }
.gs-body > .gs-step { width: 100%; max-width: 560px; }
.gs-step { animation: gs-step .28s var(--ease) both; }
.gs-step.is-back { animation-name: gs-step-back; }
.gs-eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.gs-q { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.gs-help { margin: 0 0 22px; max-width: 52ch; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.gs-q2 { margin: 26px 0 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.gs-note { min-height: 20px; margin: 8px 0 0; font-size: 13px; color: #FF8585; }

.gs-options { display: grid; gap: 10px; }
.gs-opt {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--sans); font-size: 15.5px; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.gs-opt:hover { background: rgba(255,255,255,0.06); }
.gs-opt.is-on { border-color: var(--accent); background: rgba(77,143,255,0.12); }
.gs-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gs-opt .ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--ink-2); transition: border-color .15s ease, color .15s ease, background .15s ease; }
.gs-opt .ic svg { width: 19px; height: 19px; display: block; }
.gs-opt .t { flex: 1; min-width: 0; }
.gs-opt .k { flex: none; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted-2); }
.gs-opt:hover .ic { color: var(--ink); border-color: rgba(255,255,255,0.3); }
.gs-opt.is-on .ic { border-color: var(--accent); color: var(--accent); background: rgba(77,143,255,0.14); }
.gs-opt.is-on .k { border-color: rgba(77,143,255,0.5); color: var(--accent); }

.gs-field { display: block; margin: 0 0 14px; }
.gs-field span { display: block; margin: 0 0 6px; font-size: 12.5px; letter-spacing: .01em; color: var(--muted); }
.gs-field input, .gs-field textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.04); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  font-family: var(--sans); font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gs-field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.gs-field input::placeholder, .gs-field textarea::placeholder { color: var(--muted-2); }
.gs-field input:focus, .gs-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,143,255,0.18); }
.gs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.gs-sugs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.gs-sug {
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--ink-2);
  font-family: var(--sans); font-size: 13.5px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.gs-sug:hover { color: var(--ink); }
.gs-sug.is-on { border-color: var(--accent); background: rgba(77,143,255,0.12); color: var(--ink); }
.gs-sug-none { padding: 8px 2px; font-size: 13px; color: var(--muted); }

/* Site scan results */
.gs-scan { padding: 26px 0; }
.gs-spin { display: block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.gs-stack { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 12px; }
.gs-stack-l { flex: none; width: 128px; padding-top: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.gs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.gs-chip img { width: 18px; height: 18px; display: block; }
.gs-chips--rest { align-items: center; }
.gs-chips--rest .gs-chip { padding: 5px 10px 5px 8px; font-size: 12.5px; color: var(--muted); background: transparent; }
.gs-chips--rest .gs-chip img { width: 15px; height: 15px; opacity: .85; }
.gs-primary { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 14px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.gs-primary img { width: 26px; height: 26px; display: block; }
.gs-also { margin-right: 4px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }

.gs-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 40px 24px; border-top: 1px solid var(--line); }
.gs-back { padding: 8px 4px; background: none; border: 0; color: var(--muted); font-family: var(--sans); font-size: 14px; cursor: pointer; }
.gs-back:hover { color: var(--ink); }
.gs-hint { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted-2); }
.gs-next {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 20px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.gs-next:disabled { opacity: .6; cursor: default; }
.gs-done { text-align: center; padding: 20px 0; }
.gs-done .tick { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: rgba(95,220,141,0.12); border: 1px solid rgba(95,220,141,0.35); }

/* Right half: the scene shows through, with a caption and a browser-window
   box for the visitor's homepage screenshot. */
.gs-side { position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; padding: 40px 48px; pointer-events: none; }
.gs-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 45%); }
.gs-caption { position: relative; margin: 0; max-width: 16ch; font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; text-shadow: 0 2px 24px rgba(0,0,0,0.5); animation: gs-step .4s var(--ease) both; }
.gs-shot-wrap { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.gs-shot { position: relative; width: min(100%, 560px); overflow: hidden; border-radius: 14px; background: #0F0F14; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); animation: gs-step .4s var(--ease) both; }
.gs-shot-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08); }
.gs-shot-dots { display: inline-flex; gap: 6px; }
.gs-shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.gs-shot-url { flex: 1; padding: 5px 10px; border-radius: 6px; background: rgba(0,0,0,0.35); font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-shot-body { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0B0B0F; }
.gs-shot-body img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; animation: fade-in .5s ease both; }
.gs-shot-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.gs-shot-loading::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 70%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.gs-shot-loading .gs-spin { position: relative; }
.gs-shot-none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); font-size: 12.5px; }

@keyframes gs-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes gs-step { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes gs-step-back { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hover ring ----------
   Every button shares one hover: a blue stroke that draws itself clockwise
   from the top. A conic gradient on a pseudo-element, masked to a thin ring,
   with the sweep angle animated as a registered custom property. Both ends
   of the stroke fade over --head degrees, which shrinks to nothing as the
   ring closes so it ends solid. */
@property --ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --head { syntax: '<angle>'; inherits: false; initial-value: 60deg; }
.cta, .gs-close, .gs-next, .gs-opt, .gs-sug, .lw-arrow { position: relative; }
.cta::after, .gs-close::after, .gs-next::after, .gs-opt::after, .gs-sug::after, .lw-arrow::after {
  content: ""; position: absolute; inset: -1px; z-index: 1;
  padding: 2px; border-radius: inherit;
  --ring: 0deg; --head: 60deg;
  background: conic-gradient(from -90deg,
    transparent 0deg,
    var(--accent) min(var(--head), calc(var(--ring) / 2)),
    var(--accent) max(calc(var(--ring) - var(--head)), calc(var(--ring) / 2)),
    transparent var(--ring));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: --ring .65s var(--ease), --head .2s ease .5s, opacity .3s ease;
}
.cta:hover::after, .gs-close:hover::after, .gs-next:hover::after, .gs-opt:hover::after, .gs-sug:hover::after,
.lw-arrow:hover::after, .lw-card:hover .lw-arrow::after { --ring: 360deg; --head: 0deg; opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cta-row { margin-top: 20px; gap: 8px; }
  .cta { font-size: 14.5px; padding: 12px 18px 12px 20px; }
  .gs.is-open { grid-template-columns: minmax(0, 1fr); }
  .gs-side, .gs-shot { display: none; }
  .gs-panel { border-right: 0; }
  .gs-head { padding: 16px 18px 0 20px; }
  .gs-body { padding: 22px 20px 8px; justify-content: flex-start; }
  .gs-foot { padding: 14px 20px 20px; }
  .gs-row { grid-template-columns: 1fr; }
  .gs-hint { display: none; }
}
@media (max-width: 720px) {
  .legal-sep { display: none; }
}
@media (max-width: 640px) {
  .portal { font-size: 12px; padding: 7px 12px 7px 14px; gap: 7px; }
  .tagline { white-space: normal; text-align: center; text-align-last: center; letter-spacing: 0.18em; font-size: 10px; line-height: 1.8; margin-top: 18px; }
  .tagline-sub { font-size: 13px; margin-top: 12px; padding: 0 8px; }
  footer { gap: 20px; padding: 28px 20px calc(30px + env(safe-area-inset-bottom, 0px)); }
  .legal { line-height: 1.6; row-gap: 8px; }
  .legal .contact { display: block; width: 100%; margin-bottom: 2px; }
  .legal--group { margin-top: -6px; }
  .lw-panel { width: 100%; }
  .lw-head { padding: 22px 18px 14px 22px; }
  .lw-list { padding: 4px 22px 24px; }
  .lw-foot { padding: 12px 22px 20px; }
  .gs-opt .k { display: none; }
  .gs-stack { flex-direction: column; gap: 6px; }
  .gs-stack-l { width: auto; padding-top: 0; }
}
@media (max-height: 640px) { /* phone landscape: footer flows under the logo */
  main { min-height: 0; flex: 1; padding-bottom: 48px; }
  footer { position: relative; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bg-layer { transition: none; }
  .is-ready .mark, .is-ready .tagline, .is-ready .tagline-sub, .is-ready .cta, .is-ready .swoosh, .is-ready .sprint-dot.is-entering,
  .sprint-dot.is-hopping, .lw-panel, .lw-backdrop, .lw-card, .lw-shot img, .gs-panel, .gs-step, .gs-caption { animation: none; }
  .lw-card, .lw-shot img { transition: none; }
  .is-ready .mark, .is-ready .tagline, .is-ready .tagline-sub, .is-ready .cta { opacity: 1; }
  .is-ready .swoosh { clip-path: inset(-10% 0 -10% 0); }
  .is-ready .sprint-dot.is-entering { transform: none; }
  .portal svg { transition: none; }
  .cta::after, .gs-close::after, .gs-next::after, .gs-opt::after, .gs-sug::after, .lw-arrow::after { transition: opacity .2s ease; }
}
