/* =========================================================
   Distilla — A field guide for photo libraries
   Editorial monograph aesthetic. Pure HTML/CSS.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Hanken+Grotesk:wght@300..700&family=JetBrains+Mono:wght@400;500&display=swap");

/* ---------- Tokens ---------- */

:root {
  --paper: #F2EADC;
  --paper-deep: #E9DECC;
  --vellum: #FBF6EE;
  --ink: #1A1512;
  --ink-soft: #4A3F38;
  --ink-mute: #8A7C72;
  --ink-faint: rgba(26, 21, 18, 0.42);
  --rule: rgba(26, 21, 18, 0.18);
  --rule-strong: rgba(26, 21, 18, 0.32);

  --coral: #C95F69;
  --coral-bright: #E07682;
  --coral-soft: rgba(201, 95, 105, 0.10);
  --gold: #A2814D;
  --gold-soft: rgba(162, 129, 77, 0.10);

  --serif: "Fraunces", "Iowan Old Style", "Hoefler Text", "Apple Garamond", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  --container: 1180px;
  --container-text: 720px;

  --shadow-plate:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 30px 80px -32px rgba(60, 30, 24, 0.45),
    0 12px 30px -16px rgba(60, 30, 24, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181311;
    --paper-deep: #110D0B;
    --vellum: #1F1916;
    --ink: #EFE4D4;
    --ink-soft: #C7B8A6;
    --ink-mute: #8E7F70;
    --ink-faint: rgba(239, 228, 212, 0.40);
    --rule: rgba(239, 228, 212, 0.16);
    --rule-strong: rgba(239, 228, 212, 0.28);

    --coral: #E07682;
    --coral-bright: #EE8E98;
    --coral-soft: rgba(224, 118, 130, 0.14);
    --gold: #D2A871;
    --gold-soft: rgba(210, 168, 113, 0.12);
  }
}

/* ---------- Reset ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  position: relative;
}

/* Paper grain — applied once, fixed, atop everything but transparent */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

@media (prefers-color-scheme: dark) {
  body::before {
    mix-blend-mode: screen;
    opacity: 0.6;
  }
}

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

a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: color 220ms ease, background-size 260ms ease;
}

a:hover {
  color: var(--coral);
  background-size: 0% 1px;
}

a.plain {
  background-image: none;
  color: var(--ink-soft);
}
a.plain:hover { color: var(--ink); background-image: none; }

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

::selection {
  background: var(--coral);
  color: var(--vellum);
}

::-moz-selection {
  background: var(--coral);
  color: var(--vellum);
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  margin: 0 0 0.4em;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 i, h2 i, h3 i { font-style: italic; font-weight: 400; }

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}

/* Small caps utility (real, not text-transform mock) */
.smallcaps {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 22px; }
}

.section { padding: clamp(72px, 10vw, 140px) 0; }

/* ---------- Editorial rule with center label ---------- */

.rule {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  color: var(--ink-mute);
}

.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.rule__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.rule__ornament {
  color: var(--coral);
  font-size: 1rem;
  line-height: 1;
}

/* ---------- Masthead / nav ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
  gap: 24px;
}

.masthead__left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.masthead__brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 1;
  background: none;
}

.masthead__brand:hover { color: var(--coral); background: none; }

.masthead__right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}

.masthead__right a {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  background: none;
}

.masthead__right a:hover { color: var(--coral); background: none; }

.masthead__drop {
  width: 18px;
  height: 18px;
  color: var(--coral);
}

@media (max-width: 720px) {
  .masthead__inner { grid-template-columns: auto 1fr; }
  .masthead__right a:not(.masthead__cta) { display: none; }
}

.masthead__cta {
  border: 1px solid var(--rule-strong);
  padding: 7px 14px;
  border-radius: 999px;
  background: none;
}

.masthead__cta:hover {
  border-color: var(--coral);
  color: var(--coral);
}

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

.hero {
  padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 9vw, 130px);
  position: relative;
  overflow: hidden;
}

.hero__pretitle {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--ink-mute);
}

.hero__pretitle__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__pretitle__bar {
  flex: 0 0 60px;
  height: 1px;
  background: var(--rule-strong);
}

.hero__pretitle__label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 9vw + 0.4rem, 8rem);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0 0 0.16em;
  color: var(--ink);
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  color: var(--coral);
  position: relative;
}

.hero__title em::after {
  content: "";
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  border-radius: 50%;
  background: var(--coral);
  margin-left: 0.04em;
  margin-bottom: 0.12em;
  vertical-align: baseline;
}

.hero__deck {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.6vw + 0.5rem, 1.6rem);
  font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 0;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  max-width: 22em;
  margin: 0 0 48px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-top: 56px;
}

@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

/* Drop cap on the lede paragraph */
.lede {
  font-family: var(--sans);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 32em;
}

.lede::first-letter {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: 4.4em;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.12em -0.05em 0;
  color: var(--coral);
  letter-spacing: -0.02em;
}

.hero__cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero__meta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__meta__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- App Store badge ---------- */

.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  background-image: none;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
}

.appstore-badge:hover {
  transform: translateY(-2px);
  color: var(--paper);
  box-shadow: 0 14px 34px -14px rgba(26, 21, 18, 0.5);
  background-image: none;
}

.appstore-badge svg { width: 22px; height: 22px; }

.appstore-badge__top {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
  line-height: 1;
}

.appstore-badge__bottom {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0;
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  background-image: none;
  transition: border-color 220ms ease, color 220ms ease;
}

.cta-ghost:hover {
  border-color: var(--coral);
  color: var(--coral);
  background-image: none;
}

.cta-ghost__arrow {
  font-family: var(--serif);
  font-style: italic;
  transition: transform 220ms ease;
}

.cta-ghost:hover .cta-ghost__arrow {
  transform: translateX(3px);
}

/* ---------- Plate (illustrative figure with caption) ---------- */

.plate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.plate__caption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: left;
}

.plate__caption__bar {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--rule-strong);
}

.plate__caption em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink-soft);
}

/* ---------- iPhone mockup (refined editorial plate) ---------- */

.phone {
  position: relative;
  width: min(310px, 78vw);
  aspect-ratio: 295 / 600;
  margin: 0 auto;
  border-radius: 50px;
  background: linear-gradient(160deg, #2a201d, #100b09);
  padding: 11px;
  box-shadow: var(--shadow-plate);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 49px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.phone__notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #060403;
  border-radius: 999px;
  z-index: 5;
}

.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 40px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #FFF6EC 0%, #F4E4D2 60%, #E9D2BC 100%);
  display: flex;
  flex-direction: column;
}

.phone__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  height: 44px;
  letter-spacing: -0.01em;
}

.phone__statusbar-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.phone__statusbar-icons span {
  display: block;
  background: var(--ink);
  border-radius: 1px;
  opacity: 0.85;
}

.phone__statusbar-icons span:nth-child(1) { width: 14px; height: 9px; }
.phone__statusbar-icons span:nth-child(2) { width: 14px; height: 9px; }
.phone__statusbar-icons span:nth-child(3) {
  width: 22px; height: 11px;
  border: 1px solid var(--ink);
  background: linear-gradient(to right, var(--ink) 70%, transparent 70%);
  border-radius: 3px;
  opacity: 1;
}

.phone__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 22px;
  position: relative;
}

/* Day-context header — editorial typography inside the phone */

.phone-day {
  text-align: center;
  margin-bottom: 14px;
}

.phone-day__weekday {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 4px;
}

.phone-day__date {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 1;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 4px;
}

.phone-day__location {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.phone-day__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 14px;
  color: var(--ink-mute);
}

.phone-day__rule::before,
.phone-day__rule::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--rule);
}

.phone-day__rule__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--coral);
}

/* Card stack — refined abstract gradient (no mountain cliché) */

.phone-cards {
  flex: 1;
  position: relative;
}

.phone-card,
.phone-card--shadow {
  position: absolute;
  inset: 4px 8px 12px;
  border-radius: 22px;
  overflow: hidden;
}

.phone-card--shadow {
  inset: 12px 18px 4px;
  background: linear-gradient(135deg, #E8C8A8, #D4A88A);
  opacity: 0.4;
  filter: blur(0.5px);
  transform: scale(0.95);
  z-index: 1;
}

.phone-card {
  z-index: 2;
  background:
    radial-gradient(70% 60% at 78% 25%, #FFE9C8 0%, transparent 60%),
    radial-gradient(80% 80% at 25% 95%, #6A2C3B 0%, transparent 55%),
    linear-gradient(155deg, #F4B58E 0%, #E08272 45%, #B25160 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 16px 36px -12px rgba(120, 50, 60, 0.4),
    0 4px 10px rgba(26, 21, 18, 0.1);
}

/* Soft sun-disc — kept subtle, more painterly than illustrative */
.phone-card__sun {
  position: absolute;
  top: 18%;
  right: 22%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF1D6 0%, #F8B57A 55%, transparent 80%);
  filter: blur(2px);
}

/* Subtle horizon band */
.phone-card__horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(180deg,
    rgba(180, 80, 90, 0) 0%,
    rgba(120, 45, 55, 0.55) 40%,
    rgba(60, 25, 35, 0.85) 100%);
  backdrop-filter: blur(0.5px);
}

.phone-card__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.18;
  mix-blend-mode: overlay;
}

.phone-card__glow {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1px;
  width: 36%;
  background: linear-gradient(to left, rgba(255, 240, 200, 0.55), transparent);
  pointer-events: none;
  mix-blend-mode: screen;
}

.phone-card__sparkle {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  color: #FFF1D6;
  filter: drop-shadow(0 0 10px rgba(255, 235, 180, 0.85));
}

.phone-card__corner {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 240, 220, 0.72);
}

.phone-card__num {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: rgba(255, 240, 220, 0.82);
  font-variation-settings: "opsz" 24, "WONK" 1;
}

.phone-progress {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}

.phone-progress span {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: rgba(26, 21, 18, 0.18);
}

.phone-progress span.active {
  background: var(--coral);
  width: 22px;
}

.phone-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.phone-hints__item--keep { color: var(--coral); }

/* ---------- Editorial entry list (replaces feature grid) ---------- */

.entries {
  display: flex;
  flex-direction: column;
}

.entry {
  display: grid;
  grid-template-columns: 110px 1.1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  position: relative;
}

.entry:first-child { border-top: 1px solid var(--rule); }

.entry__num {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 500;
  align-self: start;
  padding-top: 0.5em;
}

.entry__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.4rem);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.entry__title em {
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 1;
  color: var(--coral);
}

.entry__body {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
}

.entry:hover .entry__num { color: var(--gold); }

@media (max-width: 720px) {
  .entry {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }
  .entry__num { padding-top: 0; }
}

/* ---------- Method (3 plates in a row) ---------- */

.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 64px;
}

@media (max-width: 880px) {
  .method { grid-template-columns: 1fr; gap: 48px; }
}

.method__step {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
}

.method__step__num {
  position: absolute;
  top: -1px;
  left: 0;
  background: var(--paper);
  padding-right: 12px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 500;
  transform: translateY(-50%);
}

.method__step__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 1;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
}

.method__step__body {
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

.method__step__sigil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral);
  margin-bottom: 18px;
}

.method__step__sigil svg { width: 18px; height: 18px; }

/* ---------- Statement (privacy pull-quote) ---------- */

.statement {
  background:
    radial-gradient(80% 60% at 80% 20%, var(--coral-soft) 0%, transparent 60%),
    radial-gradient(70% 60% at 10% 90%, var(--gold-soft) 0%, transparent 60%),
    var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.statement::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 9rem;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "WONK" 1;
  color: var(--coral);
  opacity: 0.18;
  line-height: 0.7;
  pointer-events: none;
}

.statement__body {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
  position: relative;
}

@media (max-width: 880px) {
  .statement__body { grid-template-columns: 1fr; gap: 40px; }
}

.statement__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-size: clamp(2.2rem, 4vw + 0.5rem, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 24px;
}

.statement__byline {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.statement__byline a {
  color: var(--coral);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
}

.statement__byline a:hover { background-size: 0% 1px; }

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}

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

.facts li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.94rem;
  color: var(--ink);
  font-weight: 400;
  margin: 0;
}

.facts li::before {
  content: counter(facts, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--coral);
  font-weight: 500;
  flex-shrink: 0;
}

.facts {
  counter-reset: facts;
}

.facts li {
  counter-increment: facts;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 820px;
  margin: 56px auto 0;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 26px 0;
}

.faq details:first-of-type { border-top: 1px solid var(--rule); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 4px 0;
}

.faq summary::-webkit-details-marker { display: none; }

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

.faq__q {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 36, "SOFT" 30, "WONK" 0;
  font-size: 1.25rem;
  letter-spacing: -0.018em;
  line-height: 1.25;
  color: var(--ink);
  transition: color 220ms ease;
}

.faq summary:hover .faq__q { color: var(--coral); }

.faq__sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink-mute);
  line-height: 1;
  transition: transform 240ms ease, color 240ms ease;
  font-variation-settings: "opsz" 24, "WONK" 1;
}

.faq details[open] .faq__sign {
  transform: rotate(45deg);
  color: var(--coral);
}

.faq details > div {
  padding: 16px 0 4px 80px;
  max-width: 56em;
}

@media (max-width: 720px) {
  .faq details > div { padding-left: 0; }
  .faq summary { grid-template-columns: auto 1fr auto; gap: 14px; }
}

.faq details > div p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- Colophon (footer) ---------- */

.colophon {
  border-top: 1px solid var(--rule);
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(40px, 6vw, 72px) 0 64px;
}

.colophon__top {
  text-align: center;
  margin-bottom: 64px;
}

.colophon__mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}

.colophon__mark em {
  font-style: italic;
  color: var(--coral);
}

.colophon__motto {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 22px;
}

.colophon__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: end;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

@media (max-width: 720px) {
  .colophon__grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
}

.colophon__grid a {
  color: var(--ink-soft);
  background-image: none;
}

.colophon__grid a:hover { color: var(--coral); }

.colophon__center {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.colophon__right {
  text-align: right;
}

@media (max-width: 720px) {
  .colophon__right { text-align: center; }
}

/* ---------- Legal pages ---------- */

.legal {
  padding: clamp(56px, 8vw, 110px) 0;
  max-width: var(--container-text);
  margin: 0 auto;
}

.legal__head {
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
}

.legal__kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  font-size: clamp(2.4rem, 4vw + 0.4rem, 4.2rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 18px;
}

.legal h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 60, "WONK" 1;
  color: var(--coral);
}

.legal__meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.legal h2 {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 1;
  font-size: 1.6rem;
  letter-spacing: -0.018em;
  margin-top: 56px;
  margin-bottom: 16px;
  color: var(--ink);
}

.legal h2::before {
  content: "§ ";
  color: var(--coral);
  font-style: normal;
}

.legal h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin-top: 32px;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  font-family: var(--sans);
  font-size: 1.02rem;
  color: var(--ink-soft);
  line-height: 1.75;
}

.legal ul {
  list-style: none;
  margin: 0 0 1em;
  padding: 0;
}

.legal ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.legal ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--coral);
  font-family: var(--serif);
}

.legal strong {
  color: var(--ink);
  font-weight: 500;
}

.legal a {
  color: var(--coral);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
}

.legal a:hover { background-size: 0% 1px; }

/* ---------- Reveal animations ---------- */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  animation: fade-up 900ms cubic-bezier(.2,.7,.2,1) forwards;
}

.reveal-1 { animation-delay: 80ms; }
.reveal-2 { animation-delay: 220ms; }
.reveal-3 { animation-delay: 360ms; }
.reveal-4 { animation-delay: 500ms; }
.reveal-5 { animation-delay: 640ms; }
.reveal-6 { animation-delay: 780ms; }

.fade-in {
  opacity: 0;
  animation: fade-in 1200ms ease forwards;
  animation-delay: 600ms;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0 !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .fade-in { opacity: 1; transform: none; }
}

/* ---------- A11y ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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