/* =========================================================
   WOLFSTREET AI LAB - Synthetic, modern, designy
   ========================================================= */

:root {
  --bg:           oklch(16% 0.012 275);
  --bg-raised:    oklch(19% 0.015 275);
  --bg-soft:      oklch(22% 0.018 275);
  --line:         oklch(32% 0.02 275);
  --line-soft:    oklch(26% 0.015 275);
  --fg:           oklch(96% 0.008 275);
  --fg-dim:       oklch(72% 0.012 275);
  --fg-faint:     oklch(48% 0.015 275);
  --accent:       #4D4CE5;
  --accent-2:     oklch(62% 0.22 280);
  --accent-soft:  rgba(77, 76, 229, 0.14);

  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1440px;
  --gutter: clamp(20px, 3vw, 40px);
}

*,*::before,*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-feature-settings: "ss01","ss02","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.4;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--bg); }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: 0.08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Particle canvas ---------- */
#particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}

/* ---------- WordPress-style nav (wolfstreet.nl integration mock) ---------- */
.ws-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(32px, 6vw, 96px);
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 0.01em;
  background: rgba(16, 16, 22, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ws-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: 0.04em; font-size: 13px;
  color: #fff;
}
.ws-logo img { width: 20px; height: auto; }
.ws-links {
  display: flex; align-items: center; gap: 32px;
  font-weight: 400;
}
.ws-links > a {
  color: rgba(255,255,255,0.78);
  transition: color .2s;
}
.ws-links > a:hover { color: #fff; }
.ws-ailab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--accent);
  color: #fff !important;
  background: rgba(77, 76, 229, 0.08);
  transition: background .2s, transform .2s;
}
.ws-ailab:hover { background: rgba(77, 76, 229, 0.18); }
.ws-ailab.active {
  background: var(--accent);
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(77, 76, 229, 0.2), 0 8px 30px rgba(77, 76, 229, 0.35);
}
.ws-ailab .ws-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  animation: pulse 2s ease-in-out infinite;
}
@media (max-width: 860px) {
  .ws-links > a:not(.ws-ailab) { display: none; }
}
.nav a { opacity: 0.8; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav .logo {
  font-family: var(--font-display);
  font-weight: 500; font-size: 14px; letter-spacing: -0.01em;
  text-transform: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.nav .logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.nav .logo .wolf-mark {
  width: 22px; height: auto;
  margin-right: 2px;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.7); }
}
.nav-links { display: flex; gap: 28px; }
.nav .cta-pill {
  padding: 8px 14px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, border-color .2s;
}
.nav .cta-pill:hover { border-color: #fff; }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Shared layout ---------- */
.section {
  position: relative; z-index: 2;
  padding: clamp(80px, 12vh, 160px) clamp(32px, 6vw, 96px);
  max-width: var(--max); margin: 0 auto;
}
.eyebrow {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--accent);
  display: inline-block; border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 450;
  letter-spacing: -0.025em; margin: 0;
  line-height: 0.98; text-wrap: balance;
}

p { text-wrap: pretty; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px clamp(32px, 6vw, 96px) 60px;
  overflow: hidden;
  z-index: 2;
}

.hero-meta {
  position: absolute; top: 80px; left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim); letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-meta .coord { display: flex; gap: 16px; }
.hero-meta .coord span b { color: var(--fg); font-weight: 400; }

.hero h1 {
  font-size: clamp(56px, 11vw, 180px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 40px;
}
.hero h1 .out {
  font-style: italic; font-weight: 300;
  background:
    radial-gradient(circle at var(--rx, 30%) var(--ry, 50%), #C9C5FF 0%, #8079FF 18%, var(--accent) 40%, #2E2A9E 80%);
  background-size: 250% 250%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: outRadial 9s ease-in-out infinite;
  display: inline-block;
  padding: 0.12em 0.2em 0.18em 0.08em;
  margin: -0.12em -0.2em -0.18em -0.08em;
  line-height: 1.1;
}
@keyframes outRadial {
  0%   { background-position: 10% 30%; }
  25%  { background-position: 80% 20%; }
  50%  { background-position: 90% 80%; }
  75%  { background-position: 20% 90%; }
  100% { background-position: 10% 30%; }
}
.hero h1 .cursor {
  display: inline-block; width: 0.06em; height: 0.8em;
  background: var(--accent); margin-left: 0.04em;
  vertical-align: -0.1em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-bottom {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 60px; align-items: end;
}
.hero-bottom p {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg-dim); max-width: 46ch;
  margin: 0;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; font-family: var(--font-mono);
}
.stat { border-top: 1px solid var(--line); padding-top: 12px; }
.stat .n { font-family: var(--font-display); font-size: 32px; font-weight: 400; letter-spacing: -0.02em; }
.stat .l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-dim); margin-top: 4px; }

@media (max-width: 720px) {
  .hero-bottom { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat .n { font-size: 22px; }
}

/* Hero synthetic glyph – rotating ring of mono text */
.hero-glyph {
  position: absolute;
  right: calc(var(--gutter) + 20px);
  top: 20%;
  width: clamp(160px, 18vw, 260px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.9;
}
.hero-glyph .ring-text {
  position: absolute; inset: 0;
  animation: spin 24s linear infinite;
}
.hero-glyph svg { width: 100%; height: 100%; }
.hero-glyph .core {
  position: absolute; inset: 32%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, oklch(52% 0.23 275 / 0.8), transparent 60%),
    radial-gradient(circle at 70% 70%, oklch(62% 0.22 280 / 0.6), transparent 60%),
    var(--bg-raised);
  box-shadow:
    inset 0 0 30px oklch(52% 0.23 275 / 0.3),
    0 0 40px oklch(52% 0.23 275 / 0.2);
  animation: core-pulse 4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes core-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.85; transform: scale(1.04); }
}

@media (max-width: 900px) {
  .hero-glyph { position: static; margin: 40px auto; width: 180px; }
}

/* Scroll indicator */
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--fg-dim);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint .bar {
  width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--fg-dim));
  animation: drop 2.2s ease-in-out infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   MANIFESTO
   ========================================================= */
.manifesto {
  padding-top: clamp(48px, 7vh, 96px);
  padding-bottom: clamp(120px, 18vh, 220px);
}
.manifesto .big {
  font-size: clamp(28px, 4.5vw, 64px);
  font-weight: 300; letter-spacing: -0.03em; line-height: 1.05;
  max-width: 22ch;
  margin: 32px 0 0;
}
.manifesto .big em {
  font-style: italic; color: var(--accent);
}
.manifesto-grid {
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.manifesto-grid > div { }
.manifesto-grid h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-dim);
  margin-bottom: 12px; font-weight: 500;
}
.manifesto-grid p { margin: 0; color: var(--fg); font-size: 15px; max-width: 30ch;}
@media (max-width: 720px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   PILLARS
   ========================================================= */
.pillars {
  padding-top: 40px; padding-bottom: 40px;
}
.pillars-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 40px; margin-bottom: 80px;
}
.pillars-head h2 {
  font-size: clamp(40px, 6vw, 96px); font-weight: 300;
}
.pillars-head .count {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim); letter-spacing: 0.14em; text-transform: uppercase;
}

.pillar {
  display: grid; grid-template-columns: 120px 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.pillar:last-of-type { border-bottom: 1px solid var(--line); }
.pillar .num {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-dim); letter-spacing: 0.08em;
}
.pillar .num b { color: var(--accent); font-weight: 400; }
.pillar h3 {
  font-size: clamp(28px, 3.8vw, 52px); font-weight: 350;
  letter-spacing: -0.025em; margin-bottom: 16px;
  line-height: 1;
}
.pillar p {
  color: var(--fg-dim); font-size: 16px; max-width: 44ch;
  margin: 0;
}
.pillar .visual {
  grid-column: 3;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  position: relative; overflow: hidden;
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
}
.pillar .caption {
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-faint);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .pillar { grid-template-columns: 1fr; gap: 24px; }
  .pillar .visual { grid-column: auto; aspect-ratio: 16/10; }
}

/* ----- Synthetic visuals (pure CSS + minimal SVG) ----- */
.visual-inner { position: absolute; inset: 0; }

/* V1: Hybrid - layered cells dissolving */
.vis-hybrid {
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, oklch(52% 0.23 275 / 0.08) 14px 15px),
    repeating-linear-gradient(0deg, transparent 0 14px, oklch(52% 0.23 275 / 0.06) 14px 15px),
    radial-gradient(circle at 30% 40%, oklch(52% 0.23 275 / 0.35), transparent 60%),
    radial-gradient(circle at 70% 65%, oklch(62% 0.22 280 / 0.35), transparent 60%),
    linear-gradient(135deg, oklch(22% 0.018 275), oklch(19% 0.015 275));
}
.vis-hybrid::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  mix-blend-mode: overlay; opacity: 0.6;
}

/* V2: Pipeline - connected nodes */
.vis-pipeline {
  background: linear-gradient(135deg, oklch(22% 0.018 275), oklch(16% 0.012 275));
}

/* V3: Brand models - rotating swatch grid */
.vis-brand {
  background: linear-gradient(135deg, oklch(19% 0.015 275), oklch(22% 0.018 275));
}

/* V4: Generation - particle burst */
.vis-gen {
  background: radial-gradient(circle at 50% 50%, oklch(22% 0.03 260), oklch(14% 0.012 275) 70%);
}

/* =========================================================
   CASES
   ========================================================= */
.cases {
  padding-top: clamp(120px, 18vh, 200px);
  padding-bottom: clamp(120px, 18vh, 200px);
}
.cases-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 60px;
}
.cases-head h2 {
  font-size: clamp(40px, 6vw, 96px); font-weight: 300;
}
.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case {
  position: relative; aspect-ratio: 4/5;
  overflow: hidden; border-radius: 4px;
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
}
.case:hover { transform: translateY(-6px); }
.case-disabled { cursor: default; opacity: 0.55; }
.case-disabled:hover { transform: none; }
.case-disabled .arrow { opacity: 0.5; }
.case .case-visual { position: absolute; inset: 0; }
.case .case-meta {
  position: absolute; inset: auto 0 0 0; padding: 24px;
  display: flex; justify-content: space-between; align-items: flex-end;
  color: #fff; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.case .case-meta h3 { font-size: 28px; font-weight: 400; letter-spacing: -0.02em; }
.case .case-meta .tag { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.7; }
.case .case-meta .arrow {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%; display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.case:hover .case-meta .arrow { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.case-visual.cv-1 {
  background:
    linear-gradient(180deg, transparent 40%, oklch(12% 0.02 290 / 0.5)),
    url("assets/lavish-case.jpg") center/cover no-repeat,
    linear-gradient(160deg, oklch(30% 0.18 275), oklch(18% 0.04 275));
}
.case-visual.cv-2 {
  background:
    linear-gradient(180deg, transparent 40%, oklch(12% 0.02 275 / 0.5)),
    url("assets/vinted-case.jpg") center/cover no-repeat,
    linear-gradient(200deg, oklch(22% 0.08 275), oklch(16% 0.02 275));
}
.case-visual.cv-3 {
  background:
    linear-gradient(180deg, transparent 40%, oklch(12% 0.02 300 / 0.5)),
    url("assets/tellent-case.jpg") center/cover no-repeat,
    linear-gradient(160deg, oklch(28% 0.15 305), oklch(16% 0.03 300));
}
.case-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
  mix-blend-mode: overlay; opacity: 0.7;
}

@media (max-width: 720px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   CAPABILITIES
   ========================================================= */
.capabilities {
  padding-top: 40px;
  padding-bottom: clamp(120px, 18vh, 200px);
}
.cap-head {
  border-top: 1px solid var(--line); padding-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-bottom: 80px; align-items: end;
}
.cap-head h2 {
  font-size: clamp(40px, 6vw, 88px); font-weight: 300;
}
.cap-head p { color: var(--fg-dim); max-width: 40ch; margin: 0; font-size: 16px; }

.cap-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.cap-item {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center;
  gap: 24px; cursor: default;
  transition: padding .3s;
}
.cap-item:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--line); }
.cap-item:nth-child(even) { padding-left: 40px; }

.cap-item .idx { font-family: var(--font-mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.12em; }
.cap-item .name { font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); font-weight: 400; letter-spacing: -0.01em; transition: color .2s, transform .3s; }
.cap-item .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--line);
  transition: background .2s, box-shadow .2s;
}
.cap-item:hover .name { color: var(--accent); transform: translateX(4px); }
.cap-item:hover .dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); }

@media (max-width: 720px) {
  .cap-list { grid-template-columns: 1fr; }
  .cap-item:nth-child(odd) { border-right: 0; padding-right: 0; }
  .cap-item:nth-child(even) { padding-left: 0; }
}

/* =========================================================
   CTA
   ========================================================= */
.cta-section {
  padding-top: clamp(120px, 18vh, 220px);
  padding-bottom: clamp(120px, 18vh, 220px);
  position: relative;
  text-align: left;
}
.cta-section .kicker {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-dim); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 40px;
}
.cta-section h2 {
  font-size: clamp(48px, 9vw, 160px);
  font-weight: 300; letter-spacing: -0.04em; line-height: 0.95;
}
.cta-section h2 em {
  font-style: italic; font-weight: 300;
  background:
    radial-gradient(circle at var(--rx, 30%) var(--ry, 50%), #C9C5FF 0%, #8079FF 18%, var(--accent) 40%, #2E2A9E 80%);
  background-size: 250% 250%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: outRadial 9s ease-in-out infinite;
  display: inline-block;
  padding: 0.12em 0.2em 0.18em 0.08em;
  margin: -0.12em -0.2em -0.18em -0.08em;
  line-height: 1.1;
}

.cta-card {
  margin-top: 80px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(30px, 4vw, 56px);
  background: linear-gradient(135deg, oklch(19% 0.015 275 / 0.8), oklch(16% 0.012 275 / 0.8));
  backdrop-filter: blur(10px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center; position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.cta-card .contact h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 20px; font-weight: 500;
}
.cta-card .contact .person {
  display: flex; align-items: center; gap: 16px;
}
.cta-card .contact .avatar {
  width: 88px; height: 88px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 3px rgba(77, 76, 229, 0.15), 0 10px 40px rgba(77, 76, 229, 0.25);
  background: var(--bg-raised);
}
.cta-card .contact .avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.15);
}
.cta-card .contact .avatar .status {
  display: none;
}
.cta-card .contact .avatar .status {
  position: absolute; bottom: 2px; right: 2px;
  width: 12px; height: 12px; border-radius: 50%;
  background: oklch(75% 0.18 150);
  border: 2px solid var(--bg-raised);
  box-shadow: 0 0 8px oklch(75% 0.18 150 / 0.6);
}
.cta-card .contact .name {
  font-size: 28px; font-weight: 400; letter-spacing: -0.02em;
}
.cta-card .contact .title {
  font-size: 14px; color: var(--fg-dim); margin-top: 4px;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.cta-card .contact .email {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 20px; font-size: 15px;
  padding-bottom: 2px; border-bottom: 1px solid var(--fg-dim);
  transition: color .2s, border-color .2s;
}
.cta-card .contact .email:hover { color: var(--accent); border-color: var(--accent); }

.big-cta {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 18px 28px; border-radius: 999px;
  background: var(--accent); color: var(--bg);
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .25s, background .2s;
  justify-self: end;
}
.big-cta:hover { transform: translateX(4px); background: oklch(55% 0.29 275); }
.big-cta .arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
}

@media (max-width: 720px) {
  .cta-card { grid-template-columns: 1fr; }
  .big-cta { justify-self: start; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(32px, 6vw, 96px);
  max-width: var(--max); margin: 0 auto;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-dim); letter-spacing: 0.04em;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.footer .links { display: flex; gap: 24px; }
.footer .links a:hover { color: var(--accent); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }

/* ---------- Thesis video ---------- */
.thesis-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  margin-top: clamp(80px, 12vh, 160px);
  margin-bottom: 0;
}
.thesis-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.thesis-video__veil {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, oklch(16% 0.012 275 / 0.35) 0%, transparent 18%, transparent 70%, oklch(16% 0.012 275) 100%);
}
@media (max-width: 720px) {
  .thesis-video { aspect-ratio: 4 / 5; }
}

.thesis-video__sound {
  position: absolute;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(16, 16, 22, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  z-index: 3;
}
.thesis-video__sound:hover {
  background: rgba(16, 16, 22, 0.8);
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.05);
}
.thesis-video__sound .icon-unmute { display: none; }
.thesis-video__sound.on .icon-mute { display: none; }
.thesis-video__sound.on .icon-unmute { display: block; }

/* ---------- Tweaks panel ---------- */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 1000;
  background: oklch(19% 0.015 275 / 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px; min-width: 240px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg);
  display: none;
}
.tweaks.on { display: block; }
.tweaks h5 { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); font-weight: 500; }
.tweaks label { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; gap: 12px; }
.tweaks input[type="range"] { flex: 1; }
.tweaks .swatches { display: flex; gap: 6px; }
.tweaks .sw { width: 20px; height: 20px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; }
.tweaks .sw.on { border-color: var(--fg); }
