:root {
  --cream: #f7f1e8;
  --cream-deep: #efe6d8;
  --paper: #fbf7f0;
  --ink: #1c1916;
  --ink-soft: #5a524a;
  --gold: #a68b5b;
  --gold-bright: #c4a574;
  --gold-dim: rgba(166, 139, 91, 0.28);
  --teal: #1e3d38;
  --teal-soft: #2a524b;
  --line: rgba(28, 25, 22, 0.1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --nav-h: 4.75rem;
  /* Stable deck height — small viewport (URL bar visible); JS may set --vvh in px */
  --vvh: 100svh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* One offset only — section top meets nav bottom (do not also use scroll-margin) */
  scroll-padding-top: var(--nav-h);
  scroll-snap-type: y mandatory;
  /* No rubber-band past the hero — that peels the veil off the fixed beach */
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Hidden until focused — clip pattern so it has zero footprint and never
   flashes on load. Only a real focus reveals it. */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.6rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  background: var(--gold);
  color: var(--paper);
  z-index: 100;
  font-family: var(--sans);
  font-size: 0.85rem;
  transition: none;
  animation: none;
}

/* ---------- Nav — cream / gold (Movement mock) ---------- */

.site-nav {
  /* Fixed over the hero (opaque cream) — not in document flow */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem clamp(1.2rem, 4vw, 2.75rem);
  background: rgba(251, 247, 240, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex: 1 1 auto;
  min-width: 0;
}

/* Desktop: bar + inline links share one row; hamburger stays hidden */

.brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--gold-dim);
  min-width: 0;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-tag {
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-soft);
  max-width: 16rem;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--gold-dim);
  background: rgba(166, 139, 91, 0.06);
  outline: none;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.site-nav.is-open .nav-toggle-bars {
  background: transparent;
}

.site-nav.is-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-nav.is-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.15rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-menu a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.55rem 0.85rem;
  border: 1px solid transparent;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(166, 139, 91, 0.06);
}

/* ---------- Deck cards — one viewport each ---------- */

.deck {
  display: block;
}

.deck-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  /* vh → dvh → svh → --vvh: prefer small/stable height so URL-bar hide does not reflow mid-swipe */
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  height: calc(var(--vvh) - var(--nav-h));
  max-height: calc(100vh - var(--nav-h));
  max-height: calc(100dvh - var(--nav-h));
  max-height: calc(100svh - var(--nav-h));
  max-height: calc(var(--vvh) - var(--nav-h));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line);
}

/* Home fills the whole screen; opaque nav sits on top of it */
.deck-card.hero {
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  height: var(--vvh);
  max-height: 100vh;
  max-height: 100dvh;
  max-height: 100svh;
  max-height: var(--vvh);
  scroll-margin-top: 0;
  background: transparent;
}

/* Floating arrows hover over the full card (no reserved rails) */
.card-arrow {
  position: absolute;
  left: 50%;
  z-index: 6;
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem;
  transform: translateX(-50%);
  border: none;
  color: var(--ink-soft);
  background: transparent;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.75;
  transition:
    color 0.25s var(--ease),
    opacity 0.25s var(--ease);
}

.card-arrow-prev {
  top: 0.85rem;
}

.card-arrow-next {
  bottom: 0.85rem;
}

.card-arrow:hover,
.card-arrow:focus-visible {
  color: var(--gold);
  opacity: 1;
  outline: none;
}

.card-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.75rem clamp(1.2rem, 4vw, 2.75rem);
  overflow: hidden;
}

.works-toc {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.works-toc a {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border: 1px solid transparent;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.works-toc a:hover,
.works-toc a:focus-visible {
  color: var(--gold);
  border-color: var(--gold-dim);
  background: rgba(166, 139, 91, 0.06);
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  color: var(--ink);
  padding: 0;
  text-align: left;
}

.hero .card-arrow-next {
  top: auto;
  bottom: 0.85rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* Cream → transparent so left type reads; beach photo owns the right */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(251, 247, 240, 0.96) 0%,
    rgba(251, 247, 240, 0.88) 28%,
    rgba(251, 247, 240, 0.45) 48%,
    rgba(251, 247, 240, 0.12) 68%,
    transparent 82%
  );
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(40rem, 92vw);
  width: auto;
  margin: auto 0;
  padding:
    var(--nav-h)
    clamp(1.2rem, 4vw, 2.75rem)
    0;
  animation: rise-in 1s var(--ease) both;
  align-self: flex-start;
  text-align: left;
}

.hero-credit {
  position: absolute;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: 0.85rem;
  z-index: 2;
  margin: 0;
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(28, 25, 22, 0.55);
}

.hero-credit a {
  color: inherit;
  text-underline-offset: 0.15em;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin: 0 0 1.15rem;
  color: var(--ink);
  max-width: 14ch;
}

.lede {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: var(--ink-soft);
  max-width: 22ch;
  margin: 0 0 1.85rem;
  font-weight: 400;
  line-height: 1.45;
}

.lede em {
  font-style: italic;
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  border: 1px solid var(--gold);
  color: var(--ink);
  background: transparent;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(166, 139, 91, 0.12);
  border-color: var(--gold-bright);
  color: var(--gold);
}

.btn-ghost-solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--paper);
}

.btn-ghost-solid:hover,
.btn-ghost-solid:focus-visible {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--ink);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Sections ---------- */

.section-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

/* Opaque cream only — no mesh; works atmosphere stays behind work cards */
.bio {
  background: var(--cream);
}

/* Imaginary vertical divide: headshot centered left, copy left-aligned right */
.bio-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* DOM already places the portrait first, so it occupies the left half */
.bio-copy {
  order: 2;
  min-width: 0;
  max-width: 34rem;
  text-align: left;
  justify-self: start;
  padding-left: clamp(1rem, 3vw, 2rem);
}

.bio-portrait {
  order: 1;
  margin: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Whole frame readable — no cover crop; ~25% larger */
.bio-portrait img {
  width: auto;
  height: auto;
  max-height: min(72vh, 37.5rem);
  max-width: min(25rem, 42vw);
  object-fit: contain;
  border: none;
  box-shadow: 0 22px 48px rgba(28, 25, 22, 0.14);
  display: block;
}

/* Frame options — switch with data-frame on .bio-portrait */
.bio-portrait[data-frame="hairline"] {
  padding: 0.55rem;
  border: 1px solid var(--gold);
  background: var(--paper);
}

.bio-portrait[data-frame="hairline"] img {
  box-shadow: none;
}

/* Double rule hugs the photo: figure shrink-wraps the image (no wide mat),
   slim padding keeps the inner gold rule close to the edges. */
.bio-portrait[data-frame="double"] {
  width: fit-content;
  height: fit-content;
  max-width: 100%;
  justify-self: center;
  align-self: center;
  padding: 0.4rem;
  border: 1px solid var(--gold);
  box-shadow:
    0 22px 48px rgba(28, 25, 22, 0.14),
    inset 0 0 0 1px var(--paper),
    inset 0 0 0 2px var(--gold-dim);
  background: var(--paper);
}

.bio-portrait[data-frame="double"] img {
  box-shadow: none;
}

.bio-portrait[data-frame="corners"] {
  position: relative;
  padding: 0.85rem;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 1.4rem 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 1.4rem no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1.4rem 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1px 1.4rem no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1.4rem 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px 1.4rem no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1.4rem 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 1.4rem no-repeat;
}

.bio-portrait[data-frame="corners"] img {
  box-shadow: none;
}

/* Optional helper ticks (used when capturing the corners variant) */
.bio-frame-tr,
.bio-frame-bl {
  display: none;
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  pointer-events: none;
}

.bio-portrait[data-frame="corners"] .bio-frame-tr,
.bio-portrait[data-frame="corners"] .bio-frame-bl {
  display: block;
}

.bio-frame-tr {
  top: 0;
  right: 0;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

.bio-frame-bl {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.bio-portrait[data-frame="bands"] {
  position: relative;
  padding: 1.25rem 0.45rem;
}

.bio-portrait[data-frame="bands"] img {
  box-shadow: none;
}

.bio-portrait[data-frame="bands"]::before,
.bio-portrait[data-frame="bands"]::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  pointer-events: none;
}

.bio-portrait[data-frame="bands"]::before {
  top: 0.45rem;
}

.bio-portrait[data-frame="bands"]::after {
  bottom: 0.45rem;
}

/* Optional diamond on the top band (used when capturing / switching to bands) */
.bio-band-diamond {
  display: none;
  position: absolute;
  left: 50%;
  top: 0.28rem;
  width: 0.38rem;
  height: 0.38rem;
  transform: translateX(-50%) rotate(45deg);
  background: var(--gold);
  pointer-events: none;
  z-index: 1;
}

.bio-portrait[data-frame="bands"] .bio-band-diamond {
  display: block;
}

/* When no diamond span, mark the top band center with a small CSS diamond */
.bio-portrait[data-frame="bands"]:not(:has(.bio-band-diamond))::before {
  height: 0.38rem;
  top: 0.28rem;
  background:
    linear-gradient(90deg, transparent, var(--gold), transparent),
    linear-gradient(var(--gold), var(--gold));
  background-size: 100% 1px, 0.38rem 0.38rem;
  background-position: center, center;
  background-repeat: no-repeat;
}

.works-head,
.contact-inner {
  width: min(42rem, 100%);
}

/* Selected Works — centered index (no cover collage) */
.works .card-body {
  align-items: center;
}

.works-head {
  margin-inline: auto;
  text-align: center;
}

.works-toc {
  justify-items: center;
}

/* Connect — center the form block; pin footer to the card bottom */
.contact .card-body {
  align-items: center;
  justify-content: flex-start;
}

.contact-inner {
  margin-block: auto;
  margin-inline: auto;
  text-align: center;
}

/* Contact rows use a shared two-column grid below */

.contact-form {
  margin-inline: auto;
}

.contact-form .btn-ghost {
  justify-self: center;
}

.contact .site-footer-in-card {
  width: 100%;
  align-self: stretch;
  margin-top: 0;
}

.bio h2,
.works-head h2,
.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.bio-text {
  font-size: 1.1rem;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38rem;
}

.bio-note {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(90, 82, 74, 0.7);
  font-style: italic;
}

/* ---------- Works ---------- */

/* Work cards are transparent so the mesh shows through */
.work-card {
  background: transparent;
}

.works {
  background: var(--cream);
}

.work-atmosphere {
  isolation: isolate;
  /* Clip fixed meshes to this card’s box (desktop viewport-locked wash). */
  clip-path: inset(0);
}

/* Keep arrows absolute; content rides above the card’s own mesh */
.work-atmosphere > *:not(.card-arrow):not(.media-drawer):not(.work-mesh) {
  position: relative;
  z-index: 1;
}

/*
 * Desktop: mesh is fixed to the viewport, clipped by the card — content
 * scrolls/snaps over a still wash. Mobile overrides to absolute (below).
 */
.work-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Soul — parchment gold, terracotta, and berry from the cover art */
[data-atmosphere-layer="soul"] {
  background:
    radial-gradient(ellipse 82% 66% at 88% 4%, rgba(250, 236, 138, 0.41), transparent 60%),
    radial-gradient(ellipse 76% 62% at 4% 102%, rgba(170, 93, 102, 0.34), transparent 62%),
    radial-gradient(ellipse 52% 44% at 48% 50%, rgba(205, 151, 120, 0.31), transparent 68%),
    linear-gradient(155deg, #fffaf0 0%, #f8edda 48%, #eed9cf 100%);
}

/* Home — cool indigo, frame blue, and teal from the stage recording */
[data-atmosphere-layer="home"] {
  background:
    radial-gradient(ellipse 86% 68% at 84% 0%, rgba(110, 156, 205, 0.43), transparent 60%),
    radial-gradient(ellipse 78% 64% at 2% 102%, rgba(57, 78, 123, 0.37), transparent 62%),
    radial-gradient(ellipse 54% 44% at 54% 52%, rgba(78, 148, 153, 0.29), transparent 68%),
    linear-gradient(158deg, #f4f8fb 0%, #dfeaf2 48%, #cbdfe8 100%);
}

/* Voice — sea-glass greens and pale mineral neutrals from the artwork */
[data-atmosphere-layer="voice"] {
  background:
    radial-gradient(ellipse 84% 66% at 90% 4%, rgba(115, 171, 164, 0.41), transparent 60%),
    radial-gradient(ellipse 80% 66% at 4% 102%, rgba(82, 125, 117, 0.33), transparent 62%),
    radial-gradient(ellipse 52% 44% at 46% 50%, rgba(162, 200, 192, 0.36), transparent 68%),
    linear-gradient(155deg, #f8f7f0 0%, #e7efea 48%, #d6e7e2 100%);
}

.work-atmosphere .media-drawer-shelf {
  box-shadow:
    0 32px 64px rgba(28, 25, 22, 0.28),
    0 12px 28px rgba(28, 25, 22, 0.14),
    inset 0 0 0 1px var(--paper),
    inset 0 0 0 3px var(--gold-dim);
}

.works-lede {
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 38ch;
  font-size: 1.15rem;
}

.work-card .card-body {
  justify-content: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.work-card[data-stagger="content-left"] .card-body {
  align-items: flex-start;
}

.work-card[data-stagger="content-right"] .card-body {
  align-items: flex-end;
}

.work {
  display: block;
  padding: 0;
  /* Stay in the copy half — leave a clear gutter before the media stage */
  max-width: min(34rem, 42vw);
  width: 100%;
  margin-inline: 0;
  min-height: 0;
  text-align: left;
}

.work-card[data-stagger="content-right"] .work {
  margin-inline: 0 0 0 auto;
}

.work-body {
  width: 100%;
  max-width: 40rem;
}

.work-index {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  margin: 0 0 0.25rem;
}

.work h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 0 0 0.2rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.work-meta {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-body > p {
  color: var(--ink-soft);
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
}

.work-body > p:last-child {
  margin-bottom: 0;
}

/* ---------- Media stage — framed, centered on the media half ---------- */

.media-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  max-width: none;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  overflow: visible;
  pointer-events: none;
  box-sizing: border-box;
}

.media-drawer[data-edge="right"] {
  right: 0;
  left: auto;
}

.media-drawer[data-edge="left"] {
  left: 0;
  right: auto;
}

/* Double gold frame + drop shadow — same language as About portrait */
.media-drawer-shelf {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.55rem;
  pointer-events: auto;
  border: 1px solid var(--gold);
  background: var(--paper);
  box-shadow:
    0 32px 64px rgba(28, 25, 22, 0.28),
    0 12px 28px rgba(28, 25, 22, 0.14),
    inset 0 0 0 1px var(--paper),
    inset 0 0 0 3px var(--gold-dim);
}

.media-art {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  border: none;
  background: var(--paper);
  overflow: hidden;
  box-shadow: none;
}

.media-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-drawer-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(251, 247, 240, 0.97);
  border: none;
  box-shadow: none;
}

/*
 * Audio cards: portrait — cover on top, controls below.
 * Sized to keep a gutter from the copy; shrinks with the media half.
 */
.media-drawer:not(.media-drawer--video) .media-drawer-shelf {
  width: min(100%, 32vw, 22rem);
  max-width: min(100%, 32vw, 22rem);
  max-height: min(78dvh, 40rem);
  box-sizing: border-box;
}

.media-drawer:not(.media-drawer--video) .media-art {
  order: -1;
  width: min(100%, 40vh, 18rem);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  align-self: center;
}

.media-drawer:not(.media-drawer--video) .media-drawer-panel {
  width: 100%;
  flex: 0 0 auto;
  padding: 1.15rem 1.25rem 1.35rem;
  border-top: 1px solid var(--gold-dim);
  box-sizing: border-box;
}

.media-drawer:not(.media-drawer--video) .ws-wave {
  min-height: 3.25rem;
}

/* Video stays landscape — never wider than the padded media half */
.media-drawer-panel--video {
  width: 100%;
  padding: 0.55rem;
  box-sizing: border-box;
}

.media-drawer--video .media-drawer-shelf--video-only {
  width: min(100%, 40vw, 36rem);
  max-width: min(100%, 40vw, 36rem);
  box-sizing: border-box;
}

.media-drawer--video .media-drawer-panel--video {
  width: 100%;
  border: none;
}

.media-drawer--video .embed-frame video {
  max-height: min(48vh, 28rem);
}

.embed-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  background: #1c1916;
  overflow: hidden;
  border: 1px solid var(--line);
  box-sizing: border-box;
}

/* In-flow video so native controls map hit-targets correctly (absolute fill breaks scrubbing). */
.embed-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(48vh, 28rem);
  border: 0;
  object-fit: contain;
  background: #1c1916;
  /* Keep deck scroll-snap from stealing horizontal scrub gestures */
  touch-action: none;
}

.audio-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
}

.audio-player {
  width: 100%;
  margin-top: 0.15rem;
  accent-color: var(--gold);
}

/* WaveSurfer trial players */
.ws-player {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
  width: 100%;
  padding-inline: 0.35rem;
  box-sizing: border-box;
}

.ws-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ws-play {
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  min-width: 4.5rem;
}

.ws-play:disabled {
  opacity: 0.45;
  cursor: wait;
}

.ws-play[aria-pressed="true"] {
  background: var(--gold);
  color: var(--paper);
}

.ws-time {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.ws-wave {
  width: 100%;
  min-height: 48px;
  touch-action: none;
  cursor: pointer;
}

/* Plyr — unmistakably branded (not native Chrome chrome) */
.embed-frame {
  border: 1px solid var(--gold-dim);
  background: var(--paper);
  overflow: hidden;
}

.embed-frame .plyr {
  --plyr-color-main: var(--gold);
  --plyr-video-background: #1c1916;
  --plyr-video-control-color: var(--ink);
  --plyr-video-control-color-hover: var(--ink);
  --plyr-audio-control-color: var(--ink);
  --plyr-range-fill-background: var(--gold);
  --plyr-range-thumb-background: var(--gold);
  --plyr-range-track-height: 4px;
  --plyr-video-progress-buffered-background: rgba(166, 139, 91, 0.28);
  --plyr-control-spacing: 12px;
  --plyr-control-icon-size: 16px;
  --plyr-font-family: var(--sans);
  --plyr-font-size-small: 0.72rem;
  --plyr-font-size-time: 0.72rem;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Plyr DOM puts controls before the video wrapper — force bar below the picture */
.embed-frame .plyr__video-wrapper {
  order: 1;
  background: #1c1916;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.embed-frame .plyr__captions {
  order: 1;
}

.embed-frame .plyr__control--overlaid {
  order: 1;
}

.embed-frame .plyr video {
  max-height: min(42vh, 24rem);
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Cream control bar BELOW the video frame */
.embed-frame .plyr--video .plyr__controls {
  order: 2;
  position: static;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.15rem;
  background: rgba(251, 247, 240, 0.98);
  border-top: 1px solid var(--gold-dim);
  padding: 0.55rem 0.75rem;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.embed-frame .plyr--video .plyr__controls .plyr__controls__item {
  flex: 0 0 auto;
}

.embed-frame .plyr--video .plyr__controls .plyr__progress__container {
  flex: 1 1 0;
  min-width: 4rem;
}

.embed-frame .plyr--video .plyr__controls .plyr__progress {
  width: 100%;
  min-width: 0;
}

.embed-frame .plyr__volume {
  max-width: 5.5rem;
  min-width: 0;
}

.embed-frame .plyr__volume input[type="range"] {
  max-width: 3rem;
}

.embed-frame .plyr--video.plyr--hide-controls .plyr__controls {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto;
}

.embed-frame .plyr--video .plyr__controls .plyr__control {
  color: var(--ink);
}

.embed-frame .plyr--video .plyr__controls .plyr__control:hover,
.embed-frame .plyr--video .plyr__controls .plyr__control[aria-expanded="true"] {
  background: rgba(166, 139, 91, 0.18);
  color: var(--ink);
}

.embed-frame .plyr--video .plyr__progress__buffer {
  color: rgba(166, 139, 91, 0.35);
}

.embed-frame .plyr--video .plyr__time {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.embed-frame .plyr--full-ui.plyr--video .plyr__control--overlaid {
  background: var(--gold);
  color: #1c1916;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 28px rgba(28, 25, 22, 0.35);
  padding: 1.15rem;
}

.embed-frame .plyr--full-ui.plyr--video .plyr__control--overlaid:hover {
  background: #b8975f;
}

.embed-frame .plyr--full-ui.plyr--video .plyr__control--overlaid svg {
  width: 22px;
  height: 22px;
}

/* True fullscreen: lift the card-height cap so the picture can fill the screen */
.embed-frame .plyr.plyr--fullscreen-active,
.embed-frame .plyr:fullscreen,
.embed-frame .plyr:-webkit-full-screen {
  max-height: none;
  width: 100%;
  height: 100%;
  background: #000;
}

.embed-frame .plyr.plyr--fullscreen-active .plyr__video-wrapper,
.embed-frame .plyr:fullscreen .plyr__video-wrapper,
.embed-frame .plyr:-webkit-full-screen .plyr__video-wrapper {
  flex: 1 1 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.embed-frame .plyr.plyr--fullscreen-active video,
.embed-frame .plyr:fullscreen video,
.embed-frame .plyr:-webkit-full-screen video {
  max-height: none;
  width: 100%;
  height: 100%;
  object-fit: contain; /* letterbox, don't stretch 720p into a smear */
}

.embed-frame .plyr.plyr--fullscreen-active .plyr__controls,
.embed-frame .plyr:fullscreen .plyr__controls,
.embed-frame .plyr:-webkit-full-screen .plyr__controls {
  background: rgba(28, 25, 22, 0.92);
  border-top-color: rgba(166, 139, 91, 0.45);
  color: #fbf7f0;
}

.embed-frame .plyr.plyr--fullscreen-active .plyr__controls .plyr__control,
.embed-frame .plyr:fullscreen .plyr__controls .plyr__control,
.embed-frame .plyr:-webkit-full-screen .plyr__controls .plyr__control {
  color: #fbf7f0;
}

.embed-frame .plyr.plyr--fullscreen-active .plyr__time,
.embed-frame .plyr:fullscreen .plyr__time,
.embed-frame .plyr:-webkit-full-screen .plyr__time {
  color: rgba(251, 247, 240, 0.75);
}

/* ---------- Contact / footer ---------- */

.contact {
  background: var(--cream);
}

.contact-lede {
  color: var(--ink-soft);
  font-size: 1.15rem;
  margin: 0 0 1.5rem;
}

.contact-list {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: max-content auto;
  column-gap: 0.75rem;
  row-gap: 0.65rem;
  justify-content: center;
  justify-items: start;
  align-items: baseline;
  text-align: left;
}

.contact-list li {
  display: contents;
}

.contact-k {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 0;
}

.contact-list a {
  color: var(--ink);
  text-underline-offset: 0.2em;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--gold-dim);
  padding: 0.8rem 0.95rem;
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}

.contact-form .btn-ghost {
  cursor: pointer;
}

.form-note {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(90, 82, 74, 0.7);
  line-height: 1.45;
}

.form-note a {
  color: var(--gold);
  text-underline-offset: 0.15em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer,
.site-footer-in-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  padding: 1.75rem 0 0.5rem;
  margin-top: 1.75rem;
  background: transparent;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.footer-brand .brand-name {
  margin: 0 0 0.55rem;
  color: var(--gold);
}

.footer-tagline {
  margin: 0;
  max-width: 28ch;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
}

.footer-copy {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Mid desktop: keep a real gutter between copy and framed media */
@media (max-width: 1200px) {
  .work {
    max-width: min(30rem, 38vw);
  }

  .media-drawer:not(.media-drawer--video) .media-drawer-shelf {
    width: min(100%, 30vw, 20rem);
    max-width: min(100%, 30vw, 20rem);
  }

  .media-drawer:not(.media-drawer--video) .media-art {
    width: min(100%, 38vh, 17rem);
  }

  .media-drawer--video .media-drawer-shelf--video-only {
    width: min(100%, 36vw, 30rem);
    max-width: min(100%, 36vw, 30rem);
  }

  .embed-frame .plyr video,
  .media-drawer--video .embed-frame video {
    max-height: min(40vh, 20rem);
  }

  /* Volume slider fights the scrubber on narrowed video shelves */
  .embed-frame .plyr__volume input[type="range"] {
    display: none !important;
  }
}

@media (max-width: 900px) {
  /*
   * Mobile: each section is locked to the viewport height captured at load
   * (--vvh), but scrolling is free (no snap). ↑/↓ arrows stay hidden.
   */
  html {
    scroll-snap-type: none;
  }

  .deck-card {
    height: calc(var(--vvh) - var(--nav-h));
    max-height: calc(var(--vvh) - var(--nav-h));
    min-height: calc(var(--vvh) - var(--nav-h));
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    overflow: hidden;
  }

  .deck-card.hero {
    height: var(--vvh);
    max-height: var(--vvh);
    min-height: var(--vvh);
  }

  .card-arrow {
    display: none;
  }

  .work-card {
    overflow: hidden;
  }

  /*
   * Mobile: lock each palette to its section (no viewport-fixed wash).
   * Absolute fill scrolls with the card; hard edge at the section barrier.
   */
  .work-atmosphere {
    clip-path: none;
  }

  .work-mesh {
    position: absolute;
    inset: 0;
  }

  .hero-veil {
    background: linear-gradient(
      180deg,
      rgba(251, 247, 240, 0.55) 0%,
      rgba(251, 247, 240, 0.35) 22%,
      rgba(251, 247, 240, 0.72) 52%,
      rgba(251, 247, 240, 0.94) 78%,
      rgba(251, 247, 240, 0.98) 100%
    );
  }

  .hero-copy {
    margin-top: auto;
    margin-bottom: 4.25rem;
    padding-top: 0;
    max-width: min(40rem, 92vw);
  }

  .hero h1 {
    max-width: none;
  }

  /* Bottom-right under the CTA stack, clear of Connect + centered ↓ */
  .hero-credit {
    left: auto;
    right: clamp(0.85rem, 3.5vw, 1.5rem);
    bottom: 0.55rem;
    transform: none;
    text-align: right;
    max-width: 42vw;
  }

  /* Stagger collapses to stacked */
  .work-card[data-stagger="content-left"] .card-body,
  .work-card[data-stagger="content-right"] .card-body {
    align-items: stretch;
  }

  .work,
  .work-card[data-stagger="content-right"] .work {
    max-width: min(40rem, 92vw);
    margin-inline: 0;
  }

  .work h3 {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  }

  .work-body > p {
    margin-bottom: 0.45rem;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .work-meta {
    margin-bottom: 0.45rem;
  }

  /* Framed media stage — in-flow under copy; one viewport, no inner scroll */
  .media-drawer {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    overflow: visible;
    padding: 1rem clamp(1rem, 4vw, 2rem) 2.5rem;
    flex: 0 0 auto;
    pointer-events: auto;
  }

  .media-drawer[data-edge="right"],
  .media-drawer[data-edge="left"] {
    left: auto;
    right: auto;
  }

  .media-drawer-shelf {
    max-height: none;
    margin-inline: auto;
  }

  /*
   * Landscape audio: art left, controls right — short enough to fit one card
   * with copy + floating arrows (no overflow:auto trap).
   */
  .media-drawer:not(.media-drawer--video) .media-drawer-shelf {
    flex-direction: row;
    align-items: stretch;
    width: min(100%, 34rem);
    max-width: 100%;
    max-height: 10rem;
    padding: 0.35rem;
  }

  .media-drawer:not(.media-drawer--video) .media-art {
    order: -1;
    flex: 0 0 auto;
    width: auto;
    height: 100%;
    max-height: 10rem;
    aspect-ratio: 1;
    align-self: stretch;
  }

  .media-drawer:not(.media-drawer--video) .media-art img {
    width: auto;
    height: 100%;
    max-height: 10rem;
    aspect-ratio: 1;
    object-fit: cover;
  }

  .media-drawer:not(.media-drawer--video) .media-drawer-panel {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.75rem 0.65rem;
    border-top: none;
    border-left: 1px solid var(--gold-dim);
  }

  .media-drawer:not(.media-drawer--video) .audio-title {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .media-drawer:not(.media-drawer--video) .ws-player {
    margin-top: 0.15rem;
    gap: 0.35rem;
    padding-inline: 0;
  }

  .media-drawer:not(.media-drawer--video) .ws-wave {
    min-height: 2rem;
  }

  .media-drawer:not(.media-drawer--video) .ws-play {
    padding: 0.35rem 0.7rem;
    font-size: 0.65rem;
  }

  .media-drawer--video .media-drawer-shelf--video-only {
    width: 100%;
    max-width: 100%;
  }

  .media-drawer--video .media-drawer-panel--video {
    width: 100%;
    padding: 0.35rem;
  }

  .media-drawer--video .embed-frame video,
  .embed-frame video,
  .embed-frame .plyr video {
    max-height: 14rem;
  }

  /* Keep scrubber usable — mute only below tablet; volume slider eats the bar */
  .embed-frame .plyr {
    --plyr-control-spacing: 6px;
    --plyr-control-icon-size: 14px;
    --plyr-font-size-time: 0.65rem;
    --plyr-range-track-height: 3px;
  }

  .embed-frame .plyr--video .plyr__controls {
    padding: 0.4rem 0.45rem;
  }

  .embed-frame .plyr__volume input[type="range"] {
    display: none !important;
  }

  .embed-frame .plyr__volume {
    max-width: none;
    min-width: 0;
  }

  /* Fit work content inside the locked viewport card */
  .work-card {
    overflow: hidden;
  }

  .work-card .card-body {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 2.15rem;
    padding-bottom: 0.35rem;
    justify-content: center;
  }

  /* Stack + center the About composition on mobile only.
     Photo flex-fills leftover space inside the locked card; copy stays natural height. */
  .bio .card-body.bio-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    justify-content: flex-start;
    justify-items: stretch;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.75rem;
    padding-bottom: 1.1rem;
    text-align: center;
    grid-template-columns: none;
  }

  .bio-copy {
    order: 2;
    flex: 0 1 auto;
    min-height: 0;
    max-width: min(34rem, 92vw);
    padding-left: 0;
    justify-self: center;
    text-align: center;
  }

  .bio .section-label {
    margin-bottom: 0.4rem;
  }

  .bio h2 {
    font-size: clamp(1.45rem, 6.2vw, 1.85rem);
    margin-bottom: 0.55rem;
  }

  .bio-portrait {
    order: 1;
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    justify-content: center;
    align-self: stretch;
  }

  .bio-portrait[data-frame="double"] {
    /* Override desktop fit-content so flex can assign a real height */
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: none;
    margin-inline: auto;
    box-sizing: border-box;
  }

  .bio-portrait img {
    max-height: 100%;
    max-width: min(18rem, 72vw);
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .bio-text {
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: center;
  }

  .card-body {
    justify-content: flex-end;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .works .card-body {
    justify-content: center;
    align-items: center;
  }

  .contact .card-body {
    align-items: center;
  }
}

@media (max-width: 820px) {
  /* Thin single-row bar: brand left, hamburger right — no stacked two-row nav */
  .site-nav {
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 1.5rem);
  }

  .site-nav-bar {
    flex: 1 1 auto;
    width: 100%;
    gap: 0.75rem;
  }

  .brand {
    border-right: none;
    border-bottom: none;
    padding-right: 0;
    padding-bottom: 0;
    width: auto;
    gap: 0.15rem;
  }

  .brand-name {
    font-size: 1.05rem;
    letter-spacing: 0.12em;
  }

  .brand-tag {
    font-size: 0.72rem;
    max-width: 12.5rem;
    line-height: 1.2;
  }

  .nav-toggle {
    display: inline-flex;
  }

  /* Dropdown panel — absolute so open state does not inflate --nav-h */
  .site-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: clamp(1rem, 4vw, 1.5rem);
    left: auto;
    z-index: 41;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.15rem;
    min-width: 11.5rem;
    padding: 0.55rem 0.35rem;
    background: rgba(251, 247, 240, 0.98);
    border: 1px solid var(--gold-dim);
    box-shadow: 0 12px 28px rgba(28, 25, 22, 0.1);
    font-size: 0.58rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.4rem);
    transition:
      opacity 0.28s var(--ease),
      transform 0.28s var(--ease),
      visibility 0.28s;
  }

  .site-nav.is-open .site-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-menu a {
    width: 100%;
    text-align: right;
    padding: 0.65rem 0.9rem;
  }

  .audio-title {
    font-size: 1.15rem;
  }
}

/* Phones: compact chrome; keep landscape audio, scrubber keeps free width */
@media (max-width: 520px) {
  .embed-frame .plyr--video .plyr__controls {
    padding: 0.35rem 0.4rem;
  }

  .embed-frame .plyr--video .plyr__controls .plyr__progress__container {
    min-width: 5rem;
  }

  .media-drawer:not(.media-drawer--video) .media-drawer-shelf {
    width: 100%;
    max-width: 100%;
    max-height: 9.5rem;
  }

  .media-drawer:not(.media-drawer--video) .media-art,
  .media-drawer:not(.media-drawer--video) .media-art img {
    max-height: 9.5rem;
  }

  .media-drawer:not(.media-drawer--video) .media-drawer-panel {
    padding: 0.45rem 0.55rem 0.55rem;
  }

  .media-drawer:not(.media-drawer--video) .audio-title {
    font-size: 0.95rem;
  }

  .audio-title {
    font-size: 1.02rem;
  }
}

@media (max-width: 820px) and (prefers-reduced-motion: reduce) {
  .site-menu {
    transition: none;
    transform: none;
  }
}

/* Short-phone tightenings live in the main max-width: 900px block — do not
   gate on max-height (URL bar show/hide would flip the whole stylesheet). */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .hero-copy,
  .work {
    animation: none !important;
    transition: none !important;
  }

  .media-drawer-shelf {
    transition: none;
  }

}
