@font-face { font-family: "Neue Rain"; src: url("fonts/NeueRain-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Neue Rain"; src: url("fonts/NeueRain-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #2a0606;
  --ink: #f6efe9;
  --muted: rgba(246, 239, 233, .62);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --flip: cubic-bezier(.55, .05, .25, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Neue Rain", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.room { position: fixed; inset: 0; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; }

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 24px 32px;
}
.logo { display: block; line-height: 0; }
.header-right { justify-self: end; width: max-content; }
.header-left { justify-self: start; display: flex; align-items: center; gap: 24px; }
/* stack / shelf switch, desktop branding only */
.view-toggle { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(20,3,3,.45); border: 1px solid rgba(246,239,233,.14); }
.view-toggle button { display: flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s ease, background-color .2s ease; }
.view-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.view-toggle button:hover { color: var(--ink); }
.view-toggle button[aria-pressed="true"] { background: rgba(246,239,233,.14); color: var(--ink); }
.view-toggle button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
body:not(.tab-branding) .view-toggle { display: none; }
.logo img { width: 100px; height: auto; }

.tabs {
  display: flex; gap: 4px; padding: 4px;
  border-radius: 999px;
  background: rgba(20, 3, 3, .45);
  border: 1px solid rgba(246,239,233,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tab {
  min-height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em;
  color: var(--muted);
  transition: color .2s ease, background-color .2s ease;
  white-space: nowrap; flex: none;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: #2a0606; }
.tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.empty {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  text-align: center; color: var(--muted); font-size: 16px; line-height: 1.5; z-index: 3;
}
.empty[hidden] { display: none; }
.empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(246,239,233,.45); transition: text-decoration-color .2s ease; }
.empty a:hover { text-decoration-color: var(--ink); }
.empty a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.empty strong { display: block; color: #fff; font-weight: 500; font-size: 22px; letter-spacing: -.01em; margin-bottom: 4px; }
.logo:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }

/* visually hidden, still focusable: the 3D book pulls out to show focus */
.book-list .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html:not(.shelf) .book-list button {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Leader + preview card (hover) ---------- */
.leader {
  position: fixed; left: 0; top: 0; z-index: 3;
  display: flex; align-items: center;
  pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
  will-change: transform;
}
.leader.is-on { opacity: 1; }
.leader.is-left { flex-direction: row-reverse; }
.leader-line { display: block; height: 1px; width: 0; background: rgba(246,239,233,.7); transition: width .35s var(--ease-out); }
.leader.is-on .leader-line { width: var(--len, 80px); }
.preview {
  width: 236px; padding: 10px;
  background: #0d0908; border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  transform: translateX(-6px); transition: transform .35s var(--ease-out);
}
.leader.is-left .preview { transform: translateX(6px); }
.leader.is-on .preview { transform: none; }
.preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 3px; background: #1d1513; }
.preview img:first-child { grid-column: 1 / -1; }

/* ---------- Caption ---------- */
.caption {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 0 32px calc(28px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.detail { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.66); max-width: 44ch; min-height: 5.8em; }
.detail strong { display: block; color: #fff; font-weight: 500; font-size: 18px; letter-spacing: -.01em; margin-bottom: 2px; }
.detail strong small { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.55); margin-left: 10px; letter-spacing: 0; }
.detail em { display: block; font-style: normal; font-size: 14px; color: rgba(255,255,255,.5); margin-top: 6px; }
.detail span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Reader ---------- */
.reader {
  position: fixed; inset: 0; z-index: 10;
  display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(22, 4, 4, .94);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s ease;
}
.reader[hidden] { display: none; }
.reader.is-open { opacity: 1; }
.reader-bar { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; gap: 16px; }
.reader-title { font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.reader-close, .reader-nav {
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(246,239,233,.28); font-size: 15px;
  transition: background-color .2s ease, border-color .2s ease;
}
.reader-close:hover, .reader-nav:hover { background: rgba(246,239,233,.1); border-color: rgba(246,239,233,.5); }
.reader-close:focus-visible, .reader-nav:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.reader-nav:disabled { opacity: .3; cursor: default; background: none; }
.reader-foot { position: relative; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.reader-count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.reader-progress { position: absolute; left: 32px; right: 32px; top: 0; height: 1px; background: rgba(246,239,233,.15); }
.reader-progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .35s var(--ease-out); }

.reader-stage { position: relative; display: grid; place-items: center; padding: 0 32px; min-height: 0; perspective: 2400px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .reader-stage { cursor: none; } }
.reader-cursor {
  position: fixed; left: 0; top: 0; z-index: 11; pointer-events: none;
  margin: -22px 0 0 -38px; min-width: 76px; height: 44px; padding: 0 18px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--ink); color: #2a0606; font-size: 15px; font-weight: 500;
  opacity: 0; scale: .8; transition: opacity .2s ease, scale .2s var(--ease-out);
}
.reader-cursor.is-on { opacity: 1; scale: 1; }
.reader-cursor.is-off { opacity: .35; }
.sheet {
  position: relative;
  width: min(100%, calc((100vh - 200px) * 16 / 9));
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out);
}
.page {
  position: absolute; inset: 0;
  border-radius: 4px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  transform-origin: left center; backface-visibility: hidden;
}
.page img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.page::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0)); opacity: 0; pointer-events: none; }
.page.turn-out { animation: turnOut 1.1s var(--flip) forwards; z-index: 2; }
.page.turn-out::after { animation: shade 1.1s ease forwards; }
.page.turn-in { animation: turnIn 1.1s var(--flip) both; z-index: 2; }
@keyframes turnOut { to { transform: rotateY(-108deg); } }
@keyframes turnIn { from { transform: rotateY(-108deg); } to { transform: rotateY(0); } }
@keyframes shade { to { opacity: 1; } }

/* page rail: every page as a thumbnail, click to jump */
.reader-rail {
  position: absolute; top: 84px; right: 0; bottom: 0; width: 196px;
  overflow-y: auto; padding: 4px 24px 24px 12px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: rgba(246,239,233,.2) transparent;
}
.reader-rail button { display: block; text-align: left; border-radius: 4px; opacity: .55; transition: opacity .2s ease; }
.reader-rail button:hover, .reader-rail button[aria-current] { opacity: 1; }
.reader-rail img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: #1d1513; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s ease; }
.reader-rail button[aria-current] img { outline-color: var(--ink); }
.reader-rail span { display: flex; gap: 8px; margin-top: 7px; font-size: 13px; line-height: 1.3; color: var(--ink); }
.reader-rail span i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.reader-rail button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (min-width: 761px) {
  .reader-stage { margin-right: 196px; }
  .reader-foot { margin-right: 196px; }
}

.reader-scroll { display: none; }
.reader-desc, .reader-left { display: none; }
.reader-head { min-width: 0; }
@media (max-width: 760px) {
  /* phones: read top to bottom, jump with the strip of pages along the bottom */
  .reader { grid-template-rows: auto 1fr auto; }
  .reader-stage, .reader-cursor, .reader-rail, .reader-nav { display: none !important; }
  .reader > * { grid-column: 1; }
  .reader-title { font-size: 18px; }
  /* bottom: pages read so far, and how many are left */
  .reader-foot { grid-row: 3; padding-top: 16px; justify-content: center; }
  .reader-count { color: var(--ink); }
  .reader-progress { height: 2px; }
  .reader-scroll {
    display: flex; flex-direction: column; gap: 12px; grid-row: 2; min-height: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 16px 16px;
  }
  .reader-scroll figure { margin: 0; aspect-ratio: 16 / 9; background: #1d1513; border-radius: 3px; overflow: hidden; flex: none; scroll-margin-top: 4px; }
  .reader-scroll img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .header { grid-template-columns: auto 1fr; gap: 12px; padding: 16px; }
  .logo img { width: 76px; }
  .tabs { justify-self: end; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .view-toggle { display: none !important; }
  .tab { min-height: 36px; padding: 0 11px; font-size: 13.5px; }
  .leader { display: none; }
  .caption { padding: 0 16px calc(20px + env(safe-area-inset-bottom)); }
  .reader-bar { padding: 14px 16px; }
  .reader-stage { padding: 0 16px; }
  .reader-progress { left: 16px; right: 16px; }
  .sheet { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* photographic light falloff over the 3D scene */
.room::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(75% 65% at 50% 46%, rgba(0,0,0,0) 40%, rgba(10,0,0,.55) 100%);
}

/* ---------- Phones (and no WebGL): books face out on wall shelves, two per shelf ---------- */
.shelf #scene, .shelf .leader, .shelf .caption, .shelf .room::after { display: none; }
.shelf .room {
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: linear-gradient(180deg, #3a0a0a, #2a0606 60%);
}
.shelf .header { background: linear-gradient(#2a0606 70%, rgba(42,6,6,0)); }
.shelf .book-list {
  --n: 2; --w: 100vw;
  --col: calc((var(--w) - 20px) / var(--n) - 20px);
  --cover: calc(var(--col) * 0.5625);
  --row: calc(28px + var(--cover) + 12px + 58px);
  position: static; display: grid; grid-template-columns: repeat(var(--n), 1fr); grid-auto-rows: var(--row);
  padding: 92px 10px calc(32px + env(safe-area-inset-bottom));
  /* one wooden ledge under every row of books */
  background:
    linear-gradient(180deg,
      transparent 0 calc(28px + var(--cover)),
      #d6ad7c calc(28px + var(--cover)) calc(28px + var(--cover) + 3px),
      #a87547 calc(28px + var(--cover) + 3px) calc(28px + var(--cover) + 12px),
      rgba(0,0,0,.45) calc(28px + var(--cover) + 12px),
      rgba(0,0,0,0) calc(28px + var(--cover) + 30px),
      transparent 0) 0 92px / 100% var(--row) repeat-y padding-box;
}
.shelf .book-list li { padding: 28px 10px 0; min-width: 0; }
@media (min-width: 761px) {
  /* desktop display shelf: four books a shelf, centred unit */
  .shelf .book-list { --n: 4; --w: min(100vw, 1280px); max-width: 1280px; margin: 0 auto; padding-top: 120px; padding-inline: 10px; background-position: 0 120px; }
  .shelf .label strong { font-size: 16px; }
  .shelf .label small { font-size: 13px; }
}
/* tablets: three books a shelf */
@media (min-width: 761px) and (max-width: 1199px) {
  .shelf .book-list { --n: 3; }
}
.shelf .book-list button {
  position: static; width: 100%; height: auto; clip: auto; clip-path: none; overflow: visible; white-space: normal;
  display: block; text-align: left; -webkit-tap-highlight-color: transparent;
}
.shelf .cover {
  position: relative; display: block; height: var(--cover);
  border-radius: 2px 3px 3px 2px; overflow: hidden; background: var(--b);
  transform-origin: 50% 100%; transform: perspective(700px) rotateX(5deg);
  overflow: visible;
  /* hardback thickness: page block, then the back board in the spine colour, seen from above-right */
  box-shadow:
    1px -1px 0 #efe9de, 2px -1px 0 #d8d0c1, 3px -2px 0 var(--b),
    -9px -4px 16px -2px rgba(0,0,0,.75), -3px 0 5px rgba(0,0,0,.45);
  transition: transform .25s var(--ease-out);
}
.shelf .cover img, .shelf .cover::before, .shelf .cover::after { border-radius: 2px 3px 3px 2px; }
.shelf .cover > img { position: relative; z-index: 0; }
.shelf .face { position: absolute; inset: 0; overflow: hidden; border-radius: 2px 3px 3px 2px; background: inherit; }
.shelf .face img { transform: scale(var(--zoom, 1)); }
.shelf .cover::before, .shelf .cover::after { z-index: 1; }
.shelf .cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.shelf .cover.is-tinted { background: var(--tint); }
.shelf .cover.is-tinted .face img { mix-blend-mode: multiply; }
/* spine hinge and a soft sheen so each reads as a hardback */
.shelf .cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7%; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.12) 55%, rgba(0,0,0,.12)); }
.shelf .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.12), rgba(255,255,255,0) 40%); }
/* hover: the front board lifts off the page block from the right edge, as if about to open */
.shelf .page { position: absolute; inset: 0; overflow: hidden; border-radius: 2px 3px 3px 2px; background: #f4efe6; }
.shelf .page::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.12) 35%, rgba(0,0,0,0) 70%); opacity: 0; transition: opacity .45s var(--ease-out); }
.shelf .face { transform-origin: 0 50%; transform: perspective(1400px) rotateY(0deg); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.shelf .face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.12), rgba(255,255,255,0) 40%); pointer-events: none; }
.shelf .cover::after { content: none; }
@media (hover: hover) {
  .shelf .book-list button:hover .face { transform: perspective(1400px) rotateY(-32deg); box-shadow: 10px 0 18px -6px rgba(0,0,0,.45); }
  .shelf .book-list button:hover .page::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .shelf .face, .shelf .page::after { transition: none; } }
html:not(.shelf) .book-list .page { display: none; }
.shelf .book-list button:active .cover { transform: perspective(700px) rotateX(0deg) translateY(-3px); }
.shelf .book-list button:focus-visible { outline: none; }
.shelf .book-list button:focus-visible .cover { outline: 2px solid var(--ink); outline-offset: 3px; }
.shelf .label { display: block; margin-top: 22px; line-height: 1.3; }
.shelf .label strong { display: block; color: #fff; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shelf .label small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
html:not(.shelf) .book-list .cover, html:not(.shelf) .book-list .face, html:not(.shelf) .book-list .label { display: contents; }
html:not(.shelf) .book-list img { display: none; }

/* ---------- Website tab: landing pages on iPads standing in a row on a glossy floor ---------- */
.sites, .tab-website .header {
  /* studio backdrop: deep maroon into warm rose, with a soft light wash behind the devices */
  background:
    radial-gradient(60% 45% at 55% 30%, rgba(255, 170, 170, .16), rgba(255, 170, 170, 0) 70%),
    linear-gradient(100deg, #1f0405 0%, #4a0a10 30%, #7a1622 62%, #a8334a 85%, #c25466 100%);
  background-size: 100vw 100vh; background-attachment: fixed;
}
.tab-website .header { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.sites {
  position: fixed; inset: 0; z-index: 4; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 140px 80px 40px;
  --gap-x: 40px;
}
.sites[hidden] { display: none; }
.sites ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1160px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px var(--gap-x); }
.sites li { position: relative; }
.site { position: relative; display: block; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.stand { position: relative; display: block; }
/* glossy floor: one band per row, drawn by the row's first device and run edge to edge */
.stand::after {
  content: ""; position: absolute; z-index: -1; top: 100%; height: 150px; left: -100vw; right: -100vw;
  background: linear-gradient(180deg, rgba(255,235,235,.13), rgba(255,255,255,.04) 28%, rgba(20,0,0,.22) 100%);
  border-top: 1px solid rgba(255, 225, 225, .16);
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent);
  display: none;
}
.sites li:nth-child(4n+1) .stand::after { display: block; }
/* contact shadow where the device meets the floor */
.stand::before {
  content: ""; position: absolute; z-index: 1; left: 4%; right: 4%; top: calc(100% - 6px); height: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.75), rgba(0,0,0,0)); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.ipad {
  position: relative; display: block; padding: 3%;
  border-radius: 5.5% / 7.5%;
  background: linear-gradient(160deg, #26262a, #0c0c0e 55%, #19191c);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.20), inset 0 0 0 2.5px #050505,
    0 0 0 1px #9a9592, 0 0 0 2px #4b4846,
    0 2px 2px rgba(0,0,0,.35), 14px 18px 30px -10px rgba(0,0,0,.55), 34px 34px 60px -24px rgba(0,0,0,.45), -10px 10px 40px -20px rgba(0,0,0,.35);
  -webkit-box-reflect: below 2px linear-gradient(transparent 58%, rgba(255,255,255,.34));
  transform: perspective(1600px) translateY(var(--lift, 0px));
  transition: transform .35s var(--ease-out);
}
.ipad::before { /* front camera on the long edge */
  content: ""; position: absolute; top: 1.35%; left: 50%; width: 1%; aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%); background: radial-gradient(circle at 35% 35%, #3a4660, #0a0c12 70%);
}
.screen { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 1.4% / 1.9%; background: #000; }
.screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(118deg, rgba(255,255,255,.18), rgba(255,255,255,0) 36%, rgba(255,255,255,0) 72%, rgba(255,255,255,.06));
}
.site-label { position: relative; z-index: 1; display: block; margin-top: 26px; padding-bottom: 56px; text-align: center; }
.site-label strong { display: block; font-weight: 500; font-size: 17px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.site-label small { display: block; margin-top: 3px; font-size: 13px; color: rgba(255,240,240,.68); }
@media (hover: hover) {
  .site:hover .ipad { --lift: -6px; }
  .site:hover .stand::before { opacity: .55; transform: scaleX(.92); }
}
.site:focus-visible { outline: none; }
.site:focus-visible .ipad { outline: 2px solid var(--ink); outline-offset: 6px; }
@media (max-width: 1199px) { .sites { padding-inline: 48px; --gap-x: 28px; } .sites ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sites li:nth-child(n) .stand::after { display: none; } .sites li:nth-child(3n+1) .stand::after { display: block; } }
@media (max-width: 760px) {
  .sites { padding: 104px 20px 24px; --gap-x: 18px; }
  .sites ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sites li:nth-child(n) .stand::after { display: none; } .sites li:nth-child(2n+1) .stand::after { display: block; }
  .site-label { margin-top: 18px; padding-bottom: 40px; }
  .site-label strong { font-size: 14px; }
  .site-label small { font-size: 12px; }
}
@media (max-width: 479px) { .sites { padding-inline: 28px; } .sites ul { grid-template-columns: minmax(0, 1fr); } .sites li:nth-child(n) .stand::after { display: block; } }
@media (prefers-reduced-motion: reduce) { .ipad { transition: none; } }
.site-cursor { z-index: 6; background: #1a1212; color: var(--ink); margin: -22px 0 0; translate: -50% 0; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.site-cursor svg { width: 15px; height: 15px; flex: none; }
@media (hover: hover) and (pointer: fine) { .site { cursor: none; } }

/* Website tab view toggle sits where the Branding one does */
.header-right { grid-column: 3; grid-row: 1; }
body.tab-website #site-toggle { display: flex; }
@media not all and (min-width: 1200px) and (hover: hover) and (pointer: fine) { body.tab-website #site-toggle { display: none; } }
body:not(.tab-website) #site-toggle { display: none; }

/* Fancy: laptops on plinths, drawn in 3D; the link list stays for keyboard and screen readers */
.sites.is-fancy { overflow-x: hidden; overflow-y: auto; padding: 0; }
.sites.is-fancy ul { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fancy-canvas { position: relative; width: 100%; display: none; touch-action: pan-y; }
.sites.is-fancy .fancy-canvas { display: block; }
.fancy-caption {
  position: fixed; left: 32px; bottom: 32px; z-index: 5; margin: 0; transform: translateY(6px);
  text-align: left; pointer-events: none; opacity: 0; transition: opacity .25s ease, transform .25s var(--ease-out);
}
.sites:not(.is-fancy) .fancy-caption { display: none; }
.fancy-caption.is-on { opacity: 1; transform: none; }
.fancy-caption strong { display: block; font-weight: 500; font-size: 18px; color: #fff; }
.fancy-caption small { display: block; margin-top: 2px; font-size: 13px; color: rgba(255,240,240,.7); }

/* Fancy: scroll prompt, bottom right, fades out once the bottom is reached */
.scroll-hint { display: none; position: fixed; right: 32px; bottom: 32px; z-index: 5; margin: 0; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); pointer-events: none; transition: opacity .3s ease; }
.scroll-hint svg { width: 16px; height: 16px; animation: hint-bob 1.6s ease-in-out infinite; }
.sites.is-fancy.can-scroll .scroll-hint { display: flex; }
.sites.at-end .scroll-hint { opacity: 0; }
@keyframes hint-bob { 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint svg { animation: none; } }

/* UX/UI note */
body.tab-uxui .empty { width: min(560px, calc(100vw - 48px)); }
.empty a.empty-cta { display: flex; width: max-content; margin: 24px auto 0; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: #2a0606; font-weight: 500; text-decoration: none; transition: transform .2s var(--ease-out), background-color .2s ease; }
.empty a.empty-cta:hover { background: #fff; transform: translateY(-1px); }

/* Shelf hover video, layered over the still until it plays */
.screen-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.screen.is-playing .screen-video { opacity: 1; }
