/* =============================================================
   Systemativ — editorial black & gold
   ============================================================= */

:root {
  /* Surface palette */
  --bg:          #0a0a0a;
  --surface-1:   #111111;
  --surface-2:   #171717;
  --surface-3:   #1d1d1d;
  --line:        rgba(245, 241, 232, 0.08);
  --line-strong: rgba(245, 241, 232, 0.16);

  /* Ink */
  --ink:         #f5f1e8;  /* warm off-white */
  --ink-2:       #d8d2c4;  /* slightly dimmer */
  --muted:       #918a7a;  /* warm grey */
  --muted-2:     #5c574e;

  /* Gold system */
  --gold:        #d4a853;  /* primary */
  --gold-hi:     #e6c275;  /* highlight */
  --gold-lo:     #9a7a3a;  /* deep */
  --gold-glow:   rgba(212, 168, 83, 0.32);

  /* Shape */
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   22px;

  /* Shadows */
  --shadow-soft: 0 6px 28px rgba(0,0,0,0.35);
  --shadow-gold: 0 8px 40px rgba(212, 168, 83, 0.18);

  /* Type */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-sans:    'Geist', system-ui, -apple-system, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;

  /* Motion */
  --ease:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft:   cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max:         1180px;
  --pad-x:       clamp(20px, 4vw, 48px);
}

/* =============================================================
   Reset
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* Selection */
::selection { background: var(--gold); color: #000; }

/* Focus rings — accessible but not ugly */
:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Grain texture — subtle noise overlay for warmth */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: overlay;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.8  0 0 0 0 0.75  0 0 0 0 0.55  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =============================================================
   Typography
   ============================================================= */
.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 144;
  font-size: clamp(44px, 7.6vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--ink);
}
.h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 80;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}

.lede {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 46ch;
  margin: 0 0 40px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-kicker-gold { color: var(--gold-hi); }

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  max-width: 52ch;
}
.subsection-head {
  max-width: 680px;
  margin-top: 64px;
  margin-bottom: 32px;
}
.subsection-head .section-kicker {
  margin-bottom: 8px;
}
.masonry-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.muted { color: var(--muted); font-weight: 400; }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform 0.24s var(--ease), background 0.24s var(--ease),
              color 0.24s var(--ease), box-shadow 0.32s var(--ease), border-color 0.24s var(--ease);
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: linear-gradient(145deg, var(--gold-hi) 0%, var(--gold) 60%, var(--gold-lo) 100%);
  color: #121007;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset,
              0 -1px 0 rgba(0,0,0,0.2) inset,
              var(--shadow-gold);
}
.btn-gold:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset,
              0 -1px 0 rgba(0,0,0,0.2) inset,
              0 10px 44px rgba(212, 168, 83, 0.32);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-bare {
  background: transparent;
  color: var(--ink);
  padding: 14px 4px;
}
.btn-bare:hover { color: var(--gold); }

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 16px 22px;
  font-size: 16px;
}

/* =============================================================
   Nav
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad-x);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--gold-hi), var(--gold-lo));
  color: #0a0a0a;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  line-height: 1;
}
.brand-word {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 400;
  transition: color 0.18s var(--ease);
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  padding: 10px 18px;
  font-size: 14px;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  padding: clamp(80px, 14vw, 160px) var(--pad-x) clamp(80px, 12vw, 140px);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
  background: color-mix(in srgb, var(--surface-1) 60%, transparent);
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

/* Trust row */
.trust-row {
  display: flex;
  align-items: stretch;
  gap: clamp(24px, 4vw, 56px);
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.trust-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.trust-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 96;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.trust-lbl {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.trust-divider {
  width: 1px;
  background: var(--line);
}
@media (max-width: 640px) {
  .trust-divider { display: none; }
  .trust-row { flex-wrap: wrap; gap: 28px 40px; }
}

/* Hero bg glow */
.hero-bg {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 90vw; height: 80vh;
  max-width: 1400px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(212, 168, 83, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(212, 168, 83, 0.08) 0%, transparent 55%);
  filter: blur(40px);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(-50%, 0) rotate(0deg); }
  100% { transform: translate(-50%, -4%) rotate(6deg); }
}
/* Fine grid lines for depth */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 20%, transparent 80%);
  opacity: 0.4;
  z-index: 1;
}

/* =============================================================
   Generic section
   ============================================================= */
.section {
  padding: clamp(80px, 12vw, 160px) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}

/* =============================================================
   How it works
   ============================================================= */
.how-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.how-step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(32px, 4vw, 56px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.3s var(--ease);
}
.how-step:hover { background: linear-gradient(90deg, transparent 0%, rgba(212, 168, 83, 0.025) 50%, transparent 100%); }

.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.step-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--ink);
}
.step-p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 62ch;
  margin: 0;
}

@media (max-width: 640px) {
  .how-step { grid-template-columns: 1fr; }
  .step-num { font-size: 48px; }
}

/* =============================================================
   Why free
   ============================================================= */
.section-why {
  background: linear-gradient(180deg, transparent, rgba(212, 168, 83, 0.02), transparent);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.why-card {
  padding: 28px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--surface-1), var(--bg));
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(212, 168, 83, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.why-card:hover {
  border-color: var(--gold-lo);
  transform: translateY(-2px);
}
.why-card:hover::before { opacity: 1; }

.why-icon {
  display: block;
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 20px;
  line-height: 1;
}
.why-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--ink);
}
.why-p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
}

/* =============================================================
   Results — masonry of screenshots
   ============================================================= */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}

.mason-item {
  margin: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-1);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
  min-height: 280px;
}
.mason-item:hover {
  transform: translateY(-3px);
  border-color: var(--gold-lo);
  box-shadow: var(--shadow-soft);
}
.mason-lg { grid-column: span 2; grid-row: span 2; min-height: 460px; }

.mason-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface-2);
  transition: transform 0.6s var(--ease);
  cursor: zoom-in;
}
.mason-item:hover img { transform: scale(1.02); }

.mason-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.75) 40%, rgba(10,10,10,0.95) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fc-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.fc-line {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
}

/* Placeholder state when image fails */
.mason-item.is-placeholder {
  background:
    linear-gradient(135deg, rgba(212, 168, 83, 0.06), rgba(212, 168, 83, 0.02)),
    repeating-linear-gradient(45deg, var(--surface-1) 0, var(--surface-1) 12px, var(--surface-2) 12px, var(--surface-2) 24px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mason-item.is-placeholder img { display: none; }
.mason-item.is-placeholder::before {
  content: "Screenshot";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .masonry { grid-template-columns: repeat(2, 1fr); }
  .mason-lg { grid-column: span 2; grid-row: span 1; min-height: 320px; }
}
@media (max-width: 560px) {
  .masonry { grid-template-columns: 1fr; }
  .mason-lg { grid-column: span 1; }
}

/* =============================================================
   Fit (yes / no columns)
   ============================================================= */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fit-col {
  padding: 36px clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-1);
  transition: border-color 0.3s var(--ease);
}
.fit-yes { border-top: 3px solid var(--gold); }
.fit-no { border-top: 3px solid var(--muted-2); background: transparent; }

.fit-col-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.fit-col-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.01em;
}
.fit-mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--gold);
  color: #0a0a0a;
  font-weight: 700;
  font-size: 16px;
}
.fit-mark-no {
  background: var(--surface-3);
  color: var(--muted);
}

.fit-col ul { display: flex; flex-direction: column; gap: 14px; }
.fit-col li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  padding-left: 20px;
  position: relative;
}
.fit-col li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted-2);
}
.fit-yes li::before { color: var(--gold); }
.fit-col li strong { color: var(--ink); font-weight: 500; }

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

/* =============================================================
   Apply / form
   ============================================================= */
.section-apply {
  padding-bottom: clamp(80px, 10vw, 140px);
}
.apply-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px);
  background:
    linear-gradient(175deg, var(--surface-1), var(--bg)),
    radial-gradient(circle at 0% 0%, rgba(212, 168, 83, 0.07), transparent 50%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.apply-panel::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.12), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
@media (max-width: 900px) {
  .apply-panel { grid-template-columns: 1fr; }
}
.apply-intro { position: relative; z-index: 1; }
.apply-p {
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.55;
  margin: 16px 0;
  max-width: 44ch;
}
.apply-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 20px;
}

.apply-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.field input,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
  font-family: var(--font-sans);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface-3);
}
.field textarea { resize: vertical; min-height: 64px; font-family: var(--font-sans); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }

/* Pill selector */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--surface-2);
  transition: all 0.2s var(--ease);
  font-family: var(--font-sans);
}
.pill:hover { border-color: var(--gold-lo); color: var(--ink); }
.pill.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #121007;
  font-weight: 500;
}

.form-error {
  color: #e89a8a;
  font-size: 14px;
  min-height: 20px;
}

/* State panels (qualified / not-fit) */
.state-panel[hidden] { display: none !important; }
.state-panel {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  position: relative;
  z-index: 1;
}
.state-inner { max-width: 720px; }
.state-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}
.state-panel p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.state-fallback {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 12px;
}
.state-fallback a { color: var(--gold); border-bottom: 1px solid var(--gold-lo); }
.state-fallback a:hover { color: var(--gold-hi); }
@media (max-width: 640px) {
  .state-panel { padding: 28px 22px; }
}

/* =============================================================
   Footer
   ============================================================= */
.footer {
  padding: 48px var(--pad-x);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-inner > div:first-child {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
}
.foot-meta {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   Scroll reveal
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for lists / grids */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Scroll-triggered slide-ups --- */
.slide-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.slide-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for paired elements (column A / column B) */
.slide-up[data-stagger="1"] { transition-delay: 0.12s; }
.slide-up[data-stagger="2"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .slide-up { opacity: 1; transform: none; transition: none; }
}

/* =============================================================
   Lightbox
   ============================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  animation: lb-fade 0.25s ease-out;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(1400px, 95vw);
  max-height: 92vh;
  width: auto; height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  font-size: 28px; line-height: 1;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.14); color: var(--gold); }
@keyframes lb-fade {
  from { opacity: 0; } to { opacity: 1; }
}
