:root {
  --cream: #f4f0e8;
  --ink: #111111;
  --paper: #f8f6f1;
  --gold: #dcc560;
  --tobacco: #8a5f35;
  --wine: #8a4c4c;
  --line: rgba(17, 17, 17, 0.14);
  --shadow: rgba(17, 17, 17, 0.1);
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Times New Roman", serif;
  --sans: "Helvetica Neue", "Neue Haas Grotesk Text Pro", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  width: 100%;
}

figure {
  margin: 0;
}

button {
  font: inherit;
}

.story {
  scroll-snap-type: y proximity;
}

.frame {
  position: relative;
  min-height: 100svh;
  scroll-snap-align: start;
  isolation: isolate;
  overflow: clip;
}

.frame-shell {
  position: relative;
  width: min(100%, 1280px);
  margin: 0 auto;
  box-sizing: border-box;
}

.display-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.frame-one,
.frame-two,
.frame-six,
.frame-seven,
.frame-nine {
  background: #101010;
}

.frame-media,
.frame-media::after,
.frame-media img {
  position: absolute;
  inset: 0;
}

.frame-media img {
  height: 100%;
  object-fit: cover;
}

.frame-one .frame-media::after,
.frame-two .frame-media::after,
.frame-six .frame-media::after,
.frame-seven .frame-media::after,
.frame-nine .frame-media::after {
  content: "";
}

.frame-one .frame-media::after {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.04) 0%, rgba(8, 8, 8, 0.08) 52%, rgba(8, 8, 8, 0.34) 100%);
}

.frame-two .frame-media::after {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.48) 0%, rgba(8, 8, 8, 0.12) 44%, rgba(8, 8, 8, 0.28) 100%);
}

.frame-media-soft::after {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.18) 0%, rgba(8, 8, 8, 0.08) 44%, rgba(8, 8, 8, 0.3) 100%);
}

.frame-nine .frame-media::after {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.18) 0%, rgba(8, 8, 8, 0.2) 48%, rgba(8, 8, 8, 0.56) 100%);
}

.frame-one .frame-media img {
  object-position: center 28%;
}

.frame-two .frame-media img {
  object-position: center 38%;
}

.frame-six .frame-media img {
  object-position: center 52%;
}

.frame-seven .frame-media img {
  object-position: center 40%;
}

.frame-nine .frame-media img {
  object-position: center 32%;
  filter: saturate(0.9);
}

.frame-one-shell,
.frame-nine-shell {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  z-index: 1;
}

.frame-one-shell {
  justify-content: center;
  padding: 0 1.8rem clamp(2.6rem, 7vh, 4.6rem);
}

.frame-nine-shell {
  padding: 0 clamp(1.6rem, 5vw, 4rem) clamp(3rem, 9vh, 5.4rem);
}

.frame-one-title {
  color: rgba(248, 242, 234, 0.97);
  font-size: clamp(3rem, 7.5vw, 6rem);
  text-align: center;
  text-shadow: 0 0.06em 0.22em rgba(0, 0, 0, 0.18);
}

.frame-two-shell {
  min-height: 100svh;
  display: flex;
  align-items: flex-start;
  z-index: 1;
  padding: clamp(1.15rem, 4.6vh, 2.8rem) clamp(1.8rem, 5vw, 4rem);
}

.frame-two-title {
  display: grid;
  gap: 0;
  max-width: min(85vw, 31rem);
  transform: translateY(-2.5vh);
}

.frame-two-accent,
.frame-two-main {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.frame-two-accent {
  color: var(--gold);
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.88;
}

.frame-two-main {
  margin-top: clamp(0.55rem, 2.8vh, 1.65rem);
  margin-left: clamp(2.4rem, 10vw, 8rem);
  color: rgba(248, 242, 234, 0.98);
  font-size: clamp(2.9rem, 7vw, 5.8rem);
  line-height: 0.9;
}

.frame-three,
.frame-four,
.frame-five,
.frame-eight,
.frame-ten,
.frame-eleven {
  background: var(--cream);
}

.frame-three-shell,
.frame-four-shell {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 11vh, 7rem) clamp(1.4rem, 5vw, 4rem);
}

.detail-figure {
  width: min(82vw, 19rem);
  aspect-ratio: 0.72;
  overflow: hidden;
}

.detail-image {
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: grayscale(1) contrast(0.94);
}

.detail-copy {
  width: min(82vw, 19rem);
  margin-top: clamp(2.2rem, 5vh, 2.8rem);
  font-size: clamp(1.12rem, 1rem + 0.72vw, 1.7rem);
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.detail-copy p {
  margin: 0;
}

.detail-copy p + p {
  margin-top: clamp(1.5rem, 4vh, 2.2rem);
}

.detail-rule {
  width: clamp(10rem, 36vw, 15rem);
  height: 0.2rem;
  margin-top: clamp(2.8rem, 6vh, 3.5rem);
  margin-left: auto;
  background: var(--wine);
}

.breath-figure {
  width: clamp(14.25rem, 34vw, 20rem);
  aspect-ratio: 0.72;
  overflow: hidden;
}

.breath-image {
  height: 100%;
  object-fit: cover;
  object-position: 51% 63%;
}

.invitation-shell,
.linger-question-shell {
  min-height: 100svh;
  display: grid;
  gap: clamp(2.5rem, 6vh, 4rem);
  align-content: center;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.4rem, 5vw, 4rem);
}

.invitation-figure {
  width: min(82vw, 17rem);
  margin: 0 auto;
  aspect-ratio: 0.72;
  overflow: hidden;
}

.invitation-image {
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  filter: grayscale(1) contrast(1.02);
}

.invitation-copy,
.linger-question-shell {
  width: min(100%, 31rem);
  margin: 0 auto;
}

.invitation-title {
  max-width: 12ch;
  font-size: clamp(2.45rem, 6.4vw, 5rem);
}

.choice-list {
  margin-top: clamp(1.7rem, 4vh, 2.5rem);
  border-top: 1px solid var(--line);
}

.choice {
  position: relative;
  display: block;
  width: 100%;
  padding: 1rem 0 1.05rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: opacity 220ms ease, transform 220ms ease;
}

.choice::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--tobacco);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}

.choice:hover,
.choice:focus-visible {
  transform: translateX(0.35rem);
  outline: none;
}

.choice:hover::after,
.choice:focus-visible::after,
.choice.is-selected::after {
  transform: scaleX(1);
}

.choice-text {
  display: block;
  max-width: 22rem;
  font-size: clamp(1rem, 0.95rem + 0.28vw, 1.12rem);
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.choice-list.has-selection .choice:not(.is-selected) {
  opacity: 0.32;
}

.followup-panel {
  margin-top: clamp(1.8rem, 4vh, 2.5rem);
}

.followup-question {
  margin: 0;
  color: rgba(17, 17, 17, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.followup-choice-list {
  margin-top: 0.8rem;
}

.linger-photo-shell {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(1.4rem, 5vw, 4rem) clamp(2.2rem, 6vh, 3.4rem);
  z-index: 1;
}

.linger-photo-shell-right {
  justify-content: flex-end;
}

.linger-caption {
  margin: 0;
  color: rgba(248, 242, 234, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.promise-copy {
  max-width: min(100%, 30rem);
  color: rgba(248, 242, 234, 0.98);
  z-index: 1;
}

.promise-kicker {
  margin: 0 0 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.promise-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.promise-detail {
  max-width: 21rem;
  margin: 1rem 0 0;
  color: rgba(248, 242, 234, 0.84);
  font-size: clamp(0.95rem, 0.9rem + 0.16vw, 1.05rem);
  line-height: 1.56;
  letter-spacing: -0.01em;
}

.promise-button {
  margin-top: 1.7rem;
  padding: 0.7rem 1.35rem 0.76rem;
  border: 1px solid rgba(248, 242, 234, 0.34);
  background: rgba(248, 242, 234, 0.04);
  color: rgba(248, 242, 234, 0.96);
  text-transform: lowercase;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.promise-button:hover,
.promise-button:focus-visible {
  background: rgba(248, 242, 234, 0.12);
  border-color: rgba(248, 242, 234, 0.72);
  outline: none;
  transform: translateY(-0.15rem);
}

.promise-button:disabled {
  opacity: 0.38;
  cursor: default;
  transform: none;
}

.promise-button:disabled:hover,
.promise-button:disabled:focus-visible {
  background: rgba(248, 242, 234, 0.04);
  border-color: rgba(248, 242, 234, 0.34);
}

.size-frame-shell {
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.4rem, 5vw, 4rem);
}

.size-frame-copy {
  width: min(100%, 34rem);
}

.size-frame-title {
  max-width: 11ch;
  font-size: clamp(2.45rem, 6.4vw, 5rem);
}

.size-frame-intro {
  max-width: 25rem;
  margin: 1rem 0 0;
  color: rgba(17, 17, 17, 0.68);
  font-size: 1rem;
  line-height: 1.58;
  letter-spacing: -0.01em;
}

.size-grid {
  display: grid;
  gap: 1.8rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}

.size-label {
  margin: 0 0 0.6rem;
  color: rgba(17, 17, 17, 0.42);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.size-choice {
  min-width: 2.9rem;
  padding: 0.56rem 0.74rem 0.6rem;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.size-choice:hover,
.size-choice:focus-visible {
  border-color: rgba(17, 17, 17, 0.46);
  outline: none;
  transform: translateY(-0.12rem);
}

.size-choice.is-selected {
  border-color: rgba(17, 17, 17, 0.78);
  background: rgba(17, 17, 17, 0.06);
}

.size-frame-rule {
  width: clamp(10rem, 30vw, 14rem);
  height: 0.18rem;
  background: var(--wine);
}

.size-frame-rule-top {
  margin-left: auto;
  margin-bottom: clamp(2.4rem, 7vh, 4rem);
}

.size-frame-rule-bottom {
  margin-top: clamp(2.4rem, 7vh, 4rem);
}

.edit-shell {
  padding: clamp(4rem, 10vh, 7rem) clamp(1.4rem, 5vw, 4rem) clamp(6rem, 12vh, 8rem);
}

.edit-intro {
  max-width: 31rem;
  margin: 0 auto clamp(3rem, 8vh, 5rem);
}

.frame-eleven.is-locked .edit-intro {
  opacity: 0.72;
}

.edit-bridge {
  margin: 0;
  color: rgba(17, 17, 17, 0.48);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.edit-size-summary {
  margin: 1rem 0 0;
  color: rgba(17, 17, 17, 0.52);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.edit-title {
  margin-top: 1rem;
  font-size: clamp(2.7rem, 6.8vw, 5.8rem);
}

.edit-lede {
  max-width: 22rem;
  margin: 1rem 0 0;
  color: rgba(17, 17, 17, 0.68);
  font-size: 1rem;
  line-height: 1.58;
  letter-spacing: -0.01em;
}

.edit-placeholder {
  max-width: 22rem;
  margin: 0 auto;
}

.edit-placeholder-kicker {
  margin: 0;
  color: rgba(17, 17, 17, 0.48);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.edit-placeholder-copy {
  max-width: 17rem;
  margin: 1rem 0 0;
  font-size: 1.1rem;
  line-height: 1.48;
  letter-spacing: -0.02em;
}

.edit-sequence {
  display: grid;
  gap: clamp(3rem, 11vh, 6.4rem);
}

.edit-piece {
  min-height: 78svh;
  display: grid;
  align-items: center;
}

.edit-card {
  display: grid;
  gap: 1.8rem;
  align-items: center;
}

.edit-figure {
  width: min(78vw, 23rem);
  margin: 0 auto;
}

.edit-figure img {
  display: block;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 1.6rem 3.4rem var(--shadow);
}

.edit-copy {
  width: min(78vw, 22rem);
  margin: 0 auto;
}

.edit-year {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.8vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.edit-note {
  margin: 1rem 0 0;
  font-size: clamp(1.16rem, 1rem + 0.42vw, 1.54rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.edit-piece-name {
  margin: 1.15rem 0 0;
  font-size: clamp(1.04rem, 0.98rem + 0.32vw, 1.22rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.edit-piece-boutique {
  margin: 0.72rem 0 0;
  color: rgba(17, 17, 17, 0.46);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.edit-piece-meta {
  max-width: 19rem;
  margin: 0.7rem 0 0;
  color: rgba(17, 17, 17, 0.72);
  font-size: 0.94rem;
  line-height: 1.56;
  letter-spacing: -0.01em;
}

.reveal {
  opacity: 1;
}

.reveal-media,
.reveal-copy {
  opacity: 0;
  transform: translate3d(0, 2rem, 0);
  transition: opacity 900ms ease, transform 1200ms cubic-bezier(0.18, 0.88, 0.32, 1);
}

.reveal.is-visible .reveal-media,
.reveal.is-visible .reveal-copy {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal.is-visible .reveal-copy {
  transition-delay: 220ms;
}

.frame-one.is-visible .reveal-copy {
  transition-delay: 420ms;
}

.frame-three.is-visible .reveal-copy,
.frame-five.is-visible .reveal-copy,
.frame-eight.is-visible .reveal-copy,
.edit-piece.is-visible .reveal-copy {
  transition-delay: 320ms;
}

.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;
}

@media (min-width: 900px) {
  .story {
    scroll-snap-type: y mandatory;
  }

  .frame-one .frame-media img {
    object-position: center 32%;
  }

  .frame-two .frame-media img {
    object-position: center 32%;
  }

  .frame-two-title {
    transform: translateY(-4.2vh);
  }

  .frame-two-main {
    margin-top: clamp(0.3rem, 2vh, 1.1rem);
  }

  .detail-figure {
    width: min(30vw, 22rem);
  }

  .detail-copy {
    width: min(30vw, 22rem);
  }

  .breath-figure {
    width: clamp(17rem, 27vw, 24rem);
  }

  .invitation-shell {
    grid-template-columns: minmax(18rem, 23rem) minmax(18rem, 30rem);
    justify-content: center;
    align-items: center;
    gap: clamp(4rem, 8vw, 8rem);
  }

  .invitation-visual {
    display: flex;
    justify-content: flex-end;
  }

  .invitation-copy {
    margin: 0;
  }

  .frame-six .frame-media img {
    object-position: center 46%;
  }

  .frame-seven .frame-media img {
    object-position: center 34%;
  }

  .linger-question-shell,
  .size-frame-copy {
    margin-left: 8vw;
  }

  .size-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
  }

  .edit-intro {
    margin-left: 8vw;
  }

  .edit-card {
    grid-template-columns: minmax(18rem, 28rem) minmax(18rem, 25rem);
    justify-content: center;
    gap: clamp(3rem, 8vw, 7rem);
  }

  .edit-piece:nth-child(even) .edit-card {
    grid-template-columns: minmax(18rem, 25rem) minmax(18rem, 28rem);
  }

  .edit-piece:nth-child(even) .edit-figure {
    order: 2;
  }

  .edit-piece:nth-child(even) .edit-copy {
    order: 1;
  }

  .edit-figure,
  .edit-copy {
    width: auto;
    margin: 0;
  }

  .edit-copy {
    max-width: 24rem;
  }
}

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

  .reveal-media,
  .reveal-copy,
  .choice,
  .promise-button,
  .size-choice {
    transition: none;
  }
}
