:root {
  color-scheme: light;
  --paper: #f3eddf;
  --paper-deep: #e7dece;
  --ink: #171614;
  --muted: #6d675e;
  --signal: #a83c2d;
  --line: rgba(23, 22, 20, .2);
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  position: relative;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}
body::before {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .09;
  background-image: radial-gradient(rgba(40, 30, 20, .34) .45px, transparent .55px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .8rem 1rem;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: .6rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 237, 223, .96);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .075em;
  white-space: nowrap;
}
.brand > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.brand-dot, .eyebrow-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: .58rem;
  height: .58rem;
  border-radius: 50%;
  background: var(--signal);
}
.brand-divider, .slash { color: var(--signal); }
.brand-divider { padding-inline: .28em; }
.index-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-width: 5.5rem;
  min-height: 44px;
  padding: .45rem .75rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 700 .68rem var(--body);
  letter-spacing: .08em;
  cursor: pointer;
  touch-action: manipulation;
}
.toggle-mark { color: var(--signal); font-size: 1.2rem; line-height: .7; }
.story-index {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(.45rem, 1.5vw, 1.35rem);
}
.story-index a {
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  min-height: 44px;
  padding: .4rem .15rem;
  color: var(--muted);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-decoration: none;
}
.story-index a span:first-child {
  color: var(--signal);
  font-family: var(--display);
  font-size: .78rem;
}
.story-index a:hover, .story-index a[aria-current="step"] { color: var(--ink); }

.opening {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(70svh, 49rem);
  padding: clamp(4rem, 11vw, 9rem) var(--gutter);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.opening-inner { width: min(100%, 78rem); margin-inline: auto; }
.eyebrow, .panel-label {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  color: var(--signal);
  font-family: var(--display);
  font-size: clamp(.7rem, 1vw, .88rem);
  letter-spacing: .14em;
  line-height: 1.45;
  text-transform: uppercase;
}
.eyebrow-dot { width: .45rem; height: .45rem; }
.slash { padding-inline: .15em; }
h1 {
  max-width: 9ch;
  margin: 1.1rem 0 .9rem;
  font-family: var(--display);
  font-size: clamp(3rem, 11vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .88;
  text-transform: uppercase;
}
h1 em { color: var(--signal); font-style: normal; }
.opening-copy {
  max-width: 32rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.55;
}
.down-link {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-top: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--ink);
  border-radius: 50%;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.down-link svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.down-link:hover { transform: translateY(3px); background: var(--ink); color: var(--paper); }
.opening-index {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: .67rem;
  letter-spacing: .13em;
}
.opening-index-line { width: clamp(2.5rem, 8vw, 7rem); height: 1px; background: var(--signal); }

.story {
  padding: clamp(3.2rem, 8vw, 7rem) var(--gutter) clamp(3.5rem, 8vw, 7rem);
  scroll-margin-top: 5rem;
}
.story-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 76rem);
  margin: 0 auto clamp(1.4rem, 4vw, 3rem);
}
.story-eyebrow { color: var(--muted); }
.story-heading h2 {
  margin: .55rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.7vw, 3rem);
  font-weight: 400;
  letter-spacing: .015em;
  line-height: .98;
  text-transform: uppercase;
}
.story-note { margin: 0 0 .15rem; color: var(--muted); font-size: .85rem; }
.panel-list { width: min(100%, 76rem); margin-inline: auto; }
.panel-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(15rem, .75fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(23, 22, 20, .24);
  background: rgba(255, 252, 245, .42);
  box-shadow: 0 .8rem 2.2rem rgba(28, 24, 18, .07);
  animation: panel-in .24s ease-out both;
}
.panel-art { width: 100%; margin: 0; overflow: hidden; border: 1px solid rgba(23, 22, 20, .24); background: var(--paper-deep); }
.panel-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.panel-copy { padding: clamp(.25rem, 2vw, 1.4rem) 0; }
.panel-label { color: var(--ink); font-size: .74rem; }
.panel-label > span:first-child { color: var(--signal); }
.panel-copy h3 {
  max-width: 13ch;
  margin: 1.1rem 0 .8rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: .92;
  text-transform: uppercase;
}
.panel-copy > p:last-child { max-width: 24rem; margin: 0; color: var(--muted); font-size: clamp(.96rem, 1.35vw, 1.08rem); line-height: 1.6; }
.panel-controls {
  display: grid;
  grid-template-columns: 1fr minmax(8rem, 18rem) 1fr;
  align-items: center;
  gap: .8rem;
  width: min(100%, 76rem);
  margin: 1.2rem auto 0;
}
.control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-width: 3rem;
  min-height: 48px;
  padding: .65rem 1rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: 700 .68rem var(--body);
  letter-spacing: .08em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.control-button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.control-button:active:not(:disabled) { transform: translateY(2px); }
.control-button:disabled { opacity: .42; cursor: not-allowed; }
.control-previous { justify-self: start; }
.control-next { justify-self: end; background: var(--ink); color: var(--paper); }
.control-next:hover:not(:disabled) { background: var(--signal); color: #fff; }
.panel-progress { min-width: 0; }
.progress-label { margin: 0 0 .5rem; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-align: center; text-transform: uppercase; }
.progress-track { height: 3px; overflow: hidden; background: rgba(23, 22, 20, .14); }
.progress-fill { display: block; width: 25%; height: 100%; background: var(--signal); transition: width .22s ease; }
.no-script-note { width: min(100%, 76rem); margin: 1rem auto 0; color: var(--muted); font-size: .82rem; }

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(70svh, 48rem);
  overflow: hidden;
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 54%, rgba(168, 60, 45, .08), transparent 38%), var(--paper);
  text-align: center;
}
.choice::before, .choice::after {
  position: absolute;
  width: min(76vw, 42rem);
  aspect-ratio: 1;
  border: 1px solid rgba(23, 22, 20, .12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.choice::after { width: min(58vw, 32rem); border-style: dashed; border-color: rgba(168, 60, 45, .25); }
.choice-eyebrow, .choice h2, .choice-copy, .choice-button { position: relative; z-index: 1; }
.choice h2 {
  max-width: 12ch;
  margin: 1rem 0 .8rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .9;
  text-transform: uppercase;
}
.choice-copy { margin: 0 0 1.6rem; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.choice-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 36rem);
  min-height: 5rem;
  padding: .9rem 1.1rem .9rem 1.35rem;
  border: 2px solid var(--ink);
  border-radius: 1.25rem;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 7px 0 var(--signal), 0 1.3rem 2.5rem rgba(23, 22, 20, .12);
  text-align: left;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  touch-action: manipulation;
}
.choice-button:hover, .choice-button:focus-visible { transform: translateY(-3px); background: #24221f; box-shadow: 0 10px 0 var(--signal), 0 1.6rem 2.8rem rgba(23, 22, 20, .16); }
.choice-button:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--signal), 0 .7rem 1.5rem rgba(23, 22, 20, .13); }
.choice-title { font-family: var(--display); font-size: clamp(1.35rem, 4.1vw, 2.5rem); letter-spacing: .01em; line-height: .98; text-transform: uppercase; }
.choice-arrow { display: grid; flex: 0 0 auto; place-items: center; width: 2.9rem; height: 2.9rem; border: 1px solid rgba(243, 237, 223, .7); border-radius: 50%; background: var(--signal); }
.choice-arrow svg { width: 48%; height: 48%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 4.5rem; padding: 1rem var(--gutter); color: var(--muted); font-family: var(--display); font-size: .7rem; letter-spacing: .12em; }
.site-footer .brand-dot { width: .42rem; height: .42rem; }

@keyframes panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 50rem) {
  html { scroll-padding-top: 4rem; }
  .site-header { min-height: 3.8rem; }
  .brand { max-width: calc(100% - 6rem); gap: .48rem; font-size: .69rem; letter-spacing: .045em; }
  .brand-dot { width: .48rem; height: .48rem; }
  .index-toggle { display: inline-flex; flex: 0 0 auto; }
  .story-index {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: .4rem var(--gutter) .75rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .story-index a { border-bottom: 1px solid rgba(23, 22, 20, .1); }
  .opening { min-height: min(66svh, 37rem); padding-block: 4rem 5rem; }
  h1 { max-width: 8.5ch; margin-top: 1rem; font-size: clamp(2.8rem, 13vw, 4.5rem); line-height: .9; }
  .desktop-break { display: none; }
  .opening-index { bottom: 1.3rem; }
  .story { padding: 3.2rem clamp(.8rem, 3vw, 1.25rem) 3.5rem; }
  .story-heading { display: block; margin-bottom: 1.2rem; padding-inline: .2rem; }
  .story-heading h2 { margin-top: .45rem; font-size: clamp(1.45rem, 7vw, 2rem); }
  .story-note { margin-top: .55rem; font-size: .78rem; }
  .panel-card { grid-template-columns: minmax(0, 1fr); gap: .85rem; padding: .7rem; }
  .panel-art img { aspect-ratio: 3 / 2; }
  .panel-copy { padding: .35rem .4rem .65rem; }
  .panel-label { font-size: .7rem; }
  .panel-copy h3 { max-width: 14ch; margin: .8rem 0 .5rem; font-size: clamp(1.8rem, 9vw, 2.8rem); }
  .panel-copy > p:last-child { font-size: .94rem; }
  .panel-controls { grid-template-columns: auto minmax(4rem, 1fr) auto; gap: .45rem; margin-top: .8rem; }
  .control-button { min-height: 48px; gap: .4rem; padding: .6rem .62rem; font-size: .6rem; }
  .control-next { min-width: 7.3rem; }
  .control-previous { min-width: 6.2rem; }
  .progress-label { font-size: .57rem; }
  .choice { min-height: min(60svh, 35rem); padding-inline: var(--gutter); }
  .choice::before { width: min(92vw, 30rem); }
  .choice::after { width: min(72vw, 24rem); }
  .choice h2 { font-size: clamp(2.25rem, 11vw, 3.7rem); }
  .choice-button { min-height: 4.8rem; gap: .65rem; padding: .8rem .85rem .8rem 1rem; border-radius: 1.1rem; }
  .choice-title { font-size: clamp(1.25rem, 6vw, 2.2rem); }
  .choice-arrow { width: 2.6rem; height: 2.6rem; }
}

@media (max-width: 350px) {
  .brand { font-size: .62rem; }
  .index-toggle { min-width: 4.8rem; gap: .4rem; padding-inline: .55rem; }
  .control-button { gap: .28rem; padding-inline: .45rem; font-size: .55rem; }
  .control-next { min-width: 6.7rem; }
  .control-previous { min-width: 5.7rem; }
  .choice-title { font-size: 1.2rem; }
}

@media (hover: none) {
  .down-link:hover, .choice-button:hover { transform: none; }
  .choice-button:active { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
