:root {
  --black: #020202;
  --surface: #050505;
  --text: #b6b3aa;
  --text-soft: #7e7b73;
  --text-dim: #63635e;
  --line: #24231f;
  --focus: #918b7d;
  --field: #0a0a09;
  --control-radius: 14px;
  --visual-viewport-height: 100dvh;
  --visual-viewport-top: 0px;
  --field-lift: 0px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  background: var(--black);
  overflow: hidden;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #070706 0, var(--black) 44rem);
  color: var(--text);
  font-family:
    "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-align: center;
  text-rendering: geometricPrecision;
}

body.is-blank {
  background: #000;
}

html[data-active-stage="explore"],
body[data-active-stage="explore"] {
  overflow-y: auto;
}

html[data-active-stage="current-menu"],
body[data-active-stage="current-menu"] {
  overflow-y: auto;
}

body[data-active-stage="explore"],
body[data-active-stage="current-menu"] {
  height: auto;
  min-height: 100%;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 28px 28px;
  mix-blend-mode: screen;
  opacity: 0.13;
}

body.is-blank::before,
body.is-questioning .site-footer,
body.is-blank .topbar,
body.is-blank .site-footer {
  opacity: 0;
  visibility: hidden;
}

button,
input,
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button,
a {
  outline: 0;
}

button:focus,
a:focus,
button:active,
a:active {
  outline: 0;
  box-shadow: none;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  padding: clamp(18px, 3vw, 34px);
  pointer-events: none;
}

.menu-button {
  display: grid;
  width: 34px;
  height: 30px;
  align-content: center;
  gap: 5px;
  border: 0;
  border-radius: 10px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  background: #5a574f;
  transform-origin: center;
  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.menu-button:hover span,
.menu-button:focus-visible span {
  background: #7b7569;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(34deg);
}

.menu-button.is-open span:nth-child(2) {
  transform: scaleX(0);
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-34deg);
}

.menu-panel {
  display: grid;
  min-width: 122px;
  gap: 12px;
  margin-top: 18px;
  padding: 2px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.menu-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel a {
  color: #4f4d46;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-align: right;
  text-decoration: none;
  text-transform: lowercase;
  transition: color 180ms ease;
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  color: #7b7569;
}

.menu-button:focus-visible,
.invitation-button:focus-visible,
.start-button:focus-visible,
.question-choice:focus-visible,
.submit-button:focus-visible,
.reservation-action:focus-visible,
.menu-current-link:focus-visible,
.menu-panel a:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 6px;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  height: var(--visual-viewport-height);
  min-height: var(--visual-viewport-height);
  overflow: hidden;
  place-items: center;
  padding: 88px clamp(18px, 5vw, 64px);
  transform: translateY(0);
  transition:
    padding 220ms ease,
    transform 220ms ease;
}

.experience {
  position: relative;
  display: grid;
  width: min(100%, 1040px);
  min-height: min(680px, calc(var(--visual-viewport-height) - 176px));
  place-items: center;
}

body.is-field-focused .app-shell {
  height: var(--visual-viewport-height);
  min-height: var(--visual-viewport-height);
  padding: clamp(28px, 6dvh, 58px) clamp(18px, 5vw, 64px) clamp(20px, 4dvh, 38px);
  transform: translateY(var(--visual-viewport-top));
}

body[data-active-stage="explore"] .app-shell {
  height: auto;
  min-height: var(--visual-viewport-height);
  overflow: visible;
  place-items: start center;
  padding-top: clamp(96px, 15dvh, 132px);
  padding-bottom: clamp(94px, 14dvh, 132px);
}

body[data-active-stage="current-menu"] .app-shell {
  height: auto;
  min-height: var(--visual-viewport-height);
  overflow: visible;
  place-items: start center;
  padding: clamp(78px, 12dvh, 108px) clamp(18px, 5vw, 64px) clamp(58px, 10dvh, 96px);
  transform: none;
}

body.is-field-focused .experience {
  min-height: min(560px, calc(var(--visual-viewport-height) - clamp(48px, 10dvh, 96px)));
}

body[data-active-stage="explore"] .experience {
  min-height: 0;
}

body[data-active-stage="current-menu"] .experience {
  min-height: 0;
}

.stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0 auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 900ms ease,
    transform 900ms ease,
    visibility 0s linear 900ms;
}

.stage.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 1100ms ease,
    transform 1100ms ease,
    visibility 0s;
}

body.is-field-focused .stage.is-active {
  align-content: center;
}

body.is-field-focused .stage.is-active:not(.questionnaire) {
  transform: translateY(var(--field-lift));
}

body.is-field-focused.is-chef-note-open .stage.is-active.completed-home-panel,
body.is-field-focused[data-active-stage="contact"] .stage.is-active.contact-panel {
  transform: translateY(var(--visual-viewport-top));
}

.stage-blank {
  background: var(--black);
}

.welcome-lockup,
.invitation-button,
.about-copy,
.menu-copy,
.current-menu-copy,
.questionnaire-intro,
.question-group,
.submit-button,
.form-status {
  justify-self: center;
}

.welcome-lockup {
  display: grid;
  gap: 18px;
  justify-items: center;
}

.welcome-moon-logo {
  display: block;
  width: clamp(34px, 6vw, 48px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(198, 193, 178, 0.88), rgba(168, 163, 149, 0.8) 68%, rgba(118, 113, 101, 0.72) 100%);
  box-shadow:
    inset -3px -4px 10px rgba(0, 0, 0, 0.16),
    0 0 16px rgba(198, 193, 178, 0.025);
  opacity: 0.82;
}

.stage-welcome p {
  margin: 0;
  color: #8b887f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  text-shadow: 0 0 18px rgba(160, 155, 140, 0.08);
}

.stage-invitation {
  align-content: center;
}

.invitation-button {
  display: grid;
  min-width: 156px;
  place-items: center;
  gap: 24px;
  border: 0;
  border-radius: var(--control-radius);
  padding: 20px;
  background: transparent;
  color: #908d84;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.invitation-button > span:last-child {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.orbital-loader {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
}

.orbital-loader span {
  position: absolute;
  display: block;
  border: 1px solid rgba(143, 139, 128, 0.34);
  border-radius: 50%;
  animation: turn 5s linear infinite;
}

.orbital-loader span:nth-child(1) {
  width: 74px;
  height: 74px;
  border-top-color: rgba(195, 190, 174, 0.72);
}

.orbital-loader span:nth-child(2) {
  width: 52px;
  height: 52px;
  border-right-color: rgba(195, 190, 174, 0.55);
  animation-duration: 3.8s;
  animation-direction: reverse;
}

.orbital-loader span:nth-child(3) {
  width: 30px;
  height: 30px;
  border-bottom-color: rgba(195, 190, 174, 0.48);
  animation-duration: 2.6s;
}

@keyframes turn {
  to {
    transform: rotate(1turn);
  }
}

.questionnaire {
  position: absolute;
  align-content: center;
  gap: 20px;
  isolation: isolate;
  width: min(100%, 520px);
}

.confirm-name {
  align-content: center;
  gap: 20px;
  width: min(100%, 520px);
}

.about-panel {
  align-content: center;
  isolation: isolate;
}

.menu-info-panel {
  align-content: center;
  isolation: isolate;
}

.current-menu-panel {
  align-content: center;
  isolation: isolate;
  overflow: visible;
}

body[data-active-stage="current-menu"] .current-menu-panel.is-active {
  position: relative;
  inset: auto;
  min-height: 0;
  transform: none;
}

.explore-panel {
  align-content: center;
}

body[data-active-stage="explore"] .explore-panel.is-active {
  position: relative;
  inset: auto;
  min-height: 0;
}

.background-video-stage.is-active {
  transform: none;
}

.background-video-stage > :not(.stage-video-layer) {
  position: relative;
  z-index: 2;
}

.thank-you-panel {
  align-content: center;
}

.completed-home-panel {
  align-content: center;
  isolation: isolate;
}

.cancelled-panel {
  align-content: center;
}

.contact-panel {
  align-content: center;
}

.stage-video-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: #020202;
  contain: paint;
  transform: translateZ(0);
  transition: opacity 900ms ease;
}

.stage-video-layer::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #000;
  opacity: 1;
  pointer-events: none;
  content: "";
  transition: opacity 1400ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
}

.stage-video-layer.is-video-revealed::after {
  opacity: 0;
}

.background-video-stage.is-active .stage-video-layer {
  opacity: 1;
}

.stage-background-video,
.stage-video-poster,
.stage-video-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.stage-background-video {
  z-index: 1;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  filter: saturate(0.7) contrast(1.03) brightness(0.74);
  transform: translateZ(0);
  transition: opacity 720ms ease;
  will-change: opacity;
}

.stage-video-layer.is-video-playing.is-video-revealed .stage-background-video.is-ready {
  opacity: 0.62;
}

.stage-video-poster {
  z-index: 0;
  background:
    linear-gradient(rgba(2, 2, 2, 0.48), rgba(2, 2, 2, 0.66)),
    url("assets/dinner-hero.png") center / cover;
  filter: saturate(0.44) contrast(1.04) brightness(0.34);
  opacity: 0.24;
  transform: translateZ(0);
  transition: opacity 720ms ease;
}

.stage-video-layer.is-video-playing .stage-video-poster {
  opacity: 0;
}

.stage-video-scrim {
  z-index: 2;
  background:
    radial-gradient(circle at 50% 42%, rgba(3, 3, 3, 0.18), rgba(3, 3, 3, 0.62) 74%),
    linear-gradient(rgba(2, 2, 2, 0.24), rgba(2, 2, 2, 0.44));
}

#ambient-scene-root {
  position: fixed;
  top: clamp(24px, 5dvh, 50px);
  left: 50%;
  z-index: 9;
  width: clamp(42px, 7vw, 56px);
  height: clamp(42px, 7vw, 56px);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  transition:
    opacity 620ms ease,
    transform 620ms ease,
    visibility 0s linear 620ms;
  visibility: hidden;
}

#ambient-scene-root.is-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 720ms ease,
    transform 720ms ease,
    visibility 0s;
  visibility: visible;
}

#ambient-scene-root canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 11px rgba(217, 207, 175, 0.06));
}

.about-copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 600px);
  max-height: calc(var(--visual-viewport-height) - 184px);
  gap: 18px;
  overflow-y: auto;
  padding: 10px 4px;
  scrollbar-width: thin;
  scrollbar-color: #26241f transparent;
}

.thank-you-copy,
.completed-home-copy,
.cancelled-copy,
.contact-copy,
.menu-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(100%, 520px);
}

.completed-home-copy {
  z-index: 2;
  max-height: calc(var(--visual-viewport-height) - 184px);
  overflow-y: auto;
  padding: 10px 4px;
  scrollbar-width: thin;
  scrollbar-color: #26241f transparent;
}

.contact-copy {
  width: min(100%, 470px);
  overflow: visible;
  padding: 0 4px;
}

.confirm-name-copy {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-bottom: 8px;
}

.questionnaire-intro {
  position: relative;
  z-index: 2;
  display: grid;
  grid-area: 1 / 1;
  gap: 14px;
  justify-items: center;
  margin-bottom: 0;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 620ms ease,
    transform 620ms ease,
    visibility 0s;
}

.questionnaire.is-questioning .questionnaire-intro {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  visibility: hidden;
  transition:
    opacity 520ms ease,
    transform 520ms ease,
    visibility 0s linear 520ms;
}

.questionnaire-intro > * {
  opacity: 0;
  transform: translateY(12px);
}

.stage.is-active .questionnaire-intro > * {
  animation: introFade 900ms ease forwards;
}

.stage.is-active .questionnaire-intro > *:nth-child(1) {
  animation-delay: 180ms;
}

.stage.is-active .questionnaire-intro > *:nth-child(2) {
  animation-delay: 360ms;
}

.stage.is-active .questionnaire-intro > *:nth-child(3) {
  animation-delay: 540ms;
}

.stage.is-active .questionnaire-intro > *:nth-child(4) {
  animation-delay: 720ms;
}

.stage.is-active .questionnaire-intro > *:nth-child(5) {
  animation-delay: 940ms;
}

.overline {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0 auto;
  color: #aca89c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.95;
  text-wrap: balance;
}

.questionnaire-intro p:last-of-type,
.thank-you-copy p:not(.overline),
.completed-home-copy p:not(.overline),
.cancelled-copy p:not(.overline),
.about-copy p:not(.overline),
.menu-copy p:not(.overline) {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: clamp(0.88rem, 1.8vw, 1rem);
}

.completed-message {
  color: #8b887f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
  line-height: 1.45;
}

.cancelled-copy h1 {
  max-width: 15ch;
  font-size: clamp(2.05rem, 6.4vw, 4.5rem);
}

.dinner-date {
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.invited-welcome {
  margin: 0 auto;
  color: #8b887f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.98rem, 2.2vw, 1.22rem);
}

.start-button {
  min-width: 154px;
  min-height: 46px;
  border: 1px solid rgba(172, 168, 156, 0.56);
  border-radius: var(--control-radius);
  background: #aca89c;
  color: #050505;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.start-button:hover,
.start-button:focus-visible {
  background: #c4c0b5;
  border-color: rgba(196, 192, 181, 0.78);
  transform: translateY(-1px);
}

.questionnaire-flow {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  height: var(--visual-viewport-height);
  min-height: var(--visual-viewport-height);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(12px, 2.2dvh, 20px);
  align-items: stretch;
  justify-items: center;
  padding: clamp(54px, 9dvh, 86px) clamp(18px, 5vw, 64px) clamp(24px, 4dvh, 34px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 520ms ease,
    visibility 0s linear 520ms;
}

body.is-field-focused .questionnaire-flow {
  grid-template-rows: minmax(0, 1fr) auto;
  padding: clamp(18px, 5dvh, 52px) clamp(18px, 5vw, 64px) clamp(12px, 3dvh, 24px);
  transform: translateY(var(--visual-viewport-top));
}

.questionnaire.is-questioning .questionnaire-flow {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 700ms ease,
    visibility 0s;
}

.question-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: center;
  width: min(100%, 680px);
  gap: clamp(14px, 2.5dvh, 24px);
  justify-items: center;
  overflow: visible;
  padding: 0;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

body.is-field-focused .question-card {
  transform: translateY(var(--field-lift));
}

body.is-field-focused .question-card[data-question="phoneNumber"] {
  gap: clamp(8px, 1.5dvh, 14px);
}

.questionnaire-flow.is-clearing .question-card {
  opacity: 0;
  transform: translateY(calc(var(--field-lift) - 14px));
}

.question-wipe {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 620ms ease;
}

.questionnaire-flow.is-clearing .question-wipe {
  opacity: 1;
}

.flow-part {
  opacity: 0;
  filter: blur(3px);
  pointer-events: none;
  transform: translateY(18px);
}

.flow-part.is-visible {
  animation: questionFade 1040ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
  pointer-events: auto;
}

.flow-part.interlude-prompt.is-visible {
  animation: questionFade 1500ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0ms);
}

.question-card h2 {
  max-width: 13ch;
  margin: 0;
  color: #aca89c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 8dvh, 5.1rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  text-wrap: balance;
}

.question-card[data-question="phoneNumber"] h2,
.question-card[data-question="meaningfulMeal"] h2,
.question-card[data-question="duplicatePhone"] h2 {
  max-width: min(22ch, 100%);
  font-size: clamp(1.55rem, 5.7dvh, 3.55rem);
  line-height: 1.04;
}

body.is-field-focused .question-card[data-question="phoneNumber"] h2 {
  max-width: min(24ch, 100%);
  font-size: clamp(1.18rem, 4dvh, 2.15rem);
}

.question-card .secondary-prompt {
  max-width: 16ch;
  color: #837f76;
  font-size: clamp(1.1rem, 3.6dvh, 2.2rem);
  line-height: 1.05;
}

.question-card .interlude-prompt {
  max-width: min(28ch, 100%);
  color: #aca89c;
  font-size: clamp(1.15rem, 3.4dvh, 2.15rem);
}

.question-choice-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.question-choice {
  min-width: 132px;
  min-height: 46px;
  border: 1px solid #302f2a;
  border-radius: var(--control-radius);
  background: #0c0c0a;
  color: #807d75;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.question-choice:hover,
.question-choice:focus-visible {
  border-color: #555146;
  background: #11110f;
  color: #aaa69a;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.035);
  transform: translateY(-1px);
}

.question-choice[data-tone="dark"] {
  border-color: #3f3d37;
  background: #24231f;
  color: #f2f0e8;
}

.question-choice[data-tone="dark"]:hover,
.question-choice[data-tone="dark"]:focus-visible {
  border-color: #666157;
  background: #2f2d28;
  color: #ffffff;
}

.question-choice[data-tone="light"] {
  border-color: #e2ded2;
  background: #f2efe6;
  color: #151411;
}

.question-choice[data-tone="light"]:hover,
.question-choice[data-tone="light"]:focus-visible {
  border-color: #fffaf0;
  background: #ffffff;
  color: #050505;
}

.entry-response {
  display: grid;
  justify-items: center;
  width: min(100%, 520px);
}

.question-entry-field {
  width: min(100%, 520px);
  min-height: 44px;
  font-family:
    "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(1rem, 2vw, 1.08rem);
  line-height: 1.45;
}

textarea.question-entry-field {
  max-height: min(34dvh, 280px);
  overflow-y: auto;
}

.question-entry-field[type="tel"],
input[type="tel"] {
  background: var(--black);
  color: var(--text);
  color-scheme: dark;
  -webkit-text-fill-color: var(--text);
}

.question-entry-field[type="tel"]:-webkit-autofill,
input[type="tel"]:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--black) inset;
  caret-color: var(--text);
  -webkit-text-fill-color: var(--text);
}

.entry-message {
  min-height: 20px;
  margin: 8px 0 0;
  color: #777266;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.duplicate-card {
  display: grid;
  width: min(100%, 520px);
  gap: 18px;
  justify-items: center;
}

.question-card .duplicate-card h2 {
  max-width: 18ch;
  color: #aaa69a;
  font-size: clamp(1.45rem, 4.8dvh, 2.7rem);
  line-height: 1.05;
}

.duplicate-card p {
  max-width: 38ch;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(0.86rem, 1.7vw, 0.98rem);
}

.concierge-form {
  display: grid;
  width: min(100%, 430px);
  gap: clamp(9px, 1.8dvh, 14px);
  justify-items: center;
  padding-top: 4px;
}

.concierge-status {
  min-height: 20px;
  margin: 0;
  color: #6f6a60;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.reservation-action:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
}

.question-progress {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: end;
  width: min(100%, 280px);
  gap: 9px;
  justify-items: center;
  --question-progress: 0;
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.question-progress-track {
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(172, 168, 156, 0.24);
}

.question-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(246, 243, 235, 0.92);
  transform: scaleX(var(--question-progress));
  transform-origin: left center;
  transition: transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.question-counter {
  margin: 0;
  color: var(--text-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

body.is-field-focused .question-progress {
  width: min(100%, 220px);
  gap: 7px;
  opacity: 0.78;
}

body.is-field-focused .question-counter {
  font-size: 0.66rem;
}

.questionnaire-flow.is-clearing .question-progress {
  opacity: 0;
  transform: translateY(8px);
}

@keyframes questionFade {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.about-copy p:not(.overline) {
  max-width: 58ch;
}

.menu-copy {
  width: min(100%, 560px);
}

.menu-copy h1 {
  max-width: 8ch;
}

.menu-copy p:not(.overline) {
  max-width: 48ch;
}

.menu-current-link {
  display: inline-flex;
  margin-top: 6px;
  border-bottom: 1px solid rgba(126, 123, 115, 0.42);
  color: #8b887f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-decoration: none;
  text-transform: lowercase;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.menu-current-link:hover,
.menu-current-link:focus-visible {
  border-color: rgba(172, 168, 156, 0.72);
  color: #aca89c;
}

.current-menu-copy {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 420px);
  gap: 10px;
  justify-items: center;
  padding-inline: 2px;
}

.current-menu-copy h1 {
  max-width: 10ch;
  font-size: clamp(2.25rem, 14vw, 4.45rem);
}

.current-menu-date {
  margin: 0;
  color: #77736a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.9rem, 2.5vw, 1.08rem);
  letter-spacing: 0.1em;
}

.current-course-list {
  display: grid;
  width: min(100%, 380px);
  gap: 14px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.current-course-list li {
  display: grid;
  gap: 3px;
  justify-items: center;
  color: #a8a397;
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}

.course-number {
  color: #47443d;
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
}

.course-title {
  color: #ada99d;
  font-size: clamp(0.96rem, 4.4vw, 1.12rem);
  line-height: 1.12;
}

.course-description {
  max-width: 34ch;
  color: #77736a;
  font-family:
    "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(0.68rem, 3.25vw, 0.78rem);
  letter-spacing: 0.02em;
  line-height: 1.32;
}

.biome-list {
  display: grid;
  width: min(100%, 720px);
  gap: 18px;
  overflow: visible;
  padding: 0 4px;
}

.explore-heading,
.biome-item {
  opacity: 0;
  transform: translateY(12px);
}

.stage.is-active .explore-heading,
.stage.is-active .biome-item {
  animation: biomeFade 900ms ease forwards;
}

.stage.is-active .explore-heading {
  animation-delay: 160ms;
}

.stage.is-active .biome-item:nth-of-type(1) {
  animation-delay: 620ms;
}

.stage.is-active .biome-item:nth-of-type(2) {
  animation-delay: 940ms;
}

.stage.is-active .biome-item:nth-of-type(3) {
  animation-delay: 1260ms;
}

.stage.is-active .biome-item:nth-of-type(4) {
  animation-delay: 1580ms;
}

.explore-heading {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-bottom: 4px;
}

.biome-item {
  display: grid;
  gap: 9px;
  justify-items: center;
  padding: 17px 0;
  border-top: 1px solid rgba(47, 45, 39, 0.48);
}

.biome-item:last-child {
  border-bottom: 1px solid rgba(47, 45, 39, 0.48);
}

.biome-item h2 {
  margin: 0;
  color: #aaa69a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.94;
  text-transform: lowercase;
}

.biome-item p {
  max-width: 58ch;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(0.86rem, 1.7vw, 0.98rem);
}

.biome-item p:last-child {
  color: #69665e;
}

.biome-item span {
  color: #393832;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes biomeFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-group {
  display: grid;
  width: min(100%, 390px);
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

label,
legend {
  display: block;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid #393731;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  caret-color: var(--text);
  outline: 0;
  box-shadow: none;
  text-align: center;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

input {
  min-height: 44px;
  padding: 0 4px 10px;
}

textarea {
  min-height: 44px;
  overflow: hidden;
  padding: 0 4px 10px;
  resize: none;
}

input:hover,
textarea:hover,
input:focus,
textarea:focus,
input:focus-visible,
textarea:focus-visible {
  border-bottom-color: #6b665b;
  outline: 0;
  box-shadow: none;
}

textarea::placeholder {
  color: #393832;
}

input:disabled,
textarea:disabled {
  cursor: default;
  opacity: 0.72;
  color: #6f6a60;
  -webkit-text-fill-color: #6f6a60;
}

.choice-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-group legend {
  grid-column: 1 / -1;
}

.choice-group label {
  position: relative;
}

.choice-group input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.choice-group span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  background: var(--field);
  color: #615f59;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.choice-group input:checked + span {
  border-color: #59554b;
  background: #11110f;
  color: #aaa69a;
}

.submit-button {
  min-width: 138px;
  min-height: 44px;
  border: 1px solid #302f2a;
  border-radius: var(--control-radius);
  background: #0c0c0a;
  color: #807d75;
  cursor: pointer;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  border-color: #555146;
  background: #11110f;
  color: #aaa69a;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #747068;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
}

.reservation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(100%, 500px);
  padding-top: 8px;
}

.reservation-action {
  min-height: 42px;
  border: 1px solid #302f2a;
  border-radius: var(--control-radius);
  padding: 0 16px;
  background: #0c0c0a;
  color: #747068;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.reservation-action:hover,
.reservation-action:focus-visible {
  border-color: #555146;
  background: #11110f;
  color: #aaa69a;
  transform: translateY(-1px);
}

.reservation-action:disabled,
.reservation-action.is-complete,
.reservation-action:disabled:hover,
.reservation-action:disabled:focus-visible {
  border-color: #272622;
  background: #080807;
  color: #5f5b52;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.reservation-action.is-complete {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 400;
  text-transform: lowercase;
}

.chef-note-toggle {
  color: #928c7f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  font-weight: 400;
  text-transform: lowercase;
}

.chef-note-form {
  display: grid;
  width: min(100%, 430px);
  gap: 8px;
  justify-items: center;
  padding-top: 2px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 360ms ease,
    transform 360ms ease;
}

.contact-form {
  display: grid;
  width: min(100%, 390px);
  gap: 10px;
  justify-items: center;
}

.contact-form textarea,
.chef-note-form textarea {
  max-height: min(26dvh, 180px);
  overflow-y: auto;
}

.contact-submit {
  justify-self: center;
  min-width: 132px;
}

.chef-note-form[hidden] {
  display: none;
}

.chef-note-form.is-sent {
  opacity: 0.88;
}

.contact-form.is-sent {
  opacity: 0.88;
  min-height: 112px;
  place-content: center;
}

.contact-form.is-sent label,
.contact-form.is-sent textarea,
.contact-form.is-sent button {
  max-height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.chef-note-form.is-closing {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.chef-note-form.is-sent textarea {
  border-bottom-color: #302f2a;
}

.chef-note-submit {
  justify-self: center;
  min-width: 128px;
  margin-top: 2px;
}

.note-status {
  min-height: 20px;
  margin: 0;
  color: #6f6a60;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

.contact-status {
  min-height: 20px;
  margin: 0;
  color: #6f6a60;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
}

body.is-field-focused.is-chef-note-open .completed-home-copy,
body.is-field-focused[data-active-stage="contact"] .contact-copy {
  max-height: calc(var(--visual-viewport-height) - clamp(28px, 7dvh, 56px));
  gap: clamp(8px, 1.6dvh, 12px);
  overflow: visible;
}

body.is-field-focused.is-chef-note-open .completed-home-copy > .overline,
body.is-field-focused.is-chef-note-open .completed-home-copy > h1,
body.is-field-focused.is-chef-note-open .completed-home-copy > .completed-message,
body.is-field-focused.is-chef-note-open .completed-home-copy > .dinner-date,
body.is-field-focused.is-chef-note-open .completed-home-copy > .reservation-actions,
body.is-field-focused[data-active-stage="contact"] .contact-copy > .overline,
body.is-field-focused[data-active-stage="contact"] .contact-copy > h1 {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    max-height 240ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

body.is-field-focused.is-chef-note-open .chef-note-form,
body.is-field-focused[data-active-stage="contact"] .contact-form {
  width: min(100%, 360px);
  gap: clamp(8px, 1.5dvh, 12px);
  transform: translateY(var(--field-lift));
}

body.is-field-focused.is-chef-note-open .chef-note-form textarea,
body.is-field-focused[data-active-stage="contact"] .contact-form textarea {
  max-height: min(31dvh, 170px);
}

body.is-field-focused.is-chef-note-open .site-footer,
body.is-field-focused[data-active-stage="contact"] .site-footer,
body[data-active-stage="current-menu"] .site-footer {
  opacity: 0;
  visibility: hidden;
}

body[data-active-stage="explore"] .site-footer {
  position: static;
  display: block;
  padding: 12px 18px 28px;
  opacity: 1;
  visibility: visible;
}

.site-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  padding: 22px;
  color: var(--text-dim);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-align: center;
}

@media (max-width: 520px) {
  .app-shell {
    padding: 82px 18px 76px;
  }

  .experience {
    min-height: calc(var(--visual-viewport-height) - 158px);
  }

  .questionnaire {
    gap: 16px;
  }

  .questionnaire-flow {
    gap: 16px;
    padding: clamp(52px, 8dvh, 82px) 18px 26px;
  }

  body.is-field-focused .questionnaire-flow {
    gap: 10px;
    padding: clamp(12px, 4dvh, 34px) 18px 10px;
  }

  .question-card {
    gap: 20px;
  }

  .question-card h2 {
    max-width: 10ch;
  }

  .question-card[data-question="phoneNumber"] h2,
  .question-card[data-question="meaningfulMeal"] h2,
  .question-card[data-question="duplicatePhone"] h2 {
    max-width: min(22ch, 100%);
  }

  body.is-field-focused .question-card[data-question="phoneNumber"] h2 {
    font-size: clamp(1.05rem, 3.6dvh, 1.7rem);
  }

  .question-card .secondary-prompt {
    max-width: 13ch;
  }

  .question-choice {
    width: min(100%, 220px);
  }

  .completed-home-copy {
    max-height: calc(var(--visual-viewport-height) - 158px);
  }

  body[data-active-stage="explore"] .app-shell {
    padding-top: 92px;
    padding-bottom: 44px;
  }

  body[data-active-stage="current-menu"] .app-shell {
    padding: 78px 18px 58px;
  }

  body[data-active-stage="current-menu"] .experience {
    min-height: 0;
  }

  .current-menu-copy {
    width: min(100%, 360px);
    gap: 10px;
  }

  .current-course-list {
    width: min(100%, 336px);
    gap: 13px;
  }

  .contact-copy {
    width: min(100%, 390px);
    gap: 14px;
  }

  .contact-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.15rem, 13vw, 3.55rem);
  }

  body.is-field-focused.is-chef-note-open .completed-home-copy,
  body.is-field-focused[data-active-stage="contact"] .contact-copy {
    max-height: calc(var(--visual-viewport-height) - 30px);
  }

  body.is-field-focused.is-chef-note-open .chef-note-form,
  body.is-field-focused[data-active-stage="contact"] .contact-form {
    width: min(100%, 340px);
  }

  body.is-field-focused.is-chef-note-open .chef-note-form textarea,
  body.is-field-focused[data-active-stage="contact"] .contact-form textarea {
    max-height: min(30dvh, 150px);
  }

  .reservation-action {
    width: min(100%, 260px);
  }

  .biome-list {
    gap: 12px;
    width: min(100%, 390px);
  }

  .biome-item {
    gap: 8px;
    padding: 14px 0;
  }

  .choice-group {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 9ch;
  }
}

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

  #ambient-scene-root {
    transition-duration: 1ms !important;
  }
}
