/* ============================================================
   Black Coral Club - styles
   ============================================================ */

@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #e0baa5;
}

:root {
  --bg: #090909;        /* neutral near-black (was #08090b, slight blue cast) */
  --bg-soft: #121212;
  --text: #ffffff;
  --text-dim: #ffffff;
  --maxw: 1320px;
  --coral: #e0baa5;
  --blue: #73c1ee;
  --accent: #e0baa5;
  --legal-notice-bg: url("Theme/Images/V2_1a.jpg");

  /* Slow, calm coral <-> blue cycle (~120s round trip) */
  animation: accentCycle 120s ease-in-out infinite;
}

.black-coral-v3-page {
  --legal-notice-bg: url("Theme/Images/V3_Coral.jpg");
}

.all-posts-page,
.home-v3-page {
  --legal-notice-bg: url("Theme/Images/V2_1a.jpg");
}

@keyframes accentCycle {
  0%   { --accent: #e0baa5; } /* coral */
  50%  { --accent: #73c1ee; } /* blue  */
  100% { --accent: #e0baa5; } /* coral */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* ---------- Background video + scroll-darkening overlay ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
}

/* Static cinematic vignette - always on, keeps hero text & logo legible */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 28%, rgba(0,0,0,0.62) 100%);
}

.bg__video,
.black-coral-bg__mono {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* fills viewport */
  object-position: center;  /* centered crop, full video height */
  transition: filter 0.15s linear;
  will-change: transform, filter;
}

.bg__video {
  /* scale(1.10) leaves ~5% bleed top & bottom. translateY pushes the
     frame down while keeping a robust top-bleed safety margin. */
  opacity: 1;
  transform: translateY(2%) scale(1.04);
  transition: opacity 5.2s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.15s linear;
}

body.home-video-pending .bg__video {
  opacity: 0;
}

body.home-video-visible .bg__video {
  opacity: 1;
}

.black-coral-bg__mono {
  transform: translateY(8%) scale(1.34);
  animation: blackCoralMediaZoom 3.1s cubic-bezier(0.05, 0.8, 0.12, 1) both;
}

.home-v2-page .black-coral-bg__mono {
  opacity: 1;
  animation: blackCoralMediaZoom 9.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: opacity 5.2s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.15s linear;
}

body.home-v2-page.home-image-pending .black-coral-bg__mono {
  opacity: 0;
  animation: none;
}

body.home-v2-page.home-image-visible .black-coral-bg__mono {
  opacity: 1;
  animation: blackCoralMediaZoom 9.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.home-v2-page.bg-animation-settled .black-coral-bg__mono {
  opacity: 1;
  animation: none;
  transform: translateY(2%) scale(1.04);
}

body.bg-animation-settled .black-coral-bg__mono {
  animation-play-state: paused;
}

@keyframes blackCoralMediaZoom {
  from {
    transform: translateY(8%) scale(1.34);
  }
  to {
    transform: translateY(2%) scale(1.04);
  }
}

.intro-mark {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, -5vh, 0) scale(1);
  transition:
    opacity 4.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 4.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-intro-pending:not(.home-intro-mark-hidden) .intro-mark {
  opacity: 1;
  transform: translate3d(0, -5vh, 0) scale(1);
}

.intro-mark.is-out {
  opacity: 0;
  transform: translate3d(0, -5vh, 0) scale(1);
}

.intro-mark.is-gone {
  display: none;
}

body.menu-open .intro-mark {
  opacity: 0;
}

.intro-mark img {
  display: block;
  width: clamp(209px, 25.3vw, 396px);
  height: auto;
  filter: drop-shadow(0 16px 42px rgba(0,0,0,0.62));
}

.home-v2-page main {
  position: relative;
  z-index: 2;
}

.home-v2-page .home-v2-swim-stage {
  position: relative;
  height: 185vh;
  height: 185svh;
}

.home-v2-page .home-v2-swim-stage .hero {
  position: sticky;
  top: 0;
  z-index: 2;
}

.home-v3-page .home-v3-niko-stage {
  position: relative;
  height: 178vh;
  height: 178svh;
}

.home-v3-page .home-v3-niko-stage .hero {
  position: sticky;
  top: 0;
  z-index: 2;
  overflow: hidden;
}

.home-v3-page .home-v3-niko-stage .hero__inner {
  position: relative;
  z-index: 2;
}

.hero-niko {
  --niko-intro-y: 115%;
  --niko-scroll-y: 0px;
  --niko-scroll-opacity: 1;
  --niko-x: 0px;
  position: absolute;
  left: calc(clamp(30px, 6.8vw, 84px) + 10px);
  bottom: -28px;
  z-index: 1;
  width: clamp(200px, min(22vw, 38vh), 320px);
  opacity: var(--niko-scroll-opacity);
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
  transform:
    translate3d(var(--niko-x), calc(var(--niko-intro-y) + var(--niko-scroll-y)), 0)
    scale(1.04);
  transform-origin: 0 100%;
  transition:
    opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.hero-niko.is-in {
  --niko-intro-y: 0px;
  opacity: var(--niko-scroll-opacity);
}

.hero-niko.is-scroll-controlled {
  transition:
    opacity 0.28s linear,
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-niko img {
  display: block;
  width: 100%;
  height: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.34));
}

.hero-niko__byline {
  position: absolute;
  left: calc(clamp(-10px, -0.4vw, -4px) - 10px);
  bottom: clamp(56px, 8.2vh, 86px);
  white-space: nowrap;
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.46s,
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.46s;
}

.hero-niko.is-in .hero-niko__byline {
  opacity: 1;
  transform: none;
}

.hero-niko__byline strong {
  font-weight: 700;
}

.turtle-swim {
  --turtle-x: 112vw;
  --turtle-y: 34vh;
  --turtle-rotate: -5deg;
  --turtle-scale: 1;
  --turtle-facing: 1;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 45;
  width: clamp(345px, 45vw, 645px);
  opacity: var(--turtle-opacity, 0);
  pointer-events: none;
  transform:
    translate3d(var(--turtle-x), var(--turtle-y), 0)
    rotate(var(--turtle-rotate))
    scale(var(--turtle-scale));
  transform-origin: 50% 50%;
  filter: saturate(0.92) contrast(0.96);
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s ease-out;
  will-change: transform, opacity;
}

.home-v3-page .turtle-swim,
.home-v4-page .turtle-swim {
  width: clamp(227px, 29.7vw, 427px);
}

.turtle-swim::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 10%;
  bottom: -18%;
  height: 30%;
  border-radius: 50%;
  background: rgba(0,0,0,0.46);
  filter: blur(42px);
  transform: scaleX(0.92);
  transform-origin: 50% 50%;
  pointer-events: none;
}

.turtle-swim img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 55%;
  animation: turtleFinDrift 5.4s ease-in-out infinite;
}

@keyframes turtleFinDrift {
  0%, 100% { transform: translateY(0) rotate(-1.8deg) scaleX(var(--turtle-facing)); }
  45% { transform: translateY(-22px) rotate(2.5deg) scaleX(var(--turtle-facing)); }
  72% { transform: translateY(12px) rotate(-0.9deg) scaleX(var(--turtle-facing)); }
}

.bg__overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  opacity: 0.45;            /* JS ramps this up on scroll */
  transition: opacity 0.1s linear;
}

/* ---------- Logo ---------- */

.logo {
  position: fixed;
  top: 34px;
  /* aligned to the right edge of the content column */
  right: calc(max((100vw - var(--maxw)) / 2, 0px) + clamp(22px, 6vw, 64px));
  z-index: 70;
  display: block;
  opacity: 0;                 /* revealed by JS at the end of the hero sequence */
  transition: transform 0.3s ease,
              opacity 3s cubic-bezier(0.16, 1, 0.3, 1),
              top 0.4s ease;
}
.logo.is-visible { opacity: 1; }
.logo img {
  display: block;
  height: 79px;               /* load size (desktop, +10%) */
  width: auto;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.55));
  transition: height 0.4s ease;
}
/* On scroll the logo shrinks and tucks into the sticky header */
.logo.docked { top: 25px; }
.logo.docked img { height: 55px; }
.logo:hover { transform: scale(1.04); }

/* ---------- Header / primary nav ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 26px 0 30px;
  background: linear-gradient(180deg, rgba(9,9,9,0.72) 0%, rgba(9,9,9,0.34) 62%, rgba(9,9,9,0) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 4.2s cubic-bezier(0.16, 1, 0.3, 1),
              padding-bottom 0.4s ease,
              background 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.is-in { opacity: 1; }
.home-v2-page .site-header:not(.stuck) {
  background: linear-gradient(180deg, rgba(9,9,9,0.46) 0%, rgba(9,9,9,0.18) 62%, rgba(9,9,9,0) 100%);
}
.home-v2-page .site-header.stuck {
  background: linear-gradient(180deg, rgba(9,9,9,0.50) 0%, rgba(9,9,9,0.22) 62%, rgba(9,9,9,0) 100%);
}
/* Once scrolled, the sticky header grows its bottom blur/fade zone so
   content softens well before reaching the logo (not in the top state). */
.site-header.stuck { padding-bottom: 64px; }
.site-header__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(22px, 6vw, 64px);
  display: flex;
  align-items: center;
}
.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}
.nav a {
  position: relative;
  z-index: 1;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--blue); }
.nav a.is-active {
  opacity: 1;
  color: var(--blue);
  font-weight: 700;
}
.nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--blue);
}
.nav__cta.is-active::after { display: none; }
.nav__cta {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  opacity: 1;
}
/* extra specificity so it beats `.nav a { font-weight: 500 }` */
.nav a.nav__cta { font-weight: 300; }   /* Light */
.nav__cta:hover {
  color: var(--blue);
  border-color: var(--blue);
}
.nav__version {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(244, 244, 244, 0.48);
}
.nav .nav__version-link {
  font-weight: 300;
  opacity: 0.78;
}
.nav .nav__version-link--current {
  color: var(--text);
  font-weight: 500;
  opacity: 1;
}
.nav .nav__version-link::after {
  display: none;
}
.nav__version-sep {
  font-weight: 300;
}
.nav-short { display: none; }

.menu-toggle {
  display: none;
  pointer-events: auto;
  align-items: center;
  gap: 10px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
  cursor: pointer;
  position: relative;
  z-index: 95;
}

.menu-toggle__icon {
  position: relative;
  display: block;
  width: 24px;
  height: 20px;
}

.menu-toggle__icon::before,
.menu-toggle__icon span {
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    top 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.24s ease;
}

.menu-toggle__icon::before {
  content: "";
  top: 9px;
}

.menu-toggle__icon span:first-child { top: 2px; }
.menu-toggle__icon span:last-child { top: 16px; }

.menu-toggle.is-open .menu-toggle__icon::before {
  opacity: 0;
  transform: scaleX(0.45);
}

.menu-toggle.is-open .menu-toggle__icon span:first-child {
  top: 8px;
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__icon span:last-child {
  top: 8px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: none;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 96px clamp(22px, 7vw, 42px) 24px;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(115,193,238,0.1), transparent 42%),
    rgba(7, 8, 9, 0.82);
  -webkit-backdrop-filter: blur(10px) saturate(114%);
  backdrop-filter: blur(10px) saturate(114%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu__nav {
  min-height: calc(100svh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  transform: translateY(clamp(-34px, -4vh, -18px));
}

.mobile-menu__nav a {
  position: relative;
  display: block;
  width: 100%;
  max-width: calc(100vw - 44px);
  padding: clamp(9px, 1.75vh, 16px) 0;
  color: var(--text);
  font-size: clamp(2.04rem, 10.4vw, 5.05rem);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 4px 28px rgba(0,0,0,0.48);
  transform: translateY(18px);
  opacity: 0;
  transition:
    color 0.24s ease,
    opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu__nav a + a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(100%, calc(100vw - 44px));
  height: 1px;
  background: rgba(255,255,255,0.16);
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a.is-active {
  color: var(--blue);
}

.mobile-menu__nav a.is-active {
  font-weight: 700;
}

.mobile-menu__nav a.mobile-menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: min(52vw, 220px);
  max-width: calc(100vw - 44px);
  margin-top: clamp(8px, 1.8vh, 16px);
  padding: 0.78em 1em 0.64em;
  border: 1px solid rgba(115,193,238,0.7);
  border-radius: 999px;
  color: var(--blue);
  font-size: clamp(0.82rem, 3.8vw, 1.18rem);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  text-shadow: none;
  white-space: nowrap;
}

.mobile-menu__nav a.mobile-menu__cta::before {
  left: 0;
  width: calc(100vw - 44px);
}

.mobile-menu__nav a.mobile-menu__cta::before {
  top: calc(clamp(8px, 1.8vh, 16px) * -1);
}

.mobile-menu__nav a.mobile-menu__cta:hover {
  color: #ffffff;
  background: rgba(115,193,238,0.16);
  border-color: rgba(115,193,238,0.92);
}

.mobile-menu__legal {
  position: absolute;
  left: clamp(22px, 7vw, 42px);
  right: clamp(22px, 7vw, 42px);
  bottom: max(18px, env(safe-area-inset-bottom));
  color: rgba(255,255,255,0.5);
  font-size: clamp(0.62rem, 2.5vw, 0.78rem);
  font-weight: 300;
  line-height: 1.35;
  max-width: calc(100vw - 44px);
  white-space: normal;
  text-wrap: balance;
}

.mobile-menu__legal-sep {
  margin: 0 5px;
  color: rgba(255,255,255,0.42);
}

.mobile-menu__notice-toggle {
  font: inherit;
  color: rgba(255,255,255,0.72);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease;
}

.mobile-menu__notice-toggle:hover,
.mobile-menu__notice-toggle:focus-visible {
  color: #ffffff;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .mobile-menu__nav a {
  opacity: 1;
  transform: none;
}

body.menu-open .mobile-menu__nav a:nth-child(1) { transition-delay: 0.04s; }
body.menu-open .mobile-menu__nav a:nth-child(2) { transition-delay: 0.08s; }
body.menu-open .mobile-menu__nav a:nth-child(3) { transition-delay: 0.12s; }
body.menu-open .mobile-menu__nav a:nth-child(4) { transition-delay: 0.16s; }
body.menu-open .mobile-menu__nav a:nth-child(5) { transition-delay: 0.20s; }
body.menu-open .mobile-menu__nav a:nth-child(6) { transition-delay: 0.24s; }
body.menu-open .mobile-menu__nav a:nth-child(7) { transition-delay: 0.28s; }

/* ---------- Shared layout ---------- */

main { position: relative; z-index: 1; }

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 70px clamp(22px, 6vw, 64px);
  scroll-margin-top: 84px;
}
/* About is scrolled to screen-centre (JS), so no header offset for it */
#about { scroll-margin-top: 0; }

/* Section separator (Latest <-> Author): faint hairline spanning the
   content width. The 70px section paddings already give 70px each side;
   the negative margin pulls Author up so it peeks into view when you
   jump to Latest. Tune this single value by feel (0 = no extra gap). */
.sep {
  max-width: var(--maxw);
  margin: -15px auto;
  padding: 0 clamp(22px, 6vw, 64px);
}
.sep::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

/* Scroll-reveal: heading fades in up, then its columns follow slightly later */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
/* CTA buttons fade in much softer than the section reveal; each is
   observed individually in main.js so it only animates once it is in
   the viewport. The reveal classes are removed afterwards so the .btn
   hover transition stays snappy. */
.btn.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.btn.reveal.in { opacity: 1; transform: none; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

h2 {
  font-size: clamp(1.45rem, 1rem + 1.9vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--blue);
}

h3 { font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--text-dim); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.9rem;          /* desktop; mobile keeps 0.78rem below */
  font-weight: 600;
  /* fixed brand brown - does not cycle to blue like var(--accent) */
  color: var(--coral);
  text-shadow:
    0 1px 3px rgba(0,0,0,0.95),
    0 2px 10px rgba(0,0,0,0.85),
    0 6px 24px rgba(0,0,0,0.7);
}

.home-v2-page .hero .eyebrow,
.home-v3-page .hero .eyebrow {
  text-shadow: none;
}

a { color: inherit; }

.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.link:hover { opacity: 0.75; }
.link--light { color: var(--text); }
/* "All posts" in the section header - Light weight, 50% transparent */
.section__head .link { font-weight: 300; opacity: 0.5; }

/* ---------- Button ---------- */

/* CTA buttons - identical size (hero + footer Subscribe) */
.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 15px 33px;        /* +10% */
  border-radius: 999px;
  background: var(--blue);
  color: #0a1014;
  font-weight: 600;
  font-size: 1.08rem;        /* +10% */
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
/* .btn--loud kept as a no-op so markup stays valid; size matches the rest */

/* ---------- 1. Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 70px clamp(22px, 6vw, 64px);
  position: relative;
}

.hero__inner {
  max-width: 960px;
}

.is-instant-reveal .logo,
.is-instant-reveal .hero__inner,
.is-instant-reveal .site-header,
.is-instant-reveal .scroll-cue {
  transition: none;
}

.is-instant-reveal .hero__inner > .eyebrow,
.is-instant-reveal .hero__inner .post-hero__date,
.is-instant-reveal .hero__inner .hero__quote,
.is-instant-reveal .hero__inner .black-coral-hero-intro,
.is-instant-reveal .hero__inner .btn {
  transition: none;
}

.hero__inner > .eyebrow,
.hero__inner .post-hero__date,
.hero__inner .hero__quote,
.hero__inner .black-coral-hero-intro,
.hero__inner .btn {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__inner > .eyebrow {
  transition-delay: 0.08s;
}

.hero__inner .post-hero__date {
  transition-delay: 0.18s;
}

.hero__inner .hero__quote {
  transition-delay: 0.26s;
}

.hero__inner .black-coral-hero-intro {
  transition-delay: 0.42s;
}

.hero__inner .btn {
  transition-delay: 0.58s;
}

.hero__inner.is-in > .eyebrow,
.hero__inner.is-in .post-hero__date,
.hero__inner.is-in .hero__quote,
.hero__inner.is-in .black-coral-hero-intro,
.hero__inner.is-in .btn {
  opacity: 1;
  transform: none;
}

/* Once revealed, restore the snappy hover transition (set in main.js). */
.hero__inner .btn.btn--ready {
  transition: transform 0.25s ease;
  transition-delay: 0s;
}
.hero__inner.is-in .btn.btn--ready:hover {
  transform: translateY(-2px);
}

.hero .eyebrow { margin-bottom: 28px; }

.hero__quote {
  /* Scales with the SMALLER of width/height, so short laptop screens
     get a smaller quote instead of overflowing. */
  font-size: clamp(1.75rem, min(4.25vw, 5.55vh), 3.35rem);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.02em;
  color: var(--text);
  /* Layered: tight dark layer for crisp legibility over the video,
     mid + broad soft layers to lift the text off a busy background. */
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 3px 10px rgba(0,0,0,0.8),
    0 8px 40px rgba(0,0,0,0.75);
}

.home-v2-page .hero__quote {
  text-shadow:
    0 1px 2px rgba(0,0,0,0.45),
    0 3px 10px rgba(0,0,0,0.4),
    0 8px 40px rgba(0,0,0,0.38);
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(244,244,244,0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.scroll-cue.is-in { opacity: 1; }
/* Fades out as soon as the user scrolls, so it never lingers over the
   About section (toggled in main.js). Wins over .is-in (declared later). */
.scroll-cue.is-faded { opacity: 0; pointer-events: none; }

/* In-flow variant placed below the About section: a "more below" hint.
   Not tied to the intro; shown only while it sits in the lower screen
   and fades back out once scrolled past (is-shown toggled in main.js). */
.scroll-cue--flow {
  position: static;
  transform: none;
  margin: -8px auto 14px;
  opacity: 0;
  pointer-events: none;
}
.scroll-cue--flow.is-shown { opacity: 1; pointer-events: auto; }
.scroll-cue span {
  width: 4px;
  height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(-4px); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}

/* ---------- 2. About ---------- */

.about__title { margin-bottom: 26px; }
.about__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.4vw, 36px);
}
.about__cols p { font-size: 1.06rem; }

/* ---------- About / Latest spacing ---------- */

.between-section-spacer {
  height: clamp(340px, 52vh, 560px);
  margin: -28px 0 -42px;
}

.home-v3-late-turtle .between-section-spacer {
  height: clamp(250px, 38vh, 420px);
  margin: -26px 0 -44px;
}

/* ---------- Black Coral subpage ---------- */

.black-coral-page {
  background: #050606;
}

.black-coral-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #050606;
}

.black-coral-bg__shade {
  position: absolute;
  inset: 0;
}

.black-coral-bg__shade {
  background:
    radial-gradient(ellipse at 52% 20%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 66%, rgba(0,0,0,0.78) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.2) 36%, rgba(0,0,0,0.72) 76%, rgba(0,0,0,0.88) 100%);
}

.black-coral-v2-page .black-coral-bg__shade {
  background:
    radial-gradient(ellipse at 52% 18%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.36) 62%, rgba(0,0,0,0.86) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.24) 32%, rgba(0,0,0,0.82) 72%, rgba(0,0,0,0.96) 100%);
}

.black-coral-v3-page .black-coral-bg__shade {
  background:
    radial-gradient(ellipse at 52% 18%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.14) 68%, rgba(0,0,0,0.58) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.06) 38%, rgba(0,0,0,0.46) 76%, rgba(0,0,0,0.68) 100%);
}

.all-posts-page .black-coral-bg__shade {
  background:
    radial-gradient(ellipse at 52% 20%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.38) 100%),
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.04) 46%, rgba(0,0,0,0.22) 78%, rgba(0,0,0,0.34) 100%);
}

.black-coral-bg__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0,0,0,0.72);
  opacity: var(--black-coral-read-shade, 0);
  transition: opacity 0.18s linear;
}

.black-coral-v2-page .black-coral-bg__shade::after {
  background: rgba(0,0,0,0.5);
}

.black-coral-v3-page .black-coral-bg__shade::after {
  background: rgba(0,0,0,0.48);
}

.black-coral-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px clamp(22px, 6vw, 64px);
  position: relative;
}

.black-coral-hero .hero__inner {
  max-width: 960px;
}

.black-coral-hero .eyebrow {
  margin-bottom: 28px;
}

.black-coral-v2-page .black-coral-hero .eyebrow {
  color: #ffffff;
}

.black-coral-hero .hero__quote {
  font-size: clamp(1.75rem, min(4.25vw, 5.55vh), 3.35rem);
}

.black-coral-intro-grid {
  display: block;
  text-align: center;
}

.black-coral-title {
  margin: 0;
  color: #ffffff;
}

.black-coral-title span {
  display: block;
}

.black-coral-hero-copy {
  max-width: 780px;
  margin: 28px auto 0;
}

.black-coral-hero-intro {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.32rem, 1.08rem + 0.72vw, 1.62rem);
  font-weight: 300;
  line-height: 1.42;
  text-align: center;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.8),
    0 4px 20px rgba(0,0,0,0.72);
}

.black-coral-v2-page .black-coral-hero-intro {
  color: #ffffff;
}

.black-coral-hero-btn {
  margin-top: 24px;
}

.black-coral-story {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(78px, 12vh, 140px) clamp(22px, 6vw, 64px) 112px;
}

.coral-article {
  max-width: none;
}

.coral-opener {
  width: 100vw;
  margin: 0 0 clamp(50px, 6.7vw, 88px);
  margin-left: calc(50% - 50vw);
  display: grid;
  grid-template-columns: 50vw minmax(0, 620px);
  gap: clamp(42px, 5vw, 76px);
  align-items: center;
  scroll-margin-top: 128px;
}

.coral-opener__figure {
  margin: 0;
}

.coral-opener__figure img {
  display: block;
  width: 100%;
  height: clamp(420px, 58vw, 720px);
  max-height: 76vh;
  object-fit: cover;
  object-position: center;
  border-radius: 0 8px 8px 0;
  border: 0;
  box-shadow: 0 22px 72px rgba(0,0,0,0.42);
}

.coral-opener__copy {
  width: 100%;
  max-width: calc(620px + clamp(22px, 6vw, 64px));
  padding-right: clamp(22px, 6vw, 64px);
}

.coral-opener__quote {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.58rem, 1.12rem + 1.18vw, 2.18rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.8),
    0 5px 24px rgba(0,0,0,0.58);
}

.black-coral-v2-page .coral-opener__quote {
  color: #ffffff;
}

.coral-article .coral-opener__bio {
  margin: 28px 0 0;
  padding-top: 0;
  border-top: 0;
  color: var(--blue);
  font-size: clamp(1.02rem, 0.96rem + 0.24vw, 1.14rem);
  font-weight: 300;
  line-height: 1.62;
}

.coral-opener__figure.reveal {
  transform: translateX(-34px);
}

.coral-opener__quote.reveal,
.coral-opener__bio.reveal {
  transform: translateY(26px);
}

.coral-opener__figure.reveal.in,
.coral-opener__quote.reveal.in,
.coral-opener__bio.reveal.in {
  transform: none;
}

.coral-section {
  margin: 0 0 46px;
}

.coral-section--intro {
  margin-bottom: 58px;
}

.coral-copy-grid {
  display: block;
  max-width: 720px;
  margin: 0 auto;
}

.coral-copy-grid--wide {
  display: grid;
  max-width: var(--maxw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4.6vw, 72px);
}

.coral-copy-grid > * {
  min-width: 0;
}

.coral-article h2 {
  margin: 0 0 22px;
}

.coral-article p {
  font-size: 1.06rem;
  line-height: 1.72;
  margin-bottom: 26px;
  color: #ffffff;
}

.black-coral-v2-page .coral-article p {
  color: #ffffff;
}

.black-coral-v2-page .coral-article .coral-opener__bio {
  color: var(--blue);
}

.coral-copy-grid--wide p {
  margin-bottom: 16px;
}

.coral-article .coral-entry {
  font-size: clamp(1.22rem, 1.08rem + 0.42vw, 1.38rem);
  font-weight: 500;
  line-height: 1.58;
  color: #ffffff;
}

.black-coral-v2-page .coral-article .coral-entry {
  color: #ffffff;
}

.coral-copy-grid p:last-child,
.coral-copy-grid > div p:last-child {
  margin-bottom: 0;
}

.coral-color-break {
  width: 100vw;
  margin: clamp(39px, 5.2vw, 73px) 0 clamp(54px, 7vw, 88px);
  margin-left: calc(50% - 50vw);
}

.coral-side-figure-grid {
  display: grid;
  width: 100%;
  grid-template-columns: calc(50vw + clamp(11px, 2.3vw, 36px)) minmax(0, 1fr);
  align-items: start;
}

.coral-side-copy {
  grid-column: 1;
  justify-self: stretch;
  padding:
    0
    clamp(22px, 4.6vw, 72px)
    0
    max(clamp(22px, 6vw, 64px), calc((100vw - var(--maxw)) / 2 + clamp(22px, 6vw, 64px)));
}

.coral-side-copy p {
  margin-bottom: 16px;
}

.coral-side-figure {
  grid-column: 2;
  margin: 0;
}

.coral-side-figure img {
  width: 100%;
  border-radius: 8px 0 0 8px;
  border-right: 0;
}

.coral-side-figure.reveal {
  transform: translateX(46px);
}

.coral-side-figure.reveal.in {
  transform: none;
}

.coral-article .lead {
  color: var(--text);
  font-size: clamp(1.22rem, 1rem + 0.8vw, 1.62rem);
  line-height: 1.58;
  margin-bottom: 0;
}

.coral-intro {
  max-width: 920px;
}

.coral-pull {
  margin: 58px 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--blue);
  color: var(--text);
  font-size: clamp(1.45rem, 1.1rem + 1.25vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.7);
}

.coral-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin: 72px 0;
}

.coral-figure {
  margin: 0;
}

.coral-article-figure {
  margin: 46px 0 62px;
  width: 100%;
  scroll-margin-top: 96px;
}

.coral-left-break {
  width: 100vw;
  margin: clamp(44px, 5vw, 72px) 0 clamp(54px, 7vw, 88px);
  margin-left: calc(50% - 50vw);
}

.coral-left-break-grid {
  display: grid;
  width: 100%;
  grid-template-columns: calc(50vw + clamp(11px, 2.3vw, 36px)) minmax(0, 1fr);
  align-items: start;
}

.coral-left-figure {
  grid-column: 1;
  width: 50vw;
  margin: 0;
}

.coral-figure.coral-left-figure img {
  border-radius: 0 8px 8px 0;
  border-left: 0;
}

.coral-figure.coral-left-figure figcaption {
  max-width: none;
  margin-left: max(clamp(22px, 6vw, 64px), calc((100vw - var(--maxw)) / 2 + clamp(22px, 6vw, 64px)));
  margin-right: 9px;
}

.coral-left-copy {
  grid-column: 2;
  width: 100%;
  padding-right: max(clamp(22px, 6vw, 64px), calc((100vw - var(--maxw)) / 2 + clamp(22px, 6vw, 64px)));
}

.coral-left-copy p {
  margin-bottom: 16px;
}

.coral-closing-emphasis {
  color: var(--text);
  font-weight: 700;
}

.coral-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 0;
  box-shadow: 0 18px 60px rgba(0,0,0,0.36);
}

.coral-side-figure img,
.coral-figure.coral-left-figure img {
  aspect-ratio: 3 / 2;
}

.coral-side-figure img {
  object-position: 44% 50%;
}

.coral-figure.coral-left-figure img {
  object-position: 48% 50%;
}

.coral-figure figcaption {
  margin-top: 9px;
  max-width: 50%;
  color: rgba(244,244,244,0.58);
  font-size: 0.78rem;
  line-height: 1.45;
}

.coral-figure figcaption a {
  color: rgba(244,244,244,0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(244,244,244,0.32);
}

.coral-figure figcaption a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.caption-nowrap {
  white-space: nowrap;
}

.coral-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 36px);
  margin: 64px 0 72px;
}

.coral-note {
  padding: 22px 20px 24px;
  border-top: 1px solid rgba(115, 193, 238, 0.46);
  background: rgba(0,0,0,0.2);
}

.coral-note h3 {
  color: var(--blue);
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.coral-note p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.62;
}

.scientist-block {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  margin-top: 88px;
  padding-top: 58px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.scientist-block img {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 0;
  box-shadow: 0 18px 60px rgba(0,0,0,0.34);
}

.scientist-block h2 {
  margin-bottom: 18px;
}

.scientist-block p {
  font-size: 1.08rem;
  line-height: 1.72;
}

.source-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--coral);
  font-weight: 300;
  text-decoration: none;
}

.source-link:hover {
  color: var(--blue);
}

@media (max-width: 760px) {
  .coral-gallery {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .between-section-spacer {
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 24px 0 -40px;
  }
  .home-v3-late-turtle .between-section-spacer {
    aspect-ratio: 5 / 3;
    margin: 18px 0 -40px;
  }
}

/* ---------- 3. Blog teasers ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: 8px;
  /* Slightly darker, more opaque panel (was a faint translucent white
     wash) so the light teaser text has more contrast and less of the
     blurred background structure shows through. */
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 34px rgba(0,0,0,0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.38);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.03);
}
.card__date {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}
.card__title {
  margin: 14px 0 14px;
  font-size: clamp(1.34rem, 1.1rem + 1.05vw, 1.7rem);
  line-height: 1.28;
}
.card__title a { text-decoration: none; transition: color 0.25s ease; }
/* Title turns blue on hovering the title itself or anywhere on the card */
.card__title a:hover,
.card:hover .card__title a { color: var(--blue); }
.card__teaser {
  font-size: 0.96rem;
  flex: 1;
  margin-bottom: 22px;
}
.card__teaser-link {
  color: inherit;
  text-decoration: none;
}
.card__link {
  align-self: flex-start;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}
.card:hover .card__link,
.card__link:hover { color: var(--coral); opacity: 1; }

/* ---------- All posts ---------- */

.all-posts-page main {
  --all-posts-list-offset: clamp(86px, 13vh, 150px);
  --all-posts-image-peek: clamp(58px, 5.2vw, 86px);
  position: relative;
  z-index: 1;
}

.all-posts-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px clamp(22px, 6vw, 64px);
  position: relative;
}

.all-posts-hero .scroll-cue {
  z-index: 4;
}

.all-posts-hero .hero__inner {
  max-width: 960px;
}

.all-posts-page .all-posts-hero .hero__inner > .eyebrow,
.all-posts-page .all-posts-hero .hero__inner .hero__quote,
.all-posts-page .all-posts-hero .hero__inner .black-coral-hero-intro {
  opacity: 1;
  transform: none;
}

.all-posts-hero .eyebrow {
  margin-bottom: 28px;
  color: var(--coral);
  text-shadow: none;
}

.all-posts-hero__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.75rem, min(4.25vw, 5.55vh), 3.35rem);
}

.all-posts-hero__title span {
  display: block;
}

.all-posts-hero__intro {
  max-width: 780px;
  margin: 28px auto 0;
}

.all-posts {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  margin-top: calc((var(--all-posts-list-offset) + var(--all-posts-image-peek)) * -1);
  padding-top: var(--all-posts-list-offset);
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.all-posts-page.all-posts-peek-pending .all-posts {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.all-posts-page.all-posts-peek-in .all-posts {
  opacity: 1;
  transform: none;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
}

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 12px 34px rgba(0,0,0,0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition:
    transform 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.38);
  box-shadow:
    0 18px 48px rgba(0,0,0,0.28),
    0 0 0 1px rgba(255,255,255,0.03);
}

.post-card.reveal {
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.34s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}

.post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .post-card__media img {
  transform: scale(1.035);
}

.post-card__date,
.post-card__title,
.post-card__teaser,
.post-card__link {
  margin-left: clamp(18px, 2.4vw, 30px);
  margin-right: clamp(18px, 2.4vw, 30px);
}

.post-card__date {
  margin-top: 26px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.post-card__title {
  margin-top: 7px;
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 1.12rem + 1.05vw, 2rem);
  line-height: 1.13;
}

.post-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.post-card:hover .post-card__title a,
.post-card__title a:hover {
  color: var(--blue);
}

.post-card__teaser {
  flex: 1;
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.62;
  color: rgba(255,255,255,0.78);
}

.post-card__teaser-link {
  color: inherit;
  text-decoration: none;
}

.post-card__ellipsis {
  opacity: 0.5;
}

.post-card__link {
  align-self: flex-start;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.post-card:hover .post-card__link {
  color: var(--coral);
  opacity: 1;
}

.post-card__link:hover {
  color: var(--coral);
}

/* ---------- Test article detail ---------- */

.post-page {
  background: #ffffff;
  --post-bg-blur: 0px;
  --post-bg-brightness: 1;
  --post-bg-light: 0;
  --post-header-light: 0;
  --post-blue-strong: #238ec7;
}

.post-page .site-header:not(.stuck) {
  background: linear-gradient(180deg, rgba(9,9,9,0.64) 0%, rgba(9,9,9,0.28) 62%, rgba(9,9,9,0) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(128%);
  backdrop-filter: blur(12px) saturate(128%);
}

.post-page .site-header.stuck {
  background: linear-gradient(180deg, rgba(9,9,9,0.58) 0%, rgba(9,9,9,0.25) 62%, rgba(9,9,9,0) 100%);
}

.post-page .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.94) 74%, rgba(255,255,255,0) 100%);
  opacity: var(--post-header-light);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-page.post-header-light .site-header,
.post-page.post-header-light .site-header.stuck,
.post-page.post-header-light .site-header:not(.stuck) {
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.9) 74%, rgba(255,255,255,0) 100%);
}

.post-page .nav a,
.post-page .menu-toggle {
  transition: color 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-page.post-header-light .nav a,
.post-page.post-header-light .menu-toggle {
  color: #090909;
  text-shadow: none !important;
}

.post-page.post-header-light .nav a:hover,
.post-page.post-header-light .nav a.is-active {
  color: var(--post-blue-strong);
}

.post-page.post-header-light .nav__cta {
  color: #090909;
  border-color: rgba(9,9,9,0.32);
}

.post-page.post-header-light .nav__cta:hover {
  color: var(--post-blue-strong);
  border-color: var(--post-blue-strong);
}

.post-page .logo img {
  transition: height 0.4s ease,
              filter 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-page.post-header-light .logo img {
  filter: brightness(0) drop-shadow(0 2px 12px rgba(255,255,255,0.24));
}

body.menu-open.post-page.post-header-light .site-header,
body.menu-open.post-page.post-header-light .site-header.stuck,
body.menu-open.post-page.post-header-light .site-header:not(.stuck) {
  background: linear-gradient(180deg, rgba(9,9,9,0.72) 0%, rgba(9,9,9,0.34) 62%, rgba(9,9,9,0) 100%);
}

body.menu-open.post-page.post-header-light .site-header::before {
  opacity: 0;
}

body.menu-open.post-page.post-header-light .nav a,
body.menu-open.post-page.post-header-light .menu-toggle {
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.55);
}

body.menu-open.post-page.post-header-light .nav__cta {
  color: #ffffff;
  border-color: rgba(255,255,255,0.46);
}

body.menu-open.post-page.post-header-light .logo img {
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.55));
}

.post-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #050606;
}

.post-bg__image {
  z-index: 0;
  position: absolute;
  inset: -28px;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  object-fit: cover;
  filter: blur(var(--post-bg-blur)) brightness(var(--post-bg-brightness)) saturate(0.96);
  transform: scale(1.045);
  will-change: filter;
}

.post-bg::before {
  content: "";
  position: absolute;
  inset: 30% 0 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(255,255,255,0.01);
  -webkit-backdrop-filter: blur(17px) brightness(1) saturate(0.96);
  backdrop-filter: blur(17px) brightness(1) saturate(0.96);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.56) 30%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.56) 30%, #000 100%);
}

.post-bg__shade {
  z-index: 2;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255,255,255,0.12) 0%, rgba(5,6,6,0.10) 48%, rgba(5,6,6,0.44) 100%),
    linear-gradient(180deg, rgba(5,6,6,0.08) 0%, rgba(5,6,6,0.14) 38%, rgba(5,6,6,0.48) 100%);
}

.post-bg__shade::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: #ffffff;
  opacity: var(--post-bg-light);
  will-change: opacity;
}

.post-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 118px clamp(22px, 6vw, 64px) 90px;
  text-align: center;
}

.post-hero .hero__inner {
  width: min(960px, 100%);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.post-hero__date {
  display: block;
  color: rgba(255,255,255,0.9);
  margin: 0 0 28px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.32);
}

.post-hero__title {
  max-width: 960px;
  margin: 0 auto;
  color: #ffffff;
  text-shadow: 0 14px 44px rgba(0,0,0,0.532);
  text-wrap: balance;
}

.post-hero__intro {
  max-width: 790px;
  margin: 30px auto 0;
  color: #ffffff;
  font-size: clamp(1.2rem, 0.98rem + 1vw, 1.75rem);
  line-height: 1.42;
  text-shadow: 0 10px 32px rgba(0,0,0,0.508);
}

.post-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 33px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  transform: translateX(-50%);
  transition: opacity 0.5s ease;
}

.post-hero__scroll.is-faded {
  opacity: 0;
  pointer-events: none;
}

.post-source-link {
  color: rgba(255,255,255,0.68);
  font-size: 0.86rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  white-space: nowrap;
  transition:
    color 0.25s ease,
    opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.1s;
}

.post-hero__cue.is-in + .post-source-link {
  opacity: 1;
  transform: none;
}

.post-source-link:hover {
  color: #ffffff;
}

.post-hero__cue.scroll-cue {
  position: static;
  left: auto;
  bottom: auto;
  width: 22px;
  height: 34px;
  transform: none;
}

.post-article {
  position: relative;
  z-index: 2;
  max-width: min(780px, calc(100vw - 44px));
  margin: 0 auto;
  padding: clamp(76px, 12vh, 132px) 0 clamp(76px, 10vw, 132px);
}

.post-page .post-article {
  padding-bottom: clamp(32px, 4vw, 53px);
}

.post-article__body {
  color: #090909;
  font-size: clamp(1.08rem, 1.02rem + 0.28vw, 1.24rem);
  font-weight: 300;
  line-height: 1.78;
}

.post-article__body p {
  margin: 0;
  color: #090909;
}

.post-article__body p + p {
  margin-top: 1.28em;
}

.post-article__body :is(h2, h3, h4, h5, h6) {
  margin: 2.1em 0 0.82em;
  color: #090909;
  font-size: clamp(1.18rem, 1.06rem + 0.45vw, 1.45rem);
  font-weight: 700;
  line-height: 1.26;
}

.post-article__body :is(h2, h3, h4, h5, h6) strong {
  font-weight: 700;
}

.post-article__body a {
  color: inherit;
  font-style: italic;
  font-weight: 300;
  text-decoration: none;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(9,9,9,0.28);
  transition: color 0.25s ease;
}

.post-article__body a:hover {
  color: var(--blue);
  text-decoration-color: rgba(115,193,238,0.56);
}

.post-article__body strong {
  font-weight: 600;
}

.post-article__body em {
  font-style: italic;
}

.post-article__body figure {
  width: min(calc(var(--maxw) - (2 * clamp(22px, 6vw, 64px))), calc(100vw - 44px));
  margin: clamp(48px, 7vw, 78px) 0 clamp(48px, 7vw, 78px) 50%;
  transform: translateX(-50%);
}

.post-article__body .image-link-expand,
.post-article__body .restack-image,
.post-article__body .view-image,
.post-article__body button[class*="icon-container"] {
  display: none !important;
}

.post-article__body a.image-link {
  cursor: default;
  pointer-events: none;
}

.post-article__body figure.post-figure-reveal {
  opacity: 0;
  transform: translateX(-50%) translateY(28px);
  transition:
    opacity 1.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-article__body figure.post-figure-reveal.in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.post-article__body img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  object-position: center;
  border: 0;
  outline: 0;
}

.post-article__body figure.post-figure--portrait,
.post-article__body figure.post-figure--square {
  width: min(780px, calc(100vw - 44px));
}

.post-article__body figure.post-figure--portrait img {
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 820px);
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.post-article__body figure.post-figure--square img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.post-article__body figcaption {
  width: min(780px, 100%);
  max-width: none;
  margin-top: 11px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(9,9,9,0.58);
  font-size: 0.8rem;
  line-height: 1.52;
}

.post-discussion {
  --post-discussion-pad: clamp(34px, 4.6vw, 50px);
  position: relative;
  width: min(var(--maxw), 100vw);
  margin-top: clamp(60px, 8vw, 96px);
  margin-left: 50%;
  padding-left: clamp(22px, 6vw, 64px);
  padding-right: clamp(22px, 6vw, 64px);
  padding-top: var(--post-discussion-pad);
  padding-bottom: var(--post-discussion-pad);
  transform: translateX(-50%);
  color: #090909;
}

.post-discussion::before,
.post-discussion::after {
  content: "";
  position: absolute;
  left: clamp(22px, 6vw, 64px);
  right: clamp(22px, 6vw, 64px);
  height: 1px;
  background: rgba(9,9,9,0.18);
}

.post-discussion::before {
  top: 0;
}

.post-discussion::after {
  bottom: 0;
}

.post-discussion__eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: none;
}

.post-discussion h2 {
  max-width: 780px;
  margin: 0;
  color: #090909;
  font-size: clamp(1.25rem, 1.05rem + 0.74vw, 1.72rem);
  font-weight: 700;
  line-height: 1.22;
}

.post-discussion p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(9,9,9,0.72);
  font-size: clamp(1.02rem, 0.98rem + 0.18vw, 1.16rem);
  font-weight: 300;
  line-height: 1.68;
}

.post-discussion .post-discussion__eyebrow {
  margin: 0 0 14px;
  color: var(--post-blue-strong);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.post-discussion__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.post-discussion__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 20px 11px;
  border: 1px solid var(--post-blue-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--post-blue-strong);
  font-size: 0.94rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.post-discussion__links a:hover {
  color: #ffffff;
  background: var(--post-blue-strong);
  border-color: var(--post-blue-strong);
  transform: translateY(-2px);
}

/* ---------- 4. Author ---------- */

.author { text-align: left; padding-bottom: 0; position: relative; }
/* Supporter logos beside the lower portrait, aligned to the right edge. */
.author__supporter {
  position: absolute;
  right: clamp(22px, 6vw, 64px);
  /* the portrait's -36px margin pulls the blue footer up by 36px, so
     stay clear of it: 36px overhang + ~20px breathing room */
  bottom: 56px;
  /* exactly one bio-grid column: (content width - 2 gaps) / 3, where
     content width = containing block - the section's side paddings */
  width: calc(
    (100% - 2 * clamp(22px, 6vw, 64px) - 2 * clamp(18px, 2.4vw, 36px)) / 3);
  text-align: right;
  z-index: 3;            /* above the centred portrait (z-index 2) */
}
.author__supporter-label {
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}
.author__supporter-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.author__supporter-logos a {
  flex: 0 0 auto;                /* natural width, left-aligned pair */
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.author__supporter-logos a:hover { opacity: 1; }
.author__supporter-logos img {
  height: 46px;              /* larger */
  width: auto;
  max-width: 100%;
  display: block;
}
/* Zukunft Moor 10% larger, Cascadia (Seaweed) 10% smaller */
.author__supporter-logos a:first-child img { height: 51px; }
.author__supporter-logos a:last-child img { height: 41px; }
/* Label + logos fade in softly when the block enters the viewport
   (transition lives on the label and the imgs - the logo <a> keeps its
   own quick hover transition untouched; toggled via .is-hidden in JS). */
.author__supporter-label,
.author__supporter-logos img {
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.author__supporter.is-hidden .author__supporter-label,
.author__supporter.is-hidden .author__supporter-logos img {
  opacity: 0;
  transform: translateY(16px);
}
@media (max-width: 980px) {
  /* Mobile: supporter drops below the portrait as a full-width blue
     band that blends into the footer, left-aligned as a compact group. */
  .author__supporter {
    position: static;
    width: auto;
    margin: 0 calc(clamp(22px, 6vw, 64px) * -1);
    padding: 36px clamp(22px, 6vw, 64px) 26px;
    background: rgba(115, 193, 238, 0.97);
    text-align: center;
  }
  .author__supporter-logos {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }
  .author__supporter-logos a {
    flex: 0 0 auto;
    justify-content: center;
  }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.author__title { margin-bottom: 26px; }
.author__bio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 36px);
}
.author__bio-grid p {
  font-size: 1.06rem;
  color: var(--text-dim);
}
.author__name { color: var(--text); font-weight: 700; }
.author__follow {
  display: inline-block;
  margin-top: 12px;
  font-weight: 300;
  color: var(--coral);
}
.author__portrait {
  margin-top: clamp(6px, 1.5vh, 16px);
  margin-bottom: -36px;       /* pulled down so it sits on the colour area */
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  pointer-events: none;       /* never intercept clicks on nearby links */
}
.author__photo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(336px, 100%);
  max-height: 370px;
  object-position: top center;
}
.author__photo.is-missing { display: none; }
.author__art-fallback {
  display: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.author__portrait.show-fallback .author__art-fallback { display: block; }

.post-page .post-author-sep {
  display: none;
}

.post-page .post-author-sep::before {
  background: rgba(9,9,9,0.18);
}

.post-page .author {
  isolation: isolate;
  z-index: 1;
  color: #090909;
  padding-top: clamp(32px, 4vw, 53px);
  padding-bottom: 0;
}

.post-page .author::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 74px;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
  background: #ffffff;
}

.post-page .author__bio-grid p,
.post-page .author__name {
  color: #090909;
}

.post-page .author__follow {
  color: var(--coral);
}

.post-page .author__title {
  color: #090909;
  font-size: clamp(1.25rem, 1.05rem + 0.74vw, 1.72rem);
  font-weight: 700;
  line-height: 1.22;
}

.post-page .author__follow:hover {
  color: var(--blue);
}

.post-page .author__supporter-label {
  color: rgba(9,9,9,0.54);
}

.post-page .author__supporter {
  bottom: 94px;
}

.post-page .author__supporter-logos a {
  opacity: 0.76;
}

.post-page .author__supporter-logos a:hover {
  opacity: 1;
}

.post-page .author__supporter-logos img {
  filter: brightness(0);
}

.post-page .author__portrait {
  margin-bottom: -74px;
}

.post-page .footer {
  padding-top: 104px;
}

@media (max-width: 980px) {
  .post-page .author__supporter {
    background: rgba(115, 193, 238, 0.97);
    padding-top: 36px;
  }
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 0;
  text-align: center;
  padding: 66px clamp(22px, 6vw, 64px) 16px;
  /* Colour area at 97% opacity: light at the top into a darker blue
     (both stops +20% saturation, matching the brand blue) */
  background: linear-gradient(180deg,
              rgba(115, 193, 238, 0.97) 0%,
              rgba(106, 167, 205, 0.97) 100%);
}
.footer h2 { color: #ffffff; }
.footer__cta h2 { margin-bottom: 14px; }
.footer__cta p {
  max-width: min(620px, calc(100vw - 44px));
  margin: 0 auto;
  color: #ffffff;
  font-size: 1.2rem;        /* +20% */
}
.footer .btn {
  background: #ffffff;
  color: #0a1014;
}
.footer__legal {
  margin-top: 70px;
  font-size: 0.84rem;
  color: #ffffff;
}
/* Bottom row (brand | Legal Notice | rights) + social icons. The social
   block is anchored to this row so it stays ABOVE the expanding panel. */
.footer__bottom { position: relative; margin-bottom: 20px; }
.footer__social {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* right edge of the content column (footer padding already applied) */
  right: max((100vw - var(--maxw)) / 2, 0px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer__social-label {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.425);
  margin-right: 2px;
}
.footer__social a {
  color: #ffffff;
  display: flex;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}
.footer__social a:hover { opacity: 1; }

/* Bottom line: brand | Legal Notice | rights, pipe separators at 50% */
.footer__legal-sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.5);
}
.footer__notice-toggle {
  font: inherit;
  color: #ffffff;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer__notice-toggle:hover { color: #ffffff; }

/* Expanded imprint: full-bleed image band (cancels the footer's side
   padding so it spans the whole width), slides open via max-height. */
.footer__notice-panel {
  position: relative;
  isolation: isolate;
  margin-left: calc(clamp(22px, 6vw, 64px) * -1);
  margin-right: calc(clamp(22px, 6vw, 64px) * -1);
  background: #050606;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s ease;
}
.footer__notice-panel.open { max-height: 860px; }
.footer__notice-panel::before,
.footer__notice-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.footer__notice-panel::before {
  inset: -34px;
  z-index: -2;
  background-image: var(--legal-notice-bg);
  background-position: center bottom;
  background-size: cover;
  filter: blur(18px);
  opacity: 0.88;
  transform: scale(1.04);
}
.footer__notice-panel::after {
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 6, 6, 0.44) 0%, rgba(5, 6, 6, 0.62) 100%);
}
/* Inner content sits in the same column as the rest of the site, so the
   imprint columns line up with the content above. */
.footer__notice-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px clamp(22px, 6vw, 64px) 40px;
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.7;
  color: #ffffff;
}
.footer__notice-inner h3 {
  font-size: 0.98rem;
  color: #ffffff;
  margin: 0 0 24px;
  /* hairline spans the content column width (h3 is block-level) */
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
/* Force every imprint text node to solid white (no inherited tint/alpha) */
.footer__notice-inner,
.footer__notice-inner * { color: #ffffff; }
.footer__notice-inner strong { font-weight: 700; }   /* company names */
/* Three columns aligned to the content grid above */
.footer__notice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 44px;
}
.footer__notice-grid p { margin: 0; }
.footer__notice-disclaimer {
  grid-column: span 2;
  margin-top: 14px;
}
.footer__credit-link,
.footer__credit-link:hover,
.footer__credit-link:focus-visible {
  text-decoration: none;
}
/* Stacked blocks within a column (e.g. the two companies in column 1) */
.footer__notice-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 760px) {
  .footer__cta-break {
    display: none;
  }
  .footer__notice-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer__notice-disclaimer { grid-column: auto; margin-top: 0; }
  .footer__social {
    position: static;
    transform: none;
    justify-content: center;
    margin: 12px auto 0;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .author__bio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
  .about__cols { grid-template-columns: 1fr; }
  .coral-copy-grid--wide {
    display: block;
    max-width: 720px;
  }
  .coral-side-figure-grid {
    display: block;
    width: 100%;
  }
  .coral-side-copy {
    width: auto;
    max-width: 720px;
    margin: 0 auto 30px;
    padding: 0 clamp(22px, 6vw, 64px);
  }
  .coral-side-figure img {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    border-left: 0;
    object-position: center center;
  }
  .coral-left-figure {
    width: 100vw;
  }
  .coral-left-break-grid {
    display: flex;
    flex-direction: column;
  }
  .coral-figure.coral-left-figure img {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    border-right: 0;
    object-position: center center;
  }
  .coral-figure.coral-left-figure figcaption {
    max-width: 100%;
    margin-left: clamp(22px, 6vw, 64px);
    margin-right: clamp(22px, 6vw, 64px);
  }
  .coral-left-copy {
    order: 2;
    width: auto;
    max-width: 720px;
    margin: 30px auto 0;
    padding: 0 clamp(22px, 6vw, 64px);
  }
  .coral-figure figcaption {
    max-width: 100%;
  }
  .black-coral-hero-intro {
    margin: 0 auto;
  }
  .coral-opener {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .coral-opener__figure img {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .coral-opener__copy {
    max-width: 720px;
    padding: 0 clamp(22px, 6vw, 64px);
  }
  .coral-opener__quote {
    font-size: clamp(1.32rem, 1.08rem + 1vw, 1.72rem);
  }
  .coral-notes,
  .scientist-block { grid-template-columns: 1fr; }
  .scientist-block img { max-width: 520px; }
}

@media (max-width: 620px) {
  .author__bio-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .all-posts-page main {
    --all-posts-list-offset: clamp(68px, 10vh, 104px);
    --all-posts-image-peek: clamp(46px, 12vw, 62px);
  }
  .all-posts {
    padding-top: var(--all-posts-list-offset);
  }
}

@media (max-width: 720px) {
  :root {
    --mobile-scroll-cue-bottom: clamp(16px, calc(44px - 3svh), 26px);
  }

  .home-v3-page .home-v3-niko-stage {
    height: 160vh;
    height: 160svh;
  }

  .bg__video,
  .black-coral-bg__mono {
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity, filter;
  }

  .bg,
  .black-coral-bg,
  .post-bg {
    inset: 0 auto auto 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    height: var(--bcc-mobile-bg-height, 100lvh);
    min-height: var(--bcc-mobile-bg-height, 100lvh);
  }

  .post-bg__image {
    will-change: opacity, filter;
  }

  .site-header,
  .post-page .site-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .intro-mark {
    inset: 0 auto auto 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate3d(0, 0, 0) !important;
    transition: opacity 4.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .home-intro-pending:not(.home-intro-mark-hidden) .intro-mark,
  .intro-mark.is-out {
    transform: translate3d(0, 0, 0) !important;
  }
  .intro-mark img {
    width: clamp(216px, 56.16vw, 331px);
    max-width: calc(100vw - 40px);
  }
  .site-header { padding: 22px 0 20px; }
  .site-header__inner {
    justify-content: flex-start;
  }
  .nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 300;
  }
  .mobile-menu {
    display: block;
  }
  .post-grid { grid-template-columns: 1fr; }
  .post-bg__image {
    filter: blur(var(--post-bg-blur)) brightness(var(--post-bg-brightness)) saturate(0.96);
  }
  .post-bg__shade {
    background:
      radial-gradient(ellipse at 50% 20%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.04) 44%, rgba(5,6,6,0.34) 78%, rgba(5,6,6,0.72) 100%),
      linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(5,6,6,0.14) 38%, rgba(5,6,6,0.76) 78%, rgba(5,6,6,0.94) 100%);
  }
  .post-hero {
    min-height: 88vh;
    min-height: 88svh;
    padding: 110px clamp(22px, 6vw, 64px) 76px;
  }
  .hero > .scroll-cue,
  .black-coral-hero > .scroll-cue,
  .all-posts-hero .scroll-cue {
    position: fixed;
    bottom: var(--mobile-scroll-cue-bottom);
  }
  .post-hero__scroll {
    position: fixed;
    bottom: var(--mobile-scroll-cue-bottom);
    z-index: 4;
  }
  .post-hero__date {
    margin-bottom: 14px;
  }
  .post-hero__title {
    margin-top: 0;
  }
  .post-hero__intro {
    margin-top: 24px;
    font-size: clamp(1.05rem, 4.5vw, 1.34rem);
  }
  .post-article {
    max-width: calc(100vw - 44px);
    padding-top: 58px;
  }
  .post-article__body {
    font-size: 1.05rem;
    line-height: 1.72;
  }
  .post-article__body figcaption {
    max-width: 100%;
  }
  .eyebrow { font-size: 0.78rem; }   /* mobile keeps the smaller size */
  /* scrolled blur area half as tall on mobile (desktop stays 64px) */
  .site-header.stuck { padding-bottom: 32px; }
  /* Mobile jump position: keep section headlines near the top instead
     of using the desktop-like vertical centre alignment. */
  #about, #read, #author { scroll-margin-top: 17px; }
  /* centre the "Latest on Substack" button */
  .about__cta {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  /* pull the first post card (11 May) up a little */
  .cards .card:first-child { margin-top: -14px; }
  /* softer fade-in for the post cards */
  .card.reveal {
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  }
  /* Mobile header logo: large in the top state, smaller once docked. */
  .logo { top: 16px; right: calc(clamp(22px, 6vw, 64px) - 3px); }
  .logo img { height: 56px; }
  .logo.docked { top: 13px; }
  .logo.docked img { height: 38px; }
  .hero-niko {
    --niko-x: -50%;
    position: fixed;
    left: 50%;
    bottom: -22px;
    width: clamp(155px, min(42vw, 30vh), 245px);
  }
  .hero-niko.is-scroll-controlled {
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .hero-niko__byline {
    left: -18px;
    bottom: clamp(42px, 7vh, 56px);
    font-size: 0.76rem;
  }
  .turtle-swim { width: clamp(230px, 66vw, 365px); }
  .home-v3-page .turtle-swim,
  .home-v4-page .turtle-swim { width: clamp(304px, 87.2vw, 484px); }
}

@media (max-height: 640px) {
  .hero-niko {
    bottom: -18px;
    width: clamp(135px, min(22vw, 28vh), 205px);
  }
  .hero-niko__byline {
    bottom: clamp(36px, 6.2vh, 46px);
    font-size: 0.74rem;
  }
}

@media (max-width: 460px) {
  /* Keep one clean mobile header row: tighter burger, smaller logo. */
  .site-header { padding: 20px 0 18px; }
  /* Very small screens keep the same shrink behavior at a tighter size. */
  #about, #read, #author { scroll-margin-top: 2px; }
  .menu-toggle {
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 300;
  }
  .menu-toggle__icon,
  .menu-toggle__icon::before,
  .menu-toggle__icon span {
    width: 22px;
  }
  .cta-long { display: none; }
  .logo { top: 13px; }
  .logo img { height: 46px; }
  .logo.docked { top: 12px; }
  .logo.docked img { height: 31px; }
}

@media (max-width: 390px) {
  .home-v3-page .hero .eyebrow {
    margin-bottom: 14px;
  }

  .home-v3-page .hero__quote {
    font-size: clamp(1.45rem, 6.3vw, 1.56rem);
    line-height: 1.23;
  }

  .home-v3-page .hero__inner .btn {
    margin-top: 20px;
    padding: 12px 26px;
    font-size: 0.98rem;
  }

  .home-v3-page .hero-niko {
    bottom: -28px;
    width: clamp(142px, 39vw, 172px);
  }
}

/* ---------- Accessibility: reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  :root { animation: none; --accent: #e0baa5; }
  html { scroll-behavior: auto; }
  .scroll-cue span { animation: none; opacity: 0.8; }
  .bg__overlay { transition: none; }
  .bg__video,
  .black-coral-bg__mono {
    animation: none;
    transform: translateY(2%) scale(1.04);
  }
  .turtle-swim { display: none; }
  .logo,
  .hero__inner,
  .site-header,
  .scroll-cue { transition: none; }
  .hero__inner { transform: none; }
  .card__link { animation: none; }
  .reveal,
  .btn.reveal { opacity: 1; transform: none; transition: none; }
  .hero__inner > .eyebrow,
  .hero__inner .post-hero__date,
  .hero__inner .hero__quote,
  .hero__inner .black-coral-hero-intro,
  .hero__inner .btn { opacity: 1; transform: none; transition: none; }
}
