/* A quiet red room for real-life connections. */
:root { --wine: #811e29; --ivory: #faefd9; --red: var(--wine); --premium-red: linear-gradient(135deg, #a53740 0%, #811e29 58%, #681622 100%); }
body { background: var(--cream); }
body.landing-active { color: var(--ivory); background: radial-gradient(ellipse at 50% 35%, #9d3039 0%, #811e29 58%, #6b1722 100%); }
.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(100%, 1600px); height: 108px; margin: auto; padding: 22px clamp(24px, 4vw, 64px); color: var(--wine); }
.landing-active .site-header { color: var(--ivory); }
.site-brand { display: flex; align-items: center; gap: 18px; }
.site-wordmark { font: 34px/1 'Righteous', var(--sans); letter-spacing: .01em; text-decoration: none; }
.site-wordmark span { display: block; margin-top: 9px; font: 500 8px/1.2 var(--sans); letter-spacing: .27em; }
.site-contact { display: inline-flex; align-items: center; gap: 13px; padding: 11px 17px; border: 1px solid currentColor; border-radius: 30px; font-size: 12px; text-decoration: none; }
.site-contact svg, .site-back svg { display: block; width: 19px; height: 19px; }
.site-back { display: grid; place-items: center; width: 38px; height: 38px; padding: 9px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--wine); }
.site-back[hidden] { display: none; }
.site-contact:hover { background: #ffffff0d; }
.landing-active button:focus-visible, .landing-active a:focus-visible { outline-color: var(--ivory); }
.progress-track { margin: 0; }
.question-page { min-height: calc(100svh - 172px); }

.landing-page { position: relative; isolation: isolate; width: 100%; max-width: none; min-height: calc(100svh - 166px); margin: 0; padding: 34px 24px 26px; display: flex; align-items: center; justify-content: center; overflow: clip; color: var(--ivory); }
.landing-page .landing-hero { display: block; width: 100%; min-height: 0; }
.landing-page .landing-copy { position: relative; width: 100%; max-width: 1380px; margin: auto; padding: 0; text-align: center; }
.landing-eyebrow { margin: 0 0 28px; font: 500 9px/1.6 var(--sans); letter-spacing: .22em; color: #eed8bf; }
.landing-copy .kinetic-headline {
  --headline-gap: .22em;
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: var(--headline-gap); max-width: none; margin: 0 auto; color: var(--ivory);
  font: 500 clamp(31.2px, 3.51vw, 52px)/1.12 var(--sans); letter-spacing: -.035em;
}
.headline-line { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: var(--headline-gap); white-space: nowrap; }
.headline-fixed { display: block; flex: none; white-space: nowrap; }
.word-reel { display: block; flex: none; width: max-content; height: 1.22em; overflow: hidden; color: #ffe0b4; font: italic 600 1.28em/1.22 var(--serif); letter-spacing: -.025em; }
.city-option { display: inline-flex; align-items: center; gap: .16em; }
.city-flag { flex: 0 0 .55em; width: .55em; height: .37em; overflow: hidden; border-radius: 2px; }
.word-reel-track { display: flex; flex-direction: column; align-items: flex-start; width: max-content; }
.word-reel-track > span { display: flex; align-items: center; flex: 0 0 1.22em; width: max-content; height: 1.22em; padding-inline: .06em; white-space: nowrap; }
.landing-page:not([data-headline-ready]) .word-reel-track > span:not(:first-child) { display: none; }
.landing-subheadline { margin: 15px auto 0; max-width: 36ch; color: #f1dcc4; font: 400 clamp(15px, 1.4vw, 19px)/1.6 var(--sans); text-wrap: balance; }

/* Keep the original composition in normal flow; trails use separate source photos. */
.landing-page .landing-collage { position: relative; width: min(100%, 600px); height: auto; margin: 22px auto 0; pointer-events: none; }
.landing-page .landing-collage > img { position: static; display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; transform: none; filter: drop-shadow(0 10px 15px #300d192b); }
.trail-sources[hidden] { display: none; }

.landing-page .landing-cta {
  position: relative; z-index: 12; display: flex; justify-content: center; align-items: center; gap: 18px;
  width: fit-content; max-width: 100%; min-width: 0; min-height: 58px; margin: 24px auto 0; padding: 12px 19px 12px 28px;
  border: 1px solid #fff6e5; border-radius: 999px; background: linear-gradient(140deg, #fff6e5, #f1dfbd);
  color: #751d27; box-shadow: 0 4px 18px #300a151f; font: 600 15px/1.3 var(--sans); letter-spacing: -.02em;
  transition: transform .22s ease, box-shadow .22s ease;
}
.landing-cta .cta-label { min-width: 0; }
.landing-cta .cta-arrow { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid #811e2935; border-radius: 50%; transition: transform .25s ease; }
.landing-cta .cta-arrow svg { display: block; width: 18px; height: 18px; }
@media (hover: hover) {
  .landing-page .landing-cta:hover { background: #fff6e5; transform: translateY(-2px); box-shadow: 0 9px 24px #300a1533; }
  .landing-cta:hover .cta-arrow { transform: rotate(45deg); }
}
.landing-page .landing-cta:active { transform: translateY(0); }
.landing-cursor-hint { display: none; position: relative; z-index: 12; pointer-events: none; margin: 17px 0 0; color: #e2bbae; font-size: 10px; letter-spacing: .06em; }

.photo-trail { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.trail-photo { position: absolute; display: block; width: clamp(170px, 19vw, 265px); height: auto; pointer-events: none; user-select: none; filter: drop-shadow(0 10px 16px #300a153d); animation: photo-memory 1.8s cubic-bezier(.2, .65, .3, 1) both; }
@keyframes photo-memory {
  0% { opacity: 0; transform: translate(-50%, -45%) rotate(var(--rotation)) scale(.78); }
  16%, 62% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rotation)) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -57%) rotate(var(--rotation)) scale(.96); }
}
.landing-motion-toggle { position: absolute; z-index: 12; top: -8px; right: 0; display: grid; place-items: center; width: 32px; height: 32px; padding: 8px; border: 1px solid #faefd947; border-radius: 50%; background: transparent; color: var(--ivory); }
.landing-motion-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.landing-motion-toggle[hidden], .landing-motion-toggle .motion-play-icon { display: none; }
.landing-page[data-motion-paused="true"] .motion-pause-icon { display: none; }
.landing-page[data-motion-paused="true"] .motion-play-icon { display: block; }
.landing-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-footer { max-width: none; width: calc(100% - 80px); min-height: 58px; align-items: center; margin: 0 auto; padding: 16px 0; border-color: var(--line); }
.landing-active .site-footer { border-color: #faefd926; color: #e2bbae; }

@media (min-width: 901px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .landing-page[data-trail-ready="true"] .landing-cursor-hint { display: block; }
}
@media (max-width: 900px) {
  .landing-copy .kinetic-headline { flex-direction: column; font-size: clamp(24.7px, 6.63vw, 44.2px); gap: .04em; }
  .landing-eyebrow { font-size: 8px; letter-spacing: .15em; margin-bottom: 22px; }
  .landing-page { padding-top: 24px; }
  .landing-page .landing-collage { width: min(100%, 520px); }
}
@media (max-width: 600px) {
  .site-header { height: 91px; padding: 20px; gap: 10px; }
  .site-wordmark { font-size: 28px; }
  .site-wordmark span { font-size: 7px; letter-spacing: .18em; margin-top: 7px; }
  .site-contact { gap: 6px; font-size: 10px; padding: 10px 12px; }
  .site-contact svg { width: 15px; height: 15px; }
  .site-brand { gap: 10px; }
  .site-back { width: 32px; height: 32px; padding: 6px; }
  body:not(.landing-active) .site-contact { display: none; }
  .landing-page { min-height: calc(100svh - 151px); padding: 18px 18px 28px; }
  .landing-subheadline { font-size: 15px; max-width: 28ch; margin-top: 13px; }
  .landing-page .landing-collage { height: auto; margin-top: 25px; margin-bottom: 0; }
  .landing-page .landing-cta { font-size: 14px; padding: 11px 15px 11px 22px; gap: 14px; min-height: 56px; margin-top: 20px; }
  .landing-motion-toggle { width: 26px; height: 26px; padding: 6px; top: -25px; right: 0; }
  .site-footer { width: calc(100% - 40px); min-height: 60px; gap: 7px; justify-content: center; padding: 13px 0; font-size: 7px; }
  .question-page { min-height: calc(100svh - 154px); }
}
@media (max-width: 360px) {
  .landing-copy .kinetic-headline { font-size: 6.63vw; --headline-gap: .16em; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .landing-page .landing-collage { animation: collage-arrival 1.15s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes collage-arrival {
  from { opacity: 0; transform: translateY(-28px) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
.landing-page[data-motion-paused="true"] .landing-collage { animation-play-state: paused; }

/* One shared wine-red system throughout the questionnaire. */
#main .question-head h1, #main .success-page h1 { color: var(--wine); }
#main .continue {
  background: var(--premium-red); color: var(--ivory);
  border: 1px solid #ffffff26; box-shadow: inset 0 1px 0 #ffffff26, 0 5px 14px #68162217;
  transition: transform .2s ease, box-shadow .2s ease;
}
#main .continue:hover { background: var(--premium-red); transform: translateY(-1px); box-shadow: inset 0 1px 0 #ffffff26, 0 8px 20px #68162226; }
#main .continue:active { transform: translateY(0); }
.button-arrow { width: 22px; height: 22px; flex: none; }
#main .option { transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease; }
#main .option::after {
  content: ''; width: 20px; height: 20px; flex: 0 0 20px; box-sizing: border-box;
  border: 1px solid #c9bbab; border-radius: 50%; background: transparent;
  box-shadow: inset 0 1px 2px #382c2608; transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
#main .multi .option::after { border-radius: 6px; }
#main .option[aria-pressed="true"] { border-color: var(--wine); background: #f4e8df; box-shadow: 0 3px 12px #811e290b; }
#main .option[aria-pressed="true"]::after {
  content: ''; border-color: #811e29;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23faefd9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"), var(--premium-red);
  background-size: 16px 16px, 100% 100%; background-repeat: no-repeat; background-position: center;
  box-shadow: inset 0 1px 0 #ffffff26, 0 2px 5px #811e2926;
}
.phone-composite { grid-template-columns: minmax(200px, 1fr) minmax(0, 1.05fr); }
.phone-composite select { width: 100%; min-width: 0; padding-right: 34px; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .phone-composite { grid-template-columns: minmax(0, 1fr); }
  .phone-composite select { border-right: 0; border-bottom: 1px solid #d9ccbc; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-trail, .landing-motion-toggle { display: none; }
  .landing-page .landing-cta, .landing-cta .cta-arrow { transition: none; }
  .landing-page .landing-cta:hover, .landing-cta:hover .cta-arrow { transform: none; }
  #main .continue, #main .option, #main .option::after { transition: none; }
  #main .continue:hover { transform: none; }
}
