/* ==========================================================================
   Heart + Knowledge for Community Work — Part 2
   Non-profit Leadership and Governance Conference, Aruba, 31 October 2026

   Palette and type are taken from the conference collateral: the ground is the
   blue of the ballroom the conference is held in, the primary is PANTONE 320 C
   (named in the HKC logo artwork), and the accent is the far end of the teal →
   coral gradient used on the invitation.
   ========================================================================== */

:root {
  /* ground */
  --ink:        #04222A;
  --ink-2:      #073644;
  --navy:       #0B3C63;

  /* primary */
  --teal:       #009CA6;   /* PANTONE 320 C */
  --teal-btn:   #008088;   /* 320 C darkened just enough for white text to hit AA */
  --teal-lt:    #35C4BE;
  --teal-dk:    #00707A;

  /* accent — used once per screen, never more */
  --coral:      #ED6C53;

  /* paper */
  --sand:       #FFFCF3;
  --sand-2:     #F6F0E2;
  --line:       #E3DBC9;

  /* text */
  --body:       #1D3238;
  --muted:      #556B72;
  --on-dark:    #EAF4F4;
  --on-dark-mu: #9FBEC2;

  --surface:    var(--sand);
  --surface-2:  var(--sand-2);
  --text:       var(--body);
  --text-mu:    var(--muted);
  --rule:       var(--line);

  --display: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --prose:   "Newsreader", ui-serif, Georgia, "Times New Roman", serif;

  --gut:   clamp(1.25rem, 5vw, 3rem);
  --wide:  76rem;
  --text-w: 38rem;

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

/* The page is deliberately single-theme: it reproduces the conference's own
   dark-blue/cream identity. Every colour is therefore stated outright so the
   page holds whichever ground the browser paints behind it. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--surface);
  color: var(--text);
  font-family: var(--prose);
  font-size: clamp(1.0625rem, 0.35vw + 0.98rem, 1.1875rem);
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

:where(a) { color: inherit; }

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

.skip {
  position: absolute; left: var(--gut); top: -4rem; z-index: 100;
  background: var(--teal); color: #fff; padding: .7rem 1.1rem; border-radius: 4px;
  font-family: var(--display); font-weight: 600; font-size: .9rem;
  transition: top .18s var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- helpers */

.wrap { width: min(100% - var(--gut) * 2, var(--wide)); margin-inline: auto; }
.col  { max-width: var(--text-w); }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.eyebrow {
  font-family: var(--display);
  font-size: clamp(.68rem, .22vw + .63rem, .78rem);
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--teal-dk);
}
.on-dark .eyebrow, .dark .eyebrow { color: var(--teal-lt); }
/* `* { margin: 0 }` left this sitting flat on the lockup's cap height */
.hero .eyebrow {
  color: #86E3DC;
  text-shadow: 0 1px 10px rgba(4,34,42,.6);
  margin-bottom: clamp(.85rem, 1.8vw, 1.35rem);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.95rem, 2.9vw + 1.1rem, 3.3rem); }
h3 { font-size: clamp(1.3rem, 1vw + 1.05rem, 1.75rem); line-height: 1.18; }

.lede {
  font-size: clamp(1.19rem, 0.75vw + 1.05rem, 1.5rem);
  line-height: 1.52;
  color: var(--text);
}

p + p { margin-top: 1.05em; }

/* one piece of brand punctuation between the two halves of the page */
.divider {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.8rem);
  width: min(100% - var(--gut) * 2, 46rem);
  margin-inline: auto;
  color: var(--teal); opacity: .5;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: currentColor; }
.divider::before { mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.divider::after  { mask-image: linear-gradient(90deg, #000, transparent); -webkit-mask-image: linear-gradient(90deg, #000, transparent); }
.divider .mark-img { width: 30px; flex: none; }

/* ---------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--teal-btn);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .62em;
  padding: .92em 1.65em;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--display); font-weight: 700;
  font-size: clamp(.95rem, .3vw + .88rem, 1.05rem);
  letter-spacing: -.005em;
  line-height: 1;
  text-decoration: none;
  border: 0; border-radius: 999px;
  cursor: pointer;
  position: relative; isolation: isolate; overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  box-shadow: 0 1px 2px rgba(4,34,42,.16), 0 8px 22px -10px rgba(0,156,166,.7);
}
.btn::after {           /* a light sweep that follows the ray motif */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.26) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .62s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(4,34,42,.18), 0 14px 30px -12px rgba(0,156,166,.8); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .22s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--on-dark);
  box-shadow: inset 0 0 0 1.5px rgba(234,244,244,.35);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(234,244,244,.7); }

/* --------------------------------------------------------------- the mark */

.mark { color: var(--teal); width: 100%; height: auto; }

/* the same mark as a mask, for places that need no animation */
.mark-img {
  display: block;
  background-color: currentColor;
  mask: url("../img/hkc-mark.svg") no-repeat center / contain;
  -webkit-mask: url("../img/hkc-mark.svg") no-repeat center / contain;
  aspect-ratio: 97.9 / 80.2;
}
.mark .ray { transform-box: fill-box; transform-origin: 50% 120%; }

.wordmark {
  background-color: currentColor;
  mask: url("../img/hkc-wordmark.svg") no-repeat center / contain;
  -webkit-mask: url("../img/hkc-wordmark.svg") no-repeat center / contain;
  aspect-ratio: 97.2 / 49.7;
}

/* ------------------------------------------------------------------ chrome */

.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem var(--gut);
  background: rgba(4,34,42,.96);
  border-bottom: 1px solid rgba(53,196,190,.16);
  color: var(--on-dark);
  transform: translateY(-105%);
  transition: transform .4s var(--ease);
}
.bar[data-show="1"] { transform: none; }
/* the stacked wordmark is three lines tall — the bar gets the mark plus the
   name set in the display face, so it can stay slim on a phone */
.bar-mark {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--sand);
}
.bar-mark .mark-img { width: 26px; flex: none; color: var(--teal-lt); }
.bar-mark span {
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  letter-spacing: -.015em; line-height: 1.1;
}
.bar-mark b {
  display: block; font-weight: 600; font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mu);
  margin-top: .12rem;
}
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.bar nav a {
  font-family: var(--display); font-size: .88rem; font-weight: 600;
  text-decoration: none; color: var(--on-dark-mu);
  transition: color .18s var(--ease);
}
.bar nav a:hover { color: var(--sand); }
.bar .btn { padding: .62em 1.15em; font-size: .85rem; }
@media (max-width: 62rem) { .bar nav a { display: none; } }

/* ------------------------------------------------------------------- hosts */

/* A quiet band above the hero. The partner PNGs are flattened onto white by
   the build, so the band is white too and the marks sit flush — no chip edge.
   Deliberately not the footer's chip treatment: the same four logos twice on
   one page should not read as the same component twice. */
.hosts { background: #fff; border-bottom: 1px solid var(--line); }
.hosts .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .5rem clamp(1.1rem, 3vw, 2.4rem);
  padding-block: clamp(.7rem, 1.5vw, 1rem);
}
.hosts .eyebrow { color: var(--muted); }
.hosts ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .5rem clamp(1rem, 2.8vw, 2rem);
}
.hosts img, .hosts .cmb {
  display: block;
  height: clamp(19px, 2.3vw, 26px); width: auto;
  object-fit: contain;
}
.hosts .cmb {
  color: #1B3A6B;
  aspect-ratio: 128.9 / 43.3;
  background-color: currentColor;
  mask: url("../img/cmb.svg") no-repeat center / contain;
  -webkit-mask: url("../img/cmb.svg") no-repeat center / contain;
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 56rem);
  display: grid; align-items: end;
  padding: 7rem 0 clamp(2.5rem, 5vw, 4.5rem);
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.hero::before {           /* tie the photograph back to the brand blue */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(110% 80% at 74% 8%, rgba(0,156,166,.26), transparent 56%),
    /* a calm field under the headline column, lifting towards the right */
    linear-gradient(97deg, rgba(4,34,42,.9) 0%, rgba(4,34,42,.74) 32%,
                            rgba(4,34,42,.3) 60%, rgba(4,34,42,.52) 100%),
    linear-gradient(180deg, rgba(4,34,42,.52) 0%, rgba(4,34,42,.1) 26%,
                            rgba(4,34,42,.42) 70%, rgba(4,34,42,.95) 100%);
}
@media (max-width: 60rem) {
  .hero::before {
    background:
      radial-gradient(110% 70% at 70% 6%, rgba(0,156,166,.24), transparent 56%),
      linear-gradient(180deg, rgba(4,34,42,.72) 0%, rgba(4,34,42,.5) 24%,
                              rgba(4,34,42,.82) 62%, rgba(4,34,42,.97) 100%);
  }
}

.hero-grid { display: grid; gap: clamp(1.8rem, 4vw, 3.2rem); }
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
}

/* the printed lockup sets the mark about 0.16 of its own width off the
   wordmark; a little more than that reads better at screen sizes */
.lockup { display: flex; align-items: center; gap: clamp(1.05rem, 2.3vw, 1.8rem); }
.lockup .mark { width: clamp(68px, 9vw, 112px); flex: none; color: var(--sand); }
.lockup-text { display: grid; gap: .5rem; }
.lockup .wordmark { width: clamp(176px, 27vw, 330px); color: var(--sand); }

.hero h1 { font-size: 0; }      /* the lockup is the heading */
.hero .tagline {
  margin-top: clamp(1.4rem, 3vw, 2.1rem);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.22rem, 1.5vw + .95rem, 2.05rem);
  line-height: 1.22;
  letter-spacing: -.02em;
  max-width: 19ch;
  color: #fff;
}
.hero .tagline em {
  display: block; margin-top: .42em;
  font-family: var(--prose); font-style: italic; font-weight: 300;
  font-size: .72em; line-height: 1.38; letter-spacing: 0;
  color: var(--on-dark-mu);
  max-width: 28ch;
}
/* the rule-and-"Part 2" line sits under the wordmark, as in the printed lockup */
.hero .part { display: flex; align-items: center; gap: .6rem; }
.hero .part::before {
  content: ""; flex: 1; height: 1.5px; background: var(--teal-lt); opacity: .85;
}
.hero .part span {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(.82rem, .4vw + .72rem, 1.02rem);
  letter-spacing: .02em; color: var(--sand);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
@media (min-width: 60rem) { .hero-cta { flex-direction: column; align-items: flex-start; } }

.scrim { margin-top: 1.1rem; font-size: .9rem; color: var(--on-dark-mu); font-family: var(--display); }

/* --------------------------------------------------------------- the facts */

.facts {
  background: var(--ink-2); color: var(--on-dark);
  border-top: 1px solid rgba(53,196,190,.18);
}
.facts dl {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  background: rgba(53,196,190,.16);
}
.facts > .wrap { width: min(100%, var(--wide)); padding-inline: 0; }
.facts div {
  background: var(--ink-2);
  padding: clamp(1.3rem, 2.6vw, 2.1rem) clamp(1.1rem, 2.4vw, 2rem);
}
.facts dt {
  font-family: var(--display); font-size: .68rem; font-weight: 700;
  letter-spacing: .19em; text-transform: uppercase; color: var(--teal-lt);
}
.facts dd {
  margin: .5rem 0 0;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.02rem, .6vw + .9rem, 1.3rem);
  line-height: 1.26; letter-spacing: -.015em;
}
.facts dd small {
  display: block; margin-top: .3rem;
  font-size: .76em; font-weight: 500; color: var(--on-dark-mu); letter-spacing: 0;
}

/* ------------------------------------------------------------------ bands */

.band { padding: clamp(4rem, 9vw, 8rem) 0; }
.band-paper { background: var(--surface); }
.band-paper-2 { background: var(--surface-2); }
.band-dark { background: var(--ink); color: var(--on-dark); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: var(--on-dark-mu); }

.band-head { display: grid; gap: .9rem; margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.band-head .eyebrow + h2 { margin-top: -.15rem; }

/* ------------------------------------------------------------------ about */

.about {
  display: grid; gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 58rem) {
  .about { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
.about .body p { color: var(--text); }
.about .body p + p { margin-top: 1.1em; }

.quote {
  position: relative; align-self: center;
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  background: var(--ink);
  color: var(--sand);
  border-radius: 3px;
  overflow: hidden;
}
.quote::before {
  content: ""; position: absolute; inset: auto -30% -58% auto; width: 22rem; height: 22rem;
  background: radial-gradient(circle, rgba(0,156,166,.5), transparent 68%);
  pointer-events: none;
}
.quote blockquote {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.25rem, 1.1vw + 1.05rem, 1.65rem);
  line-height: 1.3; letter-spacing: -.018em;
  position: relative;
}
.quote blockquote strong { color: var(--teal-lt); font-weight: 700; }

/* ----------------------------------------------------------------- topics */

.topics {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.topic { background: var(--surface); padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 2.4vw, 1.9rem); }
.topic .n { display: block; width: 30px; height: 2px; margin-bottom: 1.3rem; background: var(--teal); }
.topic h3 { font-size: 1.12rem; letter-spacing: -.012em; }
.topic p { margin-top: .6rem; font-size: .98rem; line-height: 1.55; color: var(--text-mu); }

/* --------------------------------------------------------------- programme */

.sessions { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }

.session {
  display: grid; gap: .55rem 1.6rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.3rem, 2.8vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  position: relative; overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.session::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--teal); transform: scaleY(0); transform-origin: 50% 0;
  transition: transform .34s var(--ease);
}
.session:hover { border-color: #CFC4AC; transform: translateX(2px); }
.session:hover::before { transform: scaleY(1); }
.session.is-keynote { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.session.is-keynote::before { background: var(--coral); }
.session.is-keynote h3 { color: #fff; }
.session.is-keynote .who { color: var(--teal-lt); }
.session.is-keynote .sub { color: var(--on-dark-mu); }
.session.is-keynote:hover { border-color: var(--ink); }

@media (min-width: 52rem) {
  .session { grid-template-columns: 11.5rem minmax(0,1fr); align-items: baseline; }
}
.session .kind {
  font-family: var(--display); font-size: .68rem; font-weight: 700;
  letter-spacing: .19em; text-transform: uppercase; color: var(--teal-dk);
}
.session.is-keynote .kind { color: var(--coral); }
.session h3 { letter-spacing: -.018em; }
.session .sub {
  margin-top: .3rem; font-family: var(--prose); font-style: italic;
  font-size: 1rem; color: var(--text-mu); line-height: 1.45;
}
.session .who {
  margin-top: .7rem; font-family: var(--display); font-weight: 600;
  font-size: .95rem; color: var(--teal-dk);
}
.session-note {
  margin-top: 1.6rem; font-size: .95rem; color: var(--text-mu);
  font-family: var(--display); font-weight: 500;
}

/* ---------------------------------------------------------------- speakers */

.speakers { display: grid; gap: clamp(2.6rem, 6vw, 5rem); }

.speaker {
  display: grid; gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
}
@media (min-width: 50rem) {
  .speaker { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
  .speaker:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); }
  .speaker:nth-child(even) .portrait { order: 2; }
}
/* stacked, the square would otherwise run the full column width */
@media (max-width: 49.99rem) {
  .portrait { max-width: 17rem; }
}

.portrait {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 3px;
  background: var(--navy);
  aspect-ratio: 1;
}
/* The five headshots came from five different photographers, on five different
   backgrounds. A duotone at rest makes them one set; hover hands the person
   back their own photograph. `color` blending keeps the luminance of the
   original, so this tints rather than darkens. */
.portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(1.03);
  transition: filter .5s var(--ease), transform .7s var(--ease);
}
.portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, #00909B, #0B3C63);
  mix-blend-mode: color;
  opacity: .9;
  transition: opacity .5s var(--ease);
}
.speaker:hover .portrait img, .speaker:focus-within .portrait img {
  filter: none; transform: scale(1.028);
}
.speaker:hover .portrait::after, .speaker:focus-within .portrait::after { opacity: 0; }

.speaker .name { font-size: clamp(1.45rem, 1.3vw + 1.1rem, 2rem); }
.speaker .role {
  margin-top: .45rem; font-family: var(--display); font-weight: 600;
  font-size: .95rem; line-height: 1.4; color: var(--teal-dk);
}
.speaker .bio { margin-top: 1.1rem; font-size: 1.02rem; line-height: 1.62; color: var(--text); }
.speaker .bio p + p { margin-top: .85em; }
.speaker .talks { margin-top: 1.4rem; display: grid; gap: .55rem; border-top: 1px solid var(--rule); padding-top: 1.1rem; }
.speaker .talks .t { display: flex; gap: .7rem; align-items: baseline; font-family: var(--display); font-size: .95rem; }
.speaker .talks .t b { flex: none; width: 5.2rem; font-size: .66rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--teal-dk); }
.speaker .talks .t span { font-weight: 600; color: var(--text); }

/* -------------------------------------------------------- bio "read more" */

.bio[data-clamp] { position: relative; }
/* the folded paragraphs sit in their own box, so p + p cannot reach the first */
.bio-rest > p:first-child { margin-top: 1.05em; }
.bio-more {
  margin-top: .7rem; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: .88rem;
  color: var(--teal-dk); letter-spacing: -.005em;
  display: inline-flex; align-items: center; gap: .4em;
}
.bio-more::after { content: "▾"; font-size: .8em; transition: transform .25s var(--ease); }
.bio-more[aria-expanded="true"]::after { transform: rotate(180deg); }
.bio-more:hover { color: var(--teal); }

/* ----------------------------------------------------------------- gallery */

.recap {
  position: relative; isolation: isolate; color: var(--on-dark);
  background: var(--ink);
}
.recap .bg { position: absolute; inset: 0; z-index: -2; opacity: .4; }
.recap .bg img { width: 100%; height: 100%; object-fit: cover; }
.recap::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(4,34,42,.82) 40%, var(--ink) 100%);
}

.gallery {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; gap: clamp(.5rem, 1.2vw, .85rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60rem) { .gallery { grid-template-columns: repeat(5, 1fr); } }
.shot {
  margin: 0; padding: 0; border: 0; cursor: zoom-in;
  position: relative; overflow: hidden; border-radius: 2px;
  aspect-ratio: 3 / 2; background: var(--ink-2);
  display: block;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(4,34,42,.42), transparent 55%);
  opacity: .9; transition: opacity .4s var(--ease);
}
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot:hover::after, .shot:focus-visible::after { opacity: .25; }
/* the opening frame runs the full width, the rest read as a contact sheet */
@media (min-width: 46rem) {
  .shot:first-child { grid-column: 1 / -1; aspect-ratio: 24 / 9; }
}

.shot[hidden] { display: none; }

.gallery-more {
  margin: clamp(1.2rem, 3vw, 1.8rem) auto 0;
  display: block;
  padding: .75em 1.5em;
  background: none; color: var(--on-dark); cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: .92rem;
  border: 0; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px rgba(234,244,244,.3);
  transition: box-shadow .22s var(--ease), background .22s var(--ease);
}
.gallery-more:hover { box-shadow: inset 0 0 0 1.5px rgba(234,244,244,.65); background: rgba(234,244,244,.06); }

/* ----------------------------------------------------------------- lightbox */

/* a <dialog> is width:fit-content and auto-margined by the UA stylesheet, so
   every one of these has to be stated to make it fill the screen */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: clamp(1rem, 4vw, 3rem);
  display: none;
  place-items: center;
  background: rgba(2,18,22,.97);
  border: 0;
  opacity: 0; transition: opacity .28s var(--ease);
}
.lightbox[open] { display: grid; opacity: 1; }
.lightbox::backdrop { background: rgba(2,18,22,.9); }
.lightbox img {
  max-width: 100%; max-height: 82vh; width: auto; border-radius: 3px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
.lightbox .lb-bar {
  position: absolute; inset: auto 0 clamp(.8rem, 2.5vw, 1.8rem) 0;
  display: flex; align-items: center; justify-content: center; gap: 1.4rem;
  color: var(--on-dark-mu); font-family: var(--display); font-size: .85rem;
}
.lightbox button {
  background: rgba(234,244,244,.1); color: var(--on-dark);
  border: 0; border-radius: 999px; cursor: pointer;
  width: 2.6rem; height: 2.6rem; font-size: 1.1rem; line-height: 1;
  display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.lightbox button:hover { background: rgba(234,244,244,.24); }
.lightbox .lb-close { position: absolute; inset: clamp(.8rem,2.5vw,1.6rem) clamp(.8rem,2.5vw,1.6rem) auto auto; }

/* --------------------------------------------------------------------- CTA */

.cta {
  text-align: center;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(0,156,166,.42), transparent 60%),
    var(--ink);
  color: var(--on-dark);
}
.cta .mark-img { width: clamp(52px, 7vw, 78px); margin: 0 auto 1.6rem; color: var(--teal-lt); }
.cta h2 { color: #fff; max-width: 16ch; margin-inline: auto; }
.cta p { margin: 1.1rem auto 0; max-width: 42ch; color: var(--on-dark-mu); }
.cta .btn { margin-top: 2rem; }
.cta .fineprint { margin-top: 1.4rem; font-family: var(--display); font-size: .88rem; color: var(--on-dark-mu); }

/* ------------------------------------------------------------------ footer */

.foot { background: var(--sand-2); padding: clamp(2.8rem, 6vw, 4.5rem) 0 2.2rem; }
.foot .org-label { text-align: center; }
.foot .orgs {
  margin: 1.8rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center;
  gap: clamp(.9rem, 2.4vw, 1.6rem);
}
.foot .orgs li {
  list-style: none;
  display: grid; place-items: center;
  padding: .65rem 1.1rem;
  background: #fff; border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(4,34,42,.06);
  transition: box-shadow .3s var(--ease);
}
.foot .orgs li:hover { box-shadow: inset 0 0 0 1px rgba(4,34,42,.16); }
.foot .orgs img, .foot .orgs .cmb {
  display: block;
  height: clamp(26px, 3.2vw, 34px); width: auto;
  object-fit: contain;
}
/* a <span> is inline, so height/aspect-ratio need display:block (set above);
   the mark is recoloured by currentColor through the mask */
.foot .orgs .cmb {
  color: #1B3A6B;
  aspect-ratio: 128.9 / 43.3;
  background-color: currentColor;
  mask: url("../img/cmb.svg") no-repeat center / contain;
  -webkit-mask: url("../img/cmb.svg") no-repeat center / contain;
}
.foot .legal {
  margin-top: clamp(2.4rem, 5vw, 3.4rem); padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  /* baseline, not stretch: the two lines are different heights and the
     right-hand one would otherwise sit ~14px below the copyright */
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem;
  justify-content: space-between; align-items: baseline;
  font-family: var(--display); font-size: .85rem; color: var(--text-mu);
}
.foot .legal a { color: var(--teal-dk); text-decoration: none; font-weight: 600; }
.foot .legal a:hover { text-decoration: underline; }

/* ================================================================= motion = */

/* the mark assembles itself once, on load — the one orchestrated moment */
.mark.anim .ray {
  opacity: 0;
  transform: scale(.34);
  animation: ray-in .62s var(--ease) forwards;
  animation-delay: calc(var(--i) * 42ms + 160ms);
}
@keyframes ray-in {
  from { opacity: 0; transform: scale(.34); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: scale(1); }
}

.rise { opacity: 0; transform: translateY(14px); }
.rise.seen {
  opacity: 1; transform: none;
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: calc(var(--d, 0) * 85ms);
}

.hero .reveal { opacity: 0; transform: translateY(16px); animation: rise-in .8s var(--ease) forwards; }
.hero .reveal:nth-of-type(1) { animation-delay: .34s; }
.hero .reveal:nth-of-type(2) { animation-delay: .46s; }
.hero .reveal:nth-of-type(3) { animation-delay: .58s; }
@keyframes rise-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .mark.anim .ray,
  .hero .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  .rise { opacity: 1 !important; transform: none !important; }
  .rise.seen { transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  .bar, .lightbox, .hero-bg, .recap .bg { display: none !important; }
  body { background: #fff; color: #000; }
  .band { padding: 1.5rem 0; }
}
