/* ───────────────────────────────────────────────────────────
   Five Line Studio — Scaffold mark · Slash palette · Lean Pro
   Paper #F4F4F0 · Carbon #0A0B0C · Steel #6E7681
   Cobalt #2856FF (Pro) · Phosphor #36F1A1 / Magenta #FF2E88 (Play)
   ─────────────────────────────────────────────────────────── */

:root {
  --paper: #F4F4F0;
  --carbon: #0A0B0C;
  --steel: #6E7681;
  --cobalt: #2856FF;
  --phosphor: #36F1A1;
  --magenta: #FF2E88;
  --line: rgba(10, 11, 12, 0.12);
  --line-paper: rgba(244, 244, 240, 0.14);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 92px; }

body {
  background: var(--paper);
  color: var(--carbon);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--cobalt); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--carbon);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 12px 18px;
  border-radius: 4px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Scroll progress ── */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--cobalt);
  z-index: 100;
}

/* ── Type helpers ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow.accent { color: var(--cobalt); }
.eyebrow.play { color: var(--phosphor); }
.eyebrow.spark { color: var(--magenta); }

.h-xl {
  font-weight: 700;
  font-size: clamp(48px, 8.5vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.h-lg {
  font-weight: 600;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.h-md {
  font-weight: 600;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: rgba(10, 11, 12, 0.72);
  max-width: 560px;
}

.u-underline {
  position: relative;
  white-space: nowrap;
}
.u-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.04em;
  height: 0.085em;
  width: 100%;
  background: var(--cobalt);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  animation: drawline 0.9s var(--ease) 1s forwards;
}
@keyframes drawline { to { transform: scaleX(1); } }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 16px 26px;
  border-radius: 4px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-solid { background: var(--carbon); color: var(--paper); }
.btn-solid:hover { background: var(--cobalt); box-shadow: 0 10px 30px rgba(40, 86, 255, 0.3); }
.btn-ghost { border-color: var(--line); color: var(--carbon); background: transparent; }
.btn-ghost:hover { border-color: var(--carbon); }
.btn-paper { background: var(--paper); color: var(--carbon); }
.btn-paper:hover { background: var(--phosphor); box-shadow: 0 10px 30px rgba(54, 241, 161, 0.25); }
.btn-spark { background: var(--magenta); color: var(--paper); }
.btn-spark:hover { background: var(--magenta); box-shadow: 0 10px 30px rgba(255, 46, 136, 0.35); }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 244, 240, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand .mark { display: block; }
.brand:hover .mark svg rect:nth-child(2) { fill: var(--magenta); }
.brand-name { line-height: 1; }
.brand-name .top { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand-name .sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 3px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.site-nav a:not(.nav-cta) {
  color: var(--steel);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--cobalt);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}
.site-nav a:not(.nav-cta):hover,
.site-nav a.active { color: var(--carbon); }
.site-nav a:not(.nav-cta):hover::after,
.site-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.site-nav a.nav-cta {
  color: var(--paper);
  background: var(--carbon);
  padding: 11px 18px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}
.site-nav a.nav-cta:hover { background: var(--cobalt); transform: translateY(-1px); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 104px 0 96px;
  overflow: hidden;
}
.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 71px,
    rgba(10, 11, 12, 0.045) 71px,
    rgba(10, 11, 12, 0.045) 72px
  );
  mask-image: linear-gradient(to bottom, black 0%, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 92%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero .eyebrow { display: block; margin-bottom: 30px; }
.hero .h-xl { margin-bottom: 30px; }
.hero .lede { margin-bottom: 40px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hl-line { display: block; overflow: hidden; }
.hl-line > span {
  display: block;
  transform: translateY(110%);
  animation: hl-up 0.9s var(--ease) forwards;
}
.hl-line:nth-child(1) > span { animation-delay: 0.05s; }
.hl-line:nth-child(2) > span { animation-delay: 0.15s; }
.hl-line:nth-child(3) > span { animation-delay: 0.25s; }
@keyframes hl-up { to { transform: translateY(0); } }

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.8s var(--ease) forwards;
}
.fade-up.d1 { animation-delay: 0.35s; }
.fade-up.d2 { animation-delay: 0.5s; }
.fade-up.d3 { animation-delay: 0.65s; }
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* Terminal panel */
.term {
  background: var(--carbon);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10, 11, 12, 0.25);
}
.term-bar {
  height: 34px;
  background: #16181b;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.term-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: #FF5F57; }
.term-bar i:nth-child(2) { background: #FEBC2E; }
.term-bar i:nth-child(3) { background: #28C840; }
.term-bar .term-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(244, 244, 240, 0.4);
}
.term-body {
  padding: 26px 26px 30px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2.1;
  color: var(--paper);
  min-height: 280px;
}
.term-body .ln { color: var(--magenta); margin-right: 10px; }
.term-body .fn { color: var(--phosphor); }
.term-body .kw { color: var(--cobalt); }
.term-body .cm { color: var(--steel); }
.term-body .ok { color: var(--phosphor); }
.cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: var(--phosphor);
  vertical-align: middle;
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Marquee ── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--paper);
}
.marquee-inner {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee-inner span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
  padding-right: 3.2em;
}
.marquee-inner span b { color: var(--cobalt); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections & reveal ── */
section { padding: 104px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.rule { border: 0; border-top: 1px solid var(--line); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.dl-1 { transition-delay: 0.1s; }
.reveal.dl-2 { transition-delay: 0.2s; }
.reveal.dl-3 { transition-delay: 0.3s; }

/* ── Mythics / featured showcase ── */
.showcase {
  position: relative;
  background: var(--carbon);
  color: var(--paper);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  min-height: 520px;
}
.showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 46, 136, 0.05) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.showcase-copy {
  position: relative;
  padding: 64px 16px 64px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.showcase-copy .eyebrow { display: block; margin-bottom: 22px; }
.showcase-copy h2, .showcase-copy h3 { margin-bottom: 18px; }
.showcase-copy p {
  color: rgba(244, 244, 240, 0.72);
  max-width: 460px;
  margin-bottom: 34px;
  font-size: 17px;
  line-height: 1.6;
}
.showcase-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-paper);
  color: rgba(244, 244, 240, 0.7);
}
.tag.hot { border-color: var(--magenta); color: var(--magenta); }
.showcase-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.showcase-stage {
  position: relative;
  min-height: 420px;
  perspective: 1100px;
}
.tcg-card {
  position: absolute;
  width: 200px;
  height: 286px;
  border-radius: 12px;
  background: #121417;
  border: 1px solid rgba(244, 244, 240, 0.14);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  will-change: transform;
  transition: transform 0.3s var(--ease);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.tcg-card .tcg-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.tcg-card .tcg-art {
  flex: 1;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tcg-card .tcg-art::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 60%;
  height: 300%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: rotate(8deg);
  animation: glint 4.5s ease-in-out infinite;
}
@keyframes glint { 0%, 60% { left: -60%; } 100% { left: 140%; } }
.tcg-card .tcg-name {
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.tcg-card .tcg-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(244, 244, 240, 0.45);
}
.tcg-card.c1 {
  left: 6%;
  top: 12%;
  transform: rotate(-10deg);
  z-index: 1;
}
.tcg-card.c2 {
  left: 30%;
  top: 6%;
  transform: rotate(2deg);
  z-index: 3;
  box-shadow: 0 30px 80px rgba(255, 46, 136, 0.28);
}
.tcg-card.c3 {
  left: 54%;
  top: 16%;
  transform: rotate(11deg);
  z-index: 2;
}
.tcg-card.float { animation: floaty 6s ease-in-out infinite; }
.tcg-card.c2.float { animation-delay: 0.8s; }
.tcg-card.c3.float { animation-delay: 1.6s; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

/* ── Project grid & cards ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(10, 11, 12, 0.14);
}
.card-cover {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.card:hover .card-cover img { transform: scale(1.04); }
.card-cover .cover-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  padding: 5px 9px;
  border-radius: 3px;
  z-index: 2;
}
.card-body { padding: 24px 26px 26px; }
.card-title {
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .go {
  font-family: var(--font-mono);
  color: var(--cobalt);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.2s var(--ease);
}
.card:hover .card-title .go { opacity: 1; transform: none; }
.card-tagline {
  font-size: 14.5px;
  color: var(--steel);
  margin-bottom: 18px;
  line-height: 1.45;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}
.card-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--steel);
}

/* ── Filters ── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  align-items: center;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--steel);
  text-transform: uppercase;
  margin-right: 4px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--steel);
  transition: all 0.18s var(--ease);
}
.chip:hover { border-color: var(--carbon); color: var(--carbon); transform: translateY(-1px); }
.chip.active, .chip[aria-pressed="true"] {
  background: var(--carbon);
  border-color: var(--carbon);
  color: var(--paper);
}
.filter-divider { width: 1px; height: 24px; background: var(--line); margin: 0 8px; }

/* ── Pro / Play split ── */
.split-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.split-half { padding: 60px 52px; position: relative; overflow: hidden; }
.split-half .eyebrow { display: block; margin-bottom: 20px; }
.split-half h3 { margin-bottom: 14px; }
.split-half p { opacity: 0.72; max-width: 420px; margin-bottom: 30px; }
.split-pro { background: #fff; color: var(--carbon); }
.split-play { background: var(--carbon); color: var(--paper); }
.split-play::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(54, 241, 161, 0.05) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.split-play .eyebrow { color: var(--phosphor); }
.split-half > * { position: relative; }

/* ── Five-line process (home strip + build page) ── */
.process-line {
  display: grid;
  grid-template-columns: 90px 1fr 2fr;
  gap: 32px;
  align-items: baseline;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s, padding-left 0.2s var(--ease);
}
.process-line:last-of-type { border-bottom: 1px solid var(--line); }
.process-line:hover { background: rgba(40, 86, 255, 0.04); padding-left: 12px; }
.process-line .p-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cobalt);
}
.process-line .p-title {
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}
.process-line .p-desc { color: var(--steel); font-size: 16px; line-height: 1.55; max-width: 560px; }
.process-line.is-you .p-num { color: var(--magenta); }
.process-line.is-you .p-title em { font-style: normal; color: var(--magenta); }

/* ── Dark services band ── */
.services { background: var(--carbon); color: var(--paper); }
.services .eyebrow { color: var(--phosphor); }
.services .lede { color: rgba(244, 244, 240, 0.72); }
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.service-item { border-top: 1px solid var(--line-paper); padding-top: 24px; }
.service-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--phosphor);
  display: block;
  margin-bottom: 14px;
}
.service-item h3, .service-item h4 {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.service-item p { font-size: 15px; opacity: 0.65; line-height: 1.55; }

/* ── Build page extras ── */
.deliver-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.deliver {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.deliver:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(10, 11, 12, 0.1); }
.deliver .d-mark { margin-bottom: 18px; }
.deliver h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.deliver p { font-size: 14.5px; color: var(--steel); line-height: 1.55; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 4px;
  font-weight: 600;
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  font-family: var(--font-mono);
  color: var(--cobalt);
  font-size: 20px;
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .faq-body { padding: 0 4px 26px; color: rgba(10, 11, 12, 0.7); max-width: 720px; line-height: 1.6; }

/* ── Project detail ── */
.project-hero { padding-top: 88px; padding-bottom: 56px; }
.project-hero .eyebrow { display: block; margin-bottom: 22px; }
.project-hero h1 { margin-bottom: 20px; }
.project-hero .lede { margin-bottom: 32px; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--steel);
}
.badge.live { border-color: #0c8a5b; color: #0c8a5b; }
.badge.dev { border-color: var(--cobalt); color: var(--cobalt); }

.project-cover {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 72px;
  position: relative;
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; }

.project-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 72px;
  padding-bottom: 104px;
}
.project-body h2 { margin: 0 0 18px; }
.project-body .copy p { margin-bottom: 16px; color: rgba(10, 11, 12, 0.78); }
.feature-list { list-style: none; margin-top: 28px; }
.feature-list li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.feature-list li::before {
  content: "/";
  font-family: var(--font-mono);
  color: var(--cobalt);
  font-weight: 600;
}
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: #fff;
  align-self: start;
  position: sticky;
  top: 104px;
}
.side-panel .eyebrow { display: block; margin-bottom: 18px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.spec-row .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  padding-top: 3px;
}
.spec-row .v { font-weight: 500; text-align: right; }
.side-panel .links { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.side-panel .links .btn { justify-content: center; width: 100%; }

/* ── Page heroes / stats ── */
.page-hero { padding-top: 96px; padding-bottom: 64px; position: relative; }
.page-hero .eyebrow { display: block; margin-bottom: 26px; }
.page-hero h1 { margin-bottom: 26px; max-width: 880px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 72px;
}
.stat { border-top: 2px solid var(--carbon); padding-top: 18px; }
.stat .n { font-weight: 700; font-size: 52px; letter-spacing: -0.03em; line-height: 1; }
.stat .l {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 10px;
}

/* ── Contact ── */
.contact-block {
  background: var(--carbon);
  color: var(--paper);
  border-radius: 10px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.contact-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(40, 86, 255, 0.06) 0 1px, transparent 1px 5px);
  pointer-events: none;
}
.contact-block > * { position: relative; }
.contact-block h2 { margin-bottom: 16px; }
.contact-block .lede { margin-bottom: 0; color: rgba(244, 244, 240, 0.72); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-actions .btn { justify-content: center; }
.contact-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-align: center;
}

/* ── Legal pages ── */
.legal { padding-top: 88px; padding-bottom: 104px; }
.legal .eyebrow { display: block; margin-bottom: 22px; }
.legal h1 { margin-bottom: 14px; }
.legal .legal-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--steel);
  margin-bottom: 56px;
}
.legal-prose { max-width: 760px; }
.legal-prose h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 44px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal-prose h3 { font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
.legal-prose p, .legal-prose li { color: rgba(10, 11, 12, 0.78); margin-bottom: 14px; font-size: 16px; line-height: 1.65; }
.legal-prose ul { padding-left: 22px; margin-bottom: 16px; }
.legal-prose li { margin-bottom: 8px; }
.legal-prose a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.legal-prose address { font-style: normal; }

/* ── Footer ── */
.site-footer {
  background: var(--carbon);
  color: var(--paper);
  padding: 80px 0 40px;
  overflow: hidden;
}
.footer-word {
  font-weight: 700;
  font-size: clamp(64px, 12vw, 180px);
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 244, 240, 0.22);
  user-select: none;
  margin-bottom: 64px;
  white-space: nowrap;
}
.footer-word b { color: transparent; -webkit-text-stroke: 1px var(--cobalt); font-weight: 700; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links .col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links .col .head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 244, 240, 0.45);
  margin-bottom: 6px;
}
.footer-links .col a { color: rgba(244, 244, 240, 0.75); transition: color 0.15s; }
.footer-links .col a:hover { color: var(--phosphor); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-paper);
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(244, 244, 240, 0.45);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .service-list { grid-template-columns: 1fr; gap: 0; }
  .service-item { padding: 24px 0; }
  .deliver-grid { grid-template-columns: repeat(2, 1fr); }
  .project-body { grid-template-columns: 1fr; gap: 40px; }
  .side-panel { position: static; }
  .split-strip { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-copy { padding: 48px 40px 0; }
  .showcase-stage { min-height: 400px; margin: 16px 24px 40px; }
  .contact-block { grid-template-columns: 1fr; padding: 40px; gap: 32px; }
  .stat-row { grid-template-columns: 1fr; gap: 20px; }
  .process-line { grid-template-columns: 64px 1fr; }
  .process-line .p-desc { grid-column: 2; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .grid { grid-template-columns: 1fr; }
  .deliver-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta):not(.active) { display: none; }
  section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .tcg-card { width: 150px; height: 215px; }
  .showcase-stage { min-height: 300px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hl-line > span { transform: none; }
  .fade-up { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .u-underline::after { transform: scaleX(1); }
  .marquee-inner { animation: none; }
  .tcg-card.float { animation: none; }
}
