:root {
  --ink: #17211d;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --moss: #496451;
  --gold: #b58a4a;
  --line: #d9d2c4;
  --muted: #66716b;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; overflow-x: hidden; }
body { min-height: 100vh; }
a { color: inherit; }
button { font: inherit; }

.deck-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 64px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.deck-progress { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.deck { min-height: 100vh; }

.slide {
  display: none;
  min-height: 100vh;
  padding: 92px clamp(18px, 4vw, 64px) 94px;
  align-content: center;
}

.slide.is-active { display: grid; }
.intro { background: radial-gradient(circle at 78% 25%, #dfe6db 0, transparent 32%), var(--paper); }
.intro-copy { width: min(900px, 100%); margin: auto; }
.eyebrow { margin: 0 0 10px; color: var(--moss); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; line-height: 1.03; text-wrap: balance; }
h1 { max-width: 850px; font-size: clamp(44px, 6.4vw, 82px); }
h2 { font-size: clamp(32px, 4vw, 52px); }
.lead { max-width: 720px; margin: 24px 0 34px; font-size: clamp(19px, 2vw, 25px); line-height: 1.5; color: var(--muted); }
.instruction { margin: 28px 0 0; color: var(--muted); font-size: 14px; }

.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.summary-grid article { min-height: 132px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 83%, transparent); }
.summary-grid strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 44px; }
.summary-grid span { display: block; margin-top: 4px; color: var(--muted); }

.comparison-slide { grid-template-rows: auto minmax(260px, 1fr) auto; gap: 18px; }
.slide-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.slide-heading > a {
  flex: 0 0 auto;
  padding: 11px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.slide-heading > a:hover, .slide-heading > a:focus-visible { background: var(--ink); color: white; outline: none; }

.comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); min-height: 0; }
figure { min-width: 0; margin: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; }
figcaption { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--moss); }
figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  max-height: 48vh;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #e8e3d8;
  box-shadow: 0 18px 45px rgb(23 33 29 / 9%);
}
.change-row { display: grid; grid-template-columns: 1.5fr .8fr 1fr; gap: 16px; }
.change-row p { margin: 0; padding: 12px 14px; border-left: 3px solid var(--gold); background: var(--surface); font-size: clamp(14px, 1.3vw, 17px); line-height: 1.45; }

.deck-nav {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  min-height: 66px;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px);
}
.deck-nav button { min-height: 42px; border: 0; border-radius: 999px; background: var(--ink); color: white; cursor: pointer; }
.deck-nav button:disabled { opacity: .3; cursor: default; }
.dots { display: flex; justify-content: center; gap: 8px; }
.dots button { width: 10px; min-height: 10px; height: 10px; padding: 0; background: #b9bdb7; }
.dots button[aria-current="true"] { width: 28px; background: var(--gold); }

@media (max-width: 800px) {
  .slide { min-height: auto; padding-top: 86px; padding-bottom: 90px; align-content: start; }
  .slide-heading { align-items: start; flex-direction: column; gap: 12px; }
  .comparison { grid-template-columns: 1fr; }
  figure img { min-height: 230px; max-height: 52vh; }
  .change-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .deck-header { height: 56px; }
  .slide { padding: 74px 14px 84px; }
  h2 { font-size: 30px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-grid article { min-height: 94px; }
  .slide-heading > a { width: 100%; text-align: center; }
  figure img { min-height: 205px; border-radius: 12px; }
  .change-row p { font-size: 14px; }
  .deck-nav { grid-template-columns: 92px 1fr 92px; padding: 8px 10px; }
  .deck-nav button { font-size: 12px; }
  .dots { gap: 5px; }
  .dots button { width: 8px; min-height: 8px; height: 8px; }
  .dots button[aria-current="true"] { width: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .slide.is-active { animation: reveal .24s ease-out; }
  @keyframes reveal { from { opacity: 0; transform: translateY(5px); } }
}
