:root {
  --paper: #f3eee5;
  --paper-2: #eae3d6;
  --ink: #1c1814;
  --muted: #5c544a;
  --line: #7a7268;
  --rule: #302a24;
  --accent: #c2794f;
  --accent-soft: #d6a88b;
  --chip: #e4cbb8;
  --stop: #762c22;
  --pass: #264e34;
  --shadow: 0 24px 60px rgba(28, 24, 20, 0.18);
  --max: 1160px;
}

::selection {
  background: var(--chip);
  color: var(--ink);
}

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  color-scheme: light;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.geo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.geo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.geo-spin {
  transform-origin: 980px 120px;
  animation: geo-spin 72s linear infinite;
}

.geo-spin-rev {
  transform-origin: 160px 640px;
  animation: geo-spin 96s linear infinite reverse;
}

.geo-drift {
  animation: geo-drift 18s ease-in-out infinite alternate;
}

.geo-grid {
  animation: geo-shift 40s linear infinite;
}

.geo-line {
  animation: geo-line 22s ease-in-out infinite alternate;
}

.geo-line.delay {
  animation-delay: -8s;
}

@keyframes geo-spin {
  to { transform: rotate(360deg); }
}

@keyframes geo-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(18px, -28px); }
}

@keyframes geo-shift {
  from { transform: translate(0, 0); }
  to { transform: translate(-48px, 48px); }
}

@keyframes geo-line {
  from { transform: translateY(0); }
  to { transform: translateY(16px); }
}

header.site,
main,
footer.site,
.mobile-cta {
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  text-decoration: none;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
}

.skip:focus {
  top: 12px;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 22px;
}

.nav-kicker .rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.chip {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--chip);
  border-radius: 5px;
  padding: 6px 12px;
  white-space: nowrap;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--paper) 86%, white);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 18%, transparent);
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

header.site .btn {
  flex-shrink: 0;
}

.menu {
  display: flex;
  gap: 18px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
}

.menu a:hover {
  color: var(--ink);
}

.brand {
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 16px;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 4px;
  padding: 13px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: #fff8f3;
  box-shadow: 0 10px 24px rgba(194, 121, 79, 0.28);
}

.btn-accent:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--paper) 70%, white);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0 72px;
}

.hero h1 {
  margin: 10px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero .sub {
  margin: 18px 0 0;
  font-size: 22px;
  color: var(--muted);
}

.hero p {
  max-width: 38em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--rule);
}

.stats div {
  padding: 16px 16px 4px 0;
}

.stats b {
  display: block;
  font-size: 22px;
}

.stats span {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.portrait-wrap {
  position: relative;
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

.portrait-cap {
  margin-top: 10px;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

section {
  padding: 72px 0;
}

section.alt {
  background: color-mix(in srgb, var(--paper-2) 72%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--rule) 12%, transparent);
  backdrop-filter: blur(6px);
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

#math,
#look,
#inside,
#offer,
#faq {
  scroll-margin-top: 84px;
}

.lede {
  color: var(--muted);
  max-width: 40em;
}

.punch {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
  font-size: 17px;
}

.punch th,
.punch td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 22%, transparent);
}

.punch th {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.punch td:last-child {
  color: var(--stop);
  font-weight: 700;
}

.math-close {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.math-close .big {
  font-size: 28px;
}

.math-close .big em {
  font-style: normal;
  color: var(--accent);
}

.sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
  margin-top: 28px;
}

.sec {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 14%, transparent);
}

.sec b {
  color: var(--accent);
}

.look {
  padding-bottom: 36px;
}

.river {
  margin-top: 32px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.river-track {
  display: flex;
  width: max-content;
  animation: river 58s linear infinite;
  will-change: transform;
}

.river:hover .river-track,
.river:focus-within .river-track {
  animation-play-state: paused;
}

.river-set {
  display: flex;
  gap: 40px;
  padding-right: 40px;
}

.river-set figure {
  margin: 0;
  flex: 0 0 clamp(360px, 56vw, 720px);
}

.river-set img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  background: var(--paper);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.river-set figure:hover img,
.river-set figure:focus-visible img {
  transform: translateY(-8px) rotate(-0.4deg);
  box-shadow: 0 28px 50px rgba(28, 24, 20, 0.28);
}

.river-set figure:focus {
  outline: none;
}

.river-set figure:focus-visible img {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.river-set figcaption {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
  font-style: italic;
}

@keyframes river {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .geo-spin,
  .geo-spin-rev,
  .geo-drift,
  .geo-grid,
  .geo-line,
  .river-track {
    animation: none;
  }

  .river {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .river-set + .river-set {
    display: none;
  }
}

.offer {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.receipt {
  background: color-mix(in srgb, var(--paper) 88%, white);
  border: 1px solid var(--rule);
  padding: 22px 24px 8px;
  box-shadow: var(--shadow);
}

.receipt-no {
  margin: 0 0 6px;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ticks {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.ticks li {
  padding: 6px 0 6px 22px;
  position: relative;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

.pad-top {
  margin-top: 22px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.punch {
  min-width: 640px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}

.foot p {
  margin: 0;
}

.receipt h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--rule) 30%, transparent);
  font-size: 16px;
}

.row span:last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.row.total {
  border-bottom: none;
  font-weight: 700;
  font-size: 20px;
  padding-top: 16px;
}

.row.pay {
  color: var(--accent);
  font-size: 26px;
  border-top: 1px solid var(--rule);
  margin-top: 4px;
}

.letter {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
}

.letter img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  object-position: 50% 18%;
  border: 1px solid var(--rule);
}

blockquote {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
}

.faq details {
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 18%, transparent);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 20px;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 10px 0 6px;
  color: var(--muted);
}

.close {
  text-align: center;
  padding-bottom: 96px;
}

.close h2 {
  max-width: 16em;
  margin-inline: auto;
}

footer.site {
  border-top: 1px solid var(--rule);
  padding: 22px 0 36px;
  color: var(--muted);
  font-style: italic;
  font-size: 16px;
}

.fine {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
}

.mobile-cta {
  display: none;
}

@media (max-width: 1100px) {
  .menu {
    display: none;
  }
}

@media (max-width: 880px) {
  .hero,
  .offer,
  .letter,
  .sections,
  .stats {
    grid-template-columns: 1fr;
  }

  .portrait-wrap img {
    aspect-ratio: 16 / 11;
    object-position: 50% 22%;
  }

  .stats div {
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--rule) 14%, transparent);
  }

  header.site .brand span,
  header.site .btn,
  .menu {
    display: none;
  }

  .mobile-cta {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 92%, white);
    border-top: 1px solid color-mix(in srgb, var(--rule) 18%, transparent);
  }

  .mobile-cta .btn {
    width: 100%;
  }

  .river-set figure {
    flex-basis: min(86vw, 420px);
  }

  .river-set img {
    width: 100%;
  }
}
