/* ==========================================================================
   R. Lynch Photography: Flyby
   The aircraft are the subject. Photos run large on a night-sky ground; each
   aircraft's type designation is set huge in its operator's livery colour
   (--c), in Archivo condensed to its narrowest. Motion follows a spotter
   panning with a passing aircraft. One family throughout, plus a mono for data.
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --ink-2: #121214;
  --ink-3: #1a1a1d;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --paper: #ecebe7;
  --muted: #9b9a95;
  --dim: #6b6a66;
  --sign: #ffc72c;
  --gutter: clamp(16px, 3.6vw, 56px);
  --max: 1680px;
  --header-h: clamp(76px, 6.4vw, 104px);
  --f-sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --f-display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --accent: var(--sign);       /* the one interface accent: links, labels, controls */
  --c: var(--sign);            /* livery colour, used only for an aircraft's giant type */
  --edge: max(var(--gutter), env(safe-area-inset-left, 0px));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 16px/1.6 var(--f-sans); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
button { font-family: inherit; }
::selection { background: var(--sign); color: #111; }
:focus-visible { outline: 2px solid var(--sign); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--sign); color: #111; padding: 8px 14px; font-weight: 600; }
.skip-link:focus { left: 8px; }
.mono { font-family: var(--f-mono); font-size: 0.92em; letter-spacing: 0.02em; }
span.mono, p.mono, dt.mono, header.mono, .sec-head.mono { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
/* Display type: Archivo at its narrowest and heaviest, uppercase. */
.display, .display-md, .page-title, .intro-title, .type, .tr-name, .col-name, .footer-cta-v, .next-big-name, .photo-type {
  font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.86;
}
.display-md { font-size: clamp(36px, 4.6vw, 72px); line-height: 0.9; margin: 10px 0 18px; text-wrap: balance; }
.arrow-link { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 500; border-bottom: 2px solid var(--accent); padding-bottom: 3px; transition: color 0.3s, gap 0.3s var(--ease); }
.arrow-link:hover { color: #fff; gap: 12px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 24px 0 60px; }

.text-link { display: inline-flex; gap: 6px; color: var(--paper); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color 0.3s, color 0.3s; }
.text-link:hover { border-color: var(--accent); color: #fff; }
.back-link { display: inline-block; font-size: 14px; color: var(--muted); padding: 6px 0; transition: color 0.3s; }
.back-link:hover { color: var(--paper); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--paper); border-radius: 0; background: var(--paper); color: var(--ink); font: 500 15px var(--f-sans); cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.btn:hover { background: var(--sign); border-color: var(--sign); color: #111; }
.btn-quiet { padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--paper); font: 500 14px var(--f-sans); cursor: pointer; }
.btn-quiet:hover { border-color: var(--paper); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; position: relative; z-index: 3; }
.wordmark { --wm: clamp(20px, 2vw, 36px); display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: #fff; }
.wordmark-main { font-size: var(--wm); font-weight: 500; font-stretch: 125%; letter-spacing: 0.2em; margin-right: -0.2em; }
.wordmark-sub { margin-top: calc(var(--wm) * 0.2); font-size: calc(var(--wm) * 0.23); font-weight: 500; font-stretch: 125%; letter-spacing: 1.02em; margin-right: -1.02em; }
/* An uploaded logo matches the built-in wordmark's width (~206px on a laptop), capped in height
   so a tall or square logo can't take over the header. */
.logo-img { width: clamp(143px, 14.3vw, 258px); height: auto; max-height: 72px; object-fit: contain; object-position: left center; }
.footer-brand .logo-img { width: clamp(143px, 11.4vw, 200px); }
.logo-invert { filter: invert(1); }

/* ---------- Logo & landing flight ----------
   On the first page of a visit the logo's aircraft flies across the screen and
   lands on the runway line under the wordmark (see site.js). */
.wm-runway { position: relative; display: block; width: 0; min-width: 100%; aspect-ratio: 337 / 31; margin-top: calc(var(--wm) * 0.18); }
.wm-rwy { position: absolute; top: 47.4%; height: 1px; width: 31.5%; }
.wm-rwy-l { left: 1.5%; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.85)); transform-origin: 100% 50%; }
.wm-rwy-r { right: 1.5%; background: linear-gradient(270deg, rgba(255,255,255,0), rgba(255,255,255,0.85)); transform-origin: 0 50%; }
.wm-plane { position: absolute; left: 34.42%; top: 0; width: 31.45%; height: 74.2%; overflow: visible; }
/* Runway lines light up outward from the touchdown point after the flight lands. */
.wordmark .wm-rwy { transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease; }
.landing .site-header .wm-rwy { transform: scaleX(0); opacity: 0.3; }
.landing .site-header .wm-plane { visibility: hidden; }
.flying .site-header .wm-plane { visibility: visible; will-change: transform; }
/* While 'behind', the header drops beneath the hero photo so the aircraft passes behind it. */
/* Promote both layers for the whole flight so switching their order is cheap (no re-layering). */
.flying .site-header, .flying .hero-slides { will-change: transform; }
.plane-behind .site-header { z-index: 1; }
.plane-behind .hero-slides { z-index: 2; }
.first-page #main, .first-page .site-footer { animation: none !important; }  /* composited while flying; drawn as vector again once landed */

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--ink); border-bottom: 1px solid transparent; transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s; }
.site-header.is-stuck { background: rgba(8, 9, 11, 0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.header-inner { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.site-nav a { position: relative; font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.72); padding: 8px 0; transition: color 0.3s; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--sign); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease); }
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { transform: scaleX(0.35); }
.site-nav a.is-active { color: #fff; }
.site-nav a.is-active::after { transform: scaleX(1); }

.menu-btn { display: none; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; color: #fff; cursor: pointer; position: relative; z-index: 3; }
.menu-btn-icon { position: absolute; left: 10px; right: 10px; top: 50%; height: 8px; margin-top: -4px; }
.menu-btn-icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn-icon i:first-child { top: 0; }
.menu-btn-icon i:last-child { top: 7px; }
.menu-open .menu-btn-icon i:first-child { top: 3.5px; transform: rotate(45deg); }
.menu-open .menu-btn-icon i:last-child { top: 3.5px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 90; background: var(--ink); display: flex; align-items: center; padding: var(--header-h) var(--gutter) 40px; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.menu-nav { display: grid; gap: 2px; width: 100%; }
.menu-nav a { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(48px, 15vw, 80px); line-height: 0.95; transform: translateX(-24px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s, color 0.3s; }
.menu-nav a:active { color: var(--sign); }
.menu-open .menu-nav a { transform: none; opacity: 1; transition-delay: calc(0.05s + var(--i) * 0.05s); }
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .wordmark { --wm: 16px; }
  .logo-img { width: 114px; max-height: 44px; }
  .site-nav { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Reveal (below the fold only; see site.js) ---------- */
.js [data-reveal='up'] { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal='img'] .jgrid-media { opacity: 0; transition: opacity 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in, .reveal-all [data-reveal] { opacity: 1; transform: none; }
.js [data-reveal='img'].is-in .jgrid-media, .reveal-all [data-reveal='img'] .jgrid-media { opacity: 1; }
.no-anim, .no-anim * { transition: none !important; }

/* ---------- Flyby (home hero) ----------
   A run of aircraft pans past sideways (on its own, or by swipe, drag, arrows or
   sideways trackpad scroll). Each aircraft's designation, set huge in its livery
   colour, moves slower than the photo, so the aircraft appears to fly through it.
   Vertical scrolling always moves the page. */
.flyby { position: relative; }
/* Only as tall as the card needs: the controls, then the card (photo ~52% of the screen height plus its label and caption). */
.fly-view { position: relative; height: calc(min((80vw - 28px) * 0.5625, 681px, 52vh) + 236px); height: calc(min((80vw - 28px) * 0.5625, 681px, 52svh) + 236px); min-height: 0; overflow: hidden;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.fly-view.is-dragging { cursor: grabbing; }
.fly-track { position: absolute; inset: 0 auto 0 0; display: flex; height: 100%; will-change: transform; }
.frame { position: relative; flex: none; width: 100vw; height: 100%; }
/* The type lives inside the card, centred on the photo: the solid letters sit above the card's
   background but beneath the photo (so their colour starts right at the photo's edge), and
   the outline sits over the photo. */
/* Every card is the same size: the photo shows whole in a 16:9 frame, any spare space filled
   with a soft blur of the same photo (so wide panoramas aren't cropped). */
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg, var(--ink-3)) var(--backdrop, none) center / cover no-repeat; }
.card-media::before { content: ''; position: absolute; inset: 0; background: rgba(8, 9, 11, 0.25); z-index: 1; }
.frame .type { position: absolute; left: 50%; top: 50%; translate: -50% -52%; white-space: nowrap; pointer-events: none; z-index: 1;
  /* Height follows the photo; short designations are tracked out so the letters always run past
     both sides of the photo (to about 1.3× its width) whatever the type is called. */
  --pw: min(80vw, 1240px, calc(52svh * var(--ar) + 28px));
  --ph: calc((var(--pw) - 28px) / var(--ar));
  --fs: calc(var(--ph) * 0.86);
  --ls: max(-0.01em, calc((var(--pw) * 1.3 - var(--len) * 0.34 * var(--fs)) / var(--len)));
  font-size: var(--fs); letter-spacing: var(--ls); text-indent: var(--ls);
  color: var(--c); opacity: 0.86; will-change: transform; }
/* The same letters as a thin outline over the photo: the aircraft flies through its type. */
/* The designation lettering is hidden for now (the size and placement vary too much between
   aircraft); remove this rule to bring it back. */
.frame .type { display: none; }
/* A slightly stronger stroke with a soft shadow that follows it, so it reads against light skies. */
.frame .type-outline { color: transparent; -webkit-text-stroke: 1.6px rgba(255, 255, 255, 0.82); opacity: 1; z-index: 3; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
.plane { position: absolute; left: 50%; top: 92px; margin: 0; z-index: 2; translate: -50% 0; transform-origin: 50% 50%; will-change: transform;
  width: min(80vw, 1240px, calc(52vh * 16 / 9 + 28px)); width: min(80vw, 1240px, calc(52svh * 16 / 9 + 28px));
  padding: 0 14px 4px; background: rgba(17, 19, 23, 0.94); border: 1px solid var(--line); border-top: 2px solid var(--c);
  box-shadow: 0 46px 90px -34px rgba(0, 0, 0, 0.85); }
/* Each aircraft framed like an identification card. */
.card-head, .card-cap { position: relative; z-index: 4; }
.card-head { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 10px; color: var(--muted); white-space: nowrap; overflow: hidden; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.card-head span:first-child { color: var(--c); }
.plane img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; pointer-events: none; }
.card-cap { margin: 0; }
.card-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 12px; }
.card-text { display: grid; gap: 4px; min-width: 0; }
.card-op { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(22px, 2.2vw, 34px); line-height: 1; overflow-wrap: anywhere; }
.card-type { color: var(--muted); }
.card-type .nw { white-space: nowrap; }
.card-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); color: var(--c); font-size: 17px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.card-link:hover .card-go { background: var(--c); border-color: var(--c); color: var(--ink); }
.card-link:hover .card-op { color: #fff; }
.hud { position: absolute; z-index: 6; left: 0; right: 0; top: clamp(14px, 2.4vh, 26px); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px; color: var(--muted); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-count { font-variant-numeric: tabular-nums; }
.hud-rail { flex: 1; max-width: 360px; height: 1px; background: var(--line-2); position: relative; }
.hud-rail span { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--c); transform-origin: 0 50%; transform: scaleX(0); transition: background 0.6s; }
.hud-hint { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.hud-hint i { display: inline-block; width: 26px; height: 1px; background: currentColor; position: relative; animation: nudge 1.6s ease-in-out infinite; }
.hud-hint i::after { content: ''; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 6px solid currentColor; border-right: 0; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.keys { display: inline-flex; gap: 6px; }
.key { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(8, 9, 11, 0.4); color: var(--paper); font: 500 15px var(--f-sans); cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.key:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
@media (max-width: 700px) {
  /* Sized to the card (photo ~16:9 + its header and caption) plus the controls above. */
  /* Sized to the card (a 16:9 photo frame plus its label and caption). */
  .fly-view { height: calc((88vw - 20px) * 0.5625 + 206px); min-height: 0; max-height: none; }
  .plane { top: 80px; }
  /* Sized to the designation's length so it always fits the screen width. */
  .frame .type { --pw: 88vw; --ph: calc((88vw - 20px) / var(--ar)); --fs: calc(var(--ph) * 0.9);
    --ls: max(-0.01em, calc((100vw - var(--len) * 0.34 * var(--fs)) / var(--len))); }
  .plane { width: 88vw; padding: 0 10px 2px; }
  .card-head { padding: 10px 0 8px; }
  .card-link { padding: 12px 0 10px; }
  .card-go { width: 36px; height: 36px; }
  .hud-hint { display: none; }
  .keys { margin-left: auto; }
}
.flyby-empty { min-height: 60vh; display: flex; align-items: flex-end; }
.empty-hero { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter) 48px; }
.empty-hero .display { font-size: clamp(56px, 10vw, 170px); max-width: 12ch; text-wrap: balance; }

/* Statement under the flyby */
.section.intro { padding-top: clamp(24px, 3vw, 44px); }
/* The intro sits evenly between the hero cards and the next section. */
.section.intro + .section { padding-top: calc(clamp(24px, 3vw, 44px) + 24px); }
.intro-title { font-size: clamp(48px, 8.4vw, 150px); max-width: 13ch; text-wrap: balance; }
.intro-sub { margin: 18px 0 0; max-width: 56ch; color: var(--muted); font-size: clamp(16px, 1.2vw, 19px); }

/* ---------- Sections & page heads ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 136px) var(--gutter) 0; }
.section-tight { padding-top: 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2); color: var(--muted); }
.sec-head > :first-child { color: var(--paper); }
.sec-head > :last-child { margin-left: auto; }
.sec-head a { transition: color 0.3s; }
.sec-head a:hover { color: var(--paper); }
.sec-hint { margin-left: auto; }
.sec-hint + a { margin-left: 24px !important; }
@media (max-width: 700px) { .sec-hint { display: none; } }
.page-head { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 6vw, 88px) var(--gutter) clamp(28px, 3.6vw, 52px); }
.page-kicker { display: block; color: var(--accent); margin-bottom: 14px; }
.page-title { font-size: clamp(60px, 11vw, 190px); max-width: 14ch; text-wrap: balance; overflow-wrap: anywhere; }
.page-intro { margin: 20px 0 0; max-width: 60ch; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); }
.page-intro .arrow-link { margin-left: 6px; color: var(--paper); }
.back-link { display: inline-block; color: var(--muted); padding: 6px 0; margin-bottom: 16px; transition: color 0.3s; }
.back-link:hover { color: var(--paper); }
.page-404 { min-height: 56vh; }
.lede { font-size: clamp(16px, 1.05vw, 17.5px); line-height: 1.65; color: var(--paper); }

/* ---------- Justified grid ---------- */
.jgrid { --row: clamp(180px, 19vw, 320px); --gap: clamp(6px, 0.6vw, 10px); display: flex; flex-wrap: wrap; gap: var(--gap); }
.jgrid::after { content: ''; flex-grow: 999999; }
.jgrid-item { position: relative; display: block; flex-grow: calc(var(--ar) * 100); flex-basis: calc(var(--ar) * var(--row)); aspect-ratio: var(--ar); max-height: calc(var(--row) * 1.6); }
.jgrid-media { position: absolute; inset: 0; overflow: hidden; background: var(--bg, var(--ink-3)); display: block; }
.jgrid-media img { width: 100%; height: 100%; object-fit: cover; }
.jgrid-item .jgrid-media img { transition: transform 1.2s var(--ease), opacity 0.5s; }
.jgrid-caption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.jc-title { font-family: var(--f-display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 18px; line-height: 1.05; }
.jc-meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.03em; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
  .jgrid-item:hover .jgrid-media img { transform: scale(1.03); }
  .jgrid-item:hover .jgrid-caption, .jgrid-item:focus-visible .jgrid-caption { opacity: 1; }
}
@media (max-width: 600px) { .jgrid { --row: 150px; } .jgrid-caption { display: none; } }

@media (max-width: 700px) {
  .section { padding-top: 56px; }
  .section-tight { padding-top: 0; }
  .section.intro { padding-top: 12px; }
  .section.intro + .section { padding-top: 33px; }
  .intro-sub { margin-top: 12px; }
  .page-head { padding: 28px var(--gutter) 22px; }
  .page-kicker { margin-bottom: 10px; }
  .page-intro { margin-top: 14px; }
  .sec-head { padding-bottom: 10px; }
  .display-md { margin: 8px 0 12px; }
  .at-copy .lede { margin-bottom: 18px; }
  .about-teaser-grid { gap: 22px; }
}

/* ---------- Collections (gallery cards) ---------- */
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(10px, 1.4vw, 20px); margin-top: 22px; }
.col { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg, var(--ink-3)); isolation: isolate; }
.col-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14) translateX(-5%); transition: transform 2s var(--ease), opacity 0.5s; }
.col::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 42%, rgba(0, 0, 0, 0.8)); z-index: 1; }
.col-text { position: absolute; z-index: 2; left: clamp(16px, 1.6vw, 24px); right: clamp(16px, 1.6vw, 24px); bottom: clamp(14px, 1.6vw, 22px); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.col-name { font-size: clamp(34px, 3.4vw, 56px); line-height: 0.9; overflow-wrap: anywhere; min-width: 0; }
.col-count { color: rgba(255,255,255,0.75); white-space: nowrap; padding-bottom: 4px; }
@media (hover: hover) { .col:hover .col-img { transform: scale(1.14) translateX(5%); } }
@media (max-width: 760px) { .col { aspect-ratio: 16 / 11; } }

/* ---------- About teaser ---------- */
.about-teaser-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.about-teaser-grid.no-portrait { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.at-media { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg); }
.at-media img { width: 100%; height: 100%; object-fit: cover; }
.at-copy .lede { margin-bottom: 26px; }
@media (max-width: 820px) { .about-teaser-grid { grid-template-columns: 1fr; } }

/* ---------- Photos (browse) ---------- */
.gallery-tabs { max-width: var(--max); margin: 0 auto 18px; padding: 0 var(--gutter); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gallery-tabs::-webkit-scrollbar { display: none; }
.gallery-tabs a { flex: none; display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.gallery-tabs a .mono { font-size: 11px; letter-spacing: 0.04em; color: var(--dim); }
.gallery-tabs a:hover { color: var(--paper); border-color: var(--paper); }
.gallery-tabs a.is-active { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.gallery-tabs a.is-active .mono { color: var(--ink); opacity: 0.6; }
.browse-bar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.browse-bar .log-filters { flex: 1; margin-bottom: 18px; }
@media (max-width: 700px) {
  .browse-bar .view-toggle { display: none; }
  /* Gallery buttons scroll sideways: fade the right edge so it's clear there are more. */
  .gallery-tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 40px; }
  /* Filters: dropdowns two to a row, search full width. */
  .browse-bar .log-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .browse-bar .log-filters .select select { width: 100%; }
  .browse-bar .log-filters .search { grid-column: 1 / -1; }
  .browse-bar .log-filters .select:only-of-type { grid-column: 1 / -1; }
}

/* ---------- Gallery page ---------- */
.gallery-head { padding-bottom: clamp(20px, 2.4vw, 32px); }
.gallery-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.gallery-meta .page-intro { margin: 0; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-2); }
.view-toggle button { padding: 9px 16px; border: 0; background: transparent; color: var(--muted); font: 500 12px var(--f-sans); letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.3s, color 0.3s; }
.view-toggle button[aria-pressed='true'] { background: var(--paper); color: var(--ink); }
.gallery-views .view-strip { display: none; }
.gallery-views[data-view='strip'] .view-grid { display: none; }
.gallery-views[data-view='strip'] .view-strip { display: block; }

/* Filmstrip: full-height frames side by side, scroll-snapped */
.view-strip { position: relative; }
.strip-track {
  --h: min(70vh, 760px);
  display: flex; gap: clamp(10px, 1.2vw, 18px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); scrollbar-width: none; cursor: grab;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip-track:focus-visible { outline-offset: -2px; }
.strip-frame { flex: none; margin: 0; scroll-snap-align: center; width: calc(var(--h) * var(--ar)); max-width: calc(100vw - var(--gutter) * 2); }
.strip-media { display: block; height: var(--h); max-height: calc((100vw - var(--gutter) * 2) / var(--ar)); background: var(--bg); overflow: hidden; }
.strip-media img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.strip-frame figcaption { display: flex; align-items: baseline; gap: 12px; padding-top: 12px; font-size: 14px; min-width: 0; }
.sf-num { font-family: var(--f-mono); font-size: 11px; color: var(--sign); }
.sf-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-meta { font-family: var(--f-mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: auto; }
.strip-frame { opacity: 0.45; transition: opacity 0.5s; }
.strip-frame.is-current { opacity: 1; }
.strip-controls { max-width: var(--max); margin: 18px auto 0; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: flex-end; gap: 14px; font-size: 13px; color: var(--muted); }
.strip-count { font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; }
.strip-btn { width: 42px; height: 42px; border-radius: 0; border: 1px solid var(--line-2); background: none; color: var(--paper); font-size: 15px; cursor: pointer; transition: border-color 0.3s; }
.strip-btn:hover { border-color: var(--paper); }
@media (max-width: 640px) { .strip-track { --h: 52vh; } .sf-meta { display: none; } }

.next-big { display: grid; gap: 8px; padding: clamp(26px, 3vw, 40px) 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.next-big-name { font-size: clamp(48px, 8vw, 140px); transition: color 0.3s, letter-spacing 0.6s var(--ease); }
.next-big:hover .next-big-name { color: var(--sign); letter-spacing: 0.01em; }

/* ---------- Photo page ---------- */
.photo-page { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.photo-stage { margin: 0 calc(var(--gutter) * -1); display: flex; justify-content: center; background: var(--ink-2); }
.photo-main { max-height: calc(100vh - var(--header-h)); width: auto; object-fit: contain; }
.photo-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.photo-bar .back-link { margin: 0; }
.photo-pager { display: flex; gap: 22px; color: var(--muted); }
.photo-pager a:hover { color: var(--paper); }
.photo-head { display: grid; gap: 14px 40px; align-items: end; padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 2.6vw, 36px); }
.photo-type { margin: 0; font-size: clamp(56px, 9vw, 150px); color: var(--c); line-height: 0.82; overflow-wrap: anywhere; }
.photo-type.type-long { font-size: clamp(44px, 6.5vw, 110px); }
.photo-type a:hover { -webkit-text-stroke: 2px var(--c); color: transparent; }
.photo-op { margin: 0 0 6px; font-family: var(--f-display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 40px); line-height: 1; }
.photo-op a:hover { color: var(--accent); }
.photo-title { font-size: clamp(17px, 1.4vw, 21px); font-weight: 400; color: rgba(236,235,231,0.82); letter-spacing: 0; line-height: 1.4; }
.specs { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); border-top: 2px solid var(--accent); }
.specs div { display: grid; gap: 6px; align-content: start; padding: 16px 20px 18px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-size: 17px; font-weight: 500; }
.specs dd small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; margin-top: 2px; }
.specs .mono-v { font-family: var(--f-mono); font-size: 16px; letter-spacing: 0.04em; }
.specs dd a { border-bottom: 1px solid var(--line-2); transition: border-color 0.3s; }
.specs dd a:hover { border-color: var(--accent); }
.photo-info { display: grid; gap: 20px; justify-items: start; padding: clamp(26px, 3.6vw, 48px) 0; }
.photo-caption { color: rgba(236,235,231,0.84); max-width: 62ch; font-size: clamp(16px, 1.15vw, 18px); }
.photo-caption p:last-child { margin-bottom: 0; }
.photo-neighbours { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pn { display: flex; align-items: center; gap: 16px; padding: 20px 0; }
.pn-next { flex-direction: row-reverse; text-align: right; }
.pn-media { width: 120px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg); flex: none; }
.pn-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.pn:hover .pn-media img { transform: scale(1.05); }
.pn-text { display: grid; gap: 4px; }
.pn-k { color: var(--muted); }
.pn-title { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 36px); line-height: 0.95; }
@media (max-width: 820px) {
  .photo-neighbours { grid-template-columns: 1fr; }
  .pn-next { flex-direction: row; text-align: left; }
}

/* ---------- Flight log ---------- */
.log-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.select, .search { position: relative; }
.select select, .search input {
  height: 42px; padding: 0 38px 0 14px; border: 1px solid var(--line-2); border-radius: 0; background: var(--ink-2); color: var(--paper);
  font: 400 14px var(--f-sans); appearance: none; -webkit-appearance: none; max-width: 100%;
}
.select::after { content: ''; position: absolute; right: 16px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.search { flex: 1 1 220px; }
.search input { width: 100%; padding-right: 14px; }
.select select:focus, .search input:focus { outline: none; border-color: var(--paper); }
.js .log-filters .btn-quiet { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 0; background: var(--ink-3); font-size: 13px; transition: background 0.3s; }
.chip span { color: var(--muted); }
.chip b { font-weight: 400; color: var(--muted); margin-left: 2px; }
.chip:hover { background: #26262a; }
.chip-clear { background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Map ---------- */
.map-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; }
/* Its own stacking layer: Leaflet's panes (z-index up to 1000) stay beneath the header and menu. */
.map { position: relative; z-index: 0; isolation: isolate; height: min(68vh, 720px); background: #0f1a26; border: 1px solid var(--line-2); border-right: 0; border-radius: 6px 0 0 6px; overflow: hidden; }
.map-panel { border: 1px solid var(--line-2); border-radius: 0 6px 6px 0; padding: 22px; overflow-y: auto; max-height: min(68vh, 720px); background: var(--ink-2); }
.map-hint { color: var(--muted); margin: 0; }
.mp-code { font-family: var(--f-mono); font-size: 12px; color: var(--sign); }
.mp-name { font-size: 20px; margin: 4px 0 2px; }
.mp-place { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.mp-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }
.mp-thumbs a { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink-3); }
.mp-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.mp-thumbs a:hover img { transform: scale(1.05); }
.map.leaflet-container { background: radial-gradient(120% 100% at 50% 40%, #13202e 0%, #0d1621 100%); font-family: var(--f-sans); outline: none; }
.leaflet-control-attribution { background: rgba(11,11,12,0.7) !important; color: var(--dim) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--ink-2) !important; color: var(--paper) !important; border-color: var(--line) !important; }
.apt-marker { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(20,20,22,0.85); border: 1.5px solid var(--sign); color: var(--sign); box-shadow: 0 0 0 5px rgba(255,199,44,0.12), 0 0 18px rgba(255,199,44,0.35); font: 500 11px var(--f-mono); transition: transform 0.3s var(--ease), background 0.3s; }
.apt-marker.is-active, .leaflet-marker-icon:hover .apt-marker { background: var(--sign); color: #111; transform: scale(1.15); }
.airport-list { display: grid; border-top: 1px solid var(--line); }
.airport-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 40px; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: background 0.3s; }
.airport-row:hover .ar-name { color: #fff; }
.ar-code { color: var(--sign); }
.ar-name { display: grid; font-size: 15px; }
.ar-name small { color: var(--muted); font-size: 13px; }
.ar-thumbs { display: flex; gap: 4px; }
.ar-thumbs img { width: 54px; height: 36px; object-fit: cover; }
.ar-count { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
@media (max-width: 860px) {
  .map-wrap { grid-template-columns: 1fr; }
  .map { height: 56vh; border-right: 1px solid var(--line-2); border-radius: 6px 6px 0 0; }
  .map-panel { max-height: none; border-top: 0; border-radius: 0 0 6px 6px; }
  .ar-thumbs { display: none; }
  .airport-row { grid-template-columns: 56px minmax(0, 1fr) 32px; }
}

/* ---------- About ---------- */
.about { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.about.no-portrait { grid-template-columns: minmax(0, 1fr); }
.about-media { position: sticky; top: calc(var(--header-h) + 24px); margin: 0; background: var(--bg); }
.prose { color: rgba(236,235,231,0.84); max-width: 62ch; }
.prose .lede { color: var(--paper); }
.about-actions { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-media { position: relative; top: 0; } }

/* ---------- Contact ---------- */
.contact { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 110px); }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.contact-list li { padding-left: 16px; position: relative; }
.contact-list li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1.5px; background: var(--sign); }
.form { display: grid; gap: 10px; max-width: 760px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.fl { position: relative; display: block; }
.fl input, .fl textarea { width: 100%; padding: 24px 0 10px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--paper); font: 400 17px/1.4 var(--f-sans); transition: border-color 0.3s; }
.fl textarea { resize: vertical; min-height: 140px; }
.fl > span { position: absolute; left: 0; top: 24px; color: var(--muted); font-size: 17px; pointer-events: none; transform-origin: 0 0; transition: transform 0.35s var(--ease), color 0.3s; }
.fl input:focus, .fl textarea:focus { outline: none; border-color: var(--paper); }
.fl input:focus + span, .fl input:not(:placeholder-shown) + span, .fl textarea:focus + span, .fl textarea:not(:placeholder-shown) + span { transform: translateY(-20px) scale(0.72); }
.form .btn { justify-self: start; margin-top: 20px; }
.hp { position: absolute !important; left: -10000px; }
.notice { padding: 24px; border: 1px solid var(--line-2); border-radius: 4px; margin-bottom: 20px; }
.notice h2 { font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.notice p { margin: 0; color: var(--muted); }
.notice-error { border-color: rgba(255,90,80,0.5); color: #ffb4ad; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(64px, 11vw, 160px); border-top: 1px solid var(--line-2); }
.footer-cta { display: grid; gap: 14px; max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 72px) var(--gutter); border-bottom: 1px solid var(--line); }
.footer-cta-k { color: var(--accent); }
.footer-cta-v { font-size: clamp(52px, 10vw, 176px); text-wrap: balance; transition: color 0.4s; }
.footer-arrow { display: inline-block; color: var(--accent); transition: transform 0.6s var(--ease); }
.footer-cta:hover .footer-arrow { transform: translateX(0.18em); }
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px 48px; }
.footer-brand .wordmark { --wm: clamp(20px, 1.6vw, 28px); }
.footer-nav, .footer-social { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.footer-nav { justify-content: center; }
.footer-social { justify-content: flex-end; }
.footer-nav a:hover, .footer-social a:hover { color: var(--paper); }
.footer-social a { overflow-wrap: anywhere; }
.footer-legal { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter) 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--line); }
.footer-legal p { margin: 0; }
[data-clock] .nw { white-space: nowrap; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; justify-items: start; }
  .footer-nav, .footer-social { justify-content: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .wm-plane { visibility: visible !important; } .wm-rwy { transform: none !important; opacity: 1 !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js [data-reveal='img'] .jgrid-media { opacity: 1 !important; }
}

/* Comfortable touch targets for small text links */
.footer-nav a, .footer-social a { display: inline-block; padding: 10px 0; }
.photo-pager a { display: inline-block; padding: 12px 0; }
.specs dd a { display: inline-block; padding: 4px 0; margin: -4px 0; }
.text-link { padding-top: 8px; }

/* ---------- Page & image transitions ---------- */
/* Same-origin navigations crossfade (browser-native, no blank frame); browsers
   without support simply switch pages. No movement, so nothing jumps. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation-duration: 0s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; animation-timing-function: ease; }
/* Photos still downloading fade in when ready; already-loaded ones are never hidden. */
.img-pending { opacity: 0; }
.img-ready { opacity: 1; transition: opacity 0.6s ease; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* 3D landing flight canvas (first page only) */
.flight3d { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 150; pointer-events: none; }

/* ---------- Spotting map (Brisbane Airport diagram) ---------- */
.spotting-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: 20px; align-items: start; }
.bne-wrap { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--line-2); background: var(--ink-2); }
.bne { display: block; width: 100%; height: auto; }
.bne-water { fill: url(#bne-water); }
.bne-hatch { stroke: rgba(120, 160, 200, 0.18); stroke-width: 2; }
.bne-contour { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; }
.bne-runway line { stroke: #3a3d45; stroke-width: 22; stroke-linecap: butt; }
.bne-rwy-label text, .bne-label, .bne-north { fill: var(--muted); font: 500 15px var(--f-mono); letter-spacing: 0.06em; }
.bne-label-water { fill: rgba(150, 185, 220, 0.7); }
.bne-north { fill: var(--paper); font-size: 18px; }
.bne-building { fill: #2a2d34; stroke: #4a4e57; stroke-width: 1.5; }
.bne-port rect, .bne-port line { fill: #2a2d34; stroke: #6b6f78; stroke-width: 2; }
.bne-pin { cursor: pointer; }
.bne-pin-halo { fill: var(--accent); opacity: 0.18; transition: opacity 0.3s; }
.bne-pin-dot { fill: var(--accent); stroke: var(--ink); stroke-width: 3; }
.bne-pin-num { fill: var(--ink); font: 800 16px var(--f-sans); text-anchor: middle; }
.bne-pin:hover .bne-pin-halo, .bne-pin:focus .bne-pin-halo { opacity: 0.45; }
.zone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.zone { padding: 16px 0 18px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.zone:target .zone-name { color: var(--accent); }
.zone-head { display: flex; align-items: center; gap: 12px; }
.zone-num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 14px; }
.zone-name { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(24px, 2.2vw, 34px); line-height: 1; flex: 1; transition: color 0.3s; }
.zone-count { color: var(--muted); }
.zone-desc { margin: 10px 0 12px; color: var(--muted); font-size: 15px; max-width: 56ch; }
.zone-thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.zone-thumbs img { width: 96px; height: 64px; object-fit: cover; transition: opacity 0.3s; }
.zone-thumbs a:hover img { opacity: 0.75; }
@media (max-width: 860px) { .spotting-grid { grid-template-columns: 1fr; } .bne-wrap { position: relative; top: 0; } }

/* The photo you tap grows into its page (cross-document view transition). */
.photo-main { view-transition-name: photo-hero; }
::view-transition-group(photo-hero) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
.photo-stage[data-swipe] { touch-action: pan-y; }

/* ---------- Photo page: related rows ---------- */
.related { padding-top: clamp(28px, 3.6vw, 48px); }
.related-row { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.related-row::-webkit-scrollbar { display: none; }
.related-tile { position: relative; flex: none; width: clamp(200px, 24vw, 300px); aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg, var(--ink-3)); }
.related-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.related-tile:hover img { transform: scale(1.04); }
.related-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); font-family: var(--f-display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: 15px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-cap .mono { font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.75); }

/* ---------- Registration (airframe) page ---------- */
.rego-title { font-family: var(--f-mono); font-weight: 500; font-stretch: 100%; letter-spacing: 0.02em; text-transform: none; }
.rego-facts { margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); border-top: 2px solid var(--accent); }
.rego-facts div { display: grid; gap: 6px; padding: 14px 18px 16px 0; border-bottom: 1px solid var(--line); }
.rego-facts dt { color: var(--muted); }
.rego-facts dd { margin: 0; font-size: 17px; font-weight: 500; }

/* ---------- Home: latest catch ---------- */
.catch { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.catch-media { margin: 0; overflow: hidden; background: var(--bg); aspect-ratio: 3 / 2; border-top: 2px solid var(--c); }
.catch-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.catch:hover .catch-media img { transform: scale(1.03); }
.catch-text { display: grid; gap: 12px; justify-items: start; }
.catch-k { color: var(--c); }
.catch-title { font-family: var(--f-display); font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(34px, 3.8vw, 60px); line-height: 0.92; text-wrap: balance; }
.catch-cap { margin: 0; color: var(--muted); max-width: 46ch; }
.catch-meta { color: var(--paper); }
@media (max-width: 860px) { .catch { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- Photo page: share ---------- */
.photo-pager { align-items: center; }
.share-trigger { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: none; color: var(--paper); cursor: pointer; transition: border-color 0.25s, background 0.25s, color 0.25s; }
.share-trigger:hover, .share-trigger:focus-visible { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.share-trigger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.share-trigger svg circle { fill: currentColor; stroke: none; }
.share-dialog { font-family: var(--f-sans); text-transform: none; letter-spacing: normal; width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: #15171b; color: var(--paper); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.share-dialog::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.share-dialog[open] { animation: sdIn 0.28s var(--ease); }
@keyframes sdIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.sd-inner { padding: 18px 20px 20px; outline: none; }
.sd-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sd-title { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.sd-close { display: grid; place-items: center; width: 36px; height: 36px; margin-right: -8px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.sd-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--paper); }
.sd-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.sd-photo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.sd-photo img { width: 64px; height: 43px; object-fit: cover; border-radius: 6px; flex: none; }
.sd-nets { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 14px; }
.sd-nets li { flex: 0 0 25%; display: flex; justify-content: center; }
.share-dialog .sd-net { display: flex; align-items: center; justify-content: center; padding: 0; line-height: 0; width: 56px; height: 56px; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; transition: transform 0.2s var(--ease), filter 0.2s; }
.sd-net:hover, .sd-net:focus-visible { transform: scale(1.08); filter: brightness(1.1); }
.share-dialog .sd-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sd-note { margin: -6px 0 12px; font-size: 13.5px; color: var(--accent); }
.share-dialog .sd-net svg { display: block; flex: none; width: 26px; height: 26px; fill: currentColor; }
.sd-net[style*="#000000"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.sd-copy { display: flex; gap: 8px; padding: 6px 6px 6px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(0, 0, 0, 0.25); }
.sd-copy input { flex: 1; min-width: 0; border: 0; background: none; color: var(--paper); font: 400 14px var(--f-sans); outline: none; }
.sd-copy-btn { flex: none; padding: 8px 16px; border: 0; border-radius: 7px; background: var(--accent); color: var(--ink); font: 600 14px var(--f-sans); cursor: pointer; }
.sd-copy-btn.is-done { background: #fff; }
@media (max-width: 600px) {
  .share-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .share-dialog[open] { animation-name: sdUp; }
  @keyframes sdUp { from { transform: translateY(100%); } }
}

/* ---------- Photos can't be saved: no long-press menu, dragging or selecting ---------- */
main img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
