/* ==================================================================
   News Air — newsair.co.uk
   Dark cinematic single-page site
   ================================================================== */

/* ---------- 1. tokens ---------- */
:root {
  --ink:        #05070a;
  --ink-2:      #0a0e14;
  --panel:      #0e131b;
  --panel-2:    #131a24;
  --line:       #1e2733;
  --line-2:     #2a3644;

  --text:       #e6edf5;
  --text-dim:   #93a3b5;
  --text-faint: #64748b;

  /* brand — sampled from the News Air logo */
  --na-cyan:    #00a8e8;
  --na-blue:    #0071bc;
  --na-grey:    #a7a9ac;
  --na-ghost:   #18222e;   /* the pale N behind the hexagon, on dark */
  --na-word:    #ffffff;

  --accent:     var(--na-cyan);
  --accent-dim: #0071bc;
  --accent-ink: #04212b;
  --live:       #ff4d4d;
  --warm:       #ffb457;

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. layout helpers ---------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}
.section { padding-block: clamp(4rem, 7.5vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 4.5vw, 4rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .6;
}

.lede {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  color: var(--text-dim);
  max-width: 62ch;
}

.section-head { max-width: 68ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- 4. buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease);
  box-shadow: 0 0 0 0 rgba(0, 168, 232, .45);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0, 168, 232, .6);
}
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(0, 168, 232, .07);
  box-shadow: none;
}
.btn[disabled] { opacity: .55; pointer-events: none; }

.btn svg { width: 1em; height: 1em; flex: none; }

/* ---------- 5. header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color .4s var(--ease), border-color .4s var(--ease),
              backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(5, 7, 10, .82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--text);
  flex: none;
}
.brand svg { height: 29px; width: auto; }
.brand__tag {
  display: none;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-left: .7rem;
  border-left: 1px solid var(--line-2);
}
@media (min-width: 1100px) { .brand__tag { display: block; } }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__link {
  font-size: .92rem;
  color: var(--text-dim);
  padding: .35rem 0;
  position: relative;
  transition: color .25s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current='true'] { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current='true']::after { right: 0; }

.header__cta { flex: none; }
.nav-toggle { display: none; }
.only-mobile { display: none; }

@media (max-width: 900px) {
  .header__cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 44px; height: 44px;
    background: none;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block; width: 18px; height: 2px;
    background: currentColor; position: relative;
    transition: transform .3s var(--ease), background-color .2s;
  }
  .nav-toggle span::before,
  .nav-toggle span::after {
    content: ''; position: absolute; left: 0; width: 18px; height: 2px;
    background: currentColor;
    transition: transform .3s var(--ease);
  }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after  { top: 6px; }
  .nav-toggle[aria-expanded='true'] span { background: transparent; }
  .nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span::after  { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 74px 0 auto;
    background: rgba(5, 7, 10, .97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-120%);
    transition: transform .4s var(--ease);
    margin: 0;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: .95rem 0;
    font-size: 1.1rem;
    font-family: var(--font-display);
    border-bottom: 1px solid var(--line);
  }
  .nav__list .btn { margin-top: 1.4rem; }
  .only-mobile { display: block; }
  .only-mobile .nav__link { border: 0; }
}

/* ---------- 6. hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(74px + 1.5rem) 0 4.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 90% at 78% 12%, rgba(0, 168, 232, .17), transparent 58%),
    radial-gradient(90% 70% at 12% 88%, rgba(255, 180, 87, .10), transparent 60%),
    var(--ink);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(80% 65% at 50% 40%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(80% 65% at 50% 40%, #000 20%, transparent 85%);
}
.hero__scan {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(5, 7, 10, .55) 78%, var(--ink));
}

.hero__stage {
  position: relative;
  width: 100%;
  height: clamp(200px, 33vh, 400px);
  margin-bottom: clamp(1rem, 2.5vh, 2rem);
}
/* An <svg> with only a viewBox has no intrinsic size. Sizing it off the
   stage with normal flow makes the two size off each other, so pin it:
   the box is the stage, and preserveAspectRatio fits the mark inside. */
.hero__stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---------- the animated mark ---------- */
/* Every frame is the real logo — part drawn, or finished. */

.hero__mark .hero__edge,
.hero__mark .hero__node,
.hero__mark .hero__ghost { opacity: 0; }

.hero__mark.is-running .hero__edge {
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: var(--len);
  animation-name: heroDraw;
  animation-timing-function: cubic-bezier(.65, 0, .35, 1);
  animation-fill-mode: forwards;
  opacity: 1;
}
@keyframes heroDraw { to { stroke-dashoffset: 0; } }

.hero__mark.is-running .hero__node {
  transform-box: fill-box;
  transform-origin: center;
  animation-name: heroPop;
  animation-timing-function: cubic-bezier(.34, 1.4, .5, 1);
  animation-fill-mode: forwards;
}
@keyframes heroPop {
  from { opacity: 0; transform: scale(.2); }
  to   { opacity: 1; transform: scale(1); }
}

.hero__mark.is-running .hero__ghost {
  animation: heroFade 900ms ease forwards;
}
@keyframes heroFade { to { opacity: 1; } }

/* once assembled: drop the dash so the strokes are plain again, then
   the whole mark drifts and the nodes carry a faint heartbeat */
.hero__mark.is-done .hero__edge { stroke-dasharray: none; opacity: 1; }
.hero__mark.is-done .hero__node,
.hero__mark.is-done .hero__ghost { opacity: 1; }

/* the mark follows the pointer (see hero.js) — the easing lives in the
   frame loop there, not here. Where there is no pointer to follow —
   touch — it drifts gently on its own instead. */
@media (hover: none), (pointer: coarse) {
  .hero__mark.is-done .hero__drift {
    animation: heroDrift 12s ease-in-out infinite;
    transform-origin: center;
    transform-box: view-box;
  }
  @keyframes heroDrift {
    0%, 100% { transform: translateY(-1%); }
    50%      { transform: translateY(1%); }
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero__mark .hero__edge,
  .hero__mark .hero__node,
  .hero__mark .hero__ghost { opacity: 1; animation: none !important; stroke-dasharray: none; }
  .hero__mark .hero__drift { animation: none !important; }
}

/* the wordmark resolves in underneath the mark once it has assembled */
.hero__word {
  display: grid;
  place-items: center;
  margin: -.25rem auto clamp(.9rem, 2.2vh, 1.6rem);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero__word svg {
  width: clamp(150px, 19vw, 250px);
  height: auto;
  color: var(--text);
}
.hero__word.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__word { opacity: 1; transform: none; }
}

.hero__copy { text-align: center; max-width: 52rem; margin-inline: auto; }
.hero h1 {
  font-size: clamp(2.05rem, 1.1rem + 3.3vw, 3.9rem);
  margin-bottom: .45em;
  background: linear-gradient(175deg, #ffffff 28%, #b6d7e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede { margin-inline: auto; max-width: 56ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  justify-content: center;
  margin-top: clamp(1.25rem, 3vh, 2rem);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .95rem .4rem .7rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(14, 19, 27, .7);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: clamp(.9rem, 2vh, 1.6rem);
}
.live-pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255, 77, 77, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255, 77, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

@media (max-height: 760px) {
  .live-pill { display: none; }
  .hero__stage { height: clamp(140px, 21vh, 220px); }
}

.hero__scroll {
  position: absolute;
  bottom: 1.1rem; left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.hero__scroll::after {
  content: '';
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-height: 980px), (max-width: 700px) {
  .hero__scroll { display: none; }
}

/* ---------- 7. marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding-block: 1.1rem;
  --speed: 42s;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: slide var(--speed) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 3rem;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  opacity: .8;
}

/* ---------- 8. services ---------- */
.services__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 168, 232, .55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }

.card__num {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 1.6rem;
  display: block;
}
.card__icon {
  width: 42px; height: 42px;
  margin-bottom: 1.3rem;
  color: var(--accent);
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--text-dim); font-size: .96rem; }
.card__list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .5rem;
  font-size: .88rem;
  color: var(--text-faint);
}
.card__list li { display: flex; gap: .6rem; align-items: baseline; }
.card__list li::before {
  content: '';
  width: 4px; height: 4px; flex: none;
  background: var(--accent-dim);
  transform: rotate(45deg) translateY(-2px);
}

/* ---------- 9. stats ---------- */
.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--ink-2);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--text);
  display: block;
  margin-bottom: .4rem;
}
.stat__num em {
  font-style: normal;
  color: var(--accent);
}
.stat__label {
  font-size: .85rem;
  color: var(--text-faint);
  line-height: 1.45;
}

/* ---------- 10. work / gallery ---------- */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.shot {
  position: relative;
  display: block;
  margin: 0;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  isolation: isolate;
}

.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s var(--ease);
  filter: saturate(.85) contrast(1.05);
}
.shot:hover img { transform: scale(1.06); filter: saturate(1) contrast(1.05); }

/* no-caption grid: the photo is the whole tile, so the hover state lives
   on the frame rather than in a text strip */
.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 168, 232, 0);
  transition: box-shadow .35s var(--ease);
  pointer-events: none;
}
.shot:hover::after { box-shadow: inset 0 0 0 2px rgba(0, 168, 232, .55); }
.shot__meta {
  position: absolute;
  inset: auto 0 0;
  padding: 2.6rem 1.2rem 1.1rem;
  background: linear-gradient(to top, rgba(5, 7, 10, .92), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.shot__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.01em;
}
.shot__tag {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  flex: none;
}
.shot[hidden] { display: none; }

/* an image that isn't on the server yet — say so instead of going blank */
.shot.is-missing img { display: none; }
.shot.is-missing::before {
  content: attr(data-src);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem 1rem 3rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: .78rem;
  line-height: 1.5;
  color: var(--text-faint);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 10px, transparent 10px 20px),
    var(--panel-2);
}


/* the click target that opens the viewer */
.shot__open {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}
.shot__open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.shot__open img { width: 100%; height: 100%; }
.shot__open[disabled] { cursor: default; }

/* ---------- 10b. photo viewer ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(4, 6, 9, .94);
  backdrop-filter: blur(8px);
}
.lightbox[open] {
  display: grid;
  /* minmax(0,1fr) on both axes is what lets the photo's max-height
     resolve — an auto-sized track would let a tall image overflow */
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: clamp(.25rem, 2vw, 1.5rem);
  padding: clamp(3.5rem, 8vh, 5rem) clamp(.5rem, 3vw, 2.5rem) clamp(3rem, 7vh, 4rem);
}

.lightbox__stage {
  grid-column: 2;
  grid-row: 1;
  position: relative;      /* definite containing block for the photo */
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
/* inset:0 + margin:auto centres the photo AND gives its percentage
   max-width/max-height something definite to resolve against, which a
   grid- or flex-centred child does not have */
.lightbox__stage img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
  opacity: 0;
  transform: scale(.985);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.lightbox__stage img.is-ready { opacity: 1; transform: none; }

.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(14, 19, 27, .75);
  color: var(--text);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease),
              transform .25s var(--ease), opacity .25s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.lightbox__nav:active { transform: scale(.94); }
.lightbox__close svg,
.lightbox__nav svg { width: 20px; height: 20px; }

.lightbox__close {
  position: absolute;
  top: clamp(.75rem, 2.5vh, 1.5rem);
  right: clamp(.75rem, 2.5vw, 1.5rem);
  z-index: 2;
}
.lightbox__nav--prev { grid-column: 1; grid-row: 1; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; }
.lightbox__nav[hidden] { display: none; }

.lightbox__count {
  position: absolute;
  left: 50%;
  bottom: clamp(.9rem, 3vh, 1.6rem);
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .16em;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  /* arrows sit over the photo rather than stealing width from it */
  .lightbox[open] { grid-template-columns: 1fr; padding-inline: .75rem; }
  .lightbox__stage { grid-column: 1; grid-row: 1; }
  .lightbox__nav {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    justify-self: center;
    margin-bottom: -3.25rem;
    background: rgba(14, 19, 27, .9);
  }
  .lightbox__nav--prev { transform: translateX(-3.25rem); }
  .lightbox__nav--next { transform: translateX(3.25rem); }
  .lightbox__count { bottom: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__stage img { transition: none; opacity: 1; transform: none; }
}

/* ---------- 11. split / about ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--narrow-first { grid-template-columns: .85fr 1.15fr; }
}
/* the panel that sits beside the bio */
.facts {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  overflow: hidden;
}
.facts::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(0, 168, 232, .10), transparent 46%);
  pointer-events: none;
}
.facts blockquote {
  margin: 0 0 1.75rem;
  padding: 0 0 1.75rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.facts dl { margin: 0; display: grid; gap: 1.1rem; }
.facts dt {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .2rem;
}
.facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -.01em;
}

.link-out {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 168, 232, .3);
  padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.link-out:hover { border-bottom-color: var(--accent); }
.link-out svg { width: .85em; height: .85em; }

/* ---------- 12. compliance strip ---------- */
.creds {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.cred {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.cred svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.cred strong { display: block; font-family: var(--font-display); font-size: .95rem; }
.cred span { font-size: .82rem; color: var(--text-faint); }

/* ---------- 13. contact ---------- */
.contact {
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(0, 168, 232, .10), transparent 60%),
    var(--ink-2);
  border-top: 1px solid var(--line);
}
.contact__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: 1fr 1.15fr; }
}

.contact__details { margin: 2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.contact__details dd { margin: 0; }
.contact__details a { transition: color .2s var(--ease); }
.contact__details a:hover { color: var(--accent); }
.contact__details dt,
.contact__label {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .3rem;
}
.contact__value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.form {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-dim);
  margin-bottom: .45rem;
}
.field .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .95rem;
  background: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: .96rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2393a3b5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.6rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, .14);
}
.field input::placeholder, .field textarea::placeholder { color: #4c5a6b; }
.field--error input,
.field--error select,
.field--error textarea { border-color: #ff6b6b; }
.field__error {
  display: none;
  font-size: .8rem;
  color: #ff9b9b;
  margin-top: .35rem;
}
.field--error .field__error { display: block; }

.field-row {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* honeypot — visually gone, still reachable by bots */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.consent {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--text-faint);
  margin-bottom: 1.4rem;
}
.consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.consent.is-bad { color: #ff9b9b; }
.consent.is-bad input { outline: 2px solid #ff6b6b; outline-offset: 2px; border-radius: 3px; }

.form__status {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  font-size: .9rem;
  display: none;
}
.form__status.is-ok {
  display: block;
  background: rgba(0, 168, 232, .1);
  border: 1px solid rgba(0, 168, 232, .35);
  color: #b9ecff;
}
.form__status.is-err {
  display: block;
  background: rgba(255, 107, 107, .1);
  border: 1px solid rgba(255, 107, 107, .35);
  color: #ffc2c2;
}

/* ---------- 14. footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand svg { height: 30px; width: auto; color: var(--text); }
.footer__brand p { margin-top: 1rem; color: var(--text-faint); font-size: .88rem; max-width: 34ch; }
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
}
.footer__cols > div { min-width: 150px; }
.footer h4 {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer a { color: var(--text-dim); font-size: .9rem; transition: color .2s var(--ease); }
.footer a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-size: .8rem;
  color: var(--text-faint);
}
.socials { display: flex; gap: .6rem; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: all .25s var(--ease);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* ---------- 15. scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}


/* ==================================================================
   16. inner pages — safe flying Q&A
   ================================================================== */
.page-head { padding-top: calc(74px + clamp(3rem, 8vh, 6rem)); }
.page-head h1 {
  font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.6rem);
  max-width: 20ch;
}

.notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 70ch;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }
.notice p { margin: 0; font-size: .9rem; color: var(--text-dim); }
.notice a { color: var(--accent); border-bottom: 1px solid rgba(0, 168, 232, .35); }
.notice a:hover { border-bottom-color: var(--accent); }

.faq {
  max-width: 78ch;
  border-top: 1px solid var(--line);
}
.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, .96rem + .35vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.35;
  transition: color .25s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq__q svg {
  width: 18px; height: 18px; flex: none;
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.faq__item[open] > .faq__q svg { transform: rotate(180deg); }

.faq__a {
  padding: 0 0 1.6rem;
  max-width: 68ch;
  color: var(--text-dim);
  font-size: .98rem;
}
.faq__a p { margin: 0 0 .9em; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a strong { color: var(--text); font-weight: 600; }
.faq__a em { color: var(--text); font-style: italic; }
.faq__a ul { margin: 0 0 .9em; padding-left: 1.1rem; display: grid; gap: .4rem; }
.faq__a li::marker { color: var(--accent-dim); }

/* the answer slides open rather than snapping */
@media (prefers-reduced-motion: no-preference) {
  .faq__item[open] > .faq__a { animation: faqOpen .35s var(--ease); }
  @keyframes faqOpen {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
}

.cta-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 90% 10%, rgba(0, 168, 232, .10), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--ink-2));
}
@media (min-width: 900px) { .cta-panel { grid-template-columns: 1.4fr auto; } }
.cta-panel h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.cta-panel .lede { font-size: 1rem; }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.nav__link.is-here { color: var(--text); }
.nav__link.is-here::after { right: 0; }
