/* Reserve Compass page — spin-the-compass aside + golden hour */

/* two columns on wide screens: questionnaire + the spinner beside it */
@media (min-width: 1100px) {
  .compass-page .wrap.narrow {
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    column-gap: 3.2rem;
    align-items: start;
  }
  .compass-page .wrap.narrow > .eyebrow,
  .compass-page .wrap.narrow > h1,
  .compass-page .wrap.narrow > .section-sub,
  .compass-page .wrap.narrow > .compass-card { grid-column: 1; }
  .spin-aside {
    grid-column: 2;
    grid-row: 1 / span 4;
    position: sticky;
    top: 110px;
  }
}
@media (max-width: 1099px) {
  .spin-aside { max-width: 420px; margin: 2.6rem auto 0; }
}

.spin-aside .compass-visual {
  border: 1px solid var(--line-gold);
  border-radius: 4px;
  display: grid;
  place-items: center;
  padding-top: 1.2rem;
}
.spin-aside .compass-visual svg { width: 68%; max-width: 240px; }

.compass-visual.f-spinnable { cursor: pointer; transition: border-color .3s, box-shadow .3s; }
.compass-visual.f-spinnable:hover { border-color: var(--gold); box-shadow: 0 18px 50px -22px rgba(184, 155, 94, .55); }
.compass-visual.f-spinnable:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.f-spin { padding: 0 1.2rem 1.4rem; text-align: center; }
.f-spin-prompt {
  margin: .2rem 0 .5rem;
  font-size: .85rem;
  letter-spacing: .05em;
  color: rgba(246, 241, 232, .78);
}
.f-spin-prompt em { font-family: var(--serif); font-style: italic; color: var(--gold-bright); }
.f-spin-result { margin: 0; min-height: 3.4rem; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.f-spin-name { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.2; color: var(--gold-bright); }
.f-spin-go {
  visibility: hidden;
  opacity: 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 155, 94, .5);
  padding-bottom: 2px;
  transition: opacity .5s ease, color .2s;
}
.f-spin-go:hover { color: var(--ivory); }
.f-spin.landed .f-spin-go { visibility: visible; opacity: 1; }

/* golden hour on the compass page */
@media (prefers-reduced-motion: no-preference) {
  .compass-page { position: relative; }
  .compass-page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(10% 7% at 84% 4%, rgba(255, 190, 120, .17), rgba(255, 190, 120, 0) 100%),
      radial-gradient(46% 36% at 84% 0%,
        rgba(226, 150, 84, .14),
        rgba(203, 116, 70, .05) 46%,
        rgba(203, 116, 70, 0) 68%);
    mix-blend-mode: screen;
    animation: cpGolden 16s ease-in-out infinite alternate;
  }
  @keyframes cpGolden {
    from { opacity: .22; transform: translateY(1.5%); }
    to   { opacity: .45; transform: translateY(0); }
  }
  .compass-page .wrap { position: relative; z-index: 1; }
}

@media (max-width: 760px) {
  .compass-page::after { animation: none; opacity: .2; }
}

/* the compass letters are svg text - without this, clicks start a text
   selection and a caret blinks over the dial */
.compass-visual.f-spinnable,
.compass-visual.f-spinnable * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* landed state: legible name, curated photo, caption */
.f-spin-name {
  font-style: normal;
  font-weight: 650;
  font-variation-settings: "opsz" 11;
  font-size: 1.55rem;
  letter-spacing: .01em;
  color: var(--ivory);
}
.f-spin-photo-wrap {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(184, 155, 94, .35);
  margin-bottom: .55rem;
}
.f-spin-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-spin-caption {
  display: none;
  font-family: var(--sans);
  font-weight: 450;
  font-size: .9rem;
  line-height: 1.55;
  color: rgba(246, 241, 232, .85);
  max-width: 40ch;
}
.f-spin.landed .f-spin-photo-wrap { display: block; animation: fPhotoIn .8s var(--ease-out); }
.f-spin.landed .f-spin-caption { display: block; animation: fPhotoIn .9s ease .08s both; }
@keyframes fPhotoIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* landed: the compass hands its spot to the photo, in normal flow, inside the
   same card (a JS min-height lock keeps the box from shrinking) */
.compass-visual.f-landed > svg { display: none; }
.f-spin.landed .f-spin-caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.f-spin.landed .f-spin-photo-wrap { aspect-ratio: 16 / 9; }
.compass-visual.f-landed { padding-top: 1.6rem; }
.f-spin.landed { padding-bottom: 1rem; }
