/* ============================================================
   IronGrid Technologies LLC — site styles
   "Forge" edition: WebGL molten hero, kinetic type, custom
   cursor, magnetic buttons, scroll choreography.
   No frameworks. Fonts self-hosted (SIL Open Font License).
   ============================================================ */

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

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --bg0: #04070b;
  --bg1: #070c13;
  --bg2: #0a1119;
  --panel: #0d1520;
  --panel2: #111b28;
  --line: rgba(148, 170, 197, 0.10);
  --line-strong: rgba(148, 170, 197, 0.22);
  --text: #e9eff7;
  --muted: #93a1b4;
  --faint: #5d6c80;
  --ember: #ff6a3d;
  --ember2: #ff9d2e;
  --steel: #5aa7ff;
  --grad-ember: linear-gradient(92deg, var(--ember) 10%, var(--ember2) 90%);
  --max-width: 1180px;
  --radius: 14px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-forge: cubic-bezier(0.65, 0, 0.15, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.preloading { overflow: hidden; }

::selection { background: rgba(255, 106, 61, 0.35); color: #fff; }

@media (min-width: 900px) {
  ::-webkit-scrollbar { width: 12px; background: var(--bg0); }
  ::-webkit-scrollbar-thumb {
    background: #1b2634;
    border: 3px solid var(--bg0);
    border-radius: 8px;
  }
  ::-webkit-scrollbar-thumb:hover { background: #27374b; }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.narrow { max-width: 800px; }
.center { text-align: center; }

/* ============================================================
   Preloader
   ============================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: var(--bg0);
  display: grid;
  place-items: center;
  transition: transform 0.85s var(--ease-forge), visibility 0.85s;
}

.preloader.done { transform: translateY(-100%); visibility: hidden; }

.pre-inner { text-align: center; }

.pre-mark {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  gap: 5px;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.pre-mark i {
  width: 16px; height: 16px;
  border: 1.5px solid var(--line-strong);
  animation: cell-heat 1.15s ease-in-out infinite;
}

.pre-mark i:nth-child(1) { animation-delay: 0.00s; }
.pre-mark i:nth-child(2) { animation-delay: 0.08s; }
.pre-mark i:nth-child(3) { animation-delay: 0.16s; }
.pre-mark i:nth-child(4) { animation-delay: 0.08s; }
.pre-mark i:nth-child(5) { animation-delay: 0.16s; }
.pre-mark i:nth-child(6) { animation-delay: 0.24s; }
.pre-mark i:nth-child(7) { animation-delay: 0.16s; }
.pre-mark i:nth-child(8) { animation-delay: 0.24s; }
.pre-mark i:nth-child(9) { animation-delay: 0.32s; }

@keyframes cell-heat {
  0%, 100% { border-color: var(--line-strong); background: transparent; }
  50% { border-color: var(--ember); background: rgba(255, 106, 61, 0.25); box-shadow: 0 0 14px -2px rgba(255, 106, 61, 0.7); }
}

.pre-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--faint);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
}

.pre-count { color: var(--ember); min-width: 3.2ch; text-align: left; }

/* ============================================================
   Custom cursor
   ============================================================ */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 3500;
  border-radius: 50%;
  opacity: 0;
}

.cursor-dot {
  width: 6px; height: 6px;
  background: var(--ember);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(255, 106, 61, 0.55);
  transform: translate(-50%, -50%) scale(1);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
              border-color 0.25s ease, background 0.25s ease;
}

body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }

body.cursor-hover .cursor-ring {
  width: 62px; height: 62px;
  border-color: rgba(255, 176, 46, 0.9);
  background: rgba(255, 106, 61, 0.08);
}

@media (pointer: fine) {
  body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }
}

/* ============================================================
   Overlays
   ============================================================ */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 1100;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-ember);
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease,
              transform 0.45s var(--ease-out);
}

.site-header.scrolled {
  background: rgba(4, 7, 11, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.site-header.hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 30px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 1.9rem; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--grad-ember);
  transition: right 0.3s var(--ease-out);
}

.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); }
.site-nav a:hover::after, .site-nav a[aria-current]::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease;
}

body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.2px;
  text-decoration: none;
  will-change: transform;
  transition: box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-ember);
  color: #14100d;
  box-shadow: 0 0 0 1px rgba(255, 130, 60, 0.35), 0 8px 28px -10px rgba(255, 106, 61, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 150, 70, 0.55), 0 14px 40px -10px rgba(255, 106, 61, 0.75);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover { border-color: var(--muted); background: rgba(255, 255, 255, 0.05); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 9.5rem 0 8.5rem;
  overflow: hidden;
  background: var(--bg0);
}

#forgeCanvas, #sparkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#sparkCanvas { mix-blend-mode: screen; }

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 560px at 28% 42%, rgba(4, 7, 11, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(4, 7, 11, 0.55) 0%, transparent 30%, transparent 72%, var(--bg0) 100%);
  pointer-events: none;
}

.hero-inner { position: relative; }

/* Hero entrance choreography: elements keyed by data-hero index */

[data-hero] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.9s var(--ease-out);
}

body.loaded [data-hero] { opacity: 1; transform: none; }
body.loaded [data-hero="1"] { transition-delay: 0.10s; }
body.loaded [data-hero="5"] { transition-delay: 0.75s; }
body.loaded [data-hero="6"] { transition-delay: 0.95s; }
body.loaded [data-hero="7"] { transition-delay: 1.25s; }

/* The title lines reveal per-character instead of as blocks */
.hero-title [data-hero] { opacity: 1; transform: none; transition: none; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(13, 21, 32, 0.7);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 10px 1px rgba(61, 220, 132, 0.8);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 9.2vw, 8rem);
  line-height: 0.99;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0;
}

.hero-title .char {
  display: inline-block;
  transform: translateY(115%) rotate(4deg);
  transform-origin: 0 100%;
  transition: transform 0.9s var(--ease-forge);
  transition-delay: calc(0.25s + var(--i) * 0.028s);
  will-change: transform;
}

body.loaded .hero-title .char { transform: none; }

.line-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(233, 239, 247, 0.9);
}

@supports not (-webkit-text-stroke: 2px #fff) {
  .line-outline { color: var(--text); }
}

.line-dot {
  font-style: normal;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
}

.hero-for {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-weight: 500;
  color: var(--muted);
  margin: -0.6rem 0 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.hero-for .flip {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-for .flip span {
  display: inline-block;
  color: var(--ember);
  font-weight: 600;
  transition: transform 0.4s var(--ease-forge), opacity 0.3s ease;
}

.hero-for .flip span.out {
  transform: translateY(-105%);
  opacity: 0;
  transition: transform 0.3s var(--ease-forge), opacity 0.2s ease;
}

.hero-for .flip span.pre {
  transform: translateY(105%);
  opacity: 0;
  transition: none;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.lede {
  max-width: 560px;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--muted);
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-stats > div {
  background: rgba(7, 12, 19, 0.72);
  backdrop-filter: blur(6px);
  padding: 1.1rem 1.3rem;
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.hero-stats dd { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--faint);
}

.scroll-cue i {
  width: 1px;
  height: 44px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--grad-ember);
  animation: cue-drop 1.8s var(--ease-forge) infinite;
}

@keyframes cue-drop {
  0% { top: -50%; }
  100% { top: 110%; }
}

/* ============================================================
   Marquee
   ============================================================ */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg1);
  overflow: hidden;
  padding: 1.1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  will-change: transform;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}

.marquee span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.marquee i { font-style: normal; font-size: 0.55rem; color: var(--ember); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Sections
   ============================================================ */

.section { padding: 8rem 0; position: relative; overflow: clip; }

.section-alt {
  background: var(--bg1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ghost-num, .ghost-word {
  position: absolute;
  right: -0.05em;
  top: 0.2em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(148, 170, 197, 0.10);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}

.ghost-num { font-size: clamp(10rem, 24vw, 21rem); }

.ghost-word {
  font-size: clamp(4.5rem, 13vw, 11rem);
  right: auto;
  left: 50%;
  translate: -50% 0;
  top: 0.35em;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.section .container { z-index: 1; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 3.5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ember);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow span {
  color: var(--faint);
  padding-right: 0.7rem;
  border-right: 1px solid var(--line-strong);
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
  margin-left: 1.1rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.section-lede {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 3.5rem;
  text-wrap: pretty;
}

.center-lede { margin-left: auto; margin-right: auto; }

/* ============================================================
   Service cards — spotlight + 3D tilt + glare
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  perspective: 1200px;
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.25s ease;
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255, 106, 61, 0.11), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover { border-color: rgba(255, 130, 70, 0.4); }
.card:hover::before { opacity: 1; }

/* blueprint corner mark */
.card::after {
  content: "+";
  position: absolute;
  top: 8px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--faint);
  opacity: 0.55;
  transition: color 0.25s ease, opacity 0.25s ease, transform 0.35s var(--ease-out);
  pointer-events: none;
}

.card:hover::after {
  color: var(--ember);
  opacity: 1;
  transform: rotate(90deg);
}

.card-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%,
              rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0.1) 50%,
              rgba(255, 255, 255, 0.06) 54%, transparent 70%);
  transform: translateX(calc(var(--gx, 0) * 1%));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover .card-glare { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 1.3rem;
  color: var(--ember);
  background:
    linear-gradient(var(--panel2), var(--panel2)) padding-box,
    linear-gradient(135deg, rgba(255, 106, 61, 0.6), rgba(148, 170, 197, 0.2)) border-box;
  border: 1px solid transparent;
}

.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.card p { color: var(--muted); font-size: 0.95rem; }

.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.3rem;
}

.card-tags li {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg1);
}

/* ============================================================
   Timeline — line draws itself on scroll
   ============================================================ */

.timeline {
  list-style: none;
  max-width: 840px;
  position: relative;
}

.timeline::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--ember), var(--ember2));
  transform-origin: top;
  transform: scaleY(var(--tp, 0));
  z-index: 1;
}

.timeline-step {
  display: flex;
  gap: 2rem;
  padding: 1.7rem 0;
  position: relative;
}

.timeline-step .step-num {
  flex: 0 0 auto;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ember);
  position: relative;
  z-index: 2;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.timeline-step.lit .step-num {
  background: var(--grad-ember);
  border-color: transparent;
  color: #14100d;
  box-shadow: 0 0 26px -6px rgba(255, 106, 61, 0.8);
}

.timeline-step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.timeline-step p { color: var(--muted); max-width: 640px; }

/* ============================================================
   Engagement models
   ============================================================ */

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.model {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out);
}

.model:hover { transform: translateY(-5px); border-color: var(--line-strong); }

.model-featured {
  background:
    linear-gradient(var(--panel2), var(--panel2)) padding-box,
    linear-gradient(160deg, rgba(255, 106, 61, 0.75), rgba(255, 176, 46, 0.25) 45%, rgba(148, 170, 197, 0.18)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 18px 50px -22px rgba(255, 106, 61, 0.35);
}

.model-flag {
  position: absolute;
  top: -12px;
  left: 2rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #14100d;
  background: var(--grad-ember);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

.model h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.model-tag {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0.35rem 0 1rem;
}

.model > p:not(.model-tag):not(.model-fit) { color: var(--muted); font-size: 0.95rem; }

.model ul {
  list-style: none;
  margin: 1.4rem 0;
  display: grid;
  gap: 0.65rem;
}

.model li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.93rem;
}

.model li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 13px; height: 13px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='%23ff6a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.model-fit {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.85rem;
  color: var(--faint);
}

/* ============================================================
   Principles — expanding rows
   ============================================================ */

.prow-list { margin-top: 3.2rem; border-top: 1px solid var(--line-strong); }

.prow {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0.5rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: background 0.3s ease;
}

.prow:hover, .prow:focus-visible { background: rgba(255, 106, 61, 0.035); }

.prow-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--faint);
  padding-top: 0.9em;
  min-width: 2.2rem;
  transition: color 0.3s ease;
}

.prow:hover .prow-num, .prow.open .prow-num { color: var(--ember); }

.prow-body { flex: 1; min-width: 0; }

.prow-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.15;
  transition: transform 0.4s var(--ease-out), color 0.3s ease;
}

.prow:hover .prow-title, .prow.open .prow-title {
  transform: translateX(10px);
}

.prow-desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out), opacity 0.4s ease;
  opacity: 0;
}

.prow-desc > span { overflow: hidden; display: block; }

.prow-desc > span::before { content: ""; display: block; height: 0.7rem; }

.prow-desc span { color: var(--muted); font-size: 1rem; max-width: 620px; }

.prow.open .prow-desc { grid-template-rows: 1fr; opacity: 1; }

.prow-arrow {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  color: var(--faint);
  margin-top: 0.7em;
  transition: transform 0.4s var(--ease-out), color 0.3s ease;
}

.prow:hover .prow-arrow, .prow.open .prow-arrow {
  color: var(--ember);
  transform: rotate(45deg);
}

@media (hover: none) {
  .prow-desc { grid-template-rows: 1fr; opacity: 1; }
  .prow-arrow { display: none; }
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-list { display: grid; gap: 0.8rem; margin-top: 3rem; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open { border-color: rgba(255, 130, 70, 0.4); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.faq-q svg {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  color: var(--ember);
  transition: transform 0.3s var(--ease-out);
}

.faq-item.open .faq-q svg { transform: rotate(45deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}

.faq-a > div { overflow: hidden; }

.faq-a p {
  padding: 0 1.5rem 1.4rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ============================================================
   CTA
   ============================================================ */

.section-cta {
  padding: 11rem 0 10rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(1000px 520px at 50% 118%, rgba(255, 106, 61, 0.17), transparent 65%), var(--bg0);
}

.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(780px 460px at 50% 60%, #000 30%, transparent 75%);
  mask-image: radial-gradient(780px 460px at 50% 60%, #000 30%, transparent 75%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.6vw, 5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.cta-title em {
  font-style: normal;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-actions { position: relative; }

.mega-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 3vw, 1.7rem) clamp(2.2rem, 5vw, 3.6rem);
  border: 1.5px solid rgba(255, 130, 70, 0.55);
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  margin-top: 1.5rem;
  will-change: transform;
}

.mega-fill {
  position: absolute;
  inset: 0;
  background: var(--grad-ember);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-forge);
}

.mega-btn:hover .mega-fill, .mega-btn:focus-visible .mega-fill { transform: scaleY(1); }

.mega-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 2.3rem);
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.3s ease;
}

.mega-btn:hover .mega-text, .mega-btn:focus-visible .mega-text { color: #14100d; }

.mega-text svg {
  width: 1.1em; height: 1.1em;
  transition: transform 0.35s var(--ease-out);
}

.mega-btn:hover .mega-text svg { transform: translateX(8px); }

.cta-email { margin-top: 1.6rem; }

.cta-email a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
  overflow-wrap: anywhere;
}

.cta-email a:hover { color: var(--text); border-color: var(--ember); }

.cta-note { margin-top: 0.9rem; font-size: 0.9rem; color: var(--faint); }

/* ============================================================
   Quote form
   ============================================================ */

.quote-form {
  max-width: 720px;
  margin: 2.8rem auto 0;
  text-align: left;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field-full { grid-column: 1 / -1; }

.form-field label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field label span {
  color: var(--faint);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1.05rem;
  background: rgba(7, 12, 19, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea { resize: vertical; min-height: 130px; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--faint); }

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.18);
}

.form-footer { text-align: center; }

.form-submit {
  background: transparent;
  cursor: pointer;
}

.form-submit:disabled { opacity: 0.55; cursor: wait; }
.form-submit:disabled .mega-fill { transform: scaleY(0); }
.form-submit:disabled .mega-text { color: var(--text); }

.form-status {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
  min-height: 1.4em;
}

.form-status.ok { color: #4fca7e; }
.form-status.error { color: #ff7a6b; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg1);
  padding: 3.5rem 0 2rem;
  overflow: hidden;
}

.footer-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.4rem, 11.5vw, 9.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 170, 197, 0.16);
  user-select: none;
  margin-bottom: 3rem;
  white-space: nowrap;
}

@supports not (-webkit-text-stroke: 1px #fff) {
  .footer-word { color: rgba(148, 170, 197, 0.08); }
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}

.footer-brand img { height: 28px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { color: var(--faint); font-size: 0.92rem; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-cols h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--faint);
  margin-bottom: 1rem;
}

.footer-cols a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.28rem 0;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}

.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.8rem;
  font-size: 0.85rem;
  color: var(--faint);
}

.footer-tag {
  font-family: var(--font-display);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* ============================================================
   Reveal animations
   ============================================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.85s var(--ease-out);
}

[data-reveal].in { opacity: 1; transform: none; }

.card-grid [data-reveal].in:nth-child(2),
.model-grid [data-reveal].in:nth-child(2) { transition-delay: 0.08s; }
.card-grid [data-reveal].in:nth-child(3),
.model-grid [data-reveal].in:nth-child(3) { transition-delay: 0.16s; }
.card-grid [data-reveal].in:nth-child(4) { transition-delay: 0.08s; }
.card-grid [data-reveal].in:nth-child(5) { transition-delay: 0.16s; }
.card-grid [data-reveal].in:nth-child(6) { transition-delay: 0.24s; }

/* ============================================================
   404 page
   ============================================================ */

.page-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.page-404 .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 24vw, 16rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2.5px rgba(233, 239, 247, 0.85);
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin: 1rem 0 0.6rem;
}

.page-404 p { color: var(--muted); margin-bottom: 2rem; }

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    top: 74px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(4, 7, 11, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.6rem 1.5rem 1.2rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0.3s;
  }

  body.nav-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a { padding: 0.75rem 0; font-size: 1.05rem; width: 100%; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }

  .hero { padding: 8rem 0 5.5rem; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .section { padding: 5.5rem 0; }
  .section-cta { padding: 7rem 0 6.5rem; }

  .timeline::before, .timeline::after { left: 23px; }
  .timeline-step { gap: 1.3rem; }
  .timeline-step .step-num { width: 46px; height: 46px; font-size: 0.85rem; }

  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats dt { font-size: 1.4rem; }

  .form-grid { grid-template-columns: 1fr; }

  .prow { gap: 1rem; padding: 1.5rem 0.25rem; }
  .prow-num { min-width: 1.6rem; }

  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols div:has(a[href^="mailto"]) { grid-column: 1 / -1; }
  /* The outline watermark shrinks to logo size on phones and reads as
     a duplicate of the brand mark right below it */
  .footer-word { display: none; }

  .scroll-cue { display: none; }
}

/* ============================================================
   Reduced motion — everything settles instantly
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-reveal], [data-hero] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-title .char {
    transform: none !important;
    transition: none !important;
  }

  .preloader { display: none; }
  body.preloading { overflow: auto; }

  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .badge-dot, .scroll-cue i::after, .pre-mark i { animation: none; }
  .cursor-dot, .cursor-ring { display: none; }

  .btn, .card, .model, .faq-q svg, .faq-a, .prow-desc,
  .mega-fill, .prow-title, .prow-arrow,
  .hero-for .flip span { transition: none; }

  .timeline::before { transform: scaleY(1); }
  .timeline-step .step-num { transition: none; }
}

/* ============================================================
   Skip link & theme toggle
   ============================================================ */

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 5000;
  background: var(--ember);
  color: #14100d;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible { top: 1rem; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover { color: var(--text); border-color: var(--muted); }
.theme-toggle svg { width: 19px; height: 19px; grid-area: 1 / 1; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.logo-on-light { display: none; }
[data-theme="light"] .logo-on-dark { display: none; }
[data-theme="light"] .logo-on-light { display: block; }

/* ============================================================
   Work: concept mockups + project layout
   ============================================================ */

.project-list { display: grid; gap: 4.5rem; margin-bottom: 4rem; }

.project {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.project:nth-child(even) .live-card { order: 2; }

.live-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.35s var(--ease-out),
              box-shadow 0.35s ease;
}

.live-card:hover {
  border-color: rgba(255, 130, 70, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -30px rgba(255, 106, 61, 0.25);
}

.live-body {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background:
    radial-gradient(420px 200px at 50% 115%, rgba(255, 106, 61, 0.10), transparent 70%),
    var(--panel);
}

.live-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  letter-spacing: -0.01em;
  color: var(--text);
}

.live-visit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ember);
}

.live-visit svg {
  width: 17px; height: 17px;
  transition: transform 0.3s var(--ease-out);
}

.live-card:hover .live-visit svg { transform: translate(3px, -3px); }

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: var(--panel2);
}

.mock-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.mock-bar span {
  margin-left: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--faint);
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12rem 0.7rem;
}

.mock-tag {
  position: absolute;
  top: 44px; right: 12px;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ember);
  background: var(--bg1);
  border: 1px solid var(--line-strong);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.project-ind {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}

.project-brief { color: var(--muted); margin-bottom: 1.3rem; }

.project-points { list-style: none; display: grid; gap: 0.8rem; }

.project-points li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--line-strong);
}

.project-points strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

/* Flagship real case study */

.case-real {
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 2.6rem 2.4rem;
  background:
    linear-gradient(var(--panel2), var(--panel2)) padding-box,
    linear-gradient(140deg, rgba(255, 106, 61, 0.65), rgba(148, 170, 197, 0.2)) border-box;
}

.case-real-tag {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.7rem;
}

.case-real h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.case-real > p { color: var(--muted); max-width: 720px; }
.case-real strong { color: var(--text); }

.case-real-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2.6rem;
  margin: 1.8rem 0 0.4rem;
}

.case-real-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  background: var(--grad-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.case-real-stats span { font-size: 0.87rem; color: var(--muted); }

/* Per-section CTA link */

.next-cta { margin-top: 2.8rem; }

.next-cta a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 61, 0.4);
  padding-bottom: 3px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.next-cta a:hover { color: var(--ember2); border-color: var(--ember2); }

@media (max-width: 860px) {
  /* Stack each project as: category label, title, live card, description */
  .project { grid-template-columns: 1fr; gap: 0; }
  .project:nth-child(even) .live-card { order: 0; }
  .project-info { display: contents; }
  .project-ind { order: -3; }
  .project-info h3 { order: -2; margin-bottom: 1.1rem; }
  .live-card { margin-bottom: 1.5rem; }
  .project-list { gap: 3.2rem; }
  .case-real { padding: 1.8rem 1.4rem; }
  .case-real-stats { gap: 1.6rem; }
}

/* ============================================================
   Light theme
   ============================================================ */

[data-theme="light"] {
  --bg0: #faf8f5;
  --bg1: #f2efea;
  --bg2: #eae6df;
  --panel: #ffffff;
  --panel2: #f7f4ef;
  --line: rgba(10, 38, 57, 0.10);
  --line-strong: rgba(10, 38, 57, 0.22);
  --text: #14232f;
  --muted: #4e6172;
  --faint: #7f8f9d;
  --ember: #d94f24;
  --ember2: #dd8420;
  --steel: #2c6cb0;
  --grad-ember: linear-gradient(92deg, #d94f24 10%, #dd8420 90%);
}

[data-theme="light"] body,
[data-theme="light"] { color-scheme: light; }

[data-theme="light"] ::selection { background: rgba(217, 79, 36, 0.25); color: #14232f; }

[data-theme="light"] .site-header.scrolled {
  background: rgba(250, 248, 245, 0.85);
}

[data-theme="light"] .hero {
  background: radial-gradient(1200px 700px at 70% -10%, #efe9df 0%, var(--bg0) 60%);
}

[data-theme="light"] .hero-fade {
  background:
    radial-gradient(1000px 560px at 28% 42%, rgba(250, 248, 245, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(250, 248, 245, 0.55) 0%, transparent 30%, transparent 72%, var(--bg0) 100%);
}

[data-theme="light"] .badge { background: rgba(255, 255, 255, 0.72); }

[data-theme="light"] .hero-stats > div { background: rgba(255, 255, 255, 0.72); }

[data-theme="light"] .form-field input,
[data-theme="light"] .form-field textarea { background: rgba(255, 255, 255, 0.72); }

[data-theme="light"] .form-status.ok { color: #1d8a4b; }
[data-theme="light"] .form-status.error { color: #c2402e; }

[data-theme="light"] .line-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(20, 35, 47, 0.85);
}

[data-theme="light"] .ghost-num,
[data-theme="light"] .ghost-word {
  -webkit-text-stroke: 1.5px rgba(10, 38, 57, 0.10);
}

[data-theme="light"] .footer-word {
  -webkit-text-stroke: 1px rgba(10, 38, 57, 0.15);
}

[data-theme="light"] .btn-primary { color: #fff; }
[data-theme="light"] .mega-btn:hover .mega-text,
[data-theme="light"] .mega-btn:focus-visible .mega-text { color: #fff; }
[data-theme="light"] .model-flag { color: #fff; }
[data-theme="light"] .timeline-step.lit .step-num { color: #fff; }
[data-theme="light"] .skip-link { color: #fff; }

[data-theme="light"] .grain { opacity: 0.05; }

[data-theme="light"] #sparkCanvas { mix-blend-mode: multiply; }

[data-theme="light"] .live-card { box-shadow: 0 24px 60px -30px rgba(10, 38, 57, 0.25); }

[data-theme="light"] .section-cta {
  background: radial-gradient(1000px 520px at 50% 118%, rgba(217, 79, 36, 0.14), transparent 65%), var(--bg0);
}

@media (max-width: 860px) {
  [data-theme="light"] .site-nav { background: rgba(250, 248, 245, 0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle, .live-card, .live-visit svg { transition: none; }
}
