@font-face {
  font-family: "Albert Sans";
  src: url("assets/albert-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("assets/albert-sans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("assets/albert-sans-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/bodoni-moda-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/bodoni-moda-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f0e7;
  --paper-deep: #eae4d8;
  --charcoal: #1a1a18;
  --ink-soft: #5d5b53;
  --line: rgba(26, 26, 24, 0.17);
  --line-strong: rgba(26, 26, 24, 0.34);
  --mint: #e5f4ca;
  --gold: #c6a55b;
  --gold-light: #f1dfb2;
  --red: #782523;
  --white: #fffdf8;
  --display: "Bodoni Moda", "Times New Roman", serif;
  --sans: "Albert Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { height: 100%; background: var(--paper); overflow: hidden; }
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 14%, rgba(198, 165, 91, 0.12), transparent 28rem),
    var(--paper);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.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;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.page-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: clamp(64px, 9vh, 78px) 2px minmax(0, 1fr);
  overflow: hidden;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  color: var(--charcoal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wordmark img { display: block; height: auto; }
.wordmark .brand-icon { width: clamp(25px, 2.4vw, 31px); }
.wordmark .brand-wordmark { width: clamp(132px, 12vw, 158px); }
.study-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.study-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }
.progress-wrap { position: relative; z-index: 2; background: rgba(26,26,24,0.08); }
.progress-track, .progress-fill { height: 2px; }
.progress-fill {
  width: 0;
  background: var(--red);
  transition: width 520ms cubic-bezier(.22,.75,.24,1);
}

.survey-layout {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 37vw) 1fr;
}
.editorial-rail {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: clamp(34px, 5vh, 64px) clamp(26px, 4vw, 64px);
  background:
    linear-gradient(180deg, rgba(8,12,9,.22) 0%, rgba(8,12,9,.3) 42%, rgba(8,12,9,.82) 100%),
    url("assets/champagne-dining-signal.jpeg") center 46% / cover no-repeat;
  color: var(--white);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.editorial-rail::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  left: -205px;
  top: 22%;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
}
.rail-copy { position: relative; z-index: 1; max-width: 460px; margin: auto 0; }
.eyebrow, .question-kicker {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.editorial-rail .eyebrow { color: var(--gold-light); }
.rail-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.052em;
  color: var(--white);
}
.rail-copy > p:last-child {
  max-width: 370px;
  margin: 30px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  line-height: 1.65;
}
.gold-seal {
  position: absolute;
  left: clamp(26px, 4vw, 64px);
  bottom: clamp(24px, 4vh, 46px);
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  transition: opacity 220ms ease, transform 220ms ease;
}
.gold-seal::before { content: none; }
.gold-seal img {
  position: relative;
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.3));
}
.survey-started .gold-seal { opacity: 0; transform: translateY(5px); pointer-events: none; }

.survey-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
.screen {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(26,26,24,.25) transparent;
}
.screen-inner {
  width: min(760px, calc(100% - 64px));
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(52px, 10vh, 108px) 0 54px;
}
.intro-inner, .submitting-inner, .complete-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 54px;
}
.intro-inner { max-width: 700px; }
.intro-inner h2, .question-inner h2, .submitting-inner h2, .complete-inner h2 {
  margin: 0;
  max-width: 730px;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.042em;
}
.intro-inner h2 { font-size: clamp(44px, 5.4vw, 78px); }
.question-inner h2 { font-size: clamp(35px, 4.2vw, 59px); }
.submitting-inner h2, .complete-inner h2 { font-size: clamp(40px, 5vw, 68px); }
.intro-copy {
  max-width: 620px;
  margin: 27px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.72;
}
.study-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 620px;
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.study-facts div { padding: 17px 18px 18px 0; }
.study-facts div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.study-facts strong { display: block; font-family: var(--display); font-size: 21px; font-weight: 500; }
.study-facts span { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.consent-note { max-width: 630px; margin: 20px 0 0; color: #77746c; font-size: 11px; line-height: 1.55; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 31px; }
.primary-button, .continue-button {
  border: 0;
  border-radius: 0;
  background: var(--charcoal);
  color: var(--white);
  cursor: pointer;
  font-weight: 500;
  transition: background 180ms ease, transform 180ms ease;
}
.primary-button { min-height: 52px; padding: 0 21px; font-size: 13px; }
.primary-button span { color: var(--gold-light); margin-left: 26px; }
.primary-button:hover, .continue-button:hover { background: var(--red); transform: translateY(-1px); }
.primary-button:focus-visible, .continue-button:focus-visible, .text-button:focus-visible, .nav-button:focus-visible, .option-button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.text-button { padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--line-strong); cursor: pointer; font-size: 12px; }

.question-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 32px;
  color: #77746c;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.question-meta > span:first-child { color: var(--red); font-weight: 600; }
.meta-rule { width: 34px; height: 1px; background: var(--line-strong); }
.question-kicker:empty, .question-help:empty { display: none; }
.question-help {
  max-width: 630px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}
.answer-zone { margin-top: 33px; max-width: 720px; }
.options-list { display: grid; gap: 9px; }
.options-list.two-columns { grid-template-columns: 1fr 1fr; }
.option-button {
  position: relative;
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 29px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px 11px 11px;
  background: rgba(255,253,248,0.36);
  border: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  color: #32312d;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.option-button:hover { border-color: var(--line-strong); background: rgba(255,253,248,0.7); transform: translateX(2px); }
.option-button.selected { background: var(--mint); border-color: rgba(26,26,24,.55); }
.option-key {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
}
.option-button.selected .option-key { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.option-label { font-size: 13px; line-height: 1.35; }
.option-check { font-size: 15px; color: var(--red); opacity: 0; transform: scale(.7); transition: 150ms ease; }
.option-button.selected .option-check { opacity: 1; transform: scale(1); }
.selection-note { margin: 13px 0 0; color: #77746c; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.text-input, .textarea-input {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  outline: 0;
  transition: border-color 180ms ease;
}
.text-input {
  padding: 13px 0 15px;
  font-family: var(--display);
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.2;
}
.text-input::placeholder, .textarea-input::placeholder { color: rgba(26,26,24,.27); }
.text-input:focus, .textarea-input:focus { border-color: var(--red); }
.textarea-input {
  min-height: 140px;
  resize: vertical;
  padding: 9px 0 14px;
  font-family: var(--display);
  font-size: clamp(23px, 2.5vw, 35px);
  line-height: 1.35;
}
.input-caption { margin: 10px 0 0; color: #77746c; font-size: 10px; }

.scale-wrap { max-width: 720px; }
.scale-grid { display: grid; grid-template-columns: repeat(10, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scale-button {
  aspect-ratio: .78;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(255,253,248,.28);
  cursor: pointer;
  font-family: var(--display);
  font-size: 20px;
  transition: 150ms ease;
}
.scale-button:first-child { border-left: 1px solid var(--line); }
.scale-button:hover { background: var(--gold-light); transform: translateY(-3px); }
.scale-button.selected { color: var(--white); background: var(--charcoal); }
.scale-labels { display: flex; justify-content: space-between; margin-top: 11px; color: #77746c; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }

.concept-card {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 4vw, 44px);
  background: var(--charcoal);
  color: var(--white);
}
.concept-card::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(229,244,202,.25);
  border-radius: 50%;
  right: -120px;
  bottom: -150px;
}
.concept-card .concept-label { color: var(--gold-light); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.concept-card h3 { max-width: 520px; margin: 22px 0 16px; font-family: var(--display); font-weight: 400; font-size: clamp(29px, 3.2vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.concept-card p { max-width: 590px; margin: 0; color: rgba(255,255,255,.67); font-size: 13px; line-height: 1.68; }
.concept-card-inline { margin-bottom: 17px; padding: 17px 21px; }
.concept-card-inline p { margin-top: 10px; font-size: 12px; line-height: 1.52; }
.follow-up-field { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.follow-up-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.follow-up-group { min-width: 0; }
.follow-up-label { display: block; margin-bottom: 2px; color: var(--red); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.follow-up-input { padding-top: 8px; padding-bottom: 9px; font-size: clamp(21px, 2.3vw, 31px); }
.uncertain-choice { display: flex; align-items: center; gap: 7px; margin-top: 5px; color: var(--ink-soft); cursor: pointer; font-size: 10px; line-height: 1.3; }
.uncertain-choice input { width: 14px; height: 14px; margin: 0; accent-color: var(--red); }
.validation-message { min-height: 17px; margin: 15px 0 0; color: var(--red); font-size: 11px; }

.survey-controls {
  min-height: 72px;
  padding: 12px clamp(22px, 4vw, 48px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(244,240,231,.88);
  backdrop-filter: blur(12px);
}
.control-left, .control-right { display: flex; align-items: center; gap: 15px; }
.nav-button {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: 150ms ease;
}
.nav-button:hover { background: var(--white); border-color: var(--line-strong); }
#progress-label, .keyboard-hint { color: #77746c; font-size: 10px; letter-spacing: .06em; }
.continue-button { min-height: 42px; padding: 0 15px; font-size: 12px; }
.continue-button span { margin-left: 15px; color: var(--gold-light); }

.loading-mark { display: flex; gap: 7px; margin-bottom: 28px; }
.loading-mark span { width: 7px; height: 7px; background: var(--red); border-radius: 50%; animation: pulse 1.1s infinite ease-in-out; }
.loading-mark span:nth-child(2) { animation-delay: .14s; }
.loading-mark span:nth-child(3) { animation-delay: .28s; }
@keyframes pulse { 0%, 70%, 100% { opacity: .24; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-5px); } }
.completion-mark {
  width: 48px;
  height: 48px;
  margin-bottom: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint);
  font-family: var(--display);
  font-size: 22px;
}
.response-reference { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: #77746c; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.response-reference strong { color: var(--charcoal); margin-left: 8px; }
.error-card { max-width: 570px; padding: 24px; border: 1px solid rgba(120,37,35,.35); background: rgba(255,253,248,.48); }
.error-card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }

.screen-inner { animation: enter 420ms cubic-bezier(.22,.75,.24,1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .survey-layout { grid-template-columns: 250px 1fr; }
  .rail-copy h1 { font-size: 43px; }
  .screen-inner { width: min(700px, calc(100% - 48px)); }
  .options-list.two-columns { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 721px) and (max-height: 760px) {
  .editorial-rail { padding-top: 28px; padding-bottom: 28px; }
  .rail-copy h1 { font-size: clamp(38px, 4.5vw, 58px); }
  .rail-copy > p:last-child { margin-top: 18px; line-height: 1.5; }
  .screen-inner { padding-top: 28px; padding-bottom: 22px; }
  .intro-inner, .submitting-inner, .complete-inner { padding-top: 24px; padding-bottom: 24px; }
  .intro-inner h2 { font-size: clamp(39px, 4.5vw, 58px); }
  .intro-copy { margin-top: 16px; line-height: 1.55; }
  .study-facts { margin-top: 20px; }
  .study-facts div { padding-top: 11px; padding-bottom: 12px; }
  .consent-note { margin-top: 12px; }
  .intro-actions { margin-top: 18px; }
  .question-meta { margin-bottom: 17px; }
  .question-kicker { margin-bottom: 10px; }
  .question-inner h2 { font-size: clamp(31px, 3.2vw, 44px); line-height: 1.03; }
  .question-help { margin-top: 8px; line-height: 1.4; }
  .answer-zone { margin-top: 18px; }
  .options-list { gap: 6px; }
  .option-button { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
  .option-key { width: 25px; height: 25px; }
  .dense-options { gap: 4px; }
  .dense-options .option-button { min-height: 32px; padding: 3px 10px 3px 8px; gap: 9px; }
  .dense-options .option-key { width: 22px; height: 22px; }
  .dense-options .option-label { font-size: 12px; }
  .dense-options + .selection-note { margin-top: 7px; }
  .textarea-input { min-height: 96px; font-size: clamp(21px, 2.1vw, 29px); }
  .text-input { font-size: clamp(25px, 2.6vw, 34px); }
  .concept-card { padding: 25px 30px; }
  .concept-card h3 { margin-top: 13px; margin-bottom: 10px; font-size: clamp(27px, 2.8vw, 38px); }
  .concept-card-inline { margin-bottom: 10px; padding: 12px 16px; }
  .concept-card-inline p { margin-top: 7px; line-height: 1.42; }
  .concept-card-inline + .textarea-input { min-height: 72px; }
  .follow-up-field { margin-top: 6px; padding-top: 5px; }
  .follow-up-grid { gap: 12px; }
  .follow-up-input { font-size: 23px; }
  .uncertain-choice { margin-top: 3px; }
  .compact-question .screen-inner { padding-top: 12px; padding-bottom: 8px; }
  .compact-question .question-meta { margin-bottom: 6px; }
  .compact-question .question-kicker { margin-bottom: 4px; }
  .compact-question .question-inner h2 { font-size: 28px; }
  .compact-question .answer-zone { margin-top: 8px; }
  .survey-controls { min-height: 58px; padding-top: 8px; padding-bottom: 8px; }
}
@media (min-width: 721px) and (max-height: 620px) {
  .editorial-rail { padding-top: 20px; padding-bottom: 20px; }
  .rail-copy h1 { font-size: 40px; }
  .rail-copy > p:last-child { display: none; }
  .screen-inner { padding-top: 18px; padding-bottom: 14px; }
  .question-meta { margin-bottom: 10px; }
  .question-kicker { margin-bottom: 7px; }
  .question-inner h2 { font-size: 31px; }
  .answer-zone { margin-top: 12px; }
  .option-button { min-height: 36px; }
  .study-facts { margin-top: 14px; }
  .intro-copy { margin-top: 10px; }
  .intro-actions { margin-top: 12px; }
}
@media (max-width: 720px) {
  .page-shell { grid-template-rows: 65px 2px 1fr; }
  .masthead { padding: 0 20px; }
  .study-label { font-size: 9px; }
  .survey-layout { display: block; }
  .editorial-rail { display: none; }
  .survey-panel { min-height: 0; height: 100%; }
  .screen-inner { width: calc(100% - 40px); padding: 48px 0 40px; }
  .intro-inner { justify-content: flex-start; }
  .intro-inner h2 { font-size: 44px; }
  .question-inner h2 { font-size: 36px; }
  .study-facts { grid-template-columns: 1fr; }
  .study-facts div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .study-facts div { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; }
  .study-facts span { display: inline; }
  .options-list.two-columns { grid-template-columns: 1fr; }
  .follow-up-grid { grid-template-columns: 1fr; gap: 12px; }
  .option-button { min-height: 49px; }
  .scale-grid { grid-template-columns: repeat(5, 1fr); border-bottom: 0; }
  .scale-button { aspect-ratio: 1.1; border-bottom: 1px solid var(--line); }
  .scale-button:nth-child(6) { border-left: 1px solid var(--line); }
  .survey-controls { min-height: 66px; padding: 10px 14px; }
  .keyboard-hint, #progress-label { display: none; }
  .control-right { margin-left: auto; }
}
@media (max-width: 420px) {
  .wordmark-one { display: none; }
  .study-label { letter-spacing: .08em; }
  .screen-inner { width: calc(100% - 32px); }
  .intro-inner h2 { font-size: 39px; }
  .question-inner h2 { font-size: 32px; }
  .intro-copy { font-size: 14px; }
  .primary-button { width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .intro-actions { display: block; }
  .text-button { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
