/* No web fonts, no analytics, no cookies: nothing here talks to a third party. */
:root {
  --bg: #0b0908; --panel: #15110e; --edge: #2a221b; --text: #f3ece4; --muted: #a39686;
  --amber: #f2a54a; --amber-2: #ffcf8a; --ink: #1a1208;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

nav { position: sticky; top: 16px; z-index: 5; margin: 16px auto 0; width: fit-content; max-width: calc(100% - 32px);
      display: flex; align-items: center; gap: 28px; padding: 10px 10px 10px 22px; border: 1px solid var(--edge);
      border-radius: 999px; background: rgba(21, 17, 14, .78); backdrop-filter: blur(12px); }
.logo { font-weight: 800; letter-spacing: -.02em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px var(--amber); }
nav .links { display: flex; gap: 22px; font-size: 15px; color: var(--muted); }
nav a { text-decoration: none; } nav .links a:hover, .lang:hover { color: var(--text); }
.lang { font: 600 13px ui-monospace, Consolas, monospace; color: var(--muted); border: 1px solid var(--edge); border-radius: 999px; padding: 6px 10px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 650;
       text-decoration: none; border: 1px solid var(--edge); transition: transform .15s, box-shadow .15s; }
.btn { transition: transform .15s, box-shadow .2s, filter .2s, color .2s, border-color .2s, background-color .2s; }
.btn:hover { transform: translateY(-1px); border-color: var(--amber); color: var(--amber-2); background-color: rgba(242, 165, 74, .08); }
.btn.primary { background: linear-gradient(180deg, var(--amber-2), var(--amber)); color: var(--ink); border-color: transparent;
               box-shadow: 0 8px 30px -8px rgba(242, 165, 74, .6); }
.btn.primary:hover { color: var(--ink); filter: brightness(1.12) saturate(1.15); box-shadow: 0 10px 40px -6px rgba(255, 190, 110, .85); }
.btn:active { transform: translateY(0); filter: brightness(.95); }
nav .btn { padding: 9px 18px; border-radius: 999px; font-size: 15px; }

.hero { display: grid; grid-template-columns: minmax(0, 780px); gap: 40px; align-items: center; min-height: calc(100vh - 90px); padding: 40px 0 60px; }
.kicker { font: 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--muted); }
h1 { font: 800 clamp(40px, 5.6vw, 76px)/1.06 ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; letter-spacing: -.04em; margin: 22px 0 26px; }
/* site.js types the headline in; until it has split the letters the text stays hidden (no flash) */
.js .hero h1:not(.typing) { visibility: hidden; }
.hero h1 .ch { opacity: 0; }
.hero h1 .ch.on { opacity: 1; }
.caret { display: inline-block; width: .55em; height: .82em; margin-left: .06em; vertical-align: -.06em; background: var(--amber);
         box-shadow: 0 0 18px rgba(242, 165, 74, .7); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Page tint: site.js sets --p (0 at the top .. 1 at the bottom); the hue drifts amber -> copper -> plum -> steel blue. */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
               --h: calc(32 - var(--p, 0) * 190);
               background: radial-gradient(60% 50% at 85% 20%, hsl(var(--h) 55% 12% / .9), transparent 70%),
                           radial-gradient(55% 45% at 10% 90%, hsl(calc(var(--h) + 25) 45% 10% / .8), transparent 70%); }

.slides { position: relative; aspect-ratio: 1216 / 832; max-height: 72vh; margin: 0 auto; border-radius: 24px; overflow: hidden;
          border: 1px solid var(--edge); background: var(--panel); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.slides figure { position: absolute; inset: 0; margin: 0; opacity: 0; animation: slide 36s infinite; animation-delay: calc(var(--i) * 6s); }
.slides img { width: 100%; height: 100%; object-fit: cover; display: block; animation: drift 36s infinite; animation-delay: inherit; }
.slides figcaption { position: absolute; left: 18px; bottom: 16px; padding: 6px 12px; border-radius: 999px; font: 600 13px ui-monospace, Consolas, monospace;
                     color: var(--amber-2); background: rgba(11, 9, 8, .7); border: 1px solid var(--edge); backdrop-filter: blur(6px); }
@keyframes slide { 0% { opacity: 0; } 3% { opacity: 1; } 16.7% { opacity: 1; } 19.7% { opacity: 0; } 100% { opacity: 0; } }
@keyframes drift { 0% { transform: scale(1.06); } 20% { transform: scale(1); } 100% { transform: scale(1); } }
h1 > span:not(.ch) { display: block; color: #9fb2c2; font-weight: 400; }
h1 em { font-style: normal; color: var(--amber); }
.lead { color: #cfc3b6; max-width: 34em; }
.lead b { color: var(--text); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 34px 0 30px; }
.facts { list-style: none; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.facts li { display: flex; gap: 10px; align-items: center; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }

/* Hero background loop: a heron (Z-Image + Wan on the author's GPU); darkened on the left so the text stays readable. */
.bgv { position: absolute; top: 0; left: 0; right: 0; height: 100vh; height: 100svh; z-index: -1; overflow: hidden; }
.bgv video { width: 100%; height: 100%; object-fit: contain; object-position: 82% 60%; }
.bgv canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bgv.lens-on video { visibility: hidden; }  /* site.js draws the lens effect over it */
.bgv::after { content: ""; position: absolute; inset: 0;
              background: linear-gradient(90deg, var(--bg) 0%, rgba(11, 9, 8, .85) 32%, rgba(11, 9, 8, .2) 68%, rgba(11, 9, 8, .35) 100%),
                          linear-gradient(transparent 55%, var(--bg)); }

section.band { padding: 90px 0; border-top: 1px solid var(--edge); scroll-margin-top: 70px; }
h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.sub { color: var(--muted); max-width: 40em; margin-bottom: 44px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step { background: var(--panel); border: 1px solid var(--edge); border-radius: 22px; padding: 28px; }
.step .n { font: 600 13px ui-monospace, Consolas, monospace; color: var(--amber); }
.step h3 { font-size: 20px; margin: 12px 0 8px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 15px; }
.step code { font: 14px ui-monospace, Consolas, monospace; color: var(--amber-2); }
.soon { font: 600 11px ui-monospace, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--amber);
        border: 1px solid var(--amber); border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 6px;
        display: inline-block; white-space: nowrap; }
.step.later { border-style: dashed; }
.req { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; max-width: 900px; }
.req li { display: flex; gap: 12px; color: #cfc3b6; }
.req li::before { content: "✓"; color: var(--amber); font-weight: 800; flex: none; }
.req b { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.promise { margin-top: 40px; padding: 22px 26px; border: 1px solid var(--amber); border-radius: 22px; color: #cfc3b6;
           background: linear-gradient(135deg, rgba(242, 165, 74, .12), transparent 60%); max-width: 900px; }
.promise b { color: var(--text); display: block; margin-bottom: 4px; }
.promise span { display: block; margin-top: 10px; color: var(--amber-2); font-weight: 650; }
.chips span { border: 1px solid var(--edge); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #cfc3b6; }

/* Banners: edge-to-edge strips that fade into the page; frames push in from the left every 6 s. Three frames by default, four with .four. */
html { overflow-x: clip; }
.banner { position: relative; width: 100vw; margin: 0 0 40px calc(50% - 50vw); height: clamp(220px, 36vw, 560px); overflow: hidden;
          --fade-y: linear-gradient(transparent, #000 16%, #000 68%, transparent);
          --fade-x: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          -webkit-mask-image: var(--fade-y), var(--fade-x); -webkit-mask-composite: source-in;
          mask-image: var(--fade-y), var(--fade-x); mask-composite: intersect; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateX(-100%);
              animation: push3 18s cubic-bezier(.7, 0, .3, 1) infinite; animation-delay: calc(var(--i) * 6s - 1s); }
.banner.four img { animation-name: push4; animation-duration: 24s; }
@keyframes push3 { 0% { transform: translateX(-100%); } 6% { transform: translateX(0); } 33.3% { transform: translateX(0); }
                   39.3% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
@keyframes push4 { 0% { transform: translateX(-100%); } 4.5% { transform: translateX(0); } 25% { transform: translateX(0); }
                   29.5% { transform: translateX(100%); } 100% { transform: translateX(100%); } }
.flow { display: flex; align-items: stretch; gap: 10px; margin-bottom: 26px; }
.hop { flex: 1; background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.hop small { color: var(--muted); font-size: 13px; }
.hop.home { border-color: var(--amber); }
.arrow { align-self: center; color: var(--amber); font-size: 22px; }
.sub a, .faq a { color: var(--amber); }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--edge); border-radius: 16px; padding: 4px 22px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }
.faq code { font: 14px ui-monospace, Consolas, monospace; color: var(--amber-2); }

footer { border-top: 1px solid var(--edge); padding: 30px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .dev a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
footer .dev a:hover { color: var(--amber); }

@media (max-width: 960px) { .steps.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  nav { gap: 16px; background: rgba(21, 17, 14, .94); }
  nav .links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 50px; }
  h1 { font-size: clamp(28px, 8.4vw, 44px); letter-spacing: -.05em; }   /* "Your GPU at home." stays on one line */
  .lead { font-size: 16px; }
  .bgv video { object-position: 75% 60%; }
  .bgv::after { background: linear-gradient(rgba(11, 9, 8, .55), rgba(11, 9, 8, .8) 45%, var(--bg) 80%); }
  .steps, .steps.four, .req { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .arrow { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .btn { transition: none; }
  .bgv video { display: none; }
  .slides figure, .slides img { animation: none; }
  .slides figure:first-child { opacity: 1; }
  .banner img { animation: none; }
  .banner img:first-child { transform: none; }
  .bgv { background: url(/heron-poster.jpg) 82% 60% / contain no-repeat; }
}
