/* ============================================================
   Gorila · Portfolio Connect — Case Study
   Design tokens + base styles
   ============================================================ */

:root {
  /* Type — Geist via Google Fonts (loaded in index.html) */
  --font-display: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", "SF Mono", Consolas, monospace;

  /* Light palette (default) */
  --bg: #ffffff;
  --bg-soft: #f8f7f4;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;
  --text: #1a1a1c;
  --text-muted: #5c5a55;
  --text-dim: #8a8780;
  --border: #e4e1d8;
  --border-soft: #efece4;

  /* Accent — deep violet (AAA on white) */
  --accent: #6d28d9;
  --accent-soft: rgba(109, 40, 217, 0.08);
  --accent-line: rgba(109, 40, 217, 0.22);

  /* GorilaVIEW semantic colors (preserve product DNA) */
  --gorila-black: #1a1a1c;
  --gorila-grey-100: #f3f1ec;
  --gorila-grey-300: #d9d4c8;
  --gorila-grey-700: #4a4843;
  --gorila-blue: #1e4ed8;      /* flag at the peak */
  --gorila-green: #15803d;     /* success / aceito */
  --gorila-red: #b91c1c;       /* recusado */
  --gorila-amber: #b45309;     /* pendente */

  /* Rhythm */
  --container: 1280px;
  --container-narrow: 880px;
  --section-y: 120px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

/* Dark variant — toggled via [data-theme="dark"] */
html[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-soft: #111113;
  --bg-card: #161618;
  --bg-elev: #1d1d20;
  --text: #ECE9DF;
  --text-muted: #8a8780;
  --text-dim: #5a5853;
  --border: #25252a;
  --border-soft: #1c1c20;
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.12);
  --accent-line: rgba(167, 139, 250, 0.25);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02";
  transition: background 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
}
.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--border-soft); }

.section-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.section-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.section-meta .num { color: var(--text-dim); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.section-lede {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  font-weight: 400;
  color: var(--text);
  max-width: 720px;
  text-wrap: pretty;
  margin: 0 0 48px;
  letter-spacing: -0.005em;
}
.section-lede em { font-style: italic; color: var(--accent); }

p { margin: 0 0 20px; color: var(--text); text-wrap: pretty; }
p.muted { color: var(--text-muted); }
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-mark { scroll-margin-top: 90px; }

/* ============================================================
   Top nav
   ============================================================ */
.topnav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border-soft);
}
.topnav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}
.brand .mark {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.brand .case-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.topnav-links {
  display: flex;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}
.topnav-links::-webkit-scrollbar { display: none; }
.topnav-links a {
  position: relative;
  padding: 6px 0;
  transition: color .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.topnav-links a:hover { color: var(--text); }
.topnav-links a.active { color: var(--accent); }
.topnav-links a.active::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px 0;
  height: 1px;
  background: var(--accent);
}
.topnav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color .2s, color .2s;
  flex-shrink: 0;
}
.topnav-cta:hover { border-color: var(--accent); color: var(--accent); }

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

/* ============================================================
   Hero — text on left, cover image on right
   ============================================================ */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-meta .pill {
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.038em;
  margin: 0 0 28px;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  max-width: 540px;
  margin: 0 0 48px;
  color: var(--text-muted);
  text-wrap: pretty;
}
.hero-sub em { font-style: italic; color: var(--text); font-weight: 500; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 28px 0 0;
  border-top: 1px solid var(--border-soft);
}
.hero-stat .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.hero-stat .v {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.25;
  color: var(--text);
  font-weight: 500;
}
.hero-stat .v em { font-style: italic; color: var(--accent); font-weight: 500; }

.hero-cover {
  position: relative;
  width: 100%;
}
.hero-cover img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   Cards & containers (generic)
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.card-soft {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ============================================================
   Compare grid (Problema before/after)
   ============================================================ */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 56px 0;
}
.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.compare-card .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.compare-card .label.before { color: var(--gorila-red); }
.compare-card .label.after { color: var(--gorila-green); }
.compare-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.compare-card h3 em { font-style: italic; color: var(--accent); }
.compare-card p.muted { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }

.compare-list {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 16px;
  background: var(--bg-soft);
}
.compare-list .row { padding: 4px 0; display: flex; gap: 10px; align-items: center; }
.compare-list .row .bullet { color: var(--gorila-red); flex-shrink: 0; }
.compare-list.after-style { border-color: var(--accent-line); background: var(--accent-soft); }
.compare-list.after-style .row .bullet { color: var(--accent); }
.compare-list.after-style .row .item-text { color: var(--text); }

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

/* ============================================================
   Results grid (Objetivos, Resultados)
   ============================================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.result-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}
.result-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.result-card h4 em { font-style: italic; color: var(--accent); }
.result-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ============================================================
   The 4 Flows — central grid
   ============================================================ */
.flows-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 48px 0;
  flex-wrap: wrap;
  margin-top: 32px;
}
.flows-hub .core {
  width: 200px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    color-mix(in srgb, var(--accent) 24%, transparent),
    color-mix(in srgb, var(--accent) 6%, transparent) 60%,
    transparent);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}
.flows-hub .core-inner {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.1;
  color: var(--accent);
  padding: 20px;
  font-weight: 500;
}
.flows-hub .core-inner .num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 68px;
  line-height: 1;
  color: var(--accent);
  font-weight: 500;
}
.flows-hub .core-meta {
  max-width: 440px;
}
.flows-hub .core-meta p {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.flows-hub .core-meta p em { font-style: italic; color: var(--accent); }
.flows-hub .core-meta p.sub {
  font-size: 14px;
  color: var(--text-muted);
}

.flows-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 760px) { .flows-grid { grid-template-columns: 1fr; } }

.flow-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .25s, transform .25s, background .25s;
}
.flow-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}
.flow-card.featured {
  border-color: var(--accent-line);
  background: color-mix(in srgb, var(--accent) 4%, var(--bg-card));
}
.flow-card .f-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.flow-card .f-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.flow-card.featured .f-name em { color: var(--accent); }
.flow-card .f-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}
.flow-card .f-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.flow-card .f-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}
.flow-card.featured .f-tag {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-line);
}

/* ============================================================
   Flow steps timeline (Fluxo Principal)
   ============================================================ */
.flow-steps {
  margin-top: 48px;
  padding: 40px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}
.flow-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
  position: relative;
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px;
  position: relative;
}
.flow-step .step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}
.flow-step .step-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.flow-step .step-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.flow-step .step-fork {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flow-step .step-fork .fork-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
}
.flow-step .step-fork .fork-row .ok { color: var(--gorila-green); }
.flow-step .step-fork .fork-row .no { color: var(--gorila-red); }
.flow-step .step-fork .fork-row span { color: var(--text-muted); font-size: 11px; }

/* ============================================================
   Edge case cards (Casos de Borda)
   ============================================================ */
.edge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.edge-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.edge-card .e-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}
.edge-card .e-tag.paywall {
  background: rgba(180, 83, 9, 0.08);
  color: var(--gorila-amber);
  border: 1px solid rgba(180, 83, 9, 0.25);
}
.edge-card .e-tag.simul {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.edge-card .e-tag.conflict {
  background: rgba(185, 28, 28, 0.06);
  color: var(--gorila-red);
  border: 1px solid rgba(185, 28, 28, 0.25);
}
.edge-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.edge-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.55;
}
.edge-card p:last-child { margin-bottom: 0; }
.edge-card .e-solution {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
}
.edge-card .e-solution::before {
  content: '→ ';
  color: var(--accent);
  font-family: var(--font-mono);
  font-style: normal;
}

/* ============================================================
   Bridge notes — paired "what / why" cards
   ============================================================ */
.bridge-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 800px) { .bridge-notes { grid-template-columns: 1fr; } }
.bridge-note {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.bridge-note .note-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.bridge-note .note-label.stays { color: var(--accent); }
.bridge-note .note-label.changes { color: var(--gorila-green); }
.bridge-note h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
  line-height: 1.2;
}
.bridge-note ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bridge-note ul li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.bridge-note ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}
.bridge-note.changes ul li::before { color: var(--gorila-green); }

/* ============================================================
   Screens gallery (wireframes)
   ============================================================ */
.screens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  margin-top: 48px;
}
.screen-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.screen-row.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.screen-row.reverse .screen-text { order: 2; }
.screen-row.reverse .screen-visual { order: 1; }

.screen-frame {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.screen-frame img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  background: #ffffff;
}
.screen-frame .frame-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.screen-frame .frame-caption .state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
}
.screen-frame .frame-caption .state .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

.screen-text .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.screen-text h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.screen-text h3 em { font-style: italic; color: var(--accent); }
.screen-text p { font-size: 15px; color: var(--text-muted); }
.screen-text .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.screen-text .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

@media (max-width: 900px) {
  .screen-row, .screen-row.reverse { grid-template-columns: 1fr; gap: 24px; }
  .screen-row.reverse .screen-text { order: 1; }
  .screen-row.reverse .screen-visual { order: 2; }
}

/* ============================================================
   Design System token grid
   ============================================================ */
.ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.ds-token {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.ds-token .swatch {
  height: 80px;
  border-radius: 10px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}
.ds-token .name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 4px;
}
.ds-token .hex {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.ds-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.ds-type {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.ds-type .sample {
  margin-bottom: 16px;
  color: var(--text);
}
.ds-type .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ============================================================
   Pull-quote
   ============================================================ */
.pullquote {
  margin: 64px 0;
  padding: 56px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}
.pullquote q {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--text);
  font-style: italic;
  letter-spacing: -0.018em;
  quotes: "“" "”";
  text-wrap: balance;
}
.pullquote q::before { content: open-quote; color: var(--accent); }
.pullquote q::after { content: close-quote; color: var(--accent); }
.pullquote .attr {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   Fullbleed image — clickable with zoom indicator
   ============================================================ */
.fullbleed-image {
  margin: 56px 0;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-soft);
}
.fullbleed-image img {
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
  background: #ffffff;
  width: 100%;
  height: auto;
}
.fullbleed-image img:hover {
  transform: scale(1.005);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.10);
}

/* ============================================================
   Lightbox — fullscreen zoomable image viewer
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1002;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lightbox-close:hover {
  background: var(--bg-soft);
  border-color: var(--accent);
}
.lightbox-toolbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1002;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.lightbox-toolbar button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text);
  background: transparent;
  border: 0;
  transition: background .15s;
}
.lightbox-toolbar button:hover { background: var(--bg-soft); }
.lightbox-toolbar .zoom-label {
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.lightbox-caption {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1002;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  max-width: calc(100vw - 96px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox-stage {
  position: absolute;
  inset: 80px 24px 80px 24px;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: grab;
}
.lightbox-stage:active { cursor: grabbing; }
.lightbox-stage img {
  display: block;
  transition: transform 0.2s ease;
  transform-origin: top center;
  user-select: none;
  -webkit-user-drag: none;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  border-radius: 4px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 100px 0 64px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.footer-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 48px;
  font-weight: 500;
}
.footer-title em { font-style: italic; color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}
.footer-grid .col .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-grid .col a {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
  transition: color .2s;
}
.footer-grid .col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   Misc helpers
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
::selection {
  background: var(--accent);
  color: #fff;
}
