/* ==========================================================================
   TAURUS MARKETING SITE — "Editorial Terminal" Design System
   Serif manifesto × terminal precision × keyline grid discipline.
   No glows. No gradients. No glass. Craft in the hairlines.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Canvas */
  --bg:          #0a0d0c;
  --bg-raise:    #0d1110;
  --bg-panel:    #0c100f;
  --bg-inset:    #080b0a;

  /* Lines — the primary decorative element of this design */
  --line:        rgba(214, 233, 226, 0.10);
  --line-strong: rgba(214, 233, 226, 0.18);
  --line-faint:  rgba(214, 233, 226, 0.05);

  /* Ink */
  --text:        #e7ece9;
  --text-2:      #9aa8a2;
  --text-3:      #75817b;

  /* Accent — used surgically: markers, italics, status, selection */
  --accent:      #5fdec3;
  --accent-dim:  rgba(95, 222, 195, 0.55);
  --accent-bg:   rgba(95, 222, 195, 0.07);

  /* Status */
  --status-live: #5fdec3;
  --status-warm: #e8c268;
  --status-idle: #55625d;

  /* Buttons */
  --btn-solid-bg:    #e9eeec;
  --btn-solid-text:  #0a0d0c;
  --btn-solid-hover: #ffffff;

  /* Layout */
  --container: 1120px;
  --gutter:    32px;
  --header-h:  60px;

  /* Type */
  --font-serif: 'Instrument Serif', 'Instrument Serif Fallback', 'Iowan Old Style', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;

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

/* --------------------------------------------------------------------------
   1. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #05221b; }

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

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--accent-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--accent);
}

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

/* --------------------------------------------------------------------------
   2. PAGE FRAME
   The whole page lives inside a keyline frame: two vertical hairlines run
   the full height at the container edges; sections divide with horizontals.
   -------------------------------------------------------------------------- */
.frame {
  max-width: var(--container);
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 100vh;
}

@media (max-width: 1180px) {
  .frame { border-left: none; border-right: none; }
}

.container {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
}

/* Horizontal rules between sections */
.rule { border: none; border-top: 1px solid var(--line); }

/* Mono kicker label, the structural voice of the site */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent-dim);
  background: var(--accent-bg);
  flex-shrink: 0;
}

.kicker--plain::before { display: none; }

/* --------------------------------------------------------------------------
   3. BUTTONS — the app's exact glassy button system
   Ported verbatim from app.taurus.cloud (.btn.primary et al.), original
   tokens inlined (99, 230, 207 emerald).
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: #dbe7e4;
  border: 1px solid #18333a;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  overflow: hidden;
  z-index: 1;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.3s ease,
    transform 0.15s ease;

  /* Multi-layer glass background */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 15%, transparent 40%),
    linear-gradient(0deg, rgba(255,255,255,0.025) 0%, transparent 30%),
    #10252b;

  /* Inner highlight + outer shadow */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Specular highlight band */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  border-radius: 10px 10px 0 0;
  pointer-events: none;
  z-index: 2;
}

.btn:hover {
  border-color: rgba(99, 230, 207, 0.25);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 15%, transparent 40%),
    linear-gradient(0deg, rgba(255,255,255,0.03) 0%, transparent 30%),
    #10252b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Primary: glassy neon glow (the app's .btn.primary) */
.btn--primary {
  color: #dffcf5;
  font-weight: 500;
  border: 1px solid rgba(99, 230, 207, 0.28);

  background:
    linear-gradient(180deg, rgba(99, 230, 207, 0.62) 0%, rgba(99, 230, 207, 0.28) 6%, transparent 35%),
    radial-gradient(ellipse 100% 80% at 50% 20%, rgba(99, 230, 207, 0.12) 0%, transparent 65%),
    linear-gradient(0deg, rgba(99, 230, 207, 0.12) 0%, transparent 35%),
    linear-gradient(180deg, rgba(99, 230, 207, 0.18) 0%, rgba(99, 230, 207, 0.08) 100%);

  box-shadow:
    inset 0 1px 0 rgba(99, 230, 207, 0.62),
    inset 0 -1px 8px rgba(99, 230, 207, 0.12),
    0 0 8px rgba(99, 230, 207, 0.14),
    0 0 20px rgba(99, 230, 207, 0.14);
}

.btn--primary::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 5%, rgba(255, 255, 255, 0.03) 18%, transparent 45%);
}

/* Soft bloom pseudo-element */
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(99, 230, 207, 0.28) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.btn--primary:hover {
  background:
    linear-gradient(180deg, rgba(99, 230, 207, 0.62) 0%, rgba(99, 230, 207, 0.62) 4%, transparent 30%),
    radial-gradient(ellipse 110% 90% at 50% 15%, rgba(99, 230, 207, 0.28) 0%, transparent 60%),
    linear-gradient(0deg, rgba(99, 230, 207, 0.28) 0%, transparent 35%),
    linear-gradient(180deg, rgba(99, 230, 207, 0.28) 0%, rgba(99, 230, 207, 0.14) 100%);
  border-color: rgba(99, 230, 207, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(99, 230, 207, 0.62),
    inset 0 -1px 10px rgba(99, 230, 207, 0.28),
    0 0 12px rgba(99, 230, 207, 0.14),
    0 0 28px rgba(99, 230, 207, 0.14),
    0 0 48px rgba(99, 230, 207, 0.06);
  transform: translateY(-0.5px);
}

.btn--primary:hover::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.14) 5%, rgba(255, 255, 255, 0.04) 20%, transparent 50%);
}

.btn--primary:hover::after { opacity: 0.85; }

.btn--primary:active {
  transform: translateY(0.5px);
  box-shadow:
    inset 0 2px 8px rgba(99, 230, 207, 0.28),
    0 0 6px rgba(99, 230, 207, 0.14);
}

.btn--primary:active::before { opacity: 0.3; }
.btn--primary:active::after  { opacity: 0.3; }

/* Secondary: dark teal glass */
.btn--ghost {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 15%, transparent 40%),
    linear-gradient(0deg, rgba(255,255,255,0.015) 0%, transparent 30%),
    rgba(12, 28, 33, 0.5);
  border-color: rgba(99, 230, 207, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #63e6cf;
}

.btn--ghost:hover {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.03) 15%, transparent 40%),
    linear-gradient(0deg, rgba(255,255,255,0.02) 0%, transparent 30%),
    rgba(16, 37, 43, 0.6);
  border-color: rgba(99, 230, 207, 0.3);
  color: #b9f8ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(99, 230, 207, 0.12);
}

/* Size variants */
.btn--sm {
  padding: 6px 14px;
  font-size: 0.8125rem;
  border-radius: 6px;
}
.btn--sm::before { border-radius: 6px 6px 0 0; }

/* --------------------------------------------------------------------------
   4. HEADER
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 13, 12, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}

.header--scrolled { border-bottom-color: var(--line); }

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.header__logo-img { height: 26px; width: auto; } /* source PNG is 114×72 — keep aspect */

.header__logo-text {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}

/* Navbar tab-glow — the app's tab-bar highlight system */
.header__nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 0;
}

.header__link {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.8125rem;
  font-weight: 450;
  color: var(--text-2);
  position: relative;
  transition: color 0.1s ease, background 0.1s ease;
}

/* Bottom accent line — the neon glow pseudo-element */
.header__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  box-shadow: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  clip-path: inset(-50px 0 -50px 0);
}

.header__link:hover {
  color: var(--text);
  background: linear-gradient(180deg, transparent 0%, rgba(99, 230, 207, 0.12) 100%);
}

.header__link:hover::after {
  background: #63e6cf;
  box-shadow:
    0 0  2px #63e6cf,
    0 0  6px rgba(99, 230, 207, 0.62),
    0 0 14px rgba(99, 230, 207, 0.28),
    0 0 22px rgba(99, 230, 207, 0.12);
}

/* Sign in — accent color to distinguish from page links */
.header__link--signin {
  color: #63e6cf;
  font-weight: 500;
}
.header__link--signin:hover { color: #b9f8ec; }

/* CTA button — don't stretch with the tab links */
.header__nav .btn {
  margin-left: 12px;
  align-self: center;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
}
.nav-toggle__bar {
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle.active .nav-toggle__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  /* Explicit height: the header's backdrop-filter makes it the containing
     block for this fixed element, so `bottom: 0` would resolve against the
     60px-tall header and collapse the overlay. */
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  background: var(--bg);
  z-index: 99;
  padding: 40px var(--gutter);
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.nav-overlay.open { display: flex; }
.nav-overlay__link {
  font-size: 1.25rem;
  font-weight: 450;
  color: var(--text-2);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav-overlay__link:hover { color: var(--text); }

@media (max-width: 720px) {
  .header__nav { display: none; }
  .nav-toggle { display: flex; }
}

/* --------------------------------------------------------------------------
   5. HERO — headline left, the real app bleeding off the right edge
   The visible crop is the agent sidebar + run history: the product's
   core idea, in actual pixels.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: var(--header-h);
}

.hero__content {
  max-width: 44%;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 84px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 28px 0 26px;
  text-wrap: balance;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 1.0925rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 30rem;
  margin-bottom: 38px;
}

.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── The bleed panel ── */
.hero__bleed {
  position: absolute;
  top: calc(var(--header-h) + 72px);
  bottom: 0;
  left: calc(50% + 36px);
  right: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-right: none;
  border-bottom: none;
  border-radius: 6px 0 0 0;
  background: var(--bg-panel);
  box-shadow: 0 32px 80px -40px rgba(0, 0, 0, 0.8);
}

.hero__bleed img {
  width: 1500px;
  max-width: none;
  height: auto;
  display: block;
}

.hero__bleed-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 55%, rgba(10, 13, 12, 0.55) 100%),
    linear-gradient(180deg, transparent 70%, rgba(10, 13, 12, 0.6) 100%);
  pointer-events: none;
}

.hero__bleed-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: rgba(10, 13, 12, 0.72);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 3px 8px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@media (max-width: 980px) {
  .hero__content { max-width: none; min-height: 0; padding: 44px 0 52px; }
  .hero__bleed {
    position: static;
    height: 360px;
    margin-left: var(--gutter);
    border-radius: 6px 0 0 6px;
    border-bottom: 1px solid var(--line-strong);
  }
  .hero__bleed img { width: 1100px; }
}

@media (max-width: 480px) {
  .hero__bleed { height: 320px; }
  .hero__bleed img { width: 1000px; }
}

/* --------------------------------------------------------------------------
   7. EDITORIAL CHAPTERS ("What is Taurus?" etc.)
   -------------------------------------------------------------------------- */
.chapter {
  border-top: 1px solid var(--line);
}

.chapter__grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding: 72px var(--gutter) 80px;
}

.chapter__rail { position: relative; }

.chapter__rail-sticky {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.chapter__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--accent-dim);
  display: block;
  margin-bottom: 10px;
}

.chapter__rail-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 1.7;
}

.chapter__body { max-width: 640px; }

.chapter__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.chapter__heading em { font-style: italic; color: var(--accent); }

.chapter__subheading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 52px 0 16px;
  color: var(--text);
}

.chapter__body > .chapter__subheading:first-child { margin-top: 0; }

.chapter__text {
  font-size: 1.0125rem;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 18px;
}

.chapter__text strong { color: var(--text); font-weight: 550; }

.chapter__callout {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.42;
  color: var(--text);
  border-left: 2px solid var(--accent-dim);
  padding: 8px 0 8px 24px;
  margin: 32px 0 28px;
}

.chapter__callout em { font-style: italic; color: var(--accent); }

.chapter__text--muted {
  font-size: 0.875rem;
  color: var(--text-3);
  font-style: italic;
}

@media (max-width: 900px) {
  .chapter__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; padding-bottom: 60px; }
  .chapter__rail-sticky { position: static; }
}

/* ── Agent example cards ── */
.agents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 30px 0 22px;
}

.agent-card {
  background: var(--bg);
  padding: 22px 24px 24px;
  transition: background 0.2s var(--ease);
}

.agent-card:hover { background: var(--bg-raise); }

.agent-card__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.agent-card__name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.agent-card__role {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.agent-card__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 14px;
}

.agent-card__tree {
  font-family: var(--font-mono);
  font-size: 0.71875rem;
  line-height: 1.75;
  color: var(--text-3);
  padding-left: 26px;
  text-indent: -26px; /* hanging indent so wrapped lines respect the tree */
}

.agent-card__tree b {
  color: var(--text-2);
  font-weight: 500;
}

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

/* --------------------------------------------------------------------------
   8. FEATURE KEYLINE GRID
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 34px;
}

.feature-cell {
  background: var(--bg);
  padding: 26px 26px 30px;
  transition: background 0.2s var(--ease);
  position: relative;
}

.feature-cell:hover { background: var(--bg-raise); }

.feature-cell::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.feature-cell:hover::after { transform: scaleX(1); }

.feature-cell__num {
  font-family: var(--font-mono);
  font-size: 0.65625rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
  display: block;
  margin-bottom: 22px;
}

.feature-cell__label {
  font-size: 0.9375rem;
  font-weight: 550;
  color: var(--text);
  margin-bottom: 7px;
}

.feature-cell__desc {
  font-size: 0.84375rem;
  line-height: 1.6;
  color: var(--text-2);
}

.feature-cell__artifact {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  color: var(--accent-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

/* --------------------------------------------------------------------------
   9. CTA
   -------------------------------------------------------------------------- */
.cta {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 110px var(--gutter) 118px;
  position: relative;
  overflow: hidden;
}

/* Faint dot-grid, the only texture on the page */
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-faint) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 75%);
  pointer-events: none;
}

.cta__content { position: relative; }

.cta .kicker { justify-content: center; margin-bottom: 26px; }

.cta__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.cta__title em { font-style: italic; color: var(--accent); }

.cta__text {
  font-size: 1.0625rem;
  color: var(--text-2);
  margin-bottom: 40px;
}

.cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px var(--gutter) 48px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 40px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer__logo-img { height: 22px; width: auto; opacity: 0.9; }

.footer__logo-text {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer__desc {
  font-size: 0.84375rem;
  line-height: 1.7;
  color: var(--text-3);
  max-width: 340px;
}

.footer__social {
  display: flex;
  gap: 6px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text-3);
  transition: color 0.15s, border-color 0.15s;
}

.footer__social a:hover { color: var(--text); border-color: var(--line-strong); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line-faint);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

@media (max-width: 640px) {
  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* --------------------------------------------------------------------------
   11. 404
   -------------------------------------------------------------------------- */
.notfound {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 80px) var(--gutter) 80px;
}

.notfound__code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent-dim);
  margin-bottom: 20px;
}

.notfound__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 16px;
}

.notfound__text {
  color: var(--text-2);
  margin-bottom: 36px;
}

/* --------------------------------------------------------------------------
   12. REVEAL ANIMATION
   -------------------------------------------------------------------------- */
/* Scroll reveals are opt-in: they only hide content when the html element
   carries the .js class (set by an inline script). No JS → no hiding. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js .reveal--visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001s !important; }
}
