/*
 * Dragon Silk Road — Projects Hero "Sea Ring"
 * ---------------------------------------------------------------------------
 * Scope: body.page-project_list .projects-hero only.
 * Content: DSR sentence + 3 stats (DSR counts) + 16-card ring + opening loader.
 * Geometry/behaviour follow docs/SOLUTION-projects-hero-sea-ring-v2.md.
 *
 * Layer contract (do not break):
 *   - the ring must never be flattened: no overflow:hidden / filter / opacity<1
 *     on .hero-wall, .hero-lens, .hero-ring, .hero-ring__list, .hero-card
 *   - panel clipping uses clip-path only
 * ---------------------------------------------------------------------------
 */

body.page-project_list .projects-hero {
  position: relative;
  z-index: 1;
  height: 100svh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  padding-top: var(--dsr-header-height);
  color: var(--hero-ink);
  background: var(--hero-paper);
  overflow: visible;
  isolation: isolate;
}

/* Cyrillic / Arabic have no Newsreader coverage: fall back per document lang */
/* design tokens live on the page body: both the hero and the opening loader
   (which is rendered outside .projects-hero so it can cover the site header)
   need them */
body.page-project_list {
  --u: calc(min(100vw, 160svh) / 1440);

  /* Paper theme for the hero. #f4f1ea is sampled from the approved reference
     (rgb 244,241,234); the opening loader deliberately keeps its own dark
     tokens (see --hero-intro-* below) so it can still act as a full curtain. */
  --hero-paper: #f4f1ea;
  --hero-paper-deep: #e7e1d4;
  --hero-ink: #07111f;
  --hero-ink-soft: #516273;
  --hero-ink-muted: #7f8b99;
  --hero-line: rgba(7, 17, 31, 0.14);
  --hero-accent: #1d7f99;

  /* Loader-only dark palette (do not switch to paper: .hero-panel.is-open
     paints above the loader so the forming ring stays visible). */
  --hero-intro-bg: #0a0e11;
  --hero-intro-ink: #eef4f6;
  --hero-intro-soft: #9fb4bf;

  --world-build: #3aa8d0;
  --world-brand: #eef4f6;
  --world-learn: #9ed8e4;

  --hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-serif: "DSR Newsreader", Georgia, "Times New Roman", serif;
}
:root[lang="ru"] body.page-project_list { --hero-serif: Georgia, "PT Serif", "Times New Roman", serif; }
:root[lang="fa"] body.page-project_list { --hero-serif: var(--dsr-font-fa); }


body.page-project_list .projects-hero *,
body.page-project_list .projects-hero *::before,
body.page-project_list .projects-hero *::after { box-sizing: border-box; }

/* ==========================================================================
   Top row — h1 sentence (45u/50u, 4 forced lines) + stats (prompt §6a)
   ========================================================================== */
body.page-project_list .hero-top {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: calc(40 * var(--u));
  padding: calc(8 * var(--u)) calc(46 * var(--u)) calc(26 * var(--u)) calc(45 * var(--u));
}

body.page-project_list .hero-sentence {
  --sfs: calc(45 * var(--u));
  --slh: calc(50 * var(--u));
  margin: 0;
  max-width: none;
  font-family: var(--hero-serif);
  font-weight: 400;
  font-size: var(--sfs);
  line-height: var(--slh);
  letter-spacing: -0.005em;
  color: var(--hero-ink);
}

body.page-project_list .hero-line { display: block; white-space: nowrap; }

body.page-project_list .hero-w {
  display: inline-block;
  height: var(--slh);
  line-height: var(--slh);
  overflow: hidden;
  vertical-align: bottom;
}
body.page-project_list .hero-w > i {
  display: block;
  font-style: normal;
  transform: translateY(110%);
  transition: transform 0.8s var(--hero-ease);
  transition-delay: var(--d, 0s);
}
body.page-project_list .projects-hero.is-entered .hero-w > i { transform: none; }

/* NOTE: the headline used to carry four inline choice links with numbered
   superscripts, per-word colour markers, underline rules and four hover preview
   cards. The copy review retired the whole interaction: the sentence is now
   plain editorial text and the four lenses are explained once, in the method
   section below. No choice selector, preview-card selector, lens token or hover
   state remains — keep it that way so the heading keeps one reading rhythm. */

/* stats */
body.page-project_list .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* 2026-11-23: the three counts sit on the headline's optical centre instead
     of the row top. Centring the margin box (margin: 0) keeps the block's
     centre exactly on the 4-line headline centre at every desktop width. */
  align-self: center;
  min-width: calc(360 * var(--u));
  margin: 0;
  padding: 0 0 0 calc(39 * var(--u));
  border-left: 1px solid var(--hero-line);
  transition: opacity 0.3s ease;
}
body.page-project_list .hero-stats > div {
  padding: 0 calc(8 * var(--u));
  border-left: 1px solid var(--hero-line);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--hero-ease), transform 0.9s var(--hero-ease);
}
body.page-project_list .hero-stats > div:first-child { padding-left: 0; border-left: 0; }
body.page-project_list .hero-stats > div:last-child { padding-right: 0; }
body.page-project_list .projects-hero.is-entered .hero-stats > div { opacity: 1; transform: none; }
body.page-project_list .projects-hero.is-entered .hero-stats > div:nth-child(1) { transition-delay: 0.35s; }
body.page-project_list .projects-hero.is-entered .hero-stats > div:nth-child(2) { transition-delay: 0.45s; }
body.page-project_list .projects-hero.is-entered .hero-stats > div:nth-child(3) { transition-delay: 0.55s; }

body.page-project_list .hero-stats dt {
  font-family: var(--hero-serif);
  font-weight: 400;
  font-size: calc(38 * var(--u));
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--hero-ink);
}
body.page-project_list .hero-stats dd {
  margin: calc(14 * var(--u)) 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: calc(12 * var(--u));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-ink-soft);
}

/* ==========================================================================
   World frame (panel) + scene
   ========================================================================== */
body.page-project_list .hero-panel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 calc(16 * var(--u)) calc(22 * var(--u));
  border-radius: calc(22 * var(--u));
  background: var(--hero-paper-deep);
  box-shadow: 0 26px 60px -42px rgba(7, 17, 31, 0.45);
  isolation: isolate;
  overflow: hidden;
  /* NOTE: no clip-path at rest. A clip-path on this 1408x530 subtree costs
     ~50% of the frame rate while the ring animates (measured 33ms -> 16.7ms).
     Rounded overflow gives the same visual clip; clip-path is applied inline
     only while the intro animates the panel. */
  transition: clip-path 0.45s cubic-bezier(0.5, 0, 0.1, 1);
}
/* during the intro the panel is open (clip to the viewport) and transparent */
body.page-project_list .hero-panel.is-open {
  overflow: visible;
  background: transparent;
  border-radius: 0;
  z-index: 901;
  /* above the loader so the forming ring shows, but never clickable */
  pointer-events: none;
}

body.page-project_list .hero-scene {
  position: absolute;
  inset: -4%;
  z-index: 0;
  opacity: 0;
  /* Hide until reveal: without this, the scene's first paint can transition
     from the UA default opacity 1 and flash the sea above the black loader. */
  visibility: hidden;
  transition: opacity 0.9s ease;
}
body.page-project_list .projects-hero.is-revealed .hero-scene { opacity: 1; visibility: visible; }
body.page-project_list .hero-scene__plate,
body.page-project_list .hero-scene__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}
body.page-project_list .hero-scene__plate { filter: saturate(0.92) contrast(1.02); }
body.page-project_list .hero-scene__video { opacity: 0; transition: opacity 0.8s ease; }
body.page-project_list .hero-scene__video.is-playing { opacity: 1; }

body.page-project_list .hero-scene__grain {
  position: absolute;
  inset: -4%;
  /* NOTE: mix-blend-mode:screen here costs ~50% of the frame rate (the panel is
     re-blended every frame while the ring animates). Plain alpha is visually
     equivalent at this opacity. Do not reintroduce it. */
  opacity: 0.09;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.7'/></svg>");
  animation: hero-grain 0.9s steps(5) infinite;
}
@keyframes hero-grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

/* petals / motes / mist (prompt §6b) */
body.page-project_list .hero-petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
body.page-project_list .hero-petals--front { z-index: 3; }
body.page-project_list .hero-petal {
  position: absolute;
  height: calc(var(--ph) * var(--u));
  width: calc(var(--pw) * var(--u));
  border-radius: 80% 0;
  opacity: 0.85;
  background: var(--pc);
  box-shadow: 0 1px 3px rgba(14, 42, 59, 0.18);
  animation: hero-petal-drift var(--pd) linear infinite;
  animation-delay: var(--pdelay);
  will-change: transform, opacity;
}
body.page-project_list .hero-petal.is-mirror { animation-name: hero-petal-drift-mirror; }
@keyframes hero-petal-drift {
  0% { opacity: 0; transform: translate(-6vw, -12vh) rotate(0deg); }
  8% { opacity: 0.85; }
  50% { transform: translate(14vw, 18vh) rotate(260deg); }
  92% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(34vw, 46vh) rotate(540deg); }
}
@keyframes hero-petal-drift-mirror {
  0% { opacity: 0; transform: translate(6vw, -12vh) rotate(0deg); }
  8% { opacity: 0.85; }
  50% { transform: translate(-12vw, 16vh) rotate(-240deg); }
  92% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(-28vw, 44vh) rotate(-500deg); }
}

body.page-project_list .hero-motes { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
body.page-project_list .hero-mote {
  position: absolute;
  width: calc(var(--ms) * var(--u));
  height: calc(var(--ms) * var(--u));
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(191, 234, 243, 0.95) 45%, transparent 70%);
  animation: hero-mote-float var(--md) ease-in-out infinite;
  animation-delay: var(--mdelay);
  will-change: transform, opacity;
}
@keyframes hero-mote-float {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  20% { opacity: 0.9; }
  50% { opacity: 0.55; transform: translate(14px, -9vh) scale(1); }
  80% { opacity: 0.85; }
  100% { opacity: 0; transform: translate(-6px, -20vh) scale(0.7); }
}

body.page-project_list .hero-mist {
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -4%;
  height: 46%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18%);
  transition: opacity 0.9s ease, transform 1.6s var(--hero-ease);
  background:
    radial-gradient(60% 70% at 18% 100%, rgba(250, 252, 253, 0.78), transparent 70%),
    radial-gradient(55% 60% at 82% 100%, rgba(250, 252, 253, 0.7), transparent 72%),
    linear-gradient(to top, rgba(246, 250, 251, 0.55), transparent 75%);
}
body.page-project_list .projects-hero.is-revealed .hero-mist { opacity: 0.92; transform: none; visibility: visible; }

/* ==========================================================================
   Ring (prompt §6c)
   ========================================================================== */
body.page-project_list .hero-wall {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}
body.page-project_list .hero-wall:active { cursor: grabbing; }
body.page-project_list .hero-wall:focus-visible { outline: 2px solid var(--hero-accent); outline-offset: -4px; }

body.page-project_list .hero-lens {
  position: absolute;
  inset: calc(-100 * var(--u)) 0;
  perspective: calc(760 * var(--u));
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

body.page-project_list .hero-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform:
    translate3d(var(--ix, 0px), var(--io, 0px), 0)
    rotateZ(var(--roll, 0deg))
    rotateX(var(--tilt, 0deg))
    scale3d(var(--s, 1), var(--s, 1), var(--s, 1));
}
body.page-project_list .hero-ring__list {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
}

body.page-project_list .hero-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 284px;
  height: 160px;
  margin-left: -142px;
  margin-top: -80px;
  /* The ring engine writes width/height inline. Reset any same-named legacy box
     model: style.css used to ship a generic .hero-card (22px padding + white frame
     + shadow) that shrank the face to ~2.1:1 and ate a third of the label width.
     The face must fill the card exactly (16:9). */
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  transform-style: preserve-3d;
  opacity: 0;
  will-change: transform;
}
body.page-project_list .hero-card[data-world="build"] { --world: var(--world-build); --on: #04121a; }
body.page-project_list .hero-card[data-world="brand"] { --world: var(--world-brand); --on: #0a0e11; }
body.page-project_list .hero-card[data-world="learn"] { --world: var(--world-learn); --on: #0e2a3b; }
/* Semantic world tokens for the 2026-11-20 DSR photo set (source / move / brand).
   They resolve to the same three colours, so the visual system is unchanged; the
   legacy build/brand/learn rules above stay valid for a manifest rollback. The
   base default keeps frame borders and label swatches visible for an unknown value. */
body.page-project_list .hero-card { --world: var(--world-build); --on: #04121a; }
body.page-project_list .hero-card[data-world="source"] { --world: var(--world-build); --on: #04121a; }
body.page-project_list .hero-card[data-world="move"]   { --world: var(--world-learn); --on: #0e2a3b; }
body.page-project_list .hero-card[data-world="brand"]  { --world: var(--world-brand); --on: #0a0e11; }
body.page-project_list .hero-card.is-hidden { pointer-events: none; }

/* Neutral block wrapper between the 3D <li> and the preserve-3d tilt.
   It keeps the tilt out of the li's 3D rendering context, which is what Chromium
   needs to hit-test pointer events on the cards: without it the :hover chain stops
   at .hero-lens (elementFromPoint still finds the poster, so the failure is silent),
   and the hover label/tilt never fire. It replaces the box the old <a> used to give
   us 1:1, without any link semantics. */
body.page-project_list .hero-card__body {
  display: block;
  width: 100%;
  height: 100%;
}
body.page-project_list .hero-card__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  outline: none;
}
body.page-project_list .hero-card__tilt {
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.12s linear;
}
body.page-project_list .hero-card__frame {
  position: absolute;
  inset: calc(-9 * var(--u));
  border: 3px solid var(--world);
  border-radius: calc(24 * var(--u));
  box-shadow: 0 40px 80px -30px var(--world);
  /* NOTE: no clip-path on the 16 cards: a clip-path inside a preserve-3d
     subtree is re-rasterised every frame and halves the frame rate. */
  opacity: 0;
  transform: translateX(-6%) scaleX(0.92);
  transition: opacity 0.3s ease, transform 0.5s var(--hero-ease);
  pointer-events: none;
}
body.page-project_list .hero-card.is-hover .hero-card__frame,
body.page-project_list .hero-card__link:focus-visible .hero-card__frame { opacity: 1; transform: none; }

body.page-project_list .hero-card__face {
  position: absolute;
  inset: 0;
  border-radius: calc(16 * var(--u));
  overflow: hidden;
  background: var(--hero-paper-deep);
  backface-visibility: hidden;
  /* 3px printed-paper frame, painted over the image so it does not change the
     card box (and can be removed on hover without a layout jump). */
  box-shadow:
    inset 0 0 0 3px var(--hero-paper),
    0 18px 36px -24px rgba(0, 0, 0, 0.45);
  -webkit-box-reflect: below calc(8 * var(--u)) linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 42%, transparent 60%);
}
/* On hover the world-coloured outer frame is the only frame. */
body.page-project_list .hero-card.is-hover .hero-card__face {
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.45);
}
body.page-project_list .hero-card__poster,
body.page-project_list .hero-card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* The poster is now the topmost hit target (the preview <video> used to sit above
   it). A native image drag would fire pointercancel and kill the ring drag, so the
   image is explicitly non-draggable; the draggable="false" attribute in the
   template covers browsers that ignore -webkit-user-drag. */
body.page-project_list .hero-card__poster { -webkit-user-drag: none; user-select: none; }
body.page-project_list .hero-card__video { opacity: 0; transition: opacity 0.4s ease; }
body.page-project_list .hero-card__video.is-playing { opacity: 1; }

body.page-project_list .hero-card__chip {
  position: absolute;
  left: calc(14 * var(--u));
  bottom: calc(14 * var(--u));
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  padding: calc(6 * var(--u)) calc(10 * var(--u));
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: calc(13 * var(--u));
  line-height: 1;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
body.page-project_list .hero-card__chip::before {
  content: "";
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
  border-radius: 50%;
  background: var(--world);
}
body.page-project_list .hero-card.is-hover .hero-card__chip { opacity: 0; }

body.page-project_list .hero-card__label {
  position: absolute;
  left: calc(12 * var(--u));
  right: calc(12 * var(--u));
  bottom: calc(12 * var(--u));
  display: flex;
  align-items: center;
  gap: calc(10 * var(--u));
  padding: calc(11 * var(--u)) calc(14 * var(--u));
  border-radius: calc(12 * var(--u));
  background: var(--world);
  color: var(--on);
  /* slide in instead of animating clip-path (same 60fps reason) */
  transform: translateX(calc(-100% - 14 * var(--u)));
  transition: transform 0.5s var(--hero-ease) 0.05s;
}
body.page-project_list .hero-card.is-hover .hero-card__label,
body.page-project_list .hero-card__link:focus-visible .hero-card__label { transform: none; }
body.page-project_list .hero-card__label em {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal;
  font-weight: 500;
  font-size: calc(12 * var(--u));
  letter-spacing: 0.12em;
  white-space: nowrap;
}
body.page-project_list .hero-card__label strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--hero-serif);
  font-weight: 400;
  font-size: calc(22 * var(--u));
  line-height: 1.05;
}
body.page-project_list .hero-card__label i {
  font-style: normal;
  font-size: calc(15 * var(--u));
  transform: translate(-6px, 6px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s;
}
body.page-project_list .hero-card.is-hover .hero-card__label i,
body.page-project_list .hero-card__link:focus-visible .hero-card__label i { transform: none; }

body.page-project_list .hero-card__wash {
  position: absolute;
  inset: 0;
  background: var(--hero-paper);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* ==========================================================================
   Opening loader (prompt §8, DSR copy)
   ========================================================================== */
body.page-project_list .hero-intro {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--hero-intro-bg);
  color: var(--hero-intro-ink);
  opacity: 1;
  transition: opacity 0.9s ease;
}
body.page-project_list .hero-intro.is-done { opacity: 0; pointer-events: none; }
body.page-project_list .hero-intro.is-removed { display: none; }

body.page-project_list .hero-intro__brand {
  position: absolute;
  left: 4vw;
  top: 3.2vh;
  display: flex;
  font-family: var(--hero-serif);
  font-size: clamp(64px, 9vw, 150px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
body.page-project_list .hero-intro__mask { display: inline-block; overflow: hidden; }
body.page-project_list .hero-intro__mask > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(105%) rotate(8deg);
  transform-origin: left bottom;
  transition: transform 1s var(--hero-ease);
  transition-delay: var(--ld, 0s);
}
body.page-project_list .hero-intro.is-rise .hero-intro__mask > i { transform: none; }
body.page-project_list .hero-intro__mask:nth-child(1) { --ld: 0.10s; }
body.page-project_list .hero-intro__mask:nth-child(2) { --ld: 0.18s; }
body.page-project_list .hero-intro__mask:nth-child(3) { --ld: 0.26s; }
body.page-project_list .hero-intro__mask:nth-child(4) { --ld: 0.34s; }

body.page-project_list .hero-intro__meta {
  position: absolute;
  right: 5vw;
  bottom: 4vh;
  text-align: right;
}
body.page-project_list .hero-intro__caption {
  margin: 0 0 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--hero-intro-soft);
  white-space: pre;
}
body.page-project_list .hero-intro__caption::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.12em;
  animation: hero-caret 0.9s steps(2) infinite;
}
@keyframes hero-caret { 50% { opacity: 0; } }

body.page-project_list .hero-intro__odo {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(80px, 12vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.09em;
  font-variant-numeric: tabular-nums;
}
body.page-project_list .hero-odo { display: block; height: 1.08em; overflow: hidden; }
body.page-project_list .hero-odo__strip { display: flex; flex-direction: column; transition: transform 0.7s var(--hero-ease); }
body.page-project_list .hero-odo__strip b { display: block; height: 1.08em; line-height: 1.08; font-weight: 400; }
body.page-project_list .hero-intro__odo small {
  font-size: 0.22em;
  letter-spacing: 0;
  margin-top: 0.72em;
  color: var(--hero-intro-soft);
}
body.page-project_list .hero-intro__skip {
  position: absolute;
  left: 5vw;
  bottom: 4vh;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(238, 244, 246, 0.16);
  background: transparent;
  color: var(--hero-intro-ink);
  font-size: 15px;
  cursor: pointer;
}
body.page-project_list .hero-intro__skip:hover { border-color: rgba(238, 244, 246, 0.45); }

/* CSS-only failsafe: if the controller never runs, the loader clears itself */
body.page-project_list .hero-intro { animation: hero-intro-failsafe 0s linear 7s forwards; }
@keyframes hero-intro-failsafe { to { opacity: 0; visibility: hidden; } }

/* ==========================================================================
   Phone (prompt §10)
   ========================================================================== */
@media (max-width: 820px) {
  body.page-project_list .projects-hero {
    --u: calc(100vw / 390);
    height: auto;
    /* content-sized on phones/tablets: a 100svh floor leaves a dark void under
       the panel at 768x1024 (panel is capped at 52svh there) */
    min-height: 0;
    /* main already offsets the fixed header on phones (fitProjectsPage only
       compensates above 900px), so the hero must not add its own padding */
    padding-top: 0;
  }
  body.page-project_list .hero-top {
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding: 4px 16px 16px;
  }
  body.page-project_list .hero-sentence {
    --sfs: clamp(26px, 7.4vw, 32px);
    --slh: calc(var(--sfs) * 1.12);
    letter-spacing: -0.01em;
  }
  body.page-project_list .hero-line { display: inline; white-space: normal; }
  body.page-project_list .hero-line::after { content: " "; }
  body.page-project_list .hero-line:last-child::after { content: ""; }
  body.page-project_list .hero-stats {
    border-left: 0;
    padding-left: 0;
    margin-top: 0;
    min-width: 0;
  }
  body.page-project_list .hero-stats > div { padding: 0 16px; }
  body.page-project_list .hero-stats dt { font-size: 26px; }
  body.page-project_list .hero-stats dd { font-size: 10px; margin-top: 6px; }
  body.page-project_list .hero-panel {
    flex: 0 0 auto;
    margin: 0 10px 10px;
    border-radius: 20px;
    height: min(52svh, 470px);
  }
  body.page-project_list .hero-wall { touch-action: pan-y; }
}

/* JS-off fallback */
html.no-js body.page-project_list .hero-intro { display: none; }
html.no-js body.page-project_list .hero-scene { opacity: 1; visibility: visible; }
html.no-js body.page-project_list .hero-mist { opacity: 0.92; transform: none; visibility: visible; }
html.no-js body.page-project_list .hero-wall { display: none; }
/* The sentence/stats reveal is normally driven by projects-hero-intro.js; with
   JS off, show their final state so the paper hero is not an empty block. */
html.no-js body.page-project_list .hero-w > i { transform: none; }
html.no-js body.page-project_list .hero-stats > div { opacity: 1; transform: none; }

/* ==========================================================================
   Global chrome while the hero is on screen
   The fixed chapter rail overlaps the panel's right edge; fade it out while
   any part of the hero is still visible (the ring engine toggles the class).
   ========================================================================== */
body.page-project_list .dsr-chapter-rail { transition: opacity 0.4s ease; }
body.is-projects-hero-stage .dsr-chapter-rail { opacity: 0; pointer-events: none; }

/* ==========================================================================
   Intro stacking: while the loader is on screen the whole page must paint above
   the fixed site header (z 1000), otherwise the header cuts the loader.
   ========================================================================== */
body.is-hero-intro .projects-page { z-index: 1200; }
body.is-hero-intro { overflow: hidden; overscroll-behavior: none; }

/* while the loader is up, let the open panel escape the hero stacking context
   (panel z 901 > loader z 900) without lifting the sentence above the loader */
body.is-hero-intro .projects-hero { z-index: auto; isolation: auto; }
