/* ============================================================
   MATT WALKER v2 — Dramatic Intro + Dark Landing
   Tighter spacing, richer animations, cursor wake effect
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:        #0a0a0a;
  --bg-light:  #111111;
  --bg-card:   #181818;
  --white:     #ffffff;
  --gray:      #888888;
  --gray-light:#cccccc;
  --red:       #e63946;
  --red-dim:   #b82d38;
  --ff-display:'Oswald', sans-serif;
  --ff-body:   'Inter', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a { color: var(--red); text-decoration: none; cursor: none; }
a:hover { color: var(--white); }

.link--subtle { color: var(--white); border-bottom: 1px solid rgba(230,57,70,0.4); transition: border-color 0.3s, color 0.3s; }
.link--subtle:hover { color: var(--red); border-color: var(--red); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }

/* ============================================================
   CUSTOM CURSOR — dot + trailing wake
   ============================================================ */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(230, 57, 70, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  border-color: rgba(230, 57, 70, 0.8);
}

/* Wake / ripple trail particles — created by JS */
.cursor-wake {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  animation: wakeFade 0.8s ease forwards;
}

@keyframes wakeFade {
  0% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
}

/* ============================================================
   KOI FISH — swimming behind content
   ============================================================ */
.koi {
  position: fixed;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  filter: blur(1px) saturate(0.7);
  will-change: transform;
}

.koi img {
  width: 280px;
  height: auto;
}

.koi--1 {
  animation: koiSwim1 45s linear infinite;
}

.koi--2 {
  animation: koiSwim2 55s linear infinite;
  animation-delay: -20s;
}

.koi--2 img {
  width: 220px;
}

@keyframes koiSwim1 {
  0%   { transform: translate(-320px, 30vh) rotate(5deg); }
  15%  { transform: translate(25vw, 45vh) rotate(-3deg); }
  30%  { transform: translate(50vw, 25vh) rotate(8deg); }
  50%  { transform: translate(75vw, 55vh) rotate(-5deg); }
  65%  { transform: translate(90vw, 35vh) rotate(3deg); }
  80%  { transform: translate(110vw, 50vh) rotate(-2deg); }
  100% { transform: translate(-320px, 30vh) rotate(5deg); }
}

@keyframes koiSwim2 {
  0%   { transform: translate(110vw, 60vh) rotate(-8deg) scaleX(-1); }
  20%  { transform: translate(70vw, 40vh) rotate(4deg) scaleX(-1); }
  35%  { transform: translate(45vw, 65vh) rotate(-6deg) scaleX(-1); }
  55%  { transform: translate(20vw, 35vh) rotate(3deg) scaleX(-1); }
  70%  { transform: translate(5vw, 55vh) rotate(-4deg) scaleX(-1); }
  85%  { transform: translate(-15vw, 45vh) rotate(2deg) scaleX(-1); }
  100% { transform: translate(110vw, 60vh) rotate(-8deg) scaleX(-1); }
}

@media (pointer: coarse) {
  .koi { opacity: 0.1; }
  .koi img { width: 180px; }
}

/* Water ripple canvas overlay */
#rippleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: overlay;
  opacity: 0.14;
}

@media (pointer: coarse) {
  body { cursor: auto; }
  a { cursor: auto; }
  .cursor-dot, .cursor-ring, .cursor-wake, #rippleCanvas { display: none !important; }
}

/* ============================================================
   INTRO SEQUENCE — Full-screen name animation
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  will-change: transform, gap;
}

.intro__line {
  font-family: var(--ff-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: var(--red);
  white-space: nowrap;
  display: block;
  will-change: transform, opacity, font-size, letter-spacing;
}

.intro__line--first {
  font-size: clamp(6rem, 18vw, 16rem);
  opacity: 0;
  transform: translateX(-100vw) rotate(-3deg);
}

.intro__line--last {
  font-size: clamp(6rem, 18vw, 16rem);
  opacity: 0;
  transform: translateX(100vw) rotate(3deg);
}

.intro__line.slide-in {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.intro__name.settle {
  flex-direction: row;
  gap: 0.3em;
  transition: gap 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro__line.settle {
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: 0.08em;
  transition: font-size 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              letter-spacing 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.6s ease;
  color: var(--white);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__bg-video.visible {
  opacity: 1;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.6) 0%,
    rgba(10,10,10,0.45) 40%,
    rgba(10,10,10,0.85) 100%
  );
}

.hero__header {
  position: relative;
  z-index: 10;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  margin-top: -8vh;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.hero__content.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__title {
  display: flex;
  gap: 0.25em;
  align-items: baseline;
}

.hero__title-first,
.hero__title-last {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero__title-first { color: var(--red); }
.hero__title-last { color: var(--white); }

.hero__meta {
  margin-top: 1.2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.hero__meta.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__subtitle {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red);
}

.hero__rule {
  width: 60px;
  height: 1px;
  background: var(--red);
  margin: 0.8rem auto;
  opacity: 0.6;
}

.hero__tagline {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--gray-light);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  opacity: 0;
  animation: bounce 2s infinite;
  animation-play-state: paused;
  transition: opacity 0.6s ease 1s;
}

.hero__scroll.visible {
  opacity: 1;
  animation-play-state: running;
}

.hero__scroll { padding: 6px; }
.hero__scroll svg { width: 32px; height: 32px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   NAVIGATION — sticky, always visible
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10,10,10,0.0);
  backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  padding: 0.75rem 2rem;
}

.nav__links a.active {
  color: var(--red);
}

.hero__header-spacer {
  height: 0;
}

.nav__logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav__logo span { color: var(--red); }

.nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav__links a {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.3s;
}

.nav__links a:hover { color: var(--red); }

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__mobile {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 499;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.nav__mobile.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__mobile a {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.3s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 1rem;
}

.nav__mobile a:hover { color: var(--red); }

/* ============================================================
   PARTNERS BAR
   ============================================================ */
.partners {
  background: var(--bg-light);
  padding: 1rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.partners__track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.partners__item {
  font-family: var(--ff-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 0.5rem 1.25rem;
  transition: color 0.3s;
}

.partners__item:hover { color: var(--red); }

.partners__divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.15);
}

/* ============================================================
   SECTIONS (shared) — TIGHTER padding
   ============================================================ */
.section { padding: 3.5rem 0; }
.section--dark { background: var(--bg); }
.section--darker { background: var(--bg-light); }

.section__label {
  font-family: var(--ff-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.section__heading {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section__body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-light);
  max-width: 600px;
  margin-bottom: 0.75rem;
}

/* ---------- Reveal on scroll — multiple variants ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale up */
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children — add data-delay on elements */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal-left[data-delay="1"] { transition-delay: 0.1s; }
.reveal-left[data-delay="2"] { transition-delay: 0.2s; }
.reveal-right[data-delay="1"] { transition-delay: 0.1s; }
.reveal-right[data-delay="2"] { transition-delay: 0.2s; }
.reveal-scale[data-delay="1"] { transition-delay: 0.1s; }
.reveal-scale[data-delay="2"] { transition-delay: 0.2s; }
.reveal-scale[data-delay="3"] { transition-delay: 0.3s; }
.reveal-scale[data-delay="4"] { transition-delay: 0.4s; }
.reveal-scale[data-delay="5"] { transition-delay: 0.5s; }
.reveal-scale[data-delay="6"] { transition-delay: 0.6s; }

/* ---------- Subsections ---------- */
.subsection {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.section__subheading {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* Tags row */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-family: var(--ff-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(230,57,70,0.3);
  border-radius: 2px;
  color: var(--red);
  transition: border-color 0.3s, background 0.3s;
}

.tag:hover {
  border-color: var(--red);
  background: rgba(230,57,70,0.1);
}

/* ---------- SPLIT LAYOUT ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.split__image img {
  width: 100%;
  border-radius: 4px;
}

/* ---------- ABOUT FLOW LAYOUT ---------- */
.about-flow {
  width: 100%;
}
.about-flow .section__body {
  max-width: none;
}
.about-flow__bottom {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: stretch;
}
.about-flow__image {
  flex: 3;
  min-width: 0;
}
.about-flow__image img {
  width: 100%;
  border-radius: 4px;
  display: block;
}
.about-flow__bottom .timeline {
  flex: 2;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.about-flow__bottom .timeline .timeline__item {
  margin-bottom: 0;
}
.about-flow__bottom + .stats {
  margin-top: 1.5rem;
}

/* ---------- TIMELINE ---------- */
.timeline {
  margin: 1.5rem 0;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 1.5rem;
}

.timeline__item {
  margin-bottom: 1rem;
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray);
}

.timeline__item--current::before {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.timeline__role { font-weight: 500; font-size: 0.95rem; }
.timeline__place { font-size: 0.85rem; color: var(--gray); }

/* ---------- STATS ---------- */
.stats { display: flex; gap: 2.5rem; margin-top: 1.5rem; }

.stat__number {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--red);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Video break — standalone video sections ---------- */
.video-break {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.video-break__player {
  display: block;
  width: 100%;
  height: auto;
  max-height: 50vh;
  object-fit: cover;
}

/* ---------- Section background videos (legacy, kept for safety) ---------- */
.section-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.section-video--right {
  object-position: right center;
}

.section--has-video {
  position: relative;
  overflow: hidden;
}

.section--has-video .container {
  position: relative;
  z-index: 2;
}

/* ---------- FULL BLEED (Author) ---------- */
.fullbleed {
  position: relative;
  padding: 5rem 0;
  background: var(--bg);
  overflow: hidden;
}

.fullbleed__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.fullbleed__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.6) 0%,
    rgba(10,10,10,0.35) 50%,
    rgba(10,10,10,0.7) 100%
  );
  z-index: 1;
}

.fullbleed .fullbleed__content {
  position: relative;
  z-index: 2;
}

/* Science section — video as sole background */
.section--has-video .section-video {
  opacity: 0.3;
}

.section--has-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17,17,17,0.75) 0%,
    rgba(17,17,17,0.55) 50%,
    rgba(17,17,17,0.8) 100%
  );
  z-index: 1;
}

.fullbleed__content { position: relative; z-index: 2; }

.fullbleed__title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}

.accolades { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0; }

.accolade {
  font-family: var(--ff-display);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  color: var(--white);
  transition: border-color 0.3s, color 0.3s;
}

.accolade:hover { border-color: var(--red); color: var(--red); }

blockquote {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--red);
  margin-top: 1.5rem;
  max-width: 640px;
  line-height: 1.5;
}

/* ---------- MEDIA GRID ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  color: var(--white);
}

@media (hover: hover) {
  .media-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-2px); color: var(--white); }
}

/* Banner — top bar with icon + show name */
.media-card__banner {
  position: relative;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Colored icon square */
.media-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(230,57,70,0.3);
  flex-shrink: 0;
}

/* Show name + episode in banner */
.media-card__label {
  font-family: var(--ff-display);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
}

.media-card__ep {
  font-family: var(--ff-body);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.03em;
  display: block;
  margin-top: 0.1em;
}

/* Body — title + subtitle */
.media-card__body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
}

.media-card__title {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card__sub {
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- Show color variants (muted) ---- */
.media-card--ted .media-card__icon { background: rgba(180,75,80,0.25); }
.media-card--ted .media-card__banner { background: linear-gradient(135deg, rgba(180,75,80,0.06) 0%, transparent 100%); }

.media-card--jre .media-card__icon { background: rgba(100,155,100,0.25); }
.media-card--jre .media-card__banner { background: linear-gradient(135deg, rgba(100,155,100,0.05) 0%, transparent 100%); }

.media-card--huberman .media-card__icon { background: rgba(80,135,180,0.25); }
.media-card--huberman .media-card__banner { background: linear-gradient(135deg, rgba(80,135,180,0.05) 0%, transparent 100%); }

.media-card--masterclass .media-card__icon { background: rgba(255,255,255,0.1); }
.media-card--masterclass .media-card__banner { background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 100%); }

.media-card--doac .media-card__icon { background: rgba(190,165,60,0.25); }
.media-card--doac .media-card__banner { background: linear-gradient(135deg, rgba(190,165,60,0.05) 0%, transparent 100%); }

.media-card--ferriss .media-card__icon { background: rgba(140,80,155,0.25); }
.media-card--ferriss .media-card__banner { background: linear-gradient(135deg, rgba(140,80,155,0.05) 0%, transparent 100%); }

.media-card--modernwisdom .media-card__icon { background: rgba(60,150,160,0.25); }
.media-card--modernwisdom .media-card__banner { background: linear-gradient(135deg, rgba(60,150,160,0.05) 0%, transparent 100%); }

.media-card--richroll .media-card__icon { background: rgba(120,155,80,0.25); }
.media-card--richroll .media-card__banner { background: linear-gradient(135deg, rgba(120,155,80,0.05) 0%, transparent 100%); }

.media-card--podcast .media-card__icon { background: rgba(180,75,80,0.2); }
.media-card--podcast .media-card__banner { background: linear-gradient(135deg, rgba(180,75,80,0.05) 0%, transparent 100%); }

.venues { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }

.venues--grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  max-width: 860px;
  margin: 2.5rem auto 1rem;
}
.venues--grid .venue-tag {
  text-align: center;
  padding: 0.9rem 1rem;
}
@media (max-width: 768px) {
  .venues--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
}

.venue-tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  color: var(--gray);
  transition: color 0.3s, border-color 0.3s;
}

.venue-tag:hover { color: var(--red); border-color: var(--red); }

/* ---------- TALKS STATS (Media section) ---------- */
.talks-detail { margin-top: 0.5rem; }

.talks-stats {
  margin-top: 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.talks-stats__row {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.talks-stats__label {
  font-family: var(--ff-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}

.talks-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.talks-stats__item {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.04);
}

.talks-stats__item:nth-child(3n) { border-right: none; }
.talks-stats__item:nth-last-child(-n+3) { border-bottom: none; }

.talks-stats__show {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  color: var(--gray-light);
  margin-bottom: 0.3rem;
}

.talks-stats__num {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.talks-stats__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(230,57,70,0.2);
  background: rgba(230,57,70,0.04);
}

.talks-stats__total span:first-child {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--gray-light);
}

.talks-stats__num--big {
  font-size: 1.5rem;
  color: var(--red);
}

.talks-stats__footnote {
  padding: 0.6rem 1.5rem 0.8rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

/* ---------- VENTURES ---------- */
.ventures { display: flex; flex-direction: column; gap: 3rem; margin-top: 2rem; }

.venture {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.venture:nth-child(even) { direction: rtl; }
.venture:nth-child(even) > * { direction: ltr; }
.venture__image img { width: 100%; border-radius: 4px; }

.venture__label {
  font-family: var(--ff-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.venture__title {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.venture__desc { font-size: 0.95rem; color: var(--gray-light); line-height: 1.7; }


/* Partnerships */
.partnerships-section { margin-top: 3rem; }

.partnerships {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.partnership {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

@media (hover: hover) { .partnership:hover { border-color: var(--red); } }

.partnership__name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.partnership__year { font-size: 0.8rem; color: var(--red); margin-bottom: 0.5rem; }
.partnership__desc { font-size: 0.85rem; color: var(--gray-light); line-height: 1.6; }

/* ---------- RESEARCH GRID ---------- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.research-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

@media (hover: hover) { .research-card:hover { border-color: var(--red); } }

.research-card__title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.research-card__body {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.research-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.research-card__links a {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--gray);
  transition: color 0.3s;
  line-height: 1.4;
}

.research-card__links a:hover { color: var(--red); }

.research-card__links a::before {
  content: "PubMed: ";
  font-weight: 500;
  color: var(--red);
  opacity: 0.6;
}

/* ---------- QQRT GRID ---------- */
.qqrt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.qqrt-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}

@media (hover: hover) { .qqrt-card:hover { border-color: var(--red); transform: translateY(-4px); } }

.qqrt-card__letter {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.qqrt-card__title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0.4rem 0;
}

.qqrt-card__highlight {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.qqrt-card__text { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* ---------- CONTACT ---------- */
.contact { padding: 3.5rem 0; text-align: center; }

.contact__heading {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact__email {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  letter-spacing: 0.1em;
  color: var(--red);
  display: inline-block;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.contact__email:hover { color: var(--white); }

.contact__reps {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 1.5rem;
}

.contact__rep-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.contact__rep-name {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 500;
}

.social-links { display: flex; justify-content: center; gap: 2rem; }

.social-links a {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.3s;
}

.social-links a:hover { color: var(--red); }

/* ---------- FOOTER ---------- */
.footer {
  padding: 2rem 2rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__sig {
  max-width: 150px;
  margin: 0 auto 0.75rem;
  filter: invert(1) brightness(0.8);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}

@media (max-width: 1024px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .qqrt-grid { grid-template-columns: 1fr 1fr; }
  .nav__links { gap: 1.5rem; }
  .nav__links a { font-size: 0.8rem; }
  .fullbleed { background-attachment: scroll; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* --- Nav --- */
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  /* --- Section spacing --- */
  .section { padding: 3rem 0; }
  .fullbleed { padding: 3.5rem 0; background-attachment: scroll; min-height: auto; }

  /* --- Typography scaling --- */
  .section__heading { font-size: clamp(1.6rem, 5vw, 2.5rem); }
  .section__subheading { font-size: clamp(1.2rem, 3vw, 1.8rem); }
  .fullbleed__title { font-size: clamp(2.2rem, 8vw, 4rem); }
  .hero__title-first,
  .hero__title-last { font-size: clamp(2.4rem, 10vw, 4.5rem); }
  .venture__title { font-size: 1.5rem; }
  .contact__heading { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  blockquote { font-size: clamp(1rem, 2.5vw, 1.3rem); }

  /* --- Grid layouts --- */
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .split__image { order: -1; }
  .media-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .research-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .qqrt-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .venture { grid-template-columns: 1fr; gap: 1.5rem; }
  .venture:nth-child(even) { direction: ltr; }
  .venture__image { order: -1; }
  .ventures { gap: 2rem; }
  .partnerships { grid-template-columns: 1fr; gap: 0.75rem; }
  .partnership { padding: 1.25rem; }
  .research-card { padding: 1.25rem; }
  .media-text-row { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .about-flow__bottom { grid-template-columns: 1fr; }
  .about-flow__image { max-width: 280px; }
  .about-flow__bottom .stats { grid-column: 1; }
  .talks-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .talks-stats__total { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* --- Split images: prevent dominating viewport --- */
  .split__image img { max-height: 50vh; object-fit: cover; }

  /* --- Video sections: cap height --- */
  .video-break__player { max-height: 40vh; }

  /* --- Stats column layout --- */
  .stats { flex-direction: column; gap: 1rem; }
  .stat { padding-bottom: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }

  /* --- Venue tags: touch-friendly --- */
  .venue-tag {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
  }

  /* --- Research card links: touch-friendly --- */
  .research-card__links a {
    padding: 0.3rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* --- Contact --- */
  .contact__reps { flex-direction: column; gap: 1.5rem; }
  .contact__email {
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* --- Reduce letter-spacing on mobile --- */
  .hero__subtitle { letter-spacing: 0.2em; }
  .section__label { letter-spacing: 0.15em; }

  /* --- Footer --- */
  .footer__sig { max-width: 150px; }

  /* --- Hero --- */
  .hero__title { flex-direction: column; align-items: center; gap: 0; }
  .hero__content { padding: 0 1.5rem; }

  /* --- Partners: touch-friendly --- */
  .partners__item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* --- Intro --- */
  .intro__line--first,
  .intro__line--last {
    font-size: clamp(4rem, 16vw, 8rem);
  }

  .intro__line.settle {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  /* --- Cursor off on touch --- */
  body { cursor: auto; -webkit-tap-highlight-color: transparent; }
  a { cursor: auto; }
  .cursor-dot, .cursor-ring, .cursor-wake, #rippleCanvas { display: none !important; }
}

@media (max-width: 520px) {
  .media-grid { grid-template-columns: 1fr; }

  /* --- Media card mobile adjustments --- */
  .media-card__body { padding: 0.65rem 0.85rem 0.85rem; }
  .media-card__banner { padding: 0.6rem 0.85rem; }
  .media-card__icon { font-size: 0.65rem; }
}

@media (max-width: 480px) {
  /* --- Container: reclaim horizontal space --- */
  .container { padding: 0 1.25rem; }
  .nav { padding-left: 1.25rem; padding-right: 1.25rem; }

  /* --- Section spacing tighter --- */
  .section { padding: 2.5rem 0; }
  .fullbleed { padding: 2.5rem 0; }

  /* --- QQRT single column --- */
  .qqrt-grid { grid-template-columns: 1fr; }
  .qqrt-card { padding: 1.25rem; }

  /* --- Tighter typography --- */
  .section__heading { font-size: clamp(1.4rem, 5vw, 2rem); }
  .fullbleed__title { font-size: clamp(1.8rem, 8vw, 3rem); }
  .hero__title-first,
  .hero__title-last { font-size: clamp(2rem, 12vw, 3.5rem); }
  .contact__heading { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .venture__title { font-size: 1.35rem; }

  /* --- Intro --- */
  .intro__line--first,
  .intro__line--last {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }

  /* --- Hero content --- */
  .hero__content { padding: 0 1.25rem; }

  /* --- Footer --- */
  .footer__sig { max-width: 120px; }

  /* --- Min font sizes — nothing below 12px --- */
  .media-card__ep { font-size: 0.75rem; }
  .media-card__label { font-size: 0.8rem; letter-spacing: 0.06em; }
  .media-card__icon { font-size: 0.65rem; }
  .media-card__title { font-size: 0.875rem; }
  .venue-tag { font-size: 0.8rem; letter-spacing: 0.08em; }
  .footer__copy { font-size: 0.8rem; }
  .partners__item { font-size: 0.85rem; letter-spacing: 0.1em; }
  .tag { font-size: 0.75rem; }
  .section__label { font-size: 0.8rem; }
  .stat__label { font-size: 0.8rem; }
  .partnership__desc { font-size: 0.875rem; }
  .research-card__body { font-size: 0.875rem; }
  .qqrt-card__text { font-size: 0.875rem; }

  /* --- Social links tappable --- */
  .social-links a {
    padding: 0.4rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .social-links { gap: 1.5rem; }
}

@media (max-width: 320px) {
  .container { padding: 0 1rem; }
  .media-card__label { font-size: 0.7rem; }
  .media-card__icon { font-size: 0.6rem; width: 32px; height: 32px; }
  .section__heading { margin-bottom: 0.75rem; }
}

/* --- Reduced motion for accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
