/* ==========================================================================
   The Monkey Brain Project — site styles
   Design system shared with tmbp-build-your-package
   ========================================================================== */

@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy-light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gilroy'; src: url('../fonts/gilroy-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'ITC Garamond'; src: url('../fonts/itc-garamond-light-condensed-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }

/* ─── TOKENS ─────────────────────────────────────────────────────────── */
:root {
  --field: #E6E1DD;
  --field-hi: #EEEAE7;
  --field-lo: #DCD6D1;
  --charcoal: #24272E;
  --orange: #A65814;
  --orange-hi: #C8803F;
  --crimson: #991F1F;
  --muted: #5E6067;
  --faint: #8A8A8E;
  --ink-rgb: 36,39,46;
  --bg-rgb: 230,225,221;
  --line: rgba(36,39,46,0.12);
  --line-strong: rgba(36,39,46,0.22);
  --surface-dark: #24272E;
  --on-dark: #E6E1DD;
  --sans: 'Gilroy', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'ITC Garamond', 'Cormorant Garamond', Garamond, Georgia, serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 88px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --field: #24272E;
  --field-hi: #2C3038;
  --field-lo: #1B1D22;
  --charcoal: #E6E1DD;
  --muted: #A9A7A5;
  --faint: #85868B;
  --ink-rgb: 230,225,221;
  --bg-rgb: 36,39,46;
  --line: rgba(230,225,221,0.12);
  --line-strong: rgba(230,225,221,0.24);
  --surface-dark: #2F333B;
}

/* ─── BASE ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  background: var(--field); color: var(--charcoal);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.55;
  overflow-x: hidden; min-height: 100vh;
}
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em, .serif { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -0.045em; }
::selection { background: var(--orange); color: #FBF8F5; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--charcoal); color: var(--field); padding: 10px 16px; border-radius: 999px; font-size: 14px; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: clamp(80px, 11vw, 140px); }

/* ─── TYPE ───────────────────────────────────────────────────────────── */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 300; margin-bottom: 28px; color: var(--charcoal); }
.eyebrow .rule { width: 56px; height: 1px; background: var(--orange); flex-shrink: 0; }
.eyebrow em { color: var(--orange); font-size: 22px; }
.display, h2, .h2, h3 { text-wrap: balance; }
.lede, .copy, p { text-wrap: pretty; }
.display {
  font-weight: 500; font-size: clamp(44px, 7vw, 96px); line-height: 1.0; letter-spacing: -0.035em; max-width: 18ch;
}
.display em { color: var(--orange); font-size: 1.14em; letter-spacing: -0.05em; line-height: .92; }
.display em.block { display: block; }
h2, .h2 { font-weight: 500; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.03em; max-width: 22ch; }
h2 em, .h2 em { color: var(--orange); font-size: 1.14em; letter-spacing: -0.05em; line-height: .95; }
h3 { font-weight: 500; font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--muted); max-width: 620px; margin-top: 32px; }
.copy { font-size: 17px; color: var(--muted); max-width: 580px; margin-top: 20px; }
.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--faint); }

/* ─── BUTTONS ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  background: var(--charcoal); color: var(--field); border: 1px solid var(--charcoal);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--orange); border-color: var(--orange); color: #FBF8F5; box-shadow: 0 10px 30px -10px rgba(166,88,20,0.6); }
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover .arrow.up { transform: translate(3px, -3px); }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #FBF8F5; }
.btn.orange:hover { background: #8F4B10; border-color: #8F4B10; }
.btn.ghost { background: transparent; color: var(--charcoal); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--orange); color: var(--orange); box-shadow: 0 0 0 4px rgba(166,88,20,0.10); background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 0;
  font-size: 15px; font-weight: 500; color: var(--charcoal);
  border-bottom: 1px solid var(--line-strong);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow .arrow { color: var(--orange); transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--orange); border-color: var(--orange); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow:hover .arrow.up { transform: translate(3px, -3px); }

/* ─── LOADER (first visit per session) ───────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 300; background: var(--field);
  display: none; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
html.show-loader .loader { display: grid; animation: loaderFailsafe 0s linear 4.5s forwards; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.loader-mark { width: 132px; height: auto; clip-path: inset(0 100% 0 0); animation: reveal .9s var(--ease) .1s forwards; }
.loader-line { width: 132px; height: 1px; background: var(--line); overflow: hidden; }
.loader-line span { display: block; height: 100%; background: var(--orange); transform: translateX(-100%); animation: fill 1.1s var(--ease) .2s forwards; }
.loader-word { font-family: var(--serif); font-style: italic; font-size: 21px; letter-spacing: -0.045em; color: var(--muted); opacity: 0; animation: fadeUp .6s var(--ease) .5s forwards; }
@keyframes reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes fill { to { transform: translateX(0); } }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }

/* ─── HEADER ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  padding: 20px var(--gutter);
  background: rgba(230,225,221,0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), padding .3s var(--ease), background-color .3s var(--ease);
  view-transition-name: site-header;
}
html[data-theme="dark"] .site-header { background: rgba(36,39,46,0.86); }
.site-header.scrolled { border-bottom-color: var(--line); padding-top: 14px; padding-bottom: 14px; }
.brand { display: block; flex-shrink: 0; }
.brand img { height: 24px; width: auto; }
.nav { flex: 1; display: flex; justify-content: center; }
.nav ul { display: flex; gap: clamp(20px, 3vw, 40px); list-style: none; }
.nav a {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0;
  font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--charcoal); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--charcoal); }
.nav a[aria-current="page"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta { height: 44px; padding: 0 20px; font-size: 12.5px; }

/* theme toggle (shared with build-your-package) */
.theme-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px 0 6px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--field-hi); color: var(--charcoal);
  font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .15s var(--ease);
}
.theme-btn:hover { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(166,88,20,0.12); }
.theme-btn:active { transform: scale(.96); }
.theme-icon { position: relative; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--charcoal); color: var(--field); flex-shrink: 0; }
.theme-icon svg { position: absolute; width: 16px; height: 16px; transition: transform .7s var(--ease), opacity .45s var(--ease); }
.ic-moon { opacity: 1; transform: none; }
.ic-sun { opacity: 0; transform: rotate(-120deg) scale(.3); }
html[data-theme="dark"] .ic-moon { opacity: 0; transform: rotate(120deg) scale(.3); }
html[data-theme="dark"] .ic-sun { opacity: 1; transform: none; color: var(--orange); }
.theme-btn.spin .theme-icon { animation: iconPop .6s var(--ease); }
@keyframes iconPop { 40% { transform: scale(.82) rotate(-12deg); } 100% { transform: none; } }
.only-dark { display: none !important; }
html[data-theme="dark"] .only-light { display: none !important; }
html[data-theme="dark"] span.only-dark { display: inline !important; }
html[data-theme="dark"] img.only-dark { display: block !important; }

/* hamburger */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; flex-shrink: 0; transition: border-color .3s var(--ease); }
.menu-btn:hover { border-color: var(--orange); }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--charcoal); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s var(--ease), top .4s var(--ease); }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--field);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.mobile-menu.open li { opacity: 1; transform: none; }
.mobile-menu.open li:nth-child(1) { transition-delay: .05s; }
.mobile-menu.open li:nth-child(2) { transition-delay: .10s; }
.mobile-menu.open li:nth-child(3) { transition-delay: .15s; }
.mobile-menu.open li:nth-child(4) { transition-delay: .20s; }
.mobile-menu.open li:nth-child(5) { transition-delay: .25s; }
.mobile-menu li a { display: flex; align-items: baseline; gap: 14px; padding: 18px 0; font-size: clamp(34px, 9vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.mobile-menu li a em { color: var(--orange); font-size: 20px; letter-spacing: -0.045em; }
.mobile-menu li a[aria-current="page"] { color: var(--orange); }
.mobile-menu .btn { width: 100%; justify-content: center; margin-top: 28px; }

/* ─── HOME HERO VIDEO ────────────────────────────────────────────────── */
.hero-video {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; max-height: calc(100vh - 68px); max-height: calc(100svh - 68px);
  overflow: hidden; background: #E6E1DD;
}
.hero-video video, .hero-video .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video .poster { transition: opacity .8s var(--ease); }
.hero-video.playing .poster { opacity: 0; }
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 6px; border-radius: 999px;
  background: rgba(36,39,46,0.72); color: #E6E1DD; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  opacity: .0; transition: opacity .4s var(--ease), background .3s var(--ease);
}
.hero-video:hover .video-toggle, .video-toggle:focus-visible, .hero-video.paused .video-toggle { opacity: 1; }
.video-toggle:hover { background: var(--orange); }
.video-toggle .vt-ic { width: 28px; height: 28px; border-radius: 50%; background: rgba(230,225,221,0.16); display: grid; place-items: center; }
.video-toggle svg { width: 12px; height: 12px; }
.video-toggle .i-play { display: none; }
.hero-video.paused .video-toggle .i-play { display: block; }
.hero-video.paused .video-toggle .i-pause { display: none; }

/* ─── STATS ──────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { font-weight: 500; font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.035em; line-height: 1; }
.stat-num .plus { color: var(--orange); }
.stat-label { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* ─── SERVICES GRID ──────────────────────────────────────────────────── */
.incl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 56px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.incl { background: var(--field); padding: 40px 36px 44px 0; display: flex; flex-direction: column; gap: 14px; transition: background .4s var(--ease); }
.incl:not(:nth-child(3n+1)) { padding-left: 36px; }
.incl-num { font-family: var(--serif); font-style: italic; color: var(--orange); font-size: 26px; line-height: 1; letter-spacing: -0.045em; }
.incl p { color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 420px; }

/* ─── STEPS (home: how it works) ─────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.step {
  padding: 32px 30px 34px; background: var(--field-hi); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { border-color: rgba(166,88,20,0.45); transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(166,88,20,0.55); }
.step .n { font-family: var(--serif); font-style: italic; color: var(--orange); font-size: 30px; letter-spacing: -0.045em; line-height: 1; }
.step h3 { margin-top: 40px; }
.step p { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ─── PLATFORM TILES (brand back-light) ──────────────────────────────── */
.plat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; position: relative; z-index: 0; }
.plat { position: relative; padding: 32px 30px 30px; background: var(--field-hi); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; transition: border-color .45s var(--ease); }
.plat[data-brand="instagram"] { --brand: linear-gradient(45deg, #FEDA75 0%, #FA7E1E 25%, #D62976 55%, #962FBF 80%, #4F5BD5 100%); --glow: #D62976; }
.plat[data-brand="youtube"] { --brand: #FF0000; --glow: #FF0000; }
.plat[data-brand="linkedin"] { --brand: #0A66C2; --glow: #0A66C2; }
.plat::before { content: ""; position: absolute; inset: 14px; z-index: -1; border-radius: inherit; background: var(--brand); filter: blur(28px); opacity: 0; transition: opacity .55s var(--ease), inset .55s var(--ease); pointer-events: none; }
.plat::after { content: ""; position: absolute; inset: -1px; z-index: 1; border-radius: inherit; padding: 1.5px; background: var(--brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.plat:hover { border-color: transparent; }
.plat:hover::before { opacity: .5; inset: -8px; }
.plat:hover::after { opacity: 1; }
.plat-head { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 17px; }
.plat-head .icon { width: 26px; height: 26px; color: var(--glow); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--glow) 55%, transparent)); }
.plat-label { margin-top: 40px; }
.plat-style { font-family: var(--serif); font-style: italic; font-size: 44px; letter-spacing: -0.05em; color: var(--orange); line-height: 1.05; margin-top: 8px; }
.plat p { color: var(--muted); font-size: 15px; margin-top: 16px; }

/* ─── EPISODE CARDS (thumbnail + ambient glow) ───────────────────────── */
.ep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 36px); margin-top: 56px; position: relative; z-index: 0; }
.ep-card { position: relative; display: block; border-radius: 18px; }
.ep-media {
  position: relative; border-radius: 18px; aspect-ratio: 16 / 9;
  background: var(--field-lo); border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), border-color .45s var(--ease), box-shadow .6s var(--ease);
}
/* ambient glow: a blurred copy of the thumbnail lights up behind the card */
.ep-media::before {
  content: ""; position: absolute; inset: 8%; z-index: -1; border-radius: inherit;
  background: var(--thumb) center / cover no-repeat;
  filter: blur(34px) saturate(1.35); opacity: 0;
  transition: opacity .6s var(--ease), inset .6s var(--ease);
}
.ep-media .frame { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.ep-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.ep-play {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 6px; border-radius: 999px;
  background: rgba(36,39,46,0.82); color: #E6E1DD; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s var(--ease);
}
.ep-play .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.ep-play svg { width: 11px; height: 11px; margin-left: 2px; }
.ep-card:hover .ep-media, .ep-card:focus-visible .ep-media { transform: translateY(-6px); border-color: rgba(166,88,20,0.5); box-shadow: 0 30px 60px -36px rgba(var(--ink-rgb),0.5); }
.ep-card:hover .ep-media::before, .ep-card:focus-visible .ep-media::before { opacity: .55; inset: -2%; }
.ep-card:hover .ep-media img { transform: scale(1.025); }
.ep-card:hover .ep-play, .ep-card:focus-visible .ep-play { opacity: 1; transform: none; }
.ep-card:focus-visible { outline: none; }
.ep-card:focus-visible .ep-media { outline: 2px solid var(--orange); outline-offset: 4px; }
.ep-info { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px 16px; padding: 22px 4px 0; }
.ep-num { font-family: var(--serif); font-style: italic; color: var(--orange); font-size: 26px; letter-spacing: -0.045em; line-height: 1; }
.ep-name { font-weight: 500; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; transition: color .3s var(--ease); }
.ep-card:hover .ep-name { color: var(--orange); }
.ep-watch { font-size: 13px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: color .3s var(--ease); white-space: nowrap; }
.ep-watch .arrow { color: var(--orange); transition: transform .3s var(--ease); }
.ep-card:hover .ep-watch { color: var(--charcoal); }
.ep-card:hover .ep-watch .arrow { transform: translate(3px, -3px); }
.ep-liner { grid-column: 2 / 4; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.55; }
.ep-liner b { font-weight: 500; color: var(--charcoal); }

/* ─── EPISODE INDEX (Projects: hover reveals the thumbnail full-bleed) ── */
.ep-index { position: relative; width: 100%; height: min(50vw, 640px, calc(100vh - 120px)); height: min(50vw, 640px, calc(100svh - 120px)); min-height: 520px; overflow: hidden; margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); isolation: isolate; }
.ep-bg { position: absolute; inset: 0; z-index: -1; background: var(--field); }
/* the thumbnail keeps its true 16:9 shape, anchored right; wide monitors get extra field colour on the left, never a crop */
.ep-frame { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; }
.ep-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .5s var(--ease), transform 1.2s var(--ease-out);
}
.ep-frame img.active { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out); }
/* scrim over the thumbnail's own text, measured against the image itself */
.ep-frame::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease) .3s;
  background: linear-gradient(90deg, rgb(var(--bg-rgb)) 0%, rgb(var(--bg-rgb)) 45%, rgba(var(--bg-rgb),0.7) 52%, rgba(var(--bg-rgb),0) 62%); }
.ep-index.is-hovering .ep-frame::before { opacity: 1; transition: opacity .25s var(--ease) 0s; }
.ep-bg::after { content: ""; position: absolute; inset: 0; z-index: 2; box-shadow: inset 0 0 0 0 rgba(166,88,20,0); transition: box-shadow .7s var(--ease); pointer-events: none; }
.ep-index.is-hovering .ep-bg::after { box-shadow: inset 0 0 80px -40px rgba(166,88,20,0.16), inset 0 0 0 1px rgba(166,88,20,0.18); }
.ep-index-inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.ep-list { list-style: none; margin-top: 18px; }
.ep-row { display: block; padding: 10px 0; cursor: pointer; }
.ep-row-top { display: flex; align-items: baseline; gap: clamp(14px, 2vw, 24px); }
.ep-row .num { font-family: var(--serif); font-style: italic; color: var(--orange); font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.045em; min-width: 2.2ch; }
.ep-row .name { font-weight: 500; font-size: clamp(44px, 5.6vw, 84px); letter-spacing: -0.04em; line-height: .98; transition: color .3s var(--ease); }
.ep-row .liner { display: block; margin-top: 10px; padding-left: calc(2.2ch + clamp(14px, 2vw, 24px)); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ep-row .liner b { font-weight: 500; color: var(--charcoal); }
.ep-index-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); transition: opacity .45s var(--ease); }
.ep-chip {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 7px; border-radius: 999px;
  background: var(--charcoal); color: var(--field);
  font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 12px 36px -10px rgba(166,88,20,0.7), 0 0 0 4px rgba(166,88,20,0.18);
  opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: opacity .3s var(--ease), transform .35s var(--ease-out);
}
html[data-theme="dark"] .ep-chip { background: #E6E1DD; color: #24272E; }
.ep-chip.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ep-chip .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #FBF8F5; display: grid; place-items: center; }
.ep-chip svg { width: 11px; height: 11px; margin-left: 2px; }

.coming {
  margin-top: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 22px 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-size: 15px;
}
.coming .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(166,88,20,0.5); animation: pulseDot 2s var(--ease) infinite; flex-shrink: 0; }
.coming a { margin-left: auto; }
@keyframes pulseDot { 70% { box-shadow: 0 0 0 10px rgba(166,88,20,0); } 100% { box-shadow: 0 0 0 0 rgba(166,88,20,0); } }

/* ─── TEAM ───────────────────────────────────────────────────────────── */
.team-list { list-style: none; margin-top: 56px; border-top: 1px solid var(--line); }
.team-row {
  position: relative; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px;
  padding: 32px 0; border-bottom: 1px solid var(--line); overflow: hidden;
}
.team-row::before { content: ""; position: absolute; inset: 0; background: var(--field-hi); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease-out); z-index: -1; }
.team-list { position: relative; z-index: 0; }
.team-row:hover::before { transform: scaleY(1); }
.team-row .n { font-family: var(--serif); font-style: italic; color: var(--orange); font-size: 26px; letter-spacing: -0.045em; padding-left: 4px; }
.team-row .who { font-weight: 500; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.03em; line-height: 1.1; transition: transform .5s var(--ease-out); }
.team-row:hover .who { transform: translateX(8px); }
.team-row .role { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; padding-right: 4px; }
.team-row .role a { display: block; margin-top: 8px; letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 500; color: var(--orange); }
.team-row .role a:hover { text-decoration: underline; text-underline-offset: 3px; }

.team-photo { position: relative; margin-top: clamp(64px, 8vw, 104px); border-radius: 20px; overflow: hidden; background: #1B1D22; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); }
.team-photo .quote { padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; color: #E6E1DD; }
.team-photo blockquote { font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.025em; line-height: 1.2; }
.team-photo blockquote em { color: var(--orange-hi); font-size: 1.16em; letter-spacing: -0.05em; }
.team-photo cite { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-style: normal; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(230,225,221,0.6); }
.team-photo cite::before { content: ""; width: 40px; height: 1px; background: var(--orange); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; transition: transform 1.4s var(--ease-out); }
.team-photo:hover img { transform: scale(1.03); }

/* ─── CONTACT ────────────────────────────────────────────────────────── */
.contact-card {
  margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--field-hi);
}
.contact-main { padding: clamp(32px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.contact-title { margin-top: 14px; font-size: clamp(30px, 3.4vw, 44px); }
.contact-main .email {
  display: inline-block; margin-top: 14px; font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.025em; line-height: 1.2;
  word-break: break-word; border-bottom: 1px solid var(--line-strong); transition: color .3s var(--ease), border-color .3s var(--ease);
}
.contact-main .email:hover { color: var(--orange); border-color: var(--orange); }
.contact-main .who { margin-top: 12px; color: var(--muted); font-size: 15px; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal); transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease); }
.copy-btn:hover { border-color: var(--orange); color: var(--orange); }
.copy-btn.done { background: var(--orange); border-color: var(--orange); color: #FBF8F5; }
.contact-side { padding: clamp(32px, 4vw, 52px); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.contact-side .item p:not(.kicker) { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* socials */
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 14.5px; font-weight: 500; color: var(--charcoal);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.social .icon { width: 19px; height: 19px; color: var(--glow); }
.social[data-brand="instagram"] { --brand: linear-gradient(45deg, #FEDA75 0%, #FA7E1E 25%, #D62976 55%, #962FBF 80%, #4F5BD5 100%); --glow: #D62976; }
.social[data-brand="youtube"] { --brand: #FF0000; --glow: #FF0000; }
.social[data-brand="linkedin"] { --brand: #0A66C2; --glow: #0A66C2; }
.social:hover { background: var(--brand); color: #fff; border-color: transparent; box-shadow: 0 10px 28px -8px color-mix(in srgb, var(--glow) 60%, transparent), 0 0 22px -4px color-mix(in srgb, var(--glow) 45%, transparent); }
.social:hover .icon { color: #fff; }
.social .ig-w { display: none; }
.social:hover .ig-c { display: none; }
.social:hover .ig-w { display: block; }

/* ─── CTA BAND ───────────────────────────────────────────────────────── */
.cta-band {
  position: relative; overflow: hidden; margin-top: clamp(96px, 12vw, 150px);
  background: var(--surface-dark); color: var(--on-dark); border-radius: 24px;
  padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr; gap: 36px;
}
html[data-theme="dark"] .cta-band { box-shadow: 0 0 0 1px rgba(230,225,221,0.10); }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(166,88,20,0.35), transparent 65%); pointer-events: none; transition: transform 1.2s var(--ease-out); }
.cta-band:hover::before { transform: translate(-40px, 40px) scale(1.1); }
.cta-band h2 { color: var(--on-dark); font-size: clamp(34px, 4.6vw, 58px); max-width: 20ch; }
.cta-band h2 em { color: var(--orange-hi); }
.cta-band p { color: rgba(230,225,221,0.72); margin-top: 18px; max-width: 520px; font-size: 16.5px; }
.cta-band .btn-row { margin-top: 0; position: relative; }
.cta-band .btn.ghost { color: var(--on-dark); border-color: rgba(230,225,221,0.3); }
.cta-band .btn.ghost:hover { color: #fff; border-color: var(--orange-hi); }

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.site-footer { margin-top: clamp(96px, 12vw, 150px); border-top: 1px solid var(--line); }
.foot-top { max-width: 1180px; margin: 0 auto; padding: 56px var(--gutter) 40px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-brand img { height: 28px; width: auto; }
.foot-brand p { margin-top: 18px; color: var(--muted); font-size: 15px; max-width: 300px; }
.foot-col h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--faint); margin-bottom: 14px; }
.foot-col ul { list-style: none; display: grid; gap: 2px; }
.foot-col a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 0; font-size: 15px; color: var(--charcoal); transition: color .25s var(--ease), transform .3s var(--ease); }
.foot-col a:hover { color: var(--orange); transform: translateX(3px); }
.foot-col a .arrow { color: var(--orange); font-size: 13px; }
.foot-cta { margin-top: 24px; height: 46px; padding: 0 22px; font-size: 12.5px; }
.foot-address { font-style: normal; font-size: 15px; line-height: 1.6; color: var(--muted); }
.foot-address strong { display: block; font-weight: 500; color: var(--charcoal); margin-bottom: 4px; }
.foot-map { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 0; font-size: 15px; font-weight: 500; color: var(--charcoal); transition: color .25s var(--ease); }
.foot-map .arrow { color: var(--orange); font-size: 13px; transition: transform .3s var(--ease); }
.foot-map:hover { color: var(--orange); }
.foot-map:hover .arrow { transform: translate(3px, -3px); }
.foot-bottom { width: calc(100% - 2 * var(--gutter)); max-width: calc(1180px - 2 * var(--gutter)); margin: 0 auto; padding: 22px 0 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--surface-dark); color: var(--on-dark); padding: 14px 22px; border-radius: 999px; font-size: 14px; transition: opacity .3s var(--ease), transform .3s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ─── 404 ────────────────────────────────────────────────────────────── */
.nf { min-height: calc(100vh - 300px); display: flex; flex-direction: column; justify-content: center; }

/* ─── TRANSITIONS: theme flip + cross-page fade ──────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }
::view-transition-group(site-header) { animation-duration: .35s; }
html.theme-vt::view-transition-old(root), html.theme-vt::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color .55s var(--ease), color .55s var(--ease), border-color .55s var(--ease), box-shadow .55s var(--ease) !important;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1020px) {
  .plat-grid, .steps { grid-template-columns: 1fr; }
  .plat-label, .step h3 { margin-top: 28px; }
  .incl-grid { grid-template-columns: repeat(2, 1fr); }
  .incl, .incl:not(:nth-child(3n+1)) { padding: 36px 28px 40px 0; }
  .incl:nth-child(even) { padding-left: 28px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-side { border-left: 0; border-top: 1px solid var(--line); }
  .team-photo { grid-template-columns: 1fr; }
  .team-photo .quote { order: 2; }
  .team-photo img { height: auto; min-height: 0; aspect-ratio: 1300 / 519; object-fit: cover; }
}
/* the full-bleed index needs a precise pointer; touch & small screens use the card grid */
@media (max-width: 1020px), (hover: none), (pointer: coarse) {
  .ep-index, .ep-chip, .hover-only { display: none !important; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .site-header, .site-header.scrolled { padding-top: 12px; padding-bottom: 12px; }
  .brand img { height: 19px; }
  .header-cta { display: none; }
  .theme-btn { padding: 0 5px; width: 44px; justify-content: center; }
  .theme-label { display: none; }
  .header-actions { gap: 8px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 16px 24px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(4) { border-top: 1px solid var(--line); }
  .incl-grid { grid-template-columns: 1fr; }
  .incl, .incl:not(:nth-child(3n+1)), .incl:nth-child(even) { padding: 28px 0 30px; gap: 10px; }
  .ep-grid { grid-template-columns: 1fr; gap: 40px; }
  .ep-play { opacity: 1; transform: none; right: 12px; bottom: 12px; height: 38px; font-size: 11px; }
  .ep-play .dot { width: 26px; height: 26px; }
  .ep-info { grid-template-columns: auto 1fr; }
  .ep-watch { display: none; }
  .ep-liner { grid-column: 2; }
  .team-row { grid-template-columns: 40px 1fr; padding: 26px 0; }
  .team-row .role { grid-column: 2; text-align: left; padding: 0; margin-top: -6px; }
  .foot-top { grid-template-columns: 1fr 1fr; padding-top: 44px; }
  .btn { height: 50px; padding: 0 22px; font-size: 12.5px; }
  .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .cta-band { border-radius: 20px; }
  .coming { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px 14px; }
  .coming .pulse-dot { margin-top: 8px; }
  .coming a { grid-column: 2; margin-left: 0; justify-self: start; }
  .video-toggle { opacity: 1; bottom: 12px; height: 44px; font-size: 11px; }
  .video-toggle .vt-label { display: none; }
  .video-toggle { padding: 0 7px; }
  .video-toggle .vt-ic { width: 30px; height: 30px; }
}
@media (max-width: 380px) {
  .brand img { height: 16px; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .loader-mark { clip-path: none; }
}
