/* ============================================================
   RIGHT ANGLE STUDIO — design tokens (v2, gallery-light)
   Replicates the spirit of rightangle.studio: a clean, light
   gallery wall where the photographs carry the colour. Palette:
   Paper (gallery white), Ink (text), Silver (captions), and the
   brand red #BC332B from the RK logo for rules and accents.
   Type: Archivo expanded (display) · Spectral (editorial)
   · IBM Plex Mono (EXIF / utility).
   Signature: the 90° viewfinder bracket on every photograph.
   ============================================================ */

:root {
  --paper: #f5f3ed;
  --card: #ffffff;
  --ink: #171410;
  --silver: #7d7669;
  --brand: #bc332b;
  --brand-deep: #9c2a23;
  --line: #ddd7ca;
  --frame-bg: #e8e4d9;

  --font-display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --font-body: "Spectral", Georgia, serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --bracket: 18px;
  --header-h: 4.4rem;
}

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

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brand); color: var(--paper); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--silver);
  text-transform: uppercase;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Photo download protection */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ---------- subtle print-paper grain ---------- */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   SIGNATURE — the viewfinder frame
   ============================================================ */
.frame { position: relative; overflow: hidden; background: var(--frame-bg); }

.frame::before, .frame::after,
.frame .fx-b::before, .frame .fx-b::after {
  content: "";
  position: absolute;
  width: var(--bracket); height: var(--bracket);
  border: 0 solid rgba(245, 243, 237, 0.95);
  z-index: 3;
  transition: width .35s cubic-bezier(.6,0,.2,1), height .35s cubic-bezier(.6,0,.2,1), border-color .35s;
  pointer-events: none;
}
.frame::before        { top: 10px; left: 10px;   border-top-width: 2px; border-left-width: 2px; }
.frame::after         { top: 10px; right: 10px;  border-top-width: 2px; border-right-width: 2px; }
.frame .fx-b::before  { bottom: 10px; left: 10px;  border-bottom-width: 2px; border-left-width: 2px; }
.frame .fx-b::after   { bottom: 10px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; }

.frame:hover::before, .frame:hover::after,
.frame:hover .fx-b::before, .frame:hover .fx-b::after {
  width: calc(var(--bracket) * 1.7);
  height: calc(var(--bracket) * 1.7);
  border-color: var(--brand);
}

.frame img { transition: transform 1.2s cubic-bezier(.2,.8,.2,1), filter .8s; }
.frame:hover img { transform: scale(1.035); }

/* ---------- custom cursor ---------- */
.vf-cursor { display: none; }
@media (pointer: fine) {
  .vf-cursor {
    display: block;
    position: fixed; top: 0; left: 0;
    width: 44px; height: 44px;
    z-index: 1000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .25s, width .3s, height .3s;
  }
  .vf-cursor.is-on { opacity: 1; }
  .vf-cursor.is-big { width: 76px; height: 76px; }
  .vf-corner { position: absolute; width: 10px; height: 10px; border: 0 solid var(--brand); }
  .vf-corner.tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
  .vf-corner.tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
  .vf-corner.bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
  .vf-corner.br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
  .vf-label {
    position: absolute; left: 50%; top: calc(100% + 8px);
    transform: translateX(-50%);
    font-family: var(--font-mono); font-size: .6rem;
    letter-spacing: .1em; color: var(--brand);
    white-space: nowrap;
  }
}

/* ============================================================
   HEADER — clean gallery bar (as on rightangle.studio)
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  background: rgba(245, 243, 237, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex; align-items: center; gap: .75rem;
  text-decoration: none; color: var(--ink);
}
.wordmark-mark { width: auto; height: 2.2rem; }
.wordmark-text {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110;
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: 0.3em;
}
.site-nav { display: flex; gap: 2rem; align-items: center; }
.nav-logo, .nav-num { display: none; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.6,0,.2,1);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { color: var(--brand) !important; }
.nav-toggle { display: none; }

/* ============================================================
   HERO — full-bleed photograph under the gallery bar
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding: 0 var(--gutter) clamp(1.5rem, 4vh, 3rem);
}
.hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media::before { top: calc(var(--header-h) + 14px); left: 22px; }
.hero-media::after  { top: calc(var(--header-h) + 14px); right: 22px; }
.hero-media .fx-b::before { bottom: 22px; left: 22px; }
.hero-media .fx-b::after  { bottom: 22px; right: 22px; }
.hero-media::after, .hero-media::before { --bracket: 26px; }
.hero-media img { filter: brightness(.66) saturate(.96); }
.hero-media .hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(14,12,10,.55) 0%, rgba(14,12,10,0) 45%);
}

.hero-titleblock { position: relative; z-index: 2; color: var(--paper); }
.hero-eyebrow { margin-bottom: 1rem; color: var(--paper); opacity: .8; }
.hero-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  font-size: clamp(3rem, 11.5vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; will-change: transform; }
.line-studio { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.title-glyph {
  color: var(--brand);
  -webkit-text-stroke: 0;
  display: inline-block;
  transform: translateY(-0.06em);
  margin-left: 0.06em;
}
.hero-sub {
  margin-top: 1.4rem;
  max-width: 36ch;
  font-style: italic;
  font-weight: 200;
  opacity: .9;
}
.hero-meta {
  position: absolute;
  top: calc(var(--header-h) + 1.4rem); right: var(--gutter);
  z-index: 2;
  display: grid; gap: .5rem; justify-items: end;
  color: var(--paper);
}
.hero-meta .mono, .hero-meta { color: var(--paper); }
.rec { display: inline-flex; align-items: center; gap: .45em; color: #ff6a5c; }
.rec i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff6a5c;
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.hero-exif:empty { display: none; }
.hero-scroll { opacity: .75; }

/* ============================================================
   SECTION TITLES — with the logo's red rule
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  display: flex; align-items: baseline; gap: 1.2rem;
  position: relative;
  padding-bottom: .45em;
}
.section-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 2.2em; height: 4px;
  background: var(--brand);
}

/* ============================================================
   SELECTED WORK — pinned horizontal gallery
   ============================================================ */
.work { position: relative; }
.work-pin {
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(1rem, 3vh, 2.2rem);
  overflow: hidden;
  padding: calc(var(--header-h) + 1.5rem) 0 2.5rem;
}
.work-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 var(--gutter);
}
.work-count { font-size: .85rem; color: var(--ink); }
.work-count .work-current { color: var(--brand); }

.work-track {
  display: flex; gap: clamp(1rem, 3vw, 3rem);
  padding: 0 var(--gutter);
  will-change: transform;
  width: max-content;
}
.slide {
  flex: 0 0 auto;
  width: clamp(300px, 62vw, 880px);
  cursor: none;
}
.slide .frame { aspect-ratio: 3 / 2; box-shadow: 0 14px 44px -18px rgba(23, 20, 16, 0.35); }
.slide.is-portrait { width: clamp(240px, 34vw, 480px); }
.slide.is-portrait .frame { aspect-ratio: 4 / 5; }
.slide figcaption {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .7rem;
}
.slide .slide-title {
  font-family: var(--font-body); font-style: italic;
  font-size: .95rem; color: var(--ink); letter-spacing: 0; text-transform: none;
}
.work-progress {
  margin: 0 var(--gutter);
  height: 1px; background: var(--line);
  position: relative;
}
.work-progress i {
  position: absolute; left: 0; top: -1px;
  height: 3px; width: 0%;
  background: var(--brand);
}

/* ============================================================
   STATEMENT
   ============================================================ */
.statement {
  padding: clamp(6rem, 16vh, 11rem) var(--gutter);
  display: grid; place-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement-text {
  max-width: 26ch;
  text-align: center;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 200;
  line-height: 1.35;
}
.statement-text em { color: var(--brand); font-style: italic; }
.statement-text .w { display: inline-block; opacity: .16; transition: opacity .4s; }
.statement-text .w.is-lit { opacity: 1; }

/* ============================================================
   KINETIC FRAMES — scroll-velocity driven gallery
   ============================================================ */
.kinetic {
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.kinetic .section-title { color: var(--paper); }
.kinetic .section-title::after { background: var(--brand); }
.kinetic-head {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: flex-end;
  margin-bottom: 1rem;
}
.kinetic-sub {
  max-width: 38ch;
  font-style: italic;
  font-weight: 200;
  color: rgba(245, 243, 237, 0.7);
  margin-bottom: 2.5rem;
}
.kinetic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.kinetic-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  will-change: transform;
  transform-origin: center center;
  cursor: pointer;
}
.kinetic-item::before {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(245, 243, 237, 0.15);
  border-radius: 6px;
  z-index: 2;
  pointer-events: none;
  transition: border-color 0.3s;
}
.kinetic-item:hover::before { border-color: var(--brand); }
.kinetic-item img {
  transform: scale(1.15);
  transition: filter 0.4s;
  filter: saturate(0.9);
}
.kinetic-item:hover img { filter: saturate(1.1); }
.kinetic-item.is-portrait { aspect-ratio: 3 / 4; }
.kinetic-item.is-hidden { display: none; }
.kinetic-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.kinetic-item:hover .kinetic-caption {
  opacity: 1;
  transform: translateY(0);
}
.kinetic-title {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--paper);
}
.kinetic-caption .mono {
  color: rgba(245, 243, 237, 0.7);
  font-size: 0.65rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .kinetic-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .kinetic-grid { grid-template-columns: 1fr; }
  .kinetic-item { aspect-ratio: 16 / 10; }
}

/* ============================================================
   COLLECTIONS — the gallery wall
   ============================================================ */
.collections { padding: clamp(4rem, 10vh, 7rem) var(--gutter); }
.collections-head {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: flex-end;
  margin-bottom: 2.5rem;
}
.filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--silver);
  background: none; border: 1px solid var(--line);
  padding: .55em 1.1em; cursor: pointer;
  text-decoration: none;
  transition: color .3s, border-color .3s, background .3s;
}
.filter:hover { color: var(--ink); border-color: var(--silver); }
.filter.is-active { color: var(--paper); background: var(--brand); border-color: var(--brand); }
.filter-ext { color: var(--brand); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.9rem, 2vw, 1.8rem);
}
.card { grid-column: span 4; cursor: none; }
.card:nth-child(6n+1) { grid-column: span 5; }
.card:nth-child(6n+3) { grid-column: span 3; }
.card:nth-child(6n+5) { grid-column: span 7; }
.card .frame { aspect-ratio: 3/2; box-shadow: 0 10px 34px -16px rgba(23, 20, 16, 0.3); }
.card.is-portrait .frame { aspect-ratio: 4/5; }
.card figcaption {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .6rem;
}
.card .card-title {
  font-family: var(--font-body); font-style: italic;
  font-size: .9rem; color: var(--ink); text-transform: none; letter-spacing: 0;
}
.card.is-hidden { display: none; }

/* ============================================================
   STUDIO
   ============================================================ */
.studio { padding: clamp(4rem, 12vh, 8rem) var(--gutter); border-top: 1px solid var(--line); }
.studio-inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.studio-lede {
  margin: 2rem 0 3rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 200;
  max-width: 46ch;
}
.studio-services { list-style: none; display: grid; gap: 0; }
.studio-services li {
  display: grid; grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.studio-services li:last-child { border-bottom: 1px solid var(--line); }
.studio-services .mono { color: var(--brand); }
.studio-services h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110;
  font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: .04em;
  margin-bottom: .35rem;
}
.studio-services p { color: var(--silver); font-size: .95rem; }
.studio-services a { color: var(--brand); text-decoration: none; border-bottom: 1px solid currentColor; }
.studio-media { position: sticky; top: calc(var(--header-h) + 1.5rem); aspect-ratio: 4/5; box-shadow: 0 14px 44px -18px rgba(23, 20, 16, 0.35); }
.studio-media figcaption {
  position: absolute; bottom: 12px; left: 0; right: 0;
  text-align: center; z-index: 3;
  color: var(--paper); opacity: .9;
}
.studio-media figcaption:empty { display: none; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: clamp(6rem, 16vh, 11rem) var(--gutter);
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact-logo {
  width: clamp(150px, 18vw, 210px);
  height: auto;
  margin: 0 auto clamp(2rem, 5vh, 3rem);
}
.contact-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  font-size: clamp(2.4rem, 8.5vw, 7.5rem);
  line-height: .9;
  text-transform: uppercase;
}
.contact-title .line { display: block; overflow: hidden; }
.contact-title .line > span { display: inline-block; }
.contact-sub {
  margin: 1.8rem auto 2.6rem;
  max-width: 44ch;
  font-style: italic; font-weight: 200; color: var(--silver);
}
.contact-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.contact-cta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: clamp(.8rem, 1.6vw, 1rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 2em;
  transition: background .3s, color .3s, border-color .3s;
}
.contact-cta.primary {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: var(--paper);
}
.contact-cta.primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.contact-cta.secondary {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.contact-cta.secondary:hover { background: var(--ink); color: var(--paper); }
.contact-alt { margin-top: 1.6rem; }

.socials {
  margin-top: clamp(2.2rem, 6vh, 3.4rem);
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: center;
}
.socials a {
  font-family: var(--font-mono); font-size: .7rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--silver); text-decoration: none;
  transition: color .3s;
}
.socials a:hover { color: var(--brand); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; }
.footer-mark { width: 22px; height: auto; opacity: .9; }
.site-footer {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding: 1.8rem var(--gutter);
  border-top: 1px solid var(--line);
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--brand); }

/* ============================================================
   LIGHTBOX — photos view on dark, as in a projection room
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(16, 14, 12, 0.96);
  display: grid; place-items: center;
  padding: clamp(1rem, 5vw, 4rem);
}
.lightbox[hidden] { display: none; }
.lightbox .frame { background: transparent; }
.lightbox-figure { max-width: min(1400px, 92vw); width: 100%; }
.lightbox-figure img { max-height: 78vh; object-fit: contain; }
.lightbox-figure figcaption { text-align: center; padding: .8rem 0; color: #d9d4c8; }
.lightbox-close {
  position: absolute; top: 1.2rem; right: var(--gutter);
  background: none; border: none; color: #f5f3ed;
  cursor: pointer; letter-spacing: .12em;
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase;
}
.lightbox-close:hover { color: #ff6a5c; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid rgba(245,243,237,.3);
  color: #f5f3ed; font-size: 1.1rem;
  width: 3rem; height: 3rem; cursor: pointer;
  transition: border-color .3s, color .3s;
}
.lightbox-nav:hover { color: #ff6a5c; border-color: #ff6a5c; }
.lightbox-nav.prev { left: clamp(.5rem, 2vw, 2rem); }
.lightbox-nav.next { right: clamp(.5rem, 2vw, 2rem); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .studio-inner { grid-template-columns: 1fr; }
  .studio-media { position: static; max-width: 480px; }
  .card, .card:nth-child(6n+1), .card:nth-child(6n+3), .card:nth-child(6n+5) { grid-column: span 6; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.is-open {
    display: flex; flex-direction: column; gap: clamp(1.2rem, 3.5vh, 2rem);
    position: fixed; inset: 0; z-index: 200;
    background: var(--paper);            /* fully opaque — nothing bleeds through */
    align-items: center; justify-content: center;
    padding: 4rem var(--gutter);
  }
  .site-nav.is-open .nav-logo {
    display: block;
    width: clamp(140px, 40vw, 190px); height: auto;
    margin-bottom: clamp(1.2rem, 4vh, 2.4rem);
    animation: menu-in .55s cubic-bezier(.2,.8,.2,1) both;
  }
  .site-nav.is-open a {
    display: inline-flex; align-items: baseline; gap: .8rem;
    font-family: var(--font-display);
    font-variation-settings: "wdth" 115;
    font-weight: 700;
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
    letter-spacing: .05em;
    animation: menu-in .55s cubic-bezier(.2,.8,.2,1) both;
  }
  .site-nav.is-open a:nth-of-type(1) { animation-delay: .06s; }
  .site-nav.is-open a:nth-of-type(2) { animation-delay: .12s; }
  .site-nav.is-open a:nth-of-type(3) { animation-delay: .18s; }
  .site-nav.is-open a:nth-of-type(4) { animation-delay: .24s; }
  .site-nav.is-open .nav-num { display: inline; color: var(--brand); font-size: .65rem; }
  .site-nav.is-open a::after { bottom: -6px; height: 3px; background: var(--brand); }
  @keyframes menu-in {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  body.menu-open { overflow: hidden; }
  body.menu-open::after { display: none; }
  /* backdrop-filter turns the header into the containing block for fixed
     descendants — disable it while the menu is open so the overlay's
     inset:0 resolves against the viewport */
  body.menu-open .site-header { background: var(--paper); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle {
    display: grid; gap: 6px; background: none; border: none;
    padding: .5rem; cursor: pointer; z-index: 300;
  }
  .nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .card, .card:nth-child(6n+1), .card:nth-child(6n+3), .card:nth-child(6n+5) { grid-column: span 12; }
  .hero-meta { display: none; }
  .slide { width: 82vw; }
  .contact-actions { flex-direction: column; align-items: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .work-pin { height: auto; }
  .work-track { overflow-x: auto; width: auto; }
}
