/* ==========================================================================
   divorcd cinema layer
   Gives every page the homepage's feel: a full-bleed photographic opening,
   editorial type, warm sections that melt into each other, and one shared
   sign-off. Loaded after experience.css on every page.
   ========================================================================== */

/* Soft cross-fade between pages in browsers that support it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; animation-timing-function: var(--ease-out); }

/* ---------- Opening: full-bleed photograph ---------- */
.cine {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 92vh; min-height: 92svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 clamp(64px, 11vh, 120px);
  background: var(--ink); color: var(--cream);
}
.cine--guide { min-height: 84vh; min-height: 84svh; }
.cine--short { min-height: 64vh; min-height: 64svh; }

.cine-media { position: absolute; inset: -6% 0 0; z-index: -2; will-change: transform; }
.cine-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 40%);
  filter: saturate(.9) contrast(1.04) sepia(.1) brightness(.92);
  transform: scale(1.12);
  transition: transform 3.2s var(--ease-out);
}
.cine.in-view .cine-media img { transform: scale(1.02); }

/* Warm grade: dark at the reading corner, sunrise glow at the top right, and a
   fade at the very bottom so the photo melts into the first section */
.cine-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(238,158,82,.22) 0%, rgba(238,158,82,0) 55%),
    linear-gradient(90deg, rgba(14,13,12,.86) 0%, rgba(14,13,12,.6) 38%, rgba(14,13,12,.18) 72%, rgba(14,13,12,.08) 100%),
    linear-gradient(0deg, rgba(14,13,12,.78) 0%, rgba(14,13,12,.2) 38%, rgba(14,13,12,0) 60%);
}
/* The hero's data-bg matches the section below, so this melt lines up with it */
.cine::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; z-index: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--page, #F6EEE4), color-mix(in srgb, var(--page, #F6EEE4) 0%, transparent));
}

.cine-inner { position: relative; z-index: 1; width: 100%; }
.cine-inner > * { max-width: 760px; }
.cine .breadcrumbs, .cine .breadcrumbs a { color: rgba(244,240,234,.62); }
.cine .breadcrumbs a:hover { color: var(--cream); }
.cine .breadcrumbs { margin: 0 0 26px; font-size: 14px; letter-spacing: .01em; }
.cine h1 {
  color: var(--cream); margin: 0 0 26px;
  font-size: clamp(3rem, 6.6vw, 6.6rem); line-height: .98; letter-spacing: -0.055em; font-weight: 800;
  text-wrap: balance;
}
.cine--guide h1 { font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: 1.02; }
.cine--short h1 { font-size: clamp(2.6rem, 5.2vw, 4.8rem); }
.cine h1 em { color: var(--gold); font-style: normal; }
.cine .lede, .cine .lead { color: rgba(244,240,234,.78); font-size: clamp(1.1rem, 1.5vw, 1.32rem); line-height: 1.6; max-width: 600px; margin: 0 0 34px; }
.cine .legal-updated { color: rgba(244,240,234,.55); font-size: 14px; margin: -14px 0 0; }
.cine-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cine .btn--outline { color: var(--cream); border-color: rgba(244,240,234,.38); }
.cine .btn--outline:hover { border-color: var(--cream); }

/* A slim line of facts under a guide title */
.cine .guide-byline { display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(244,240,234,.66); font-size: 14px; margin: 0; }
.cine .guide-byline strong { color: var(--cream); font-weight: 600; }
.cine .guide-byline span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin: 0 14px 3px -11px; vertical-align: middle; }

/* Scroll cue in the bottom right corner */
.cine-cue {
  position: absolute; right: max(24px, calc((100vw - var(--container, 1200px)) / 2 + 24px)); bottom: clamp(40px, 8vh, 80px); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: lowercase; color: rgba(244,240,234,.55);
  writing-mode: vertical-rl;
}
.cine-cue i { writing-mode: horizontal-tb; width: 1px; height: 56px; background: rgba(244,240,234,.2); position: relative; overflow: hidden; }
.cine-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--gold); animation: cue 2s var(--ease-in-out) infinite; }

/* Header sits over the photograph until you scroll */
body[data-hero="dark"] main { padding-top: 0; }

@media (max-width: 900px) {
  .cine { min-height: 86svh; padding: 120px 0 56px; }
  .cine--short { min-height: 58svh; }
  .cine-shade {
    background:
      linear-gradient(0deg, rgba(14,13,12,.9) 0%, rgba(14,13,12,.55) 45%, rgba(14,13,12,.25) 100%);
  }
  .cine-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cine-media img { transform: none; transition: none; }
  .cine-cue i::after { animation: none; }
}

/* ---------- Guide index on the stage pages ---------- */
.index-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.index-head h2 { margin: 0; }
.index-head p { margin: 8px 0 0; color: var(--slate); max-width: 520px; }
.guide-index { border-top: 1px solid var(--line); }
.gi-row {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.gi-row h3 {
  margin: 0; font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.08; letter-spacing: -0.045em; font-weight: 700;
  transition: transform .6s var(--ease-out), color .3s;
}
.gi-row .gi-meta { font-size: 14px; font-weight: 600; color: var(--slate); white-space: nowrap; display: flex; align-items: center; gap: 14px; }
.gi-row .gi-meta i {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  transition: background .35s, border-color .35s, transform .5s var(--ease-out);
}
.gi-row .gi-meta i::before { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg) translate(-1px, 1px); }
a.gi-row:hover h3 { transform: translateX(14px); color: var(--gold-deep, #A4471E); }
a.gi-row:hover .gi-meta i { background: var(--ink); border-color: var(--ink); color: var(--cream); transform: translateX(4px); }
.gi-row--soon h3 { color: color-mix(in srgb, var(--ink) 38%, transparent); }
.gi-row--soon .gi-meta { color: color-mix(in srgb, var(--slate) 70%, transparent); font-weight: 500; }

/* Photo that follows the cursor over the guide index (desktop only) */
.gi-peek {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 300px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(17,17,17,.45);
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.86) rotate(-3deg);
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-out);
}
.gi-peek.is-on { opacity: 1; transform: translate3d(-50%, -50%, 0) scale(1) rotate(-2deg); }
.gi-peek img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) sepia(.08); }
@media (pointer: coarse), (max-width: 900px) { .gi-peek { display: none; } }
@media (max-width: 700px) {
  .gi-row { grid-template-columns: 1fr; gap: 10px; padding: 24px 0; }
  .gi-row .gi-meta i { display: none; }
}

/* ---------- Reading progress on guides ---------- */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 220; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), #F6C48A); }

/* ---------- Simple page hero spacing when a page opens on a photograph ---------- */
.cine + .section, .cine + .legal-section { padding-top: clamp(64px, 9vw, 112px); }

/* ---------- Sign-off: the same closing on every page ---------- */
.signoff {
  position: relative; overflow: hidden; background: var(--ink); color: var(--cream);
  padding: clamp(96px, 14vw, 180px) 0 clamp(72px, 10vw, 120px);
}
.signoff::before {
  content: ""; position: absolute; left: 50%; bottom: -55%; width: 1200px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(238,158,82,.32), rgba(238,158,82,.08) 55%, rgba(238,158,82,0) 75%);
  pointer-events: none;
}
.signoff .container { position: relative; }
.signoff-line {
  margin: 0; font-weight: 800; letter-spacing: -0.06em; line-height: .95;
  font-size: clamp(3rem, 9vw, 9rem); color: var(--cream); max-width: 12ch;
}
.signoff-line em { font-style: normal; color: var(--gold); }
.signoff-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 28px; margin-top: 48px; }
.signoff-row p { margin: 0; max-width: 460px; color: rgba(244,240,234,.68); font-size: 17px; line-height: 1.6; }
.signoff + .site-footer { margin-top: 0; border-top: 1px solid rgba(244,240,234,.08); background: var(--ink); }
.site-footer { background: var(--ink); }

/* The urgent-help strip sits quietly on the page colour */
.urgent { background: transparent; }

/* Mirror a photo so its people sit on the right, away from the headline */
.cine--mirror .cine-media img { scale: -1 1; }

/* ==========================================================================
   Starter pack: a printed booklet on a warm dawn, with the sign-up beside it
   ========================================================================== */
.pack {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(96px, 12vw, 160px) 0;
  background: linear-gradient(180deg, #F6EEE4 0%, #F7DFCB 55%, #F3CFAE 100%);
}
.pack-glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; left: -260px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(255,250,244,.95), rgba(255,250,244,.35) 55%, rgba(255,250,244,0) 75%);
}
.pack-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 110px); align-items: center; }

/* The booklet */
.pack-visual { position: relative; aspect-ratio: 4 / 5; max-width: 440px; width: 100%; justify-self: center; perspective: 1400px; }
.pack-book, .pack-page {
  position: absolute; inset: 0; border-radius: 6px 18px 18px 6px;
  transform-style: preserve-3d; transition: transform 1.2s var(--ease-out);
}
.pack-page--3 { background: #E9D9C4; transform: rotate(9deg) translate(26px, 10px); box-shadow: 0 30px 60px -30px rgba(80,45,20,.4); }
.pack-page--2 {
  background: #FFFAF4; transform: rotate(4deg) translate(14px, 4px);
  box-shadow: 0 30px 60px -30px rgba(80,45,20,.35);
  padding: 22% 14% 0 18%; display: flex; flex-direction: column; gap: 14px;
}
.pack-page--2 span { height: 8px; border-radius: 4px; background: #EADCCB; }
.pack-page--2 span:nth-child(2n) { width: 70%; }
.pack-book {
  display: flex; flex-direction: column; padding: 13% 12% 12% 17%;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(238,158,82,.18), rgba(238,158,82,0) 60%),
    linear-gradient(160deg, #FFFCF7 0%, #F8EEE2 100%);
  transform: rotate(-4deg);
  box-shadow:
    inset 0 0 0 1px rgba(17,17,17,.04),
    0 2px 0 rgba(255,255,255,.8) inset,
    0 50px 80px -30px rgba(80,45,20,.45),
    0 18px 30px -18px rgba(80,45,20,.35);
}
/* Amber spine and a printed line down it */
.pack-book::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9%;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(90deg, #C9772F 0%, #EE9E52 55%, #F4B77B 100%);
  box-shadow: inset -6px 0 10px -6px rgba(0,0,0,.25);
}
.pack-book::after {
  content: ""; position: absolute; left: 9%; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,0));
}
.pack-logo { font-weight: 800; letter-spacing: -0.05em; font-size: clamp(1.2rem, 2vw, 1.6rem); color: var(--ink); }
.pack-logo .d { color: var(--gold); display: inline-block; transform: rotate(8deg) translate(1px, -3px); }
.pack-name {
  margin-top: auto; font-weight: 800; letter-spacing: -0.055em; line-height: .95;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem); color: var(--ink);
}
.pack-edition { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #8C7B67; }
.pack-seal {
  position: absolute; right: -18px; top: 16%;
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, #FBD3A6, #EE9E52 70%);
  box-shadow: 0 14px 30px -12px rgba(150,80,20,.55), inset 0 -3px 6px rgba(0,0,0,.08);
  transform: rotate(12deg);
}
.pack-visual.in-view .pack-book { transform: rotate(-6deg) translateY(-6px); }
.pack-visual.in-view .pack-page--2 { transform: rotate(5deg) translate(22px, 2px); }
.pack-visual.in-view .pack-page--3 { transform: rotate(12deg) translate(40px, 14px); }
@media (pointer: fine) {
  .pack-visual:hover .pack-book { transform: rotate(-2deg) translateY(-14px) scale(1.02); }
  .pack-visual:hover .pack-page--2 { transform: rotate(7deg) translate(34px, 0); }
}

/* The words */
.pack-copy h2 {
  margin: 0 0 22px; font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -0.05em; font-weight: 800; color: var(--ink);
  text-wrap: balance;
}
.pack-copy h2 em { font-style: normal; color: var(--gold-deep, #A4471E); }
.pack-intro { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: #4E4A44; max-width: 540px; margin: 0 0 26px; }
.pack-list { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; }
.pack-list li { display: flex; gap: 14px; align-items: baseline; font-weight: 600; color: var(--ink); font-size: 16px; }
.pack-list li::before {
  content: ""; flex: none; width: 18px; height: 10px; transform: translateY(-2px) rotate(-45deg);
  border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold);
}
.pack-form {
  display: flex; gap: 8px; padding: 8px; max-width: 560px;
  background: rgba(255,250,244,.92); border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 50px -24px rgba(80,45,20,.4);
  border: 1px solid rgba(17,17,17,.06);
}
.pack-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 20px; font: 500 16px var(--font); color: var(--ink); border-radius: 999px; }
.pack-form input:focus { outline: none; box-shadow: none; }
.pack-form:focus-within { box-shadow: 0 0 0 3px rgba(238,158,82,.45), 0 24px 50px -24px rgba(80,45,20,.4); }
.pack-form .btn { padding: 14px 26px; white-space: nowrap; }
.pack-error { margin: 12px 0 0 20px; }
.pack-fine { margin: 16px 0 0 20px; font-size: 13px; color: #7A6E61; }
.pack-fine a { color: inherit; }
.pack-done { padding: 22px 26px; max-width: 560px; border-radius: 22px; background: rgba(255,250,244,.92); box-shadow: 0 24px 50px -24px rgba(80,45,20,.4); }
.pack-done strong { display: block; font-size: 1.25rem; letter-spacing: -0.03em; margin-bottom: 4px; }
.pack-done p { margin: 0; color: #4E4A44; }

@media (max-width: 900px) {
  .pack-inner { grid-template-columns: 1fr; }
  .pack-visual { max-width: 300px; margin-bottom: 8px; }
  .pack-seal { width: 66px; height: 66px; font-size: 13px; right: -10px; }
}
@media (max-width: 560px) {
  .pack-form { flex-direction: column; border-radius: 24px; }
  .pack-form .btn { width: 100%; }
  .pack-error, .pack-fine { margin-left: 4px; }
}
@media (prefers-reduced-motion: reduce) { .pack-book, .pack-page { transition: none; } }

/* The pack sits right before the dark sign-off */
.pack + .signoff { margin-top: 0; }

/* ---------- Expert listings: honest labels ---------- */
.listing-note { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: #7A6E61; margin-bottom: 6px; }
.listing-note.is-partner { color: var(--gold-deep, #A4471E); }
.expert-card .reg, .match-result .reg { font-size: 13px; color: #6B6258; margin: 8px 0 0; display: flex; align-items: center; gap: 8px; }
.expert-card .reg::before, .match-result .reg::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; background: radial-gradient(circle, var(--gold) 0 35%, transparent 36%), color-mix(in srgb, var(--gold) 22%, transparent); }
.expert-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.expert-actions .price { margin: 0 0 4px; text-align: right; max-width: 200px; }
@media (max-width: 700px) { .expert-actions { align-items: stretch; } .expert-actions .price { text-align: left; } }
