/* ═══════════════════════════════════════════════════════════════
   THE NEXT 50 · v14 · Cinematic / DOAC-style
   Dark backdrop · boxed logo · bold display · minimalist
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0e0e0e;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --ink: #fafafa;
  --ink-mid: #a8a8a8;
  --ink-dim: #6c6c6c;
  --ink-mute: #4a4a4a;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.18);
  --accent: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); overflow-x: hidden; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ═══ CINEMATIC BG — blurred studio desk vibe ═══ */
.cine-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(50,50,50,0.4), transparent 65%),
    radial-gradient(ellipse 80% 90% at 80% 20%, rgba(90,70,40,0.15), transparent 60%),
    radial-gradient(ellipse 80% 90% at 10% 85%, rgba(40,40,50,0.2), transparent 60%),
    radial-gradient(circle at 20% 30%, rgba(255,240,200,0.03), transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(255,240,200,0.025), transparent 35%),
    #0a0a0a;
  filter: blur(0.5px);
}
.cine-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 25%, rgba(255,250,235,0.12), transparent 2%),
                    radial-gradient(circle at 82% 18%, rgba(255,250,235,0.08), transparent 2%),
                    radial-gradient(circle at 92% 72%, rgba(255,250,235,0.1), transparent 2%),
                    radial-gradient(circle at 25% 85%, rgba(255,250,235,0.07), transparent 2%),
                    radial-gradient(circle at 45% 55%, rgba(255,250,235,0.05), transparent 1.5%),
                    radial-gradient(circle at 65% 40%, rgba(255,250,235,0.06), transparent 1.5%);
  filter: blur(8px);
}
.cine-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.6) 80%, rgba(10,10,10,0.9) 100%);
}
/* film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}
main, header, footer, section { position: relative; z-index: 2; }

/* ═══ BOXED LOGO ═══ */
.boxed-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.boxed-logo .box {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.045em;
  line-height: 1;
}
.boxed-logo .box em {
  font-style: normal;
  letter-spacing: 0.02em;
}
.boxed-logo .tag {
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  margin-top: 10px;
  text-transform: uppercase;
}

/* ═══ HEADER NAV ═══ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,10,10,0.75), rgba(10,10,10,0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav .nav-brand {
  background: var(--ink);
  color: var(--bg);
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.nav .nav-brand em { font-style: normal; }
.nav .nav-links {
  display: flex; gap: 28px;
}
.nav .nav-links a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity .2s;
}
.nav .nav-links a:hover { opacity: 0.6; }
.nav .nav-links a.active { color: var(--ink); }
.nav .nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: opacity .2s;
}
.nav .nav-cta:hover { opacity: 0.85; }

@media (max-width: 760px) {
  .nav { padding: 14px 18px; }
  .nav .nav-links { display: none; }
  .nav .nav-cta { padding: 8px 14px; font-size: 11px; }
}

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  padding: 100px 24px 60px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  color: var(--ink-mid);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.display {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
}
.display-xxl { font-size: clamp(56px, 9vw, 110px); }
.display-xl  { font-size: clamp(42px, 6.5vw, 82px); }
.display-lg  { font-size: clamp(32px, 4.5vw, 56px); }
.display-md  { font-size: clamp(24px, 3vw, 38px); }

.lede {
  color: var(--ink-mid);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  max-width: 540px;
  margin: 30px auto 0;
}

/* ═══ FORM ═══ */
.ec-form {
  margin-top: 44px;
  width: 100%;
  max-width: 420px;
}
.ec-form input[type="email"],
.ec-form input[type="text"],
.ec-form select,
.ec-form textarea {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: border-color .2s;
}
.ec-form input::placeholder, .ec-form textarea::placeholder { color: var(--ink-dim); }
.ec-form input:focus, .ec-form select:focus, .ec-form textarea:focus {
  outline: none; border-color: var(--ink);
}

.check-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0 6px;
  padding: 0 4px;
  color: var(--ink-mid);
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}
.check-row input { accent-color: var(--ink); margin-top: 3px; }
.check-row a { border-bottom: 1px solid currentColor; color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px;
  background: var(--ink);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none; border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
  min-width: 200px;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn.outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.outline:hover { background: var(--ink); color: var(--bg); }
.btn.full { width: 100%; }

/* ═══ FOOTER ═══ */
.footer-legal {
  padding: 40px 24px 50px;
  text-align: center;
}
.footer-legal .links {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
}
.footer-legal .links a {
  color: var(--ink-mid);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  transition: opacity .2s;
}
.footer-legal .links a:hover { color: var(--ink); }
.footer-legal .meta {
  margin-top: 24px;
  color: var(--ink-dim);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ═══ SECTIONS (non-hero pages) ═══ */
.section {
  padding: clamp(70px, 10vh, 120px) 24px;
}
.wrap { max-width: 1240px; margin: 0 auto; }
.wrap-mid { max-width: 920px; margin: 0 auto; }
.wrap-tight { max-width: 680px; margin: 0 auto; }

.eyebrow {
  color: var(--ink-mid);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.rule {
  height: 1px; background: var(--line); border: 0; margin: 0;
}

/* ═══ EPISODE GRID (video-style cards) ═══ */
.ep-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .ep-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .ep-grid { grid-template-columns: 1fr 1fr 1fr; } }

.ep-card {
  display: flex; flex-direction: column;
  text-decoration: none;
  transition: transform .25s;
}
.ep-card:hover { transform: translateY(-4px); }
.ep-card .thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.ep-card .thumb::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(255,240,200,0.08), transparent 60%);
}
.ep-card .thumb .ep-num {
  position: absolute; top: 14px; left: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.25em;
  color: var(--ink);
  opacity: 0.7;
  z-index: 2;
}
.ep-card .thumb .ep-date {
  position: absolute; top: 14px; right: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink);
  opacity: 0.6;
  z-index: 2;
}
.ep-card .thumb .ep-play {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.35);
  z-index: 2;
}
.ep-card .thumb .ep-play::after {
  content: ''; width: 0; height: 0;
  border-left: 14px solid var(--ink);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.ep-card .thumb .ep-guest {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
  z-index: 2;
}
.ep-card .ep-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
}
.ep-card .ep-hook {
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}
.ep-card .ep-tag {
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ═══ PROFILE SECTION ═══ */
.profile {
  display: grid; gap: 50px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .profile { grid-template-columns: 1fr 1.3fr; gap: 80px; } }

.profile .frame {
  aspect-ratio: 4/5;
  background: linear-gradient(170deg, #1a1a1a, #0a0a0a);
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.profile .frame::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(255,240,200,0.1), transparent 70%);
}
.profile .frame .tag {
  position: absolute; top: 18px; left: 18px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mid);
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}
.profile .frame .n {
  position: absolute; top: 18px; right: 18px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mid);
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}
.profile .frame .caption {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-mid);
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

/* ═══ FEATURED NUMBERS ═══ */
.num-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 50px;
}
.num-row > div {
  padding: 32px 24px;
  background: var(--bg);
}
.num-row .num {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4vw, 54px);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.num-row .lbl {
  color: var(--ink-mid);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ═══ QUOTE ═══ */
.block-quote {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.block-quote cite {
  display: block; margin-top: 30px;
  font-style: normal; font-weight: 600;
  font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* ═══ FADE REVEAL ═══ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══ FOOTER (main) ═══ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 60px 24px 36px;
}
.footer .f-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; gap: 40px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 760px) {
  .footer .f-grid { grid-template-columns: 1fr 1fr; }
  .footer .f-brand { grid-column: 1 / -1; }
}
.footer h4 {
  color: var(--ink);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer a { display: block; color: var(--ink-mid); font-size: 13.5px; padding: 6px 0; transition: color .15s; }
.footer a:hover { color: var(--ink); }
.footer .f-brand p { color: var(--ink-mid); font-size: 13.5px; line-height: 1.55; max-width: 320px; margin-top: 16px; }
.footer .f-base {
  max-width: 1240px; margin: 56px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: var(--ink-dim);
  font-size: 10.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Audio pill hidden on hero landing */
body.landing .audio-pill { display: none; }


/* ═══════════════════════════════════════════════════════════════
   MOBILE HARDENING
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  .nav {
    padding: 12px 16px !important;
  }
  .nav .nav-brand {
    font-size: 13px !important;
    padding: 6px 10px !important;
  }
  .nav .nav-cta {
    padding: 8px 14px !important;
    font-size: 10.5px !important;
  }
  .hero {
    padding: 90px 20px 50px !important;
  }
  .hero-eyebrow {
    font-size: 10.5px !important;
    letter-spacing: 0.25em !important;
    margin-bottom: 28px !important;
  }
  .display-xxl { font-size: clamp(42px, 10vw, 68px) !important; line-height: 0.95 !important; }
  .display-xl  { font-size: clamp(34px, 8vw, 54px) !important; line-height: 0.95 !important; }
  .display-lg  { font-size: clamp(28px, 6vw, 40px) !important; }
  .display-md  { font-size: clamp(22px, 4.5vw, 30px) !important; }
  .lede { font-size: 14.5px !important; max-width: 100% !important; margin: 24px auto 0 !important; }
  .ec-form { margin-top: 32px !important; }
  .ec-form input, .ec-form select, .ec-form textarea {
    padding: 16px 18px !important;
    font-size: 15px !important;  /* 15px+ prevents iOS zoom on focus */
  }
  .check-row { font-size: 11.5px !important; }
  .btn { padding: 15px 24px !important; font-size: 11px !important; min-width: 160px !important; }

  .boxed-logo .box {
    font-size: 26px !important;
    padding: 9px 18px !important;
  }
  .boxed-logo .tag {
    font-size: 9.5px !important;
    letter-spacing: 0.25em !important;
  }

  .section {
    padding: 70px 20px !important;
  }
  .wrap, .wrap-mid, .wrap-tight {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Profile grid stacks on mobile */
  .profile {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  .profile .frame {
    max-width: 360px;
    margin: 0 auto;
  }

  /* Fact grid stacks to 2 columns */
  .num-row {
    grid-template-columns: 1fr 1fr !important;
    margin-top: 56px !important;
  }
  .num-row .num {
    font-size: clamp(32px, 8vw, 44px) !important;
  }
  .num-row .lbl {
    font-size: 10px !important;
    letter-spacing: 0.16em !important;
  }

  /* Episode grid: single column on small, 2 on medium */
  .ep-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .ep-card .thumb {
    aspect-ratio: 16/10;
  }

  /* Footer stacks */
  .footer {
    padding: 50px 20px 32px !important;
  }
  .footer .f-grid {
    gap: 32px !important;
  }
  .footer .f-base {
    flex-direction: column !important;
    gap: 10px !important;
    font-size: 10px !important;
  }

  /* Quote block */
  .block-quote { font-size: clamp(22px, 5vw, 32px) !important; }

  /* Footer-legal (home landing) */
  .footer-legal { padding: 30px 20px 40px !important; }
  .footer-legal .links { gap: 20px !important; }
  .footer-legal .links a { font-size: 10px !important; letter-spacing: 0.18em !important; }
  .footer-legal .meta { font-size: 9.5px !important; letter-spacing: 0.18em !important; }

  /* Press boilerplate blocks — tighter padding */
  #short, #long {
    padding: 22px 20px !important;
    font-size: 14.5px !important;
  }
}

@media (max-width: 420px) {
  .nav {
    padding: 10px 14px !important;
  }
  .nav .nav-brand {
    font-size: 12px !important;
    padding: 5px 9px !important;
  }
  .nav .nav-cta {
    padding: 7px 12px !important;
    font-size: 10px !important;
  }
  .boxed-logo .box {
    font-size: 22px !important;
    padding: 8px 15px !important;
  }
  .boxed-logo .tag {
    font-size: 8.5px !important;
  }
  .display-xxl { font-size: clamp(36px, 11vw, 56px) !important; }
  .display-xl  { font-size: clamp(28px, 8.5vw, 42px) !important; }
  .hero-eyebrow { font-size: 9.5px !important; }
  .num-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 1px !important;
  }
  .num-row > div {
    padding: 22px 18px !important;
  }
  .footer .f-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer .f-base {
    font-size: 9px !important;
    letter-spacing: 0.15em !important;
  }
}

/* Safe area insets for iPhone notches */
@supports (padding: max(0px)) {
  body { padding-bottom: env(safe-area-inset-bottom, 0); }
  .nav {
    padding-top: calc(14px + env(safe-area-inset-top, 0)) !important;
    padding-left: calc(16px + env(safe-area-inset-left, 0)) !important;
    padding-right: calc(16px + env(safe-area-inset-right, 0)) !important;
  }
}

/* Touch targets ≥ 48px on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn, .ep-card, .nav a, .nav-cta, .footer-legal a {
    min-height: 44px;
  }
  input, select, textarea {
    font-size: 16px !important;  /* prevents iOS zoom */
  }
}


/* ═══════════════════════════════════════════════════════════════
   BREATHING COPPER ACCENT
   Italic emphasis words slowly cycle white → copper → white
   on an 8-second loop. Alive, not loud.
   ═══════════════════════════════════════════════════════════════ */
@keyframes copperBreath {
  0%   { color: #fafafa; }
  35%  { color: #fafafa; }
  50%  { color: #d98a3c; }
  65%  { color: #fafafa; }
  100% { color: #fafafa; }
}
@keyframes copperBreathBg {
  0%   { color: #0e0e0e; }
  35%  { color: #0e0e0e; }
  50%  { color: #d98a3c; }
  65%  { color: #0e0e0e; }
  100% { color: #0e0e0e; }
}

/* All italic emphasis inside display headlines gets the breath */
.display em,
.hero-h em,
.block-quote em,
.exp-h em,
h1 em, h2 em, h3 em {
  animation: copperBreath 8s ease-in-out infinite;
}

/* "50" inside the boxed brand mark — subtler, slightly offset start */
.boxed-logo .box em,
.nav .nav-brand em,
.nav-brand em {
  animation: copperBreathBg 9s ease-in-out infinite;
  animation-delay: -1.5s;
}

/* Footer mini-brand uses the dark-bg version */
.footer .nav-brand em,
.f-brand .nav-brand em {
  animation: copperBreathBg 9s ease-in-out infinite;
  animation-delay: -1.5s;
}

/* Reduced motion — respect user preference */
@media (prefers-reduced-motion: reduce) {
  .display em, .hero-h em, .block-quote em,
  h1 em, h2 em, h3 em,
  .boxed-logo .box em, .nav .nav-brand em,
  .nav-brand em, .footer .nav-brand em {
    animation: none !important;
    color: #d98a3c !important;  /* fallback to static copper */
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE · FINAL PASS (new content since v25)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  /* Shop product grid — real product photos */
  .shop-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .shop-art {
    aspect-ratio: 4/5 !important;  /* taller on mobile = more product real estate */
  }
  .shop-head h3 {
    font-size: 17px !important;
  }
  .shop-desc {
    font-size: 13px !important;
  }

  /* Bio paragraphs — the running em list in About */
  .bio-paragraph em,
  section p em {
    white-space: normal !important;
  }

  /* About page profile portrait — ensure not oversized */
  .profile .frame {
    max-width: 320px !important;
    margin: 0 auto !important;
  }

  /* Hero container padding tweak for very narrow phones */
  .hero {
    padding: 85px 18px 50px !important;
  }

  /* Math section row — tight single row on phones */
  .math-row > div > div:first-child {
    font-size: clamp(38px, 11vw, 60px) !important;
  }

  /* Press page boilerplate boxes */
  #short, #long {
    padding: 20px 18px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  /* Form inputs on mobile — larger touch targets */
  input, select, textarea {
    padding: 15px 16px !important;
    font-size: 16px !important;  /* prevent iOS zoom */
  }

  /* Copper breath — slightly reduced saturation on mobile to save battery */
  /* (animation still runs, just a pulse not a glow) */
}

@media (max-width: 420px) {
  /* Very narrow screens — grid safety */
  .shop-head h3 { font-size: 16px !important; }
  .shop-head .price { font-size: 15px !important; }
  .shop-meta { font-size: 10px !important; letter-spacing: 0.15em !important; }

  /* Profile portrait */
  .profile .frame {
    max-width: 280px !important;
  }

  /* About page bio emphasis list — keep readable */
  section p {
    font-size: 15px !important;
  }
}

/* Battery / perf — pause breath animation if device prefers less motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Keep the copper color visible even without animation */
  .display em, h1 em, h2 em, h3 em,
  .boxed-logo .box em, .nav .nav-brand em, #math-500 {
    color: #d98a3c !important;
    animation: none !important;
  }
}

/* Safe area — iPhone X+ notch on hero section */
@supports (padding: max(0px)) {
  .hero {
    padding-top: max(100px, calc(80px + env(safe-area-inset-top, 0))) !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE NAV · hamburger + full-screen drawer
   ═══════════════════════════════════════════════════════════════ */

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  cursor: pointer;
  padding: 0;
  margin-left: 10px;
  transition: all .2s;
}
.nav-burger:hover { border-color: var(--ink); }
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: all .25s;
}
.nav-burger span::before,
.nav-burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: all .25s;
}
.nav-burger span::before { top: -5px; }
.nav-burger span::after  { top: 5px; }

.nav-burger.open span { background: transparent; }
.nav-burger.open span::before { top: 0; transform: rotate(45deg); }
.nav-burger.open span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
#mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 90px 32px 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
#mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}
#mobile-drawer a {
  display: block;
  padding: 18px 0;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color .2s;
  opacity: 0;
  transform: translateY(8px);
}
#mobile-drawer.open a {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s cubic-bezier(.3,.9,.3,1), color .2s;
}
#mobile-drawer.open a:nth-child(1) { transition-delay: .05s; }
#mobile-drawer.open a:nth-child(2) { transition-delay: .08s; }
#mobile-drawer.open a:nth-child(3) { transition-delay: .11s; }
#mobile-drawer.open a:nth-child(4) { transition-delay: .14s; }
#mobile-drawer.open a:nth-child(5) { transition-delay: .17s; }
#mobile-drawer.open a:nth-child(6) { transition-delay: .20s; }
#mobile-drawer a:hover { color: #d98a3c; }

#mobile-drawer .drawer-footer {
  margin-top: auto;
  padding-top: 32px;
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}
#mobile-drawer .drawer-footer span.copper { color: #d98a3c; }

body.nav-open { overflow: hidden; }

/* ─── Mobile: show burger, hide nav-links already handled ─── */
@media (max-width: 760px) {
  .nav-burger { display: inline-flex; }
  .nav .nav-cta {
    padding: 11px 16px !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    line-height: 1 !important;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav .nav-brand {
    padding: 7px 12px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Fix desktop pill alignment too — line-height 1 kills the extra bottom space */
.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav .nav-brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
