/* ORCA Motorsport: black, white and brand blue, under water.
   Colours, fonts and effects are copied from ORCA Paint (frontend/src/index.css) so every site matches. */

@font-face { font-family: "Chakra Petch"; font-weight: 400; font-display: swap; src: url("../fonts/chakra-petch-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("../fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Variable"; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "JetBrains Mono Variable"; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"); }

:root {
  /* ---- Theme: every colour, font and corner on the site is set here and nowhere else. ---- */
  --abyss: rgb(var(--abyss-rgb));
  --ink-950: rgb(var(--ink-950-rgb));
  --ink-900: rgb(var(--ink-900-rgb));
  --ink-850: #0b1521;
  --ink-800: #0f1b2a;
  --ink-700: #152437;
  --line: rgb(var(--line-rgb));
  --line-strong: #24364b;
  --field-line: #566b84; /* form field edges: 3:1 against the dark background (WCAG 1.4.11) */
  --fg: #eef4fa;
  --muted: #94a3b6;
  --subtle: #7d8da3;
  --brand: rgb(var(--brand-rgb));
  --brand-strong: #0b86dc;
  --brand-soft: rgb(var(--brand-soft-rgb));
  --brand-ink: #02121e;
  --danger: #ff5a5f;
  --warn: #f5b84a;
  --ok: #3ccf8e;
  --ok-soft: #6ee7a8;      /* "Free" in the credits table */
  --brand-hover: #3db0ff;  /* primary button hover */
  /* The sea behind the page, top to bottom (ends in --abyss). */
  --ocean-top: #06111d;
  --ocean-mid: #040a12;
  --ocean-deep: #030609;
  /* Colours that are also used see-through, written once as R, G, B (#169ffb = 22, 159, 251).
     Edit them here: the plain token above and every rgba(var(--brand-rgb), 0.5) follow. */
  --brand-rgb: 22, 159, 251;
  --brand-soft-rgb: 143, 208, 255;
  --abyss-rgb: 2, 4, 6;
  --ink-950-rgb: 4, 7, 11;
  --ink-900-rgb: 8, 16, 26;
  --line-rgb: 23, 36, 51;

  --font-sans: "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Chakra Petch", "Inter Variable", ui-sans-serif, sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, monospace;
  --radius: 6px; /* was 2px: a touch softer, still squared-off */
  --wrap: 1680px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background:
    radial-gradient(120% 60% at 50% -12%, rgba(var(--brand-rgb), 0.16), transparent 60%),
    linear-gradient(180deg, var(--ocean-top) 0%, var(--ocean-mid) 38%, var(--ocean-deep) 70%, var(--abyss) 100%);
  background-color: var(--abyss);
  background-attachment: fixed;
  font-size: 106.25%;
  scroll-behavior: smooth;
}
@media (min-width: 1280px) { html { font-size: 112.5%; } }
@media (min-width: 1800px) { html { font-size: 118.75%; } }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--fg);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  background: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in oklab, var(--brand) 45%, transparent); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }
main { position: relative; }
section { position: relative; scroll-margin-top: 5rem; }
.section { padding: 4rem 0; }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brand); }
.tag { display: inline-block; margin-right: 0.5rem; padding: 0.1rem 0.4rem; border: 1px solid rgba(var(--brand-rgb), 0.6); border-radius: var(--radius); }
.display {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  line-height: 1; letter-spacing: 0.02em; font-size: 3rem; margin-top: 1.25rem;
}
@media (min-width: 640px) { .display { font-size: 3.75rem; } }
@media (min-width: 1024px) { .display { font-size: 4.5rem; } }
.h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; line-height: 1.15; letter-spacing: 0.03em; font-size: 1.875rem; margin-top: 0.75rem; max-width: 40rem; }
@media (min-width: 640px) { .h2 { font-size: 2.25rem; } }
.h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem; }
.lead { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted); }
.body { margin-top: 1rem; max-width: 36rem; color: var(--muted); line-height: 1.65; }
.small { font-size: 0.875rem; line-height: 1.6; color: var(--muted); }
.caption { margin-top: 0.75rem; font-size: 0.75rem; color: var(--subtle); }
.glow-text { text-shadow: 0 0 40px rgba(var(--brand-rgb), 0.35); color: var(--brand-soft); }
.muted { color: var(--muted); }
.link { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Buttons, panels, fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; border-radius: var(--radius); padding: 0.625rem 1rem; cursor: pointer;
  font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s, transform 0.12s cubic-bezier(0.3, 0.7, 0.4, 1.5);
  min-height: 2.75rem; /* Fitts's law: 44px targets */
}
.btn:disabled { cursor: not-allowed; opacity: 0.4; }
.btn[hidden] { display: none; }
.btn-lg { padding: 0.875rem 2rem; font-size: 0.9rem; }
.btn-sm { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
.btn-primary {
  background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 0 0 1px rgba(var(--brand-soft-rgb), 0.25) inset, 0 10px 30px -12px rgba(var(--brand-rgb), 0.7);
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand-hover);
  box-shadow: 0 0 0 1px rgba(var(--brand-soft-rgb), 0.4) inset, 0 12px 40px -10px rgba(var(--brand-rgb), 0.85);
}
.btn-primary:active { background: var(--brand-strong); }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--fg); }
.btn-ghost:hover { border-color: rgba(var(--brand-rgb), 0.5); background: var(--ink-800); }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }

.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(var(--ink-900-rgb), 0.84); /* solid enough to need no backdrop blur over the moving ocean */
}
.panel-pad { padding: 1.5rem; }
.panel-brand { border-color: rgba(var(--brand-rgb), 0.5); }

.field {
  width: 100%; border: 1px solid var(--field-line); border-radius: var(--radius);
  background-color: var(--ink-900); padding: 0.625rem 0.75rem; font-size: 0.875rem; color: var(--fg);
  transition: border-color 0.15s;
}
.field::placeholder { color: var(--subtle); }
.field:hover { border-color: var(--subtle); }
.field:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 1px; }

.ticks { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.375rem 1.25rem; font-size: 0.875rem; color: var(--muted); }
.ticks li::before { content: "✓"; color: var(--ok); margin-right: 0.375rem; }

.chip { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.15rem 0.5rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--subtle); }
.chip-live::before { background: var(--ok); }
.chip-soon::before { background: var(--warn); }

/* ---------- Header ---------- */
.skip { position: absolute; left: -999px; top: 0.75rem; z-index: 50; padding: 0.5rem 0.75rem; border-radius: var(--radius); background: var(--brand); color: var(--brand-ink); }
.skip:focus { left: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid rgba(var(--line-rgb), 0.8);
  background: rgba(var(--ink-950-rgb), 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header-row { display: flex; height: 4rem; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-link img { height: 1.75rem; width: auto; }
@media (min-width: 640px) { .brand-link img { height: 2rem; } }
.main-nav { display: none; align-items: center; gap: 2rem; font-size: 0.875rem; }
@media (min-width: 900px) { .main-nav { display: flex; } }
.main-nav a { position: relative; padding: 0.25rem 0; color: var(--muted); transition: color 0.15s; }
.main-nav a:hover { color: var(--fg); }
.main-nav a[aria-current="page"] { color: var(--fg); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.15rem; height: 2px; background: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 640px) { .header-actions { gap: 0.75rem; } }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }
.hide-xs { display: none; }
@media (min-width: 420px) { .hide-xs { display: inline-flex; } }
.icon-btn { display: inline-flex; flex-shrink: 0; padding: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--ink-800); color: var(--fg); }
.icon-btn svg { width: 1.25rem; height: 1.25rem; }
.depth-bar { height: 1px; width: 0; background: rgba(var(--brand-rgb), 0.7); transition: width 0.15s; }

/* Signed-in account pill (filled in by account.js once shared sign-in is live). */
.account-pill {
  display: inline-flex; align-items: center; gap: 0.625rem; padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--ink-900); font-size: 0.875rem; cursor: pointer;
}
.account-pill:hover { border-color: rgba(var(--brand-rgb), 0.6); background: var(--ink-800); }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; color: var(--brand-ink);
}
.credits { border-radius: 999px; background: rgba(var(--brand-rgb), 0.15); padding: 0.125rem 0.5rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--brand-soft); }

/* Side menu */
.side-menu {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; max-height: none; width: min(22rem, 100vw); max-width: none;
  border: 0; border-left: 1px solid var(--line-strong); background: var(--ink-900); color: var(--fg); padding: 0;
}
.side-menu::backdrop { background: rgba(var(--abyss-rgb), 0.6); }
.side-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem; }
.side-head h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.side-body { padding: 1rem 0.75rem; }
.side-label { padding: 0 0.75rem 0.25rem; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.side-list { margin-bottom: 1rem; }
.side-list a { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem; border-radius: var(--radius); font-size: 0.875rem; color: var(--muted); }
.side-list a:hover { background: var(--ink-800); color: var(--fg); }
.side-list a[aria-current="page"] { background: rgba(var(--brand-rgb), 0.15); color: var(--fg); }
.side-list .soon { margin-left: auto; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--subtle); }
.side-buttons { display: grid; gap: 0.5rem; padding: 0 0.75rem; }

/* ---------- Ocean backdrop (the live background) ---------- */
.ocean { position: fixed; inset: 0; z-index: -10; overflow: hidden; pointer-events: none; }
.light-rays {
  position: absolute; left: -25%; top: -25%; height: 90vh; width: 150%;
  background:
    linear-gradient(100deg, transparent 20%, rgba(var(--brand-soft-rgb), 0.07) 24%, transparent 30%),
    linear-gradient(80deg, transparent 52%, rgba(var(--brand-soft-rgb), 0.05) 56%, transparent 62%),
    linear-gradient(95deg, transparent 70%, rgba(var(--brand-soft-rgb), 0.06) 73%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  transform-origin: 50% -20%;
  animation: sway 14s ease-in-out infinite alternate;
}
.caustics {
  position: absolute; left: 0; right: 0; top: 0; height: 70vh; opacity: 0.6;
  background-image:
    /* Soft glows drawn soft (no filter: blur, which made the browser re-blur this layer every frame). */
    radial-gradient(circle at 30% 40%, rgba(var(--brand-soft-rgb), 0.045) 0, rgba(var(--brand-soft-rgb), 0.018) 5px, transparent 11px),
    radial-gradient(circle at 70% 60%, rgba(var(--brand-soft-rgb), 0.032) 0, rgba(var(--brand-soft-rgb), 0.012) 4px, transparent 9px);
  background-size: 120px 90px, 90px 130px;
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  animation: drift 40s linear infinite;
}
.orca-swim { position: absolute; left: 0; animation: swim 150s linear infinite; will-change: transform; }
.orca-swim svg { color: var(--brand-soft); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: bob 9s ease-in-out infinite; }
.orca-1 { top: 34%; animation-delay: -40s; }
.orca-1 svg { width: clamp(220px, 24vw, 460px); opacity: 0.16; }
.orca-2 { top: 46%; animation-delay: -46s; }
.orca-2 svg { width: clamp(140px, 14vw, 270px); opacity: 0.13; animation-delay: -3s; }
.orca-3 { top: 72%; animation-duration: 210s; animation-delay: -120s; }
.orca-3 svg { width: clamp(170px, 17vw, 320px); opacity: 0.10; animation-delay: -6s; }

.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bubble {
  position: absolute; bottom: -1rem; border-radius: 50%;
  border: 1px solid rgba(var(--brand-soft-rgb), 0.4); background: rgba(var(--brand-soft-rgb), 0.1);
  animation: rise var(--rise-duration, 18s) linear infinite;
}
.tail-deco { position: absolute; right: -7rem; top: 2.5rem; width: 34rem; height: 34rem; opacity: 0.08; pointer-events: none; display: none; animation: bob 9s ease-in-out infinite; }
@media (min-width: 1280px) { .tail-deco { display: block; } }

.wave { display: block; width: 100%; height: 1.5rem; }

@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8% { opacity: var(--bubble-opacity, 0.5); }
  50% { transform: translate3d(var(--bubble-wobble, 12px), -55vh, 0); }
  92% { opacity: var(--bubble-opacity, 0.5); }
  100% { transform: translate3d(0, -110vh, 0); opacity: 0; }
}
@keyframes sway { from { transform: rotate(-3deg) translateX(-2%); } to { transform: rotate(3deg) translateX(2%); } }
@keyframes swim { from { transform: translateX(-40vw); } to { transform: translateX(130vw); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
@keyframes drift { from { background-position: 0 0, 0 0; } to { background-position: 600px 300px, -400px 500px; } }

/* ---------- Layouts ---------- */
.hero { overflow: hidden; }
.hero-grid { position: relative; display: grid; gap: 3rem; padding-top: 3.5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; padding-top: 5rem; padding-bottom: 6rem; }
}
.hero-shot { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 0 80px -30px rgba(var(--brand-rgb), 0.7); }
.hero-logo { height: 2.75rem; width: auto; margin-bottom: 0.5rem; }

.grid-3 { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-2 { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }

.offer { display: flex; flex-direction: column; padding: 1.75rem; transition: border-color 0.2s, transform 0.2s; }
.offer:hover { border-color: rgba(var(--brand-rgb), 0.5); transform: translateY(-2px); }
.offer-logo { height: 2rem; width: auto; align-self: flex-start; }
.offer .small { margin-top: 1rem; flex: 1; }
.offer-foot { margin-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.arrow { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-soft); }

.steps { margin-top: 2.5rem; display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { background: rgba(var(--ink-950-rgb), 0.9); padding: 1.5rem; }
.step-num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--brand); }
.steps .h3 { margin-top: 0.75rem; }
.steps .small { margin-top: 0.5rem; }

.values { margin-top: 2rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.values .small { margin-top: 0.5rem; }

.founder { display: grid; gap: 2rem; padding: 2rem; }
@media (min-width: 768px) { .founder { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: 2.5rem; } }
.portrait {
  width: 10rem; height: 10rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: radial-gradient(circle at 30% 25%, var(--ink-700), var(--ink-950));
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; color: var(--brand-soft); overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-sm { width: 5rem; height: 5rem; font-size: 1.5rem; }

.shots { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .shots { flex-direction: row; } }
.shots img { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 6px; }
@media (min-width: 768px) { .shots img { width: 0; } }
.shot-aztec { flex: 1.797; aspect-ratio: 1109 / 617; }
.shot-gears { flex: 2.01; aspect-ratio: 991 / 493; }
.shot-koi { flex: 2.75; aspect-ratio: 1312 / 477; }

.drivers { margin-top: 2.5rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .drivers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .drivers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.driver { display: flex; flex-direction: column; padding: 1.5rem; }
.driver-top { display: flex; align-items: center; gap: 1rem; }
.driver-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.15; }
.driver-role { margin-top: 0.25rem; font-family: var(--font-mono); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--brand); }
.driver dl { margin: 1.25rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.375rem 1rem; font-size: 0.8125rem; }
.driver dt { color: var(--subtle); }
.driver dd { margin: 0; color: var(--fg); }
.driver .small { margin-top: 1rem; flex: 1; }
.driver .btn { margin-top: 1.5rem; align-self: flex-start; }

.cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem; padding: 2rem; overflow: hidden; }
@media (min-width: 768px) { .cta { flex-direction: row; align-items: center; padding: 2.5rem; } }
.cta-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
@media (min-width: 640px) { .cta-title { font-size: 1.875rem; } }
.cta p { margin-top: 0.5rem; color: var(--muted); }

.waitlist { display: flex; flex-wrap: wrap; gap: 0.5rem; width: 100%; max-width: 30rem; }
.waitlist .field { flex: 1 1 14rem; padding: 0.8rem 0.9rem; }
.form-note { width: 100%; min-height: 1.25rem; font-size: 0.8125rem; color: var(--muted); }
.form-note.is-ok { color: var(--ok); }
.form-note.is-error { color: var(--danger); }

.soon-hero { min-height: calc(100vh - 4rem - 14rem); display: flex; align-items: center; }
.soon-hero > .wrap { width: 100%; }
.soon-box { max-width: 44rem; padding-top: 4rem; padding-bottom: 5rem; }

.socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.socials a { display: inline-flex; padding: 0.55rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }
.socials a:hover { color: var(--fg); border-color: rgba(var(--brand-rgb), 0.5); background: var(--ink-800); }
.socials svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); background: rgba(var(--ink-950-rgb), 0.6); }
.footer-grid { display: grid; gap: 2.5rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer-grid h2 { margin-bottom: 0.75rem; font-size: 0.875rem; font-weight: 600; }
.footer-grid li + li { margin-top: 0.5rem; }
.footer-grid nav a { font-size: 0.875rem; color: var(--muted); }
.footer-grid nav a:hover { color: var(--fg); }
.footer-logo { height: 1.75rem; width: auto; }
.footer-blurb { margin-top: 0.75rem; max-width: 24rem; }
.btn.is-disabled { opacity: 0.5; cursor: default; pointer-events: none; }
.footer-small { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; border-top: 1px solid rgba(var(--line-rgb), 0.6); padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: 0.75rem; color: var(--subtle); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .bubble { display: none; }
  .orca-swim { animation: none !important; transform: translateX(55vw); }
}

/* ---------- Join us ---------- */
.paths { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.path { display: flex; flex-direction: column; padding: 1.75rem; transition: border-color 0.2s, transform 0.2s; }
.path:hover { border-color: rgba(var(--brand-rgb), 0.5); transform: translateY(-2px); }
.path .small { margin-top: 0.75rem; flex: 1; }
.path ul { margin-top: 1rem; display: grid; gap: 0.35rem; font-size: 0.875rem; color: var(--muted); }
.path li::before { content: "→"; color: var(--brand); margin-right: 0.5rem; }
.path .arrow { margin-top: 1.5rem; }

.apply { display: grid; gap: 2rem; padding: 2rem; }
@media (min-width: 1024px) { .apply { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); padding: 2.5rem; } }
.apply-form { display: grid; gap: 1rem; }
@media (min-width: 640px) { .apply-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.apply-form .full { grid-column: 1 / -1; }
.label { display: block; margin-bottom: 0.4rem; font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.label .opt { text-transform: none; letter-spacing: 0; font-family: var(--font-sans); font-weight: 400; color: var(--subtle); }
textarea.field { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.1rem) 52%, calc(100% - 0.8rem) 52%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; padding-right: 2rem; }
select.field option { background: var(--ink-900); }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.8125rem; color: var(--muted); cursor: pointer; }
.check:hover { border-color: var(--line-strong); color: var(--fg); }
.check input, .consent input { accent-color: var(--brand); width: 1rem; height: 1rem; margin: 0; }
.check:has(input:checked) { border-color: rgba(var(--brand-rgb), 0.6); background: rgba(var(--brand-rgb), 0.1); color: var(--fg); }
.consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 0.15rem; flex-shrink: 0; }
.apply-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.apply-foot .form-note { width: auto; flex: 1; }
.turnstile:empty { display: none; }
.apply-thanks { align-self: start; padding: 1.5rem; border: 1px solid rgba(var(--brand-rgb), 0.4); border-radius: var(--radius); background: rgba(var(--brand-rgb), 0.08); }
.apply-thanks .h3 { color: var(--fg); }
.apply-thanks .h3:focus { outline: none; }
.apply-thanks .body { margin-top: 0.5rem; }
.perks { margin-top: 1.5rem; display: grid; gap: 0.6rem; max-width: 34rem; }
.perks li { position: relative; padding-left: 1.6rem; color: var(--fg); line-height: 1.5; }
.perks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 600; }

/* ---------- Home carousel ---------- */
.carousel { position: relative; padding-top: 3.5rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .carousel { padding-top: 5rem; padding-bottom: 3.5rem; } }
.slides { display: grid; }
.slide { max-width: 46rem; }
.slide + .slide { margin-top: 4rem; } /* no-JS: slides stack */
.slide-logo { height: 2.75rem; width: auto; margin-bottom: 1.25rem; }
.slide-word { margin-bottom: 1.25rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; line-height: 2.75rem; }
.slide-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.slide-eyebrow .chip { letter-spacing: 0; text-transform: none; }

.carousel.is-ready .slide { grid-area: 1 / 1; margin-top: 0; opacity: 0; visibility: hidden; transform: translateX(24px); transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s; }
.carousel.is-ready .slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s; }

.carousel-nav { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.carousel-nav[hidden] { display: none; }
.carousel-tabs { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.carousel-tab {
  position: relative; overflow: hidden; min-width: 7.5rem; padding: 0.75rem 0.25rem 0.9rem; text-align: left; cursor: pointer;
  border: 0; border-top: 2px solid var(--line-strong); background: transparent; color: var(--subtle);
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  transition: color 0.2s;
}
.carousel-tab:hover { color: var(--fg); }
.carousel-tab[aria-selected="true"] { color: var(--fg); }
.tab-progress { position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--brand); }
.carousel-tab[aria-selected="true"] .tab-progress { width: 100%; }
.carousel-tab.is-running .tab-progress { width: 0; animation: tab-fill 7s linear forwards; }
@keyframes tab-fill { to { width: 100%; } }
.carousel-arrows { display: flex; gap: 0.5rem; }
.carousel .ico-play { display: none; }
.carousel.is-paused .ico-play { display: inline; }
.carousel.is-paused .ico-pause { display: none; }
@media (max-width: 639px) {
  .carousel-nav { margin-top: 2rem; }
  .carousel-tabs { width: 100%; flex-wrap: nowrap; gap: 0.375rem; }
  .carousel-tab { flex: 1 1 0; min-width: 0; padding: 0.7rem 0; font-size: 0; } /* labels stay for screen readers */
  .carousel-arrows { width: 100%; justify-content: flex-end; }
}

/* Founder: large portrait inside a slowly turning wireframe globe, plus wireframe credential icons */
.founder-photo { position: relative; width: 15rem; height: 15rem; display: grid; place-items: center; }
.portrait-lg { position: relative; width: 11rem; height: 11rem; font-size: 3rem; box-shadow: 0 0 60px -15px rgba(var(--brand-rgb), 0.6); }
.founder-text .h2 { margin-top: 0; }
.founder-role { margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--brand-soft); }
.founder-text .body { margin-top: 0.9rem; }
.creds { margin-top: 1.75rem; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.creds li { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(var(--ink-950-rgb), 0.5); }
.creds img { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
.creds strong { display: block; font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.creds span { display: block; margin-top: 0.15rem; font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Home layout: About (top), services carousel, founder (full width) ---------- */
.about-hero .body { max-width: 38rem; }
/* About ORCA text runs the full width of the page */
.about-full { grid-template-columns: minmax(0, 1fr) !important; padding-bottom: 2.5rem !important; }
.about-full .lead, .about-full .body { max-width: none; }
.about-hero .lead { color: var(--fg); }

.offer-panel { position: relative; overflow: hidden; padding: 2rem; }
@media (min-width: 768px) { .offer-panel { padding: 2.5rem; } }
.offer-panel .carousel { padding-top: 1.25rem; padding-bottom: 0; }

.founder-wide { display: grid; gap: 2rem; padding: 2rem; align-items: center; }
@media (min-width: 768px) { .founder-wide { grid-template-columns: auto minmax(0, 1fr); padding: 2.5rem; } .founder-wide .creds { grid-column: 1 / -1; } }
@media (min-width: 1200px) { .founder-wide { gap: 1.5rem 3rem; } .founder-wide .creds { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0.5rem; } }
.founder-wide .founder-text .h2 { margin-top: 0.75rem; }
.founder-wide .founder-text .body { max-width: 52rem; }

/* Founder photo: sonar screen with an outward ping. The photo sits just inside the bearing ticks and
   fades softly into the screen instead of ending in a hard circle. */
.sonar { position: relative; width: 16rem; height: 16rem; display: grid; place-items: center; }
.sonar-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
.sonar-ping {
  position: absolute; left: 50%; top: 50%; width: 13.6rem; height: 13.6rem; margin: -6.8rem 0 0 -6.8rem; border-radius: 50%;
  border: 1px solid rgba(var(--brand-soft-rgb), 0.7); animation: sonar-ping 3s ease-out infinite;
}
.sonar .portrait-lg { width: 13.6rem; height: 13.6rem; border: 0; background: transparent; box-shadow: none; z-index: 1; }
.sonar .portrait-lg img {
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 64%, rgba(0, 0, 0, 0.55) 68.5%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 64%, rgba(0, 0, 0, 0.55) 68.5%, transparent 71%);
}
@keyframes sonar-ping { 0% { transform: scale(0.96); opacity: 0; } 15% { opacity: 0.8; } 100% { transform: scale(1.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sonar-ping { display: none; } }

/* ---------- Carousel artwork: animated wireframe drawings (one per slide) ---------- */
.slide-art { display: none; }
@media (min-width: 1024px) {
  .carousel.is-ready .slide, .slide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 3rem; align-items: center; max-width: none; }
  .slide-art { display: block; }
}
.wf { width: 100%; height: auto; max-height: 24rem; overflow: visible; }
.wf path, .wf rect, .wf circle, .wf ellipse { fill: none; stroke: var(--brand-soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.wf .wf-faint, .wf .wf-faint path { stroke-opacity: 0.28; stroke-width: 0.9; }
.wf .wf-dashed { stroke-dasharray: 2 5; }
.wf .wf-dash { stroke-dasharray: 4 4; stroke-opacity: 0.55; }
.wf .wf-fill { fill: rgba(var(--brand-rgb), 0.55); stroke: none; }
.wf .wf-fill-soft { fill: rgba(var(--brand-soft-rgb), 0.35); stroke: none; }
.wf .wf-label { fill: var(--brand-soft); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; }
.wf .wf-soft { fill: var(--subtle); }
.wf .wf-faint-text { fill: var(--subtle); opacity: 0.7; }

/* Paint: the nozzle sweeps from the rear wing to the nose, revealing the livery behind it */
.wf-paint-reveal { transform-box: fill-box; transform-origin: left center; animation: wf-reveal 8s ease-in-out infinite; }
.wf-livery { animation: wf-livery 8s ease-in-out infinite; }
.wf-nozzle { animation: wf-nozzle 8s ease-in-out infinite; }
.wf-paint { max-height: 21rem; }
.wf .wf-cone { fill: url(#wf-spray); stroke-dasharray: 2 3; stroke-opacity: 0.5; }
.wf .wf-edge { stroke: var(--brand); stroke-width: 2; stroke-opacity: 0.8; }
.wf .wf-dot { fill: var(--brand-soft); stroke: none; animation: wf-dot 0.9s linear infinite; }
.wf .wf-dot.d2 { animation-delay: -0.3s; } .wf .wf-dot.d3 { animation-delay: -0.6s; } .wf .wf-dot.d4 { animation-delay: -0.45s; }
@keyframes wf-reveal { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes wf-livery { 0%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes wf-nozzle { 0% { transform: translateX(4px); opacity: 1; } 70% { transform: translateX(268px); opacity: 1; } 80% { transform: translateX(268px); opacity: 0; } 92% { transform: translateX(0); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes wf-dot { 0% { transform: translateY(-8px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* Academy: your lap draws in over the coach's, a cursor scans across, the lost-time corner pulses */
.wf .wf-trace { stroke: var(--brand); stroke-width: 2; stroke-dasharray: 100; animation: wf-draw 7s ease-in-out infinite; }
.wf-cursor { animation: wf-cursor 7s ease-in-out infinite; }
.wf-cursor circle { fill: var(--brand); stroke: none; }
.wf .wf-hotspot { stroke: var(--warn); stroke-dasharray: 3 4; transform-box: fill-box; transform-origin: center; animation: wf-pulse 2.4s ease-in-out infinite; }
@keyframes wf-draw { 0% { stroke-dashoffset: 100; } 60%, 100% { stroke-dashoffset: 0; } }
@keyframes wf-cursor { 0% { transform: translateX(0); } 60% { transform: translateX(296px); } 100% { transform: translateX(296px); opacity: 0; } }
@keyframes wf-pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.18); opacity: 0.4; } }

/* Engineer: the spring compresses and the setup sliders get tweaked */
.wf-spring { transform-box: fill-box; transform-origin: center top; animation: wf-spring 3.2s ease-in-out infinite alternate; }
.wf-lower { animation: wf-lower 3.2s ease-in-out infinite alternate; }
.wf-knob { animation: wf-knob 4s ease-in-out infinite alternate; }
.wf-knob.s2 { animation-duration: 5s; animation-delay: -1.2s; }
.wf-knob.s3 { animation-duration: 6s; animation-delay: -2.5s; animation-name: wf-knob-rev; }
.wf-knob.s4 { animation-duration: 4.6s; animation-delay: -0.6s; }
@keyframes wf-spring { from { transform: scaleY(1); } to { transform: scaleY(0.88); } }
@keyframes wf-lower { from { transform: translateY(0); } to { transform: translateY(-16px); } }
@keyframes wf-knob { from { transform: translateX(-16px); } to { transform: translateX(16px); } }
@keyframes wf-knob-rev { from { transform: translateX(14px); } to { transform: translateX(-18px); } }

/* Join us: pings go out from ORCA, each role pulses, and dashes flow in towards the centre */
.wf .wf-ping { transform-box: fill-box; transform-origin: center; animation: wf-ping 4s ease-out infinite; }
.wf .wf-ping.p2 { animation-delay: -2s; }
.wf .wf-ring { transform-box: fill-box; transform-origin: center; animation: wf-ring 2.8s ease-out infinite; }
.wf .wf-ring.j2 { animation-delay: -0.7s; } .wf .wf-ring.j3 { animation-delay: -1.4s; } .wf .wf-ring.j4 { animation-delay: -2.1s; }
.wf .wf-flow { stroke-dasharray: 2 6; stroke-opacity: 0.6; animation: wf-flow 1.6s linear infinite; }
@keyframes wf-ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(6.2); opacity: 0; } }
@keyframes wf-ring { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes wf-flow { to { stroke-dashoffset: -16; } }

/* Only the visible slide animates */
.carousel.is-ready .slide:not(.is-active) .wf * { animation-play-state: paused; }

/* ---------- Academy booking ---------- */
.book-panel { padding: 2rem; }
@media (min-width: 768px) { .book-panel { padding: 2.5rem; } }
.book-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.booking-frame { margin-top: 2rem; }
.booking-iframe { display: block; width: 100%; height: 900px; border: 0; border-radius: var(--radius); background: var(--ink-900); color-scheme: dark; }
.cal-preview { display: grid; gap: 1.5rem; padding: 1.5rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: rgba(var(--ink-950-rgb), 0.5); }
@media (min-width: 1024px) { .cal-preview { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.6fr); gap: 2.5rem; } }
.cal-gap { margin-top: 1.25rem; }
.cal-preview .check { cursor: default; }
.cal-preview .check.is-on { border-color: rgba(var(--brand-rgb), 0.6); background: rgba(var(--brand-rgb), 0.1); color: var(--fg); }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; max-width: 22rem; }
.cal-dow { text-align: center; font-family: var(--font-mono); font-size: 0.68rem; color: var(--subtle); padding-bottom: 0.25rem; }
.cal-day { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--radius); font-size: 0.8rem; color: var(--subtle); }
.cal-first { grid-column-start: 2; }
.cal-day.is-open { color: var(--fg); border: 1px solid var(--line-strong); }
.cal-day.is-picked { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.cal-times { display: grid; gap: 0.4rem; }
.cal-times span { padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); text-align: center; }
.cal-times .is-picked { border-color: var(--brand); color: var(--fg); background: rgba(var(--brand-rgb), 0.12); }
.hero-solo { grid-template-columns: minmax(0, 1fr) !important; }

/* Team: founder and developer side by side on wide screens, stacked on small ones */
.team-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1100px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .team-grid .team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
  .team-grid .team-card .founder-text .body { margin-left: auto; margin-right: auto; }
  .team-grid .team-card .creds { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-top: auto; text-align: left; }
}
.team-card { scroll-margin-top: 6rem; }

/* ---------- Accessibility (WCAG 2.2 AA) ---------- */
/* Tick boxes: the whole label is the click target, at least 24px tall (2.5.8). */
.check, .consent { min-height: 1.5rem; }
input[type="checkbox"] { accent-color: var(--brand); width: 1.125rem; height: 1.125rem; }
/* "Pause animations" (2.2.2): stops the ocean, bubbles, sonar pings and drawings everywhere. */
.motion-off *, .motion-off *::before, .motion-off *::after { animation-play-state: paused !important; }
.motion-off .bubbles, .motion-off .sonar-ping { display: none; }
.motion-toggle { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.25rem; padding: 0.4rem 0.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--muted); font: inherit; font-size: 0.8125rem; cursor: pointer; }
.motion-toggle:hover { color: var(--fg); border-color: var(--field-line); }
.motion-toggle svg { width: 1rem; height: 1rem; }
.side-body .motion-toggle { margin-top: 1.5rem; width: 100%; justify-content: center; }
/* Small phones: the sonar portrait shrinks to fit (1.4.10, no sideways scrolling at 320px). */
@media (max-width: 420px) {
  .founder-wide { padding: 1.25rem; }
  .sonar { width: min(16rem, 100%); height: auto; aspect-ratio: 1; }
  .sonar .portrait-lg { width: 85%; height: 85%; }
}

/* Academy: which sims we coach on */
.sim-note { margin-top: 1rem; max-width: 46rem; padding: 0.75rem 0.9rem; border-left: 3px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; background: rgba(var(--brand-rgb), 0.08); font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.sim-note strong { color: var(--fg); }
.sim-note a { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 2px; }

/* ORCA Paint: "Made with ORCA Paint" slideshow */
.pg { position: relative; }
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.pg-title { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-soft); }
.pg-controls { display: flex; gap: 0.5rem; }
.pg-btn { min-width: 2.25rem; min-height: 2.25rem; align-items: center; justify-content: center; }
.pg-btn:hover { color: var(--fg); border-color: var(--field-line); }
.pg-track { position: relative; list-style: none; margin: 0; padding: 0; aspect-ratio: 3 / 2; }
.pg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease; display: flex; flex-direction: column; }
.pg-slide.is-active { opacity: 1; }
.pg-slide img, .pg-placeholder { width: 100%; flex: 1; min-height: 0; object-fit: cover; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 0 80px -30px rgba(var(--brand-rgb), 0.7); }
.pg-placeholder { display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, rgba(var(--brand-rgb), 0.28), transparent 60%), linear-gradient(135deg, var(--ink-850), var(--ink-950)); }
.pg-placeholder span { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); opacity: 0.85; }
.pg-caption { margin-top: 0.75rem; font-size: 0.75rem; color: var(--subtle); }
.pg-count { position: absolute; right: 0.75rem; top: 3.5rem; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(var(--abyss-rgb), 0.7); font-size: 0.75rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pg-slide { transition: none; } }

/* ORCA Paint: credit costs */
.credits-lead { max-width: 44rem; margin-top: 0.75rem; }
.credits-grid { display: grid; gap: 1.5rem; margin-top: 2rem; align-items: start; }
@media (min-width: 960px) { .credits-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.credits-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(var(--ink-900-rgb), 0.75); }
.credits-table thead th { padding: 0.75rem 1.25rem; text-align: left; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-strong); }
.credits-table thead th:last-child, .credits-table td { text-align: right; }
.credits-table tbody th, .credits-table td { padding: 1rem 1.25rem; border-top: 1px solid var(--line); vertical-align: middle; }
.credits-table tbody th { text-align: left; font-weight: 600; color: var(--fg); }
.credits-table tbody th span { display: block; margin-top: 0.2rem; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.credits-table td strong { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--brand-soft); }
.credits-table td .per { display: block; font-size: 0.75rem; color: var(--muted); }
.credits-table tr.free td strong { font-size: 1.125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok-soft); }
.credits-set { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem; }
.credits-sum { display: flex; flex-wrap: wrap; gap: 0.5rem; color: var(--muted); font-size: 0.9375rem; }
.credits-total { font-size: 1rem; color: var(--muted); }
.credits-total strong { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--fg); margin-right: 0.35rem; }
.credits-set .btn { align-self: flex-start; margin-top: 0.5rem; }
@media (max-width: 520px) { .credits-table tbody th, .credits-table td { padding: 0.85rem 0.9rem; } .credits-table td strong { font-size: 1.4rem; } }

/* Pricing page */
.pricing-lead { max-width: 44rem; margin-top: 0.75rem; }
.pricing-jump { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.plans { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem; }
.plan-featured { border-color: var(--brand); box-shadow: 0 0 80px -40px rgba(var(--brand-rgb), 0.8); }
.plan-flag { position: absolute; top: -0.75rem; left: 1.75rem; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--brand); color: var(--abyss); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.plan-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.plan-price .amount { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; line-height: 1; }
.plan-price .per { margin-left: 0.35rem; color: var(--muted); }
.plan-credits { color: var(--muted); }
.plan-credits strong { color: var(--brand-soft); }
.plan-list { list-style: none; margin: 0.25rem 0 0.5rem; padding: 0; flex: 1; color: var(--muted); font-size: 0.9375rem; }
.plan-list li { padding: 0.35rem 0 0.35rem 1.5rem; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 0.2rem; top: 0.85rem; width: 0.55rem; height: 0.3rem; border-left: 2px solid var(--ok-soft); border-bottom: 2px solid var(--ok-soft); transform: rotate(-45deg); }
.plan .btn { align-self: stretch; text-align: center; justify-content: center; }
.packs-table { margin-top: 2rem; margin-bottom: 1rem; }
.packs-table td { color: var(--muted); }
.packs-table th:nth-child(2), .packs-table td:nth-child(2) { text-align: right; }
.packs-table td strong { font-size: 1.5rem; }
.pricing-note { margin: 1rem 0 1.25rem; max-width: 48rem; color: var(--muted); }
.pricing-note a { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 2px; }
.pricing-soon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.5rem 1.75rem; }
@media (max-width: 380px) {
  .credits-table thead th { padding: 0.6rem 0.7rem; letter-spacing: 0.06em; }
  .credits-table tbody th, .credits-table td { padding: 0.75rem 0.7rem; }
  .credits-table tbody th span { font-size: 0.75rem; }
}
.credits-table:not(.packs-table) { table-layout: fixed; }
.credits-table:not(.packs-table) thead th:last-child, .credits-table:not(.packs-table) td { width: 5.5rem; }
.credits-table tbody th { overflow-wrap: anywhere; }
.credits-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .credits-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

/* ---------- Motion and feedback (design polish, Dec 2026) ----------
   Small touches on top of the existing look: depth gauge, press and confirm pulses, softer menu entrance,
   icon crossfades, masked reveals and bigger touch targets. Everything here stops with "Pause animations". */

/* Depth gauge: how far you've "dived" down the page, under the header on the right. */
.depth-gauge {
  position: absolute; right: 1rem; top: calc(100% + 0.6rem); z-index: 1;
  display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.2rem 0.55rem;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(var(--ink-950-rgb), 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--brand-soft); font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateY(-4px); transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.depth-gauge.is-diving { opacity: 1; transform: none; }
.depth-gauge .dg-label { font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--subtle); }
.depth-gauge .dg-arrow { color: var(--brand); }
@media (min-width: 640px) { .depth-gauge { right: 1.5rem; } }
/* The light fades as you go deeper (--depth goes 0 → 1 down the page). */
.light-rays, .caustics { opacity: calc(1 - var(--depth, 0) * 0.75); }
.caustics { opacity: calc(0.6 - var(--depth, 0) * 0.45); }

/* Fitts's law: bigger, easier targets (44px where there's room, 40px for small buttons). */
.btn-sm { min-height: 2.5rem; }
.icon-btn { min-width: 2.75rem; min-height: 2.75rem; align-items: center; justify-content: center; transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.12s; }

/* Pulse to confirm: buttons press in, then spring back. */
.btn:active:not(:disabled), .icon-btn:active { transform: scale(0.96); }
.btn-primary { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 60%); }
/* Doherty threshold: instant "working on it" feedback while a form sends. */
.btn[aria-busy="true"] { cursor: progress; animation: busy 1s ease-in-out infinite; }
@keyframes busy { 50% { opacity: 0.55; } }
/* A sent form confirms with a sonar ping. */
.form-note.is-ok { animation: confirm-pop 0.45s cubic-bezier(0.3, 0.7, 0.4, 1.5); }
@keyframes confirm-pop { from { transform: scale(0.94); opacity: 0; } }
.apply-thanks { position: relative; animation: confirm-pop 0.45s cubic-bezier(0.3, 0.7, 0.4, 1.5); }
.apply-thanks::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--brand);
  pointer-events: none; animation: ping-out 1.1s ease-out 0.15s both;
}
@keyframes ping-out { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.06); } }

/* Link cards lift a little and catch the light. */
a.panel { transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
a.panel:hover { border-color: rgba(var(--brand-rgb), 0.55); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(var(--brand-rgb), 0.6); }

/* Stage the focus: the menu slides in from its own edge and the page behind blurs. */
.side-menu[open] { animation: menu-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.side-menu[open]::backdrop { background: rgba(var(--abyss-rgb), 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in 0.32s ease-out; }
.side-menu[open] .side-list li { animation: menu-item 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.side-menu[open] .side-list li:nth-child(2) { animation-delay: 0.03s; }
.side-menu[open] .side-list li:nth-child(3) { animation-delay: 0.06s; }
.side-menu[open] .side-list li:nth-child(4) { animation-delay: 0.09s; }
.side-menu[open] .side-list li:nth-child(5) { animation-delay: 0.12s; }
.side-menu[open] .side-list li:nth-child(6) { animation-delay: 0.15s; }
.side-menu[open] .side-list li:nth-child(n+7) { animation-delay: 0.18s; }
@keyframes menu-in { from { transform: translateX(100%); } }
@keyframes menu-item { from { opacity: 0; transform: translateX(14px); } }
@keyframes fade-in { from { opacity: 0; } }

/* Crossfade icons with blur: the slideshow's pause/play swap. */
.swap-icon { display: grid; }
.carousel .swap-icon > svg.ico-pause, .carousel .swap-icon > svg.ico-play { display: block; } /* overrides the old show/hide, so the two can crossfade */
.swap-icon > svg { grid-area: 1 / 1; transition: opacity 0.25s, transform 0.25s, filter 0.25s; }
.carousel .swap-icon .ico-play, .carousel.is-paused .swap-icon .ico-pause { opacity: 0; transform: scale(0.6); filter: blur(3px); }
.carousel.is-paused .swap-icon .ico-play { display: block; opacity: 1; transform: none; filter: none; }

/* Panels rise gently as they scroll in. */
.reveal-rise { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-rise.is-in { opacity: 1; transform: none; }

/* Pause animations / reduced motion: everything shows straight away, nothing slides. */
.motion-off .reveal-rise { opacity: 1; transform: none; transition: none; }
.motion-off .side-menu[open], .motion-off .side-menu[open]::backdrop, .motion-off .side-menu[open] .side-list li,
.motion-off .apply-thanks, .motion-off .apply-thanks::after, .motion-off .form-note.is-ok { animation: none; }
.motion-off .btn, .motion-off .icon-btn, .motion-off a.panel, .motion-off .swap-icon > svg { transition: none; }
.motion-off a.panel:hover { transform: none; }
