/* =====================================================================
   AAWHC website — main stylesheet (version 2, "immersive")
   ---------------------------------------------------------------------
   To change colours or fonts, edit the values in :root below.
   The previous design is kept in the folder  site-v1-classic.
   ===================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/Fraunces.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/InstrumentSans.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  /* Colours — dusk over the savanna */
  --ground: #f4efe7;      /* warm cloud white: main background */
  --sand: #e8dfd1;        /* panels on the light background */
  --ink: #15140f;         /* main text */
  --muted: #6d665a;       /* secondary text */
  --night: #17150f;       /* dark sections */
  --night-2: #24211a;     /* panels inside dark sections */
  --night-ink: #f1ebe0;   /* text on dark */
  --night-muted: #b7ad9c; /* secondary text on dark */
  --coral: #df6c4f;       /* sunset accent: buttons, highlights */
  --coral-deep: #c8553a;
  --gold: #ecd06f;        /* small highlights */
  --olive: #6c724d;       /* emblem olive */

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-mega: clamp(3.4rem, 1rem + 9.6vw, 12.5rem);
  --fs-xl: clamp(2.6rem, 1rem + 5.8vw, 7.5rem);
  --fs-l: clamp(2rem, 1.1rem + 3.4vw, 4.75rem);
  --fs-m: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem);
  --fs-statement: clamp(1.75rem, 1rem + 2.9vw, 4.25rem);
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;

  --gutter: clamp(18px, 3.2vw, 56px);
  --section: clamp(96px, 7rem + 7vw, 240px);
  --radius: clamp(14px, 1.6vw, 28px);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--text); font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, address { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
address { font-style: normal; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }

.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--gutter); top: -100px; z-index: 300; background: var(--coral); color: #fff; padding: 12px 18px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.t-mega, .t-xl, .t-l, .t-m {
  font-family: var(--display); font-weight: 300;
  font-variation-settings: "opsz" 144; letter-spacing: -0.035em; line-height: 0.92;
}
.t-mega { font-size: var(--fs-mega); line-height: 0.86; letter-spacing: -0.045em; }
.t-xl { font-size: var(--fs-xl); }
.t-l { font-size: var(--fs-l); line-height: 0.98; }
.t-m { font-size: var(--fs-m); line-height: 1.08; letter-spacing: -0.02em; font-variation-settings: "opsz" 72; font-weight: 350; }
.t-statement {
  font-family: var(--display); font-weight: 300; font-variation-settings: "opsz" 100;
  font-size: var(--fs-statement); line-height: 1.08; letter-spacing: -0.025em;
}
.t-label {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
}
.t-label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.t-lede { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem); line-height: 1.5; max-width: 44ch; }
.t-small { font-size: var(--fs-small); color: var(--muted); }
.coral { color: var(--coral); }
.prose { max-width: 64ch; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1.1em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }

/* split-text helpers (added by js/site.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.24em; margin: -0.04em -0.02em -0.24em; }
.wi { display: inline-block; will-change: transform; }
.sw { transition: opacity 0.2s linear; }

/* ---------- Buttons ---------- */
.pill {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 54px; padding: 0 1.7em; border-radius: 999px; border: 0;
  background: var(--coral); color: #fff; font-weight: 600; font-size: 0.975rem;
  text-decoration: none; overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease);
}
.pill::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: translateY(101%); transition: transform 0.55s var(--ease);
}
.pill:hover::after { transform: none; }
.pill .arrow { transition: transform 0.45s var(--ease); }
.pill:hover .arrow { transform: translateX(5px); }
.pill--ghost { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.pill--ghost::after { background: var(--coral); }
.pill--ghost:hover { color: #fff; }
.pill--dark { background: var(--ink); }
.pill--dark::after { background: var(--coral); }
.pill--light { background: var(--night-ink); color: var(--ink); }
.pill--light::after { background: var(--coral); }
.pill--light:hover { color: #fff; }

/* Text links with an arrow: no underline at rest; on hover a line draws in
   under the words only (it stops before the arrow) */
.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 0.6em;
  width: fit-content; justify-self: start; align-self: start;
  font-weight: 600; text-decoration: none; padding-block: 6px;
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease);
}
.link-line:has(> .arrow:last-child)::after { right: calc(1em + 0.6em); }
.link-line:hover::after, .link-line:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.link-line .arrow { transition: transform 0.45s var(--ease); }
.link-line:hover .arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gutter); color: #fff;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.6s var(--ease), padding 0.5s var(--ease);
}
.hdr.is-solid { background: rgba(244, 239, 231, 0.94); color: var(--ink); padding-block: 12px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; min-width: 0; }
.hdr-brand img { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: #fff; transition: transform 0.8s var(--ease); }
.hdr-brand:hover img { transform: rotate(-12deg) scale(1.05); }
.hdr-word { font-family: var(--display); font-variation-settings: "opsz" 48; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.12; max-width: 17ch; }
.hdr-links { display: flex; gap: clamp(18px, 2vw, 34px); }
.hdr-links a { position: relative; text-decoration: none; font-weight: 500; padding-block: 6px; }
.hdr-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.hdr-links a:hover::after, .hdr-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr .pill { min-height: 46px; padding: 0 1.3em; font-size: 0.9rem; }
.menu-btn {
  display: none; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px;
  border: 0; border-radius: 999px; background: rgba(255,255,255,0.16); color: inherit; font-weight: 600;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hdr.is-solid .menu-btn { background: var(--ink); color: var(--ground); }
.menu-btn i { display: grid; gap: 5px; width: 18px; }
.menu-btn i::before, .menu-btn i::after { content: ""; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.menu-open .menu-btn i::before { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn i::after { transform: translateY(-3.25px) rotate(-45deg); }

/* full-screen menu (phones and tablets) */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--night); color: var(--night-ink);
  display: grid; align-content: end; gap: 40px; padding: 110px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 0.9s var(--ease), visibility 0s 0.9s;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.9s var(--ease); }
.menu-open .hdr { color: var(--night-ink); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu ul { display: grid; gap: 2px; }
.menu li { overflow: hidden; }
.menu li a {
  display: inline-block; text-decoration: none; font-family: var(--display); font-weight: 300;
  font-size: clamp(2.6rem, 11vw, 5rem); line-height: 1.02; letter-spacing: -0.035em;
  transform: translateY(105%); transition: transform 0.9s var(--ease);
}
.menu-open .menu li a { transform: none; }
.menu-open .menu li:nth-child(2) a { transition-delay: 0.05s; }
.menu-open .menu li:nth-child(3) a { transition-delay: 0.1s; }
.menu-open .menu li:nth-child(4) a { transition-delay: 0.15s; }
.menu-open .menu li:nth-child(5) a { transition-delay: 0.2s; }
.menu-open .menu li:nth-child(6) a { transition-delay: 0.25s; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--night-muted); font-size: var(--fs-small); }
.menu-foot a { text-decoration: none; }
body.menu-open { overflow: hidden; }

@media (max-width: 1000px) {
  .hdr-links, .hdr > .pill { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr-brand img { width: 44px; height: 44px; }
  .hdr-word { font-size: 1rem; max-width: 16ch; }
}

/* ---------- Loader (first visit) & page curtain ---------- */
.loader {
  position: fixed; inset: 0; z-index: 400; display: none; place-items: center;
  background: var(--ground); color: var(--ink);
}
.is-loading .loader { display: grid; animation: loaderSafety 0.6s 6s forwards; }
@keyframes loaderSafety { to { opacity: 0; visibility: hidden; } }
.loader-inner { display: grid; justify-items: center; gap: 28px; text-align: center; }
.loader-ring { position: relative; width: 168px; height: 168px; }
.loader-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.loader-ring circle { fill: none; stroke-width: 1.5; }
.loader-ring .track { stroke: rgba(21, 20, 15, 0.12); }
.loader-ring .bar { stroke: var(--coral); stroke-dasharray: 471; stroke-dashoffset: 471; }
.loader-ring img { position: absolute; inset: 22px; width: calc(100% - 44px); height: auto; border-radius: 50%; }
.loader-count { font-family: var(--display); font-size: 1rem; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.loader-name { font-family: var(--display); font-weight: 300; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); letter-spacing: -0.01em; max-width: 22ch; line-height: 1.15; }

.curtain {
  position: fixed; inset: 0; z-index: 350; pointer-events: none;
  background: var(--night); transform: scaleY(0); transform-origin: bottom;
  display: grid; place-items: center;
}
.curtain img { width: 84px; border-radius: 50%; background: #fff; opacity: 0; }
.is-entering .curtain { transform: scaleY(1); }

/* ---------- Custom cursor (mouse only) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--coral); display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background-color 0.3s, opacity 0.3s;
  opacity: 0;
}
.cursor span { color: #fff; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; transition: opacity 0.3s; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(223, 108, 79, 0.22); }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--coral); }
.cursor.is-label span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Hero (all pages) ---------- */
.hero {
  position: relative; height: 100svh; min-height: 600px; overflow: hidden;
  color: #fff; background: var(--night); perspective: 1200px;
}
.hero--short { height: 86svh; min-height: 540px; }
.hero-media { position: absolute; inset: 0; transform-origin: 50% 100%; will-change: transform; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,6,0.45) 0%, rgba(10,9,6,0) 28%, rgba(10,9,6,0) 45%, rgba(10,9,6,0.72) 100%);
}
.hero-copy {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 0 var(--gutter) clamp(32px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px;
}
.hero-copy .t-mega, .hero-copy .t-xl { max-width: 12ch; text-wrap: balance; }
.hero-side { display: grid; gap: 22px; justify-items: start; max-width: 34ch; padding-bottom: 0.6em; }
.hero-side p { font-size: 1.0625rem; line-height: 1.5; color: rgba(255,255,255,0.9); }
.hero-label { position: absolute; z-index: 2; left: var(--gutter); top: clamp(110px, 16vh, 160px); color: rgba(255,255,255,0.85); }
.scroll-cue {
  position: absolute; z-index: 2; right: var(--gutter); top: 50%;
  writing-mode: vertical-rl; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.8);
}
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: currentColor; transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.photo-credit { position: absolute; z-index: 2; right: var(--gutter); bottom: 10px; font-size: 0.6875rem; color: rgba(255,255,255,0.6); }
@media (max-width: 800px) {
  .hero-copy { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}

/* ---------- Generic sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section--night { background: var(--night); color: var(--night-ink); }
.section--night .t-small { color: var(--night-muted); }
.section--sand { background: var(--sand); }
.head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 120px); align-items: end; margin-bottom: clamp(48px, 6vw, 100px); }
.head .t-label { grid-column: 1 / -1; }
@media (max-width: 800px) { .head { grid-template-columns: 1fr; } }

/* image reveal */
.reveal-img { overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.reveal-img img { width: 100%; height: 100%; object-fit: cover; }
.parallax { overflow: hidden; }
.parallax img { height: 118%; width: 100%; object-fit: cover; will-change: transform; }

/* ---------- Statement with floating pictures (home) ---------- */
.intro { position: relative; padding-block: var(--section); overflow: hidden; }
.intro .t-statement { max-width: 22ch; margin-inline: auto; text-align: center; position: relative; z-index: 2; }
.intro-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; position: relative; z-index: 2; }
.float { position: absolute; z-index: 1; border-radius: var(--radius); overflow: hidden; }
.float img { width: 100%; height: 100%; object-fit: cover; }
.float--1 { width: clamp(120px, 15vw, 250px); aspect-ratio: 3/4; left: 3%; top: 10%; }
.float--2 { width: clamp(110px, 13vw, 220px); aspect-ratio: 1; right: 4%; top: 6%; border-radius: 50%; }
.float--3 { width: clamp(130px, 16vw, 270px); aspect-ratio: 4/3; left: 9%; bottom: 6%; }
.float--4 { width: clamp(120px, 14vw, 230px); aspect-ratio: 3/4; right: 8%; bottom: 8%; }
@media (max-width: 800px) {
  .float { opacity: 0.35; }
  .float--2, .float--3 { display: none; }
}

/* ---------- Horizontal scroll ---------- */
.hs { position: relative; background: var(--night); color: var(--night-ink); overflow: hidden; }
.hs-track { display: flex; align-items: stretch; height: 100svh; width: max-content; will-change: transform; }
.hs-panel { flex: 0 0 auto; height: 100%; display: flex; align-items: center; padding: 120px clamp(28px, 4vw, 72px) 90px; perspective: 1400px; }
.hs-intro { width: min(92vw, 820px); display: grid; align-content: center; gap: 32px; padding-left: var(--gutter); }
.hs-intro .t-xl { max-width: 9ch; }
.hs-intro p { color: var(--night-muted); max-width: 38ch; }
.hs-card { width: clamp(300px, 34vw, 560px); display: grid; gap: 22px; transform-style: preserve-3d; }
.hs-card .reveal-img { aspect-ratio: 4 / 5; max-height: 58vh; width: 100%; }
.hs-card:nth-child(even) .reveal-img { aspect-ratio: 5 / 4; }
.hs-card .t-m { max-width: 16ch; }
.hs-card p { color: var(--night-muted); max-width: 40ch; }
.hs-num { font-family: var(--display); font-size: 0.95rem; color: var(--coral); letter-spacing: 0.08em; }
.hs-outro { width: min(92vw, 900px); display: grid; align-content: center; gap: 28px; }
.hs-outro .t-statement { max-width: 18ch; }
.hs-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; height: 2px; background: rgba(255,255,255,0.12); }
.hs-progress span { position: absolute; inset: 0; background: var(--coral); transform-origin: left; transform: scaleX(0); }
.hs-hint { position: absolute; top: 110px; right: var(--gutter); color: var(--night-muted); }
/* phones / reduced motion: swipe sideways instead of pinning */
.hs.is-native .hs-track { height: auto; width: auto; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 72px; }
.hs.is-native .hs-track::-webkit-scrollbar { display: none; }
.hs.is-native .hs-panel { scroll-snap-align: start; padding-block: 96px 0; }
.hs.is-native .hs-card { width: min(78vw, 420px); }
.hs.is-native .hs-progress, .hs.is-native .hs-hint { display: none; }
.hs.is-native .hs-intro { width: 78vw; padding-right: 0; }
@media (max-width: 700px) {
  .hs-panel { padding: 96px 14px 72px; }
  .hs-intro { width: 86vw; padding-left: var(--gutter); }
  .hs-card { width: 76vw; gap: 14px; }
  .hs-card .reveal-img, .hs-card:nth-child(even) .reveal-img { aspect-ratio: 4 / 5; max-height: 46svh; }
  .hs-hint { top: 84px; }
  .hs-progress { bottom: 28px; }
  .hnews.section { padding-block: 72px; }
  .hnews .head { margin-bottom: 32px; }
}
.hs.is-native .hs-intro::after { content: "Swipe to explore →"; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: clamp(28px, 4vw, 56px); background: var(--coral); color: #fff; white-space: nowrap; }
.marquee-track { display: inline-flex; will-change: transform; }
.marquee-track span {
  font-family: var(--display); font-weight: 300; font-size: clamp(3rem, 2rem + 6vw, 9rem);
  letter-spacing: -0.04em; line-height: 1; padding-right: 0.35em; display: inline-flex; align-items: center; gap: 0.35em;
}
.marquee-track span::after { content: ""; width: 0.22em; height: 0.22em; border-radius: 50%; background: var(--gold); }

/* ---------- Vision (full-bleed) ---------- */
.vision { position: relative; min-height: 120svh; color: #fff; display: grid; align-items: center; overflow: hidden; background: var(--night); }
.vision .parallax { position: absolute; inset: 0; }
.vision .parallax::after { content: ""; position: absolute; inset: 0; background: rgba(12, 10, 6, 0.5); }
.vision-copy { position: relative; z-index: 2; display: grid; gap: 40px; padding-block: var(--section); }
.vision-copy .t-statement { max-width: 20ch; }
.vision-copy .t-lede { color: rgba(255,255,255,0.85); }

/* ---------- Standards deck + library (home) ---------- */
.library { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(48px, 7vw, 140px); align-items: start; }
.deck { position: relative; height: clamp(380px, 46vw, 620px); perspective: 1600px; margin-top: 48px; }
.deck-card {
  --cw: clamp(200px, 20vw, 290px);
  position: absolute; left: 50%; top: 50%; width: var(--cw); aspect-ratio: 210 / 297;
  margin: calc(var(--cw) * -0.707) 0 0 calc(var(--cw) * -0.5);
  border-radius: 12px; padding: 22px; display: grid; align-content: space-between;
  background: var(--night-ink); color: var(--ink); text-decoration: none;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55); transform-style: preserve-3d; will-change: transform;
}
.deck-card:nth-child(2n) { background: var(--gold); }
.deck-card:nth-child(3n) { background: var(--coral); color: #fff; }
.deck-card img { width: 44px; border-radius: 50%; background: #fff; }
.deck-card strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 0.8rem + 0.7vw, 1.45rem); line-height: 1.1; letter-spacing: -0.015em; }
.deck-card small { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.search { display: grid; gap: 12px; }
.search label { font-weight: 600; }
.search input {
  width: 100%; min-height: 66px; padding: 0 26px; font-size: 1.2rem; border-radius: 999px;
  background: var(--night-2); color: var(--night-ink); border: 1px solid rgba(255,255,255,0.18);
  transition: border-color 0.3s;
}
.search input:focus { outline: none; border-color: var(--coral); }
.search input::placeholder { color: #8d8576; }
.library-count { font-size: var(--fs-small); color: var(--night-muted); min-height: 1.5em; }
.library-count a { color: var(--night-ink); }
.doc-list { display: grid; }
.doc-list li { border-top: 1px solid rgba(127, 120, 105, 0.3); }
.doc-list li:last-child { border-bottom: 1px solid rgba(127, 120, 105, 0.3); }
.doc-list a {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: center;
  padding: 20px 6px; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: padding 0.5s var(--ease), color 0.4s;
}
.doc-list a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--coral);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease);
}
.doc-list a:hover { padding-inline: 22px; color: #fff; }
.doc-list a:hover::before { transform: none; }
.doc-list a:hover .doc-meta { color: rgba(255,255,255,0.85); }
.doc-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.doc-meta { grid-column: 1; font-size: var(--fs-small); color: var(--muted); }
.section--night .doc-meta { color: var(--night-muted); }
.doc-get { grid-row: 1 / span 2; grid-column: 2; font-size: 1.4rem; transition: transform 0.5s var(--ease); }
.doc-list a:hover .doc-get { transform: translateX(-4px) rotate(-45deg); }
.doc-empty { padding: 24px 0; }
@media (max-width: 900px) { .library { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .deck { height: 340px; } .deck-card { --cw: 150px; padding: 14px; } .deck-card img { width: 32px; } .deck-card strong { font-size: 0.95rem; } }

/* ---------- News carousel (home) ---------- */
.hnews { overflow: hidden; }
.hnews-view { overflow: hidden; padding-inline: var(--gutter); }
.drag-track { display: flex; gap: clamp(18px, 2vw, 32px); width: max-content; will-change: transform; }
.ncard { width: clamp(280px, 30vw, 480px); flex: 0 0 auto; }
.ncard a { display: grid; gap: 18px; text-decoration: none; }
.ncard .reveal-img { aspect-ratio: 4 / 5; }
.ncard .reveal-img img { transition: transform 1.2s var(--ease); }
.ncard a:hover .reveal-img img { transform: scale(1.06); }
.ncard-date { font-size: var(--fs-small); color: var(--muted); }
.ncard-title { font-family: var(--display); font-weight: 350; font-size: clamp(1.4rem, 1.1rem + 0.9vw, 2rem); line-height: 1.08; letter-spacing: -0.02em; font-variation-settings: "opsz" 72; }
.ncard--blank .reveal-img { display: grid; place-items: center; background: var(--night); }
.ncard--blank .reveal-img img { width: 30%; height: auto; border-radius: 50%; background: #fff; }

/* ---------- Join (circle reveal) ---------- */
.join { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ground); }
.join-media { position: absolute; inset: 0; clip-path: circle(18% at 50% 55%); will-change: clip-path; }
.join-media img { width: 100%; height: 100%; object-fit: cover; }
.join-media::after { content: ""; position: absolute; inset: 0; background: rgba(12, 10, 6, 0.52); }
.join-copy { position: relative; z-index: 2; height: 100%; display: grid; place-content: center; justify-items: center; gap: 30px; text-align: center; color: #fff; padding-inline: var(--gutter); }
.join-copy .t-xl { max-width: 11ch; }
.join-copy p { max-width: 46ch; color: rgba(255,255,255,0.9); }

/* ---------- Footer ---------- */
.ftr { background: var(--night); color: var(--night-ink); padding-top: clamp(80px, 9vw, 160px); overflow: hidden; }
.ftr-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 0.8fr 0.8fr; gap: 40px; }
/* Social media logos (footer and Contact page) */
.social { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.social a { display: inline-flex; width: 40px; height: 40px; color: var(--night-ink); border-radius: 50%; transition: color 0.3s, transform 0.4s var(--ease); }
.social a:hover, .social a:focus-visible { color: #0866ff !important; transform: translateY(-3px); }
.social svg { width: 100%; height: 100%; fill: currentColor; }
.social--lg a { width: 56px; height: 56px; color: var(--ink); }
.contact-lines .social { margin-top: 6px; }
.ftr h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--night-muted); margin-bottom: 16px; }
.ftr ul { display: grid; gap: 8px; list-style: none; padding: 0; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--coral); }
.ftr-lede { font-family: var(--display); font-weight: 300; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 15ch; }
.ftr .t-small { color: var(--night-muted); margin-top: 14px; }
.foot-name { display: block; width: 100%; height: auto; fill: var(--olive); margin-top: clamp(56px, 7vw, 120px); }
.ftr-base { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 28px; font-size: var(--fs-small); color: var(--night-muted); }
.ftr-base nav { display: flex; gap: 22px; }
/* WAZA logo shown in the footer's own colours, so it sits quietly */
.waza { display: inline-flex; align-items: center; gap: 14px; color: var(--night-muted); text-decoration: none; }
.waza img { width: 104px; filter: brightness(0) invert(0.72) sepia(0.25); opacity: 0.85; transition: filter 0.4s, opacity 0.4s; }
.waza:hover img { filter: none; opacity: 1; }
@media (max-width: 900px) { .ftr-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr-top { grid-template-columns: 1fr; } }

/* =====================================================================
   INNER PAGES
   ===================================================================== */

/* split layout */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(40px, 7vw, 140px); align-items: start; }
.split-sticky { position: sticky; top: 120px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-sticky { position: static; } }

/* stacking cards (about: purpose) */
.stack { display: grid; gap: 0; }
.stack-card {
  position: sticky; top: 110px; min-height: 62vh; margin-bottom: 6vh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--radius); overflow: hidden;
  background: var(--night-2); color: var(--night-ink); transform-origin: 50% 0;
}
.stack-card:nth-child(2) { background: #2f2a20; }
.stack-card:nth-child(3) { background: #3a3226; }
.stack-card:nth-child(4) { background: var(--coral); }
.stack-card .copy { padding: clamp(28px, 4vw, 64px); display: grid; align-content: space-between; gap: 32px; }
.stack-card .copy p { max-width: 40ch; color: rgba(241,235,224,0.82); }
.stack-card:nth-child(4) .copy p { color: #fff; }
.stack-card .media { position: relative; overflow: hidden; }
.stack-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) {
  .stack-card { grid-template-columns: 1fr; top: 84px; min-height: 0; margin-bottom: 4vh; }
  .stack-card .media { min-height: 220px; order: -1; }
  .stack-card .copy { gap: 16px; padding: 24px; }
}

/* "Who we are" (about): film reel + text + collage */
.who { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: start; margin-top: clamp(64px, 8vw, 140px); }
.reel { position: sticky; top: 110px; }
.reel-frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - 150px); width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--night); isolation: isolate; }
.reel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease; }
.reel-img.is-on { opacity: 1; animation: kenburns 7s linear forwards; }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.18) translate(-2.5%, -1.5%); } }
.reel-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10,9,6,0.35) 0%, rgba(10,9,6,0) 22%, rgba(10,9,6,0) 55%, rgba(10,9,6,0.7) 100%); }
.reel-bars { position: absolute; z-index: 2; left: 22px; right: 22px; top: 20px; display: flex; gap: 6px; }
.reel-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.reel-bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.reel-bars i.is-done::after { transform: scaleX(1); }
.reel-bars i.is-on::after { animation: reelbar 5s linear forwards; }
@keyframes reelbar { to { transform: scaleX(1); } }
.reel-cap { position: absolute; z-index: 2; left: 26px; right: 26px; bottom: 26px; color: #fff; overflow: hidden;
  font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; }
.reel-cap span { display: inline-block; animation: capin 0.9s var(--ease) both; }
@keyframes capin { from { transform: translateY(105%); } to { transform: none; } }
.who-copy { display: grid; gap: 28px; }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; }
.pillars li { padding: 10px 18px; border-radius: 999px; background: var(--sand); font-weight: 500; font-size: 0.95rem; transition: background-color 0.3s, color 0.3s; }
.pillars li:hover { background: var(--coral); color: #fff; }
.collage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 18px); margin-top: 24px; align-items: start; }
.collage .reveal-img { aspect-ratio: 3 / 4; }
.collage .reveal-img:nth-child(2) { margin-top: 56px; }
.collage .reveal-img:nth-child(3) { margin-top: 20px; }
@media (max-width: 900px) {
  .who { grid-template-columns: 1fr; }
  .reel { position: relative; top: 0; }
  .reel-frame { aspect-ratio: 4 / 5; max-height: 72svh; }
}
@media (prefers-reduced-motion: reduce) { .reel-img.is-on { animation: none; transform: none; } }
/* vision / mission pair */
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2vw, 32px); }
.vm > div { background: var(--night-2); border-radius: var(--radius); padding: clamp(28px, 4vw, 64px); display: grid; gap: 28px; align-content: start; }
.vm .t-statement { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); }
@media (max-width: 800px) { .vm { grid-template-columns: 1fr; } }

/* values list with floating picture */
.rows li { border-top: 1px solid rgba(21, 20, 15, 0.16); }
.rows li:last-child { border-bottom: 1px solid rgba(21, 20, 15, 0.16); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px 40px; align-items: center;
  padding: clamp(24px, 3vw, 44px) 0; transition: padding 0.6s var(--ease), color 0.4s;
}
.row .t-l { transition: transform 0.7s var(--ease); }
.row:hover .t-l { transform: translateX(18px); }
.row p { max-width: 46ch; }
.hover-pic {
  position: fixed; left: 0; top: 0; z-index: 60; width: 300px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-6deg);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease);
}
.hover-pic.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
.hover-pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .row { grid-template-columns: 1fr; } }
/* Phones and tablets: each value shows its picture in the row (there is no mouse to follow) */
.row-pic { display: none; }
@media (hover: none), (max-width: 800px) {
  .row { grid-template-columns: 96px 1fr; column-gap: 18px; }
  .row .row-pic { display: block; grid-column: 1; grid-row: 1 / span 2; width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
  .row > :not(.row-pic) { grid-column: 2; }
  .row .t-l { font-size: clamp(1.6rem, 1rem + 3vw, 2.4rem); }
}
@media (hover: none) { .hover-pic { display: none; } }

/* people */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.people li { background: var(--sand); border-radius: var(--radius); padding: 30px; display: grid; gap: 6px; min-height: 180px; align-content: end; transition: background-color 0.4s, color 0.4s, transform 0.6s var(--ease); }
.people li:hover { background: var(--coral); color: #fff; transform: translateY(-6px); }
.people li:hover .t-small { color: rgba(255,255,255,0.85); }
.people .name { font-family: var(--display); font-weight: 350; font-size: clamp(1.45rem, 0.9rem + 1vw, 1.9rem); letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }

/* documents page */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button {
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(21,20,15,0.25);
  background: transparent; font-weight: 500; transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.doc-tools { display: grid; gap: 22px; margin-bottom: clamp(56px, 6vw, 96px); }
.doc-tools .search input { background: #fff; color: var(--ink); border-color: rgba(21,20,15,0.2); }
.doc-tools .library-count { color: var(--muted); }
.doc-groups { display: grid; gap: clamp(64px, 7vw, 120px); }
.doc-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 5vw, 96px); }
.doc-group .t-m { position: sticky; top: 110px; align-self: start; }
@media (max-width: 900px) { .doc-group { grid-template-columns: 1fr; } .doc-group .t-m { position: static; } }

/* news page grid */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: clamp(40px, 4vw, 64px) clamp(20px, 2.5vw, 40px); }
.news-grid .ncard { width: auto; }
.news-grid .ncard:first-child { grid-column: 1 / -1; }
.news-grid .ncard:first-child a { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: clamp(24px, 4vw, 72px); }
.news-grid .ncard:first-child .reveal-img { aspect-ratio: 16 / 10; }
.news-grid .ncard:first-child .ncard-title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.75rem); line-height: 1; }
@media (max-width: 800px) { .news-grid .ncard:first-child a { grid-template-columns: 1fr; } }

/* single post */
.post-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(32px, 6vw, 120px); align-items: start; }
/* The summary on the left stays in view while the article scrolls */
.post-aside { position: sticky; top: 120px; }
.post-body .prose { font-size: 1.1875rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 64px; }
.gallery a { display: block; overflow: hidden; border-radius: 12px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 1s var(--ease); }
.gallery a:hover img { transform: scale(1.08); }
.post-nav { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: var(--section); }
@media (max-width: 800px) { .post-body { grid-template-columns: 1fr; } .post-aside { position: static; } .gallery { grid-template-columns: 1fr 1fr; } }

/* jobs */
.jobs li { border-top: 1px solid rgba(21,20,15,0.16); }
.jobs li:last-child { border-bottom: 1px solid rgba(21,20,15,0.16); }
.jobs a {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px 40px; align-items: center;
  padding: clamp(28px, 3.5vw, 56px) 0; text-decoration: none; isolation: isolate; transition: padding 0.6s var(--ease), color 0.4s;
}
.jobs a::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--night); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); }
.jobs a:hover { color: var(--night-ink); padding-inline: 24px; }
.jobs a:hover::before { transform: none; }
.jobs a:hover .t-small { color: var(--night-muted); }
.jobs .go { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: 1.4rem; transition: transform 0.6s var(--ease); }
.jobs a:hover .go { transform: rotate(-45deg) scale(1.1); }
@media (max-width: 700px) { .jobs a { grid-template-columns: 1fr auto; } .jobs a .t-small { grid-column: 1; } .jobs .go { grid-row: 1 / span 2; grid-column: 2; } }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 140px); align-items: start; }
.contact-lines { display: grid; gap: 44px; }
.contact-lines h2 { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-lines .big { font-family: var(--display); font-weight: 300; font-size: clamp(1.75rem, 1.2rem + 1.8vw, 3rem); letter-spacing: -0.025em; line-height: 1.08; text-decoration: none; }
.contact-lines a.big:hover { color: var(--coral); }
.form { background: var(--night); color: var(--night-ink); border-radius: var(--radius); padding: clamp(28px, 4vw, 60px); display: grid; gap: 24px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--fs-small); color: var(--night-muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 54px; padding: 10px 0; background: transparent; color: var(--night-ink);
  border: 0; border-bottom: 1px solid rgba(255,255,255,0.28); border-radius: 0; font-size: 1.125rem; transition: border-color 0.3s;
}
.field select option { color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--coral); }
.form-status { font-weight: 600; min-height: 1.5em; color: var(--gold); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* credits */
.credits li { padding: 18px 0; border-top: 1px solid rgba(21,20,15,0.16); display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.credits img { width: 120px; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }

/* =====================================================================
   Motion states (only when JavaScript is running)
   ===================================================================== */
.js [data-fade] { opacity: 0; transform: translateY(40px); }
.js [data-split] { visibility: hidden; }
.js [data-split].is-split { visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-fade] { opacity: 1; transform: none; }
  .js [data-split] { visibility: visible; }
  .join-media { clip-path: none; }
}

@media print {
  .hdr, .menu, .ftr, .loader, .curtain, .cursor, .join, .marquee { display: none !important; }
  .hero { height: auto; color: var(--ink); background: none; }
  .hero-media { display: none; }
  .hero-copy { position: static; }
}

/* Phones: home news cards (placed last so it wins over the general card size) */
@media (max-width: 700px) {
  .hnews .ncard { width: 74vw; }
  .hnews .ncard .reveal-img { aspect-ratio: 1 / 1; }
}
