/* Kelvin Software
   Every colour below is a blackbody temperature computed from Planck's law
   (see brand/scripts/blackbody.py). The page heats up as you scroll:
   0 K at the top, 6,500 K at the bottom. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --zero: #000000;      /* 0 K     */
  --draper: #1d0000;    /* 800 K   */
  --ember: #7c2800;     /* 1,400 K */
  --flame: #ff6600;     /* 1,500 K */
  --tungsten: #ffad59;  /* 2,700 K */
  --halogen: #ffd3a5;   /* 4,000 K */
  --sun: #fff1ea;       /* 5,772 K */
  --daylight: #fff8fe;  /* 6,500 K */
  --sky: #cdd9ff;       /* 10,000 K */

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 78rem;
  --gutter: clamp(1.25rem, 4.5vw, 3.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);

  --ink: var(--sun);
  --muted: rgb(255 241 234 / 0.74);
  --line: rgb(255 241 234 / 0.3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--zero);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  background: var(--sun); color: var(--zero);
  padding: 0.6rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */

h2 {
  font-stretch: 125%;
  font-weight: 760;
  font-size: clamp(2.125rem, 5.2vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.032em;
  max-width: 17ch;
  text-wrap: balance;
}
h3 {
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h4 { font-stretch: 112%; font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }

.section-lede {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.8rem 1.45rem;
  border-radius: 999px;
  font-weight: 640; font-size: 1rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  transition: background-position 400ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.button-heat {
  color: var(--zero);
  background: linear-gradient(90deg, var(--flame), var(--tungsten) 50%, var(--sun)) 0 0 / 200% 100%;
}
.button-heat:hover { background-position: 100% 0; }
.button-ghost { color: var(--sun); border: 1px solid var(--line); }
.button-ghost:hover { border-color: var(--sun); }
.button-zero { color: var(--sun); background: var(--zero); }
.button-zero:hover { box-shadow: 0 0 0 5px rgb(255 102 0 / 0.35); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* ---------- nav ---------- */

.nav {
  display: flex; align-items: center; gap: 2rem;
  max-width: var(--max); margin-inline: auto;
  padding: 1.25rem var(--gutter);
}
.nav-brand { flex: none; border-radius: 10px; }
.nav-brand img { height: 2.25rem; width: auto; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.nav-links a:hover { color: var(--sun); }
.nav-cta { min-height: 2.6rem; padding: 0.6rem 1.15rem; font-size: 0.9375rem; }

/* ---------- 0 K: hero ---------- */

.hero {
  min-height: min(calc(100svh - 5rem), 56rem);
  display: grid; align-items: end;
  padding-block: clamp(3rem, 8vw, 6rem) var(--section);
}
.ignite {
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(3rem, 10.4vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.042em;
  max-width: 10.5ch;
  padding-bottom: 0.06em; /* keep descenders inside the clip */
  /* the sentence heats up line by line: "From" is ember, "reality." is white-hot */
  background: linear-gradient(168deg, #d81300 4%, var(--flame) 30%, var(--tungsten) 56%, var(--sun) 80%, #e3e7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 1.75rem rgb(255 102 0 / 0.16));
}
@media (prefers-reduced-motion: no-preference) {
  .ignite { animation: ignite 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes ignite {
  0%   { filter: brightness(0.06) saturate(2.2) drop-shadow(0 0 0 rgb(255 102 0 / 0)); }
  55%  { filter: brightness(0.92) saturate(1.25) drop-shadow(0 0 2.75rem rgb(255 102 0 / 0.42)); }
  100% { filter: brightness(1) saturate(1) drop-shadow(0 0 1.75rem rgb(255 102 0 / 0.16)); }
}
.lede {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 35rem;
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* ---------- 300 K → 1,000 K: process ---------- */

.process {
  padding-block: var(--section);
  background: linear-gradient(180deg, var(--zero) 0%, #0d0000 45%, var(--draper) 100%);
}
.scale {
  position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2.5rem;
}
/* the tube: a horizontal thermometer, black until 798 K, white-hot at the end */
.scale::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--zero) 0%, var(--zero) 30%, var(--draper) 40%, var(--ember) 47%, var(--flame) 53%, var(--tungsten) 60%, var(--sun) 80%, #e3e7ff 100%);
  box-shadow: inset 0 0 0 1px rgb(255 241 234 / 0.22), 0 0 2.5rem rgb(255 173 89 / 0.12);
}
.scale li { position: relative; padding-right: 1.5rem; }
.scale li::before {
  content: ""; position: absolute; left: 0; top: -1.75rem; height: 1.15rem;
  border-left: 1px solid var(--line);
}
.temp {
  font-stretch: 125%; font-weight: 720;
  font-size: clamp(1.375rem, 2.1vw, 1.75rem);
  line-height: 1; letter-spacing: -0.02em;
  white-space: nowrap;
}
.scale h3 { margin-top: 0.7rem; }
.scale h3 + p { margin-top: 0.45rem; color: var(--muted); font-size: 0.975rem; }

/* ---------- 1,000 K → 1,400 K: products ---------- */

.products {
  padding-block: var(--section);
  background: linear-gradient(180deg, var(--draper) 0%, #350100 30%, #551000 68%, var(--ember) 100%);
  --line: rgb(255 241 234 / 0.38);
}
/* The portfolio: three apps drawn as glowing windows inside one frame,
   "Chrome, on your computer", all wired down into the model they share. */
.local {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding: clamp(2.5rem, 4vw, 3.25rem) clamp(1rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
}
.local-label {
  position: absolute; top: 0; left: clamp(1rem, 2.5vw, 2rem); transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  border-radius: 999px; background: var(--zero);
  box-shadow: 0 0 0 1px var(--line);
  font-stretch: 112%; font-weight: 640; font-size: 0.875rem;
}
.local-label::before {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--tungsten); box-shadow: 0 0 0.6rem var(--flame);
}

.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1rem, 2vw, 1.75rem); }
.app { position: relative; display: flex; flex-direction: column; min-width: 0; }
/* each app is wired into the engine below; the wire warms as it gets closer */
.app::after {
  content: ""; position: absolute; left: 1.25rem; bottom: -3rem; height: 3rem; width: 2px;
  background: linear-gradient(180deg, var(--line), var(--tungsten));
}
.app-riff { --app: #ff6a13; --app-glow: rgb(255 106 19 / 0.45); }
.app-fromensics { --app: #00a3bd; --app-glow: rgb(0 163 189 / 0.45); }
.app-hyperpage { --app: #000000; --app-glow: rgb(255 241 234 / 0.3); }

.window {
  --screen: #fffaf6;
  border-radius: 1rem; overflow: hidden;
  background: var(--zero);
  box-shadow: 0 0 0 1px rgb(255 241 234 / 0.16), 0 1.75rem 3.5rem -1.5rem rgb(0 0 0 / 0.75), 0 0 3.5rem -1rem var(--app-glow);
}
.window-bar { display: flex; align-items: flex-end; height: 2.5rem; padding: 0 0.75rem; }
.window-tab {
  display: inline-flex; align-items: center; gap: 0.45rem;
  height: 1.9rem; padding: 0 0.9rem;
  border-radius: 0.65rem 0.65rem 0 0;
  background: var(--screen); color: var(--zero);
  font-size: 0.75rem; font-weight: 600;
}
.window-tab::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--app); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); }
.window-body {
  display: flex; flex-direction: column; gap: 0.7rem;
  min-height: 24.5rem; padding: 0.9rem;
  background: var(--screen); color: var(--zero);
  font-size: 0.8125rem; line-height: 1.42;
}

/* vignette parts: a light product UI inside each window */
.v-card { padding: 0.7rem 0.8rem; border-radius: 0.6rem; background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.1); }
.v-card > * + * { margin-top: 0.25rem; }
.v-who { font-weight: 650; }
.v-who span { font-weight: 400; color: rgb(0 0 0 / 0.55); }
.v-label { font-size: 0.6875rem; font-weight: 560; color: rgb(0 0 0 / 0.55); }
.v-addr { font-size: 0.75rem; color: rgb(0 0 0 / 0.62); }
.v-subj { font-weight: 600; }
.v-stack > * + * { margin-top: 0.4rem; }
.v-input { padding: 0.45rem 0.6rem; border-radius: 0.45rem; background: rgb(0 0 0 / 0.05); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.v-dials { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; font-size: 0.6875rem; color: rgb(0 0 0 / 0.6); }
.v-dials b { color: var(--zero); font-weight: 650; }
.v-btn {
  display: inline-flex; align-items: center;
  padding: 0.32rem 0.8rem; border-radius: 999px;
  background: var(--app); color: var(--zero);
  font-size: 0.75rem; font-weight: 660;
}
.app-hyperpage .v-btn { color: var(--sun); }
.v-btn-quiet { background: transparent; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.22); }
.v-draft {
  padding: 0.6rem 0.75rem; border-radius: 0 0.5rem 0.5rem 0;
  border-left: 3px solid var(--app);
  background: color-mix(in srgb, var(--app) 9%, white);
}
.v-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.v-chips span { padding: 0.18rem 0.55rem; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.16); font-size: 0.6875rem; }

.v-verdict { padding: 0.75rem 0.8rem; border-radius: 0.6rem; background: #fdecea; box-shadow: inset 0 0 0 1px rgb(239 107 92 / 0.35); }
.v-verdict > * + * { margin-top: 0.4rem; }
.v-verdict b { font-weight: 680; margin-right: 0.25rem; }
.v-tag { display: inline-flex; padding: 0.2rem 0.65rem; border-radius: 999px; background: #ef6b5c; color: var(--zero); font-weight: 720; font-size: 0.8125rem; }
.v-findings { display: grid; gap: 0.35rem; font-size: 0.75rem; }
.v-findings li { display: flex; align-items: center; gap: 0.5rem; }
.v-bad, .v-ok { width: 0.5rem; height: 0.5rem; border-radius: 50%; flex: none; }
.v-bad { background: #ef6b5c; }
.v-ok { background: #3dd68c; }

.v-flow { display: flex; align-items: center; gap: 0.5rem; font-size: 0.6875rem; color: rgb(0 0 0 / 0.55); padding-left: 0.8rem; }
.v-flow::before { content: ""; width: 1px; height: 1.1rem; border-left: 1px dashed rgb(0 0 0 / 0.35); }
.v-site { border-radius: 0.6rem; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); }
.v-site-bar { padding: 0.3rem 0.65rem; font-size: 0.6875rem; color: rgb(0 0 0 / 0.6); background: rgb(0 0 0 / 0.04); }
.v-site-hero { padding: 0.95rem 0.8rem; background: #3b2a1e; color: #fff3e0; }
.v-site-h { font-weight: 700; font-size: 0.9375rem; line-height: 1.22; }
.v-site-btn { display: inline-flex; margin-top: 0.6rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: #f2c14e; color: var(--zero); font-size: 0.6875rem; font-weight: 660; }
.v-site-nav { display: flex; gap: 1rem; padding: 0.45rem 0.8rem; font-size: 0.6875rem; color: rgb(0 0 0 / 0.7); }
.v-check { padding: 0.55rem 0.7rem; border-radius: 0.5rem; background: #fff4d6; box-shadow: inset 0 0 0 1px rgb(242 193 78 / 0.6); font-size: 0.75rem; }

.app-copy { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 0.25rem 0; }
.app-copy h3 { font-stretch: 125%; font-weight: 760; font-size: 1.625rem; letter-spacing: -0.02em; }
.app-copy h3 a, .footer a, .faq a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
  text-decoration-color: var(--line);
}
.app-copy h3 a:hover { text-decoration-color: currentColor; }
.role { margin-top: 0.2rem; color: var(--tungsten); font-size: 0.875rem; font-weight: 560; }
.app-copy .role + p { margin-top: 0.75rem; color: var(--muted); font-size: 0.975rem; }
.app-terms {
  margin-top: 1rem;
  font-stretch: 125%; font-weight: 720; font-size: 1.0625rem; line-height: 1.25; letter-spacing: -0.01em;
}
.app-terms span { display: block; }
.app-copy .status { margin-top: auto; padding-top: 1.25rem; }

.status { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted); }
.status::before {
  content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: transparent; box-shadow: inset 0 0 0 1px var(--muted);
}
.status-live { color: var(--sun); }
.status-live::before { background: var(--tungsten); box-shadow: 0 0 0.6rem var(--flame); }

/* the shared engine: a filament every app plugs into */
.engine { margin-top: 3rem; }
.engine-filament {
  height: 0.4rem; border-radius: 999px;
  background: linear-gradient(90deg, #d81300, var(--flame) 22%, var(--tungsten) 48%, var(--sun) 74%, #e3e7ff);
  box-shadow: 0 0 1.25rem rgb(255 102 0 / 0.6), 0 0 3.5rem rgb(255 173 89 / 0.3);
}
.engine-models { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin-top: 1.25rem; }
.engine-models p { color: var(--muted); max-width: 30rem; }
.engine-models strong { display: block; color: var(--sun); font-stretch: 125%; font-weight: 760; font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 0.2rem; }
.engine-note { margin-top: 1rem; color: var(--muted); font-size: 0.875rem; }

/* not live yet, so it sits outside the frame with a dashed edge */
.next {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr) auto; align-items: center; gap: 0.75rem 2rem;
  margin-top: 1.5rem; padding: 1.25rem clamp(1rem, 2.5vw, 2rem);
  border: 1px dashed var(--line); border-radius: 1.25rem;
}
.next h3 { font-stretch: 125%; font-weight: 760; font-size: 1.375rem; letter-spacing: -0.02em; }
.next-desc { color: var(--muted); }


/* still at 0 K: three unnamed ideas, materializing */
.cold { margin-top: clamp(3rem, 6vw, 4.5rem); }
.cold-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.25rem; }
.cold-head h3 { font-stretch: 125%; font-weight: 760; font-size: 1.375rem; letter-spacing: -0.02em; }
.cold-head p { color: var(--muted); }
.ghosts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1rem, 2vw, 1.75rem); margin-top: 1.5rem; }
.ghost-window {
  border-radius: 1rem; overflow: hidden;
  border: 1px dashed rgb(255 241 234 / 0.22);
  background: rgb(0 0 0 / 0.35);
}
.ghost-bar { display: flex; align-items: flex-end; height: 2.5rem; padding: 0 0.75rem; }
.ghost-bar span { width: 40%; height: 1.9rem; border-radius: 0.65rem 0.65rem 0 0; background: rgb(255 241 234 / 0.05); }
.ghost-body { display: grid; gap: 0.65rem; align-content: start; min-height: 8.5rem; padding: 1rem 0.9rem; border-top: 1px dashed rgb(255 241 234 / 0.1); }
.ghost-body span {
  height: 0.65rem; border-radius: 999px;
  background: rgb(255 241 234 / 0.06);
}
.ghost-body span:nth-child(1) { width: 72%; }
.ghost-body span:nth-child(2) { width: 90%; }
.ghost-body span:nth-child(3) { width: 55%; }
.ghost-body span:nth-child(4) { width: 34%; height: 1.4rem; margin-top: 0.4rem; }
.ghost-name {
  margin-top: 1rem; min-height: 1.4em;
  font-stretch: 125%; font-weight: 760; font-size: 1.375rem; letter-spacing: 0.01em;
  color: rgb(255 241 234 / 0.32);
}
.ghost .status { margin-top: 0.4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* heat sweeps across the outline, as if the idea is trying to form */
  .ghost-body span {
    background: linear-gradient(90deg, rgb(255 241 234 / 0.05) 0%, rgb(255 102 0 / 0.32) 45%, rgb(255 173 89 / 0.4) 50%, rgb(255 241 234 / 0.05) 70%) 0 0 / 300% 100%;
    animation: materialize 3.6s ease-in-out infinite;
  }
  .ghost-body span:nth-child(2) { animation-delay: 0.25s; }
  .ghost-body span:nth-child(3) { animation-delay: 0.5s; }
  .ghost-body span:nth-child(4) { animation-delay: 0.75s; }
  .ghost:nth-child(2) .ghost-body span { animation-duration: 4.4s; }
  .ghost:nth-child(3) .ghost-body span { animation-duration: 5.2s; }
  .ghost-window { animation: flicker 6s ease-in-out infinite alternate; }
  .ghost:nth-child(2) .ghost-window { animation-delay: -2s; }
  .ghost:nth-child(3) .ghost-window { animation-delay: -4s; }
}
@keyframes materialize { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes flicker { 0% { border-color: rgb(255 241 234 / 0.14); } 100% { border-color: rgb(255 173 89 / 0.38); } }

/* ---------- 1,400 K → 3,500 K: local first (the page catches fire) ---------- */

.stack, .teams, .start, .faq, .footer {
  --ink: var(--zero);
  --muted: rgb(0 0 0 / 0.74);
  --line: rgb(0 0 0 / 0.28);
  color: var(--ink);
}
.stack {
  padding-top: calc(var(--section) + 7rem);
  padding-bottom: var(--section);
  background: linear-gradient(180deg, var(--ember) 0, #ad4e00 4rem, #da7611 8rem, #f69a3f 12rem, var(--tungsten) 55%, #ffc78b 100%);
}
.split {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}
.split > div { padding-top: 1.1rem; border-top: 2px solid var(--zero); }
.split p { margin-top: 0.6rem; color: var(--muted); }

/* ---------- 3,500 K → 5,000 K: teams ---------- */

.teams {
  padding-block: var(--section);
  background: linear-gradient(180deg, #ffc78b 0%, var(--halogen) 50%, #ffe6d0 100%);
}
.moves {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem;
  margin-top: clamp(2.5rem, 5vw, 3.75rem); max-width: 60rem;
}
.moves h3 { font-stretch: 125%; font-weight: 760; font-size: 1.5rem; letter-spacing: -0.02em; }
.moves p { margin-top: 0.5rem; color: var(--muted); max-width: 26rem; }

/* ---------- 5,000 K → 5,772 K: start ---------- */

.start {
  padding-block: var(--section);
  background: linear-gradient(180deg, #ffe6d0 0%, var(--sun) 100%);
}
.start h2 {
  font-weight: 800;
  font-size: clamp(3rem, 9.5vw, 8rem);
  line-height: 0.92;
  letter-spacing: -0.042em;
  max-width: none;
}
.start-grid {
  display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 3rem clamp(2.5rem, 5vw, 4.5rem);
  align-items: start; margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.offers { display: grid; gap: 1.75rem; padding-top: 0.5rem; }
.offers li { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.offers p { margin-top: 0.5rem; color: var(--muted); }

/* contact form: a 0 K panel, like the logo tile, that heats up as it's filled in */
.contact {
  --ink: var(--sun);
  --muted: rgb(255 241 234 / 0.68);
  --line: rgb(255 241 234 / 0.16);
  --field: rgb(255 241 234 / 0.05);
  position: relative;
  display: grid; gap: 1.35rem;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border-radius: 1.5rem;
  background: var(--zero); color: var(--sun);
  color-scheme: dark;
  box-shadow: 0 2.5rem 4.5rem -2.5rem rgb(124 40 0 / 0.55), 0 0 0 1px rgb(0 0 0 / 0.08);
}

.contact-heat { display: grid; gap: 0.7rem; padding-bottom: 0.35rem; }
.contact-heat-text { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.contact-heat-label { color: var(--muted); font-size: 0.875rem; }
.contact-heat-k { font-stretch: 125%; font-weight: 760; font-size: 1.125rem; letter-spacing: -0.01em; }
.contact-heat-bar {
  position: relative; height: 0.4rem; border-radius: 999px; overflow: hidden;
  background: rgb(255 241 234 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 241 234 / 0.12);
}
.contact-heat-fill {
  position: absolute; inset: 0 auto 0 0; width: var(--heat, 0%);
  border-radius: inherit;
  /* the gradient spans the whole tube, so the tip shows the right temperature */
  background: linear-gradient(90deg, #d81300, var(--flame) 30%, var(--tungsten) 58%, var(--sun) 84%, #e3e7ff) 0 0 / var(--tube, 100%) 100% no-repeat;
  box-shadow: 0 0 0.9rem rgb(255 102 0 / 0.55);
  transition: width 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: 0.5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend {
  padding: 0;
  font-stretch: 112%; font-weight: 640; font-size: 0.875rem; letter-spacing: 0.005em;
  color: var(--sun);
}
.contact input[type="text"], .contact input[type="email"], .contact textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--line); border-radius: 0.8rem;
  background: var(--field); color: var(--sun);
  font: inherit; font-size: 1rem; line-height: 1.45;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.contact textarea { resize: vertical; min-height: 9rem; }
.contact ::placeholder { color: rgb(255 241 234 / 0.38); }
.contact input:hover, .contact textarea:hover { border-color: rgb(255 241 234 / 0.3); }
.contact input:focus, .contact textarea:focus {
  outline: none;
  border-color: var(--tungsten);
  background: rgb(255 241 234 / 0.08);
  box-shadow: 0 0 0 3px rgb(255 102 0 / 0.32), 0 0 1.25rem rgb(255 102 0 / 0.18);
}
.contact input:user-invalid, .contact textarea:user-invalid { border-color: #ff8a7a; }
.contact input:-webkit-autofill {
  -webkit-text-fill-color: var(--sun);
  box-shadow: 0 0 0 100px #160b06 inset;
  caret-color: var(--sun);
}

.topics { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topics legend { width: 100%; margin-bottom: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.5rem 1.05rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--field); color: var(--sun);
  font-size: 0.9375rem; font-weight: 520;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.chip:hover span { border-color: rgb(255 241 234 / 0.34); }
.chip input:checked + span {
  border-color: transparent; color: var(--zero); font-weight: 640;
  background: linear-gradient(90deg, var(--flame), var(--tungsten));
  box-shadow: 0 0 1rem rgb(255 102 0 / 0.35);
}
.chip input:focus-visible + span { outline: 2px solid var(--tungsten); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; padding-top: 0.25rem; }
.contact-actions .button { border: 0; cursor: pointer; font-family: inherit; min-height: 3.1rem; padding-inline: 1.7rem; }
.contact-actions .button:disabled { opacity: 0.65; cursor: progress; }
.contact-status { font-size: 0.9375rem; }
.contact-status.is-ok { color: var(--tungsten); font-weight: 640; }
.contact-status.is-error { color: #ff8a7a; font-weight: 600; }
.contact-alt { padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
.contact-alt a { color: var(--sun); text-underline-offset: 0.2em; text-decoration-color: rgb(255 241 234 / 0.4); }
.contact-alt a:hover { text-decoration-color: var(--sun); }
@media (prefers-reduced-motion: reduce) {
  .contact-heat-fill, .contact input, .contact textarea, .chip span { transition: none; }
}

/* ---------- 5,772 K → 6,500 K: questions ---------- */

.faq {
  padding-block: 0 var(--section);
  background: linear-gradient(180deg, var(--sun) 0%, var(--daylight) 100%);
}
.faq-list { margin-top: 2.5rem; max-width: 48rem; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  padding: 1.15rem 0;
  font-stretch: 112%; font-weight: 660; font-size: 1.1875rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1;
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.35rem; max-width: 40rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- footer ---------- */

.footer { background: var(--daylight); padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; }
.footer-inner img { height: 2rem; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.9375rem; }
.legal { width: 100%; color: var(--muted); font-size: 0.875rem; }

/* ---------- the readout: current temperature at this scroll position ---------- */

.readout {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 10;
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.45rem 0.85rem 0.45rem 0.5rem;
  border-radius: 999px;
  background: var(--zero); color: var(--sun);
  box-shadow: 0 0 0 1px rgb(255 241 234 / 0.14);
  font-stretch: 112%; font-weight: 640; font-size: 0.875rem; line-height: 1;
  pointer-events: none;
}
.readout-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--zero); box-shadow: inset 0 0 0 1px rgb(255 241 234 / 0.35);
}
.readout-k { min-width: 4.6ch; text-align: right; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; max-width: 38rem; }
  .apps { grid-template-columns: 1fr; gap: 3rem; }
  .app { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .app::after { display: none; }
  .app-copy { padding-top: 0.5rem; }
  .engine { margin-top: 2.5rem; }
  .next { grid-template-columns: 1fr; }
  .engine-models { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav { gap: 1rem; justify-content: space-between; }
  .hero { min-height: 0; padding-top: clamp(3.5rem, 14vw, 6rem); }

  /* process: the thermometer turns vertical */
  .scale { grid-template-columns: 1fr; gap: 2.25rem; padding-top: 0; padding-left: 2.25rem; }
  .scale::before {
    top: 0; bottom: 0; right: auto; width: 0.5rem; height: auto;
    background: linear-gradient(180deg, var(--zero) 0%, var(--zero) 30%, var(--draper) 40%, var(--ember) 47%, var(--flame) 53%, var(--tungsten) 60%, var(--sun) 80%, #e3e7ff 100%);
  }
  .scale li::before { top: 0.7rem; left: -1.5rem; width: 1rem; height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .scale li { padding-right: 0; max-width: 34rem; }

  .moves { grid-template-columns: 1fr; }
  .start-grid, .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .app { grid-template-columns: 1fr; gap: 0; }
  .app-copy { padding-top: 1.25rem; }
  .window-body { min-height: 0; }
  .ghosts { gap: 0.75rem; }
  .ghost-bar { height: 1.6rem; padding: 0 0.5rem; }
  .ghost-bar span { height: 1.2rem; }
  .ghost-body { min-height: 5.5rem; padding: 0.7rem 0.6rem; gap: 0.5rem; }
  .ghost-body span { height: 0.5rem; }
  .ghost-body span:nth-child(4) { height: 0.9rem; }
  .ghost-name { font-size: 0.9375rem; margin-top: 0.7rem; }
  .ghost .status { font-size: 0.75rem; }
}

@media (max-width: 420px) {
  .nav-cta { padding-inline: 0.95rem; }
  .nav-brand img { height: 2rem; }
}

/* ---------- brand page ---------- */

.brand-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.brand-title {
  font-stretch: 125%; font-weight: 800;
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  line-height: 0.92; letter-spacing: -0.04em;
}
.brand-mark { padding-block: clamp(2.5rem, 5vw, 4rem) var(--section); }
.brand-mark-grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.brand-mark-big { width: 100%; height: auto; border-radius: 23%; box-shadow: 0 0 0 1px rgb(255 241 234 / 0.16), 0 0 5rem rgb(255 102 0 / 0.18); }
.mark-sizes { display: flex; align-items: flex-end; gap: 2rem; margin-top: 2.25rem; }
.mark-sizes li { display: grid; justify-items: start; gap: 0.6rem; }
.mark-sizes img { box-shadow: 0 0 0 1px rgb(255 241 234 / 0.16); border-radius: 23%; }
.mark-sizes span { color: var(--muted); font-size: 0.8125rem; }

.brand-lockups {
  padding-block: var(--section);
  background: linear-gradient(180deg, var(--zero) 0%, var(--draper) 100%);
}
.lockup-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.lockup-panel { margin: 0; border-radius: 1rem; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem) 1.5rem; }
.lockup-panel img { width: min(100%, 19rem); height: auto; }
.lockup-panel figcaption { margin-top: clamp(2rem, 5vw, 3.5rem); font-size: 0.875rem; }
.lockup-panel a { text-underline-offset: 0.2em; }
.lockup-dark { background: var(--zero); box-shadow: inset 0 0 0 1px rgb(255 241 234 / 0.16); color: var(--muted); }
.lockup-light { background: var(--sun); color: rgb(0 0 0 / 0.74); }

.brand-colour, .brand-type, .brand-voice, .brand-rules {
  --ink: var(--zero); --muted: rgb(0 0 0 / 0.74); --line: rgb(0 0 0 / 0.28);
  color: var(--ink);
}
.brand-colour {
  padding-top: calc(var(--section) + 7rem); padding-bottom: var(--section);
  background: linear-gradient(180deg, var(--draper) 0, var(--ember) 3rem, #da7611 7rem, var(--tungsten) 11rem, var(--halogen) 50%, var(--sun) 100%);
}
.spectrum {
  height: 4.5rem; margin-top: 3rem; border-radius: 0.75rem;
  background: linear-gradient(90deg, #ff0000 0%, #ff1700 4%, #ff4400 9%, #ff6600 15%, #ff8400 22%, #ffad59 32%, #ffc78b 42%, #ffd3a5 48%, #ffe6d0 58%, #fff1ea 66%, #fff8fe 72%, #e3e7ff 84%, #cdd9ff 100%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
}
/* one row, cold to hot, on wide screens */
.swatches { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 2rem 1rem; margin-top: 3rem; }
.swatches li { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; font-size: 0.875rem; }
@media (max-width: 1100px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; } }
@media (max-width: 520px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.swatches strong { margin-top: 0.75rem; font-stretch: 112%; font-weight: 700; }
.swatches code { font: inherit; color: var(--muted); }
.sw { display: block; aspect-ratio: 4 / 3; border-radius: 0.75rem; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.14); }
.sw-use { color: var(--muted); font-size: 0.8125rem; }
.sw-zero { background: var(--zero); } .sw-draper { background: var(--draper); } .sw-ember { background: var(--ember); }
.sw-flame { background: var(--flame); } .sw-tungsten { background: var(--tungsten); } .sw-halogen { background: var(--halogen); }
.sw-sun { background: var(--sun); } .sw-daylight { background: var(--daylight); } .sw-sky { background: var(--sky); }

.brand-type { padding-block: var(--section); background: var(--sun); }
.specimens { display: grid; gap: 2.75rem; margin-top: 3rem; }
.specimen { border-top: 1px solid var(--line); padding-top: 1rem; }
.spec-meta { color: var(--muted); font-size: 0.8125rem; }
.spec-display { margin-top: 0.75rem; font-stretch: 125%; font-weight: 800; font-size: clamp(2rem, 6vw, 4.5rem); line-height: 0.95; letter-spacing: -0.04em; max-width: 14ch; }
.spec-body { margin-top: 0.75rem; max-width: 36rem; font-size: 1.25rem; line-height: 1.5; }
.spec-nums { margin-top: 0.75rem; font-stretch: 125%; font-weight: 700; font-size: clamp(1.25rem, 3vw, 2rem); letter-spacing: -0.02em; }

.brand-voice { padding-block: var(--section); background: linear-gradient(180deg, var(--sun), var(--daylight)); }
.brand-rules { padding-block: 0 var(--section); background: var(--daylight); }
.rules { display: grid; gap: 0.9rem; margin-top: 2rem; max-width: 44rem; font-size: 1.0625rem; }
.rules li { padding-left: 1.5rem; position: relative; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--flame); }
.downloads-h { margin-top: 3.5rem; }
.downloads { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.downloads a {
  display: inline-flex; padding: 0.6rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-size: 0.9375rem;
}
.downloads a:hover { border-color: var(--zero); }

@media (max-width: 860px) {
  .brand-mark-grid { grid-template-columns: 1fr; }
  .brand-mark-big { max-width: 14rem; }
  .lockup-panels { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */

.lost { min-height: 70svh; display: grid; align-items: center; padding-block: var(--section); }
.lost h1 { font-stretch: 125%; font-weight: 800; font-size: clamp(2.75rem, 8vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; max-width: 12ch; }
.lost .button { margin-top: 2rem; }
