/* Double Shot. Code and coffee.
   Legibility first: every block of text sits on a solid surface or a measured scrim, and
   nothing animated is ever behind it. Every clickable thing has a visible border, hover,
   focus and pressed state. Do not restyle .sc-stage or [data-sc-*] selectors: engine-owned. */

@font-face { font-family: "Geist"; src: url("../assets/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* six roles. Blue is the ground family, violet is the one accent. */
  --sc-canvas:     #070917;
  --sc-surface:    #0d1130;
  --sc-ink:        #e8ebff;
  --sc-ink-soft:   #b8c0f4;
  --sc-accent:     #a58bff;
  --sc-accent-ink: #0a0820;
  --sc-font-display: "Geist", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --panel:  #0b0e26;                 /* solid surface for anything with text on it */
  --panel2: #121744;
  --dim:    #9ba6e6;                 /* secondary labels, still 6:1 on the panels */
  --line:   color-mix(in oklab, var(--sc-ink) 15%, transparent);
  --line2:  color-mix(in oklab, var(--sc-ink) 30%, transparent);
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --bar-h:  3.6rem;
  --rp: 0;
}

html { background: var(--sc-canvas); color-scheme: dark; }
body { margin: 0; background: var(--sc-canvas); color: var(--sc-ink); font: 400 1.0625rem/1.65 var(--sc-font-text); }
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: .75rem; top: -4rem; z-index: 100; background: var(--sc-accent); color: var(--sc-accent-ink); padding: .6rem .9rem; border-radius: 6px; font: 600 .9rem var(--sc-font-mono); }
.skip:focus { top: .75rem; }
.skip--2 { left: auto; right: .75rem; }
.accent { color: var(--sc-accent); }

/* ---- buttons: always visibly buttons ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 2.9rem; padding: .65rem 1.25rem;
  font: 600 .98rem/1.2 var(--sc-font-mono); color: var(--sc-ink); text-decoration: none; cursor: pointer;
  background: rgb(13 17 48 / .72); border: 2px solid color-mix(in oklab, var(--sc-accent) 70%, transparent); border-radius: 9px;
  transition: background-color 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out), transform 100ms var(--sc-ease-out), color 140ms var(--sc-ease-out);
}
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { background: color-mix(in oklab, var(--sc-accent) 24%, rgb(13 17 48 / .9)); border-color: var(--sc-accent); } }
.btn--primary { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: color-mix(in oklab, #fff 16%, var(--sc-accent)); color: var(--sc-accent-ink); } }
.btn--sm { min-height: 2.5rem; padding: .45rem 1rem; font-size: .9rem; }
.btn--lg { min-height: 3.4rem; padding: .9rem 1.6rem; font-size: 1.1rem; }
.btn__sub { font-weight: 500; font-size: .92rem; opacity: .85; }

/* ---- top bar and the progress rail ---------------------------------------------------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--bar-h); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter); transition: background-color 200ms var(--sc-ease-out), border-color 200ms var(--sc-ease-out); border-bottom: 1px solid transparent;
}
.bar.is-solid { background: rgb(7 9 23); border-bottom-color: var(--line); }
.bar__mark { white-space: nowrap; display: inline-flex; align-items: center; font: 600 1.02rem/1 var(--sc-font-mono); color: var(--sc-ink); text-decoration: none; letter-spacing: -.01em; }
.bar__cup { display: inline-block; width: 1.15rem; height: .95rem; margin-right: .65rem; background: var(--sc-accent);
  clip-path: polygon(0 0, 78% 0, 78% 24%, 100% 24%, 100% 76%, 78% 76%, 78% 86%, 70% 100%, 8% 100%, 0 86%); }

.rail { position: fixed; z-index: 55; right: clamp(.5rem, 1.5vw, 1.3rem); top: 50%; transform: translateY(-50%); }
.rail__line { position: absolute; left: calc(.45rem + .375rem - 1px); top: .5rem; bottom: .5rem; width: 2px; background: var(--line); border-radius: 2px; }
.rail__line i { display: block; height: 100%; background: var(--sc-accent); border-radius: 2px; transform-origin: 50% 0; transform: scaleY(var(--rp)); }
.rail__list { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.rail__a { position: relative; display: block; padding: .45rem; text-decoration: none; }
.rail__dot { display: block; width: .75rem; height: .75rem; border-radius: 50%; background: var(--sc-canvas); border: 2px solid var(--dim); transition: background-color 140ms var(--sc-ease-out), border-color 140ms var(--sc-ease-out), transform 140ms var(--sc-ease-out); }
.rail__label {
  position: absolute; right: 1.9rem; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none; opacity: 0;
  padding: .3rem .6rem; background: var(--panel); border: 1px solid var(--line2); border-radius: 6px; color: var(--sc-ink); font: 500 .85rem/1.2 var(--sc-font-mono);
  transition: opacity 140ms var(--sc-ease-out);
}
.rail__a.is-active .rail__dot { background: var(--sc-accent); border-color: var(--sc-accent); transform: scale(1.25); }
.rail__a.is-active .rail__label, .rail__a:hover .rail__label, .rail__a:focus-visible .rail__label { opacity: 1; }

/* ---- the hero: terminal behaviour as type, over a blurred 3D background ----------------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: clip; background: var(--sc-canvas); }
.hero__bg { position: absolute; inset: -3%; width: 106%; height: 106%; display: block; z-index: 0; filter: blur(6px) saturate(1.15); opacity: var(--hero-o, 1); }
.hero__glow { position: absolute; z-index: 0; right: 4%; top: 46%; width: 52vw; max-width: 820px; aspect-ratio: 1; transform: translateY(-50%); pointer-events: none;
  background: radial-gradient(circle, rgb(165 139 255 / .26), transparent 62%); filter: blur(26px); opacity: var(--hero-o, 1); }
/* the scrim keeps the text side calm, so the scene can be as lively as it likes on the other side */
.hero__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(7 9 23 / .96) 0%, rgb(7 9 23 / .92) 48%, rgb(7 9 23 / .6) 64%, rgb(7 9 23 / .18) 82%, rgb(7 9 23 / .05) 100%); }
.hero__inner { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; width: 100%; max-width: 78rem; box-sizing: border-box; padding: calc(var(--bar-h) + 2.5rem) var(--gutter) 2.5rem; }

.tty { font: 400 1.08rem/1.7 var(--sc-font-mono); color: var(--sc-ink); }
.tty p { margin: 0; }
.tty .ps, .tty .q, .tty .ok { color: var(--sc-accent); font-weight: 600; }
.typed { white-space: pre; }
.intro__p .typed { white-space: normal; }
.caret { display: inline-block; width: .56em; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--sc-accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tty__status { color: var(--sc-ink-soft); }
.tty__q { margin-top: .55rem !important; }
.tty__hint { margin-left: .5rem; color: var(--dim); font-size: .92rem; }
.menu { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .3rem; width: max-content; max-width: 100%; }
.opt {
  display: flex; align-items: center; gap: .85rem; min-width: 17rem; min-height: 2.6rem; padding: .4rem 1.1rem .4rem .75rem; text-decoration: none; cursor: pointer;
  font: 500 1.05rem/1.2 var(--sc-font-mono); color: var(--sc-ink); background: rgb(13 17 48 / .62); border: 2px solid var(--line2); border-radius: 9px;
  transition: background-color 120ms var(--sc-ease-out), border-color 120ms var(--sc-ease-out), transform 100ms var(--sc-ease-out);
}
.opt__ptr { color: var(--sc-accent); width: 1.2ch; opacity: 0; }
.opt.is-hi, .opt:focus-visible { background: color-mix(in oklab, var(--sc-accent) 22%, rgb(13 17 48 / .9)); border-color: var(--sc-accent); }
.opt.is-hi .opt__ptr, .opt:focus-visible .opt__ptr { opacity: 1; }
.opt:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .opt:hover { background: color-mix(in oklab, var(--sc-accent) 22%, rgb(13 17 48 / .9)); border-color: var(--sc-accent); } .opt:hover .opt__ptr { opacity: 1; } }
.tty__done { color: var(--sc-ink-soft); }
.tty__done .chosen { color: var(--sc-ink); font-weight: 600; }

.intro { margin-top: 0; width: 100%; min-width: 0; }
.intro__h1 { margin: 0; font: 600 clamp(1.85rem, calc((min(100vw, 78rem) - 2 * var(--gutter)) / 14.5), 5.6rem)/1.02 var(--sc-font-mono); letter-spacing: -.035em; }
.h1__a, .h1__b { display: block; white-space: nowrap; }
.intro__kicker { display: flex; align-items: center; gap: .75rem; margin: 1.1rem 0 0; font: 500 clamp(1.15rem, .8rem + .9vw, 1.75rem)/1.3 var(--sc-font-mono); letter-spacing: -.01em; color: var(--sc-accent); }
.intro__cup { flex: none; width: 1.15em; height: .95em; background: currentColor;
  clip-path: polygon(0 0, 78% 0, 78% 24%, 100% 24%, 100% 76%, 78% 76%, 78% 86%, 70% 100%, 8% 100%, 0 86%); }
.intro__p { margin: 1.5rem 0 0; max-width: 44rem; font: 400 clamp(1.12rem, .95rem + .35vw, 1.3rem)/1.62 var(--sc-font-text); color: var(--sc-ink-soft); text-wrap: pretty; }
.intro__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; max-width: 44rem; margin-top: 2rem; }
.jump__label { grid-column: 1 / -1; margin-bottom: .1rem; font: 500 .92rem var(--sc-font-mono); color: var(--dim); }
.pill {
  display: flex; align-items: center; justify-content: space-between; min-height: 2.6rem; padding: .4rem 1rem; font: 500 .98rem/1 var(--sc-font-mono); color: var(--sc-ink); text-decoration: none; cursor: pointer;
  background: rgb(13 17 48 / .68); border: 2px solid color-mix(in oklab, var(--sc-accent) 55%, transparent); border-radius: 999px;
  transition: background-color 120ms var(--sc-ease-out), border-color 120ms var(--sc-ease-out), transform 100ms var(--sc-ease-out);
}
.pill::after { content: "\2193"; margin-left: .5rem; color: var(--sc-accent); }
.pill:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .pill:hover { background: color-mix(in oklab, var(--sc-accent) 24%, rgb(13 17 48 / .9)); border-color: var(--sc-accent); } }

/* the page script hides each part until its moment; with no script everything is simply there */
.js .is-pre { display: none !important; }
html:not(.js) .tty__ask, html:not(.js) .tty__status { display: none; }
html:not(.js) .hero__bg { display: none; }

/* ---- sections ------------------------------------------------------------------------ */
.sec { position: relative; padding: clamp(3.5rem, 6vw, 6rem) var(--gutter); background: var(--sc-canvas); border-top: 1px solid var(--line); }
.sec:nth-of-type(odd) { background: #0a0d22; }
.sec__inner { max-width: 90rem; margin-inline: auto; }
.h2 { margin: 0 0 1.1rem; font: 600 clamp(2rem, 1rem + 3vw, 4rem)/1.06 var(--sc-font-text); letter-spacing: -.03em; text-wrap: balance; }
.lede { margin: 0; max-width: 40rem; font-size: clamp(1.15rem, .85rem + .5vw, 1.4rem); line-height: 1.6; color: var(--sc-ink-soft); text-wrap: pretty; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1.75rem 0 0; }
.chips li { padding: .5rem 1rem; border: 1.5px solid var(--line2); border-radius: 999px; font: 500 clamp(.95rem, .8rem + .2vw, 1.05rem) var(--sc-font-mono); color: var(--sc-ink); background: var(--panel); }
.svc { max-width: 50rem; }


/* about: the fire stays in view beside the reading column */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.about .art--about { order: 2; position: sticky; top: calc(var(--bar-h) + 1.5rem); height: min(76svh, 46rem); }
.about__copy { max-width: 40rem; padding-block: clamp(0rem, 4vh, 3rem); }
.about__copy p { margin: 0 0 1.3rem; font-size: clamp(1.06rem, .95rem + .2vw, 1.15rem); line-height: 1.75; color: var(--sc-ink); text-wrap: pretty; }
.about__copy .about__lead { font-size: clamp(1.2rem, .95rem + .55vw, 1.45rem); line-height: 1.6; }
/* talk */
.talk__note { margin: .9rem 0 0; font: 500 1rem var(--sc-font-mono); color: var(--dim); }
.talk__cta { margin: 1.6rem 0 0; }
/* ---- phone ---------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root { --bar-h: 3.4rem; }
  .rail { right: 0; top: 0; bottom: 0; transform: none; pointer-events: none; }
  .rail__list { display: none; }
  .rail__line { left: auto; right: 2px; top: 0; bottom: 0; width: 3px; }
  .hero__scrim { background: linear-gradient(180deg, rgb(7 9 23 / .35) 0%, rgb(7 9 23 / .86) 26%, rgb(7 9 23 / .94) 60%, rgb(7 9 23 / .96) 100%); }
  .hero__glow { right: 10%; top: 18%; width: 80vw; }
  .hero__inner { align-items: flex-start; padding-top: clamp(14rem, 36vh, 18rem); padding-bottom: 2rem; }
  .jump { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tty { font-size: 1rem; }
  .tty__hint { display: block; margin: .15rem 0 0; }
  .opt { min-width: 0; width: 100%; }
  .menu { width: 100%; }
  .intro__p { font-size: 1.1rem; }
  .intro__cta .btn, .talk__cta .btn { width: 100%; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .about .art--about { order: -1; position: relative; top: auto; height: clamp(17rem, 70vw, 24rem); }
  .about__copy { padding-block: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .hero__bg, .hero__glow { transition: none; }
}

/* ---- sections: copy on one side, a Three.js scene about the subject on the other ------------ */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; }
.split--art-left .art { order: -1; }
.split--art-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.art { position: relative; width: 100%; height: clamp(19rem, 56svh, 38rem); }
.fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art--ai { height: clamp(22rem, 66svh, 44rem); }
.art--talk { height: clamp(18rem, 48svh, 32rem); }

/* develop: the four real items, lit in step with the scene */
.areas { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .35rem; }
.areas__item { display: flex; align-items: center; gap: .9rem; padding: .35rem 0; font: 600 1.35rem/1.2 var(--sc-font-text); letter-spacing: -.015em; color: var(--dim); transition: color 200ms var(--sc-ease-out); }
.areas__mark { flex: none; width: .8rem; height: .8rem; border: 2px solid var(--dim); border-radius: 2px; transition: background-color 200ms var(--sc-ease-out), border-color 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out); }
.areas__item.is-on { color: var(--sc-ink); }
.areas__item.is-on .areas__mark { background: var(--sc-accent); border-color: var(--sc-accent); transform: scale(1.25) rotate(45deg); }


@media (max-width: 860px) {
  .split, .split--art-left { grid-template-columns: minmax(0, 1fr); }
  .split--art-left .art { order: 2; }
  .art, .art--ai, .art--talk { height: clamp(15rem, 62vw, 24rem); }
  .areas__item { font-size: 1.15rem; }
}

/* firewall: the caption that names the bait as it plays */
.art__cap { position: absolute; left: 50%; bottom: .4rem; transform: translateX(-50%); margin: 0; padding: .5rem 1rem; max-width: 92%; text-align: center; white-space: normal;
  font: 500 1rem/1.3 var(--sc-font-mono); color: var(--sc-ink); background: var(--panel); border: 2px solid var(--line2); border-radius: 999px; transition: opacity 200ms var(--sc-ease-out); }

/* build: the loop, and the seven steps in order along a line. The step the scene is on lights up. */
.build__ai { margin: 1.2rem 0 0; max-width: 38rem; padding-left: 1rem; border-left: 3px solid var(--sc-accent); font-size: clamp(1.05rem, .9rem + .3vw, 1.2rem); line-height: 1.6; color: var(--sc-ink); text-wrap: pretty; }
.art--build { height: clamp(20rem, 52svh, 34rem); }
.steps { --n: 7; list-style: none; margin: clamp(2rem, 4vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1.25rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 1.1rem; right: 0; top: 1.1rem; height: 2px; background: var(--line2); }
.steps__item { position: relative; padding-right: .25rem; }
.steps__n { position: relative; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; font: 600 .95rem/1 var(--sc-font-mono); color: var(--sc-ink); background: var(--panel); border: 2px solid var(--dim);
  transition: background-color 200ms var(--sc-ease-out), border-color 200ms var(--sc-ease-out), color 200ms var(--sc-ease-out), transform 200ms var(--sc-ease-out); }
.steps__t { margin: 1rem 0 .4rem; font: 600 clamp(1.08rem, .95rem + .3vw, 1.25rem)/1.25 var(--sc-font-text); letter-spacing: -.01em; color: var(--sc-ink); transition: color 200ms var(--sc-ease-out); }
.steps__d { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--sc-ink-soft); text-wrap: pretty; }
.steps.is-live .steps__t { color: var(--sc-ink-soft); }
.steps.is-live .is-on .steps__n { background: var(--sc-accent); border-color: var(--sc-accent); color: var(--sc-accent-ink); transform: scale(1.15); }
.steps.is-live .is-on .steps__t { color: var(--sc-ink); }
@media (max-width: 1180px) and (min-width: 861px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2rem; }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .art--build { height: clamp(14rem, 62vw, 20rem); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .steps::before { left: 1.1rem; right: auto; top: 1.1rem; bottom: 1.1rem; width: 2px; height: auto; }
  .steps__item { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: 1rem; }
  .steps__n { grid-row: span 2; }
  .steps__t { margin: .2rem 0 .25rem; }
}

/* the hero's status line: the real track record, along the bottom of the first screen */
.hero__facts { position: relative; z-index: 2; list-style: none; margin: 0; padding: 1.1rem var(--gutter) 1.4rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem;
  border-top: 1px solid var(--line); background: rgb(7 9 23 / .82); }
.hero__facts li { font: 400 1rem/1.45 var(--sc-font-text); color: var(--sc-ink-soft); }
.hero__facts strong { display: block; font: 600 clamp(1.05rem, .9rem + .3vw, 1.25rem)/1.3 var(--sc-font-mono); color: var(--sc-ink); }
@media (max-width: 860px) { .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .9rem; } }
