/* ====== Qonnwolf Design System — "The Celestial Monolith" ====== */
:root {
  /* === Material 3 surface tokens (Tonal Layering) === */
  --surface:                    #0e131e;   /* primary canvas */
  --surface-container-lowest:   #080e18;   /* deepest well */
  --surface-container-low:      #161c26;   /* subtle block */
  --surface-container:          #1a202a;   /* module */
  --surface-container-high:     #242a35;   /* lifted */
  --surface-container-highest:  #2a303c;   /* top-most */
  --surface-bright:             #343945;   /* luminous edge */
  --surface-variant:            #2f3540;   /* glass fill */

  /* === Engine Glow (primary, tech blue) === */
  --primary:            #b7c4ff;           /* light blue text on dark */
  --primary-container:  #1d4ed8;           /* controlled highlight */
  --on-primary:         #ffffff;
  --on-primary-container: #e0e7ff;

  /* === Ignition (tertiary, orange — CTA only) === */
  --tertiary:           #ffb690;           /* warm glow */
  --tertiary-container: #9a4200;           /* action surface */
  --on-tertiary:        #592200;
  --on-tertiary-container: #ffdbcc;

  /* === On-surface text === */
  --on-surface:         #dde2f1;           /* Cyber White */
  --on-surface-variant: #c2c7d6;
  --on-surface-mute:    #8e90a0;
  --on-background:      #dde2f1;

  /* === Outlines (ghost borders only) === */
  --outline:            #8e90a0;
  --outline-variant:    #434655;

  /* === Legacy bridge tokens (so existing rules still compile) === */
  --wolf-blue:          var(--primary-container);
  --wolf-blue-deep:     #0a2b8f;
  --wolf-blue-ink:      var(--surface);
  --wolf-blue-ink-2:    var(--surface-container-low);
  --wolf-blue-bright:   var(--primary);
  --wolf-blue-bright-soft: #d9e0ff;
  --wolf-orange:        var(--tertiary);
  --wolf-orange-soft:   #ffd2b8;
  --paper:              var(--on-surface);
  --paper-2:            var(--on-surface-variant);
  --ink:                var(--surface);
  --ink-2:              var(--surface-container);
  --line:               rgba(221,226,241,.08);
  --line-strong:        rgba(221,226,241,.20);
  --on-dark-fg:         var(--on-surface);
  --on-dark-fg-mute:    var(--on-surface-mute);
  --on-dark-line:       rgba(221,226,241,.08);

  /* === Type — Editorial High-Tech === */
  --font-display: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, sans-serif;
  --font-headline: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  --font-label: 'Space Grotesk', 'JetBrains Mono', monospace;
  --font-sans: var(--font-body);
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-cn-display: 'Noto Sans SC', 'PingFang SC Heavy', 'Microsoft YaHei', sans-serif;

  /* Radius — xl (24px) for the monolith-softening curve */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Spacing */
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  font-feature-settings: 'ss01','ss02','cv11';
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  text-wrap: pretty;
}
body.dark {
  background: var(--surface);
  color: var(--on-surface);
}

/* Headlines inherit display face + tightened tracking — "engineered, not designed" */
h1, h2, h3, h4, h5, .display, .headline {
  font-family: var(--font-headline);
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

/* Labels — scientific notation feel */
.label, .eyebrow, [data-label] {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Custom scrollbar — thin Engine-Glow instrument */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; opacity: 0.6; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-container); }
html { scrollbar-width: thin; scrollbar-color: var(--primary) transparent; }

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

/* Language toggle */
[lang-en] { display: none; }
html[data-lang="en"] [lang-cn] { display: none; }
html[data-lang="en"] [lang-en] { display: inline; }
html[data-lang="en"] [lang-en-block] { display: block; }

/* ====== Nav — glass monolith bar ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--pad);
  background: rgba(14,19,30,.72);
  border-bottom: 1px solid rgba(221,226,241,.06);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}
body.dark .nav { background: rgba(14,19,30,.72); border-bottom-color: rgba(221,226,241,.06); }
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; color: var(--on-surface); }
.nav__brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-text small { font-size: 10px; letter-spacing: 0.3em; color: var(--on-surface-mute); font-family: var(--font-label); text-transform: uppercase; font-weight: 500; }
.nav__brand-text span { font-size: 18px; margin-top: 4px; }
.nav__links { display: flex; gap: 28px; font-size: 14px; font-family: var(--font-body); color: var(--on-surface-variant); }
.nav__links a { position: relative; padding: 4px 0; transition: color .2s; }
.nav__links a:hover { color: var(--primary); }
.nav__actions { display: flex; gap: 12px; align-items: center; font-family: var(--font-label); font-size: 12px; }
.lang-toggle { padding: 6px 12px; border: 1px solid rgba(142,144,160,.20); border-radius: 999px; cursor: pointer; background: transparent; color: var(--on-surface-variant); font-family: var(--font-label); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; transition: all .2s; }
.lang-toggle:hover { border-color: var(--outline); color: var(--on-surface); background: rgba(221,226,241,.04); }
body.dark .lang-toggle:hover { background: rgba(221,226,241,.04); color: var(--on-surface); }

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 80px var(--pad) 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--surface);
  color: var(--on-surface);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(221,226,241,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(221,226,241,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 80%);
}
.hero__eyebrow {
  font-family: var(--font-label);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  color: var(--tertiary);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.hero__eyebrow .dot { width: 8px; height: 8px; background: var(--tertiary); border-radius: 50%; animation: pulse 2s infinite; box-shadow: 0 0 12px var(--tertiary); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 32px;
  position: relative;
  color: var(--on-surface);
}
.hero__title em {
  font-style: normal;
  color: var(--primary);
  font-family: var(--font-label);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero__title .crossed {
  position: relative;
  opacity: .35;
  font-size: 0.6em;
  margin-right: 0.3em;
  font-weight: 500;
}
.hero__title .crossed::after {
  content: ''; position: absolute; left: -4%; right: -4%; top: 50%;
  height: 2px; background: var(--tertiary);
  transform: rotate(-4deg);
}
.hero__lead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--on-surface-variant);
  max-width: 48ch;
  margin-bottom: 40px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-label); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600;
  border: 1px solid rgba(142,144,160,.20);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all .25s ease;
  background: transparent; color: var(--on-surface);
}
/* Primary — "The Pulse" — Engine Glow with signature 135° gradient */
.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  border-color: transparent;
  color: var(--on-primary);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(183,196,255,.15), 0 8px 32px rgba(29,78,216,.25);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(183,196,255,.25), 0 12px 40px rgba(29,78,216,.40);
  filter: brightness(1.08);
}
/* Ignition CTA — reserved for Contact/Invest */
.btn--ignition {
  background: var(--tertiary-container);
  border-color: transparent;
  color: var(--on-tertiary-container);
  font-weight: 700;
}
.btn--ignition:hover {
  background: var(--tertiary);
  color: var(--on-tertiary);
  box-shadow: 0 12px 40px rgba(154,66,0,.45);
}
/* Ghost Tech */
.btn--ghost { background: transparent; border-color: rgba(142,144,160,.20); color: var(--on-surface-variant); }
.btn--ghost:hover { border-color: var(--outline); color: var(--on-surface); background: rgba(221,226,241,.03); }

/* Hero terminal — glass module */
.hero__terminal {
  background: rgba(47,53,64,.40);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(52,57,69,.6);
  position: relative;
  z-index: 1;
}
.hero__terminal-head {
  display: flex; gap: 6px; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(221,226,241,.06);
  align-items: center;
}
.hero__terminal-head span { width: 10px; height: 10px; border-radius: 50%; background: rgba(221,226,241,.15); }
.hero__terminal-head span:first-child { background: #ff5f57; }
.hero__terminal-head span:nth-child(2) { background: #febc2e; }
.hero__terminal-head span:nth-child(3) { background: #28c840; }
.hero__terminal-head strong { font-family: var(--font-label); font-size: 11px; color: var(--on-surface-mute); margin-left: auto; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; }
.term-line { color: var(--on-surface-variant); }
.term-line .prompt { color: var(--tertiary); margin-right: 8px; }
.term-line .key { color: var(--primary); }
.term-line .str { color: #a8e6a1; }
.term-line.comment { color: var(--on-surface-mute); }
.term-cursor::after {
  content: '▊'; color: var(--primary); animation: blink 1s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Stat strip — No-Line rule: background-shift cells, not borders */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface-container-lowest);
  color: var(--on-surface);
  gap: 1px;
}
.stat-strip::before, .stat-strip::after { display: none; }
.stat-strip__cell {
  padding: 40px var(--pad);
  background: var(--surface);
  border: none;
  transition: background .3s;
}
.stat-strip__cell:hover { background: var(--surface-container-low); }
.stat-strip__cell:last-child { border-right: 0; }
.stat-strip__num {
  font-family: var(--font-display); font-size: clamp(36px, 4vw, 56px);
  font-weight: 700; line-height: 1; letter-spacing: -0.02em;
  color: var(--primary);
}
/* Alternate Engine Glow / Ignition across the 4 cells */
.stat-strip__cell:nth-child(1) .stat-strip__num { color: var(--primary); }
.stat-strip__cell:nth-child(2) .stat-strip__num { color: var(--tertiary); }
.stat-strip__cell:nth-child(3) .stat-strip__num { color: var(--tertiary); }
.stat-strip__cell:nth-child(4) .stat-strip__num { color: var(--primary); }
.stat-strip__label { margin-top: 12px; font-family: var(--font-label); font-size: 11px; color: var(--on-surface-mute); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; }

/* ====== Section shell ====== */
.section { padding: 120px var(--pad); position: relative; background: var(--surface); color: var(--on-surface); }
.section--dark { background: var(--surface-container-lowest); color: var(--on-surface); }
.section--blue { background: var(--primary-container); color: var(--on-primary); }

.section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 72px; gap: 40px; flex-wrap: wrap;
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1;
  color: var(--on-surface);
}
.section__head h2 em { font-style: normal; color: var(--primary); font-family: var(--font-display); font-weight: 400; font-size: 0.5em; letter-spacing: 0.02em; vertical-align: middle; margin-left: 16px; opacity: .85; }
.section__head h2 em:lang(en) { font-family: var(--font-label); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.55em; }
.section__tag { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-surface-mute); margin-bottom: 20px; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.section__tag::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tertiary, #ffb690);
  box-shadow: 0 0 14px var(--tertiary, #ffb690);
  flex-shrink: 0;
}
.section__intro { max-width: 48ch; font-family: var(--font-body); color: var(--on-surface-variant); line-height: 1.7; font-size: 16px; }

/* ====== Curriculum ladder — Data Strip vertical rail ====== */
.ladder {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  border-top: 1px solid rgba(67,70,85,.20);
}
body.dark .ladder, .section--dark .ladder { border-top-color: rgba(67,70,85,.30); }
.ladder__row { display: contents; }
.ladder__age {
  padding: 36px 0;
  font-family: var(--font-label);
  font-size: 13px;
  border-bottom: 1px solid rgba(67,70,85,.20);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  position: relative;
}
.section--dark .ladder__age { color: var(--primary); border-bottom-color: rgba(67,70,85,.30); }
.ladder__content {
  padding: 36px 0 36px 36px;
  border-bottom: 1px solid rgba(67,70,85,.20);
  position: relative;
}
.section--dark .ladder__content { border-bottom-color: rgba(67,70,85,.30); }
/* Signature Data Strip — vertical primary rail replaces the left border */
.ladder__content::after {
  content: ''; position: absolute; left: 0; top: 36px; bottom: 36px;
  width: 2px; background: rgba(183,196,255,.15);
}
.ladder__content::before {
  content: ''; position: absolute; left: -3px; top: 44px;
  width: 8px; height: 8px; background: var(--primary); border-radius: 50%;
  box-shadow: 0 0 12px var(--primary);
}
.ladder__title {
  font-family: var(--font-headline);
  font-size: 28px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.015em;
  color: var(--on-surface);
}
.ladder__subtitle { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-surface-mute); margin-bottom: 20px; font-weight: 500; }
.ladder__desc { font-family: var(--font-body); color: var(--on-surface-variant); max-width: 72ch; line-height: 1.75; margin-bottom: 20px; font-size: 15px; }
.ladder__tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------- Media layout: image on the left, text on the right ------- */
.ladder__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 48px;
  align-items: start;
}
.ladder__text { min-width: 0; order: 2; }
.ladder__media {
  margin: 0;
  order: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: rgba(67,70,85,.12);
  border: 1px solid rgba(183,196,255,.14);
  max-width: 280px;
}
.section--dark .ladder__media { background: rgba(26,27,34,.6); border-color: rgba(183,196,255,.10); }
.ladder__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.55) contrast(1.05) brightness(.92);
  transition: transform .8s ease, filter .6s ease;
}
.ladder__row:hover .ladder__media img {
  transform: scale(1.04);
  filter: saturate(.9) contrast(1.08) brightness(1);
}
.ladder__media-cap {
  position: absolute;
  bottom: 8px; left: 10px;
  font-family: var(--font-label);
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(255,255,255,.7);
  padding: 3px 7px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 880px) {
  .ladder__body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ladder__media {
    max-width: 100%;
    aspect-ratio: 16 / 10;
    order: 1;
  }
  .ladder__text { order: 2; }
}
.tag {
  font-family: var(--font-label); font-size: 11px; padding: 6px 14px;
  background: rgba(47,53,64,.40);
  border-radius: 999px;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--on-surface-variant);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.section--dark .tag { background: rgba(47,53,64,.50); color: var(--on-surface-variant); }

/* ====== Tech cards — Glass Modules ====== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.tech-card {
  grid-column: span 4;
  padding: 36px;
  background: rgba(22,28,38,.60);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all .35s ease;
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(67,70,85,.25);
}
.tech-card:hover {
  background: var(--surface-container-high);
  box-shadow: inset 0 0 0 1px rgba(183,196,255,.25), 0 16px 48px rgba(8,14,24,.6);
  transform: translateY(-2px);
}
.tech-card--wide { grid-column: span 8; }
.tech-card--tall { min-height: 320px; }
.tech-card__tag { font-family: var(--font-label); font-size: 11px; color: var(--primary); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.tech-card__title { font-family: var(--font-headline); font-size: 28px; font-weight: 700; margin: 20px 0 14px; letter-spacing: -0.015em; color: var(--on-surface); }
.tech-card__desc { font-family: var(--font-body); color: var(--on-surface-variant); line-height: 1.75; font-size: 15px; }
.tech-card__glyph {
  position: absolute; right: -30px; bottom: -30px;
  font-family: var(--font-display); font-size: 180px; opacity: .14; font-weight: 800;
  color: rgba(232, 177, 95, 0.55);
  text-shadow: 0 0 24px rgba(232, 177, 95, 0.25);
}

/* ====== Honors — No-Line: tonal-shift grid ====== */
.honors-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--surface-container-lowest);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.section--dark .honors-grid { background: var(--surface-container-lowest); }
.honor {
  background: var(--surface-container);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 172px;
  transition: background .3s;
}
.honor:hover { background: var(--surface-container-high); }
.section--dark .honor { background: var(--surface-container); }
.section--dark .honor:hover { background: var(--surface-container-high); }
.honor__medal {
  font-family: var(--font-label); font-size: 11px;
  color: var(--tertiary); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
}
.honor__title { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--on-surface); }
.honor__sub { margin-top: auto; font-family: var(--font-label); font-size: 11px; color: var(--on-surface-mute); letter-spacing: 0.1em; text-transform: uppercase; }

/* ====== Downloads — Glass Modules ====== */
.downloads-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1100px) {
  .downloads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .downloads-grid { grid-template-columns: 1fr; }
}
.dl-card {
  padding: 28px 24px;
  background: rgba(22,28,38,.60);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 18px;
  transition: all .3s ease;
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(67,70,85,.25);
  color: var(--on-surface);
}
.dl-card:hover {
  background: var(--surface-container-high);
  box-shadow: inset 0 0 0 1px rgba(183,196,255,.25), 0 16px 48px rgba(8,14,24,.6);
  transform: translateY(-2px);
}
.dl-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(232, 177, 95, 0.08);
  border: 1px solid rgba(232, 177, 95, 0.25);
  color: #f0c77a;
  box-shadow: inset 0 1px 0 rgba(255, 241, 200, 0.15);
}
.dl-card__icon svg {
  width: 22px; height: 22px;
  display: block;
}
.dl-card__title { font-family: var(--font-headline); font-size: 18px; font-weight: 700; letter-spacing: -0.015em; color: var(--on-surface); }
.dl-card__meta { font-family: var(--font-label); font-size: 11px; color: var(--on-surface-mute); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 500; }
.dl-card__desc { font-family: var(--font-body); font-size: 14px; color: var(--on-surface-variant); line-height: 1.7; flex: 1; }
.dl-card__btn {
  padding: 14px 0 2px; margin-top: auto;
  font-family: var(--font-label); font-size: 12px; display: flex; justify-content: space-between; align-items: center;
  letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600;
  color: var(--primary);
  border-top: 1px solid rgba(67,70,85,.25);
  padding-top: 18px;
}
.dl-card:hover .dl-card__btn { color: var(--on-surface); }

/* ====== Footer ====== */
.footer {
  background: var(--surface-container-lowest); color: var(--on-surface);
  padding: 88px var(--pad) 40px;
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
}
.footer__brand img { width: 48px; margin-bottom: 16px; border-radius: 10px; }
.footer__brand p { font-family: var(--font-body); font-size: 14px; color: var(--on-surface-mute); line-height: 1.75; max-width: 36ch; margin-top: 14px; }
.footer__col h4 { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-surface-mute); margin-bottom: 20px; font-weight: 600; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-family: var(--font-body); color: var(--on-surface-variant); }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--primary); }
.footer__bottom {
  grid-column: 1 / -1;
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid rgba(67,70,85,.25);
  display: flex; justify-content: space-between;
  font-family: var(--font-label); font-size: 11px; color: var(--on-surface-mute); letter-spacing: 0.15em; text-transform: uppercase;
}

/* ====== Tweaks panel — glass module ====== */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  background: rgba(22,28,38,.85); color: var(--on-surface);
  padding: 22px; border-radius: var(--radius-lg);
  font-family: var(--font-label); font-size: 12px;
  width: 280px;
  backdrop-filter: blur(32px) saturate(140%);
  -webkit-backdrop-filter: blur(32px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(67,70,85,.40), 0 24px 64px rgba(8,14,24,.6);
  display: none;
}
.tweaks.active { display: block; }
.tweaks h5 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; color: var(--primary); font-weight: 600; }
.tweaks label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; color: var(--on-surface-variant); }
.tweaks input, .tweaks select { background: rgba(47,53,64,.40); border: 1px solid rgba(67,70,85,.40); color: var(--on-surface); padding: 6px 10px; border-radius: 8px; font-family: inherit; font-size: 11px; }
.tweaks input[type="color"] { padding: 0; width: 42px; height: 26px; border-radius: 6px; }

/* Mobile */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip__cell:nth-child(2) { border-right: 0; }
  .tech-card, .tech-card--wide { grid-column: span 12; }
  .footer { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
  .ladder { grid-template-columns: 100px 1fr; }
}

/* Brand override + cinematic frame defaults (was inline on <html>) */
:root {
  --wolf-orange: #b33818;
  --frame-width: 1082px;
  --frame-offset-x: 0px;
}

/* Contact section (extracted from inline styles) */
.section--contact { background: var(--paper-2); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  font-family: var(--font-cn);
}
.contact-cell__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: .5;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-cell__value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
}
.contact-cell__value--plain {
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-cn);
}
