/* ==========================================================================
   Landing — phosphor scope over ink-violet chassis
   ========================================================================== */

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--phosphor); color: #041; padding: 10px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 700; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* --- Nav ------------------------------------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px clamp(20px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(10,9,18,.92), rgba(10,9,18,.66) 70%, rgba(10,9,18,0));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 30px; height: 15px; color: var(--phosphor); flex: none; }
.brand__word {
  font-family: var(--display);
  font-variation-settings: 'wdth' 122, 'wght' 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 17px;
}
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a {
  font-size: 13.5px; font-weight: 500; color: var(--chalk-dim);
  transition: color .16s var(--ease);
}
.nav__links a:hover { color: var(--chalk); }
.nav__cta { padding: 10px 18px; }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px clamp(20px, 4vw, 56px) 0;
  overflow: hidden;
}
.hero__scope {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  /* The trace fades out toward the top-left so the headline stays readable
     without a slab of overlay sitting on top of it. */
  -webkit-mask-image: radial-gradient(120% 90% at 78% 62%, #000 20%, transparent 78%);
          mask-image: radial-gradient(120% 90% at 78% 62%, #000 20%, transparent 78%);
  opacity: .95;
}
.hero__inner { position: relative; z-index: 1; max-width: 780px; }

.hero__eyebrow { margin-bottom: 22px; }
.hero__eyebrow .tick { animation: blip 2.4s var(--ease) infinite; display: inline-block; }
@keyframes blip { 0%, 88%, 100% { opacity: 1 } 92% { opacity: .15 } }

.hero__h1 {
  font-size: clamp(46px, 8.2vw, 108px);
  font-variation-settings: 'wdth' 112, 'wght' 800;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero__lit {
  color: var(--phosphor);
  text-shadow: 0 0 44px rgba(76,242,200,.35);
}

.hero__sub {
  max-width: 54ch;
  font-size: clamp(15px, 1.35vw, 18px);
  color: var(--chalk-dim);
  line-height: 1.62;
  margin: 0 0 34px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Page-load sequence: one orchestrated reveal, then the page holds still and
   lets the trace do the moving. */
.hero__eyebrow, .hero__h1, .hero__sub, .hero__cta, .specrail {
  animation: rise .9s var(--ease-out-hard) backwards;
}
.hero__h1   { animation-delay: .06s; }
.hero__sub  { animation-delay: .14s; }
.hero__cta  { animation-delay: .2s; }
.specrail   { animation-delay: .28s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* --- Spec rail ------------------------------------------------------------ */
.specrail {
  position: relative; z-index: 1;
  list-style: none; margin: clamp(48px, 7vh, 90px) 0 0; padding: 16px 0 0;
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 52px);
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--chalk-mute);
}
.specrail b { color: var(--chalk); font-weight: 500; margin-right: 6px; }

/* --- Section heads -------------------------------------------------------- */
.sechead { margin-bottom: clamp(38px, 6vh, 66px); }
.sechead h2 {
  font-size: clamp(30px, 4.4vw, 58px);
  font-variation-settings: 'wdth' 110, 'wght' 700;
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.sechead--split {
  display: grid; grid-template-columns: 1fr minmax(280px, 42ch); gap: 40px;
  align-items: end;
}
.sechead__note { color: var(--chalk-dim); font-size: 15px; line-height: 1.65; margin: 0; }

section { padding: clamp(70px, 11vh, 140px) clamp(20px, 4vw, 56px); }
.hero { padding-top: 40px; }

/* --- Signal chain --------------------------------------------------------- */
.chain { border-top: 1px solid var(--line-soft); }
.chain__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stage {
  background: var(--ink-2);
  padding: 30px 26px 34px;
  position: relative;
  transition: background .25s var(--ease);
}
.stage:hover { background: var(--panel); }
.stage__n {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  color: var(--phosphor); display: block; margin-bottom: 20px;
}
.stage h3 {
  font-size: 21px; font-variation-settings: 'wdth' 118, 'wght' 700;
  margin-bottom: 12px;
}
.stage p { color: var(--chalk-dim); font-size: 14px; line-height: 1.6; margin: 0 0 14px; }
.stage__meta {
  font-family: var(--mono); font-size: 10.5px !important; letter-spacing: .05em;
  color: var(--chalk-mute) !important; margin: 20px 0 0 !important;
  padding-top: 14px; border-top: 1px solid var(--line-soft);
}

/* --- Template grid -------------------------------------------------------- */
.templates { border-top: 1px solid var(--line-soft); }
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  display: block; text-align: left;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 0;
  color: inherit;
  transition: border-color .22s var(--ease), transform .3s var(--ease-out-hard);
}
.card:hover { border-color: #3B3159; transform: translateY(-3px); }
.card__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-bottom: 1px solid var(--line-soft);
}
.card__stage canvas { width: 100%; height: 100%; display: block; }
.card__open {
  position: absolute; inset: auto 12px 12px auto;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(10,9,18,.82); border: 1px solid var(--line);
  color: var(--chalk); padding: 6px 10px; border-radius: 5px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  backdrop-filter: blur(6px);
}
.card:hover .card__open, .card:focus-visible .card__open { opacity: 1; transform: none; }
.card__body { padding: 18px 20px 22px; }
.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__name {
  font-family: var(--display); font-variation-settings: 'wdth' 118, 'wght' 700;
  text-transform: uppercase; font-size: 16px; letter-spacing: -0.01em;
}
.card__engine { font-family: var(--mono); font-size: 10px; color: var(--chalk-mute); letter-spacing: .1em; }
.card__note { color: var(--chalk-dim); font-size: 13.5px; line-height: 1.55; margin: 8px 0 0; }

/* --- Spec sheet ----------------------------------------------------------- */
.spec { border-top: 1px solid var(--line-soft); }
.sheet { margin: 0; }
.sheet > div {
  display: grid; grid-template-columns: 190px 1fr; gap: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
}
.sheet > div:last-child { border-bottom: 1px solid var(--line-soft); }
.sheet dt {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--chalk-mute); padding-top: 3px;
}
.sheet dd { margin: 0; color: var(--chalk-dim); font-size: 14.5px; line-height: 1.6; max-width: 76ch; }
.sheet code {
  font-family: var(--mono); font-size: .88em; color: var(--phosphor);
  background: rgba(76,242,200,.07); padding: 1px 5px; border-radius: 3px;
}

/* --- Close ---------------------------------------------------------------- */
.close {
  border-top: 1px solid var(--line-soft);
  text-align: center;
  padding-top: clamp(80px, 14vh, 170px);
  padding-bottom: clamp(80px, 14vh, 170px);
}
.close__h {
  font-size: clamp(34px, 6.4vw, 84px);
  font-variation-settings: 'wdth' 112, 'wght' 800;
  letter-spacing: -0.035em;
  margin-bottom: 34px;
}
.close__h span { color: var(--hot); }
.btn--big { padding: 16px 30px; font-size: 14px; }
.close__note {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--chalk-mute); margin: 20px 0 0;
}

/* --- Footer --------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line-soft);
  padding: 30px clamp(20px, 4vw, 56px);
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.foot__brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-variation-settings: 'wdth' 122, 'wght' 700;
  text-transform: uppercase; font-size: 14px; letter-spacing: .04em;
}
.foot__brand .brand__mark { width: 24px; height: 12px; }
.foot__line { color: var(--chalk-mute); font-size: 13px; margin: 0; }
.foot__links { display: flex; gap: 20px; margin-left: auto; }
.foot__links a { font-size: 13px; color: var(--chalk-dim); }
.foot__links a:hover { color: var(--chalk); }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1000px) {
  .chain__list { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .sechead--split { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 680px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .chain__list, .grid { grid-template-columns: 1fr; }
  .sheet > div { grid-template-columns: 1fr; gap: 8px; }
  .hero__scope { -webkit-mask-image: radial-gradient(140% 70% at 60% 78%, #000 10%, transparent 76%);
                         mask-image: radial-gradient(140% 70% at 60% 78%, #000 10%, transparent 76%); }
  .foot__links { margin-left: 0; }
}
