/*  Orion site: the home page's sections, top to bottom. Every section is
 *  finished without JavaScript; site.js makes the two sliders work.
 */

/* ---------- hero: one line, one button, then the app ---------- */
/* Measured off screen.studio at 1440 (2026-10-30): mark 76px at y108, headline
   72px at y256, sub-line 21px/500 grey 780px wide with bold white spans, pill
   button, 12px requirement line, then a 1250px rounded plate with the window
   on it. The same rhythm here, scaled by the viewport below 1440. */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(28px, 3vw, 44px)); text-align: center; }
.hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero__mark { width: clamp(64px, 6.7vw, 96px); height: auto; margin-bottom: clamp(32px, 4vw, 56px); filter: drop-shadow(0 0 18px rgba(242, 244, 251, 0.16)); }   /* the brand's glow; never the accent in the mark (#407) */
/* the sky: two layers of stars (site.js places them), twinkling out of phase; faded out before the plate */
.sky { position: absolute; inset: 0 0 auto 0; height: 720px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
.sky i { position: absolute; left: calc(50% - 720px); top: 0; width: 1px; height: 1px; border-radius: 50%; background: transparent; color: #fff; animation: twinkle 5s ease-in-out infinite; }
.sky i:nth-child(2) { animation-delay: -2.5s; animation-duration: 7s; color: var(--accent); }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
/* comets: a streak with a white head and a cyan tail, crossing the sky now and then; site.js moves each one between passes */
.sky b { position: absolute; top: 12%; left: 18%; width: 150px; height: 2px; border-radius: 2px; opacity: 0; transform: rotate(26deg); transform-origin: right center;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 100%); animation: comet 6s linear infinite; }
.sky b::after { content: ""; position: absolute; right: -2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 2px #fff, 0 0 16px 4px color-mix(in srgb, var(--accent) 70%, transparent); }
.sky b:nth-of-type(2) { top: 34%; left: 58%; width: 110px; animation-delay: 2s; animation-duration: 7s; }
.sky b:nth-of-type(3) { top: 6%; left: 40%; width: 130px; animation-delay: 4s; animation-duration: 6.5s; }
@keyframes comet { 0%, 100% { opacity: 0; translate: 0 0; } 4% { opacity: 1; } 24% { opacity: 1; } 30% { opacity: 0; translate: 900px 439px; } }
/* the mark drifts, the headline comes into focus once */
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero .hero__mark { animation: rise 700ms var(--ease-out) both, drift 6s ease-in-out 700ms infinite; }
@keyframes focus { from { opacity: 0; filter: blur(12px); transform: translateY(10px); } }
.hero .h1 { animation: focus 1100ms var(--ease-out) 60ms both; }
.hero .h1 { max-width: 14ch; }
@media (min-width: 1280px) { .hero .h1 { max-width: none; white-space: nowrap; } }
.hero .lede { margin-top: clamp(20px, 2vw, 28px); max-width: 780px; font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.3125rem); line-height: 1.38; }
.hero .lede b { font-weight: 500; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }
.hero__req { margin-top: var(--s-4); }
/* the one page-load moment: copy, then the window, rise into place once */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.hero__copy > * { animation: rise 700ms var(--ease-out) both; }
.hero__copy > :nth-child(2) { animation-delay: 70ms; }
.hero__copy > :nth-child(3) { animation-delay: 140ms; }
.hero__copy > :nth-child(4) { animation-delay: 210ms; }
.hero__copy > :nth-child(5) { animation-delay: 280ms; }
.stage__window { animation: rise 900ms var(--ease-out) 320ms both; }

/* ---------- the stage: full width, a living light behind the window, no edges ---------- */
.stage { position: relative; width: 100%; margin: clamp(40px, 4vw, 56px) auto 0; padding: clamp(32px, 6vw, 96px) 0; overflow: hidden; background: #07070a; }
.stage::after {   /* the light fades into the ground above and below, so the stage has no edge */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--ground) 0%, transparent 10%, transparent 90%, var(--ground) 100%);
}
/* the aurora: five lights, each a blurred disc on its own slow path; they add where they cross (screen), like coloured lamps through frosted glass */
.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }   /* its own stacking context: nothing in it ever paints over the window */
.aurora span { position: absolute; width: 50vw; min-width: 520px; aspect-ratio: 1; border-radius: 50%; mix-blend-mode: screen; filter: blur(40px) saturate(1.3); will-change: transform;
  background: radial-gradient(circle, var(--c) 0%, transparent 62%); animation: light var(--t) ease-in-out infinite alternate; }
.aurora span:nth-child(1) { --c: var(--accent); --t: 11s; left: -8%; top: -20%; }
.aurora span:nth-child(2) { --c: var(--status); --t: 14s; right: -6%; top: 10%; animation-delay: -5s; }
.aurora span:nth-child(3) { --c: #2f55e0; --t: 17s; left: 30%; top: 30%; animation-delay: -9s; }
.aurora span:nth-child(4) { --c: color-mix(in srgb, var(--accent) 65%, #fff); --t: 9s; left: 55%; top: -30%; width: 30vw; animation-delay: -3s; }
.aurora span:nth-child(5) { --c: color-mix(in srgb, var(--status) 60%, #ff7a3d); --t: 13s; left: 10%; top: 45%; width: 32vw; animation-delay: -7s; }
.aurora.is-sim span { left: 0; right: auto; top: 0; animation: none; }
/* the core: a dark sphere behind the window with a cyan atmosphere at its rim; the lights orbit it on tilted rings, in front of it or hidden behind */
.aurora__core { position: absolute; left: 50%; top: 50%; height: 88%; aspect-ratio: 1; translate: -50% -50%; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #161b22 0%, #0a0c10 55%, #060608 72%);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, #fff), 0 0 40px 8px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 140px 30px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 40px 100px -30px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { scale: 1; } to { scale: 1.025; } }
.aurora--core span { z-index: 0; }
@keyframes light { 0% { transform: translate(0, 0) scale(1); } 35% { transform: translate(28vw, 18vh) scale(1.25); } 70% { transform: translate(8vw, 40vh) scale(0.9); } 100% { transform: translate(40vw, -6vh) scale(1.1); } }
.stage__in { position: relative; z-index: 1; width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 400ms var(--ease-out); transform-style: preserve-3d; }
.stage__window { position: relative; aspect-ratio: 8 / 5; border-radius: var(--r); overflow: hidden; background: var(--panel); box-shadow: var(--shadow-window), var(--ring); }
.stage__window img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.stage__window img:nth-child(4) { opacity: 1; }   /* 0 EV, until the slider moves */
/* an invisible range over the app's own Exposure slider: drag the real control */
.stage__grab { position: absolute; left: 78.75%; top: 57%; width: 20%; height: 8%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y; }   /* the app's track, measured on the frame: -5 to +5 EV */
.stage__grab::-webkit-slider-runnable-track { height: 100%; }
.stage__grab::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 100%; }   /* a hairline thumb, so the pointer's x is the value */
.stage__grab::-moz-range-thumb { width: 2px; height: 100%; border: 0; background: transparent; }
.stage__window:has(.stage__grab:focus-visible)::after { content: ""; position: absolute; left: 78%; top: 55.5%; width: 21.5%; height: 11%; border-radius: var(--r-sm); outline: 2px solid var(--accent); pointer-events: none; }
@media (max-width: 900px) { .stage__grab { display: none; } }
html:not(.js) .stage__grab, html:not(.js) .stage__ctl { display: none; }

/* the same control, drawn the way the Develop panel draws it, under the window */
.stage__ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-4); width: min(560px, 100%); margin: var(--s-5) auto 0; padding: var(--s-2) var(--s-4); border-radius: var(--r); background: var(--veil); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--ring); }
@media (prefers-reduced-transparency: reduce) { .stage__ctl { background: var(--panel); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.stage__name { font-size: var(--fs-sm); color: var(--text-2); }
.stage__val { font-family: var(--mono); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; min-width: 6.5ch; text-align: right; color: var(--text-2); }
.stage__val.is-changed { color: var(--accent); }
.range { --lo: 0.5; --hi: 0.5; display: block; width: 100%; height: 36px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: ew-resize; touch-action: pan-y; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); background: linear-gradient(to right, var(--well) calc(13px + (100% - 26px) * var(--lo)), var(--accent) calc(13px + (100% - 26px) * var(--lo)) calc(13px + (100% - 26px) * var(--hi)), var(--well) calc(13px + (100% - 26px) * var(--hi))); }
.range::-moz-range-track { height: 6px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); background: linear-gradient(to right, var(--well) calc(13px + (100% - 26px) * var(--lo)), var(--accent) calc(13px + (100% - 26px) * var(--lo)) calc(13px + (100% - 26px) * var(--hi)), var(--well) calc(13px + (100% - 26px) * var(--hi))); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 16px; margin-top: -5px; border-radius: 4px; background: linear-gradient(#e4e4e5, #a7a7aa); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.range::-moz-range-thumb { width: 26px; height: 16px; border: 0; border-radius: 4px; background: linear-gradient(#e4e4e5, #a7a7aa); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--accent); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 2px var(--accent); }

/* ---------- four real numbers ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin-top: clamp(var(--s-6), 5vw, var(--s-8)); list-style: none; padding: 0; }
.facts li { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.facts b { display: block; color: var(--accent); font-family: var(--mono); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.facts span { display: block; margin-top: var(--s-2); font-size: var(--fs-sm); color: var(--dim); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- one idea per section, centred ---------- */
.section__head { text-align: center; }
.section__head .small { margin-top: var(--s-3); }
.section__head .h2 { margin-inline: auto; max-width: 24ch; }

/* ---------- compare: the frame as shot and developed ---------- */
.cmp { --pos: 50%; position: relative; margin-top: clamp(var(--s-6), 4vw, var(--s-7)); aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--panel); user-select: none; -webkit-user-select: none; }
@media (max-width: 600px) { .cmp { aspect-ratio: 4 / 5; } }
.cmp > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; }
.cmp__after { clip-path: inset(0 0 0 var(--pos)); }
.cmp__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; margin-left: -0.5px; background: rgba(236, 236, 238, 0.9); box-shadow: 0 0 14px rgba(0, 0, 0, 0.45); pointer-events: none; }
.cmp__grip { position: absolute; top: 50%; left: clamp(24px, var(--pos), calc(100% - 24px)); translate: -50% -50%; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45); pointer-events: none; transition: scale var(--dur-1) var(--ease-out); }
.cmp__grip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cmp:has(.cmp__range:active) .cmp__grip { scale: 0.94; }
.cmp:has(.cmp__range:focus-visible) .cmp__grip { outline: 2px solid var(--accent); outline-offset: 4px; box-shadow: 0 0 0 4px var(--ground); }
.cmp__label { position: absolute; bottom: var(--s-4); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--veil); font: 400 var(--fs-xs)/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); pointer-events: none; transition: opacity var(--dur-1) var(--ease-out); }
.cmp__label--before { left: var(--s-4); } .cmp__label--after { right: var(--s-4); }
.cmp.is-low .cmp__label--before, .cmp.is-high .cmp__label--after { opacity: 0; }
.cmp__range { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; touch-action: pan-y; }
.cmp__range::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.cmp__range::-webkit-slider-thumb { -webkit-appearance: none; width: 64px; height: 100vh; }
.cmp__range::-moz-range-thumb { width: 64px; height: 100%; border: 0; background: transparent; }
html:not(.js) .cmp__range, html:not(.js) .cmp__grip { display: none; }

/* ---------- your files, and the MCP lines: two cards side by side ---------- */
/* ---------- Claude: three steps, then the one line in a terminal ---------- */
.mcp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5); align-items: center; width: min(1080px, 100%); margin: clamp(var(--s-6), 4vw, var(--s-7)) auto 0; }
.mcp__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.mcp__steps li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r); background: var(--panel); box-shadow: var(--ring); }
.mcp__steps .mono { grid-row: span 2; color: var(--accent); padding-top: 3px; }
.mcp__steps b { font-weight: 600; }
.mcp__steps li > span:last-child { font-size: var(--fs-md); color: var(--dim); }
.term { position: relative; margin: 0; border-radius: var(--r-lg); background: #0e0f11; box-shadow: var(--ring), 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 80px -30px color-mix(in srgb, var(--accent) 40%, transparent); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3e; }
.term__bar span { margin-left: auto; margin-right: auto; padding-right: 40px; font: 400 var(--fs-xs)/1 var(--mono); color: var(--dim); }
.term__body { margin: 0; padding: var(--s-5) var(--s-5) var(--s-4); font: 400 clamp(0.75rem, 1.05vw, 0.875rem)/1.7 var(--mono); color: var(--text); white-space: pre; overflow-x: auto; }
.term__p { color: var(--accent); }
.term__copy { position: absolute; top: 46px; right: 12px; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--raised); color: var(--text-2); font: 500 var(--fs-xs)/1 var(--sans); cursor: pointer; transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.term__copy:active { transform: scale(0.96); }
.term__copy.is-done { color: var(--accent); border-color: var(--accent); }
.term__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: var(--s-3) var(--s-5) var(--s-5); }
.term__tools code { padding: 4px 8px; border-radius: var(--r-sm); background: var(--raised); color: var(--text-2); font-size: var(--fs-xs); }
.term__tools .link { margin-left: auto; font-size: var(--fs-sm); color: var(--dim); }
@media (max-width: 860px) { .mcp { grid-template-columns: 1fr; } }
.files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); width: min(800px, 100%); margin: clamp(var(--s-6), 4vw, var(--s-7)) auto 0; }
.files div { padding: var(--s-5) var(--s-6); border-radius: var(--r); background: var(--panel); }
.files b { display: block; font-family: var(--mono); font-weight: 300; font-size: clamp(1.1rem, 1.8vw, 1.5rem); letter-spacing: -0.03em; line-height: 1.1; }
.files span { display: block; margin-top: var(--s-2); font-family: var(--mono); font-size: var(--fs-xs); color: var(--dim); }
.files div:last-child span { color: var(--accent); }
@media (max-width: 600px) { .files { grid-template-columns: 1fr; } }

/* ---------- features: a grid of cards, each a panel with its own hairline ---------- */
.build { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-top: clamp(var(--s-6), 4vw, var(--s-7)); counter-reset: card; }
.build__group { position: relative; padding: var(--s-5) var(--s-5) var(--s-6); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--raised), var(--panel)); box-shadow: var(--ring); overflow: hidden; transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out); }
.build__group::before { counter-increment: card; content: "0" counter(card); display: block; margin-bottom: var(--s-4); font: 400 var(--fs-xs)/1 var(--mono); letter-spacing: 0.12em; color: var(--accent); }
.build__group::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--dur-2) var(--ease-out);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%); }
@media (hover: hover) and (pointer: fine) { .build__group:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 24px 50px -30px rgba(0, 0, 0, 0.9); } .build__group:hover::after { opacity: 1; } }
.build__group .h3 { font-size: var(--fs-lg); }
.build__group ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.build__group li { position: relative; padding-left: var(--s-4); font-size: var(--fs-md); line-height: 1.45; color: var(--text-2); }
.build__group li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.build__group li + li { margin-top: var(--s-2); }
.build__later { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.build__later::before { content: "later"; color: var(--dim); }
.build__later .h3, .build__later li { color: var(--dim); }
.build__later li::before { background: var(--faint); }
.build__later::after { display: none; }
.build__cite { margin-top: var(--s-7); text-align: center; }
@media (max-width: 1000px) { .build { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .build { grid-template-columns: 1fr; } }

/* ---------- close: the ask, over the pier ---------- */
.close { position: relative; display: grid; align-items: center; min-height: min(80svh, 720px); margin-top: var(--section); overflow: hidden; }
.close__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.18); animation: drift-photo 36s ease-in-out infinite alternate; filter: brightness(0.55) saturate(1.3); }
@keyframes drift-photo { from { transform: scale(1.18) translate(2%, 1%); } to { transform: scale(1.24) translate(-2%, -1%); } }
.close::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(40% 55% at 50% 60%, rgba(11, 11, 12, 0.7), transparent 100%), linear-gradient(to bottom, var(--ground) 0%, transparent 30%, transparent 70%, var(--ground) 100%); }
.close__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: var(--section) clamp(var(--s-7), 8vh, var(--s-8)); }
.close .btn { margin-top: var(--s-5); }
.close .mono { margin-top: var(--s-4); color: var(--text-2); }

/* ---------- alive below the fold: things rise in as they arrive, the pier drifts ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
