/* ============================================================
   Erika Cardema - Portfolio
   s.mulvey restraint × ARTOLIO personality
   Accent lives in one variable (--accent). Swap it for the
   mulvey yellow (#f5c518) in one line if she prefers.
   ============================================================ */

:root {
  /* warm near-black (ARTOLIO) rather than cold black */
  --bg:        #0c0a09;
  --bg-elev:   #151210;
  --bg-card:   #100d0b;
  --fg:        #f4f1ea;
  --muted:     #8c877e;
  --muted-dim: #5c574f;
  --line:      #26221e;

  /* ONE ACCENT - change this to #f5c518 for the mulvey yellow */
  --accent:    #ff4a1c;
  --accent-dim: #c73a15;

  --sidebar-w: 264px;
  --pad:       clamp(20px, 5vw, 64px);
  --ease:      cubic-bezier(.22,.61,.36,1);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #0b0b0c; }

/* ---------- LAYOUT ---------- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: var(--pad) 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;         /* mulvey - cluster sits vertically centered */
  border-right: 1px solid var(--line);
  background: var(--bg);
  z-index: 40;
}
.sidebar__cluster {
  display: flex;
  flex-direction: column;
}

.sidebar__mark {
  font-family: var(--font-serif);  /* mulvey - quiet serif wordmark */
  font-size: 27px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: lowercase;
}
.sidebar__dot { color: var(--accent); }
.mark-etc { color: var(--accent); }

.sidebar__nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  width: max-content;
  padding: 3px 0;
  position: relative;
  transition: color .25s var(--ease);
}
.sidebar__nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.sidebar__nav a:hover,
.sidebar__nav a.is-current { color: var(--fg); }
.sidebar__nav a:hover::after,
.sidebar__nav a.is-current::after { width: 100%; }

.sidebar__socials {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  color: var(--muted);
}
.sidebar__socials a { transition: color .25s var(--ease), transform .25s var(--ease); }
.sidebar__socials a:hover { color: var(--accent); transform: translateY(-2px); }

.sidebar__foot {
  position: absolute;
  left: 30px; bottom: var(--pad);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  line-height: 1.7;
}

/* ---------- TOP BAR (mobile) ---------- */
.topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  background: rgba(11,11,12,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 60;
}
.topbar__mark {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: lowercase;
}
.topbar__toggle {
  width: 34px; height: 34px;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
}
.topbar__toggle span {
  height: 2px; width: 100%; background: var(--fg);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.topbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
}
.hero__video,
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__media {
  background:
    radial-gradient(120% 90% at 70% 20%, rgba(255,74,28,.20), transparent 55%),
    radial-gradient(90% 80% at 15% 90%, rgba(60,40,120,.28), transparent 60%),
    linear-gradient(160deg, #17110d 0%, #0b0b0c 55%, #0a0a0d 100%);
  display: flex; align-items: center; justify-content: center;
}
.hero__media-note {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.22); font-weight: 600;
}
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,12,.92) 0%, rgba(11,11,12,.25) 45%, transparent 75%);
}
.hero__content { position: relative; z-index: 2; max-width: 1100px; }
.hero__eyebrow {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(64px, 13vw, 200px);
  line-height: .86;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.hero__lead {
  margin-top: 26px;
  max-width: 40ch;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--muted);
}
.hero__lead .accent { color: var(--fg); font-weight: 600; }
.hero__row {
  margin-top: 30px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.reel-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--fg);
  border-radius: 100px;
  font-size: 14px; font-weight: 600;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.reel-btn__play { font-size: 10px; color: var(--accent); transition: color .3s var(--ease); }
.reel-btn:hover { background: var(--accent); border-color: var(--accent); color: #0b0b0c; }
.reel-btn:hover .reel-btn__play { color: #0b0b0c; }
.hero__since {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll {
  position: absolute; right: var(--pad); bottom: var(--pad); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line {
  width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent);
  animation: scrolldrop 2s var(--ease) infinite;
}
@keyframes scrolldrop { 0%{transform:scaleY(0);transform-origin:top} 40%{transform:scaleY(1);transform-origin:top} 60%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(72px, 11vw, 150px) var(--pad); border-top: 1px solid var(--line); }
.section__head { margin-bottom: 44px; }
.section__index {
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 92px);
  line-height: .9;
  text-transform: uppercase;
}

/* ---------- FILTERS ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px;
}
.pill {
  font-family: var(--font-ui);
  font-size: 12.5px; font-weight: 500; letter-spacing: .04em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.pill:hover { color: var(--fg); border-color: var(--muted); }
.pill.is-active { color: #0b0b0c; background: var(--accent); border-color: var(--accent); }

/* ---------- WORK GRID ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;                                   /* edge-to-edge, no borders between videos */
}
.card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background: #000;
}
.card.is-hidden { display: none; }
.card.is-enter { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; } to { opacity: 1; } }

.card__media {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  background-size: cover; background-position: center;
  transition: transform .55s var(--ease);
}
.card__preview {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .18s linear, transform .55s var(--ease);
}
.card__preview.is-ready { opacity: 1; }
.card:hover .card__media,
.card:hover .card__preview { transform: scale(1.045); }

.card__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.5) 45%, transparent 100%);
  pointer-events: none;
}
.card__client {
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.card__title {
  margin-top: 4px;
  font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; color: var(--fg);
  transition: color .25s var(--ease);
}
.card:hover .card__title { color: var(--accent); }
.card__type {
  margin-top: 3px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,241,234,.72);
}
.grid__empty { margin-top: 30px; color: var(--muted); font-size: 15px; }

/* ---------- STILLS ---------- */
/* masonry via CSS columns - each photo keeps its native orientation */
/* even 2x2 quad for the 4-photo gallery (full-bleed, no gaps) */
.stills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.still {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  filter: grayscale(.12);
  transition: filter .5s var(--ease);
}
.still:hover { filter: grayscale(0); }

/* ---------- INFO ---------- */
.info__body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.info__lead {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.3; font-weight: 500; letter-spacing: -.01em;
}
.info__lead em { color: var(--accent); font-style: normal; }
.wink { color: var(--accent); }
.info__text {
  margin-top: 22px; color: var(--muted); font-size: 16px; max-width: 46ch;
}
.services__label {
  margin-top: 44px; margin-bottom: 4px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.services {
  list-style: none; border-top: 1px solid var(--line);
}
.services li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 18px 2px; border-bottom: 1px solid var(--line);
  font-size: clamp(15px, 1.5vw, 18px); font-weight: 500;
  transition: color .3s var(--ease);
}
.services li:hover { color: var(--accent); }
.services li:hover .services__name { padding-right: 4px; }
.services__num {
  color: var(--muted); font-size: 13px; min-width: 30px;
  transition: color .3s var(--ease);
}
.services li:hover .services__num { color: var(--accent); }
.services__name {
  text-align: right;
  transition: padding-right .3s var(--ease);
}
.info__portrait {
  display: block;
  width: 100%;
  height: auto;                 /* keep the photo's natural orientation */
  border-radius: 3px;
  align-self: start;
}

/* ---------- CONTACT ---------- */
.contact { text-align: left; }
.contact__big {
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 168px);
  line-height: .84; text-transform: uppercase; margin: 14px 0 48px;
}
.contact__row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.contact__mail {
  font-size: clamp(20px, 3vw, 34px); font-weight: 600; letter-spacing: -.01em;
  border-bottom: 2px solid transparent; transition: border-color .3s var(--ease), color .3s var(--ease);
}
.contact__mail:hover { color: var(--accent); border-color: var(--accent); }
.contact__socials { display: flex; gap: 26px; }
.contact__socials a {
  font-size: 14px; letter-spacing: .06em; color: var(--muted);
  transition: color .25s var(--ease);
}
.contact__socials a:hover { color: var(--fg); }
.footer {
  margin-top: 30px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-dim);
}
.footer__top { transition: color .25s var(--ease); }
.footer__top:hover { color: var(--accent); }

/* ---------- PLACEHOLDER GRADIENTS (remove when media lands) ---------- */
.ph-1 { background-image: linear-gradient(140deg,#1c2732,#0d1a26 60%,#08131c); }
.ph-2 { background-image: linear-gradient(140deg,#2a1420,#1a0d18 55%,#0d0710); }
.ph-3 { background-image: linear-gradient(140deg,#20242c,#12161c 60%,#0b0e12); }
.ph-4 { background-image: linear-gradient(140deg,#2c1e12,#1c130a 55%,#100a06); }
.ph-5 { background-image: linear-gradient(140deg,#141d1a,#0d1512 60%,#080d0b); }
.ph-6 { background-image: linear-gradient(140deg,#241826,#160f1a 55%,#0c0810); }
.ph-portrait { background-image: linear-gradient(160deg,#241a14,#15100c 60%,#0b0908); }

/* ---------- MOBILE NAV BACKDROP ----------
   the full-screen menu is opaque, so no dim/blur layer is needed;
   the old backdrop sat above the menu and blurred it. */
.nav-backdrop { display: none; }

/* ---------- VIDEO LIGHTBOX ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(6,5,4,.92); backdrop-filter: blur(6px);
  animation: lbFade .25s var(--ease) both;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage {
  width: min(100%, 1100px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lightbox__stage video {
  max-width: 100%; max-height: 82vh;   /* fits landscape (fills width) and vertical (fills height) */
  width: auto; height: auto;
  border-radius: 4px; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__stage video[hidden] { display: none; }
.lightbox__framewrap {
  width: 100%; aspect-ratio: 16 / 9; max-height: 82vh;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox__framewrap[hidden] { display: none; }
.lightbox__framewrap iframe {
  width: 100%; height: 100%; border: 0; border-radius: 4px; background: #000;
}
.lightbox__bar {
  display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%;
}
.lightbox__caption {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  text-align: center;
}
.lightbox__close {
  position: absolute; top: clamp(14px, 3vw, 30px); right: clamp(14px, 3vw, 34px);
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); color: var(--fg);
  font-size: 16px; cursor: pointer; z-index: 3;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.lightbox__close:hover { background: var(--accent); border-color: var(--accent); color: #0b0b0c; }

/* side arrows (desktop) */
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(22,19,16,.55); border: 1px solid var(--line); color: var(--fg);
  font-size: 30px; line-height: 1; padding-bottom: 4px; cursor: pointer; z-index: 3;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.lightbox__arrow--prev { left: clamp(14px, 3vw, 34px); }
.lightbox__arrow--next { right: clamp(14px, 3vw, 34px); }
.lightbox__arrow:hover { background: var(--accent); border-color: var(--accent); color: #0b0b0c; }

/* compact step buttons in the caption bar (mobile) */
.lightbox__step {
  display: none;
  background: transparent; border: 1px solid var(--line); color: var(--fg);
  padding: 8px 15px; border-radius: 100px; font-size: 12px; font-weight: 500;
  font-family: var(--font-ui); white-space: nowrap; cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.lightbox__step:active { border-color: var(--accent); color: var(--accent); }

/* ---------- SERVICES (detailed variant) ---------- */
.services--detailed li { justify-content: flex-start; align-items: flex-start; gap: 20px; }
.services--detailed .services__name {
  text-align: left; flex: 1; display: flex; flex-direction: column; gap: 5px; font-weight: 600;
}
.services--detailed .services__name em {
  font-style: normal; font-weight: 400; font-size: 13px; color: var(--muted); line-height: 1.55;
}
.services--detailed li:hover .services__name { padding-right: 0; }

/* ---------- INFO SIDE (clients + pull quote) ---------- */
.clients { list-style: none; }
.clients li {
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.clients li:first-child { border-top: 1px solid var(--line); }
.clients li strong { display: block; color: var(--fg); font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.pullquote {
  margin-top: 30px; border-left: 2px solid var(--accent); padding: 4px 0 4px 20px;
  font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; color: var(--fg); font-style: italic;
}
.pullquote cite {
  display: block; margin-top: 14px; font-style: normal;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}

/* ---------- EXPERIENCE ---------- */
.exp__list { display: flex; flex-direction: column; gap: 14px; }
.exp__role {
  border: 1px solid var(--line); border-radius: 4px; padding: 22px 24px;
  background: var(--bg-card); transition: border-color .3s var(--ease);
}
.exp__role:hover { border-color: var(--muted-dim); }
.exp__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.exp__title { font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; }
.exp__company { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .04em; margin-top: 4px; }
.exp__meta { color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-top: 9px; }
.exp__summary { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-top: 12px; max-width: 72ch; }
.exp__skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.exp__skills span, .tag-muted {
  font-size: 11px; letter-spacing: .04em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 4px 11px; white-space: nowrap;
}
.tag-muted { text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }

.exp__subhead {
  margin: 52px 0 18px; font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); font-weight: 600;
}
.edu__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.edu__card { border: 1px solid var(--line); border-radius: 4px; padding: 20px; background: var(--bg-card); }
.edu__school { font-weight: 600; font-size: 15px; }
.edu__degree { color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.4; }
.edu__date { color: var(--muted-dim); font-size: 12px; margin-top: 6px; letter-spacing: .05em; }

.now {
  margin-top: 22px; display: flex; align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: 4px; padding: 18px 22px; background: var(--bg-card);
}
.now__icon { font-size: 24px; line-height: 1; }
.now__title { font-weight: 600; font-size: 15px; }
.now__sub { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.5; }

/* ---------- INFO body: statement + side ---------- */
.info__side { align-self: start; }

/* ---------- RECOMMENDATIONS ---------- */
.recs__label { margin-top: 66px; }
.recs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 22px; }
.rec { border: 1px solid var(--line); border-radius: 4px; padding: 26px; background: var(--bg-card); }
.rec__quote { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.rec__person {
  display: flex; align-items: center; gap: 12px; margin-top: 20px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.rec__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rec__person span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); line-height: 1.5; }
.rec__person strong { color: var(--fg); font-size: 14px; font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .info__body { grid-template-columns: 1fr; }
  .info__portrait { max-width: 560px; }
}

@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .topbar { display: flex; }

  /* full-screen overlay menu, top-aligned with big tap targets */
  .sidebar {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    transform: translateX(-100%);
    transition: transform .38s var(--ease);
    border-right: none;
    justify-content: flex-start;
    padding: 96px var(--pad) calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  }
  .sidebar.is-open { transform: none; }
  .sidebar__mark { display: none; }
  .sidebar__cluster { width: 100%; }
  .sidebar__nav { margin-top: 8px; gap: 4px; }
  .sidebar__nav a {
    font-size: 34px; padding: 10px 0; color: var(--fg);
  }
  .sidebar__nav a::after { display: none; }
  .sidebar__nav a.is-current { color: var(--accent); }
  .sidebar__socials { margin-top: 40px; gap: 22px; }
  .sidebar__socials svg { width: 22px; height: 22px; }

  .main { padding-top: 60px; }
  .hero { min-height: 520px; height: calc(100svh - 60px); padding: 26px 22px; }
  .hero__title { font-size: clamp(52px, 17vw, 96px); }
  .hero__scroll { display: none; }

  .section { padding: clamp(56px, 14vw, 90px) 22px; }
  .grid { grid-template-columns: 1fr; gap: 0; }
  .card { aspect-ratio: 16 / 10; }
  .card__caption { padding: 40px 18px 16px; }
  .stills__grid { column-count: 2; column-gap: 0; }
  .edu__grid { grid-template-columns: 1fr; }
  .recs__grid { grid-template-columns: 1fr; }

  .filters { gap: 8px; }
  .pill { font-size: 12px; padding: 8px 15px; }

  .contact__row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .contact__socials { gap: 20px; }

  /* lightbox: swap side arrows for compact step buttons in the bar */
  .lightbox { padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .lightbox__arrow { display: none; }
  .lightbox__step { display: inline-flex; align-items: center; }
  .lightbox__bar { gap: 12px; justify-content: space-between; }
  .lightbox__stage video { max-height: 74vh; }
}

@media (max-width: 420px) {
  .stills__grid { column-count: 1; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
