/* ============================================================
   WARMING NEON — shared design system
   Used by: index.html + stuffrite.html / wheels-spin.html / stewyrt.html
   Concept: a neon studio sign that warms up. Cyan primary, warm
   magenta as its rare partner. Dark glass panels, mono data labels.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --void:      #05080b;
  --panel:     #0a1015;
  --panel-hi:  #0f181e;
  --line:      rgba(120,255,235,0.12);
  --line-soft: rgba(120,255,235,0.06);

  --ink:       #dfeae8;
  --ink-dim:   #6c847f;
  --ink-faint: #475a56;

  --neon:      #2dffd6;   /* primary cyan-teal */
  --neon-deep: #00c4a3;
  --warm:      #ff4d9d;   /* the "warming" magenta */

  --accent-project: var(--neon); /* detail pages override this */

  --glow-cyan: 0 0 24px rgba(45,255,214,0.45);
  --glow-warm: 0 0 24px rgba(255,77,157,0.40);

  --display: 'Space Grotesk', sans-serif;
  --body:    'Inter', sans-serif;
  --mono:    'JetBrains Mono', monospace;

  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  /* faint engineering grid */
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}

/* ambient corner glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 82% 8%,  rgba(45,255,214,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 12% 90%, rgba(255,77,157,0.06) 0%, transparent 60%);
}

main, nav, footer { position: relative; z-index: 1; }

a { color: inherit; }

/* ---------- top neon sweep ---------- */
.sweep {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200;
  background: linear-gradient(90deg, transparent, var(--neon), var(--warm), var(--neon), transparent);
  background-size: 200% 100%;
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { background-position: -200% 0; } }

/* ---------- nav ---------- */
nav {
  position: fixed; top: 2px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 3rem;
  background: rgba(5,8,11,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-family: var(--display); font-weight: 700;
  font-size: 0.98rem; letter-spacing: 0.04em; color: var(--ink);
}
.brand .glyph {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--neon); box-shadow: var(--glow-cyan);
  animation: hum 3.5s ease-in-out infinite;
}
@keyframes hum { 0%,100%{opacity:1} 50%{opacity:0.55} }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-dim); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--neon); }
.nav-cta {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em;
  text-decoration: none; color: var(--void); background: var(--neon);
  padding: 0.5rem 1rem; border-radius: 2px; box-shadow: var(--glow-cyan);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(45,255,214,0.6); }

/* ---------- shared text bits ---------- */
.kicker {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--neon);
}
.kicker.warm { color: var(--warm); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em;
  text-decoration: none; padding: 0.85rem 1.6rem; border-radius: 2px;
  background: var(--neon); color: var(--void); box-shadow: var(--glow-cyan);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(45,255,214,0.6); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em;
  text-decoration: none; padding: 0.85rem 1.6rem; border-radius: 2px;
  border: 1px solid var(--line); color: var(--ink-dim);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--neon); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  max-width: var(--maxw); margin: 0 auto; padding: 9rem 3rem 5rem;
}
.hero .kicker { margin-bottom: 2rem; }

/* the neon sign */
.sign {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.92;
  letter-spacing: -0.02em; margin-bottom: 2rem;
}
.sign .w { color: var(--neon); text-shadow: var(--glow-cyan), 0 0 6px rgba(45,255,214,0.9); }
.sign .n { color: var(--warm); text-shadow: var(--glow-warm), 0 0 6px rgba(255,77,157,0.9); display: block; }

/* power-on: cyan settles first, warm follows — the sign "warming" */
.sign .w { animation: warmup-c 1.8s steps(1,end) 1 both; }
.sign .n { animation: warmup-w 2.4s steps(1,end) 1 both; }
@keyframes warmup-c {
  0%{opacity:0.15} 8%{opacity:1} 12%{opacity:0.2} 18%{opacity:1}
  26%{opacity:0.4} 32%{opacity:1} 100%{opacity:1}
}
@keyframes warmup-w {
  0%,40%{opacity:0.1} 48%{opacity:1} 53%{opacity:0.25} 60%{opacity:1}
  70%{opacity:0.45} 78%{opacity:1} 100%{opacity:1}
}

.hero-sub {
  max-width: 560px; font-size: 1.12rem; color: var(--ink-dim);
  line-height: 1.75; margin-bottom: 2.5rem;
}
.hero-sub strong { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 3rem; }

.tags { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--ink-dim); border: 1px solid var(--line); padding: 0.4rem 0.8rem;
  border-radius: 2px; background: rgba(10,16,21,0.5);
}
.tag b { color: var(--ink); font-weight: 500; }

/* ---------- section frame ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 6rem 3rem; }
.s-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; }
.s-head .idx { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.1em; }
.s-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.05;
}
.s-head h2 em { font-style: normal; color: var(--neon); }
.s-head p { color: var(--ink-dim); font-size: 0.95rem; max-width: 420px; }

/* ---------- products rack ---------- */
.rack { display: flex; flex-direction: column; gap: 1.25rem; }
.unit {
  --u: var(--neon);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--panel); text-decoration: none; color: inherit;
  transition: border-color 0.3s, transform 0.3s;
}
.unit:hover { border-color: var(--u); transform: translateY(-3px); }
.unit-body { padding: 2.5rem; display: flex; flex-direction: column; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.4rem; }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--u);
  box-shadow: 0 0 12px var(--u); animation: hum 2.4s ease-in-out infinite; }
.status.live { color: #4fe39a; } .status.live .dot { background: #4fe39a; box-shadow: 0 0 12px #4fe39a; }
.status.ship { color: #f0c84a; } .status.ship .dot { background: #f0c84a; box-shadow: 0 0 12px #f0c84a; }
.unit h3 { font-family: var(--display); font-weight: 700; font-size: 2.1rem; letter-spacing: -0.02em; margin-bottom: 0.3rem; }
.unit .u-type { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.2rem; }
.unit p { color: var(--ink-dim); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.unit .explore { margin-top: auto; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--u); display: inline-flex; align-items: center; gap: 0.5rem; transition: gap 0.2s; }
.unit:hover .explore { gap: 0.9rem; }

/* image slot inside a unit */
.unit-shot {
  position: relative; background: var(--panel-hi);
  border-left: 1px solid var(--line); min-height: 280px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.unit-shot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, color-mix(in srgb, var(--u) 18%, transparent), transparent 70%);
}
.unit-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* reusable labelled placeholder */
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center; padding: 2rem; width: 100%; height: 100%;
  min-height: 240px; border: 1px dashed var(--line); border-radius: 3px;
  color: var(--ink-faint); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
}
.slot .slot-ico { font-size: 1.4rem; opacity: 0.5; }
.slot b { color: var(--ink-dim); font-weight: 500; }

/* ---------- capability strip ---------- */
.stackline {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ink-dim);
}
.stackline span { display: inline-flex; align-items: center; gap: 0.5rem; }
.stackline span::before { content: '+'; color: var(--neon); }

/* ---------- creds ---------- */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.cred { background: var(--panel); padding: 1.8rem; }
.cred .c-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.5rem; }
.cred .c-val { font-family: var(--display); font-weight: 500; font-size: 1rem; color: var(--ink); }
.cred a { color: var(--neon); text-decoration: none; }
.cred a:hover { text-shadow: var(--glow-cyan); }

/* ---------- contact ---------- */
.contact-card {
  border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
  padding: 3.5rem; text-align: center;
}
.contact-card h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem,3.4vw,2.8rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.contact-card h2 em { font-style: normal; color: var(--warm); text-shadow: var(--glow-warm); }
.contact-card p { color: var(--ink-dim); max-width: 480px; margin: 0 auto 2rem; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 2rem 3rem;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
footer p { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-faint); letter-spacing: 0.04em; }
.foot-links { display: flex; gap: 1.4rem; }
.foot-links a { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-dim); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.2s; }
.foot-links a:hover { color: var(--neon); }

/* ---------- store chips ---------- */
.chips { display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; margin-top: 1.5rem; }
.chips img { height: 46px; width: auto; display: block; }
.chips a { transition: transform 0.2s, opacity 0.2s; opacity: 0.9; }
.chips a:hover { transform: translateY(-2px); opacity: 1; }
.chip-soon {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 46px; padding: 0 1.1rem;
  border: 1px dashed var(--line); border-radius: 6px; color: var(--ink-faint);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- a11y / focus ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  nav { padding: 1rem 1.4rem; }
  .nav-links { display: none; }
  .hero { padding: 7.5rem 1.4rem 4rem; }
  .section { padding: 4rem 1.4rem; }
  .unit { grid-template-columns: 1fr; }
  .unit-shot { border-left: none; border-top: 1px solid var(--line); min-height: 220px; }
  .creds { grid-template-columns: 1fr; }
  .contact-card { padding: 2.2rem 1.4rem; }
  footer { padding: 2rem 1.4rem; flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   DETAIL PAGES — each page sets --p (its own accent); WN cyan
   stays on the persistent chrome (sweep, brand glyph) so the
   studio identity holds while the page takes the product's colour.
   ============================================================ */
.detail .kicker { color: var(--p); }
.detail .s-head h2 em { color: var(--p); }
.detail .nav-links a:hover,
.detail .foot-links a:hover { color: var(--p); }
.detail .btn { background: var(--p); box-shadow: 0 0 24px color-mix(in srgb, var(--p) 42%, transparent); }
.detail .btn:hover { box-shadow: 0 0 34px color-mix(in srgb, var(--p) 60%, transparent); }
.detail .nav-cta { background: var(--p); box-shadow: 0 0 24px color-mix(in srgb, var(--p) 42%, transparent); }

.detail-hero { max-width: var(--maxw); margin: 0 auto; padding: 8.5rem 3rem 3rem; }
.back { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ink-dim);
  text-decoration: none; display: inline-block; margin-bottom: 2.5rem; transition: color 0.2s; }
.back:hover { color: var(--p); }
.dh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.dh-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem,6vw,4.6rem);
  letter-spacing: -0.02em; line-height: 0.95; margin: 1rem 0; color: var(--p);
  text-shadow: 0 0 26px color-mix(in srgb, var(--p) 45%, transparent); }
.dh-tag { font-size: 1.15rem; color: var(--ink); max-width: 440px; margin-bottom: 1.5rem; line-height: 1.6; }
.dh-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.8rem; }
.dh-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.hero-shot { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; min-height: 360px;
  background: var(--panel-hi); position: relative; display: flex; }
.hero-shot::after { content:''; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(ellipse 70% 60% at 50% 35%, color-mix(in srgb, var(--p) 16%, transparent), transparent 70%); }
.hero-shot img { width:100%; height:100%; object-fit: cover; display:block; }

.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.feature { background: var(--panel); padding: 2rem; }
.feature .f-mark { font-family: var(--mono); font-size: 0.7rem; color: var(--p); letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.feature h4 { font-family: var(--display); font-weight: 500; font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature p { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.65; }

.signature { border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  background: var(--panel); display: grid; grid-template-columns: 1fr 1fr; }
.sig-body { padding: 3rem; }
.sig-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.8rem; letter-spacing: -0.02em; margin-bottom: 1rem; color: var(--p); }
.sig-body p { color: var(--ink-dim); line-height: 1.8; margin-bottom: 1rem; }
.sig-shot { position: relative; background: var(--panel-hi); border-left: 1px solid var(--line); min-height: 320px; display: flex; }

.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border:1px solid var(--line); border-radius:4px; overflow:hidden; }
.more-card { background: var(--panel); padding: 2rem; text-decoration: none; color: inherit; transition: background 0.25s; display:flex; flex-direction:column; gap:0.4rem; }
.more-card:hover { background: var(--panel-hi); }
.more-card .m-name { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.more-card .m-line { color: var(--ink-dim); font-size: 0.88rem; }
.more-card .m-go { font-family: var(--mono); font-size: 0.72rem; margin-top: 0.5rem; color: var(--p); }

@media (max-width: 860px) {
  .detail-hero { padding: 7rem 1.4rem 2rem; }
  .dh-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .signature { grid-template-columns: 1fr; }
  .sig-shot { border-left: none; border-top: 1px solid var(--line); min-height: 240px; }
  .more-grid { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .sweep, .brand .glyph, .status .dot { animation: none; }
  .sign .w, .sign .n { animation: none; opacity: 1; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
