/* Sasha Escobar · Portfolio
   Desktop: split-screen chapters. The moodboard stays pinned on the left while the photos scroll on the right.
   Phones (under 900px): each chapter becomes a swipeable deck, with a dock that keeps the moodboard,
   the current note and the arrows in reach. */

:root {
  color-scheme: dark;
  --ink: #121110;
  --ink-2: #1A1816;
  --veil: rgba(18, 17, 16, .94);
  --bar: rgba(18, 17, 16, .9);
  --paper: #EDE6DB;
  --body: #CDC5B9;
  --muted: #958C80;
  --faint: #5E5751;
  --rule: #2D2926;
  --shade: rgba(18, 17, 16, .94);
  --display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --text: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --hdr: 52px;
  --top: calc(var(--hdr) + env(safe-area-inset-top, 0px));
  --wide: 1480px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ink);           /* overscroll and rubber-banding stay dark */
  overflow-x: hidden;
  scroll-padding-top: var(--top);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.static { scroll-behavior: auto; }
html.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink); color: var(--paper);
  font-family: var(--text); font-weight: 300; font-size: 16px; line-height: 1.6;
  padding-left: var(--gut-l); padding-right: var(--gut-r);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ink); }
img { max-width: 100%; height: auto; display: block; }  /* height:auto stops the width/height attributes from fixing the height */
figure { margin: 0; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--paper); outline-offset: 3px; }

.eyebrow { font-family: var(--text); font-weight: 400; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.wrap { max-width: var(--wide); margin-inline: auto; padding-inline: clamp(0px, 2.5vw, 40px); }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  margin-left: calc(-1 * var(--gut-l)); margin-right: calc(-1 * var(--gut-r));
  padding-left: var(--gut-l); padding-right: var(--gut-r);
  background: var(--bar); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.bar .wrap { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bar-name { font-family: var(--display); font-size: 21px; font-weight: 400; text-decoration: none; white-space: nowrap; }
.bar-nav { display: flex; gap: clamp(10px, 1.6vw, 26px); align-items: center; min-width: 0; }
.bar-nav a { text-decoration: none; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; padding-block: 6px; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.bar-nav a .n { margin-right: 8px; color: var(--faint); }
.bar-nav a:hover, .bar-nav a.is-on { color: var(--paper); }
.bar-nav a.is-on { border-bottom-color: var(--paper); }
.bar-nav a.is-on .n { color: var(--muted); }
@media (max-width: 1180px) { .bar-nav a .t { display: none; } .bar-nav a .n { margin-right: 0; color: inherit; } .bar-nav a.nav-about .t { display: inline; } }
.bar-mobile { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; }
.menu-icon { width: 14px; height: 8px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.bar-chip { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* chapter menu (phones) */
.menu { position: fixed; inset: var(--top) 0 0 0; z-index: 19; background: var(--ink); overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--gut-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--gut-l); }
.menu nav { display: grid; }
.menu nav a { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: baseline; padding-block: 16px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.menu .n { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.menu .t { font-family: var(--display); font-size: 32px; line-height: 1.05; }
.menu .d { grid-column: 2; font-size: 13px; color: var(--muted); margin-top: 4px; }
.menu-contact { margin-top: 28px; display: grid; gap: 4px; font-size: 14px; color: var(--body); }
.menu-contact .eyebrow { margin-bottom: 6px; }

/* ---------- opening ---------- */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto;
  grid-template-areas: "top img" "body img";
  column-gap: clamp(28px, 5vw, 96px);
  padding-block: clamp(40px, 8svh, 96px) clamp(40px, 6svh, 72px);
}
.hero-top { grid-area: top; align-self: end; }
.hero-body { grid-area: body; }
.hero-img { grid-area: img; align-self: end; height: min(76svh, 760px); overflow: hidden; }
.hero-img img { height: 100%; width: auto; }
.hero h1 { font-family: var(--display); font-weight: 300; font-size: clamp(76px, 11vw, 176px); line-height: .84; letter-spacing: -.012em; margin: 22px 0 0; }
.hero .roles { margin-top: 26px; }
.hero .statement { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; margin-top: clamp(32px, 6svh, 64px); max-width: 17em; text-wrap: balance; }
.hero .lede { color: var(--body); max-width: 34em; margin-top: 18px; }
.howto { margin-top: 26px; font-size: 13px; color: var(--muted); max-width: 40em; display: flex; gap: 10px; align-items: baseline; }
.howto i { display: inline-block; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1.5px solid var(--paper); position: relative; top: 2px; }
.howto-mob { display: none; }
.tilt-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; background: none; border: 1px solid var(--muted); border-radius: 999px; padding: 9px 16px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); cursor: pointer; }
.tilt-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.tilt-icon { width: 10px; height: 16px; border: 1.5px solid currentColor; border-radius: 3px; animation: rock 2.4s ease-in-out infinite; }
@keyframes rock { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
.menu-tilt { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .tilt-icon { animation: none; } }

.index .wrap { padding-block: 0 clamp(64px, 12svh, 140px); }
.index-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.index-hint, .index-arrows { display: none; }
.index ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.tile { display: grid; gap: 4px; text-decoration: none; }
.tile img { aspect-ratio: 4 / 5; width: 100%; height: auto; object-fit: cover; filter: saturate(.9); transition: filter .3s; margin-bottom: 10px; }
.tile-text { display: grid; gap: 4px; }
.tile:hover img { filter: saturate(1.1); }
.tile .n { font-size: 11px; letter-spacing: .2em; color: var(--muted); }
.tile .t { font-family: var(--display); font-size: 25px; line-height: 1.05; }
.tile .d { font-size: 13px; color: var(--muted); }

/* ---------- chapter opener ---------- */
.chapter { border-top: 1px solid var(--rule); }
.track { display: block; }
.ch-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 96px); align-items: end; padding-block: clamp(64px, 14svh, 168px) clamp(48px, 9svh, 110px); }
.ch-title { font-family: var(--display); font-weight: 300; font-size: clamp(60px, 8.4vw, 132px); line-height: .9; letter-spacing: -.01em; margin: 16px 0 0; text-wrap: balance; }
.ch-pull { font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; margin-top: 26px; max-width: 22em; text-wrap: balance; }
.facts { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); column-gap: 20px; row-gap: 10px; margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); max-width: 40em; font-size: 14px; }
.facts dt { font-weight: 400; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.facts dd { margin: 0; color: var(--body); min-width: 0; }
.ch-band-img { position: relative; height: min(80svh, 820px); overflow: hidden; display: flex; gap: 8px; }
.ch-band-img img { height: 100%; width: auto; }
.ch-band-img.duo { height: min(50svh, 540px); }
.swipe-cue { display: none; }

/* ---------- split: moodboard left, photos right ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); }
.panel { position: sticky; top: var(--top); height: calc(100svh - var(--top)); display: flex; align-items: center; }
.panel-inner { width: 100%; container-type: inline-size; display: flex; flex-direction: column; gap: 14px; padding-block: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.count { font-size: 12px; letter-spacing: .18em; color: var(--muted); font-variant-numeric: tabular-nums; }
.count b { font-weight: 400; color: var(--paper); }
.stage { position: relative; }
.boards { display: flex; gap: 12px; justify-content: center; }
.board { position: relative; aspect-ratio: 788 / 1400; height: min(56svh, calc(100cqw * 1400 / 788)); max-width: 100%; }
.boards.two .board { height: min(54svh, calc((100cqw - 12px) / 2 * 1400 / 788)); }
.board > img { width: 100%; height: 100%; object-fit: cover; }

.spot {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1.5px solid var(--paper); background: rgba(18, 17, 16, .6);
  transition: transform .2s, background .2s;
}
.spot::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--paper); }
.spot:hover, .spot.is-hover { transform: translate(-50%, -50%) scale(1.25); background: rgba(18, 17, 16, .85); }
.spot.is-active { animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(237, 230, 219, .55); } 100% { box-shadow: 0 0 0 16px rgba(237, 230, 219, 0); } }

.note-wrap { min-height: 5.4em; display: grid; gap: 6px; align-content: start; }
.note { font-family: var(--display); font-style: italic; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.3; max-width: 26em; text-wrap: pretty; transition: opacity .25s; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--rule); padding-top: 12px; }
.concept-btn { background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper); border-bottom: 1px solid var(--muted); }
.concept-btn:hover { border-bottom-color: var(--paper); }
.credit { font-size: 12px; color: var(--muted); text-align: right; }
.concept { position: absolute; inset: 0; z-index: 2; background: var(--veil); overflow: auto; overscroll-behavior: contain; padding: clamp(16px, 2.4vw, 32px); display: grid; align-content: start; gap: 14px; }
.concept p:not(.eyebrow) { color: var(--body); font-size: 15px; line-height: 1.75; max-width: 34em; }

.palette { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; width: min(100%, 64svh); margin-inline: auto; }
.palette .side { display: grid; gap: 10px; }
.swatch { position: relative; padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.swatch img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.swatch:hover img, .swatch.is-hover img { transform: scale(1.05); }
.swatch.is-active { outline: 1.5px solid var(--paper); outline-offset: 3px; }

.rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(100%, 56svh); margin-inline: auto; }
.room { padding: 0; border: 0; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; opacity: .55; transition: opacity .25s; }
.room img { width: 100%; height: 100%; object-fit: cover; }
.room:hover, .room.is-hover, .room.is-active { opacity: 1; }
.room.is-active { outline: 1.5px solid var(--paper); outline-offset: 3px; }

.stream { display: flex; flex-direction: column; gap: clamp(56px, 11svh, 140px); padding-block: clamp(32px, 12svh, 140px); min-width: 0; }
.shot img { width: auto; height: auto; max-width: 100%; max-height: calc(100svh - var(--top) - 56px); margin-inline: auto; }
.shot.wide img { width: 100%; max-height: none; }
.shot figcaption { margin-top: 12px; text-align: center; }
.pair { display: flex; gap: 10px; margin-inline: auto; width: 100%; max-width: calc(var(--sum) * (100svh - var(--top) - 80px)); }
.pair figure { flex: var(--ar) 1 0; min-width: 0; }
.pair img { width: 100%; height: auto; }
.pair figcaption { margin-top: 10px; }
.fact { max-width: 28em; width: 100%; margin-inline: auto; border-top: 1px solid var(--rule); padding-top: 18px; display: grid; gap: 10px; }
.fact .txt { font-family: var(--display); font-style: italic; font-size: clamp(23px, 2.3vw, 31px); line-height: 1.28; text-wrap: pretty; }

.cycle .stage-c { display: flex; gap: 10px; }
.cycle img { min-width: 0; flex: 1 1 0; width: 100%; height: auto; }
.cycle .cycle-ui { display: none; }
.frames { display: contents; }
.cycle.is-live { height: 230svh; }
.cycle.is-live .stage-c { position: sticky; top: calc(var(--top) + 3svh); height: calc(100svh - var(--top) - 6svh); display: block; }
.cycle.is-live .frames { display: block; position: relative; height: calc(100% - 52px); }
.cycle.is-live img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .45s ease; }
.cycle.is-live img.on { opacity: 1; }
.cycle.is-live .cycle-ui { display: flex; justify-content: center; align-items: center; gap: 18px; height: 52px; }
.cycle-ui button { background: none; border: 0; cursor: pointer; padding: 6px 2px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid transparent; }
.cycle-ui button.on { color: var(--paper); border-bottom-color: var(--paper); }

.dock, .coach { display: none; }

/* ---------- about ---------- */
.about { border-top: 1px solid var(--rule); }
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 96px); align-items: end; padding-block: clamp(72px, 14svh, 168px); }
.about .ch-title { font-size: clamp(56px, 7vw, 112px); }
.about .lede { color: var(--body); font-size: 17px; max-width: 34em; margin-top: 24px; }
.about .lede + .lede { margin-top: 14px; }
.copyline { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.copyline span { user-select: all; -webkit-user-select: all; }
.copy { background: none; border: 0; border-bottom: 1px solid var(--faint); padding: 0; cursor: pointer; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.copy:hover { color: var(--paper); border-bottom-color: var(--paper); }
.about-img { height: min(78svh, 760px); overflow: hidden; }
.about-img img { height: 100%; width: auto; }
.endnote { border-top: 1px solid var(--rule); }
.endnote .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 26px 40px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ---------- scroll-linked motion on desktop (content is fully visible without it) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .ch-band-img img, .hero-img img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .ch-band .text-col { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .shot img, .pair img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes drift { from { transform: scale(1.14); } to { transform: scale(1); } }
    @keyframes rise { from { opacity: .3; transform: translateY(48px); } to { opacity: 1; transform: none; } }
    @keyframes settle { from { opacity: .35; transform: scale(.965); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .spot.is-active { animation: none; box-shadow: 0 0 0 4px rgba(237, 230, 219, .35); }
  .cycle.is-live img { transition: none; }
}

/* =====================================================================
   PHONES AND SMALL TABLETS
   ===================================================================== */
@media (max-width: 899px) {
  :root {
    --hdr: 56px;
    --gut-l: max(20px, env(safe-area-inset-left, 0px));
    --gut-r: max(20px, env(safe-area-inset-right, 0px));
    --dock: 96px;
    --deck-h: calc(100svh - var(--top));
    --slide-h: calc(var(--deck-h) - var(--dock) - 24px);
    --board-h: calc(var(--deck-h) - var(--dock) - 300px);
  }
  .wrap { padding-inline: 0; }

  /* top bar: name + chapter number + menu */
  .bar-nav { display: none; }
  .bar-mobile { display: flex; align-items: center; gap: 14px; }
  .bar-name { font-size: 20px; }

  /* opening */
  .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "top" "img" "body"; row-gap: 28px; padding-block: 32px 48px; }
  .hero-top { align-self: auto; }
  .hero h1 { font-size: clamp(64px, 19vw, 92px); margin-top: 16px; }
  .hero .roles { margin-top: 18px; line-height: 1.9; text-wrap: balance; }
  .hero-img { height: auto; align-self: auto; }
  .hero-img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
  .hero .statement { margin-top: 0; font-size: clamp(28px, 7.6vw, 34px); }
  .howto-desk { display: none; }
  .howto-mob { display: inline; }

  /* chapter cards become a swipeable carousel of full photo cards */
  .index .wrap { padding-block: 0 56px; }
  .index-hint { display: inline; color: var(--paper); }
  .index-arrows { display: flex; gap: 10px; }
  .index ol {
    display: flex; gap: 12px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding-inline: var(--gut-l) var(--gut-r); scroll-padding-inline: var(--gut-l) var(--gut-r);
    margin-left: calc(-1 * var(--gut-l)); margin-right: calc(-1 * var(--gut-r));
  }
  .index ol::-webkit-scrollbar { display: none; }
  .index li { flex: 0 0 76%; min-width: 0; scroll-snap-align: start; }
  .tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
  .tile img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; margin: 0; filter: none; }
  .tile::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(to bottom, rgba(18, 17, 16, 0), var(--shade)); }
  .tile-text { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; }
  .tile .n { color: var(--paper); }
  .tile .t { font-size: clamp(28px, 8vw, 34px); text-wrap: balance; }
  .tile .d { color: var(--body); font-size: 13px; }

  /* about */
  .about .wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 56px 48px; }
  .about .ch-title { font-size: clamp(48px, 13vw, 64px); }
  .about-img { height: auto; }
  .about-img img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
  .facts { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .facts dd { margin-bottom: 12px; }
  .endnote .wrap { flex-direction: column; gap: 6px; padding-block: 22px calc(28px + env(safe-area-inset-bottom, 0px)); }

  /* ---- each chapter becomes a deck ---- */
  html { scroll-snap-type: y proximity; }
  .chapter { height: var(--deck-h); display: flex; flex-direction: column; scroll-snap-align: start; }
  .track {
    flex: 1 1 auto; min-height: 0; position: relative;
    display: flex; gap: 10px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding: 14px var(--gut-r) 10px var(--gut-l);
    scroll-padding-inline: var(--gut-l) var(--gut-r);
    margin-left: calc(-1 * var(--gut-l)); margin-right: calc(-1 * var(--gut-r));
  }
  .track::-webkit-scrollbar { display: none; }
  .track .split, .track .stream { display: contents; }
  .slide {
    flex: 0 0 calc(100% - 20px); width: calc(100% - 20px); max-width: none; height: 100%; min-width: 0;
    margin: 0; position: relative; overflow: hidden;
    scroll-snap-align: start; scroll-snap-stop: always;
  }
  .track.nudge .slide { animation: nudge 1.5s ease-in-out 1; }
  @keyframes nudge { 0%, 100% { transform: none; } 35%, 60% { transform: translateX(-56px); } }

  /* slide: cover */
  .track .ch-band { display: flex; flex-direction: column; background: var(--ink-2); }
  .ch-band .wrap { display: flex; flex-direction: column-reverse; height: 100%; padding: 0; gap: 0; max-width: none; margin: 0; }
  .ch-band-img, .ch-band-img.duo { flex: 1 1 auto; min-height: 0; height: auto; gap: 3px; }
  .ch-band-img img { width: 100%; height: 100%; min-width: 0; flex: var(--ar, 1) 1 0; object-fit: cover; }
  .ch-band .text-col { padding: 16px 18px 18px; }
  .ch-title { font-size: clamp(38px, 10.5vw, 52px); margin-top: 8px; }
  .ch-pull { font-size: 17px; margin-top: 8px; }
  .ch-band .facts { grid-template-columns: 7.6em minmax(0, 1fr); row-gap: 4px; column-gap: 12px; margin-top: 12px; padding-top: 10px; font-size: 12.5px; line-height: 1.4; }
  .ch-band .facts dt { font-size: 9.5px; padding-top: 2px; }
  .ch-band .facts dd { margin-bottom: 0; }
  .swipe-cue {
    display: inline-flex; align-items: center; gap: 10px;
    position: absolute; right: 12px; bottom: 12px; z-index: 1;
    padding: 8px 12px; border: 1px solid rgba(237, 230, 219, .4); border-radius: 999px;
    background: rgba(18, 17, 16, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--paper);
  }
  .swipe-cue i { position: relative; width: 22px; height: 1px; background: currentColor; animation: cue 1.6s ease-in-out infinite; }
  .swipe-cue i::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
  @keyframes cue { 0%, 100% { transform: translateX(4px); } 50% { transform: translateX(-4px); } }

  /* slide: moodboard */
  .track .panel { position: relative; top: auto; height: 100%; display: flex; align-items: stretch; background: var(--ink-2); }
  .panel-inner { height: 100%; justify-content: center; gap: 10px; padding: 16px; }
  .board { height: min(var(--board-h), calc(100cqw * 1400 / 788)); }
  .boards.two .board { height: min(var(--board-h), calc((100cqw - 12px) / 2 * 1400 / 788)); }
  .palette { width: min(100%, calc(var(--board-h) * 1.5)); }
  .rooms { width: min(100%, var(--board-h)); }
  .spot { width: 32px; height: 32px; }
  .spot::after { inset: 10px; }
  .note-wrap { min-height: 3.8em; }
  .note { font-size: 18px; }
  .panel-foot .credit { display: none; }

  /* slide: photo */
  .track .shot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
  .track .shot img, .track .shot.wide img { width: auto; height: auto; max-width: 100%; max-height: var(--slide-h); margin: 0; }
  .track .shot:has(figcaption) img { max-height: calc(var(--slide-h) - 36px); }
  .track .shot figcaption { margin: 0; }
  .track .pair { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0; }
  .track .pair img { width: 100%; height: auto; }

  /* slide: behind the shot */
  .track .fact { display: flex; flex-direction: column; justify-content: center; gap: 16px; background: var(--ink-2); border: 0; padding: 32px 26px; }
  .track .fact::before { content: ""; width: 40px; border-top: 1px solid var(--muted); }
  .track .fact .txt { font-size: clamp(26px, 7.4vw, 34px); line-height: 1.22; }

  /* slide: one look, three lights */
  .track .cycle.is-live { height: 100%; }
  .track .cycle.is-live .stage-c { position: static; height: 100%; }

  /* dock: arrows, moodboard, current note, progress */
  .dock {
    flex: 0 0 var(--dock); height: var(--dock);
    display: grid; grid-template-columns: 44px auto minmax(0, 1fr) 44px; grid-template-rows: auto 1fr;
    column-gap: 12px; align-items: center; padding-bottom: 12px;
  }
  .ticks { grid-column: 1 / -1; display: flex; gap: 3px; padding-block: 2px 12px; }
  .ticks i { flex: 1 1 0; height: 2px; background: var(--rule); transition: background .3s; }
  .ticks i.seen { background: var(--faint); }
  .ticks i.on { background: var(--paper); }
  .dock-btn, .round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--muted); background: var(--ink-2); display: grid; place-items: center; cursor: pointer; padding: 0; transition: opacity .2s, border-color .2s; }
  .dock-btn svg, .round-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .dock-btn:disabled, .round-btn:disabled { opacity: .25; cursor: default; }
  .dock-btn:not(:disabled):active, .round-btn:not(:disabled):active { border-color: var(--paper); }
  .dock-board { display: flex; gap: 2px; height: 52px; padding: 0; border: 1px solid var(--rule); background: none; cursor: pointer; }
  .dock-board img { height: 100%; width: auto; aspect-ratio: 788 / 1400; object-fit: cover; }
  .dock-board.square img { aspect-ratio: 1; }
  .dock-text { min-width: 0; display: grid; gap: 3px; }
  .dock-meta { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dock-note { font-family: var(--display); font-style: italic; font-size: 16px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: opacity .25s; }

  /* first-visit prompt */
  .coach {
    display: flex; align-items: center; gap: 14px;
    position: fixed; left: var(--gut-l); right: var(--gut-r);
    top: calc(var(--top) + 26px); z-index: 25;
    padding: 14px 14px 14px 16px;
    background: var(--ink-2); border: 1px solid var(--muted);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .55);
  }
  .coach p { font-size: 14px; line-height: 1.45; color: var(--paper); flex: 1 1 auto; min-width: 0; }
  .coach button { flex: none; background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; padding: 9px 14px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; }
  .coach-hand { flex: none; position: relative; width: 40px; height: 22px; }
  .coach-hand::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 1px; background: var(--faint); }
  .coach-hand::before { content: ""; position: absolute; top: 4px; left: 24px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); z-index: 1; animation: swipe 1.6s ease-in-out infinite; }
  @keyframes swipe { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(-22px); opacity: 1; } 100% { transform: translateX(-22px); opacity: 0; } }
}

/* tilt: photos move with the phone (--tx and --ty run from -1 to 1, set by main.js) */
@media (max-width: 899px) {
  html.tilt-on .hero-img img,
  html.tilt-on .tile img,
  html.tilt-on .ch-band-img img {
    transform: translate3d(calc(var(--tx, 0) * -12px), calc(var(--ty, 0) * -12px), 0) scale(1.1);
  }
  html.tilt-on .tile-text,
  html.tilt-on .swipe-cue {
    transform: translate3d(calc(var(--tx, 0) * 5px), calc(var(--ty, 0) * 5px), 0);
  }
  html.tilt-on .track .shot img,
  html.tilt-on .track .pair,
  html.tilt-on .track .cycle .frames {
    transform: perspective(1000px) rotateY(calc(var(--tx, 0) * 6deg)) rotateX(calc(var(--ty, 0) * -6deg));
  }
}

/* short phones (iPhone SE and similar): keep the cover photo visible */
@media (max-width: 899px) and (max-height: 720px) {
  .ch-band .facts { display: none; }
  .ch-pull { font-size: 16px; }
}

@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .swipe-cue i, .coach-hand::before, .track.nudge .slide { animation: none; }
}
