/* bbs1 home: the flight. The engine's own stylesheet is not shipped; the worldflight rules it needs are here.
   Two modes: html.sc-ready (the engine mounted: one fixed world, fixed copy, nothing in flow but the spacer)
   and the default (no JavaScript: the same markup as a plain, readable page over the first frame). */

/* ------------------------------------------------------------------ shared */
.flight { position: relative; }
.world { position: fixed; inset: 0; overflow: clip; z-index: 1; background: var(--c-canvas); }
.seg { position: absolute; inset: 0; }
.seg picture, .seg picture img, .seg > video { position: absolute; inset: 0; width: 100%; height: 100%; }
.seg picture img, .seg > video { object-fit: cover; }
.seg > video { z-index: 1; opacity: 0; }
.seg picture img { transform-origin: 50% 50%; transition: opacity 420ms var(--ease-out); }
.seg.sc-has-clip picture img { opacity: 0; }
video[data-sc-scrub].sc-has-clip { opacity: 1; }

.planes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.plane, .plane img { position: absolute; inset: 0; width: 100%; height: 100%; }
.plane img { object-fit: cover; max-width: none; }
.plane--far img { transform: scale(1.04); }
.plane--far, .plane--mid, .plane--near { will-change: transform; }
.plane--haze { background:
  radial-gradient(60% 40% at 50% 62%, rgba(150, 120, 210, 0.16), rgba(150, 120, 210, 0) 70%),
  linear-gradient(0deg, rgba(16, 13, 24, 0.35) 0%, rgba(16, 13, 24, 0) 30%); }

.world-copy { z-index: 20; }
.cw h2 { font-size: var(--t-2xl); line-height: var(--lh-snug); letter-spacing: var(--track-snug); margin-bottom: var(--s-4); text-wrap: balance; }
.cw p { color: var(--c-ink-soft); }
.cw p + p { margin-top: var(--s-3); }
.cw__place { font: 700 var(--t-xs)/1 var(--f-display) !important; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--c-signal) !important; margin-bottom: var(--s-3); }
.cw__anchor { position: absolute; left: -26px; top: 0.35em; width: 11px; height: 11px; border-radius: var(--r-dot); background: var(--c-signal); box-shadow: 0 0 0 4px var(--c-signal-dim); }
.cw__links { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; border-top: 1px solid var(--c-line); }
.cw__links a { display: grid; gap: 2px; padding: var(--s-3) 0; min-height: 44px; border-bottom: 1px solid var(--c-line); text-decoration: none; }
.cw__links strong { font: 700 var(--t-sm)/1.3 var(--f-display); color: var(--c-ink); }
.cw__links span { font-size: var(--t-sm); color: var(--c-ink-soft); line-height: 1.4; }
.cw__links a:hover strong { color: var(--c-signal); }
.cw__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.cw__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.cw__facts li { padding-left: var(--s-5); position: relative; color: var(--c-ink-soft); }
.cw__facts li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: var(--route-w); background: var(--c-signal); }
.cw__facts strong { color: var(--c-ink); font-weight: 700; }
.cw__note { margin: var(--s-5) 0 var(--s-5); font-size: var(--t-sm); }
.cw__more { margin-top: var(--s-4); font-size: var(--t-sm); }
.cw__more a { color: var(--c-ink); }
.cw--hero h1 { font-weight: 800; }
.h1__big { display: block; font-size: var(--t-4xl); line-height: 0.96; letter-spacing: var(--track-tight); }
.h1__sub { display: block; margin-top: var(--s-4); font: 600 var(--t-xl)/1.25 var(--f-display); letter-spacing: -0.01em; color: var(--c-ink); max-width: 26ch; }
.cw__lede { margin-top: var(--s-4); font-size: var(--t-lg); line-height: 1.5; max-width: 34rem; }
.cw__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.ways ul { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.ways a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font: 600 var(--t-sm)/1.2 var(--f-display); color: var(--c-ink-soft); text-decoration: none; }
.ways a::before { content: ""; width: 7px; height: 7px; border-radius: var(--r-dot); border: var(--route-w) solid var(--c-signal); }
.ways a:hover { color: var(--c-ink); }
.logos--home { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 30rem; gap: var(--s-2); }
.logos--home li { aspect-ratio: 3 / 2; padding: var(--s-2); }
.quote--home { margin-top: var(--s-6); padding-left: var(--s-5); }
.quote--home p { font-size: var(--t-lg); color: var(--c-ink) !important; }
.desk-ways { list-style: none; margin: var(--s-5) 0 0; padding: 0; border-top: 1px solid var(--c-line); }
.desk-ways a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 48px; padding: var(--s-2) 0; border-bottom: 1px solid var(--c-line); font: 700 var(--t-base)/1.25 var(--f-display); text-decoration: none; }
.desk-ways .arrow { width: 24px; height: 14px; color: var(--c-signal); flex: none; }
.desk-ways a:hover { color: var(--c-signal); }
.desk-actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.desk-call { font-size: var(--t-sm); }
.desk-call a { color: var(--c-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.missed a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; color: var(--c-signal); font: 700 var(--t-sm)/1 var(--f-display); text-decoration: none; }
.missed a::before { content: ""; width: 14px; height: 14px; border-radius: var(--r-dot); border: var(--route-w) solid var(--c-signal); }
.desk-foot { margin-top: var(--s-7); display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--t-xs); color: var(--c-ink-faint); }
.desk-foot a { display: inline-flex; align-items: center; min-height: 36px; color: var(--c-ink-soft); text-decoration: none; font-size: var(--t-sm); }
.desk-foot a:hover { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-signal); }
.desk-foot span { flex-basis: 100%; }

/* the bell: the action, an object in the place */
.bell { position: relative; display: inline-flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 0 var(--s-6) 0 var(--s-2); border-radius: var(--r-1); background: var(--c-signal); color: var(--c-signal-ink); font: 800 var(--t-base)/1 var(--f-display); text-decoration: none; box-shadow: var(--e2); }
.bell__ring { width: 40px; height: 40px; border-radius: var(--r-dot); background: var(--c-signal-ink) url("img/bell.svg") center / 22px no-repeat; }
.bell:hover { background: #fff04d; }
.bell:active { transform: translateY(1px); }

/* the bell in the film: a lit ring over the brass bell, the end of the signal */
.bell-spot { width: 64px; height: 64px; }
.bell-spot__anchor { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 1px; height: 1px; background: none; box-shadow: none; }
.bell-spot__btn { position: absolute; inset: 0; border-radius: var(--r-dot); border: var(--route-w) solid var(--c-signal); background: rgba(251, 228, 1, 0.08); cursor: pointer; box-shadow: 0 0 0 6px rgba(251, 228, 1, 0.12); }
.bell-spot__btn span { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; font: 700 var(--t-xs)/1 var(--f-display); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--c-signal); background: var(--c-surface); padding: var(--s-2) var(--s-3); border-radius: var(--r-1); }
@media (prefers-reduced-motion: no-preference) { .bell-spot__btn { animation: cadence-dot 3s linear infinite; } }
html:not(.sc-ready) .bell-spot { display: none; }

/* the ring */
.ring { display: grid; justify-items: center; gap: var(--s-4); text-align: center; }
.ring__waves { position: absolute; left: 50%; top: 40px; width: 0; height: 0; pointer-events: none; }
.ring__waves i { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: var(--r-dot); border: var(--route-w) solid var(--c-signal); opacity: 0; }
.ring__answer { position: relative; z-index: 1; width: 80px; height: 80px; border-radius: var(--r-dot); border: 0; background: var(--c-signal); color: var(--c-signal-ink); font: 800 var(--t-sm)/1 var(--f-display); cursor: pointer; box-shadow: 0 0 0 6px rgba(16, 13, 24, 0.55), var(--e2); }
.ring__answer:hover { background: #fff04d; }
.ring__label { max-width: 14rem; font: 600 var(--t-sm)/1.4 var(--f-display); color: var(--c-ink) !important; background: var(--c-surface); padding: var(--s-2) var(--s-3); border-radius: var(--r-1); }
.ring__state { color: var(--c-signal); }
.ring__anchor { left: 50%; top: 40px; transform: translate(-50%, -50%); width: 1px; height: 1px; background: none; box-shadow: none; }
.ring.is-answered .ring__answer { background: rgba(16, 13, 24, 0.88); color: var(--c-signal); box-shadow: inset 0 0 0 var(--route-w) var(--c-signal), 0 0 0 6px rgba(16, 13, 24, 0.55); }
@media (prefers-reduced-motion: no-preference) {
  .ring.is-ringing .ring__waves i { animation: cadence 3s linear infinite; }
  .ring.is-ringing .ring__waves i:nth-child(2) { animation-delay: 0.08s; }
  .ring.is-ringing .ring__waves i:nth-child(3) { animation-delay: 0.16s; }
  .ring.is-ringing .ring__answer { animation: cadence-btn 3s linear infinite; }
}
/* Australian ring cadence: 0.4 s on, 0.2 s off, 0.4 s on, 2.0 s off */
@keyframes cadence {
  0% { transform: scale(1); opacity: 0.9; } 13% { transform: scale(1.9); opacity: 0; }
  20% { transform: scale(1); opacity: 0.9; } 33% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes cadence-btn { 0%, 13%, 20%, 33% { transform: scale(1.04); } 6%, 26%, 40%, 100% { transform: scale(1); } }

/* the signal */
.signal { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.signal__path { fill: none; stroke: var(--c-signal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.signal__packet { fill: none; stroke: #fff6a8; stroke-width: 4; stroke-linecap: round; opacity: 0; }
.signal__head { fill: var(--c-signal); }

/* the strip on home: the route and its delivered state */
.route.is-delivered .stop--terminus .stop__dot { background: var(--c-signal); box-shadow: 0 0 0 4px var(--c-signal-dim); }
.stop.is-missed .stop__dot { border-color: var(--c-signal); }
@media (prefers-reduced-motion: no-preference) {
  .stop.is-ringing .stop__dot, .stop.is-missed .stop__dot { animation: cadence-dot 3s linear infinite; }
}
@keyframes cadence-dot { 0%, 13%, 20%, 33% { box-shadow: 0 0 0 5px var(--c-signal-dim); } 6%, 26%, 40%, 100% { box-shadow: 0 0 0 0 rgba(251, 228, 1, 0); } }

/* the desk: the enquiry beside the bell */
.desk .enquiry { padding-top: var(--s-8); }
.desk__close { display: none; }

/* ------------------------------------------------------------------ engine mounted */
.sc-ready .world-copy { position: fixed; inset: 0; pointer-events: none; }
.sc-ready [data-sc-copy] { position: absolute; opacity: 0; pointer-events: none; will-change: opacity, transform; }
.sc-ready .scrim { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.sc-ready .scrim--hero { background: linear-gradient(90deg, rgba(16, 13, 24, 0.86) 0%, rgba(16, 13, 24, 0.62) 34%, rgba(16, 13, 24, 0) 62%); }
.sc-ready .scrim--lead { background: linear-gradient(90deg, rgba(16, 13, 24, 0.94) 0%, rgba(16, 13, 24, 0.88) 34%, rgba(16, 13, 24, 0.5) 52%, rgba(16, 13, 24, 0) 70%); }
.sc-ready .scrim--trail { background: linear-gradient(270deg, rgba(16, 13, 24, 0.9) 0%, rgba(16, 13, 24, 0.75) 36%, rgba(16, 13, 24, 0) 60%); }
.sc-ready .scrim--low { display: none; }
.sc-ready .cw { max-width: 34rem; }
.sc-ready .cw--hero { left: max(var(--gutter), 6vw); top: calc(var(--strip-h) + 13vh); max-width: 40rem; }
.sc-ready .cw--lead { left: max(calc(var(--gutter) + 26px), 6vw); top: calc(var(--strip-h) + 9vh); max-height: calc(100svh - var(--strip-h) - 12vh); }
.sc-ready .cw--core { max-width: 40rem; }
.sc-ready .cw--trail { right: var(--gutter); top: calc(var(--strip-h) + 4vh); bottom: 4vh; width: min(34rem, 38vw); max-width: none; display: flex; flex-direction: column; }
.sc-ready .cw--trail .call { flex: 1 1 auto; min-height: 0; background: rgba(25, 20, 36, 0.92); }
.sc-ready .cw--trail .call__transcript { max-height: none; flex: 1; min-height: 0; }
.sc-ready .cw--call .call { grid-template-rows: auto auto minmax(0, 1fr) auto; }
.sc-ready .cw__callh { font-size: var(--t-xl) !important; }
.sc-ready .ring { left: 50%; top: 50%; width: 14rem; margin-left: -7rem; }
.sc-ready .cw--finale { left: max(calc(var(--gutter) + 26px), 6vw); top: calc(var(--strip-h) + 6vh); max-width: 30rem; }
.sc-ready .foot--home { display: none; }
.sc-ready .desk { position: fixed; top: 0; right: 0; bottom: 0; width: min(44rem, 100%); z-index: 60; overflow-y: auto; overscroll-behavior: contain; background: var(--c-canvas); border-left: 1px solid var(--c-line); box-shadow: var(--e3); padding: var(--s-6) var(--gutter) var(--s-10); transform: translateX(104%); visibility: hidden; transition: transform 320ms var(--ease-out), visibility 0s linear 320ms; pointer-events: auto; }
.sc-ready .desk.is-open { transform: none; visibility: visible; transition: transform 320ms var(--ease-out); }
.sc-ready .desk:not(.is-open) { display: none; }
@media (prefers-reduced-motion: no-preference) { .sc-ready .desk.is-open { animation: desk-in 320ms var(--ease-out); } }
@keyframes desk-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sc-ready .desk .enquiry__grid { grid-template-columns: 1fr; gap: var(--s-6); }
.sc-ready .desk__close { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--c-line-strong); border-radius: var(--r-1); background: transparent; color: var(--c-ink); font: 700 var(--t-sm)/1 var(--f-display); cursor: pointer; }
.sc-ready .spacer { pointer-events: none; }
.sc-ready.desk-open .strip { z-index: 10; }

@media (max-width: 860px), (orientation: portrait) and (max-width: 1100px) {
  .sc-ready .scrim--lead, .sc-ready .scrim--trail { display: none; }
  .sc-ready .scrim--low { display: block; background: linear-gradient(0deg, rgba(16, 13, 24, 0.96) 0%, rgba(16, 13, 24, 0.93) 58%, rgba(16, 13, 24, 0.55) 72%, rgba(16, 13, 24, 0) 86%); }
  .sc-ready .scrim--hero { background: linear-gradient(180deg, rgba(16, 13, 24, 0.92) 0%, rgba(16, 13, 24, 0.86) 46%, rgba(16, 13, 24, 0.3) 62%, rgba(16, 13, 24, 0) 72%); }
  .sc-ready .cw--hero { left: var(--gutter); right: var(--gutter); top: calc(var(--strip-h) + 3svh); }
  /* anchored to the bottom and growing upward; the phone content is cut to fit, never clipped */
  .sc-ready .cw--lead, .sc-ready .cw--finale { left: calc(var(--gutter) + 14px); right: var(--gutter); top: auto; bottom: 3svh; max-height: none; max-width: none; overflow: visible; }
  .sc-ready .cw--trail { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 2svh; height: 58svh; }
  .sc-ready .cw--call .call__transcript { min-height: 4.5rem; }
  .sc-ready .cw--call .call__card { padding: var(--s-3); }
  .sc-ready .cw--call .cw__others { display: none; }
  .sc-ready .cw--call .cw__more { margin: var(--s-2) 0 0; font-size: var(--t-sm); }
  .bell-spot { display: none !important; }
  .sc-ready .ring { top: 34%; }
  .h1__big { font-size: clamp(2.75rem, 1.2rem + 8vw, 4rem); }
  .h1__sub { font-size: var(--t-lg); }
  .cw__lede { font-size: var(--t-base); }
  .wide-only, .ways, .cw__cols .cw__links:nth-child(2), .cw--core .cw__links li:nth-child(n+4), .cw__links li:nth-child(n+4) { display: none !important; }
  .cw__cols { grid-template-columns: 1fr; }
  .cw h2 { font-size: var(--t-xl); }
  .cw__links span { display: none; }
  .cw--does .cw__facts li:nth-child(n+4), .cw--does .cw__note { display: none; }
  .cw__cols { display: none !important; }
  .logos--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quote--home p { font-size: var(--t-base); }
  .desk-foot { margin-top: var(--s-5); }
  .desk-foot a { display: none; }
  .desk-foot span { font-size: var(--t-xs); }
  .sc-ready .cw--call .call { padding: var(--s-4); gap: var(--s-3); }
  .sc-ready .cw--call .call__title { font-size: var(--t-lg); }
  .sc-ready .cw__callh, .sc-ready .cw--call > .cw__place { display: none; }
  .cw__anchor { left: -18px; }
}
@media (max-height: 760px) and (min-width: 861px) {
  .sc-ready .cw--lead { top: calc(var(--strip-h) + 4vh); }
  .cw__links span { display: none; }
  .h1__big { font-size: clamp(2.75rem, 1.6rem + 4vw, 4.5rem); }
}

/* ------------------------------------------------------------------ no JavaScript: a plain page over the first frame */
html:not(.sc-ready) .world { opacity: 0.4; }
html:not(.sc-ready) .seg ~ .seg, html:not(.sc-ready) .seg > video, html:not(.sc-ready) .planes { display: none; }
html:not(.sc-ready) .world-copy { position: relative; z-index: 2; padding: calc(var(--strip-h) + var(--s-8)) var(--gutter) 0; display: grid; gap: var(--s-6); justify-items: start; }
html:not(.sc-ready) .cw { position: relative; width: min(100%, 46rem); padding: var(--s-7) var(--s-6) var(--s-7) var(--s-8); background: rgba(16, 13, 24, 0.9); border: 1px solid var(--c-line); border-radius: var(--r-2); }
html:not(.sc-ready) .cw__anchor { left: var(--s-5); top: var(--s-8); }
html:not(.sc-ready) .ring, html:not(.sc-ready) .signal, html:not(.sc-ready) .scrim, html:not(.sc-ready) .spacer, html:not(.sc-ready) .desk-foot { display: none; }
html:not(.sc-ready) .cw--call { width: min(100%, 60rem); }
html:not(.sc-ready) .desk { width: min(100%, 60rem); padding-bottom: var(--s-8); }
html:not(.sc-ready) .foot--home { margin-top: var(--s-8); width: 100vw; margin-left: calc(-1 * var(--gutter)); }

/* blocks that sit over the brightest film (the light at the end of the aisle, the morning lobby) carry their own ground */
.sc-ready .cw--panel { background: rgba(16, 13, 24, 0.86); padding: var(--s-6) var(--s-6) var(--s-6) var(--s-7); border-radius: var(--r-2); border: 1px solid var(--c-line); }
.sc-ready .cw--panel .cw__anchor { left: var(--s-3); top: calc(var(--s-6) + 0.35em); }

.plate { position: absolute; left: -100px; top: -100px; width: 0; height: 0; opacity: 0; pointer-events: none; background: rgba(16, 13, 24, 0.9); border-radius: var(--r-1); }
html:not(.sc-ready) .plate { display: none; }

/* ------------------------------------------------------------------ fix round */
.cw__links--phone { display: none !important; }
.cw__hub { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-2); font: 700 var(--t-sm)/1.2 var(--f-display); color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-signal); text-underline-offset: 4px; }
/* the home call: the player keeps the spoken line in view; the reader is not handed a scroll box */
.sc-ready .cw--trail .call__transcript { overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 3rem), transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 3rem), transparent 100%); }
.cw__more a { color: var(--c-ink); text-decoration-color: var(--c-signal); }
@media (max-width: 860px), (orientation: portrait) and (max-width: 1100px) {
  .sc-ready .cw--call .call__head p, .sc-ready .cw--call .call__context { font-size: var(--t-sm); }
  .cw__hub { min-height: 40px; margin-top: 0; }
}
/* desktop core panel: the two lists keep one rhythm */
.cw__cols { align-items: start; }
@media (max-width: 860px), (orientation: portrait) and (max-width: 1100px) {
  .sc-ready .cw__links--phone { display: grid !important; }
}
.sc-ready .cw--trail .call__line.is-clipped { visibility: hidden; }
@media (max-width: 860px), (orientation: portrait) and (max-width: 1100px) {
  /* the phone call panel: one row of controls and a one-line outcome card leave room for the transcript */
  .sc-ready .cw--call .call__controls:not([hidden]) { grid-template-columns: auto minmax(0, 1fr) auto; }
  .sc-ready .cw--call .call__time { grid-column: auto; }
  .sc-ready .cw--call .call__card dl { display: none; }
  .sc-ready .cw--call .call__card { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
  .sc-ready .cw--call .call__card-title { margin: 0; font-size: var(--t-sm); }
}
.call__time { white-space: nowrap; }
@media (max-width: 860px), (orientation: portrait) and (max-width: 1100px) {
  /* the finale sits on its own panel: on short phones it rises into the bright window */
  .sc-ready .cw--finale { left: var(--gutter); background: rgba(16, 13, 24, 0.9); border: 1px solid var(--c-line); border-radius: var(--r-2); padding: var(--s-5) var(--s-5) var(--s-4) calc(var(--s-5) + 14px); }
  .sc-ready .cw--finale .cw__anchor { left: 6px; }
  .desk-ways a { min-height: 44px; }
}
@media (max-width: 860px) and (max-height: 700px), (orientation: portrait) and (max-width: 1100px) and (max-height: 700px), (max-width: 380px) {
  .sc-ready .cw--trail { height: 60svh; }
  .sc-ready .ring { top: 25%; }
  .sc-ready .cw--call .call__head .call__context { display: none; }
}
@media (max-width: 340px) { .sc-ready .cw--call .call__time { display: none; } }
.cw .call__card-status { color: var(--c-signal-ink); }
/* the narrowest phones: the outcome card gives its room to the transcript */
@media (max-width: 340px) { .sc-ready .cw--call .call__card { display: none; } }
