/* Coral Moon Ventures — site styles (third pass).
   Layout concept: a star chart. Everything sits inside one ruled frame (two hairline rails,
   indexed section rows, bordered cells), the way a chart or a blueprint is drawn. The one loud
   thing is the home hero: the work itself (an app, an ad, a page, a chat, a calendar, a reach
   line) circling a small coral moon on three orbits — the logo, set in motion.
   The page still descends: night sky at the top, deeper water further down, a reef in the footer. */

@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  /* colour */
  --sky-0: #050B17;      /* zenith */
  --sky-1: #0E1B2E;      /* brand navy */
  --surface: #0B1D2E;    /* water at the surface */
  --sea-0: #0A2230;      /* mid water */
  --sea-1: #071920;      /* sea floor */
  --coral: #FF6B57;      /* the moon, and every primary action */
  --coral-lit: #FF917D;
  --moonlight: #F5F1EA;  /* text */
  --mist: #A9B7C8;       /* secondary text */
  --tide: #7ED3C7;       /* links, focus, small marks */
  --ink: #0E1B2E;        /* text on coral */
  --line: rgb(var(--ink-rgb) / 0.12);
  --line-strong: rgb(var(--ink-rgb) / 0.26);
  --wash: rgb(var(--ink-rgb) / 0.035);
  --panel: rgba(11, 22, 40, 0.86);
  /* the pieces a second theme has to be able to swap */
  --ink-rgb: 245 241 234;   /* hairlines and faint fills */
  --deep-rgb: 5 11 23;      /* behind bars, fields and menus */
  --shadow-rgb: 3 8 18;
  --dust-rgb: 169 183 200;
  --sky-mid: #091425;
  --hero-lede: #C3CEDB;
  --prose: #C9D3DF;
  --error: #FFB4A6;
  --phase-bg: #0A1728;
  --coral-hover: #FF917D;
  /* type: Archivo (wide and heavy for display, normal for reading), Instrument Serif italic for
     the one phrase a heading leans on, Geist Mono for the chart's index labels */
  --display: "Archivo", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --body: "Archivo", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.95rem);
  --step-3: clamp(2.2rem, 1.2rem + 3.6vw, 3.9rem);
  --step-4: clamp(2.7rem, 1rem + 6vw, 5.1rem);
  --gutter: clamp(16px, 3.4vw, 40px);
  --pad: clamp(20px, 2.6vw, 36px);
  --frame: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- light theme: the same chart by day. The small work samples and the footer stay dark,
   like screens and deep water, so they re-declare the night values for themselves. ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --sky-0: #F8F4ED; --sky-mid: #F4EFE7; --surface: #F0EAE0; --sea-0: #ECE5DA; --sea-1: #E8E0D4;
  --moonlight: #0E1B2E; --mist: #4A5A70; --tide: #17786C; --coral-lit: #CC3D27;
  --line: rgb(14 27 46 / 0.13); --line-strong: rgb(14 27 46 / 0.3); --wash: rgb(14 27 46 / 0.035);
  --ink-rgb: 14 27 46; --deep-rgb: 255 255 255; --shadow-rgb: 84 96 118; --dust-rgb: 74 90 112;
  --hero-lede: #36455A; --prose: #36455A; --error: #B3261E; --phase-bg: #F4EFE7;
}
:root[data-theme="light"] :is(.card, .chip.solo, .plate, .pin, .site-footer) {
  --moonlight: #F5F1EA; --mist: #A9B7C8; --tide: #7ED3C7; --coral-lit: #FF917D;
  --line: rgb(245 241 234 / 0.12); --line-strong: rgb(245 241 234 / 0.26); --wash: rgb(245 241 234 / 0.035);
  --ink-rgb: 245 241 234; --deep-rgb: 5 11 23; --dust-rgb: 169 183 200; --panel: #0D1A2D;
}
:root[data-theme="light"] .card, :root[data-theme="light"] .site-footer { color: #F5F1EA; }
:root[data-theme="light"] .site-footer { background: linear-gradient(180deg, #0B1D2E, #071920 70%); }
:root[data-theme="light"] .scene { filter: invert(1); opacity: 0.55; }
:root[data-theme="light"] .plate { background: #0F1D33; }
:root[data-theme="light"] .hero::after { display: none; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--sky-0); color: var(--moonlight); font-family: var(--body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, canvas { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; font-weight: 660; font-stretch: 112%; }
h1 { font-size: var(--step-4); line-height: 0.99; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); line-height: 1.02; letter-spacing: -0.033em; }
h3 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.015em; font-weight: 620; font-stretch: 106%; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--moonlight); text-decoration-color: var(--tide); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { color: var(--coral-lit); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--tide); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--coral); color: var(--ink); }

/* the phrase a heading leans on */
.it { font-family: var(--serif); font-style: italic; font-weight: 400; font-stretch: 100%; letter-spacing: -0.015em; font-size: 1.1em; line-height: 0.9; padding-right: 0.03em; color: var(--coral-lit); }
/* chart labels */
.mono { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--mist); max-width: 33em; }
.quiet { color: var(--mist); }
.small { font-size: var(--step--1); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--moonlight); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }

.page { min-height: 100%; display: flex; flex-direction: column; overflow-x: clip; background: linear-gradient(180deg, var(--sky-0) 0, var(--sky-mid) 900px, var(--surface) 2400px, var(--sea-0) 72%, var(--sea-1) 100%); }
main { flex: 1; }
.frame { width: 100%; max-width: calc(var(--frame) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.box { border-inline: 1px solid var(--line); }

/* ---------- scroll reveals (only when the script is running; content is visible without it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.reveal-all) [data-reveal] { opacity: 0; transform: translateY(26px); }
  html.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
}

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid transparent; transition: background-color 0.3s, border-color 0.3s; }
.site-header.stuck { background: rgb(var(--deep-rgb) / 0.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header .frame { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.site-header .brand { margin-right: auto; }
/* theme switch: shows the sun at night and the moon by day */
.theme-toggle { display: none; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; padding: 0; border-radius: 10px; border: 1.5px solid var(--line-strong); background: rgb(var(--deep-rgb) / 0.5); color: var(--moonlight); cursor: pointer; transition: border-color 0.2s, transform 0.2s var(--ease); }
html.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { border-color: var(--moonlight); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--moonlight); }
.brand:hover { color: var(--moonlight); }
.brand svg { width: 36px; height: 36px; flex: none; overflow: visible; }
.brand svg path { stroke: var(--moonlight); }
.brand-name { display: flex; flex-direction: column; gap: 5px; }
.brand-name b { font-family: var(--display); font-weight: 720; font-stretch: 118%; font-size: 1.12rem; line-height: 1; letter-spacing: -0.025em; }
.brand-name span { font-family: var(--display); font-weight: 560; font-stretch: 110%; font-size: 0.5rem; line-height: 1; letter-spacing: 0.4em; color: var(--mist); }
.brand .orbiter { transform-origin: 50px 50px; }
.brand:hover .orbiter, .brand:focus-visible .orbiter { animation: orbit-once 1.4s cubic-bezier(0.5, 0, 0.2, 1); }
@keyframes orbit-once { to { transform: rotate(360deg); } }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav a { font-weight: 500; font-size: 0.97rem; text-decoration: none; color: var(--moonlight); padding-block: 6px; }
.nav a:hover { color: var(--coral-lit); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
.nav .btn { padding: 9px 18px; min-height: 42px; font-size: 0.95rem; }
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: 12px; border: 1.5px solid transparent; font: 620 1.02rem/1.2 var(--body); font-stretch: 104%; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.3s; }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-primary { background: var(--coral); color: var(--ink); box-shadow: 0 0 0 0 rgba(255, 107, 87, 0); }
.btn-primary:hover { background: var(--coral-hover); color: var(--ink); box-shadow: 0 10px 34px -8px rgba(255, 107, 87, 0.55); transform: translateY(-2px); }
.btn-ghost { background: rgb(var(--ink-rgb) / 0.03); color: var(--moonlight); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--moonlight); color: var(--moonlight); transform: translateY(-2px); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 600; }

/* ---------- hero (home) ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(100svh, 960px); padding-top: 68px; border-bottom: 1px solid var(--line); }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; background: linear-gradient(180deg, transparent, rgb(var(--deep-rgb) / 0.55)); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); align-items: center; gap: clamp(24px, 3vw, 48px); padding-block: clamp(56px, 8vw, 96px) clamp(72px, 9vw, 120px); }
.hero-copy { position: relative; z-index: 5; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-copy h1 .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-copy h1 .line > span { display: block; }
.hero-copy .lede { color: var(--hero-lede); max-width: 27.5em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 6px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1 .line > span { animation: line-up 1.1s var(--ease) backwards; }
  .hero-copy h1 .line:nth-child(2) > span { animation-delay: 0.1s; }
  .hero-copy h1 .line:nth-child(3) > span { animation-delay: 0.2s; }
  .hero-copy h1 .line:nth-child(4) > span { animation-delay: 0.3s; }
  .hero-copy .lede { animation: rise 1s 0.5s var(--ease) backwards; }
  .hero-copy .actions { animation: rise 1s 0.65s var(--ease) backwards; }
  .hero-copy .hero-meta { animation: rise 1s 0.8s var(--ease) backwards; }
  .orbit { animation: orbit-in 1.6s 0.2s var(--ease) backwards; }
}
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes orbit-in { from { opacity: 0; transform: scale(0.9); } }

/* the orbit: three rings round a small moon, with the work riding them. Sized in em. */
.orbit { position: relative; width: 100%; aspect-ratio: 1 / 0.9; font-size: clamp(7px, 0.88vw, 12.5px); font-family: var(--body); pointer-events: none; }
.orbit-rings, .orbit-bodies { position: absolute; inset: 0; transition: transform 0.6s var(--ease); }
.ring { position: absolute; left: var(--cx, 54%); top: 50%; border: 1px solid rgb(var(--ink-rgb) / 0.13); border-radius: 50%; transform: translate(-50%, -50%) rotate(-14deg); }
.ring.far { border-color: rgb(var(--ink-rgb) / 0.07); }
.ring.dashed { border-style: dashed; border-color: rgba(126, 211, 199, 0.2); }
.orbit-moon { position: absolute; left: var(--cx, 54%); top: 50%; width: 6.6em; height: 6.6em; margin: -3.3em 0 0 -3.3em; border-radius: 50%; z-index: 2;
  background:
    radial-gradient(circle at 30% 34%, rgba(170, 48, 36, 0.28) 0 0.9em, transparent 0.95em),
    radial-gradient(circle at 64% 26%, rgba(170, 48, 36, 0.24) 0 0.5em, transparent 0.55em),
    radial-gradient(circle at 68% 62%, rgba(170, 48, 36, 0.24) 0 0.75em, transparent 0.8em),
    radial-gradient(circle at 40% 74%, rgba(170, 48, 36, 0.2) 0 0.45em, transparent 0.5em),
    radial-gradient(circle at 32% 28%, #FFA691 0%, #FF6B57 55%, #DE4D3A 100%);
  box-shadow: 0 0 5em 1.2em rgba(255, 107, 87, 0.22), inset -0.9em -0.9em 1.6em rgba(14, 27, 46, 0.42); }
.orb { position: absolute; left: var(--x, 50%); top: var(--y, 50%); transform: translate(-50%, -50%); will-change: transform; }
.orbit.live .orb { left: 0; top: 0; }

/* ---------- the work samples (used in the orbit and in the capability cells) ---------- */
.card { border: 1px solid rgb(var(--ink-rgb) / 0.16); background: var(--panel); box-shadow: 0 1.8em 3.6em rgb(var(--shadow-rgb) / 0.55); }
.is-off, .is-off * { animation-play-state: paused !important; }
.chip { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.4em 0.75em; border-radius: 99em; background: rgba(126, 211, 199, 0.12); color: var(--tide); font-size: 0.74em; font-weight: 600; line-height: 1; white-space: nowrap; }
.chip::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--tide); }
.chip.solo { padding: 0.6em 1em; font-size: 0.95em; border: 1px solid rgba(126, 211, 199, 0.35); background: rgba(8, 26, 34, 0.9); box-shadow: 0 1em 2em rgb(var(--shadow-rgb) / 0.5); }
.chip.code { color: var(--moonlight); border-color: var(--line-strong); background: var(--panel); font-family: var(--mono); font-weight: 500; }
.chip.code::before { display: none; }

/* app window that builds itself from code */
.sc-win { width: 24.5em; height: 16.5em; border-radius: 0.9em; overflow: hidden; display: flex; flex-direction: column; }
.sc-bar { display: flex; align-items: center; gap: 0.45em; padding: 0.7em 0.9em; border-bottom: 1px solid var(--line); }
.sc-bar i { width: 0.6em; height: 0.6em; border-radius: 50%; background: rgb(var(--ink-rgb) / 0.22); }
.sc-url { flex: 1; height: 0.9em; margin-left: 0.6em; border-radius: 99em; background: rgb(var(--ink-rgb) / 0.08); }
.sc-live { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.74em; font-weight: 600; line-height: 1; color: var(--tide); animation: sc-live 12s 1.1s infinite both; }
.sc-live::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--tide); }
.sc-body { flex: 1; display: grid; grid-template-columns: 42% 58%; min-height: 0; }
.sc-code { display: flex; flex-direction: column; gap: 0.62em; padding: 1em 0.9em; border-right: 1px solid var(--line); }
.sc-code b { display: block; height: 0.42em; width: var(--w); margin-left: calc(var(--x) * 0.9em); border-radius: 99em; background: var(--c); opacity: 0.85; transform-origin: left center; animation: sc-type 12s calc(var(--i) * 0.32s) infinite both; }
.sc-ui { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; padding: 0.9em; align-content: start; }
.sc-ui span { display: block; border-radius: 0.4em; background: rgb(var(--ink-rgb) / 0.1); animation: sc-build 12s calc(1.1s + var(--i) * 0.55s) infinite both; }
.sc-ui .ui-nav { grid-column: 1 / -1; height: 0.9em; }
.sc-ui .ui-hero { grid-column: 1 / -1; height: 3.6em; background: linear-gradient(120deg, rgba(126, 211, 199, 0.3), rgba(126, 211, 199, 0.08)); }
.sc-ui .ui-card { height: 2.9em; }
.sc-ui .ui-btn { height: 1.5em; border-radius: 99em; background: var(--coral); }
@keyframes sc-type { 0% { transform: scaleX(0); opacity: 0.85; } 5%, 74% { transform: scaleX(1); opacity: 0.85; } 80%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes sc-build { 0% { opacity: 0; transform: translateY(0.5em) scale(0.96); } 5%, 66% { opacity: 1; transform: none; } 72%, 100% { opacity: 0; transform: none; } }
@keyframes sc-live { 0%, 30% { opacity: 0; } 34%, 66% { opacity: 1; } 72%, 100% { opacity: 0; } }

/* vertical video ad */
.sc-reel { position: relative; width: 11.2em; height: 19.8em; border-radius: 1.5em; overflow: hidden; }
.reel-shot { position: absolute; inset: 0; opacity: 0; animation: reel-cut 9s infinite both; }
.reel-shot i { position: absolute; display: block; font-style: normal; }
.shot-a { opacity: 1; background: linear-gradient(180deg, #1B3358 0%, #27456F 60%, #0F2038 60%, #0F2038 100%); }
.shot-a .sun { left: 50%; top: 60%; width: 4.6em; height: 4.6em; margin: -3.4em 0 0 -2.3em; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #FFA691, #FF6B57 60%, #DE4D3A); animation: reel-sun 9s infinite both; }
.shot-a .ground { left: 0; right: 0; top: 60%; bottom: 0; background: #0F2038; }
.shot-b { background: linear-gradient(160deg, #114046, #0B2530); animation-delay: 3s; }
.shot-b .tile { left: 2.2em; right: 2.2em; top: 3.6em; height: 6.6em; border-radius: 0.8em; background: rgb(var(--ink-rgb) / 0.16); border: 1px solid rgb(var(--ink-rgb) / 0.25); }
.shot-b .line { left: 2.2em; height: 0.5em; border-radius: 99em; background: rgb(var(--ink-rgb) / 0.4); }
.shot-b .l1 { top: 11.2em; width: 5.2em; }
.shot-b .l2 { top: 12.3em; width: 3.4em; background: var(--tide); }
.shot-c { background: linear-gradient(160deg, #FF7A63, #E4503C); animation-delay: 6s; }
.shot-c .cta { left: 50%; top: 42%; transform: translate(-50%, -50%); white-space: nowrap; padding: 0.55em 1.1em; border-radius: 99em; background: var(--moonlight); color: var(--ink); font-weight: 700; font-size: 0.95em; line-height: 1.2; }
.reel-tag { position: absolute; left: 0.8em; top: 0.8em; padding: 0.3em 0.65em; border-radius: 99em; background: rgba(6, 13, 27, 0.62); color: var(--moonlight); font-size: 0.68em; font-weight: 600; line-height: 1; }
.reel-cap { position: absolute; left: 0.8em; right: 0.8em; bottom: 2.3em; height: 1.9em; }
.reel-cap span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 0.45em; background: rgba(6, 13, 27, 0.74); color: var(--moonlight); font-size: 0.86em; font-weight: 700; line-height: 1; white-space: nowrap; opacity: 0; animation: reel-cut 9s infinite both; }
.reel-cap span:nth-child(1) { opacity: 1; }
.reel-cap span:nth-child(2) { animation-delay: 3s; }
.reel-cap span:nth-child(3) { animation-delay: 6s; }
.reel-bar { position: absolute; left: 0.8em; right: 0.8em; bottom: 1em; height: 0.24em; border-radius: 99em; background: rgb(var(--ink-rgb) / 0.25); overflow: hidden; }
.reel-bar i { display: block; height: 100%; border-radius: 99em; background: var(--moonlight); transform-origin: left center; transform: scaleX(0.62); animation: reel-bar 9s linear infinite; }
@keyframes reel-cut { 0% { opacity: 0; } 4%, 33.3% { opacity: 1; } 37.3%, 100% { opacity: 0; } }
@keyframes reel-sun { 0% { transform: translateY(3.2em); } 30%, 100% { transform: translateY(0); } }
@keyframes reel-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* reach line */
.sc-pulse { width: 13.6em; height: 7.6em; border-radius: 0.9em; padding: 0.8em 1em 0.7em; display: flex; flex-direction: column; gap: 0.35em; }
.pulse-label { font-size: 0.78em; font-weight: 600; line-height: 1; color: var(--mist); }
.sc-pulse svg { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.pulse-line { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; animation: pulse-draw 10s ease-in-out infinite; }
.pulse-dot { fill: var(--moonlight); animation: pulse-dot 10s infinite; }
@keyframes pulse-draw { 0% { stroke-dashoffset: 100; opacity: 1; } 40%, 88% { stroke-dashoffset: 0; opacity: 1; } 96%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pulse-dot { 0%, 37% { opacity: 0; } 42%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* assistant chat */
.d-chat { width: 14.5em; padding: 1em; border-radius: 1em; display: flex; flex-direction: column; gap: 0.7em; }
.d-chat .me { align-self: flex-end; max-width: 88%; padding: 0.55em 0.8em; border-radius: 0.9em 0.9em 0.2em 0.9em; background: var(--coral); color: var(--ink); font-size: 0.8em; font-weight: 600; line-height: 1.25; animation: chat-me 9s infinite both; }
.d-chat .ai { position: relative; align-self: flex-start; width: 80%; min-height: 3.5em; padding: 0.75em 0.8em; border-radius: 0.9em 0.9em 0.9em 0.2em; background: rgb(var(--ink-rgb) / 0.1); }
.d-chat .dots { position: absolute; left: 0.8em; top: 1.1em; display: flex; gap: 0.3em; opacity: 0; animation: chat-dots 9s infinite both; }
.d-chat .dots i { width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--mist); }
.d-chat .lines { display: flex; flex-direction: column; gap: 0.45em; }
.d-chat .lines b { display: block; height: 0.42em; border-radius: 99em; background: rgb(var(--ink-rgb) / 0.55); transform-origin: left center; animation: chat-line 9s infinite both; }
.d-chat .lines b:nth-child(2) { width: 86%; animation-delay: 0.25s; }
.d-chat .lines b:nth-child(3) { width: 58%; animation-delay: 0.5s; }
.d-chat .chip { align-self: flex-start; animation: chat-chip 9s infinite both; }
@keyframes chat-me { 0% { opacity: 0; transform: translateY(0.5em); } 6%, 84% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
@keyframes chat-dots { 0%, 9% { opacity: 0; } 12%, 28% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes chat-line { 0%, 31% { transform: scaleX(0); opacity: 1; } 38%, 80% { transform: scaleX(1); opacity: 1; } 86%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes chat-chip { 0%, 46% { opacity: 0; transform: scale(0.8); } 50%, 84% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

/* content calendar */
.d-cal { width: 13em; padding: 0.9em; border-radius: 0.9em; display: flex; flex-direction: column; gap: 0.75em; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; }
.cal-head > span:first-child { font-size: 0.78em; font-weight: 600; line-height: 1; color: var(--mist); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.36em; }
.cal-grid i { position: relative; aspect-ratio: 1; border-radius: 0.3em; background: rgb(var(--ink-rgb) / 0.07); }
.cal-grid i.p::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c, var(--coral)); animation: cal-pop 10s calc(var(--i) * 0.42s) infinite both; }
@keyframes cal-pop { 0% { transform: scale(0.2); opacity: 0; } 5%, 58% { transform: none; opacity: 1; } 64%, 100% { opacity: 0; } }

/* launch checklist, ticking itself off */
.d-check, .d-fix { width: 15em; padding: 1em; border-radius: 0.9em; display: flex; flex-direction: column; gap: 0.85em; }
.ck-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; min-height: 1.5em; }
.ck-head > span:first-child { font-size: 0.78em; font-weight: 600; line-height: 1; color: var(--mist); }
.ck-head .chip { animation: ck-chip 10s infinite both; }
.d-check ul, .d-fix ul { display: flex; flex-direction: column; gap: 0.6em; }
.d-check li { display: flex; align-items: center; gap: 0.7em; font-size: 0.84em; font-weight: 500; line-height: 1.1; color: var(--moonlight); white-space: nowrap; }
.d-check li i { position: relative; flex: none; width: 1.3em; height: 1.3em; border-radius: 0.36em; background: var(--tide); box-shadow: inset 0 0 0 1px rgba(126, 211, 199, 0.55); animation: ck-box 10s calc(0.5s + var(--i) * 0.8s) infinite both; }
.d-check li i::after { content: ""; position: absolute; left: 0.44em; top: 0.2em; width: 0.3em; height: 0.62em; border: solid var(--sky-0); border-width: 0 0.17em 0.17em 0; transform: rotate(45deg); }
@keyframes ck-box { 0% { background: transparent; transform: scale(0.82); } 4%, 60% { background: var(--tide); transform: none; } 66%, 100% { background: transparent; transform: none; } }
@keyframes ck-chip { 0%, 38% { opacity: 0; transform: scale(0.8); } 42%, 60% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; } }

/* a test run going from failing to passing */
.d-fix { width: 15.5em; }
.d-fix li { display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.7em; border-radius: 0.5em; background: rgb(var(--ink-rgb) / 0.055); font-size: 0.8em; font-weight: 500; line-height: 1; color: var(--moonlight); white-space: nowrap; }
.d-fix li i { flex: none; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--tide); animation: fx-dot 10s calc(0.8s + var(--i) * 0.9s) infinite both; }
.d-fix li em { position: relative; margin-left: auto; font-style: normal; font-weight: 600; }
.d-fix li em b { font-weight: inherit; }
.d-fix li em .bad { position: absolute; right: 0; top: 0; color: var(--coral-lit); opacity: 0; animation: fx-bad 10s calc(0.8s + var(--i) * 0.9s) infinite both; }
.d-fix li em .good { color: var(--tide); animation: fx-good 10s calc(0.8s + var(--i) * 0.9s) infinite both; }
@keyframes fx-dot { 0% { background: var(--coral); } 5%, 58% { background: var(--tide); } 64%, 100% { background: var(--coral); } }
@keyframes fx-bad { 0% { opacity: 1; } 4%, 60% { opacity: 0; } 64%, 100% { opacity: 1; } }
@keyframes fx-good { 0% { opacity: 0; } 5%, 58% { opacity: 1; } 62%, 100% { opacity: 0; } }

/* landing page with a visitor clicking through */
.d-page { position: relative; width: 15em; height: 10.8em; border-radius: 0.9em; overflow: hidden; display: flex; flex-direction: column; }
.pg-body { flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 0.9em; padding: 1em; align-items: center; }
.pg-text { display: flex; flex-direction: column; gap: 0.5em; align-items: flex-start; }
.pg-text b { display: block; height: 0.62em; border-radius: 99em; background: rgb(var(--ink-rgb) / 0.75); }
.pg-text b:nth-child(1) { width: 100%; }
.pg-text b:nth-child(2) { width: 70%; }
.pg-text b:nth-child(3) { width: 88%; height: 0.36em; background: rgb(var(--ink-rgb) / 0.3); }
.pg-btn { position: relative; margin-top: 0.35em; padding: 0.5em 0.9em; border-radius: 0.5em; background: var(--coral); color: var(--ink); font-size: 0.74em; font-weight: 700; line-height: 1; white-space: nowrap; animation: pg-press 7s infinite both; }
.pg-btn::after { content: ""; position: absolute; inset: -0.5em; border-radius: 0.9em; border: 1px solid var(--coral); opacity: 0; animation: pg-ripple 7s infinite both; }
.pg-img { align-self: stretch; border-radius: 0.6em; background: linear-gradient(140deg, rgba(126, 211, 199, 0.3), rgba(126, 211, 199, 0.06)); }
.pg-cursor { position: absolute; left: 3.3em; top: 7.2em; width: 1.2em; height: 1.2em; fill: var(--moonlight); stroke: var(--ink); stroke-width: 1; animation: pg-cursor 7s var(--ease) infinite both; }
@keyframes pg-cursor { 0%, 8% { transform: translate(9em, 2.4em); opacity: 0; } 14% { opacity: 1; } 42%, 78% { transform: none; opacity: 1; } 88%, 100% { transform: none; opacity: 0; } }
@keyframes pg-press { 0%, 46% { transform: none; } 50% { transform: scale(0.92); } 55%, 100% { transform: none; } }
@keyframes pg-ripple { 0%, 49% { opacity: 0; transform: scale(0.8); } 52% { opacity: 0.9; } 70%, 100% { opacity: 0; transform: scale(1.25); } }

/* phone app */
.d-phone { position: relative; width: 9.4em; height: 17em; border-radius: 1.6em; padding: 1.5em 0.8em 0.8em; display: flex; flex-direction: column; gap: 0.6em; overflow: hidden; }
.ph-notch { position: absolute; left: 50%; top: 0.5em; width: 2.6em; height: 0.5em; margin-left: -1.3em; border-radius: 99em; background: rgb(var(--ink-rgb) / 0.2); }
.ph-title { display: block; width: 55%; height: 0.7em; border-radius: 99em; background: rgb(var(--ink-rgb) / 0.75); }
.ph-list { flex: 1; display: flex; flex-direction: column; gap: 0.5em; }
.ph-list i { position: relative; display: block; height: 2.15em; border-radius: 0.55em; background: rgb(var(--ink-rgb) / 0.08); animation: ph-row 8s calc(var(--i) * 0.28s) infinite both; }
.ph-list i::before { content: ""; position: absolute; left: 0.5em; top: 50%; width: 1.1em; height: 1.1em; margin-top: -0.55em; border-radius: 50%; background: var(--c, rgb(var(--ink-rgb) / 0.3)); }
.ph-list i::after { content: ""; position: absolute; left: 2.1em; right: 1.4em; top: 50%; height: 0.36em; margin-top: -0.18em; border-radius: 99em; background: rgb(var(--ink-rgb) / 0.35); }
.ph-tabs { position: relative; display: flex; justify-content: space-around; padding: 0.55em 0.4em 0.2em; border-top: 1px solid var(--line); }
.ph-tabs i { width: 1em; height: 1em; border-radius: 0.3em; background: rgb(var(--ink-rgb) / 0.25); }
.ph-tabs .ph-dot { position: absolute; left: 16.6%; bottom: -0.25em; width: 0.4em; height: 0.4em; margin-left: -0.2em; border-radius: 50%; background: var(--coral); animation: ph-dot 8s var(--ease) infinite both; }
@keyframes ph-row { 0% { opacity: 0; transform: translateX(1.4em); } 7%, 80% { opacity: 1; transform: none; } 87%, 100% { opacity: 0; } }
@keyframes ph-dot { 0%, 30% { left: 16.6%; } 38%, 62% { left: 50%; } 70%, 100% { left: 83.3%; } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: rgb(var(--deep-rgb) / 0.35); }
.ticker-track { display: flex; width: max-content; animation: ticker 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; }
.ticker li { display: inline-flex; align-items: center; gap: 28px; padding: 17px 14px; white-space: nowrap; }
.ticker li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections: an index row, a heading, then ruled cells ---------- */
.sec-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px var(--pad); border-bottom: 1px solid var(--line); }
.sec-label .idx { color: var(--coral-lit); }
.sec-head { display: flex; flex-direction: column; gap: 22px; padding: clamp(56px, 7vw, 104px) var(--pad) clamp(44px, 5vw, 72px); max-width: 60rem; }
.sec .box { border-bottom: 1px solid var(--line); }

.cells { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-top: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
.cell { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: var(--pad); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); isolation: isolate; }
.cell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(24rem circle at var(--mx, 50%) var(--my, 0%), rgba(255, 107, 87, 0.1), transparent 62%); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.cell:hover::before { opacity: 1; }
.cell > p { color: var(--mist); }
.cell .tag { display: flex; justify-content: space-between; gap: 12px; }
.cell .more { margin-top: auto; padding-top: 10px; }
.cell-stage { display: flex; align-items: center; justify-content: center; height: 20em; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 6px; border-bottom: 1px solid var(--line); overflow: hidden; font-size: clamp(9px, 0.9vw, 13px); background: radial-gradient(60% 80% at 50% 110%, rgba(255, 107, 87, 0.09), transparent 70%), rgb(var(--deep-rgb) / 0.35); transition: background-color 0.3s; }
.cell-stage .card { transition: transform 0.6s var(--ease); }
.cell:hover .cell-stage .card { transform: translateY(-0.6em) scale(1.03); }
.cell-stage.pair { gap: 1.6em; }
.cell-stage .sc-reel, .cell-stage .d-phone { font-size: 0.82em; }
.cell-stage .d-check, .cell-stage .d-fix { font-size: 1.3em; }
.cell-stage.pair .d-check, .cell-stage.pair .d-fix { font-size: 1.05em; }
.nb { white-space: nowrap; }

.ticks { display: flex; flex-direction: column; gap: 11px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }

/* phases: a real sequence, marked with the phases of the moon, joined by one line */
.phases { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); margin-right: -1px; }
.phase { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: var(--pad); border-right: 1px solid var(--line); }
.phase svg { position: relative; z-index: 1; width: 52px; height: 52px; margin-bottom: 14px; background: radial-gradient(circle, var(--phase-bg) 58%, transparent 60%); }
.phase::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--pad) + 26px); height: 1px; background: linear-gradient(90deg, var(--coral), rgba(255, 107, 87, 0.25)); transform-origin: left center; }
.phase:first-child::before { left: calc(var(--pad) + 26px); }
.phase:last-child::before { right: calc(100% - var(--pad) - 26px); }
.phase p { color: var(--mist); }
.phase .get { margin-top: auto; padding-top: 14px; display: flex; flex-direction: column; gap: 6px; color: var(--moonlight); font-weight: 500; }
.moon-rim { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.moon-lit { fill: var(--coral); }
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.reveal-all) .phases[data-reveal] { opacity: 1; transform: none; }
  html.js:not(.reveal-all) .phases[data-reveal] .phase > * { opacity: 0; transform: translateY(18px); }
  html.js:not(.reveal-all) .phases[data-reveal] .phase::before { transform: scaleX(0); }
  html.js .phases[data-reveal].in .phase > * { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--n) * 0.22s + 0.1s); }
  html.js .phases[data-reveal].in .phase::before { transform: scaleX(1); transition: transform 0.7s linear; transition-delay: calc(var(--n) * 0.22s); }
}

/* the founder's voice: a pull quote on the home page, a short letter on the About page */
.note { margin: 0; display: flex; flex-direction: column; gap: 26px; padding: clamp(40px, 6vw, 84px) var(--pad); border-top: 1px solid var(--line); background: radial-gradient(40rem circle at 0% 50%, rgba(255, 107, 87, 0.08), transparent 70%); }
.note blockquote { margin: 0; max-width: 26em; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.7rem); line-height: 1.18; letter-spacing: -0.01em; color: var(--moonlight); }
.note blockquote::before { content: "\201C"; color: var(--coral-lit); margin-left: -0.42em; padding-right: 0.02em; }
.note blockquote::after { content: "\201D"; color: var(--coral-lit); }
.note figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.letter-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr); border-top: 1px solid var(--line); }
.letter { display: flex; flex-direction: column; gap: 22px; padding: clamp(32px, 4vw, 56px) var(--pad) clamp(48px, 6vw, 80px); max-width: 46rem; }
.facts { margin: 0; border-left: 1px solid var(--line); align-self: stretch; }
.facts > div { display: flex; flex-direction: column; gap: 8px; padding: 22px var(--pad); border-bottom: 1px solid var(--line); }
.facts dd { margin: 0; font-weight: 560; line-height: 1.4; }
.letter p { font-size: var(--step-1); line-height: 1.6; color: var(--mist); }
.letter p:first-child { color: var(--moonlight); }
.letter .sign { padding-top: 10px; }

/* price list */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 0.8fr); gap: 12px 32px; align-items: baseline; padding: 22px var(--pad); border-bottom: 1px solid var(--line); transition: background-color 0.25s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--wash); }
.row p { color: var(--mist); }
.row .amount { font-family: var(--display); font-weight: 660; font-stretch: 112%; font-size: var(--step-2); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: right; }
.row .amount small { display: block; margin-top: 8px; font-family: var(--body); font-weight: 400; font-stretch: 100%; font-size: var(--step--1); letter-spacing: 0; color: var(--mist); }
.row .amount.words { font-size: var(--step-1); }
.sec-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: var(--pad); border-top: 1px solid var(--line); }
.sec-foot p { color: var(--mist); max-width: 44em; }
.faq details p a { color: var(--moonlight); text-underline-offset: 0.2em; }
.faq details p a:hover { color: var(--coral-lit); }

/* offer */
.offer { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) auto; gap: 24px 48px; align-items: center; padding: clamp(32px, 5vw, 64px) var(--pad); overflow: hidden; isolation: isolate; }
.offer { background: radial-gradient(34rem circle at 88% 50%, rgba(255, 107, 87, 0.16), transparent 70%); border-top: 1px solid var(--line); }
.offer::before, .offer::after { content: ""; position: absolute; z-index: -1; right: 12%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 107, 87, 0.28); transform: translate(50%, -50%) rotate(-14deg); }
.offer::before { width: 30rem; height: 18rem; }
.offer::after { width: 48rem; height: 29rem; border-color: rgba(255, 107, 87, 0.14); }
.offer h2 { font-size: var(--step-2); line-height: 1.1; }
.offer-copy { display: flex; flex-direction: column; gap: 14px; max-width: 44em; }
.offer-copy p { color: var(--mist); }

/* packages */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-right: -1px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: var(--pad); border-right: 1px solid var(--line); isolation: isolate; }
.plan-featured { background: linear-gradient(180deg, rgba(255, 107, 87, 0.1), rgba(255, 107, 87, 0.02)); }
.plan-featured::after { content: ""; position: absolute; inset: -1px 0 auto 0; height: 2px; background: var(--coral); }
.price { font-family: var(--display); font-weight: 680; font-stretch: 114%; font-size: clamp(2.3rem, 1.7rem + 1.9vw, 3.2rem); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--body); font-weight: 400; font-stretch: 100%; font-size: 1rem; letter-spacing: 0; color: var(--mist); margin-left: 8px; }
.plan .fit { color: var(--mist); }
.plan .ticks { padding-top: 18px; border-top: 1px solid var(--line); }
.plan .btn { margin-top: auto; }

/* anatomy of an ad */
.anatomy { padding: var(--pad); border-top: 1px solid var(--line); }
.anatomy-bar { position: relative; display: grid; grid-template-columns: 3fr 17fr 5fr; gap: 4px; height: 64px; }
.anatomy-bar > span { display: flex; align-items: flex-end; padding: 10px 12px; border-radius: 6px; background: rgb(var(--ink-rgb) / 0.07); overflow: hidden; white-space: nowrap; }
.anatomy-bar > span:nth-child(1) { background: rgba(255, 107, 87, 0.3); }
.anatomy-bar > span:nth-child(3) { background: rgba(126, 211, 199, 0.22); }
.anatomy-bar .playhead { position: absolute; top: -8px; bottom: -8px; left: 0; width: 2px; border-radius: 2px; padding: 0; background: var(--moonlight); box-shadow: 0 0 14px rgb(var(--ink-rgb) / 0.7); animation: playhead 10s linear infinite; }
@keyframes playhead { from { left: 0; } to { left: 100%; } }

/* questions */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 24px var(--pad); font-family: var(--display); font-weight: 620; font-stretch: 106%; font-size: var(--step-1); letter-spacing: -0.015em; list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; transition: background-color 0.25s; }
.faq summary:hover { background: var(--wash); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--tide), var(--tide)) center / 100% 2px no-repeat, linear-gradient(var(--tide), var(--tide)) center / 2px 100% no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mist); padding: 0 var(--pad) 26px; max-width: 46em; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] p { animation: rise 0.45s var(--ease); } }

/* closing call */
.closing { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.closing .box { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: clamp(80px, 12vw, 168px) var(--pad); }
.closing h2 { font-size: var(--step-4); max-width: 12em; }
.closing .lede { max-width: 30em; }
.closing .actions { justify-content: center; }
.closing-rings { position: absolute; left: 50%; top: 50%; z-index: -1; width: 0; height: 0; }
.closing-rings i { position: absolute; left: 0; top: 0; border: 1px solid rgb(var(--ink-rgb) / 0.08); border-radius: 50%; transform: translate(-50%, -50%) rotate(-14deg); animation: breathe 9s ease-in-out infinite alternate; }
.closing-rings i:nth-child(1) { width: 520px; height: 300px; border-color: rgba(255, 107, 87, 0.22); }
.closing-rings i:nth-child(2) { width: 860px; height: 500px; animation-delay: -3s; }
.closing-rings i:nth-child(3) { width: 1240px; height: 720px; animation-delay: -6s; }
@keyframes breathe { to { transform: translate(-50%, -50%) rotate(-10deg) scale(1.05); } }
.mail { font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.02em; color: var(--mist); overflow-wrap: anywhere; }

/* ---------- page head (inner pages) ---------- */
.pagehead { position: relative; isolation: isolate; overflow: hidden; padding-top: 68px; border-bottom: 1px solid var(--line); }
.pagehead .scene { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
.pagehead-copy { display: flex; flex-direction: column; gap: 24px; padding: clamp(72px, 9vw, 128px) var(--pad) clamp(56px, 7vw, 96px); max-width: 58rem; }
@media (prefers-reduced-motion: no-preference) {
  .pagehead-copy h1 { animation: rise 1s var(--ease) backwards; }
  .pagehead-copy .lede, .pagehead-copy .actions { animation: rise 1s 0.15s var(--ease) backwards; }
}
.prose { display: flex; flex-direction: column; gap: 1.1em; max-width: 44em; padding: clamp(40px, 6vw, 80px) var(--pad); }
.prose h2 { font-size: var(--step-2); line-height: 1.15; margin-top: 1.1em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--prose); }
.prose ul { display: flex; flex-direction: column; gap: 0.5em; padding-left: 1.2em; list-style: disc; }
.prose li::marker { color: var(--tide); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.contact-grid > * { padding: clamp(28px, 4vw, 56px) var(--pad); }
.contact-grid > *:first-child { border-right: 1px solid var(--line); }
.form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.98rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--moonlight); background: rgb(var(--deep-rgb) / 0.55); border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 13px 16px; min-height: 52px; transition: border-color 0.2s, background-color 0.2s; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(var(--ink-rgb) / 0.45); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--tide); outline-offset: 1px; border-color: var(--tide); }
.form .btn { align-self: flex-start; }
.optional { font-weight: 400; color: var(--mist); }
.field-error, .form-error { color: var(--error); font-size: var(--step--1); font-weight: 500; }
.field [aria-invalid="true"] { border-color: var(--coral); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-strong); border-radius: 16px; background: var(--wash); }
.form-done h2 { font-size: var(--step-2); }
.form-done:focus { outline: none; }
.aside { display: flex; flex-direction: column; gap: 32px; }
.aside > div { display: flex; flex-direction: column; gap: 10px; }
.aside p { color: var(--mist); }
.copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copy-btn { font: 600 0.9rem/1 var(--body); color: var(--moonlight); background: transparent; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 10px 14px; min-height: 40px; cursor: pointer; transition: border-color 0.2s; }
.copy-btn:hover { border-color: var(--moonlight); }

/* ---------- footer: the sea floor ---------- */
.site-footer { position: relative; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(4, 16, 21, 0.9) 40%); padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.2fr); margin-right: -1px; }
.foot-cols > div { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 48px) var(--pad); border-right: 1px solid var(--line); }
.site-footer ul { display: flex; flex-direction: column; gap: 9px; }
.site-footer li { color: var(--mist); overflow-wrap: anywhere; font-size: 0.97rem; }
.site-footer a { text-decoration: none; color: var(--mist); transition: color 0.2s; }
.site-footer a:hover { color: var(--moonlight); }
.site-footer p { color: var(--mist); font-size: var(--step--1); max-width: 24em; }
.wordmark { display: block; padding: clamp(34px, 6vw, 78px) var(--pad) 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 760; font-stretch: 125%; font-size: min(12.2vw, 10.7rem); line-height: 0.86; overflow: hidden; letter-spacing: -0.045em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(var(--ink-rgb) / 0.3); background: linear-gradient(100deg, rgba(255, 107, 87, 0) 30%, rgba(255, 107, 87, 0.55) 50%, rgba(255, 107, 87, 0) 70%) 0 0 / 250% 100% no-repeat; -webkit-background-clip: text; background-clip: text; animation: sheen 9s ease-in-out infinite alternate; user-select: none; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -20% 0; } }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px var(--pad); }
.site-footer .fine { max-width: none; padding: 0 var(--pad) 22px; font-size: 0.8rem; line-height: 1.5; color: rgb(var(--dust-rgb) / 0.72); }
.reef { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; pointer-events: none; }
.reef g { fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* page-head art: each service page shows its own subject in motion */
.pagehead-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; }
.pagehead-art { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 24px var(--pad) 24px 0; font-size: clamp(8px, 1.04vw, 15px); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .pagehead-art { animation: orbit-in 1.4s 0.2s var(--ease) backwards; } }

/* Software: a product assembling layer by layer — data, then logic, then interface — and going live */
.stack { position: relative; width: 36em; height: 31em; }
.plate { position: absolute; left: 41%; top: 52%; width: 15em; height: 15em; margin: -7.5em 0 0 -7.5em; padding: 1.5em; border: 1px solid rgb(var(--ink-rgb) / 0.3); border-radius: 1.3em; background: rgba(12, 24, 44, 0.84); box-shadow: 0.9em 0.9em 0 -1px rgb(var(--ink-rgb) / 0.05), 2.4em 2.4em 3.4em rgb(var(--shadow-rgb) / 0.6); transform: translateY(var(--y)) rotateX(58deg) rotateZ(45deg); animation: plate-in 12s var(--delay) infinite both; }
@keyframes plate-in { 0% { opacity: 0; transform: translateY(calc(var(--y) - 7em)) rotateX(58deg) rotateZ(45deg); } 8%, 82% { opacity: 1; transform: translateY(var(--y)) rotateX(58deg) rotateZ(45deg); } 88%, 100% { opacity: 0; transform: translateY(var(--y)) rotateX(58deg) rotateZ(45deg); } }
.plate-data { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8em; border-color: rgba(126, 211, 199, 0.45); }
.plate-data i { border-radius: 0.35em; border: 1px solid rgba(126, 211, 199, 0.5); background: rgba(126, 211, 199, 0.14); }
.plate-data i:nth-child(3n + 1) { background: rgba(126, 211, 199, 0.42); }
.plate-logic { display: flex; flex-direction: column; justify-content: center; gap: 0.95em; }
.plate-logic b { display: block; height: 0.55em; width: var(--w); margin-left: calc(var(--x, 0) * 1.1em); border-radius: 99em; background: var(--c, rgb(var(--ink-rgb) / 0.5)); }
.plate-ui { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; align-content: start; border-color: rgba(255, 107, 87, 0.55); }
.plate-ui span { display: block; border-radius: 0.45em; background: rgb(var(--ink-rgb) / 0.14); }
.plate-ui .ui-nav { grid-column: 1 / -1; height: 1.1em; }
.plate-ui .ui-hero { grid-column: 1 / -1; height: 4.2em; background: linear-gradient(120deg, rgba(126, 211, 199, 0.4), rgba(126, 211, 199, 0.1)); }
.plate-ui .ui-card { height: 3em; }
.plate-ui .ui-btn { height: 1.6em; border-radius: 99em; background: var(--coral); }
.stack-beam { position: absolute; left: 41%; top: 9%; bottom: 5%; width: 1px; background: linear-gradient(180deg, transparent, rgba(126, 211, 199, 0.55) 20%, rgba(126, 211, 199, 0.55) 80%, transparent); }
.stack-beam::after { content: ""; position: absolute; left: -0.4em; top: 4%; width: 0.85em; height: 0.85em; border-radius: 50%; background: var(--coral); box-shadow: 0 0 1.2em 0.2em rgba(255, 107, 87, 0.8); animation: packet 12s infinite both; }
@keyframes packet { 0%, 30% { top: 96%; opacity: 0; } 34% { top: 96%; opacity: 1; } 58% { top: 4%; opacity: 1; } 84% { top: 4%; opacity: 1; } 90%, 100% { top: 4%; opacity: 0; } }
.stack-tag { position: absolute; left: calc(41% + 12.4em); top: calc(52% + var(--y)); transform: translateY(-50%); display: inline-flex; align-items: center; gap: 0.9em; font-size: 0.86em; color: var(--moonlight); white-space: nowrap; }
.stack-tag::before { content: ""; width: 2.6em; height: 1px; background: var(--line-strong); }
.stack-live { position: absolute; left: 41%; top: 3%; transform: translateX(-50%); animation: stack-live 12s infinite both; }
@keyframes stack-live { 0%, 56% { opacity: 0; transform: translateX(-50%) scale(0.8); } 60%, 84% { opacity: 1; transform: translateX(-50%); } 90%, 100% { opacity: 0; transform: translateX(-50%); } }

/* Rescue: the same app with its problems and with them fixed; a beam sweeps across and reveals the fixed one */
.scan { position: relative; width: 36em; height: 30em; }
.scan-layer { position: absolute; inset: 0; }
.scan-bad { opacity: 0; animation: scan-bad 12s linear infinite both; }
.scan-good { animation: scan-good 12s linear infinite both; }
.scan-win { position: absolute; left: 6em; top: 6.2em; width: 24em; height: 17em; border-radius: 1em; overflow: hidden; display: flex; flex-direction: column; background: #0B1628; }
.scan-ui { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; padding: 1.1em; align-content: start; }
.scan-ui span { display: block; border-radius: 0.45em; background: rgb(var(--ink-rgb) / 0.12); }
.scan-ui .ui-nav { grid-column: 1 / -1; height: 1.1em; }
.scan-ui .ui-hero { grid-column: 1 / -1; height: 4.6em; background: linear-gradient(120deg, rgba(126, 211, 199, 0.36), rgba(126, 211, 199, 0.08)); }
.scan-ui .ui-card { height: 3.4em; }
.scan-ui .ui-btn { grid-column: 1 / 2; height: 1.7em; border-radius: 99em; background: var(--coral); }
.scan-bad .scan-win { border-color: rgba(255, 107, 87, 0.5); }
.scan-bad .ui-hero { background: rgb(var(--ink-rgb) / 0.07); }
.scan-bad .flaw { background: repeating-linear-gradient(135deg, rgba(255, 107, 87, 0.5) 0 0.35em, transparent 0.35em 0.75em); outline: 1px dashed rgba(255, 107, 87, 0.8); outline-offset: -1px; }
.scan-bad .ui-btn { background: rgb(var(--ink-rgb) / 0.14); }
.scan-good .scan-win { border-color: rgba(126, 211, 199, 0.5); }
.pin { position: absolute; left: var(--x); top: var(--y); display: inline-grid; align-items: center; padding: 0.62em 1em 0.62em 2.2em; border-radius: 99em; border: 1px solid rgba(126, 211, 199, 0.45); background: #08191F; color: var(--tide); font-size: 0.95em; font-weight: 600; line-height: 1; white-space: nowrap; box-shadow: 0 1em 2em rgb(var(--shadow-rgb) / 0.5); }
.pin::before { content: ""; position: absolute; left: 0.95em; top: 50%; width: 0.6em; height: 0.6em; margin-top: -0.3em; border-radius: 50%; background: currentColor; }
.pin b { grid-area: 1 / 1; font-weight: inherit; }
.pin .ghost { visibility: hidden; }
.scan-bad .pin { border-color: rgba(255, 107, 87, 0.55); background: #1D1418; color: var(--coral-lit); }
.scan-beam { position: absolute; top: 2%; bottom: 2%; left: 100%; width: 2px; margin-left: -1px; background: linear-gradient(180deg, transparent, var(--tide) 18%, var(--tide) 82%, transparent); box-shadow: 0 0 1.6em 0.3em rgba(126, 211, 199, 0.45); opacity: 0; animation: scan-beam 12s linear infinite both; }
.scan-done { position: absolute; left: 50%; bottom: 0.4em; transform: translateX(-50%); animation: scan-done 12s infinite both; }
@keyframes scan-good { 0%, 8% { clip-path: inset(-3em 100% -3em -3em); opacity: 1; } 50%, 88% { clip-path: inset(-3em -3em -3em -3em); opacity: 1; } 96%, 100% { clip-path: inset(-3em -3em -3em -3em); opacity: 0; } }
@keyframes scan-bad { 0%, 50% { opacity: 1; } 53%, 90% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes scan-beam { 0%, 8% { left: 0; opacity: 0; } 10%, 48% { opacity: 1; } 50% { left: 100%; opacity: 0; } 100% { left: 100%; opacity: 0; } }
@keyframes scan-done { 0%, 52% { opacity: 0; transform: translateX(-50%) scale(0.8); } 56%, 86% { opacity: 1; transform: translateX(-50%); } 92%, 100% { opacity: 0; transform: translateX(-50%); } }

/* Marketing: an ad going out — waves reach the audience, people notice, and one of them gets in touch */
.reach { position: relative; width: 36em; height: 30em; }
.wave { position: absolute; left: 50%; top: 50%; width: 12em; height: 12em; margin: -6em 0 0 -6em; border-radius: 50%; border: 1px solid rgba(255, 107, 87, 0.7); opacity: 0.28; transform: scale(1.5); animation: wave 6s linear infinite; }
.wave:nth-child(2) { transform: scale(2.3); opacity: 0.18; animation-delay: -2s; }
.wave:nth-child(3) { transform: scale(3.1); opacity: 0.1; animation-delay: -4s; }
@keyframes wave { 0% { transform: scale(0.6); opacity: 0.95; } 100% { transform: scale(3.4); opacity: 0; } }
.soul { position: absolute; left: calc(50% + var(--x)); top: calc(50% + var(--y)); width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: rgb(var(--dust-rgb) / 0.42); animation: notice 6s var(--t) infinite both; }
.soul.on { background: var(--coral); }
@keyframes notice { 0% { background: rgb(var(--dust-rgb) / 0.42); transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 107, 87, 0); } 5% { background: #FF6B57; transform: scale(1.9); box-shadow: 0 0 1em 0.2em rgba(255, 107, 87, 0.7); } 14%, 62% { background: #FF6B57; transform: scale(1.15); box-shadow: 0 0 0 0 rgba(255, 107, 87, 0); } 100% { background: rgb(var(--dust-rgb) / 0.42); transform: scale(1); } }
.reach-ad { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 0.62em; z-index: 2; }
.reach-chip { position: absolute; left: calc(50% + var(--x)); top: calc(50% + var(--y)); z-index: 3; animation: chip-pop 6s var(--t) infinite both; }
.reach-chip.coral { color: var(--ink); background: var(--coral); border-color: var(--coral); }
.reach-chip.coral::before { background: var(--ink); }
@keyframes chip-pop { 0% { opacity: 0; transform: translateY(0.6em) scale(0.8); } 6%, 58% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; transform: none; } }

/* footer wordmark: the logo sits in the top right corner of the block, its moon circling slowly */
.wordmark { position: relative; }
.wordmark svg { position: absolute; right: var(--pad); top: clamp(16px, 2.6vw, 34px); width: 0.34em; height: 0.34em; max-width: none; overflow: visible; filter: drop-shadow(0 0 0.08em rgba(255, 107, 87, 0.45)); }
.wordmark .orbiter { transform-origin: 50px 50px; animation: orbit-spin 16s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
.maillink { text-decoration: none; }
.mail .maillink, .mail.maillink { color: var(--mist); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.3em; transition: color 0.2s, text-decoration-color 0.2s; }
.mail .maillink:hover, .mail.maillink:hover { color: var(--moonlight); text-decoration-color: var(--coral); }
.cell h3 .maillink { color: var(--moonlight); }
.cell h3 .maillink:hover { color: var(--coral-lit); }
.prose .maillink { text-decoration: underline; }

/* ---------- narrower screens ---------- */
@media (max-width: 1020px) {
  .cells { --cols: 2 !important; }
  .phases { --cols: 2 !important; }
  .phase { border-bottom: 1px solid var(--line); }
  .phase::before { display: none; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-cols > div { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 56px 40px; }
  .orbit { font-size: min(1.7vw, 10px); max-width: 620px; margin-inline: auto; }
  .plans, .contact-grid, .offer, .pagehead-grid, .letter-grid { grid-template-columns: minmax(0, 1fr); }
  .facts { border-left: 0; border-top: 1px solid var(--line); }
  .pagehead-art { padding: 0 var(--pad) 48px; font-size: min(2.4vw, 12px); }
  .pagehead-copy { padding-bottom: 40px; }
  .plan { border-bottom: 1px solid var(--line); }
  .contact-grid > *:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row p { grid-column: 1 / -1; grid-row: 2; }
  .cell-stage { font-size: clamp(8.5px, 1.5vw, 11.5px); }
}
@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: rgb(var(--deep-rgb) / 0.6); color: var(--moonlight); font: 600 0.95rem/1 var(--body); cursor: pointer; }
  .site-header .frame { position: relative; }
  .nav { display: none; position: absolute; top: calc(100% + 6px); left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgb(var(--deep-rgb) / 0.97); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1.05rem; }
  .nav .btn { margin-top: 8px; }
  .anatomy-bar { height: 52px; }
  .anatomy-bar > span { padding: 8px; font-size: 0.6rem; letter-spacing: 0.06em; }
}
@media (max-width: 600px) {
  .cells { --cols: 1 !important; }
  .phases { --cols: 1 !important; }
  .cell-stage { font-size: clamp(8.5px, 2.7vw, 11.5px); }
  .actions .btn { flex: 1 1 100%; }
  .form .btn { align-self: stretch; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .sec-label .mono:last-child { display: none; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .amount { text-align: left; }
  .row p { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
