/* A spread the size of the window. The incoming photograph and its type share a moving edge. */
.route-home { --depart-nav:76px; }
.route-home .masthead { z-index:6; margin-bottom:calc(-1 * var(--depart-nav)); background:transparent; color:#fff; }
.route-home .masthead .brand-period { color:#c4eadb; }
.route-home .masthead .mobile-menu nav { color:var(--ink); background:var(--paper-light); text-shadow:none; }
.departure-cover { --ivory:#fffdf4; color:var(--ivory); position:relative; }
.flight-stage { position:relative; height:100vh; height:100svh; min-height:30rem; isolation:isolate; overflow:hidden; background:#347e84; }
@media screen and (scripting:enabled) and (prefers-reduced-motion:no-preference) {
 .departure-cover[data-runway]::after { content:""; display:block; height:clamp(19rem,78svh,47rem); }
 .departure-cover[data-runway] .flight-stage { position:sticky; top:0; }
}
.flight-exposure,.departure-layer,.departure-frame,.departure-frame picture,.departure-frame img { width:100%; height:100%; position:absolute; inset:0; }
.departure-layer { overflow:hidden; isolation:isolate; background:#447b80; }
.departure-layer::after {
 content:""; pointer-events:none; z-index:-1; position:absolute; inset:0;
 background:linear-gradient(180deg,rgba(5,30,42,.59),rgba(5,30,42,.08) 12%,transparent 25%,transparent 62%,rgba(6,30,38,.1) 80%,rgba(3,24,30,.62)),
   radial-gradient(ellipse at 16% 82%,rgba(3,22,30,.84) 0%,rgba(4,28,35,.62) 28%,rgba(4,28,35,.25) 48%,transparent 72%);
}
.departure-frame { z-index:-2; overflow:hidden; }
.departure-frame img { display:block; object-fit:cover; object-position:center; transform:translate3d(var(--flight-pan,0%),0,0) scale(var(--flight-lens,1)); }
.departure-frame .image-type { width:100%; height:100%; display:grid; place-items:center; color:#fff3; background:#225663; font:400 23vw/1 var(--italic); }
.departure-frame[data-frame-place=sydney] img { object-position:54% center; }
.departure-copy { position:absolute; left:clamp(1.25rem,7vw,10rem); right:var(--gutter); bottom:clamp(7.5rem,16.5svh,12rem); z-index:1; text-shadow:0 1px 13px #092e3575; }
.departure-place { font:600 clamp(.72rem,.95vw,.93rem)/1.4 var(--sans); letter-spacing:.12em; text-transform:uppercase; margin-bottom:clamp(.7rem,2svh,1.6rem); }
.flight-title { max-width:none; margin:0; width:fit-content; display:flex; flex-wrap:wrap; align-items:baseline; column-gap:.12em; font:400 clamp(5.5rem,13.7vw,15rem)/1.04 var(--serif); letter-spacing:-.035em; }
.flight-title>span { display:block; max-width:100%; overflow-wrap:anywhere; }
.flight-title em { display:inline-block; color:#e0ffe8; font:italic 400 .40em/1.07 var(--italic); letter-spacing:-.035em; white-space:nowrap; }
.flight-title.long-place { max-width:21ch; font-size:clamp(3rem,7vw,8.5rem); line-height:.96; text-wrap:balance; }
.flight-hook { margin-top:clamp(.85rem,2svh,1.6rem); max-width:43ch; text-wrap:pretty; font:500 clamp(1rem,1.22vw,1.28rem)/1.42 var(--sans); }
.departure-choices { display:flex; align-items:center; flex-wrap:wrap; gap:0 clamp(.9rem,2.1vw,2.1rem); margin-top:.5rem; }
.departure-newsletter { display:inline-flex; align-items:center; min-height:44px; gap:.45em; text-decoration:none; font:500 .91rem/1.35 var(--sans); }
.departure-newsletter::before { content:""; display:block; width:.92em; height:.7em; border:1px solid currentColor; background:linear-gradient(34deg,transparent 46%,currentColor 49%,currentColor 54%,transparent 57%) top left / 51% 67% no-repeat,linear-gradient(-34deg,transparent 46%,currentColor 49%,currentColor 54%,transparent 57%) top right / 51% 67% no-repeat; }
.departure-newsletter:hover { text-decoration:underline; text-underline-offset:.3em; }
.departure-read { display:inline-flex; gap:.7em; align-items:center; min-height:44px; margin-top:.35rem; font:600 .94rem/1.35 var(--sans); text-decoration:none; }
.departure-read>span { text-decoration:underline; text-underline-offset:.35em; text-decoration-color:#f0fff5a6; }
.departure-read .arrow { box-sizing:content-box; border-radius:50%; border:1px solid #e8fce177; padding:.36em; }
.departure-read:hover .arrow { background:#fffef4; color:var(--ink); }
.flight-credit { position:absolute; right:var(--gutter); bottom:clamp(7.5rem,16.5svh,12rem); writing-mode:vertical-rl; font:400 .72rem/1.15 var(--sans); text-shadow:0 1px 5px #082424; }
.flight-credit a { text-decoration-color:#ffffff9c; }
.flight-edge { position:absolute; z-index:4; left:var(--gutter); right:var(--gutter); bottom:max(1.12rem,env(safe-area-inset-bottom)); display:flex; justify-content:space-between; align-items:center; gap:.7rem; border-top:1px solid #e4f5e980; padding-top:.55rem; }
.flight-scroll,.flight-still a { display:inline-flex; align-items:center; gap:.75rem; min-height:44px; color:inherit; font:500 .85rem/1.3 var(--sans); text-decoration:none; }
.flight-scroll i { display:grid; place-content:center; width:1.65rem; height:1.65rem; border:1px solid #f4fff3a1; border-radius:50%; font:400 1.05rem/1 var(--sans); }
.departure-console,.departure-console nav,.flight-still { display:flex; align-items:center; gap:clamp(.65rem,2vw,2.6rem); }
.departure-console button { display:flex; align-items:center; justify-content:center; position:relative; min-height:44px; min-width:44px; border:0; padding:0; background:none; color:inherit; font:500 .85rem/1.3 var(--sans); }
.departure-console nav button { gap:.46rem; }
.departure-console nav i { width:.43rem; height:.43rem; border:1px solid #f9fff0b3; border-radius:50%; }
.departure-console nav [aria-pressed=true] i { background:#d4ffdc; border-color:#d4ffdc; box-shadow:0 0 0 3px #deffe734; }
.reel-playback>span { display:grid; place-content:center; width:1.95rem; height:1.95rem; border:1px solid #e2fce8ad; border-radius:50%; }
.reel-playback>span::after { content:""; width:6px; height:8px; border-inline:2px solid currentColor; }
.reel-playback[data-paused]>span::after { width:0; height:0; margin-left:2px; border:0; border-block:4px solid transparent; border-left:6px solid currentColor; }
.flight-still { flex-wrap:wrap; }
.departure-cover :focus-visible { outline:2px solid #f3ffe3; outline-offset:3px; }
.empty-opening { min-height:50svh; padding-block:8rem 2rem; background:#15454e; color:#fff; }
.empty-opening h2 { font-size:clamp(3rem,8vw,8rem); }
@media(prefers-reduced-motion:no-preference) {
 .flight-title>span { transform:translate3d(calc(var(--flight-pose,0) * 2.1rem),0,0); }
 .flight-title em { transform:translate3d(calc(var(--flight-pose,0) * -1.5rem),0,0); }
 .flight-hook { transform:translate3d(0,calc(var(--flight-pose,0) * .5rem),0); }
 .departure-layer[data-wiping] { clip-path:polygon(0 0,var(--wipe-top) 0,var(--wipe-base) 100%,0 100%); }
 .departure-cover[data-running] .flight-scroll i { animation:flight-invite 1.65s cubic-bezier(.23,.6,.26,1) 2; }
 @keyframes flight-invite { 40%{ transform:translateY(4px); } }
}
@media(max-width:700px) {
 .route-home { --depart-nav:62px; }
 .departure-copy { left:var(--gutter); right:var(--gutter); bottom:clamp(6.25rem,13svh,8rem); }
 .flight-title { max-width:100%; display:grid; justify-items:start; font-size:clamp(3.6rem,18vw,8rem); line-height:1.02; }
 .flight-title em { display:block; position:relative; width:fit-content; margin:.06em 0 0 .8em; font-size:.52em; }
 .flight-title.long-place { font-size:clamp(2.8rem,11vw,5.8rem); }
 .flight-hook { max-width:min(34ch,90%); font-size:1rem; }
 .flight-credit { right:.55rem; bottom:5.35rem; font-size:.66rem; max-height:11rem; }
 .flight-edge { bottom:max(.55rem,env(safe-area-inset-bottom)); gap:.2rem; padding-top:.25rem; }
 .flight-scroll { gap:.44rem; font-size:.76rem; }
 .departure-console,.departure-console nav { gap:.14rem; }
 .departure-console nav button { font-size:.74rem; gap:.3rem; padding-inline:.2rem; }
 .departure-console nav i { width:.32rem; height:.32rem; }
 .reel-playback>span { width:1.55rem; height:1.55rem; }
}
@media(max-width:390px) {
 .flight-scroll { font-size:.7rem; gap:.28rem; }.flight-scroll i { width:1.22rem; height:1.22rem; }
 .departure-console nav button { font-size:.69rem; }
}
@media(max-width:350px) {
 .flight-scroll span { max-width:5ch; }.departure-console nav i {display:none;}
}
@media(max-height:560px) {
 .flight-stage { min-height:24rem; }
 .flight-title { display:flex; gap:.12em; }
 .departure-copy { bottom:4.4rem; }
 .departure-place { margin-bottom:.4rem; }
 .flight-title { font-size:clamp(3.2rem,15svh,6rem); }
 .flight-title em { display:inline; margin:0; font-size:.45em; }
 .flight-hook { margin-top:.62rem; }
 .departure-choices { margin-top:.2rem; }
 .departure-read { margin-top:0; }
 .flight-credit { bottom:5rem; }
 .flight-edge { bottom:.35rem; padding-top:0; }
}
@media(prefers-reduced-motion:reduce) { .reel-playback { display:none!important; } }
@media print {
 .route-home .masthead,.flight-edge,.flight-credit { display:none; }
 .departure-cover[data-runway]::after { display:none; }
 .departure-cover .flight-stage { height:16rem; min-height:0; position:static; }
 .departure-copy { bottom:1rem; }
}
.flight-stage::after {
 content:""; z-index:5; pointer-events:none; position:absolute; inset:auto -1px -1px; height:clamp(1.2rem,4svh,3rem);
 background:var(--paper); clip-path:polygon(0 97%,38% 81%,78% 17%,100% 0,100% 100%,0 100%);
 transform:scaleY(var(--flight-release,0)); transform-origin:bottom;
}
/* The photograph spans both grid rows. Type and controls can grow with a reader’s
   text size without being clipped by the full-height frame on a narrow phone. */
@supports (grid-template-rows:subgrid) {
  @media(max-width:700px) {
    .flight-stage { display:grid; grid-template-rows:minmax(auto,1fr) auto; height:auto; min-height:max(100svh,25rem); }
    .flight-exposure { position:relative; inset:auto; grid-area:1/1/3/2; display:grid; grid-template-rows:subgrid; height:auto; }
    .departure-layer { position:relative; inset:auto; grid-area:1/1/3/2; display:grid; grid-template-rows:subgrid; height:auto; }
    .departure-copy { position:relative; inset:auto; grid-area:1/1; align-self:end; margin:calc(var(--depart-nav) + 1.5rem) var(--gutter) clamp(2.5rem,7svh,4.6rem); }
    .flight-edge { position:relative; inset:auto; grid-area:2/1; margin:0 var(--gutter) max(.55rem,env(safe-area-inset-bottom)); flex-wrap:wrap; }
    .flight-credit { right:.38rem; bottom:4.4rem; }
    .departure-console,.departure-console nav { min-width:0; flex-wrap:wrap; }
    .flight-still { gap:.2rem .7rem; }
  }
}
@media(max-width:400px) {
  .departure-choices { column-gap:.8rem; }
  .departure-newsletter { font-size:.85rem; }
  .flight-credit { background:#102f35d9; padding:.32rem .18rem; right:0; }
}

/* Keep the sky and water open. Darken the water immediately behind the type. */
@media screen {
  .departure-layer::after {
    background:
      linear-gradient(180deg,#081b2cb8,transparent 24%,transparent 73%,#081b2cbf),
      radial-gradient(ellipse at 12% 79%,#071c2fda 0%,#0c243a9c 25%,#0a223d3b 48%,transparent 71%);
  }
  .departure-cover { --sun:#ffe3a0; }
  .departure-place { display:flex; align-items:center; gap:.65rem; }
  .departure-place::before { content:""; width:1.85rem; height:2px; background:var(--sun); }
  .flight-title em { color:var(--sun); }
  .departure-choices { margin-top:.82rem; }
  .departure-read {
    margin:0; padding:.25rem .85rem .25rem 1rem; gap:.75rem;
    color:#132b37; background:var(--sun); text-shadow:none;
  }
  .departure-read>span { text-decoration:none; }
  .departure-read .arrow { border:0; padding:.19em; }
  .departure-read:is(:hover,:focus-visible) { background:#fff7d8; }
  .departure-read:hover .arrow { color:inherit; background:transparent; }
  .departure-newsletter { text-underline-offset:.3em; text-decoration:underline; text-decoration-color:#ffffff9c; }
  .flight-edge { border-color:#ffffff70; }
  .departure-console nav img { display:none; }
}
@media screen and (min-width:701px) {
  .departure-console nav { gap:clamp(.8rem,2vw,2.7rem); }
  .departure-console nav button { gap:.6rem; }
  .departure-console nav i:has(img) {
    display:block; width:clamp(2.6rem,3.5vw,4.5rem); height:auto; aspect-ratio:1.52;
    padding:2px; border:1px solid #ffffff85; border-radius:0; background:#142c3d99;
  }
  .departure-console nav img { display:block; width:100%; height:100%; object-fit:cover; }
  .departure-console nav :is([aria-pressed=true],button:hover) i:has(img) { border-color:var(--sun); background:var(--sun); box-shadow:none; }
  .departure-console nav [aria-pressed=true] span { text-decoration:underline; text-decoration-color:var(--sun); text-underline-offset:.35em; }
}
@media screen and (max-width:700px) {
  .departure-console nav [aria-pressed=true] i { background:var(--sun); border-color:var(--sun); box-shadow:0 0 0 2px #ffe3a03d; }
}
@media screen and (max-height:560px) { .departure-choices { margin-top:.25rem; } }

.mast-name { margin:0; font:inherit; display:flex; }
.home-guide-links { display:flex; flex-wrap:wrap; gap:.65rem 1.3rem; margin-top:1rem; }
.home-guide-links a { display:inline-flex; align-items:center; min-height:44px; text-underline-offset:.2em; }
.home-finder-intro{font:400 1.08rem/1.45 var(--serif);margin:0 0 .8rem;color:var(--ink)}

@media screen and (max-width:760px) {
 .flight-stage {
   height:calc(100svh - var(--mobile-dock-space));
 }
}
@supports (grid-template-rows:subgrid) {
 @media screen and (max-width:700px) {
   .flight-stage { height:auto; min-height:max(calc(100svh - var(--mobile-dock-space)),25rem); }
 }
}
