/* ========================================================
   Reshape · Aurora — production stylesheet
   Approach: mobile-first, CSS custom properties, fluid type via clamp().
   ======================================================== */

:root {
  /* palette */
  --bg-0: #06070d;
  --bg-1: #0a0b14;
  --bg-2: #131634;
  --ink: #f4f1ff;
  --ink-dim: #cfcae8;
  --ink-mute: #8a8fb8;
  --ink-faint: #7c80a8;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --tile: rgba(255, 255, 255, 0.03);
  --tile-hover: rgba(255, 255, 255, 0.06);

  --cyan: #00e0ff;
  --blue: #4a6bff;
  --violet: #9b4dff;
  --magenta: #ff4dc4;
  --orange: #ffaa4d;
  --mint: #4dffb1;

  --grad: linear-gradient(95deg, var(--cyan) 0%, var(--blue) 35%, var(--violet) 65%, var(--magenta) 100%);
  --grad-soft: linear-gradient(135deg, rgba(0, 224, 255, 0.18), rgba(155, 77, 255, 0.18), rgba(255, 77, 196, 0.18));

  /* type */
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* tweak-driven */
  --f-display-tw: "Space Grotesk", system-ui, sans-serif;
  --f-display-weight: 500;
  --f-display-tracking: -0.045em;
  --f-display-case: none;
  --f-display-style: normal;
  --glow-rgb: 120, 90, 255;
  --cta-border: rgba(155, 77, 255, 0.18);

  /* layout */
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 28px;
  --radius-lg: 36px;

  /* anim */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(74, 107, 255, 0.18) 0%, transparent 60%),
    radial-gradient(80% 50% at 80% 20%, rgba(155, 77, 255, 0.12) 0%, transparent 60%),
    var(--bg-0);
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(155, 77, 255, 0.6); color: white; }

/* ============== CURSOR GLOW ============== */
#cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--glow-rgb), 0.18), rgba(var(--glow-rgb), 0) 70%);
  pointer-events: none;
  transform: translate3d(-320px, -320px, 0);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s ease, background 0.6s ease;
  will-change: transform;
}
body.glow-on #cursor-glow { opacity: 1; }
@media (hover: none) { #cursor-glow { display: none; } }

/* ============== CONTAINER / SECTIONS ============== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

section { position: relative; z-index: 2; }

/* ============== NAV ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(6, 7, 13, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__logo { width: 24px; height: 24px; flex-shrink: 0; }
.nav__links {
  display: flex; gap: 32px;
  font-size: 14px; color: rgba(232, 230, 245, 0.85);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; right: 100%;
  height: 1px; background: var(--grad);
  transition: right 0.4s var(--ease);
}
.nav__links a:hover::after { right: 0; }

.nav__burger {
  display: none;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  width: 40px; height: 40px; border-radius: 99px;
  cursor: pointer; padding: 0; position: relative;
}
.nav__burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  border-radius: 1px; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav__burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 99px;
  font-family: var(--f-body); font-size: 14px; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.3s;
  white-space: nowrap;
  line-height: 1;
}
.btn--solid {
  background: var(--grad);
  color: #0a0b14;
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 30px -10px rgba(155, 77, 255, 0.5);
}
.btn--solid:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(255, 77, 196, 0.5); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }

/* ============== MOBILE MENU ============== */
.mobile-menu {
  position: fixed; inset: 64px 0 0 0;
  background: rgba(6, 7, 13, 0.96);
  backdrop-filter: blur(20px);
  padding: 32px var(--gutter);
  display: flex; flex-direction: column; gap: 4px;
  z-index: 40;
  transform: translateY(-110%);
  transition: transform 0.45s var(--ease);
  border-bottom: 1px solid var(--line);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--f-display); font-size: 32px; font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.02em;
}
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; padding: 16px 26px; font-size: 15px; }

/* ============== ATOMS ============== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  flex-wrap: wrap;
}
.eyebrow__sep { opacity: 0.4; }
.eyebrow__status { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); }

.dot { width: 8px; height: 8px; border-radius: 99px; flex-shrink: 0; display: inline-block; }
.dot--violet { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.dot--cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.dot--magenta { background: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.dot--green { background: #3ec078; box-shadow: 0 0 10px #3ec078; }

.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
}

.italic { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
.muted { color: var(--ink-mute); }
.link {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em;
  color: var(--ink-dim);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.link:hover { color: var(--ink); border-bottom-color: var(--magenta); }

/* ============== REVEAL ==============
   Inverted: content is visible by default. Reveal animation only runs
   when JS adds `.js-reveals` to <body> — ensuring no content ever stays
   invisible if JS / IntersectionObserver fails. */
[data-reveal] {
  opacity: 1;
  transform: none;
}
body.js-reveals [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
body.js-reveals [data-reveal].is-in,
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 100px;
  padding-bottom: 80px;
  overflow: hidden;
}
h1.hero__wordmark.is-in {
    margin-top: 40px;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(154, 160, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154, 160, 214, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(80% 60% at 50% 40%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 40%, black, transparent 80%);
  pointer-events: none;
  z-index: 1;
}
.hero__ribbon {
  position: absolute;
  top: 8%;
  left: 0; right: 0;
  width: 100%;
  height: 110%;
  pointer-events: none;
  z-index: 1;
}
.hero__ribbon path { stroke-dasharray: 4200; stroke-dashoffset: 4200; animation: ribbonDraw 8s var(--ease) 1s forwards; }
.hero__ribbon path.ribbon-cross { animation-delay: 0.6s; }
@keyframes ribbonDraw { to { stroke-dashoffset: 0; } }

.hero__inner {
  position: relative; z-index: 3;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  display: flex; flex-direction: column;
  height: 100%;
}

.hero .eyebrow { margin-bottom: 64px; }

.hero__wordmark {
  font-family: var(--f-display-tw, var(--f-display));
  font-weight: var(--f-display-weight, 500);
  font-style: var(--f-display-style, normal);
  text-transform: var(--f-display-case, none);
  margin: 0;
  font-size: clamp(80px, 22vw, 340px);
  line-height: 0.86;
  letter-spacing: var(--f-display-tracking, -0.045em);
  color: var(--ink);
  mix-blend-mode: screen;
  transition: font-family 0.4s, letter-spacing 0.4s;
}
.hero__wordmark span { display: block; }

.hero__bottom {
  margin-top: auto;
  padding-top: clamp(48px, 8vw, 120px);
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__tag {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.1;
  color: var(--ink-dim);
  max-width: 540px;
  margin: 0;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 32px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
  z-index: 4;
}
.hero__scroll svg { animation: scrollBob 2s ease-in-out infinite; }
@keyframes scrollBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ============== MARQUEE ============== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
  background: rgba(8, 9, 17, 0.6);
}
.marquee__label {
  text-align: center;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.marquee__track {
  display: flex; gap: 60px;
  animation: marqueeScroll 50s linear infinite;
  width: max-content;
}
.marquee__row {
  display: flex; gap: 60px; align-items: center;
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.01em;
  color: var(--ink-dim);
  flex-shrink: 0;
}
.marquee__row span:nth-child(2n) { color: var(--violet); }
@keyframes marqueeScroll { to { transform: translateX(calc(-50% - 30px)); } }

/* ============== SECTION HEAD ============== */
.section-head { margin-bottom: clamp(48px, 7vw, 96px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }

.section-title {
  font-family: var(--f-display-tw, var(--f-display));
  font-weight: var(--f-display-weight, 500);
  font-style: var(--f-display-style, normal);
  text-transform: var(--f-display-case, none);
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.02;
  letter-spacing: var(--f-display-tracking, -0.025em);
  color: var(--ink);
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
  transition: font-family 0.4s, letter-spacing 0.4s;
}
/* Mono stance: trim type slightly (uppercase needs breathing room) */
:root[data-stance="mono"] .section-title { font-size: clamp(28px, 4vw, 56px); letter-spacing: 0; }
:root[data-stance="mono"] .hero__wordmark { font-size: clamp(64px, 16vw, 240px); }
/* Serif stance: keep italic words inline, soften */
:root[data-stance="serif"] .italic { font-family: inherit; font-style: italic; }

/* ============== MANIFESTO ============== */
.manifesto { padding: clamp(80px, 12vw, 160px) 0; }
.manifesto__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 5vw, 64px);
  max-width: 1080px;
  margin-left: auto;
}
.manifesto__cols p {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-dim);
}

/* ============== CAPABILITIES ============== */
.capabilities { padding: clamp(80px, 10vw, 140px) 0; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cap {
  position: relative;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--tile);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
  min-height: 360px;
  display: flex; flex-direction: column;
}
.cap:hover {
  background: var(--tile-hover);
  border-color: rgba(155, 77, 255, 0.3);
  transform: translateY(-4px);
}
.cap header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 60px; }
.cap__index { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--ink-faint); }
.cap h3 { font-family: var(--f-display); font-size: clamp(32px, 3.5vw, 44px); font-weight: 500; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.cap p { color: var(--ink-dim); margin: 0 0 20px; max-width: 32ch; font-size: 16px; }
.cap__list { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; color: var(--ink-mute); font-size: 14px; font-family: var(--f-mono); }
.cap__list li::before { content: "→ "; color: var(--violet); margin-right: 4px; }
.cap__line {
  position: absolute; right: 24px; top: 24px;
  width: 200px; height: 80px; opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.cap:hover .cap__line { opacity: 0.85; transform: translateX(0); }

/* ============== WORK ============== */
.work { padding: clamp(80px, 10vw, 140px) 0; }
.work__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--ink-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.4); }
.chip.is-active {
  background: var(--ink); color: var(--bg-0); border-color: var(--ink);
}

.work__list { border-top: 1px solid var(--line); }
.work__row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1.4fr 1.4fr 160px 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  color: var(--ink);
  transition: padding 0.4s var(--ease), color 0.3s;
}
.work__row:hover { padding-left: 24px; padding-right: 24px; }
.work__row:hover .work__name { color: var(--ink); }
.work__row.is-hidden { display: none; }
.work__year { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.1em; color: var(--ink-faint); }
.work__name { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.01em; transition: color 0.3s; }
.work__what { color: var(--ink-mute); font-size: 17px; font-family: var(--f-body); }
.work__tag { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.grad-pill { width: 28px; height: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--from), var(--to)); display: inline-block; }
.work__arrow { font-family: var(--f-display); font-size: 22px; color: var(--ink-mute); justify-self: end; transition: transform 0.3s var(--ease), color 0.2s; }
.work__row:hover .work__arrow { color: var(--ink); transform: translate(4px, -4px) rotate(8deg); }

/* gradient preview on hover */
.work__preview {
  position: absolute;
  right: 60px; top: 50%;
  transform: translateY(-50%) scale(0.7);
  width: 160px; height: 100px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--from), var(--to));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 40px -10px var(--from);
}
.work__row:hover .work__preview { opacity: 1; transform: translateY(-50%) scale(1); }
@media (max-width: 900px) { .work__preview { display: none; } }

.work__more {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 40px;
  padding: 14px 22px; border-radius: 99px;
  border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.work__more:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }

/* ============== PROCESS ============== */
.process { padding: clamp(80px, 10vw, 140px) 0; }
.process__list { list-style: none; padding: 0; margin: 0; }
.process__step {
  display: grid;
  grid-template-columns: 120px 1fr 240px;
  align-items: flex-start;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.process__step:last-child { border-bottom: 1px solid var(--line); }
.process__num {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.25em;
  color: var(--violet);
  padding-top: 8px;
}
.process__body h3 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em; margin: 0 0 12px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}
.process__body p { margin: 0 0 16px; color: var(--ink-dim); font-size: 17px; line-height: 1.55; max-width: 56ch; }
.process__meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-faint); }
.process__arc { width: 100%; height: auto; opacity: 0.6; }

/* ============== STATS ============== */
.stats { padding: clamp(60px, 8vw, 100px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8,9,17,0.4); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat__num {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(56px, 7vw, 96px); line-height: 1; letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { margin-top: 8px; color: var(--ink-mute); font-size: 14px; line-height: 1.4; }

/* ============== TESTIMONIALS ============== */
.testimonials { padding: clamp(80px, 10vw, 140px) 0; }
.t-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  background: linear-gradient(135deg, rgba(0,224,255,0.06), rgba(155,77,255,0.06), rgba(255,77,196,0.06));
  border: 1px solid var(--line);
  min-height: 380px;
  overflow: hidden;
}
.t-slide {
  position: absolute; inset: clamp(40px, 6vw, 72px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.t-slide.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.t-quote {
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.15; letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 30ch;
  text-wrap: balance;
}
.t-meta { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.t-avatar { width: 44px; height: 44px; border-radius: 99px; background: var(--g); flex-shrink: 0; }
.t-name { font-weight: 500; color: var(--ink); }
.t-role { font-size: 14px; color: var(--ink-mute); }
.t-controls { position: absolute; right: clamp(40px, 6vw, 72px); bottom: clamp(40px, 6vw, 72px); display: flex; gap: 8px; }
.t-dot {
  width: 24px; height: 4px; border-radius: 99px;
  background: var(--line-strong); border: none; cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}
.t-dot.is-active { background: var(--grad); width: 40px; }

/* ============== JOURNAL ============== */
.journal { padding: clamp(80px, 10vw, 140px) 0; }
.journal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--tile);
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.post:hover { transform: translateY(-4px); background: var(--tile-hover); border-color: rgba(155, 77, 255, 0.3); }
.post__cover {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--from), var(--to));
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.post__cover svg { width: 100%; height: auto; max-width: 300px; }
.post__meta { padding: 24px 24px 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--violet); }
.post__title { font-family: var(--f-display); font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; margin: 8px 24px 0; color: var(--ink); flex: 1; }
.post__date { padding: 16px 24px 24px; font-size: 14px; color: var(--ink-mute); }

/* ============== FAQ ============== */
.faq { padding: clamp(80px, 10vw, 140px) 0; }
.faq__list { border-top: 1px solid var(--line); max-width: 960px; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0;
  font-family: var(--f-display); font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--violet); }
.faq__icon {
  font-family: var(--f-mono); font-size: 22px; color: var(--ink-mute);
  transition: transform 0.3s var(--ease), color 0.2s;
  flex-shrink: 0;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); color: var(--violet); }
.faq__body {
  padding: 0 0 28px;
  color: var(--ink-dim); font-size: 17px; line-height: 1.6;
  max-width: 64ch;
}
.faq__body a { color: var(--violet); border-bottom: 1px solid currentColor; }

/* ============== CTA ============== */
.cta { padding: clamp(80px, 10vw, 140px) 0; }
.cta__card {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 20% 20%, rgba(0, 224, 255, 0.18) 0%, transparent 55%),
    radial-gradient(110% 80% at 80% 30%, rgba(155, 77, 255, 0.22) 0%, transparent 55%),
    radial-gradient(120% 90% at 50% 100%, rgba(255, 77, 196, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #0e1030 0%, #0a0b1c 100%);
  border: 1px solid rgba(155, 77, 255, 0.18);
  overflow: hidden;
  padding: clamp(56px, 8vw, 120px) clamp(40px, 6vw, 80px);
  box-shadow: 0 30px 80px -40px rgba(155, 77, 255, 0.4);
}
.cta__ribbon { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }
.cta__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.cta__inner--simple {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 24px; max-width: 720px; margin: 0 auto;
}
.cta__inner--simple .kicker { margin-bottom: 0; }
.cta__inner--simple h2 {
  font-family: var(--f-display-tw, var(--f-display));
  font-weight: var(--f-display-weight, 500);
  font-style: var(--f-display-style, normal);
  text-transform: var(--f-display-case, none);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.02; letter-spacing: var(--f-display-tracking, -0.03em);
  margin: 0; text-wrap: balance;
}
.cta__inner--simple p { color: var(--ink-dim); font-size: 18px; line-height: 1.55; margin: 0; max-width: 44ch; }
.cta__email {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-serif); font-style: italic;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-top: 12px;
  transition: opacity 0.2s;
}
.cta__email:hover { opacity: 0.85; }
.cta__buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.cta__copy h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.cta__copy p { color: var(--ink-dim); font-size: 17px; line-height: 1.55; max-width: 36ch; margin: 0; }

.cta__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta__form label { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute); }
.cta__form label.full { grid-column: 1 / -1; }
.cta__form input,
.cta__form textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--f-body); font-size: 15px;
  letter-spacing: normal; text-transform: none;
  transition: border-color 0.2s, background 0.2s;
}
.cta__form input:focus,
.cta__form textarea:focus { outline: none; border-color: var(--violet); background: rgba(255,255,255,0.06); }
.cta__form textarea { resize: vertical; min-height: 120px; }

.cta__form-row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.cta__budget { border: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.cta__budget legend { padding: 0 0 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute); }
.cta__budget label {
  flex-direction: row; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 12px; text-transform: none; letter-spacing: 0.05em;
  padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 99px;
  color: var(--ink-dim); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.cta__budget label:has(input:checked) { border-color: var(--violet); background: rgba(155,77,255,0.12); color: var(--ink); }
.cta__budget input { accent-color: var(--violet); width: 12px; height: 12px; margin: 0; }

.cta__success { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; background: rgba(77, 255, 177, 0.1); border: 1px solid rgba(77, 255, 177, 0.3); color: #a8f5d0; font-size: 14px; }

/* ============== FOOTER ============== */
.footer { padding: clamp(80px, 10vw, 140px) 0 0; position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 64px; padding-bottom: 80px; border-bottom: 1px solid var(--line); }
.footer__brand p { color: var(--ink-mute); margin: 16px 0 0; max-width: 28ch; font-size: 15px; }
.footer__logo { width: 64px; height: 64px; margin-bottom: 16px; }
.footer__mark { font-family: var(--f-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 480px; margin-left: auto; }
.footer__head { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.footer__cols a, .footer__cols p { display: block; color: var(--ink-dim); padding: 6px 0; font-size: 15px; line-height: 1.5; margin: 0; }
.footer__cols a:hover { color: var(--ink); }
.footer__news-copy { padding: 0 0 12px !important; }

.news { display: flex; gap: 8px; }
.news input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  padding: 10px 14px;
  color: var(--ink); font-size: 14px;
  font-family: var(--f-body);
}
.news input:focus { outline: none; border-color: var(--violet); }
.news button {
  width: 40px; height: 40px; border-radius: 99px; border: none;
  background: var(--grad); color: var(--bg-0); font-size: 16px; cursor: pointer; font-weight: 600;
  transition: transform 0.2s;
}
.news button:hover { transform: translateX(2px); }
.news__ok { padding-top: 8px; font-size: 13px; color: #a8f5d0; }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px 0 40px;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-faint);
  gap: 16px; flex-wrap: wrap;
}
.footer__email a { font-family: var(--f-serif); font-style: italic; font-size: 22px; letter-spacing: 0; text-transform: none; color: var(--ink-dim); }
.footer__email a:hover { color: var(--ink); }

.footer__mega {
  font-family: var(--f-display);
  font-size: clamp(120px, 28vw, 440px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  font-weight: 500;
  text-align: center;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.45;
  margin-top: -40px;
  padding-bottom: 0;
  user-select: none;
  pointer-events: none;
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav { padding: 16px var(--gutter); }

  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero__tag { font-size: clamp(20px, 4vw, 28px); }
  .hero__scroll { display: none; }

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

  .cap-grid { grid-template-columns: 1fr; }
  .cap { min-height: 0; padding: 28px; }
  .cap header { margin-bottom: 32px; }
  .cap__line { display: none; }

  .work__row {
    grid-template-columns: 60px 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    padding: 20px 0;
    font-size: 18px;
  }
  .work__year { grid-row: 1 / span 2; align-self: center; }
  .work__name { grid-column: 2; grid-row: 1; }
  .work__what { grid-column: 2; grid-row: 2; font-size: 14px; }
  .work__tag { display: none; }
  .work__arrow { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .work__row:hover { padding-left: 12px; padding-right: 12px; }

  .process__step { grid-template-columns: 60px 1fr; gap: 20px 16px; padding: 28px 0; }
  .process__arc { grid-column: 2; width: 160px; opacity: 0.5; margin-top: 8px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

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

  .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .cta__form { grid-template-columns: 1fr; }
  .cta__form-row { flex-direction: column; align-items: stretch; }
  .cta__form-row .btn { justify-content: center; }

  .footer__top { grid-template-columns: 1fr; gap: 48px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { font-size: 11px; }
  .footer__email a { font-size: 18px; }
}

@media (max-width: 560px) {
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ========================================================
   TWEAKS PANEL
   ======================================================== */
.tw {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 100;
  width: 320px;
  background: rgba(10, 11, 20, 0.78);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  color: var(--ink);
  font-family: var(--f-body);
  animation: twIn 0.4s var(--ease);
  overflow: hidden;
}
.tw[hidden] { display: none; }

@keyframes twIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.tw__head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.tw__head:active { cursor: grabbing; }
.tw__drag { display: flex; flex-direction: column; gap: 3px; }
.tw__drag span {
  display: block; width: 18px; height: 1px;
  background: rgba(255, 255, 255, 0.3);
}
.tw__title {
  flex: 1;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-dim);
}
.tw__close {
  background: transparent; border: none; color: var(--ink-mute);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 0;
  width: 22px; height: 22px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.tw__close:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }

.tw__section { padding: 16px; border-bottom: 1px solid var(--line); }
.tw__section:last-child { border-bottom: none; }
.tw__label {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.tw__seg {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.tw__chip {
  flex: 1 0 auto;
  min-width: fit-content;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink-dim);
  font-family: var(--f-body);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.tw__chip:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.tw__chip:active { transform: scale(0.97); }
.tw__chip.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(var(--glow-rgb), 0.4), 0 0 18px -4px rgba(var(--glow-rgb), 0.55);
}
.tw__sw {
  width: 16px; height: 10px; border-radius: 99px;
  display: inline-block; flex-shrink: 0;
}

@media (max-width: 560px) {
  .tw { left: 16px; right: 16px; bottom: 16px; width: auto; }
}
