:root {
  color-scheme: light;
  --cocoa: #80524c;
  --cocoa-dark: #4b2d2a;
  --cream: #f7f3f0;
  --blush: #e9d9d0;
  --ink: #352522;
  --font-display: "Arima", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); background: var(--cocoa); color: var(--cream); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #e7b6a7; outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen { min-height: 100svh; animation: screen-in .5s ease both; }

.site-header {
  position: absolute; z-index: 20; inset: 0 0 auto;
  max-width: 1500px; margin: auto;
  height: 110px; padding: 18px clamp(22px, 4.8vw, 76px);
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(45,24,22,.62), rgba(45,24,22,0));
}
body[data-stage="result"] .site-header { background: none; }
.site-header img { flex: none; }
.site-header__anniversary { width: 170px; height: auto; margin: -31px 0 -31px -12px; }
.site-header__answear { width: 118px; height: auto; filter: brightness(0) invert(1); }
body[data-stage="result"] .site-header__anniversary { filter: brightness(0); }
body[data-stage="result"] .site-header__answear { filter: none; }

.eyebrow {
  margin: 0; color: var(--cocoa); font-size: .69rem; font-weight: 800;
  letter-spacing: .26em; line-height: 1.6;
}
.eyebrow--light { color: #f6e9e1; }
.eyebrow span { margin: 0 .5em; }
.button {
  border: 1px solid transparent; border-radius: 0; min-height: 58px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 32px; padding: 15px 25px; text-decoration: none;
  font-weight: 800; font-size: .88rem; letter-spacing: .01em;
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.button:not(:disabled):hover { transform: translateY(-3px); }
.button:disabled { cursor: wait; opacity: .66; }
.button__symbol { font-size: 1.3rem; font-weight: 400; line-height: 1; }
.button__icon { width: 19px; height: 19px; flex: none; }
.tracking-feedback { min-height: 1.2em; margin: 10px 0 0; color: #fff3e8; font-size: .82rem; line-height: 1.45; }
.button--cream { background: var(--cream); color: var(--cocoa-dark); }
.button--cream:hover { background: white; }
.button--cocoa { background: var(--cocoa); color: white; }
.button--cocoa:hover { background: var(--cocoa-dark); }
.button--outline { border-color: var(--cocoa); color: var(--cocoa); background: transparent; }
.button--outline:hover { background: #f1e4dd; }

/* First screen: campaign photograph and the site's cocoa palette. */
.intro-screen { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; background: var(--cocoa); }
.intro-screen__photo { position: absolute; z-index: -2; inset: 0 0 0 38%; overflow: hidden; }
.intro-screen__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 59%; animation: image-in 1.3s ease both; }
.intro-screen__shade {
  position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, #5d3936 3%, rgba(93,57,54,.96) 35%, rgba(70,40,37,.36) 73%, rgba(41,23,22,.12));
}
.intro-screen__inner {
  width: min(100%, 1500px); margin: auto;
  padding: clamp(130px, 14vw, 200px) clamp(22px, 6.5vw, 100px) clamp(52px, 7vw, 94px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
}
.intro-screen__copy { max-width: 760px; }
.intro-screen h1 {
  margin: 20px 0 24px; font-family: var(--font-display);
  font-size: clamp(3.1rem, 5.2vw, 6rem); font-weight: 500;
  line-height: 1.04; letter-spacing: -.055em;
}
.intro-screen h1 em { font-weight: 400; }
.intro-screen__description { max-width: 590px; margin: 0 0 34px; font-size: clamp(.96rem, 1.15vw, 1.1rem); line-height: 1.9; color: #f8eae4; }
.intro-screen__edition { margin: 0 0 7px; white-space: nowrap; letter-spacing: .3em; font-size: .76rem; font-weight: 700; }
.intro-screen__edition span { margin: 0 12px; }

/* One question at a time. */
.question-screen {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(circle at 86% 6%, #a46a60 0, transparent 32%), linear-gradient(135deg, #80524c, #68403e 62%, #533433);
}
.question-screen__watermark {
  position: absolute; z-index: -1; right: -3%; bottom: -17%;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12);
  font-family: var(--font-display); font-size: min(55vw, 700px); line-height: .8;
  pointer-events: none; user-select: none;
}
.question-screen__inner { max-width: 1500px; margin: 0 auto; padding: 132px clamp(22px, 6.5vw, 100px) 70px; }
.question-screen__topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.back-button {
  border: 0; padding: 10px 0; background: transparent; color: white;
  font-size: .88rem; font-weight: 700;
}
.back-button span { margin-right: 10px; font-size: 1.2rem; }
.back-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.question-screen__progress { margin: 48px 0 52px; display: flex; align-items: center; gap: 24px; color: #f7eae3; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.progress-track { width: 160px; height: 2px; background: rgba(255,255,255,.33); }
.progress-track span { display: block; height: 100%; width: 25%; background: #fff; transition: width .45s ease; }
.question-screen__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: start; }
.question-screen__index { margin: 0 0 22px; font-size: .78rem; font-weight: 700; letter-spacing: .2em; color: #efcfbf; }
.question-screen h2 { max-width: 660px; margin: 0; font: 500 clamp(2.6rem, 4.8vw, 5.35rem)/1.13 var(--font-display); letter-spacing: -.047em; }
.answer-list { display: grid; gap: 12px; }
.answer-option {
  width: 100%; min-height: 93px; border: 1px solid rgba(255,255,255,.38);
  padding: 17px 23px; display: flex; align-items: center; gap: 20px;
  text-align: left; background: rgba(255,255,255,.065); color: #fff;
  transition: background .22s, border-color .22s, transform .22s;
}
.answer-option:hover, .answer-option:focus-visible { background: rgba(255,255,255,.16); border-color: white; transform: translateX(4px); }
.answer-option.is-selected { color: var(--cocoa-dark); background: var(--cream); border-color: var(--cream); transform: translateX(4px); }
.answer-option__number { align-self: flex-start; min-width: 27px; padding-top: 3px; color: #f3d7c9; font-size: .74rem; font-weight: 800; letter-spacing: .08em; }
.answer-option.is-selected .answer-option__number { color: var(--cocoa); }
.answer-option__text { font-size: clamp(.93rem, 1vw, 1.04rem); font-weight: 600; line-height: 1.6; }

/* Results keep the supplied 1080 × 1920 artwork intact. */
.result-screen { background: var(--cream); color: var(--ink); }
.result-screen__inner {
  width: min(100%, 1450px); margin: 0 auto;
  padding: 150px clamp(22px, 6.5vw, 100px) 90px;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(290px, .9fr);
  align-items: start; gap: clamp(45px, 7vw, 110px);
}
.result-screen__text { padding-top: 30px; }
.result-screen h2 { margin: 19px 0 23px; color: var(--cocoa); font: 500 clamp(3.35rem, 6vw, 6.5rem)/1.04 var(--font-display); letter-spacing: -.055em; }
.result-screen__description { max-width: 650px; margin: 0 0 36px; font-size: clamp(1rem, 1.15vw, 1.12rem); line-height: 1.9; }
.result-screen__offer { max-width: 680px; padding: 27px 28px; border-left: 3px solid var(--cocoa); background: #eee2dc; }
.result-screen__offer-label { color: var(--cocoa); font-size: .68rem; letter-spacing: .19em; font-weight: 800; }
.result-screen__offer p { margin: 10px 0 0; line-height: 1.8; font-size: .92rem; }
.result-screen__offer strong { white-space: nowrap; color: var(--cocoa); }
.result-screen__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.result-screen__guidance { max-width: 570px; margin: 18px 0 7px; color: #6a514c; font-size: .84rem; line-height: 1.7; }
.text-action { border: 0; border-bottom: 1px solid currentColor; padding: 5px 0; background: transparent; color: var(--cocoa); font-size: .82rem; font-weight: 800; }
.text-action:hover { color: var(--ink); }
.action-feedback { min-height: 24px; margin: 6px 0 0; font-size: .83rem; color: var(--cocoa); }
.result-screen__footer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; padding-top: 20px; margin-top: 23px; border-top: 1px solid #d9c9c2; }
.result-screen__footer-actions a, .result-screen__footer-actions button { border: 0; padding: 7px 0; background: transparent; color: var(--cocoa); font-size: .86rem; font-weight: 800; text-decoration: none; }
.result-screen__footer-actions a:hover, .result-screen__footer-actions button:hover { text-decoration: underline; text-underline-offset: 4px; }
.result-screen__visual { display: grid; justify-items: center; gap: 26px; }
.story-frame { width: min(100%, 390px); padding: 8px; background: white; box-shadow: 22px 28px 70px rgba(61,31,27,.23); transform: rotate(2deg); animation: card-in .8s .1s both; }
.story-frame img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: contain; }
.story-frame__caption { margin: 0; color: var(--cocoa); font: 500 1.13rem var(--font-display); text-align: center; }
.story-frame__caption span { color: #a87565; }

@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes image-in { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes card-in { from { opacity: 0; transform: translateY(28px) rotate(0); } to { opacity: 1; transform: translateY(0) rotate(2deg); } }

@media (max-width: 850px) {
  .site-header { height: 89px; padding: 14px 18px; }
  .site-header__anniversary { width: 140px; height: auto; margin: -25px 0 -25px -10px; }
  .site-header__answear { width: 100px; }
  .intro-screen__photo { inset: 0; }
  .intro-screen__photo img { object-position: 52% 51%; }
  .intro-screen__shade { background: linear-gradient(180deg, rgba(52,29,27,.45) 0%, rgba(44,25,24,.28) 23%, rgba(50,29,28,.72) 53%, #4d302e 100%); }
  .intro-screen__inner { padding: 130px 25px max(40px, env(safe-area-inset-bottom)); }
  .intro-screen__copy { max-width: 580px; }
  .intro-screen h1 { font-size: clamp(3.1rem, 8vw, 5.3rem); }
  .intro-screen__edition { display: none; }
  .question-screen__inner { padding: 104px 25px 50px; }
  .question-screen__progress { margin: 36px 0 33px; }
  .question-screen__layout { grid-template-columns: 1fr; gap: 30px; }
  .question-screen h2 { max-width: 760px; font-size: clamp(2.35rem, 6vw, 3.7rem); }
  .result-screen__inner { grid-template-columns: 1fr; gap: 48px; padding: 120px 25px 65px; }
  .result-screen__visual { grid-row: 1; }
  .result-screen__text { grid-row: 2; padding-top: 0; }
  .story-frame { width: min(63vw, 320px); }
}
@media (max-width: 540px) {
  .site-header__anniversary { width: 130px; height: auto; }
  .site-header__answear { width: 94px; }
  .intro-screen { min-height: 100svh; }
  .intro-screen__photo img { object-position: 56% 45%; }
  .intro-screen__inner { padding: 110px 22px max(32px, env(safe-area-inset-bottom)); }
  .intro-screen h1 { margin: 16px 0 17px; font-size: clamp(2.8rem, 11.8vw, 4.4rem); }
  .intro-screen__description { margin-bottom: 26px; font-size: .96rem; line-height: 1.72; }
  .intro-screen .button { width: 100%; justify-content: space-between; }
  .eyebrow { font-size: .6rem; letter-spacing: .18em; }
  .question-screen__inner { padding: 102px 19px 38px; }
  .question-screen__topline .eyebrow { font-size: .54rem; }
  .question-screen__progress { margin: 27px 0 23px; }
  .question-screen h2 { font-size: clamp(2.12rem, 9.4vw, 3.25rem); }
  .question-screen__index { margin-bottom: 12px; }
  .question-screen__layout { gap: 25px; }
  .answer-list { gap: 9px; }
  .answer-option { min-height: 70px; gap: 12px; padding: 12px 14px; }
  .answer-option__text { font-size: .93rem; line-height: 1.5; }
  .result-screen__inner { gap: 37px; padding: 105px 22px 55px; }
  .story-frame { width: min(64vw, 275px); padding: 5px; box-shadow: 12px 18px 45px rgba(61,31,27,.25); }
  .story-frame__caption { font-size: .96rem; }
  .result-screen h2 { font-size: clamp(2.8rem, 11.5vw, 4.7rem); }
  .result-screen__description { font-size: .96rem; line-height: 1.77; }
  .result-screen__offer { padding: 22px 18px; }
  .result-screen__offer p { font-size: .88rem; }
  .result-screen__actions { display: grid; }
  .result-screen__actions .button { width: 100%; }
}
@media (max-height: 690px) and (max-width: 540px) {
  .intro-screen__inner { padding-top: 95px; }
  .intro-screen h1 { font-size: 2.7rem; }
  .intro-screen__description { font-size: .82rem; line-height: 1.58; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
