/* ============================================================
   HANNAH JEW 周健倫 · hannahcjew.com
   Design system: ink black / warm paper white / seal-stamp red
   Type: Cormorant Garamond (display serif) · Manrope (UI/body)
         Noto Serif TC (Chinese)
   ============================================================ */

:root {
  --ink: #0d0d0d;
  --ink-rgb: 13 13 13;
  --ink-soft: #2a2a2a;
  --paper: #f6f4f0;
  --paper-rgb: 246 244 240;
  --paper-dim: #ece9e3;
  --red: #d7281c;          /* vermillion, Chinese seal-paste red */
  --red-deep: #b01f15;
  --grey: #8a877f;
  --line: rgb(var(--ink-rgb) / 0.14);

  --font-display: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
  --font-ui: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --sans: var(--font-ui);
  --font-tc: "Noto Serif TC", "Songti TC", "SimSun", serif;

  --nav-h: 48px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-body: 1.0625rem;
  --text-h2: clamp(1.35rem, 2.2vw, 1.8rem);
  --text-h1: clamp(1.85rem, 3.4vw, 2.75rem);
  --text-display: clamp(2.4rem, 6.4vw, 5rem);
  --ls-label: 0.12em;
}

/* ============================================================
   THEMES
   Five looks, all switchable from the dropdown in the nav.
   The default is set in assets/js/config.js.
   1. seal      · paper white / ink / vermillion (the original)
   2. noir      · ink black stage, paper text, red spotlight
   3. porcelain · gallery white with cobalt blue (Chinese porcelain)
   4. crimson   · deep red curtain, gold-cream text
   5. jade      · soft celadon paper with deep jade green
   ============================================================ */

[data-theme="noir"] {
  --ink: #f2efe9;
  --ink-rgb: 242 239 233;
  --ink-soft: #c9c5bd;
  --paper: #0e0d0c;
  --paper-rgb: 14 13 12;
  --paper-dim: #191715;
  --red: #ff3b2e;
  --red-deep: #d7281c;
  --grey: #7d7a73;
  --line: rgb(var(--ink-rgb) / 0.16);
}

[data-theme="porcelain"] {
  --ink: #101728;
  --ink-rgb: 16 23 40;
  --ink-soft: #33405c;
  --paper: #f5f7fa;
  --paper-rgb: 245 247 250;
  --paper-dim: #e8edf4;
  --red: #1b4fd8;
  --red-deep: #143ca8;
  --grey: #828b9c;
  --line: rgb(var(--ink-rgb) / 0.13);
}

[data-theme="crimson"] {
  --ink: #f7ead8;
  --ink-rgb: 247 234 216;
  --ink-soft: #d9c6ae;
  --paper: #2a0705;
  --paper-rgb: 42 7 5;
  --paper-dim: #3a0f0c;
  --red: #ff4a3d;
  --red-deep: #e03325;
  --grey: #a08672;
  --line: rgb(var(--ink-rgb) / 0.18);
}

[data-theme="jade"] {
  --ink: #12241c;
  --ink-rgb: 18 36 28;
  --ink-soft: #33503f;
  --paper: #eff3ec;
  --paper-rgb: 239 243 236;
  --paper-dim: #e2e9dd;
  --red: #0e7a4f;
  --red-deep: #0a5c3b;
  --grey: #7f8f82;
  --line: rgb(var(--ink-rgb) / 0.14);
}

/* ------------------------------------------------------------
   THEME AMBIENCE
   Each theme gets its own living background layer:
   noir      · a stage spotlight that follows the cursor
   porcelain · slow-drifting pools of blue light
   crimson   · a silky sheen sweeping across the curtain
   jade      · soft mist breathing across the page
   ------------------------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  pointer-events: none;
  z-index: 8990;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}

[data-theme="noir"] body::before {
  inset: 0; /* spotlight tracks the cursor in viewport coordinates */
  opacity: 1;
  background: radial-gradient(
    46rem circle at var(--mx, 50%) var(--my, 30%),
    rgb(255 233 195 / 0.11),
    rgb(255 233 195 / 0.04) 42%,
    transparent 68%
  );
  mix-blend-mode: screen;
}

[data-theme="porcelain"] body::before {
  opacity: 1;
  background:
    radial-gradient(40rem 26rem at 16% 22%, rgb(27 79 216 / 0.08), transparent 68%),
    radial-gradient(46rem 30rem at 86% 74%, rgb(27 79 216 / 0.06), transparent 68%);
  animation: ambientDrift 24s ease-in-out infinite alternate;
}

[data-theme="crimson"] body::before {
  opacity: 1;
  background: linear-gradient(
    105deg,
    transparent 32%,
    rgb(255 170 110 / 0.10) 46%,
    rgb(255 170 110 / 0.04) 52%,
    transparent 64%
  );
  background-size: 280% 100%;
  animation: ambientSheen 10s ease-in-out infinite;
}

[data-theme="jade"] body::before {
  opacity: 1;
  background:
    radial-gradient(44rem 26rem at 24% 78%, rgb(14 122 79 / 0.08), transparent 70%),
    radial-gradient(38rem 24rem at 80% 18%, rgb(14 122 79 / 0.05), transparent 70%);
  animation: ambientDrift 30s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  to { transform: translate3d(4%, -3%, 0) scale(1.08); }
}
@keyframes ambientSheen {
  0% { background-position: 130% 0; }
  60% { background-position: -30% 0; }
  100% { background-position: -30% 0; }
}

/* theme-change sweep: view transition circle reveal */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
/* fallback crossfade for browsers without view transitions */
html.theme-fading,
html.theme-fading * {
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out),
    border-color 0.6s var(--ease-out) !important;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-optical-sizing: auto; }
body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

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

/* subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.05;
  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='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- seal stamp (logo) ---------- */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-tc);
  font-weight: 700;
  writing-mode: vertical-rl;
  letter-spacing: 0.18em;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.25) inset, 0 0 0 1.5px var(--red);
  outline: 1px solid transparent;
  user-select: none;
  line-height: 1;
}
.seal--nav {
  font-size: 0.78rem;
  padding: 0.5em 0.32em;
  transform: rotate(0.001deg);
}
.seal--hero {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  padding: 0.65em 0.4em;
  transform: none;
  animation: sealStamp 1s 1.15s var(--ease-out) both;
}
@keyframes sealStamp {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: none; }
}
.seal--footer { font-size: 0.9rem; padding: 0.6em 0.38em; }

/* ---------- navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
/* the blur lives on a pseudo-element: backdrop-filter on the nav
   itself would trap the fixed fullscreen mobile menu inside the bar */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(var(--paper-rgb) / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.nav__brand .zh {
  font-family: var(--font-tc);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.nav__links {
  display: flex;
  gap: clamp(0.85rem, 2vw, 1.7rem);
  align-items: center;
}
.nav__links a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  position: relative;
  padding: 0.2em 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--red); }

.nav__toggle {
  display: none;
  z-index: 1102;
  width: 32px; height: 32px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.nav__toggle span:nth-child(1) { top: 8px; }
.nav__toggle span:nth-child(2) { top: 15px; }
.nav__toggle span:nth-child(3) { top: 22px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  /* the mobile menu becomes a playbill of its own:
     numbered italic serif entries rising in one after another,
     with the Chinese name watermarked down the right edge */
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1100;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.3rem;
    padding-left: clamp(2rem, 10vw, 4rem);
    background: var(--ink);
    color: var(--paper);
    /* circular wipe out of the hamburger corner */
    clip-path: circle(0px at calc(100% - 40px) 38px);
    pointer-events: none;
    transition: clip-path 0.65s var(--ease-out);
  }
  .nav__links.is-open {
    clip-path: circle(150% at calc(100% - 40px) 38px);
    pointer-events: auto;
  }
  .nav__links a {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.55rem, 5.5vw, 2.05rem);
    letter-spacing: 0.01em;
    text-transform: none;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }
  .nav__links a::after { height: 2px; bottom: 0.06em; }
  .nav__links.is-open a { opacity: 1; transform: none; }
  .nav__links.is-open a:nth-child(1) { transition-delay: 0.08s; }
  .nav__links.is-open a:nth-child(2) { transition-delay: 0.15s; }
  .nav__links.is-open a:nth-child(3) { transition-delay: 0.22s; }
  .nav__links.is-open a:nth-child(4) { transition-delay: 0.29s; }
  .nav__links.is-open a:nth-child(5) { transition-delay: 0.36s; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav__toggle { color: var(--paper); }
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto; /* name block takes the space, ticker pins to the bottom edge */
  overflow: hidden;
  background: var(--paper);
}
.hero__img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: heroReveal 1.5s var(--ease-out) both;
}
@keyframes heroReveal {
  from { opacity: 0; clip-path: inset(0 0 14% 0); }
  to { opacity: 1; clip-path: inset(0 0 0 0); }
}
.hero__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: none;
  transform-origin: 50% 35%;
  animation: kenBurns 30s ease-in-out infinite alternate;
  transition: filter 1s var(--ease-out);
}
@keyframes kenBurns {
  from { transform: scale(1.02); }
  to { transform: scale(1.14) translateX(-1.5%); }
}
/* the hero photograph stays black and white in every theme;
   only noir deepens the contrast slightly for its darker stage */
[data-theme="noir"] .hero__img img {
  filter: contrast(1.08) brightness(0.92);
}
.hero__img::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(var(--paper-rgb) / 0.85) 0%, rgb(var(--paper-rgb) / 0) 14%),
    linear-gradient(to top, rgb(var(--paper-rgb) / 0.55) 0%, rgb(var(--paper-rgb) / 0) 26%);
}
.hero__content {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 0 var(--pad) clamp(2.5rem, 6vh, 5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-display);
  line-height: 0.95;
  letter-spacing: 0.005em;
}
.hero__name .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero__name em {
  /* upright: Bodoni's italic capital J reads oddly at display sizes */
  font-style: normal;
  font-weight: 500;
  color: inherit;
}
.hero__name .char {
  display: inline-block;
  transform: translateY(118%) rotate(5deg);
  transform-origin: 0 100%;
  animation: charUp 1s var(--ease-out) forwards;
  animation-delay: calc(0.3s + var(--i) * 0.06s);
}
@keyframes charUp {
  to { transform: translateY(0) rotate(0); }
}
.hero__zh-block {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-left: auto;
  translate: 1.15rem 0;
}
.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s 0.9s var(--ease-out) forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- generic page scaffolding ---------- */
.page {
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 4.5rem));
  padding-bottom: clamp(3rem, 8vh, 6rem);
}
.container {
  width: min(1200px, 100% - 2 * var(--pad));
  margin-inline: auto;
}

/* Full-bleed bars (nav, hero, covers, footer) line their contents up with
   the .container measure so every left and right edge matches down the page. */
.nav,
.hero__content,
.cover__head,
.footer { padding-inline: max(var(--pad), calc((100% - 1200px) / 2)); }

.page-head { margin-bottom: clamp(2rem, 5vh, 4rem); }
.page-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.page-head h1 em { font-style: italic; color: var(--red); }
.page-head .sub {
  margin-top: 1.1rem;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: var(--text-body);
}

/* scroll-reveal */
/* every page eases in as a whole before its sections take the stage */
main {
  animation: pageEnter 0.9s var(--ease-out) both;
}
@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* sections rise softly out of a slight blur, like focus being pulled */
.will-reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(7px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 0.9s var(--ease-out);
}
.will-reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* [data-stagger] grids cascade child by child; --d is set in main.js */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition:
    opacity 1s var(--ease-out) calc(var(--d, 0) * 120ms),
    transform 1s var(--ease-out) calc(var(--d, 0) * 120ms);
}
[data-stagger].is-visible > * { opacity: 1; transform: none; }

/* portrait photos settle out of a slow zoom as their page reveals */
.about-portrait,
.contact-grid figure { overflow: hidden; }
.about-portrait img,
.contact-grid figure img {
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-out);
}
.about-portrait.is-visible img,
.contact-grid figure.is-visible img { transform: scale(1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55em 1.15em;
  border: 1px solid var(--ink);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--red { border-color: var(--red); color: var(--red); }
.btn--red:hover { background: var(--red); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--red); border-color: var(--red); }

/* ---------- home: intro strip ---------- */
.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 10vh, 7rem);
}
.intro h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.intro h2 em { font-style: italic; color: var(--red); }
.intro p { margin-top: 1.3rem; color: var(--ink-soft); max-width: 52ch; }
.intro .btn { margin-top: 2rem; }
.intro__img {
  position: relative;
}
.intro__img img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* the photo settles out of a slow zoom as it reveals */
  transform: scale(1.07);
  transition: transform 1.6s var(--ease-out);
}
.intro__img.is-visible img { transform: scale(1); }
@media (max-width: 820px) {
  .intro { grid-template-columns: 1fr; }
}

/* ---------- home: category cards ---------- */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.cat-card {
  position: relative;
  background: var(--paper);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
}
.cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.cat-card:hover img { transform: scale(1.045); }
.cat-card__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to top, rgb(var(--ink-rgb) / 0.72), transparent);
  color: var(--paper);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.cat-card__label .arrow { transition: transform 0.35s var(--ease-out); }
.cat-card:hover .arrow { transform: translateX(6px); color: var(--red); }
@media (max-width: 820px) {
  /* on phones the categories become a swipeable film strip */
  .cats {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    background: none;
    border-block: none;
    padding: 0.4rem var(--pad) 1.4rem;
    scrollbar-width: none;
  }
  .cats::-webkit-scrollbar { display: none; }
  .cat-card {
    flex: 0 0 74%;
    scroll-snap-align: center;
    border-radius: 8px;
  }
  .cat-card img { border-radius: 8px; }
  .cat-card__label { border-radius: 0 0 8px 8px; }
}

/* ---------- home: next performance, right under the hero ---------- */
.next-show {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(1.4rem, 3.5vh, 2.1rem);
}
.next-show .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: clamp(1.2rem, 3vw, 2.4rem);
  row-gap: 0.28rem;
}
.next-show .kicker {
  grid-column: 1;
  color: color-mix(in srgb, var(--red) 80%, white);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.next-show h2 {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: 1.1;
  color: var(--paper);
}
.next-show h2 em { font-style: italic; color: var(--red); }
.next-show .meta {
  grid-column: 1;
  color: rgb(var(--paper-rgb) / 0.62);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
}
.next-show .btn {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  margin: 0;
  color: var(--paper);
  border-color: rgb(var(--paper-rgb) / 0.45);
}
.next-show .btn:hover { background: var(--paper); color: var(--ink); }

/* ---------- page cover: a full-bleed photo with the title over it ---------- */
.cover {
  position: relative;
  margin-top: var(--nav-h);
  height: clamp(380px, 72vh, 640px);
  overflow: hidden;
}
.cover__img { position: absolute; inset: 0; }
.cover__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  /* the cover settles out of a slow drift */
  animation: aboutCover 14s var(--ease-out) forwards;
}
@keyframes aboutCover {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.cover__img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    var(--paper) 0%,
    rgb(var(--paper-rgb) / 0.82) 22%,
    rgb(var(--paper-rgb) / 0.2) 55%,
    transparent 78%
  );
}
.cover__head {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  animation: riseIn 1s 0.25s var(--ease-out) both;
}
.cover__head .kicker {
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.7rem;
}
.cover__head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-display);
  line-height: 0.95;
  letter-spacing: 0.005em;
}
.cover__credit {
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--grey);
}
.cover__credit:empty { display: none; }

.about-lead {
  max-width: 30ch;
  margin: clamp(2.6rem, 8vh, 5rem) 0 clamp(2.4rem, 7vh, 4rem);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about-feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  padding-top: clamp(2rem, 5vh, 3rem);
  border-top: 1px solid var(--line);
}
.about-portrait {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  margin: 0;
}
.about-portrait img { width: 100%; display: block; }
.about-portrait figcaption {
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--grey);
}
.about-portrait figcaption .credit { display: block; margin-top: 0.25rem; opacity: 0.75; }
.about-portrait figcaption .credit:empty { display: none; }

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: clamp(2.5rem, 7vh, 4.5rem) 0 clamp(3rem, 9vh, 6rem);
}

@media (max-width: 820px) {
  .cover { height: clamp(340px, 58vh, 460px); }
  .about-lead { max-width: none; }
  .about-feature { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 380px; }
}

.about-body p {
  margin-bottom: 1.5rem;
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
}
.about-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 2.15em;
  font-weight: 600;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--red);
}

/* ============================================================
   PAGE PERSONALITIES
   Every interior page gets its own design language:
   headshots · a dark streaming-service screen (billboard + shelves)
   portfolio · a gallery wall (masonry, hover reveals)
   upcoming  · a theatre playbill (centered, giant dates)
   contact   · a typographic poster
   about     · a magazine spread (drop cap, oversized lede)
   ============================================================ */

/* ---------- headshots & resume ---------- */
/* a headshot is framed tight, so keep the face high in the crop */
body.page-plate .cover__img img { object-position: 50% 18%; }

.resume-block {
  margin: clamp(1rem, 3vh, 1.8rem) 0 clamp(2.5rem, 7vh, 4.5rem);
}
.resume-block h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-h2);
  margin: 0 0 0.9rem;
}
.resume-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* the resume reads on the page itself, so nobody has to open a PDF viewer */
.resume-view {
  margin-bottom: clamp(2.5rem, 7vh, 4.5rem);
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -34px rgb(var(--ink-rgb) / 0.5);
}
.resume-page {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  animation: resumeIn 0.9s var(--ease-out) both;
}
@keyframes resumeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.resume-view__note {
  padding: clamp(2rem, 8vw, 4rem);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  background: var(--paper-dim);
}
.resume-view.is-unavailable .resume-view__note {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.shots-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1rem, 2.5vh, 1.5rem);
}
.shots-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-h2);
}
.shots-head .note {
  font-family: var(--sans);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--grey);
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-bottom: clamp(2rem, 5vh, 3.2rem);
}
.shot {
  margin: 0;
  position: relative;
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.shot:hover img { transform: scale(1.015); }


/* ---------- portfolio: the gallery wall ---------- */
body.page-gallery .work-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
}
body.page-gallery .work {
  margin: 0;
}
body.page-gallery .work img {
  transition: transform 0.7s var(--ease-out);
}
body.page-gallery .work:hover img { transform: scale(1.03); }
body.page-gallery .work {
  position: relative;
}
body.page-gallery .work figcaption {
  position: static;
  padding: 0.7rem 0.1rem 0.15rem;
  background: none;
  color: var(--ink);
  transform: none;
}
body.page-gallery .work figcaption .credit {
  color: var(--grey);
}
/* upcoming keeps the plain page scaffolding; see the show list below */

/* ---------- contact: the poster ---------- */
body.page-poster .page-head h1 { font-size: var(--text-h1); }
body.page-poster main { position: relative; overflow: hidden; }
body.page-poster .contact-grid { counter-reset: poster; }
body.page-poster .contact-block { counter-increment: poster; }
body.page-poster .contact-block h3::before {
  content: "0" counter(poster);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15em;
  color: rgb(var(--ink-rgb) / 0.22);
  margin-right: 0.6em;
  vertical-align: -0.15em;
}
body.page-poster .contact-block a.big {
  display: inline-block;
  font-style: italic;
  font-size: var(--text-h2);
  border-bottom: none;
  background-image: linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-position: 0 96%;
  background-size: 100% 3px;
  transition: background-size 0.5s var(--ease-out), color 0.3s;
}
body.page-poster .contact-block a.big:hover {
  background-size: 12% 3px;
  color: var(--red);
}
body.page-poster .contact-grid figure {
  transform: rotate(1.6deg);
  border: 10px solid var(--paper);
  outline: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgb(var(--ink-rgb) / 0.45);
  transition: transform 0.5s var(--ease-out);
}
body.page-poster .contact-grid figure:hover { transform: rotate(0deg) scale(1.01); }
body.page-poster .contact-grid figcaption { padding: 0.5rem 0.2rem 0.1rem; }

/* ---------- about: the magazine spread ---------- */
body.page-magazine .about-lead {
  border-left: 3px solid var(--red);
  padding-left: clamp(1rem, 2.5vw, 1.8rem);
}
body.page-magazine .about-portrait {
  border: 10px solid var(--paper);
  outline: 1px solid var(--line);
  box-shadow: 0 24px 50px -24px rgb(var(--ink-rgb) / 0.45);
}
body.page-magazine .about-portrait img { transition: transform 0.6s var(--ease-out); }

/* ---------- portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: clamp(1.6rem, 4vh, 2.6rem);
}
.filters button {
  padding: 0.48em 1.05em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: none;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.filters button:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.filters button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: none;
}
.filters button.is-active::before { content: none; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
}
.work-grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.work-grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.work {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.work.is-hidden { display: none; }
.work[data-span="2"] { grid-column: span 2; }
.work[data-span="3"] { grid-column: span 3; }
.work.is-dragging { opacity: 0.45; }
.work.is-drop { outline: 1px solid var(--ink); outline-offset: 4px; }
.work img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.work[data-orient="landscape"] img { aspect-ratio: 3 / 2; }
.work[data-orient="square"] img { aspect-ratio: 1 / 1; }
.work:hover img { transform: scale(1.04); }
.work figcaption {
  padding: 0.8rem 0.2rem 0;
}
.work figcaption .title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}
.work figcaption .credit {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--grey);
}
.work figcaption .credit:empty { display: none; }
.work .tag-pick { display: none; }
body.hj-edit .work .tag { display: none; }
body.hj-edit .work .tag-pick {
  display: block;
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
}
body.hj-edit .work .tag-pick select {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 0.35em 0.6em;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  cursor: pointer;
}
.work .tag {
  position: absolute;
  top: 0.8rem; left: 0.8rem;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 0.35em 0.8em;
}
.work-shape {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  margin-top: 0.45rem;
}
body.hj-edit .work-shape { display: flex; }
.work-shape button {
  padding: 0.15em 0.45em;
  border: none;
  background: none;
  color: var(--grey);
  font-family: var(--sans);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.work-shape button.is-on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.hj-remove {
  display: none;
  margin-top: 0.55rem;
  padding: 0.65rem 1.1rem;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 8;
}
body.hj-edit .hj-remove { display: inline-flex; }
.hj-remove:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.work-shape button[data-remove] {
  margin-left: 0.4rem;
  padding: 0.45em 0.8em;
  min-height: 36px;
  color: #fff;
  background: var(--red);
  box-shadow: none;
  font-weight: 600;
}
.work-shape button[data-remove].is-on { box-shadow: none; color: #fff; }
.hj-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: -0.4rem 0 1.2rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}
.hj-layout button {
  padding: 0.1em 0.4em;
  border: none;
  background: none;
  color: var(--grey);
  cursor: pointer;
  letter-spacing: 0.12em;
}
.hj-layout button.is-on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.hj-layout__hint { text-transform: none; letter-spacing: 0.02em; color: var(--grey); }
@media (max-width: 820px) {
  .work-grid,
  .work-grid[data-cols="3"],
  .work-grid[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
  .work[data-span="3"] { grid-column: span 2; }
}
@media (max-width: 520px) {
  .work-grid,
  .work-grid[data-cols="2"],
  .work-grid[data-cols="3"],
  .work-grid[data-cols="4"] { grid-template-columns: 1fr; }
  .work[data-span="2"],
  .work[data-span="3"] { grid-column: span 1; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgb(var(--ink-rgb) / 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 78vh;
  object-fit: contain;
}
.lightbox__inner { text-align: center; }
.lightbox__caption {
  color: var(--paper);
  margin-top: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
.lightbox__caption .credit { color: var(--grey); display: block; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--ls-label); margin-top: 0.2rem; }
.lightbox__close {
  position: absolute;
  top: 1.2rem; right: 1.6rem;
  color: var(--paper);
  font-size: 2rem;
  line-height: 1;
}
.lightbox__close:hover { color: var(--red); }
.lightbox__download {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--paper);
  border: 1px solid rgb(var(--paper-rgb) / 0.4);
  padding: 0.55em 1.3em;
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
}
.lightbox__download:hover { background: var(--red); border-color: var(--red); }

/* ---------- upcoming ---------- */
.show-list { border-top: 1px solid var(--line); }
.show {
  display: grid;
  grid-template-columns: clamp(120px, 15vw, 200px) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.8rem, 5vh, 3rem) 0;
  border-bottom: 1px solid var(--line);
}
.show__poster {
  margin: 0;
  width: 100%;
  overflow: hidden;
  cursor: zoom-in;
}
.show__poster img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.show__poster:hover img { transform: scale(1.03); }
.show__poster .shine { display: none; }

.show__body { display: grid; gap: 0.45rem; justify-items: start; }
.show__date {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.show__date .month {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--red);
}
.show__date .year {
  font-family: var(--sans);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  color: var(--grey);
}
.show__body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-h1);
  line-height: 1.08;
}
.show__body h2 em { font-style: italic; color: var(--red); }
.show__body .role {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-body);
  color: var(--ink-soft);
}
.show__body .venue {
  font-family: var(--sans);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--grey);
}
.show__info {
  font-size: var(--text-body);
  color: var(--ink-soft);
  max-width: 48ch;
}
.show__info:empty,
.show__body .role:empty,
.show__body .venue:empty { display: none; }
body.hj-edit .show__info:empty,
body.hj-edit .show__body .role:empty,
body.hj-edit .show__body .venue:empty {
  display: block;
  min-height: 1.2em;
}
body.hj-edit .show__info:empty::before { content: "More info"; color: var(--grey); }
.show .btn { margin-top: 0.9rem; }

.onsale {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--ink-soft);
}
.onsale:empty { display: none; }
body.hj-edit .onsale:empty {
  display: inline-flex;
  min-height: 1.2em;
  min-width: 12ch;
}
body.hj-edit .onsale:empty::before {
  content: "Tickets on sale soon";
  color: var(--grey);
}
.hj-ticket-placeholder { display: none; }
body.hj-edit .hj-ticket-placeholder { display: inline-flex; }

@media (max-width: 640px) {
  .show { grid-template-columns: 1fr; gap: 1.2rem; }
  .show__poster { max-width: 240px; }
}

.upcoming-note {
  margin-top: clamp(2rem, 5vh, 3rem);
  color: var(--grey);
  font-size: var(--text-sm);
  font-style: italic;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-block { margin-bottom: 2.4rem; }
body:not(.hj-edit) .contact-block.is-empty { display: none; }
.contact-block h3 {
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.7rem;
}
.contact-block p, .contact-block a { font-size: var(--text-body); color: var(--ink-soft); }
.contact-block a.big {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  color: var(--ink);
  border-bottom: 2px solid var(--red);
  transition: color 0.3s;
}
.contact-block a.big:hover { color: var(--red); }
.contact-grid figure img { width: 100%; }
.contact-grid figcaption {
  margin-top: 0.6rem;
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--grey);
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(1.6rem, 4vh, 2.2rem) 1.2rem;
}
.footer__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgb(var(--paper-rgb) / 0.15);
}
.footer__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: 1.05;
}
.footer__links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.footer__links a {
  font-size: var(--text-sm);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: rgb(var(--paper-rgb) / 0.7);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--red); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: rgb(var(--paper-rgb) / 0.45);
}
.footer__bottom > span:first-child { margin-right: auto; }

/* ---------- instagram: a small grid of her latest photos ----------
   These are downloaded copies of her public Instagram photos,
   self-hosted in assets/img/insta/. Clicking any tile opens her profile. */
.insta {
  padding-block: clamp(1.6rem, 4vh, 2.6rem);
}
.insta .page-head { margin-bottom: 0.7rem; }
.insta .page-head h1 { font-size: var(--text-h2); }
.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.3rem;
  max-width: 480px;
  margin-inline: auto;
}
.insta-grid a {
  display: block;
  overflow: hidden;
}
.insta-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.insta-follow {
  text-align: center;
  margin-top: 1rem;
}
.insta-follow .btn { padding: 0.55em 1.15em; }
@media (max-width: 640px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); max-width: none; }
}

/* ---------- mobile: quieter, tighter, more air ---------- */
@media (max-width: 640px) {
  .hero__content { padding-bottom: 2.2rem; }
  .seal--hero { font-size: 1rem; }
  .intro { padding-block: 3rem; gap: 2rem; }
  .page-head .sub { font-size: var(--text-body); }
  .next-show .container {
    grid-template-columns: 1fr;
  }
  .next-show .kicker,
  .next-show h2,
  .next-show .meta,
  .next-show .btn {
    grid-column: 1;
    grid-row: auto;
  }
  .insta { padding-block: 3rem; }
  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .footer__links { gap: 0.9rem 1.4rem; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 1.2rem;
  }
}


/* ============================================================
   STUDIO · editing the real page in place
   ============================================================ */

/* the gear sits quietly inside the footer bar */
.studio-gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  margin-left: 0.4rem;
  border: 0;
  background: none;
  color: currentColor;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s var(--ease-out), rotate 0.6s var(--ease-out);
}
.studio-gear:hover,
.studio-gear:focus-visible { opacity: 1; rotate: 90deg; }
.studio-gear svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  /* the footer stacks on phones, so the gear rides up to the right edge */
  .studio-gear { align-self: flex-end; margin-top: -1.5rem; }
}

/* passcode */
.studio-lock {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgb(0 0 0 / 0.55);
  backdrop-filter: blur(6px);
  animation: studioFade 0.3s var(--ease-out);
}
@keyframes studioFade { from { opacity: 0; } }
.studio-lock__card {
  width: min(400px, 100%);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  animation: riseIn 0.45s var(--ease-out) both;
}
.studio-lock__kicker {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
}
.studio-lock__card h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0.4rem 0 0.6rem; }
.studio-lock__help { color: var(--grey); font-size: 0.86rem; line-height: 1.6; }
.studio-lock input {
  width: 100%;
  margin: 1.3rem 0 1rem;
  padding: 0.75rem 0.9rem;
  font-family: var(--sans);
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.studio-lock input:focus { outline: none; border-color: var(--red); }
.studio-lock.is-wrong .studio-lock__card { animation: shake 0.45s ease; }
.studio-lock__actions { display: flex; gap: 0.6rem; justify-content: center; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

/* the editing bar: pages on the left, colour in the middle, actions right */
.studio-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(0.6rem, env(safe-area-inset-bottom));
  margin-inline: auto;
  z-index: 360;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.2rem);
  width: min(1080px, calc(100vw - 1.6rem));
  padding: 0.35rem 0.7rem;
  background: rgb(var(--paper-rgb) / 0.94);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 24px -16px rgb(0 0 0 / 0.35);
  font-family: var(--sans);
  animation: riseIn 0.5s var(--ease-out) both;
}
.studio-bar__pages { display: flex; gap: 0.15rem; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.studio-bar__pages::-webkit-scrollbar { display: none; }
.studio-bar__pages a {
  padding: 0.28rem 0.5rem;
  border-radius: 3px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.studio-bar__pages a:hover { color: var(--ink); background: var(--paper-dim); }
.studio-bar__pages a.is-here { color: var(--ink); background: transparent; box-shadow: inset 0 -1px 0 var(--ink); }

.studio-bar__look { display: flex; align-items: center; gap: 0.4rem; }
.studio-bar__look select {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
}
.studio-bar__accent { display: flex; align-items: center; gap: 0.3rem; }
.studio-bar__look > span,
.studio-bar__accent > span {
  margin-right: 0.2rem;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
}
.studio-swatch {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid rgb(0 0 0 / 0.15);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out);
}
.studio-swatch:hover { transform: scale(1.22); }
.studio-swatch--custom {
  position: relative;
  overflow: hidden;
  background: conic-gradient(#d7281c, #b8860b, #0f7b6c, #1e4fd8, #c2185b, #d7281c);
}
.studio-swatch--custom input { position: absolute; inset: -20%; opacity: 0; cursor: pointer; }

.studio-bar__actions { display: flex; align-items: center; gap: 0.4rem; }
.studio-bar__state {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
}
.studio-bar .btn { padding: 0.3rem 0.7rem; font-size: 0.6rem; border-radius: 3px; }

.studio-toast {
  position: fixed;
  left: 50%;
  bottom: 5.4rem;
  transform: translate(-50%, 12px);
  z-index: 370;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.studio-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---- what the page looks like while she is editing ---- */
body.hj-edit { padding-bottom: 4.5rem; }
body.hj-edit [data-edit],
body.hj-edit [data-edit-img],
body.hj-edit [data-edit-empty-img] {
  outline: 1px dotted color-mix(in srgb, var(--ink) 22%, transparent);
  outline-offset: 3px;
  border-radius: 1px;
  transition: outline-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
body.hj-edit [data-edit]:hover,
body.hj-edit [data-edit-img]:hover,
body.hj-edit [data-edit-empty-img]:hover {
  outline: 1px solid color-mix(in srgb, var(--ink) 40%, transparent);
  cursor: text;
  background: color-mix(in srgb, var(--ink) 3%, transparent);
}
body.hj-edit [data-edit-img]:hover,
body.hj-edit [data-edit-empty-img]:hover { cursor: pointer; }
body.hj-edit [data-edit]:focus { outline: 1.5px solid var(--red); background: transparent; }

/* empty fields only whisper a hint while editing; the live site shows nothing */
body.hj-edit [data-edit-label]:empty {
  display: inline-block;
  min-width: 9ch;
  color: var(--grey);
  font-style: italic;
}
body.hj-edit [data-edit-label]:empty::before { content: "+ " attr(data-edit-label); }
body.hj-edit .work figcaption .credit:empty,
body.hj-edit .shot-credit:empty { display: inline-block; }

/* photos say what a click will do */
body.hj-edit [data-edit-img] { position: relative; }
body.hj-edit figure:has([data-edit-img])::after,
body.hj-edit .intro__img:has([data-edit-img])::after,
body.hj-edit .cover:has([data-edit-img])::after,
body.hj-edit .hero:has([data-edit-img])::after {
  content: "Click photo to replace";
  position: absolute;
  left: 50%;
  top: 0.7rem;
  transform: translateX(-50%);
  padding: 0.2rem 0.5rem;
  background: rgb(var(--ink-rgb) / 0.72);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
body.hj-edit figure:has([data-edit-img]):hover::after,
body.hj-edit .intro__img:has([data-edit-img]):hover::after,
body.hj-edit .cover:has([data-edit-img]):hover::after,
body.hj-edit .hero:has([data-edit-img]):hover::after { opacity: 0.92; }

.show__poster--empty {
  display: grid;
  place-items: center;
  min-height: 200px;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
}
body:not(.hj-edit) .show__poster--empty { display: none; }
body.hj-edit .show__poster--empty::before {
  content: "+ Add poster";
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

/* move / remove controls that ride along with each item */
.hj-item-tools {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 6;
  display: flex;
  gap: 0.2rem;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
[data-edit-item]:hover > .hj-item-tools,
.hj-item-tools:focus-within,
body.hj-edit .hj-item-tools { opacity: 1; }
body.hj-edit .work { overflow: visible; }
.hj-item-tools button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.hj-item-tools button[data-grip] {
  width: auto;
  min-width: 22px;
  padding: 0 0.35rem;
  letter-spacing: -0.12em;
  cursor: grab;
}
body.hj-edit .work > .hj-item-tools { opacity: 1; }
.hj-item-tools button:hover { background: var(--ink); color: var(--paper); }
.hj-item-tools button[data-del]:hover { background: var(--red); color: #fff; }

body.hj-edit [data-edit-choice]:hover { cursor: pointer; }

.hj-add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.8rem 0 1.2rem;
  padding: 0.35rem 0.7rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--grey);
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 -1px 0 var(--line);
  transition: color 0.25s var(--ease-out);
}
.hj-add:hover { background: transparent; color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.hj-edit-hint {
  display: none;
  max-width: 46ch;
  margin: -0.6rem 0 1.8rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--grey);
}
body.hj-edit .hj-edit-hint { display: block; }

.shot-credit {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  text-align: center;
}
.shot-credit:empty { display: none; }

@media (max-width: 980px) {
  /* two rows: pages on top, colour and actions sharing the second */
  .studio-bar {
    flex-wrap: wrap;
    border-radius: 18px;
    gap: 0.45rem 0.8rem;
    padding: 0.5rem 0.7rem;
  }
  .studio-bar__pages { flex: 1 0 100%; }
  .studio-bar__look,
  .studio-bar__accent { flex: 0 1 auto; }
  .studio-bar__actions { flex: 1 1 auto; justify-content: flex-end; }
  body.hj-edit { padding-bottom: 7rem; }
}
@media (max-width: 560px) {
  .studio-bar__look > span,
  .studio-bar__accent > span { display: none; }
  .studio-bar__actions { flex: 1 0 100%; justify-content: space-between; }
  .studio-bar .btn { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
}

@media (max-width: 720px) {
  :root {
    --text-xs: 0.875rem;
    --text-sm: 1rem;
    --text-body: 1.125rem;
    --text-h2: 1.7rem;
    --text-h1: 2.2rem;
    --text-display: clamp(2.55rem, 12vw, 3.5rem);
    --nav-h: 54px;
    --ls-label: 0.06em;
    --pad: 1.15rem;
  }
  .filters { gap: 0.5rem; }
  .filters button {
    padding: 0.7em 1.15em;
    font-size: 0.95rem;
  }
  .btn { padding: 0.75em 1.25em; }
  .nav__brand { font-size: 1.15rem; }
  .hj-item-tools button,
  .hj-item-tools button[data-grip] {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.05rem;
  }
  .hj-remove,
  .work-shape button[data-remove] {
    min-height: 44px;
    padding: 0.65rem 1rem;
    font-size: 1rem;
  }
  .work-shape button { font-size: 0.85rem; padding: 0.45em 0.65em; }
  .studio-bar {
    width: calc(100vw - 0.8rem);
    padding: 0.55rem 0.7rem;
  }
  .studio-bar__pages a { font-size: 0.8rem; padding: 0.4rem 0.55rem; }
  .studio-bar .btn { font-size: 0.85rem; padding: 0.5rem 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  .will-reveal { filter: none; }
}
