/* ============================================================
   phile.ai — Editorial ink & copper
   Serif display, mono annotations, schematic linework.
   Theme-aware: prefers-color-scheme + [data-theme] override.
   ============================================================ */

:root {
  /* Light — warm paper, iron ink, copper signal */
  --bg: #f6f3ec;
  --bg-raise: #fbf9f4;
  --bg-sink: #eee9de;
  --ink: #1c1813;
  --ink-2: #4c453a;
  --ink-3: #675f52;
  --line: #d8d1c2;
  --line-strong: #b9b09c;
  --accent: #b1490f;
  --accent-ink: #8f3a0b;
  --accent-soft: rgba(177, 73, 15, 0.09);
  --accent-line: rgba(177, 73, 15, 0.35);
  --ok: #33691e;
  --card-shadow: 0 1px 0 rgba(28, 24, 19, 0.05), 0 14px 34px -22px rgba(28, 24, 19, 0.35);
  --grid-dot: rgba(28, 24, 19, 0.10);
  --hero-node: rgba(28, 24, 19, 0.55);
  --sel-bg: #b1490f;
  --sel-fg: #fbf9f4;

  --font-display: "Iowan Old Style", "Palatino Nova", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1320px;
  --radius: 3px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12100d;
    --bg-raise: #1a1712;
    --bg-sink: #0c0b08;
    --ink: #ece5d8;
    --ink-2: #b5ab99;
    --ink-3: #857c6c;
    --line: #2e2a22;
    --line-strong: #453f33;
    --accent: #e8763a;
    --accent-ink: #f08a52;
    --accent-soft: rgba(232, 118, 58, 0.10);
    --accent-line: rgba(232, 118, 58, 0.38);
    --ok: #8bc34a;
    --card-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    --grid-dot: rgba(236, 229, 216, 0.09);
    --hero-node: rgba(236, 229, 216, 0.55);
    --sel-bg: #e8763a;
    --sel-fg: #12100d;
    color-scheme: dark;
  }
}

/* Explicit toggle wins over system preference */
:root[data-theme="light"] {
  --bg: #f6f3ec;
  --bg-raise: #fbf9f4;
  --bg-sink: #eee9de;
  --ink: #1c1813;
  --ink-2: #4c453a;
  --ink-3: #675f52;
  --line: #d8d1c2;
  --line-strong: #b9b09c;
  --accent: #b1490f;
  --accent-ink: #8f3a0b;
  --accent-soft: rgba(177, 73, 15, 0.09);
  --accent-line: rgba(177, 73, 15, 0.35);
  --ok: #33691e;
  --card-shadow: 0 1px 0 rgba(28, 24, 19, 0.05), 0 14px 34px -22px rgba(28, 24, 19, 0.35);
  --grid-dot: rgba(28, 24, 19, 0.10);
  --hero-node: rgba(28, 24, 19, 0.55);
  --sel-bg: #b1490f;
  --sel-fg: #fbf9f4;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #12100d;
  --bg-raise: #1a1712;
  --bg-sink: #0c0b08;
  --ink: #ece5d8;
  --ink-2: #b5ab99;
  --ink-3: #857c6c;
  --line: #2e2a22;
  --line-strong: #453f33;
  --accent: #e8763a;
  --accent-ink: #f08a52;
  --accent-soft: rgba(232, 118, 58, 0.10);
  --accent-line: rgba(232, 118, 58, 0.38);
  --ok: #8bc34a;
  --card-shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --grid-dot: rgba(236, 229, 216, 0.09);
  --hero-node: rgba(236, 229, 216, 0.55);
  --sel-bg: #e8763a;
  --sel-fg: #12100d;
  color-scheme: dark;
}

/* ---------- Base ---------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fdf8f3;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

img, svg, canvas { max-width: 100%; display: block; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  max-width: 20ch;
  margin: 14px 0 18px;
}
.section-lede {
  color: var(--ink-2);
  max-width: 58ch;
  font-size: 1.05rem;
}

/* Asymmetric section header: title left, lede pushed right + down */
.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: end;
}
.section-head .section-lede {
  margin-bottom: 6px;
  border-left: 1px solid var(--line-strong);
  padding-left: clamp(16px, 2vw, 28px);
}
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head .section-lede { border-left: none; padding-left: 0; }
}

section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
section + section { border-top: 1px solid var(--line); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand .dot-ai {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
}
.brand-mark {
  width: 22px;
  height: 22px;
  align-self: center;
  flex: none;
}
.brand-mark circle, .brand-mark path { stroke: var(--accent); }
.brand-mark .fillnode { fill: var(--accent); stroke: none; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.site-nav a:hover { color: var(--accent-ink); text-decoration: none; }

.nav-cta {
  border: 1px solid var(--accent-line);
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--accent-ink) !important;
  background: var(--accent-soft);
}
.nav-cta:hover { background: var(--accent); color: var(--bg-raise) !important; }

.theme-toggle {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--bg-raise);
  color: var(--ink-2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }
.theme-toggle svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

@media (max-width: 780px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(80px, 11vw, 170px) 0 clamp(70px, 9vw, 130px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% 8%, var(--accent-soft), transparent 65%),
    var(--bg);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
}

.hero .container { position: relative; z-index: 1; }

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.hero-kicker .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-line); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-kicker .pulse { animation: none; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 5.6rem);
  max-width: 18ch;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
@media (max-width: 700px) {
  .hero h1 .line, .hero h1 .line > span { display: inline; }
  .hero h1 .line > span { animation: none; transform: none; }
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-ink);
}
/* staggered headline entrance */
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  animation: rise 900ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}
.hero h1 .line:nth-child(2) > span { animation-delay: 120ms; }
.hero h1 .line:nth-child(3) > span { animation-delay: 240ms; }
@keyframes rise { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .line > span { transform: none; animation: none; }
}

/* oversized brand watermark, clipped by hero edge */
.hero-watermark {
  position: absolute;
  right: -0.12em;
  bottom: -0.28em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(9rem, 24vw, 22rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 40px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transform: none; transition: none; } }

.btn-primary { background: var(--accent); color: #fdf8f3; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); }
:root[data-theme="dark"] .btn-primary, .btn-primary { color: #fff8f2; }

.btn-ghost { border-color: var(--line-strong); color: var(--ink-2); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

.hero-meta {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-meta span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta span::before { content: "—"; color: var(--accent); }

/* ---------- Capability grid (what it does) ---------- */

/* Asymmetric schematic spread: hairline grid, uneven spans (4/2 · 2/4) */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 60px;
}
.cap:nth-child(1) { grid-column: span 4; }
.cap:nth-child(2) { grid-column: span 2; }
.cap:nth-child(3) { grid-column: span 2; }
.cap:nth-child(4) { grid-column: span 4; }
@media (max-width: 860px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap:nth-child(n) { grid-column: auto; }
}

.cap {
  background: var(--bg);
  padding: 38px 30px 44px;
  position: relative;
  transition: background-color 180ms ease;
}
.cap:hover { background: var(--bg-raise); }
.cap-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
  letter-spacing: 0.14em;
}
.cap h3 {
  font-size: 1.35rem;
  margin: 52px 0 12px;
  max-width: 24ch;
}
/* wide panels carry the display weight */
.cap:nth-child(1) h3, .cap:nth-child(4) h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-style: italic;
}
.cap:nth-child(1) p, .cap:nth-child(4) p { max-width: 52ch; }
.cap p { color: var(--ink-2); font-size: 0.95rem; }
.cap .glyph {
  position: absolute;
  top: 32px;
  right: 28px;
  width: 34px; height: 34px;
}
.cap .glyph * { stroke: var(--accent); fill: none; stroke-width: 1.4; }

/* ---------- Difference (ledger rows) ---------- */

.ledger { margin-top: 54px; border-top: 1px solid var(--line-strong); }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) 1.2fr 1.2fr;
  gap: clamp(18px, 3vw, 48px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (max-width: 860px) {
  .ledger-row { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
}
.ledger-row h3 { font-size: 1.45rem; }
.ledger-row .them, .ledger-row .us { font-size: 0.95rem; }
.ledger-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}
.them .ledger-label { color: var(--ink-3); }
.us .ledger-label { color: var(--accent-ink); }
.them p { color: var(--ink-3); }
.us p { color: var(--ink); }

/* ---------- Use cases ---------- */

/* Use cases as an editorial index — a table of contents, not a card wall */
.index-list { margin-top: 60px; border-top: 1px solid var(--line-strong); }
.index-row {
  display: grid;
  grid-template-columns: 64px minmax(220px, 0.9fr) 1.4fr minmax(110px, 150px);
  gap: clamp(16px, 3vw, 44px);
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 200ms ease;
}
.index-row:hover { padding-left: 14px; }
.index-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: -1px;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 200ms ease;
}
.index-row:hover::before { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) {
  .index-row, .index-row::before { transition: none; }
  .index-row:hover { padding-left: 0; }
}
.index-row .idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.index-row h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}
.index-row:hover h3 { color: var(--accent-ink); font-style: italic; }
.index-row p { color: var(--ink-2); font-size: 0.94rem; max-width: 58ch; }
.index-row .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
@media (max-width: 860px) {
  .index-row { grid-template-columns: 44px 1fr; grid-template-rows: auto auto; }
  .index-row p { grid-column: 2; }
  .index-row .tag { display: none; }
}

/* ---------- Process ---------- */

.process { counter-reset: step; margin-top: 54px; position: relative; }
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(18px, 3vw, 40px);
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.process-step:last-child { border-bottom: none; }
@media (max-width: 640px) { .process-step { grid-template-columns: 56px 1fr; } }

.process-step .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: var(--accent-ink);
  line-height: 1;
}
.process-step h3 { font-size: 1.45rem; margin-bottom: 10px; }
.process-step p { color: var(--ink-2); max-width: 62ch; }
.process-step .step-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 12px;
  display: block;
}

/* ---------- Sibling strip ---------- */

.siblings {
  background: var(--bg-sink);
}
/* Family as a registry — hairline rows, no boxes */
.sibling-grid { margin-top: 50px; border-top: 1px solid var(--line-strong); }
.sibling {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(180px, 0.8fr) 1.5fr;
  gap: clamp(16px, 3vw, 44px);
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 780px) {
  .sibling { grid-template-columns: 1fr; gap: 6px; }
}
.sibling h3 { font-size: 1.3rem; }
.sibling p { font-size: 0.92rem; color: var(--ink-2); max-width: 52ch; }
.sibling .mono { display: block; }
.sibling.is-current .mono { color: var(--accent-ink); }
.sibling.is-current h3 { font-style: italic; color: var(--accent-ink); }

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  background:
    radial-gradient(700px 320px at 50% 110%, var(--accent-soft), transparent 70%),
    var(--bg);
}
.cta h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  max-width: 22ch;
  margin: 16px auto 20px;
}
.cta h2 em { font-style: italic; color: var(--accent-ink); }
.cta p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 38px; }
.cta .hero-actions { justify-content: center; }
.cta-contact {
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.cta-contact a { color: var(--accent-ink); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  background: var(--bg-sink);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  align-items: baseline;
  justify-content: space-between;
}
.footer-brand { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a, .footer-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer-links a:hover { color: var(--accent-ink); text-decoration: none; }
.footer-note { width: 100%; margin-top: 8px; }

/* ---------- Reveal-on-scroll ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms cubic-bezier(0.19,1,0.22,1), transform 700ms cubic-bezier(0.19,1,0.22,1); }
.reveal.in { opacity: 1; transform: none; }
/* stagger siblings that arrive together */
.reveal.in + .reveal.in { transition-delay: 80ms; }
.reveal.in + .reveal.in + .reveal.in { transition-delay: 160ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* No-JS fallback: content must never depend on app.js running */
@media (scripting: none) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Custom cursor (fine pointers, motion allowed) ---------- */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* JS adds .has-custom-cursor only when the ring/dot exist — hides the OS
     arrow so the two cursors never double up; no-JS keeps the native cursor */
  body.has-custom-cursor,
  body.has-custom-cursor * { cursor: none !important; }
  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 999;
    transform: translate(-100px, -100px);
  }
  .cursor-dot {
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--accent);
  }
  .cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid var(--accent-line);
    transition: width 200ms ease, height 200ms ease, margin 200ms ease, border-color 200ms ease;
    margin: -17px 0 0 -17px;
  }
  body.cursor-hover .cursor-ring {
    width: 54px; height: 54px;
    border-color: var(--accent);
    margin: -27px 0 0 -27px;
  }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Legal page ---------- */

.legal { padding: clamp(70px, 9vw, 120px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin: 14px 0 10px; }
.legal .updated { color: var(--ink-3); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.legal h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-2); font-size: 0.98rem; }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal li { margin: 6px 0; }
