/* ═══════════════════════════════════════════════════════════════════════════
   CHOOSER — Choose Your Experience (v2)
   A standalone landing that presents two routes into the archive:
     · Cinematic — deep ink, moving scene
     · Basic     — warm paper, editorial grid

   Design goals (v2):
     · Single visual system that scales from 320px to 4K without breaking.
     · No fixed minimum heights — content dictates rhythm so phones never
       get awkward whitespace and desktops never get cramped cards.
     · Clamp()-based typography & spacing throughout for fluid response.
     · Equal-weight doors that feel like deliberate, mirrored choices.
     · One clear CTA per door; every other element is passive supporting type.
═══════════════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--ink-deep, #0a0908);
  color: var(--limestone, #e8e2d6);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
body.chooser-body { overflow-x: hidden; }
a       { color: inherit; text-decoration: none; }
button  { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul      { list-style: none; }
img     { display: block; max-width: 100%; }

/* ── Sky / atmosphere ─────────────────────────────────────────────────── */
.cho-sky {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cho-sky-mesh {
  position: absolute; inset: -8%;
  background:
    radial-gradient(ellipse 55% 45% at 22% 30%, rgba(176,141,87,0.22) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 78% 72%, rgba(45,74,62,0.30)  0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(196,167,108,0.06) 0%, transparent 70%),
    linear-gradient(135deg, #0c0a08 0%, #0a0806 60%, #08060500 100%);
  animation: choSkyDrift 34s ease-in-out infinite alternate;
  filter: saturate(0.95);
}
@keyframes choSkyDrift {
  0%   { transform: scale(1)    translate3d(0,0,0); }
  100% { transform: scale(1.08) translate3d(1.2%, -0.8%, 0); }
}
.cho-sky-grain {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  opacity: 0.55;
}
.cho-sky-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(5,4,3,0.8) 100%);
}

/* ══════════════════════════════════════════════════════════════════════
   MAIN
══════════════════════════════════════════════════════════════════════ */
.cho {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  /* top padding clears the fixed nav; balanced with bottom for centering feel */
  padding:
    clamp(96px, 12vh, 160px)
    clamp(20px, 5vw, 72px)
    clamp(40px, 6vh, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 6vh, 80px);
}

/* ── Intro band ───────────────────────────────────────────────────────── */
.cho-intro {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  animation: choFadeIn 1.1s var(--ease-out, cubic-bezier(0.16,1,0.3,1)) both;
}
@keyframes choFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.cho-eyebrow {
  display: inline-block;
  font-family: var(--font-sc);
  font-size: clamp(9px, 0.78vw, 10.5px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(196,167,108,0.7);
  margin-bottom: clamp(16px, 2vh, 26px);
}
.cho-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5.6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--warm-white);
  margin-bottom: clamp(14px, 2vh, 22px);
  text-wrap: balance;
}
.cho-title em {
  font-style: italic;
  color: var(--bronze-pale);
  font-weight: 400;
}
.cho-lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(14px, 1.18vw, 18px);
  line-height: 1.65;
  color: rgba(232,226,214,0.72);
  max-width: 60ch;
  margin: 0 auto;
  text-wrap: pretty;
}
.cho-rule {
  display: block;
  width: 38px; height: 1px;
  background: var(--bronze-pale);
  margin: clamp(20px, 3vh, 34px) auto 0;
  opacity: 0.55;
}

/* ══════════════════════════════════════════════════════════════════════
   GATE — two doors with optional divider
   · ≥1100px : 1fr · auto · 1fr (with vertical "or" divider)
   · 720-1099: two equal columns, no divider
   · <720px  : single column, divider re-appears as horizontal "or"
══════════════════════════════════════════════════════════════════════ */
.cho-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 44px);
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  align-items: stretch;
  animation: choFadeIn 1.2s 0.18s var(--ease-out, cubic-bezier(0.16,1,0.3,1)) both;
}

/* Divider (vertical at large sizes, horizontal at phone) */
.cho-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 28px;
}
.cho-divider-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent, rgba(196,167,108,0.32), transparent);
}
.cho-divider-or {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(196,167,108,0.62);
  letter-spacing: 0.02em;
}

/* Two equal cards from 720–1099px (drop the vertical divider) */
@media (max-width: 1099px) and (min-width: 720px) {
  .cho-gate {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 28px);
  }
  .cho-divider { display: none; }
}

/* Stacked phone layout — divider becomes horizontal between cards */
@media (max-width: 719px) {
  .cho-gate {
    grid-template-columns: 1fr;
    gap: clamp(18px, 3vh, 28px);
  }
  .cho-divider {
    flex-direction: row;
    width: 100%;
    gap: 14px;
    margin: 4px 0;
  }
  .cho-divider-line {
    flex: 1;
    width: auto;
    height: 1px;
    background: linear-gradient(to right,
      transparent, rgba(196,167,108,0.32), transparent);
  }
}

/* ══════════════════════════════════════════════════════════════════════
   DOOR — base
   No min-height; content sets the size. Aspect-ratio kicks in only on
   wide viewports so the two doors stay visually balanced.
══════════════════════════════════════════════════════════════════════ */
.cho-door {
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  border: 1px solid rgba(196,167,108,0.14);
  background: rgba(10,9,8,0.18);
  padding: clamp(22px, 3vw, 46px);
  /* CRITICAL: lets a grid track shrink past the door's min-content width
     so the page never horizontally overflows on tablet / phone. */
  min-width: 0;
  /* Subtle inner glow that intensifies on hover */
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.65);
  transition:
    transform 0.65s var(--ease-out, cubic-bezier(0.16,1,0.3,1)),
    border-color 0.45s ease,
    box-shadow 0.55s ease,
    background 0.45s ease;
  /* Aspect ratio gives a poster-like proportion on desktop only.
     Below ~1100px we drop the aspect-ratio so content controls the height
     (prevents the box from being forced wider than the viewport when text
     reflows on tablet). */
}
@media (min-width: 1100px) {
  .cho-door {
    aspect-ratio: 3 / 4;
    min-height: 540px;
    max-height: 820px;
  }
}
@media (min-width: 1500px) {
  .cho-door { aspect-ratio: 4 / 5; }
}
/* Cinematic specular sweep on hover (desktop only) */
.cho-door::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(196,167,108,0.06) 45%,
    rgba(255,255,255,0.05) 50%,
    rgba(196,167,108,0.06) 55%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
  transition: left 1.1s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
}
@media (hover: hover) {
  .cho-door:hover::before { left: 120%; }
}

/* Hover/focus polish — pointer devices only (touch keeps things still) */
@media (hover: hover) {
  .cho-door:hover,
  .cho-door:focus-visible {
    border-color: rgba(196,167,108,0.42);
    box-shadow:
      0 60px 120px -50px rgba(0,0,0,0.85),
      0 0 100px -30px rgba(196,167,108,0.18);
    transform: translateY(-4px);
  }
}
.cho-door:focus-visible { outline: none; }
.cho-door.is-picking {
  transform: scale(1.012);
  border-color: var(--bronze-pale);
}
.cho-door.is-picking .cho-door-cta-line { width: 100%; }

/* ── Corner numerals ─────────────────────────────────────────────────── */
.cho-door-number {
  position: absolute;
  top:   clamp(16px, 2vw, 30px);
  right: clamp(16px, 2vw, 30px);
  z-index: 3;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1;
  color: var(--bronze-pale);
  letter-spacing: -0.02em;
  opacity: 0.78;
}
.cho-door-number-word {
  position: absolute;
  top:   clamp(60px, 6.5vw, 110px);
  right: clamp(18px, 2vw, 32px);
  z-index: 3;
  font-family: var(--font-sc);
  font-size: clamp(8px, 0.7vw, 9.5px);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(196,167,108,0.5);
}
/* On phones the "01 of two" tag is noise — hide it. */
@media (max-width: 719px) {
  .cho-door-number-word { display: none; }
  .cho-door-number {
    font-size: clamp(28px, 9vw, 42px);
    top: 14px; right: 16px;
  }
}

/* ── Scene layer (animated background, sits behind text) ─────────────── */
.cho-door-scene {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
  transition: transform 1.4s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
}
@media (hover: hover) {
  .cho-door:hover .cho-door-scene { transform: scale(1.04); }
}
.cho-door-scene::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(5,4,3,0.30) 0%,
    rgba(5,4,3,0.66) 60%,
    rgba(5,4,3,0.92) 100%);
}
.cho-scene-layer { position: absolute; inset: 0; }
.cho-scene-far {
  background:
    radial-gradient(ellipse 70% 50% at 30% 70%, rgba(45,74,62,0.55) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(176,141,87,0.38) 0%, transparent 58%),
    linear-gradient(160deg, #0e0b08 0%, #151009 100%);
  animation: cinFar 22s ease-in-out infinite alternate;
}
@keyframes cinFar {
  0%   { transform: scale(1)    translate3d(0,0,0); }
  100% { transform: scale(1.12) translate3d(-2%, 1%, 0); }
}
.cho-scene-mid {
  background:
    radial-gradient(circle 280px at 60% 45%, rgba(196,167,108,0.22), transparent 60%),
    radial-gradient(circle 200px at 20% 80%, rgba(45,74,62,0.18),    transparent 60%);
  filter: blur(22px);
  animation: cinMid 18s ease-in-out infinite alternate;
}
@keyframes cinMid {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(4%, -3%, 0); }
}
.cho-scene-near {
  background:
    radial-gradient(circle 120px at 40% 60%, rgba(196,167,108,0.32), transparent 62%);
  filter: blur(10px);
  opacity: 0.8;
  animation: cinNear 12s ease-in-out infinite alternate;
}
@keyframes cinNear {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-2%, 2%, 0); }
}
.cho-scene-grain {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 3px);
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* ── Basic door — paper/editorial scene ──────────────────────────────── */
.cho-door--basic { color: var(--ink); }
@media (hover: hover) {
  .cho-door--basic:hover {
    box-shadow: 0 60px 120px -50px rgba(30,26,22,0.4);
  }
}
.cho-scene-paper {
  background:
    radial-gradient(ellipse 90% 60% at 50% 40%, #f2ecdf 0%, transparent 70%),
    linear-gradient(170deg, #f6f2ec 0%, #ede6da 100%);
}
.cho-scene-paper::after {
  background: linear-gradient(180deg,
    rgba(246,242,236,0) 0%,
    rgba(237,230,218,0.32) 60%,
    rgba(216,208,194,0.55) 100%);
}
.cho-paper-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  rgba(30,26,22,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,26,22,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image:         radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
}
.cho-paper-mark {
  position: absolute;
  top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(7rem, 16vw, 16rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(176,141,87,0.4);
  letter-spacing: -0.04em;
  user-select: none;
  pointer-events: none;
}
.cho-paper-mark span {
  display: inline-block;
  margin-left: -0.18em;
  color: rgba(176,141,87,0.22);
  -webkit-text-stroke: 0;
}

/* ══════════════════════════════════════════════════════════════════════
   DOOR TEXT
   Bottom-anchored on tall cards; flows naturally on shorter ones.
══════════════════════════════════════════════════════════════════════ */
.cho-door-text {
  position: relative;
  z-index: 2;
  max-width: 540px;
  min-width: 0;
  margin-top: auto;
  /* Reserve room above for the corner number on tall cards */
  padding-top: clamp(70px, 11vh, 130px);
}
.cho-door-text-light { color: var(--ink); }

.cho-door-label {
  display: inline-block;
  font-family: var(--font-sc);
  font-size: clamp(10px, 0.85vw, 11.5px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bronze-pale);
  padding-bottom: 10px;
  margin-bottom: clamp(14px, 1.8vh, 22px);
  border-bottom: 1px solid rgba(196,167,108,0.32);
}
.cho-door-text-light .cho-door-label {
  color: var(--bronze);
  border-color: rgba(176,141,87,0.32);
}

.cho-door-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--warm-white);
  margin-bottom: clamp(12px, 1.6vh, 20px);
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.cho-door-heading em {
  font-style: italic;
  color: var(--bronze-pale);
  font-weight: 400;
}
.cho-door-text-light .cho-door-heading       { color: var(--ink); }
.cho-door-text-light .cho-door-heading em    { color: var(--bronze); }

.cho-door-desc {
  font-family: var(--font-body);
  font-size: clamp(13.5px, 1vw, 15.5px);
  line-height: 1.7;
  color: rgba(232,226,214,0.72);
  margin-bottom: clamp(16px, 2.4vh, 28px);
  max-width: 44ch;
  text-wrap: pretty;
}
.cho-door-text-light .cho-door-desc { color: var(--muted); }

.cho-door-list {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1vh, 10px);
  margin-bottom: clamp(20px, 3vh, 36px);
  font-family: var(--font-body);
  font-size: clamp(13px, 0.95vw, 14.5px);
  color: rgba(232,226,214,0.84);
}
.cho-door-text-light .cho-door-list { color: var(--ink); }
.cho-door-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cho-tick {
  width: 14px; height: 1px;
  background: var(--bronze-pale);
  display: inline-block;
  flex: 0 0 auto;
}
.cho-door-text-light .cho-tick { background: var(--bronze); }

/* On phones the bullet list is the most expendable element — hide it
   to keep cards tight and tappable. */
@media (max-width: 719px) {
  .cho-door-list { display: none; }
  .cho-door-text {
    padding-top: clamp(48px, 14vw, 80px);
    /* Phones: text doesn't need to be bottom-anchored — hugs naturally */
    margin-top: 0;
  }
}

/* ── CTA ─────────────────────────────────────────────────────────────── */
.cho-door-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  position: relative;
  font-family: var(--font-sc);
  font-size: clamp(9.5px, 0.82vw, 10.5px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bronze-pale);
  transition:
    color 0.4s ease,
    gap   0.4s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
}
.cho-door-text-light .cho-door-cta { color: var(--bronze); }
.cho-door-cta-line {
  position: absolute;
  top: 0; left: 0;
  width: 28px; height: 1px;
  background: currentColor;
  transition: width 0.65s var(--ease-out, cubic-bezier(0.16,1,0.3,1));
}
@media (hover: hover) {
  .cho-door:hover .cho-door-cta      { gap: 18px; }
  .cho-door:hover .cho-door-cta-line { width: 100%; }
}
/* Touch: keep CTA visually obvious — line is partially extended */
@media (hover: none) {
  .cho-door-cta-line { width: 56px; }
}

/* ── Mood tag (lower left) ───────────────────────────────────────────── */
.cho-door-mood {
  position: absolute;
  bottom: clamp(18px, 2.4vw, 32px);
  left:   clamp(22px, 3vw, 46px);
  z-index: 2;
  font-family: var(--font-sc);
  font-size: clamp(8px, 0.72vw, 9.5px);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(232,226,214,0.42);
}
.cho-door--basic .cho-door-mood { color: rgba(30,26,22,0.45); }
@media (max-width: 519px) {
  .cho-door-mood { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════
   FOOT note
══════════════════════════════════════════════════════════════════════ */
.cho-foot {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(24px, 4vh, 44px) 0 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  border-top: 1px solid rgba(196,167,108,0.08);
  animation: choFadeIn 1.1s 0.4s var(--ease-out, cubic-bezier(0.16,1,0.3,1)) both;
}
@media (max-width: 720px) {
  .cho-foot {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: left;
  }
}
.cho-foot-col p {
  font-family: var(--font-body);
  font-size: clamp(12.5px, 0.95vw, 14px);
  line-height: 1.6;
  color: rgba(232,226,214,0.62);
  max-width: 32ch;
}
.cho-foot-label {
  display: block;
  font-family: var(--font-sc);
  font-size: clamp(8.5px, 0.72vw, 9.5px);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bronze-pale);
  margin-bottom: 8px;
}
.cho-foot kbd {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 2px;
  font-family: var(--font-sc);
  font-size: 10px;
  color: var(--bronze-pale);
  background: rgba(196,167,108,0.08);
  border: 1px solid rgba(196,167,108,0.25);
  border-radius: 2px;
  letter-spacing: 0.18em;
}

/* Hide the keyboard-shortcut footnote on touch — it's irrelevant there */
@media (hover: none) and (pointer: coarse) {
  .cho-foot-col:nth-child(3) { display: none; }
  .cho-foot { grid-template-columns: repeat(2, 1fr); }
  @media (max-width: 720px) {
    .cho-foot { grid-template-columns: 1fr; }
  }
}

/* ══════════════════════════════════════════════════════════════════════
   Reduced motion
══════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .cho-sky-mesh,
  .cho-scene-far,
  .cho-scene-mid,
  .cho-scene-near { animation: none !important; }
  .cho-door:hover { transform: none; }
  .cho-door:hover .cho-door-scene { transform: none; }
  .cho-intro,
  .cho-gate,
  .cho-foot { animation: none !important; opacity: 1 !important; }
}
