/* =========================================================
   Srishti Portfolio — base stylesheet
   Palette: #2c057b (primary) | #afaae0 (lavender) | #ffffff
   Type: EB Garamond (headings) | Open Sans (body)
   ========================================================= */

:root {
  --primary: #2c057b;
  --lavender: #afaae0;
  --white: #ffffff;
  --ink: #0e0030;
  --soft: #f6f4ff;
  --line: #e6e3f5;

  --accent: #F5C518;
  --text-muted: #4a4270;
  --text-dim: #888;

  --serif: 'EB Garamond', 'Garamond', Georgia, serif;
  --sans: 'Open Sans', system-ui, -apple-system, sans-serif;

  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --pad-y: clamp(3rem, 8vw, 8rem);

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


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

html { scroll-behavior: auto; }
html, body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body { cursor: none; }
@media (max-width: 900px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; border: 0; background: none; cursor: none; }

::selection { background: var(--primary); color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, .display, .serif {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1, .h1 { font-size: clamp(3rem, 9vw, 9rem); font-weight: 500; }
h2, .h2 { font-size: clamp(2.25rem, 6vw, 5.5rem); }
h3, .h3 { font-size: clamp(1.5rem, 3vw, 2.75rem); }
h4 { font-size: clamp(1.15rem, 2vw, 1.5rem); }

em, .italic { font-style: italic; font-family: var(--serif); color: var(--primary); }

p { font-size: clamp(1rem, 1.1vw, 1.125rem); max-width: 62ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--primary);
  display: inline-block;
}

/* ---------- Page transition overlay ---------- */
.page-overlay { display: none; }
.page-overlay__label {
  font-family: var(--serif);
  font-style: italic;
  color: var(--lavender);
  font-size: clamp(2rem, 6vw, 5rem);
  opacity: 0.8;
}

/* ---------- Custom cursor (spotlight dot) ---------- */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out), background 0.25s var(--ease-out);
  mix-blend-mode: difference;
  will-change: transform, left, top;
}
.cursor-dot.is-hidden { opacity: 0; }
.cursor-dot.is-hover  { transform: translate(-50%, -50%) scale(3); opacity: 0.55; }
.cursor-dot.is-cta    { transform: translate(-50%, -50%) scale(5); opacity: 0.6; }
.cursor-dot.is-text   { transform: translate(-50%, -50%) scale(0.4); opacity: 0.9; }
.cursor-ring { display: none !important; }
/* Magnetic logos: keep inner elements inert so cursor doesn't fight */
.tool-logo img, .tool-logo figcaption { pointer-events: none; }
@media (max-width: 900px) { .cursor-dot { display: none; } }
@media (pointer: coarse) {
  .cursor-dot { display: none !important; }
  body { cursor: auto !important; }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--pad-x);
  mix-blend-mode: difference;
  color: var(--white);
  transition: transform 0.4s var(--ease);
  will-change: transform;
}
.nav--hidden { transform: translateY(-110%); }
.nav__brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--white);
}
.nav__links {
  display: flex; gap: 2rem;
  list-style: none;
}
.nav__links a {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--white);
  padding: 0.4rem 0;
}
.nav__links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active::after { background: var(--accent); height: 2px; }
.nav__menu-toggle {
  display: none;
  color: var(--white);
  font-size: 1.5rem;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  cursor: none;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav__icon-btn:hover { background: rgba(255, 255, 255, 0.15); }
.nav__icon-btn svg { display: block; width: 18px; height: 18px; }

@media (max-width: 900px) {
  /* ─── Mobile nav: editorial index ─── */
  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    transform: translateY(-100%);
    transition: transform 0.45s var(--ease);
    mix-blend-mode: normal;
    z-index: 110;
    padding: 5rem 1.75rem 2rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    list-style: none;
    counter-reset: navitem;
  }
  .nav__links::before {
    content: 'Index';
    display: block;
    flex-shrink: 0;
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--lavender);
    opacity: 0.55;
    padding-bottom: 1rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid rgba(175, 170, 224, 0.18);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links li {
    display: block;
    flex-shrink: 0;
    list-style: none;
    counter-increment: navitem;
    border-bottom: 1px solid rgba(175, 170, 224, 0.12);
    width: 100%;
  }
  .nav__links li:last-child { border-bottom: 0; }
  .nav__links a {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 5.5vw, 1.6rem);
    font-style: italic;
    color: var(--lavender);
    padding: 1rem 0;
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    line-height: 1.1;
    background-image: none;
    background-size: 0;
    letter-spacing: 0.01em;
    width: 100%;
  }
  .nav__links a::before {
    content: counter(navitem, decimal-leading-zero);
    flex-shrink: 0;
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--lavender);
    opacity: 0.5;
    min-width: 2.2ch;
    text-align: left;
    display: inline-block;
  }
  .nav__links a.is-active { color: var(--white); }
  .nav__links a.is-active::before { color: var(--accent); opacity: 1; }
  .nav__links a:hover,
  .nav__links a:active { color: var(--accent) !important; }
  .nav__links a::after { display: none; }
  .nav__menu-toggle { display: block; }

  /* Lift controls above the overlay */
  .nav__brand,
  .nav__icon-btn,
  .nav__menu-toggle {
    position: relative;
    z-index: 120;
  }

  /* Menu open: kill blend, lock body scroll (NOT touch-action — that would block overlay scroll too) */
  body.is-menu-open { overflow: hidden; }
  body.is-menu-open .nav {
    mix-blend-mode: normal;
    background: transparent;
  }
  body.is-menu-open .nav__brand,
  body.is-menu-open .nav__icon-btn,
  body.is-menu-open .nav__menu-toggle { color: var(--white); }
  body.is-menu-open .nav__icon-btn { display: none; }
}

/* ---------- Search overlay (Ctrl/Cmd-K) ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 0, 48, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex; justify-content: center;
  padding-top: 14vh;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }
.search-overlay__panel {
  width: min(560px, calc(100% - 2rem));
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(14, 0, 48, 0.35);
  overflow: hidden;
  transform: translateY(-12px);
  transition: transform 0.3s var(--ease);
}
.search-overlay.is-open .search-overlay__panel { transform: translateY(0); }
.search-overlay__input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--ink);
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.search-overlay__input::placeholder { color: var(--text-dim); }
.search-overlay__results {
  list-style: none;
  max-height: 50vh;
  overflow-y: auto;
  margin: 0; padding: 0.4rem;
}
.search-overlay__result {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  cursor: none;
  color: var(--ink);
  transition: background 0.18s var(--ease);
}
.search-overlay__result:hover,
.search-overlay__result.is-active {
  background: var(--accent);
  color: var(--ink);
}
.search-overlay__title { font-size: 0.95rem; font-weight: 500; }
.search-overlay__type {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.search-overlay__result.is-active .search-overlay__type { color: var(--ink); opacity: 0.6; }
.search-overlay__empty {
  padding: 1.5rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
}
.search-overlay__hint {
  padding: 0.6rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex; justify-content: space-between; gap: 1rem;
}
.search-overlay__hint kbd {
  font-family: var(--sans);
  font-size: 0.65rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  margin: 0 0.15rem;
}

/* ---------- Layout primitives ---------- */
section { padding: var(--pad-y) var(--pad-x); position: relative; }
.container { max-width: 1400px; margin: 0 auto; width: 100%; }
.grid { display: grid; gap: 2rem; }
.flex { display: flex; }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad-y) var(--pad-x) 4rem;
  position: relative;
}
.hero__name {
  font-size: clamp(3.5rem, 13vw, 12rem);
  line-height: 0.95;
  font-weight: 500;
  color: var(--primary);
}
.hero__name .italic { color: var(--primary); }
.hero__tag {
  margin-top: 2rem;
  display: flex; gap: 2rem; flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}
.hero__tag p {
  font-family: var(--sans);
  font-size: 1.1rem;
  max-width: 36ch;
  color: var(--ink);
}
.hero__meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(175, 170, 224, 0.3);
  border-bottom: 1px solid rgba(175, 170, 224, 0.3);
  padding: 1.5rem 0;
  background: var(--primary);
}
.marquee__track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee__item {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--lavender);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee__item::after {
  content: '✦';
  font-style: normal;
  font-size: 0.6em;
  color: rgba(175, 170, 224, 0.5);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: 4rem;
}
.section-head h2 { max-width: 18ch; }
.section-head .lede { max-width: 42ch; color: var(--ink); }

/* ---------- Cards (work / featured) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem 2rem;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--soft);
  cursor: none;
  transition: transform 0.6s var(--ease);
}
.card:nth-child(odd)  { grid-column: span 7; }
.card:nth-child(even) { grid-column: span 5; }
.card:nth-child(3n)   { grid-column: span 6; }
@media (max-width: 800px) { .card, .card:nth-child(odd), .card:nth-child(even), .card:nth-child(3n) { grid-column: span 12; } }

.card__media {
  aspect-ratio: 4/3;
  background: var(--lavender);
  position: relative;
  overflow: hidden;
}
.card__media .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--primary);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--lavender);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__media img,
.card:hover .placeholder { transform: scale(1.05); }
.card__body {
  padding: 1.5rem 0.25rem 0.5rem;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem;
}
.card__title { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--primary); }
.card__meta  { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); opacity: 0.6; }
.card__tags  { padding: 0 0.25rem 0.5rem; display: flex; gap: 0.6rem; flex-wrap: wrap; }
.card__tag   { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.75rem; }

/* ---------- Buttons / CTAs ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 0.8rem;
  padding: 1.1rem 1.6rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
}
.cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--primary);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.cta:hover { color: var(--white); }
.cta:hover::before { transform: translateY(0); }
.cta--solid { background: var(--primary); color: var(--white); }
.cta--solid::before { background: var(--lavender); }
.cta--solid:hover { color: var(--primary); }

/* ---------- About + image grid ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.about-grid__item {
  position: relative;
  overflow: hidden;
  background: var(--lavender);
  aspect-ratio: 3/4;
}
.about-grid__item--wide { grid-column: span 6; aspect-ratio: 4/3; }
.about-grid__item--tall { grid-column: span 3; }
.about-grid__item--small { grid-column: span 3; aspect-ratio: 1/1; }
.about-grid__item .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; color: var(--primary);
  font-size: 1.25rem;
}
@media (max-width: 800px) {
  .about-grid__item, .about-grid__item--wide, .about-grid__item--tall, .about-grid__item--small { grid-column: span 6; }
}

/* ---------- Experience timeline ---------- */
.timeline { display: flex; flex-direction: column; }
.timeline__row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: padding 0.4s var(--ease);
  cursor: none;
}
.timeline__row:last-child { border-bottom: 1px solid var(--line); }
.timeline__row:hover { padding-left: 1rem; padding-right: 1rem; background: var(--soft); }
.timeline__year { font-family: var(--serif); font-size: 1.5rem; color: var(--primary); }
.timeline__role h3 { margin-bottom: 0.4rem; }
.timeline__company { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); opacity: 0.6; margin-bottom: 1rem; }
.timeline__desc p { font-size: 0.95rem; color: var(--ink); }
.timeline__location { text-align: right; font-size: 0.85rem; color: var(--ink); opacity: 0.6; }
@media (max-width: 800px) {
  .timeline__row { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline__location { text-align: left; }
}

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 6rem;
}
@media (max-width: 800px) { .skills-grid { grid-template-columns: 1fr; gap: 3rem; } }
.skill-cluster h3 { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.skill-list { display: flex; flex-direction: column; gap: 0.6rem; list-style: none; }
.skill-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.6rem 0;
  font-size: 1rem;
}
.skill-list li span:last-child { font-family: var(--serif); font-style: italic; color: var(--primary); font-size: 0.9rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-cloud span {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  transition: all 0.3s var(--ease);
}
.tag-cloud span:hover { background: var(--primary); color: var(--white); }

/* ---------- Story page ---------- */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 8rem;
}
.story-block:nth-child(even) > :first-child { order: 2; }
.story-block__visual {
  aspect-ratio: 4/5;
  background: var(--lavender);
  position: relative;
  overflow: hidden;
}
.story-block__visual .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; color: var(--primary);
}
.story-block__text h2 { margin-bottom: 1.5rem; }
.story-block__text p { margin-bottom: 1rem; }
@media (max-width: 800px) {
  .story-block { grid-template-columns: 1fr; gap: 2rem; }
  .story-block:nth-child(even) > :first-child { order: 0; }
}

/* ---------- Pull quote ---------- */
.pullquote {
  text-align: center;
  padding: 6rem var(--pad-x);
  background: var(--primary);
  color: var(--white);
}
.pullquote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  max-width: 22ch;
  margin: 0 auto;
  color: var(--lavender);
}
.pullquote cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.7;
}

/* ---------- Contact / closing ---------- */
.closer {
  padding: clamp(4rem, 10vw, 12rem) var(--pad-x);
  background: var(--white);
  text-align: center;
}
.closer__lede { font-family: var(--serif); font-style: italic; font-size: clamp(2.5rem, 8vw, 8rem); line-height: 1.02; color: var(--primary); margin-bottom: 2rem; }
.closer__lede span { display: block; }
.closer__sub { margin: 2rem auto; max-width: 36ch; }
.closer > .cta { margin-top: 0.5rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.contact-list li span:first-child { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); opacity: 0.6; }
.contact-list li a { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--primary); }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form label { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 0.4rem; }
.contact-form input, .contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.9rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { min-height: 120px; resize: vertical; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem var(--pad-x);
  border-top: 1px solid var(--line);
  display: flex; justify-content: center; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}
.footer a { display: flex; align-items: center; transition: color 0.3s var(--ease), opacity 0.3s var(--ease); }
.footer a:hover { color: var(--primary); opacity: 1; }
.footer ul { list-style: none; display: flex; align-items: center; gap: 1.5rem; position: relative; }
.footer ul::before {
  content: '|';
  display: inline-block;
  margin-right: 0.5rem;
  opacity: 0.45;
  font-weight: 300;
}
.footer svg { display: block; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.split-line { overflow: hidden; }
.split-line > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.split-line.is-in > span { transform: translateY(0); }

/* ---------- Scroll-driven background pages (home, projects) ---------- */
body.page--scroll-bg {
  --page-bg: #afaae0;
  --page-text: #2c057b;
  background: var(--page-bg);
  color: var(--page-text);
}
body.page--scroll-bg h1,
body.page--scroll-bg h2,
body.page--scroll-bg h3,
body.page--scroll-bg h4,
body.page--scroll-bg em,
body.page--scroll-bg .italic,
body.page--scroll-bg .eyebrow,
body.page--scroll-bg .hero__name,
body.page--scroll-bg .closer__lede,
body.page--scroll-bg .card__title,
body.page--scroll-bg .card__tag,
body.page--scroll-bg .section-head .lede,
body.page--scroll-bg .hero__tag p {
  color: var(--page-text);
}
body.page--scroll-bg .eyebrow::before { background: var(--page-text); }
body.page--scroll-bg .closer { background: transparent; }
body.page--scroll-bg .card { background: rgba(255, 255, 255, 0.08); }
body.page--scroll-bg .card__tag { border-color: rgba(44, 5, 123, 0.25); }
body.page--scroll-bg .footer { color: var(--page-text); opacity: 0.85; border-top-color: rgba(44, 5, 123, 0.15); }
body.page--scroll-bg .cta {
  color: var(--page-text);
  border-color: var(--page-text);
}
body.page--scroll-bg .cta::before { background: var(--page-text); }
body.page--scroll-bg .cta:hover { color: var(--page-bg); }
body.page--scroll-bg .cta--solid {
  background: var(--page-text);
  color: var(--page-bg);
}
body.page--scroll-bg .cta--solid::before { background: var(--page-bg); opacity: 0.85; }
body.page--scroll-bg .cta--solid:hover { color: var(--page-text); }
body.page--scroll-bg .case-study__link {
  color: var(--page-text);
  border-bottom-color: var(--page-text);
}

/* ---------- Purple section ---------- */
.section--purple { background: var(--primary); }

/* text */
.section--purple h2,
.section--purple h3,
.section--purple h4,
.section--purple p,
.section--purple li,
.section--purple .eyebrow { color: var(--lavender); }
.section--purple .eyebrow::before { background: var(--lavender); }
.section--purple p,
.section--purple li { opacity: 0.85; }

/* skills cols on purple */
.section--purple .skills-col { border-color: rgba(175, 170, 224, 0.25); }
.section--purple .skills-col__label { color: var(--white); opacity: 1; border-bottom-color: rgba(175, 170, 224, 0.25); }

/* tool logos on purple */
.section--purple .tool-logo figcaption { color: var(--lavender); opacity: 0.7; }
.section--purple .bordered-box { border-color: rgba(175, 170, 224, 0.2); }

/* cert rows */
.section--purple .cert-row {
  color: var(--lavender);
  border-top-color: rgba(175, 170, 224, 0.2);
}
.section--purple .cert-row:last-child { border-bottom-color: rgba(175, 170, 224, 0.2); }
.section--purple .cert-row:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.section--purple .cert-row__org { opacity: 0.5; color: var(--lavender); }
.section--purple .cert-row__arrow { stroke: var(--lavender); }

/* ---------- Certifications ---------- */
.cert-list { display: flex; flex-direction: column; }
.cert-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  gap: 1.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.35s var(--ease), background 0.35s var(--ease);
}
.cert-row:last-child { border-bottom: 1px solid var(--line); }
.cert-row:hover { padding-left: 1rem; padding-right: 0.5rem; background: var(--soft); color: var(--primary); }
.cert-row__info { display: flex; flex-direction: column; gap: 0.25rem; }
.cert-row__name { font-size: 1rem; font-weight: 500; }
.cert-row__org { font-size: 0.8rem; opacity: 0.55; letter-spacing: 0.08em; }
.cert-row__arrow {
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.cert-row:hover .cert-row__arrow { opacity: 1; transform: translate(3px, -3px); }

@media (max-width: 768px) {
  .cert-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .cert-grid .cert-divider { display: none; }
}

/* ---------- Bordered box ---------- */
.bordered-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Skills split ---------- */
.skills-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.skills-col {
  border: 3px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
}
.skills-col__label {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--primary);
  opacity: 1;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.skills-col__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.skills-col__list li { font-size: 0.92rem; }

/* ---------- Tool logos grid ---------- */
.tool-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
}
.tool-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}
.tool-logo img {
  width: 32px; height: 32px;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.tool-logo:hover img { opacity: 1; transform: translateY(-3px); }
.tool-logo figcaption {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ink);
  opacity: 0.6;
}

/* Timeline compact variant */
.timeline__row--sm { padding: 1.5rem 0; }
.timeline__row--sm:hover { padding-left: 0.75rem; padding-right: 0.75rem; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); margin: 0; }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.scroll-hint::after {
  content: '';
  width: 1px; height: 40px;
  background: var(--primary);
  animation: scroll-line 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.spinner-tag {
  position: absolute;
  width: 140px; height: 140px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--primary);
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Equal cards (projects page) ---------- */
.cards--equal {
  grid-template-columns: repeat(3, 1fr);
}
.cards--equal .card,
.cards--equal .card:nth-child(odd),
.cards--equal .card:nth-child(even),
.cards--equal .card:nth-child(3n) {
  grid-column: span 1;
}
@media (max-width: 900px) { .cards--equal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards--equal { grid-template-columns: 1fr; } }

/* ---------- Modal (project detail) ---------- */
.modal {
  position: fixed; inset: 0;
  background: rgba(14, 0, 48, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal__panel {
  background: var(--white);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 6px;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  transform: translateY(40px);
  transition: transform 0.6s var(--ease);
}
.modal.is-open .modal__panel { transform: translateY(0); }
.modal__close {
  position: sticky; top: 0; float: right;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--primary);
  font-size: 1.25rem;
  display: grid; place-items: center;
  cursor: none;
  z-index: 10;
  transition: all 0.3s var(--ease);
  margin-bottom: -40px;
}
.modal__close:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Case study — 2-column layout to fit viewport */
.case-study { padding-top: 0.5rem; }
.case-study > .eyebrow { margin-bottom: 0.75rem; }
.case-study__layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem 3rem;
  align-items: start;
  margin-top: 0.5rem;
}
.case-study h2 { font-size: clamp(1.4rem, 2.5vw, 2.25rem); margin-bottom: 0.75rem; line-height: 1.1; }
.case-study__lede { font-family: var(--serif); font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--ink); margin-bottom: 1.25rem; }
.case-study__meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-study__meta dt { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); opacity: 0.6; margin-bottom: 0.2rem; }
.case-study__meta dd { font-family: var(--serif); font-size: 1rem; color: var(--primary); }
.case-study__section { margin-bottom: 1.5rem; }
.case-study__section h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.case-study__section p { margin-bottom: 0.5rem; font-size: 0.95rem; }
@media (max-width: 700px) { .case-study__layout { grid-template-columns: 1fr; } }

.case-study__img {
  aspect-ratio: 16/9;
  background: var(--lavender);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}
.case-study__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-study__img .placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  color: var(--primary); font-size: 1rem;
}
.case-study__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
  transition: opacity 0.3s var(--ease);
}
.case-study__link:hover { opacity: 0.55; }

/* ───────────────────────────────────────────────
   Card affordance: "Read case study" hover label
   Signals card-click = modal (vs section CTA = page)
   ─────────────────────────────────────────────── */
.card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  pointer-events: none;
}
.card:hover .card__read-more,
.card:focus-visible .card__read-more {
  opacity: 0.85;
  transform: translateY(0);
}

/* External-link affordance for section CTAs that lead to a new page */
.cta--external::after {
  content: '';
  display: inline-block;
  width: 0;
}

/* ───────────────────────────────────────────────
   Editorial layout variants: feature + secondary
   Breaks the identical-card-grid rhythm
   ─────────────────────────────────────────────── */
.cards--feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.card--feature .card__media {
  aspect-ratio: 21 / 9;
}
.card--feature .card__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.1;
}
.cards--secondary {
  display: grid;
  grid-template-columns: minmax(0, 56%);
  justify-content: end;
  margin-top: 1.25rem;
}
@media (max-width: 760px) {
  .cards--secondary { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────────────
   Featured video block (academic section)
   ─────────────────────────────────────────────── */
.video-feature {
  margin-top: 5rem;
}
.video-feature__rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}
.video-feature__head {
  text-align: center;
  padding: 2.5rem 0 2rem;
}
.video-feature__head .eyebrow {
  justify-content: center;
  margin: 0;
}
.video-feature__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--primary);
  line-height: 1.15;
  margin-top: 0.85rem;
}
.video-feature__frame {
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
  max-width: 1080px;
  margin: 0 auto;
}
.video-feature__frame video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.video-feature__caption {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 0 2.5rem;
  text-align: center;
}
.video-feature__caption p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 auto 0.85rem;
  max-width: 56ch;
  text-align: center;
}
.video-feature__caption p:last-child { margin-bottom: 0; }
.video-feature__role {
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
}

/* ───────────────────────────────────────────────
   Hover sweep — nav links + CTAs only (NOT headings)
   ─────────────────────────────────────────────── */
.nav__links a,
.cta {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: 0 calc(100% + 4px);
  background-size: 0% 2px;
  transition:
    background-size 0.45s cubic-bezier(0.65, 0, 0.35, 1),
    color 0.35s var(--ease);
}

.nav__links a:hover,
.cta:hover {
  color: var(--accent) !important;
  background-size: 100% 2px;
}

/* ───────────────────────────────────────────────
   Heading italics: turn mustard ONLY on parent hover
   Rest state inherits heading color
   ─────────────────────────────────────────────── */
h1 em, h1 .italic,
h2 em, h2 .italic,
h3 em, h3 .italic,
h4 em, h4 .italic,
.hero__name em, .hero__name .italic,
.closer__lede em, .closer__lede .italic,
.work-card__title em, .work-card__title .italic,
.card__title em, .card__title .italic,
.video-feature__title em, .video-feature__title .italic {
  transition: color 0.35s var(--ease);
}

h1:hover em, h1:hover .italic,
h2:hover em, h2:hover .italic,
h3:hover em, h3:hover .italic,
h4:hover em, h4:hover .italic,
.hero__name:hover em, .hero__name:hover .italic,
.closer__lede:hover em, .closer__lede:hover .italic,
.work-card__title:hover em, .work-card__title:hover .italic,
.card:hover .card__title em, .card:hover .card__title .italic,
.work-card:hover .work-card__title em, .work-card:hover .work-card__title .italic,
.video-feature__title:hover em, .video-feature__title:hover .italic {
  color: var(--accent) !important;
}

/* ───────────────────────────────────────────────
   Scroll-to-top floating button
   ─────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease);
  z-index: 90;
  box-shadow: 0 6px 20px rgba(14, 0, 48, 0.28);
}
.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}
@media (max-width: 600px) {
  .scroll-top { width: 42px; height: 42px; bottom: 1rem; right: 1rem; }
}

/* ───────────────────────────────────────────────
   Mobile + touch optimisation
   iOS Safari fixes, touch targets, hover fallbacks
   ─────────────────────────────────────────────── */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body,
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* iOS-safe hero height: small viewport units avoid mobile chrome cut */
@supports (height: 100svh) {
  .hero { min-height: 100svh; }
}

/* Touch devices: no-hover, coarse pointer */
@media (hover: none) and (pointer: coarse) {
  /* 44px+ tap targets (Apple HIG / Material) */
  .nav__icon-btn { width: 44px; height: 44px; }
  .nav__menu-toggle { min-width: 44px; min-height: 44px; padding: 0 0.4rem; }
  .modal__close { width: 44px; height: 44px; }
  .scroll-top { width: 48px; height: 48px; }

  /* Hover-revealed labels stay visible (touch never fires hover) */
  .card__read-more { opacity: 0.85; transform: none; pointer-events: none; }

  /* Kill padding-shift hover styles on touch */
  .timeline__row:hover,
  .cert-row:hover {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
  }
  /* Active-state feedback for touch */
  .cert-row:active { background: var(--soft); }
  .card:active { transform: scale(0.99); }

  /* Magnetic logos JS already gated to ≥901px; double-lock visual */
  .tool-logo:hover img { transform: none; }
}

/* When custom cursor is off (<=900px), restore visible pointer */
@media (max-width: 900px) {
  body, button, .card, .modal__close, .nav__icon-btn,
  .timeline__row, .tag-cloud span, [data-cursor] {
    cursor: auto;
  }
  a, button, .card, .cta, .modal__close,
  .nav__icon-btn, .nav__menu-toggle, [data-cursor] { cursor: pointer; }
}

/* About bio grid: stacks on small screens */
.about-bio-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 800px) {
  .about-bio-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Two-up project card grid (Grá, Think Tree sections) */
.cards--two-up { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .cards--two-up { grid-template-columns: 1fr; } }

/* Contact page: fixed-footer mode plus mobile escape */
.footer--fixed { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; }
@media (max-width: 700px) {
  .footer--fixed { position: static; }
}

/* Modal: tighter padding on phones, single-column meta */
@media (max-width: 600px) {
  .modal { padding: 1rem 0.75rem; }
  .modal__panel { max-height: 95vh; padding: 1.25rem 1rem; }
  .case-study__meta { grid-template-columns: 1fr; gap: 0.5rem 0; }
  .case-study__layout { gap: 1.25rem; }
}

/* Form inputs: explicit 16px on phones to block iOS focus-zoom */
@media (max-width: 700px) {
  .contact-form input,
  .contact-form textarea,
  .search-overlay__input { font-size: 16px; }
}

/* Tighter rhythm on phones */
@media (max-width: 600px) {
  section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .section-head { margin-bottom: 2.5rem; gap: 1rem; }
  .marquee__track { gap: 2rem; }
  .marquee__item { gap: 2rem; }
  .footer { padding: 1.75rem 1.25rem; gap: 0.75rem; }
  .footer ul { gap: 1rem; }
  .closer { padding: 4rem 1.25rem; }
  .pullquote { padding: 4rem 1.25rem; }
  /* Wrapped hero/closer titles need air on phones (line-height: 0.95/1 too tight when wrapping) */
  .hero__name { line-height: 1.04; }
  .closer__lede { line-height: 1.05; margin-bottom: 1.5rem; }
  .hero__tag { margin-top: 1.5rem; }
}

/* Very small phones: contact cards single-column */
@media (max-width: 380px) {
  .contact-cards { flex-direction: column; width: 100%; }
  .contact-card { justify-content: center; width: 100%; }
}

/* Disable smooth-scroll Lenis stutter on reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track { animation: none; }
}

/* ───────────────────────────────────────────────
   Cross-device polish (tablet + small phone)
   ─────────────────────────────────────────────── */

/* Tablet (768–1024px): mid-range refinement */
@media (min-width: 769px) and (max-width: 1024px) {
  :root { --pad-x: clamp(1.5rem, 3.5vw, 3rem); }
  .section-head { gap: 1.5rem; }
  .hero { padding-bottom: 3rem; }
  .cards { gap: 2rem 1.5rem; }
}

/* Small phone (≤ 400px): squeeze without breaking */
@media (max-width: 400px) {
  :root {
    --pad-x: 1rem;
    --pad-y: clamp(2.5rem, 7vw, 4rem);
  }
  h1, .h1 { font-size: clamp(2.5rem, 11vw, 4rem); }
  h2, .h2 { font-size: clamp(1.85rem, 8vw, 3rem); }
  h3, .h3 { font-size: clamp(1.25rem, 5vw, 1.65rem); }
  .hero__name { font-size: clamp(2.75rem, 12vw, 4rem) !important; }
  .closer__lede { font-size: clamp(2.25rem, 10vw, 4rem) !important; }
  .cta { padding: 0.95rem 1.2rem; font-size: 0.78rem; letter-spacing: 0.12em; }
  .nav { padding: 1rem var(--pad-x); }
  .nav__brand { font-size: 1.25rem; }
  .nav__right { gap: 0.85rem; }
}

/* Nav: keep brand readable, kill awkward shrink */
@media (max-width: 480px) {
  .nav__brand { font-size: 1.3rem; }
  .nav__right { gap: 0.9rem; }
  .nav__icon-btn svg { width: 16px; height: 16px; }
}

/* Section head stacks cleanly when content gets long */
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 2.5rem; }
  .section-head h2 { max-width: 100%; }
  .section-head .lede { max-width: 60ch; }
}

/* Modal: scroll-safe on small screens */
@media (max-width: 600px) {
  .modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    margin-bottom: 0;
    float: none;
  }
}

/* Closer mobile: ensure CTA stands clear of wrapped lede */
@media (max-width: 600px) {
  .closer { padding: 3.5rem 1.25rem; }
  .closer__lede { margin-bottom: 1.75rem; line-height: 1.06; }
  .closer > .cta { margin-top: 0; }
}

/* About bio: image cap on mobile so it doesn't dominate above the fold */
@media (max-width: 800px) {
  .about-bio-grid > div:first-child { max-width: 320px; margin: 0 auto; }
}

/* Video iframe: prevent overflow on small phones */
@media (max-width: 600px) {
  .video-feature { margin-top: 3rem; }
  .video-feature__head { padding: 2rem 0 1.5rem; }
  .video-feature__caption { padding: 1.5rem 0 2rem; }
  .video-feature__caption p { font-size: 0.88rem; }
}
