/* ==========================================================================
   NewJeans ‘OMG’ — landing page
   Mobile-first. Desktop values are tuned to the 1440 × 950 design.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.2);
  --glass-hover: rgba(255, 255, 255, 0.92);
  --rule: rgba(255, 255, 255, 0.5);
  --photo-shade: rgba(0, 0, 0, 0.16);
  --thumb-shade: rgba(0, 0, 0, 0.15);
  --footer-tint: rgba(0, 0, 0, 0.12);
  --denim: #3f63b8;            /* icon colour on hover, sampled from the photo */
  --backdrop: rgba(24, 38, 78, 0.72);
  --light-grey: #f0f0f0;
  --grey-text: #999999;
  --ink-rule: rgba(0, 0, 0, 0.2);
  --ink-box: rgba(0, 0, 0, 0.08);

  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Fluid layout (mobile values; overridden at 768px+) */
  --pad-x: 20px;
  --header-h: 72px;
  --footer-h: 52px;
  --box: 52px;
  --blur: 18px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: #1d2b52;
  font-size: 14px;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Page shell
   ========================================================================== */
.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Background photo ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 0;   /* keeps faces in frame on narrow screens */
  transform-origin: 50% 30%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo-shade);
}
@media (max-width: 767px) {
  /* extra shade behind the stacked text on small screens */
  .hero-bg::after {
    background:
      linear-gradient(to top, rgba(10, 20, 50, 0.4) 0%, rgba(10, 20, 50, 0) 55%),
      var(--photo-shade);
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;              /* stays above the menu overlay so the toggle can close it */
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  padding-top: env(safe-area-inset-top, 0px);
}

.brand {
  display: inline-block;
  width: 132px;
  transition: transform 0.5s var(--ease-out);
}
.brand img { width: 100%; height: auto; }
.brand:hover { transform: rotate(-2deg) scale(1.04); }

/* Hamburger: two bars, like the design */
.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -9px;
  display: grid;
  place-items: center;
}
.menu-toggle__bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26.67px;
  height: 2px;
  margin-left: -13.33px;
  border-radius: 2px;
  background: var(--white);
  transition:
    transform 0.5s var(--ease-out),
    width 0.4s var(--ease-out);
}
.menu-toggle__bar:nth-child(2) { transform: translateY(-7.67px); }
.menu-toggle__bar:nth-child(3) { transform: translateY(5.67px); }

.menu-toggle:hover .menu-toggle__bar:nth-child(2) { transform: translateY(-9px); }
.menu-toggle:hover .menu-toggle__bar:nth-child(3) { transform: translateY(7px); }

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { transform: translateY(-1px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-1px) rotate(-45deg); }

/* ==========================================================================
   Hero content
   ========================================================================== */
.hero {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 32px) var(--pad-x) 32px;
}

.hero__content {
  width: 100%;
  max-width: 720px;
}

/* Eyebrow: short rule + label */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eyebrow__rule {
  flex: none;
  width: 32px;
  height: 2px;
  background: var(--white);
  transform-origin: left center;
}

.hero__title {
  margin: 0 0 22px;
  font-size: clamp(24px, 8.4vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Masked line for the headline reveal */
.mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;   /* keeps descender-free caps from clipping */
}
.mask__inner { display: block; }

/* ---------- Video card ---------- */
.video-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 12px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  text-align: left;
  transition:
    background-color 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.video-card__media {
  position: relative;
  display: block;
  aspect-ratio: 360 / 210;
  overflow: hidden;
}
.video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.video-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--thumb-shade);
  transition: background-color 0.5s var(--ease-out);
}

.video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.video-card__play svg { width: 100%; height: 100%; overflow: visible; }
.play-ring {
  fill: rgba(255, 255, 255, 0);
  stroke: var(--white);
  stroke-width: 4;
  transform-origin: 27px 27px;
  transition:
    fill 0.45s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.play-icon {
  fill: var(--white);
  transition: fill 0.45s var(--ease-out);
}

@media (hover: hover) {
  .video-card:hover { background: rgba(255, 255, 255, 0.28); }
  .video-card:hover .video-card__media img { transform: scale(1.06); }
  .video-card:hover .video-card__media::after { background: rgba(0, 0, 0, 0.3); }
  .video-card:hover .play-ring { fill: var(--white); transform: scale(1.14); }
  .video-card:hover .play-icon { fill: var(--denim); }
}
.video-card:active { transform: scale(0.985); }

/* ==========================================================================
   Social rail
   Mobile: a horizontal band framed by two horizontal rules.
   ========================================================================== */
.rail {
  position: relative;
  z-index: 5;
  padding: 16px var(--pad-x);
  background: var(--white);
}

.rail__rule {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule);
  transform-origin: left center;
}
.rail__rule--start { top: 0; }
.rail__rule--end { bottom: 0; }

.social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social__link {
  display: grid;
  place-items: center;
  width: var(--box);
  height: var(--box);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  color: var(--white);
  transition:
    background-color 0.45s var(--ease-out),
    color 0.45s var(--ease-out),
    transform 0.55s var(--ease-out);
}
.social__link svg {
  width: 54%;
  height: 54%;
  transition: transform 0.55s var(--ease-out);
}

@media (hover: hover) {
  .social__link:hover {
    background: var(--glass-hover);
    color: var(--denim);
    transform: translateY(-4px);
  }
  .social__link:hover svg { transform: scale(1.08); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 45;
  display: grid;
  place-items: center;
  min-height: var(--footer-h);
  padding: 12px var(--pad-x) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--light-grey);
  color: #000;
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
}
.site-footer p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

/* ==========================================================================
   Tablet & desktop — vertical rail, design proportions (1440 base)
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --pad-x: clamp(40px, 6.944vw, 100px);      /* 100 / 1440 */
    --col-w: clamp(100px, 9.722vw, 140px);     /* 140 / 1440 */
    --col-r: clamp(24px, 3.472vw, 50px);       /*  50 / 1440 */
    --box: clamp(60px, 5.278vw, 76px);         /*  76 / 1440 */
    --header-h: 82px;
    --footer-h: 60px;
    --blur: 24px;
  }

  .site-header {
    padding-right: 0;
    align-items: flex-start;
    padding-top: 25px;
  }
  .brand { width: clamp(140px, 12.08vw, 174px); }  /* 174 / 1440 */

  /* hamburger centred in the rail column, 41px from top */
  .menu-toggle {
    position: absolute;
    top: 19px;
    right: calc(var(--col-r) + var(--col-w) / 2 - 22px);
    margin: 0;
  }

  .hero {
    padding:
      calc(var(--header-h) + 48px)
      calc(var(--col-r) + var(--col-w) + 32px)
      clamp(48px, 10.5vh, 100px)
      var(--pad-x);
  }

  .eyebrow {
    gap: 20px;
    margin-bottom: clamp(16px, 1.806vw, 26px);
    font-size: clamp(16px, 1.667vw, 24px);     /* 24 / 1440 */
  }
  .eyebrow__rule { width: clamp(36px, 3.472vw, 50px); }

  .hero__title {
    margin-bottom: clamp(16px, 1.458vw, 21px);
    font-size: clamp(44px, 5vw, 72px);         /* 72 / 1440 */
    line-height: 1.02;
  }

  .video-card {
    width: clamp(300px, 27.78vw, 400px);       /* 400 / 1440 */
    padding: clamp(14px, 1.389vw, 20px);
  }
  .video-card__play { width: clamp(46px, 3.75vw, 54px); height: clamp(46px, 3.75vw, 54px); }

  /* Rail becomes the vertical column with rules on both sides */
  .rail {
    position: fixed;
    z-index: 40;
    background: none;
    top: 0;
    bottom: 0;
    right: var(--col-r);
    width: var(--col-w);
    padding: 0 0 calc(var(--footer-h) + 40px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .rail__rule {
    top: 0;
    bottom: 0;
    left: auto;
    right: auto;
    width: 1px;
    height: auto;
    transform-origin: center top;
  }
  .rail__rule--start { left: 0; }
  .rail__rule--end { right: 0; }

  .social {
    flex-direction: column;
    gap: clamp(16px, 1.667vw, 24px);           /* 24 / 1440 */
  }

  .site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--footer-tint);
    color: var(--white);
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
  }
  .site-footer p { font-size: 14px; }

  /* Hero now runs under the fixed footer */
  .hero { padding-bottom: calc(var(--footer-h) + clamp(48px, 10.5vh, 100px)); }
}

/* Short, wide screens (e.g. laptops at 1366 × 700): tighten vertical rhythm */
@media (min-width: 768px) and (max-height: 760px) {
  :root { --box: clamp(52px, 7.5vh, 76px); }
  .social { gap: clamp(10px, 2vh, 24px); }
  .rail { padding-bottom: calc(var(--footer-h) + 24px); }
  .hero { padding-bottom: calc(var(--footer-h) + 40px); }
}

/* ==========================================================================
   Menu panel
   White panel sliding in from the right. Its rail column sits exactly on top
   of the hero rail, so the social buttons and close button don't move.
   ========================================================================== */
.menu {
  --menu-ink: #000000;
  --menu-rule: #e2e2e2;
  --menu-box: #ececec;

  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  transition: visibility 0s linear 0.7s;
}
.menu[hidden] { display: none; }
.menu.is-open { visibility: visible; transition: visibility 0s; }

/* Transparent click-catcher over the uncovered part of the page */
.menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
.menu.is-open .menu__backdrop { opacity: 1; }

.menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--menu-ink);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.7s var(--ease-in-out);
}
.menu.is-open .menu__panel { transform: none; }

/* ---------- Links ---------- */
.menu__nav {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--pad-x) 40px;
}

.menu__list {
  display: grid;
  justify-items: end;
  gap: clamp(14px, 3.2vh, 28px);
  text-align: right;
}
.menu__list li {
  overflow: hidden;                       /* mask for the slide-up reveal */
  padding: 0 0.15em 0.14em 0.3em;         /* room for italic overhang + underline */
  margin: 0 -0.15em -0.14em 0;            /* ...without shifting the right edge */
}

.menu__link {
  position: relative;
  display: inline-block;
  font-size: clamp(30px, 8vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
.menu.is-open .menu__link {
  transform: none;
  transition-delay: calc(0.3s + var(--i) * 0.07s);
}

.menu__label { display: inline-block; }

/* Hover / focus: underline draws in from the right (width as in the design) */
.menu__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: var(--underline-w, 72%);
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease-out);
}
.menu__link:hover::after,
.menu__link:focus-visible::after { transform: scaleX(1); }
.menu__link:focus-visible { outline-color: var(--menu-ink); outline-offset: 6px; }


/* ---------- Rail + social (mobile: horizontal band at the bottom) ---------- */
.menu__rule {
  position: absolute;
  background: var(--menu-rule);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1s var(--ease-in-out) 0.35s;
}
.menu__rule--start,
.menu__rule--end { left: 0; right: 0; height: 1px; }
.menu__rule--start { bottom: calc(var(--box) + 32px + 24px); }
.menu__rule--end { bottom: 24px; }
.menu.is-open .menu__rule { transform: none; }

.menu__social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
ul.menu__social {                          /* beats the list reset */
  padding: 16px var(--pad-x);
  margin: 0 0 24px;
}
.menu__social li {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.menu.is-open .menu__social li {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.45s + var(--i) * 0.07s);
}

.menu__social-link {
  display: grid;
  place-items: center;
  width: var(--box);
  height: var(--box);
  background: var(--menu-box);
  color: var(--menu-ink);
  transition:
    background-color 0.4s var(--ease-out),
    color 0.4s var(--ease-out),
    transform 0.5s var(--ease-out);
}
.menu__social-link svg { width: 54%; height: 54%; }
.menu__social-link:focus-visible { outline-color: var(--menu-ink); }
@media (hover: hover) {
  .menu__social-link:hover {
    background: var(--menu-ink);
    color: var(--white);
    transform: translateY(-4px);
  }
}

/* Header over the white panel */
.menu-toggle__bar { transition: transform 0.5s var(--ease-out), background-color 0.4s var(--ease-out); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar { background: #000; }
.brand { transition: transform 0.5s var(--ease-out), opacity 0.4s var(--ease-out); }

@media (max-width: 767px) {
  /* Panel covers the logo on phones, so fade it out */
  .menu-open .brand { opacity: 0; pointer-events: none; }
}

/* ---------- Tablet & desktop ---------- */
@media (min-width: 768px) {
  .menu__panel {
    width: max(49.3vw, 520px);                 /* 710 / 1440 */
    display: block;
    overflow: hidden;
  }

  .menu__nav {
    position: absolute;
    right: calc(var(--col-r) + var(--col-w) + clamp(32px, 3.472vw, 50px));
    bottom: calc(var(--footer-h) + 37px);
    padding: 0;
  }
  .menu__list { gap: clamp(20px, 2.72vw, 39px); }  /* 87px baseline rhythm at 1440 */
  .menu__link { font-size: clamp(28px, 2.778vw, 40px); }

  /* Vertical rules exactly where the hero rules are */
  .menu__rule--start,
  .menu__rule--end {
    top: 0;
    bottom: 0;
    left: auto;
    right: auto;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: center top;
  }
  .menu__rule--start { right: calc(var(--col-r) + var(--col-w) - 1px); }
  .menu__rule--end { right: var(--col-r); }

  .menu__social {
    position: absolute;
    right: var(--col-r);
    bottom: calc(var(--footer-h) + 40px);
    width: var(--col-w);
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 1.667vw, 24px);
  }
  ul.menu__social { padding: 0; margin: 0; }
  .menu__social li { transform: translateX(16px); }
}

@media (min-width: 768px) and (max-height: 760px) {
  .menu__social { gap: clamp(10px, 2vh, 24px); bottom: calc(var(--footer-h) + 24px); }
  .menu__nav { bottom: calc(var(--footer-h) + 21px); }
  .menu__list { gap: clamp(10px, 2.2vh, 39px); }
}

/* ==========================================================================
   Video modal
   ========================================================================== */
.video-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: hidden;
}
.video-modal::backdrop {
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.video-modal.is-open::backdrop { opacity: 1; }

.video-modal__inner {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 72px var(--pad-x);
}
.video-modal__frame {
  position: relative;
  width: min(100%, 1120px, calc((100svh - 160px) * 16 / 9));
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 30px 80px rgba(8, 16, 40, 0.45);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.video-modal.is-open .video-modal__frame { opacity: 1; transform: none; }
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-modal__close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: var(--pad-x);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background-color 0.3s var(--ease-out), transform 0.5s var(--ease-out);
}
.video-modal__close span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.video-modal__close span + span { transform: rotate(-45deg); }
@media (hover: hover) {
  .video-modal__close:hover {
    background: var(--white);
    color: var(--denim);
    transform: rotate(90deg);
  }
}

/* ==========================================================================
   Reveal animations
   Elements are only hidden once JS adds .js to <html>, so the page is
   fully visible without JavaScript.
   ========================================================================== */
.js [data-reveal] {
  --d: 0s;
  transition:
    opacity 0.9s var(--ease-out) var(--d),
    transform 1.1s var(--ease-out) var(--d);
}

.js [data-reveal="fade-down"] { opacity: 0; transform: translateY(-14px); }
.js [data-reveal="rise"]      { opacity: 0; transform: translateY(40px); }
.js [data-reveal="slide"]     { opacity: 0; transform: translateX(28px); }

.js [data-reveal="eyebrow"] .eyebrow__rule {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-in-out) var(--d);
}
.js [data-reveal="eyebrow"] .eyebrow__text {
  display: inline-block;
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.8s var(--ease-out) calc(var(--d) + 0.35s),
    transform 0.9s var(--ease-out) calc(var(--d) + 0.35s);
}

.js [data-reveal="mask"] .mask__inner {
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out) var(--d);
}

/* Revealed state */
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal].is-revealed .eyebrow__rule,
.js [data-reveal].is-revealed .eyebrow__text,
.js [data-reveal].is-revealed .mask__inner { opacity: 1; transform: none; }

/* Hero photo settles in on load; rules draw in */
.js .hero-bg img {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--ease-out), transform 2.4s var(--ease-out);
}
.js .rail__rule {
  transform: scaleX(0);
  transition: transform 1.4s var(--ease-in-out) 0.3s;
}
.js .rail__rule--end { transition-delay: 0.45s; }
@media (min-width: 768px) {
  .js .rail__rule { transform: scaleY(0); }
}
.js .site-footer {
  opacity: 0;
  transition: opacity 1s var(--ease-out) 0.9s;
}

.js.is-loaded .hero-bg img { opacity: 1; transform: none; }
.js.is-loaded .rail__rule { transform: none; }
.js.is-loaded .site-footer { opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Scroll scenes
   JS sets --p (hero leaving, 0→1) and --e (profile entering, 0→1) with easing,
   and toggles body[data-theme] so the fixed chrome matches the scene below.
   ========================================================================== */
html { scroll-behavior: smooth; }

@media (min-width: 768px) and (min-height: 600px) {
  html { scroll-snap-type: y mandatory; }
  .scene { scroll-snap-align: start; }
}

/* ---------- Hero parallax out ---------- */
.hero-bg { transform: translate3d(0, calc(var(--p, 0) * 30vh), 0); }
.hero__content { transform: translate3d(0, calc(var(--p, 0) * -18vh), 0); }
.hero__content > * { opacity: calc(1 - var(--p, 0) * 1.3); }

/* ---------- Themed chrome (light scenes) ---------- */
.rail__rule { transition: transform 1.4s var(--ease-in-out) 0.3s, background-color 0.6s var(--ease-out); }
.menu-toggle__bar { transition: transform 0.5s var(--ease-out), background-color 0.6s var(--ease-out); }
body[data-header-theme="light"] .menu-toggle__bar { background: #000; }

body[data-theme="light"] .rail__rule { background: var(--ink-rule); }
body[data-theme="light"] .social__link {
  background: var(--ink-box);
  color: #000;
}
body[data-theme="light"] .site-footer {
  background: var(--light-grey);
  color: #000;
}
@media (hover: hover) {
  body[data-theme="light"] .social__link:hover { background: #000; color: var(--white); }
}

/* ==========================================================================
   Scene 2 — Profile
   Mobile first: text on grey, photo below. Desktop follows the 1440 × 950 frame.
   ========================================================================== */
.profile {
  --e: 1;
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 32px) var(--pad-x) 56px;
  background: var(--white);
  color: #000;
}

.profile__panel {
  position: absolute;
  inset: 0 0 38% 0;
  background: var(--light-grey);
  transform-origin: left center;
}
.profile__rule,
.profile__backing,
.scroll-cue { display: none; }

.profile__text { position: relative; margin-bottom: 40px; }

.eyebrow--dark .eyebrow__rule { background: #000; }

.profile__name {
  margin: 0 0 12px;
  font-size: clamp(44px, 14vw, 72px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile__meta {
  margin: 0;
  color: var(--grey-text);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Photo frame */
.profile__media {
  --x: 50%;
  --y: 50%;
  position: relative;
  margin: 0 0 0 auto;
  width: 86%;
  aspect-ratio: 590 / 776;
  overflow: hidden;
  background: #6f95e0;
  cursor: crosshair;
  outline-offset: 6px;
}
.profile__media:focus-visible { outline: 2px solid #000; }

.profile__parallax {
  position: absolute;
  inset: -8% 0;               /* extra height to travel in */
  will-change: transform;
}
.profile__layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.profile__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transition: transform 1.2s var(--ease-out), filter 0.9s var(--ease-out);
}

/* Hide the scroll cue on the last member */
.js .profile.is-in .scroll-cue { transition: opacity 0.5s var(--ease-out) 0.3s; }
.js .profile.is-in.is-last .scroll-cue { opacity: 0; transition: opacity 0.4s var(--ease-out); }

/* Pinned profile */
.profile-track { position: relative; height: calc(var(--count) * 100svh); }
.profile-track .profile { position: sticky; top: 0; height: 100svh; }
.profile-step {
  position: absolute; left: 0; width: 1px; height: 100svh;
  top: calc(var(--i) * 100svh);
  scroll-snap-align: start; pointer-events: none;
}
@media (max-width: 767px) {
  .profile-track .profile { display: flex; flex-direction: column; }
  .profile-track .profile__media { flex: 1; min-height: 0; aspect-ratio: auto; }
}

/* Text: old name exits up, new one rises in */
.profile__slides { display: grid; }
.profile__slide { grid-area: 1 / 1; }
.profile .profile__slide .mask__inner { transition: transform 0.45s cubic-bezier(0.55, 0, 1, 0.45); }
.profile .profile__slide .profile__meta { transition: opacity 0.3s ease, transform 0.3s ease; }
.profile .profile__slide:not(.is-active) .mask__inner {
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.35s ease, transform 0s linear 0.35s;
}
.profile .profile__slide.is-past .mask__inner { transform: translateY(-110%); }
.profile .profile__slide:not(.is-active) .profile__meta { opacity: 0; transform: translateY(12px); }
.profile .profile__slide.is-past .profile__meta { transform: translateY(-12px); }
.profile .profile__slide.is-active .mask__inner {
  transition: opacity 0s linear 0.35s, transform 0.9s var(--ease-out) 0.35s;
}
.profile .profile__slide.is-active .profile__meta { transition: opacity 0.6s var(--ease-out) 0.65s, transform 0.8s var(--ease-out) 0.65s; }

/* Image: new one wipes up over the old */
.profile__item { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease-in-out); }
.profile__item.is-past { clip-path: inset(0 0 100% 0); }
.profile__item.is-active { z-index: 1; clip-path: inset(0); }
.profile .profile__item .profile__layer--base img { transition: transform 1.6s var(--ease-out), filter 0.9s var(--ease-out); }
.profile .profile__item:not(.is-active) .profile__layer--base img { transform: scale(1.2); }

/* Hover swap: circular wipe that grows from the cursor */
.profile__layer--alt {
  clip-path: circle(0% at var(--x) var(--y));
  transition: clip-path 0.9s var(--ease-in-out);
}
.profile__layer--alt img { transform: scale(1.18) rotate(-2deg); }

.profile__media.is-swapped .profile__layer--alt { clip-path: circle(150% at var(--x) var(--y)); }
.profile__media.is-swapped .profile__layer--alt img { transform: none; }
.profile__media.is-swapped .profile__layer--base img { transform: scale(1.08); filter: blur(4px) saturate(1.3); }

@media (hover: hover) {
  .profile__media:hover .profile__layer--alt { clip-path: circle(150% at var(--x) var(--y)); }
  .profile__media:hover .profile__layer--alt img { transform: none; }
  .profile__media:hover .profile__layer--base img { transform: scale(1.08); filter: blur(4px) saturate(1.3); }
}

/* ---------- Desktop / tablet layout ---------- */
@media (min-width: 768px) {
  .profile {
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    padding: 0;
  }

  /* grey block: 815 × 890 */
  .profile__panel {
    inset: 0 auto var(--footer-h) 0;
    width: 56.6vw;
    transform: translate3d(calc((1 - var(--e)) * -14vw), 0, 0);
  }

  /* hairline across the grey block at 282 / 950 */
  .profile__rule {
    display: block;
    position: absolute;
    left: 0;
    top: 29.68%;
    width: 56.6vw;
    height: 1px;
    background: var(--ink-rule);
    transform-origin: left center;
  }

  /* white box behind the photo: 438 → 979, top 180 */
  .profile__backing {
    display: block;
    position: absolute;
    left: 30.42vw;
    width: 37.57vw;
    top: 18.95%;
    bottom: var(--footer-h);
    background: var(--white);
    transform: translate3d(0, calc((1 - var(--e)) * 10vh), 0);
  }

  .profile__text {
    position: absolute;
    left: var(--pad-x);
    top: 40.3%;
    margin: 0;
    transform: translate3d(0, calc((1 - var(--e)) * 12vh), 0);
  }
  .profile .eyebrow {
    margin-bottom: clamp(16px, 1.806vw, 26px);
    font-size: clamp(16px, 1.667vw, 24px);
  }
  .profile__name { font-size: clamp(44px, 5vw, 72px); margin-bottom: clamp(12px, 1.25vw, 18px); }
  .profile__meta { font-size: clamp(16px, 1.667vw, 24px); }

  /* photo: 510 → 1100, top 114, runs to the footer */
  .profile__media {
    position: absolute;
    left: 35.42vw;
    width: 40.97vw;
    top: 12%;
    bottom: var(--footer-h);
    margin: 0;
    aspect-ratio: auto;
    transform: translate3d(0, calc((1 - var(--e)) * 22vh), 0);
  }
  .profile__parallax { transform: translate3d(0, calc((1 - var(--e)) * -9%), 0); }

  /* scroll cue centred at x 1140, bottom 108 */
  .scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 79.17vw;
    bottom: calc(var(--footer-h) + 48px);
    transform: translateX(-50%);
    color: var(--grey-text);
  }
}

/* ---------- Scroll cue (endless) ---------- */
.scroll-cue__mouse {
  position: relative;
  width: 22px;
  height: 32px;
  border: 1.5px solid currentColor;
  border-radius: 11px;
}
.scroll-cue__wheel {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 1.5px;
  height: 7px;
  margin-left: -0.75px;
  border-radius: 2px;
  background: currentColor;
  animation: cue-wheel 1.8s var(--ease-in-out) infinite;
}
.scroll-cue__line {
  position: relative;
  width: 1.5px;
  height: 52px;
  overflow: hidden;
}
/* track + travelling segment + arrow head */
.scroll-cue__line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.35;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 45%;
  background: currentColor;
  animation: cue-line 1.8s var(--ease-in-out) infinite;
}
.scroll-cue::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: -15px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: cue-head 1.8s var(--ease-in-out) infinite;
}

/* Scroll cue on mobile: in the gap left of the photo */
@media (max-width: 767px) {
  .profile-track .scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: calc(var(--pad-x) + (100% - 2 * var(--pad-x)) * 0.07);
    bottom: 43%;
    transform: translateX(-50%);
    color: var(--grey-text);
  }
}

@keyframes cue-wheel {
  0%   { transform: translateY(0);    opacity: 0; }
  20%  { opacity: 1; }
  70%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(10px); opacity: 0; }
}
@keyframes cue-line {
  0%   { top: -45%; }
  75%  { top: 100%; }
  100% { top: 100%; }
}
@keyframes cue-head {
  0%, 40% { transform: translateY(-3px) rotate(45deg); opacity: 0.5; }
  70%     { transform: translateY(3px) rotate(45deg);  opacity: 1; }
  100%    { transform: translateY(-3px) rotate(45deg); opacity: 0.5; }
}

/* ---------- One-shot entrance when the scene arrives ---------- */
.js .profile__panel { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-in-out); }
.js .profile__rule { transform: scaleX(0); transition: transform 1.4s var(--ease-in-out) 0.4s; }
.js .profile__backing { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-in-out) 0.2s; }
.js .profile__media { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-in-out) 0.35s; }
.js .profile__media .profile__layer--base img { transform: scale(1.25); transition: transform 2.4s var(--ease-out) 0.35s, filter 0.9s var(--ease-out); }
.js .profile .eyebrow__rule { transform: scaleX(0); transition: transform 1s var(--ease-in-out) 0.6s; }
.js .profile .eyebrow__text { display: inline-block; opacity: 0; transform: translateX(-12px); transition: opacity 0.8s var(--ease-out) 0.9s, transform 1s var(--ease-out) 0.9s; }
.js .profile .mask__inner { transform: translateY(110%); transition: transform 1.3s var(--ease-out) 0.8s; }
.js .profile__meta { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-out) 1.1s, transform 1.2s var(--ease-out) 1.1s; }
.js .scroll-cue { opacity: 0; transition: opacity 1s var(--ease-out) 1.6s; }

.js .profile.is-in .profile__panel { clip-path: inset(0); }
.js .profile.is-in .profile__rule { transform: none; }
.js .profile.is-in .profile__backing { clip-path: inset(0); }
.js .profile.is-in .profile__media { clip-path: inset(0); }
.js .profile.is-in .profile__layer--base img { transform: none; }
.js .profile.is-in .eyebrow__rule,
.js .profile.is-in .eyebrow__text,
.js .profile.is-in .is-active .mask__inner,
.js .profile.is-in .is-active .profile__meta { opacity: 1; transform: none; }
.js .profile.is-in .scroll-cue { opacity: 1; }

/* Mobile: white strip behind the social links on light pages */
@media (max-width: 767px) {
  .rail { transition: background-color 0.6s var(--ease-out); }
  body[data-theme="light"] .rail { background: var(--white); }
}

/* hover still wins after the entrance */
@media (hover: hover) {
  .js .profile.is-in .profile__media:hover .profile__layer--base img { transform: scale(1.08); }
}
.js .profile.is-in .profile__media.is-swapped .profile__layer--base img { transform: scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue__wheel, .scroll-cue__line::after, .scroll-cue::after { animation: none; }
}

/* Mobile: social band + footer fixed at the bottom */
@media (max-width: 767px) {
  :root { --band-h: 85px; }
  .rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    background: none;
  }
  .site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--footer-tint);
    color: var(--white);
    -webkit-backdrop-filter: blur(var(--blur));
    backdrop-filter: blur(var(--blur));
  }
  .hero { padding-bottom: calc(var(--footer-h) + var(--band-h) + 24px); }
  .profile-track .profile { padding-bottom: calc(var(--footer-h) + var(--band-h) + 24px); }
}

/* ==========================================================================
   Gallery page
   ========================================================================== */
.gallery {
  --row-h: 150px;
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--pad-x) calc(var(--footer-h) + var(--band-h, 85px) + 24px);
  color: #000;
}
.gallery__panel { position: absolute; inset: 0; background: var(--light-grey); }
.gallery__rule { display: none; }

.gallery__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.gallery__title { margin: 0; }
.gallery__count {
  margin: 0;
  color: var(--grey-text);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gallery__scroller { position: relative; }
.gallery__scroller:focus-visible { outline: 2px solid #000; outline-offset: 4px; }

/* rows of fixed height; each image's width follows its own ratio */
.gallery__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.gallery__item { height: var(--row-h); max-width: 100%; }
.gallery__link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: #dcdcdc;
}
.gallery__link img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease-out);
}

/* hover: blur + thin plus */
.gallery__plus {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  opacity: 0;
  transform: scale(0.6) rotate(-90deg);
  transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out);
}
.gallery__plus::before,
.gallery__plus::after {
  content: "";
  position: absolute;
  background: var(--white);
}
.gallery__plus::before { left: 0; right: 0; top: 50%; height: 1px; }
.gallery__plus::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.gallery__link:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
@media (hover: hover) {
  .gallery__link:hover img { transform: scale(1.08); filter: blur(10px) brightness(0.9); }
  .gallery__link:hover .gallery__plus { opacity: 1; transform: none; }
}
.gallery__link:focus-visible img { filter: blur(10px) brightness(0.9); }
.gallery__link:focus-visible .gallery__plus { opacity: 1; transform: none; }

/* reveal: each image wipes up as it scrolls into view */
.js .gallery__item .gallery__link {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s var(--ease-in-out) calc(var(--i, 0) * 0.08s);
}
.js .gallery__item .gallery__link img { transform: scale(1.25); }
.js .gallery__item.is-in .gallery__link { clip-path: inset(0); }
.js .gallery__item.is-in .gallery__link img {
  transform: none;
  transition: transform 1.6s var(--ease-out) calc(var(--i, 0) * 0.08s), filter 0.6s var(--ease-out);
}
@media (hover: hover) {
  .js .gallery__item.is-in .gallery__link:hover img { transform: scale(1.08); transition-delay: 0s; }
}

/* ---------- Desktop: fixed frame, grid scrolls inside (1440 × 950 design) ---------- */
@media (min-width: 768px) {
  .gallery {
    --row-h: clamp(170px, 20.83vw, 300px);          /* 300 / 1440 */
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    padding: 0;
  }
  .gallery__panel { right: auto; width: 56.67vw; bottom: var(--footer-h); }   /* 816 / 1440 */
  .gallery__rule {
    display: block;
    position: absolute;
    left: 0;
    top: 29.6%;
    width: 56.67vw;
    height: 1px;
    background: var(--ink-rule);
  }

  .gallery__head {
    position: absolute;
    left: var(--pad-x);
    right: calc(var(--col-r) + var(--col-w) + clamp(60px, 9.7vw, 140px));
    top: 13.9%;
    margin: 0;
  }
  .gallery__title { font-size: clamp(16px, 1.667vw, 24px); }
  .gallery__count { font-size: clamp(13px, 1.1vw, 16px); }

  .gallery__scroller {
    position: absolute;
    left: var(--pad-x);
    right: calc(var(--col-r) + var(--col-w) + clamp(60px, 6.94vw, 100px));
    top: 22.2%;                                      /* 211 / 950 */
    bottom: calc(var(--footer-h) + 50px);
    padding-right: clamp(20px, 2.2vw, 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  /* Firefox (Chrome/Safari use the ::-webkit-scrollbar rules below) */
  @supports not selector(::-webkit-scrollbar) {
    .gallery__scroller { scrollbar-width: thin; scrollbar-color: #9a9a9a #e6e6e6; }
  }
  .gallery__scroller::-webkit-scrollbar { width: 12px; }
  .gallery__scroller::-webkit-scrollbar-track { background: #e6e6e6; }
  .gallery__scroller::-webkit-scrollbar-thumb { background: #9a9a9a; }

  .gallery__grid { gap: clamp(12px, 1.39vw, 20px); }   /* 20 / 1440 */

  .gallery__rule { transform-origin: left center; }
  .js .gallery__panel { clip-path: inset(0 100% 0 0); animation: gallery-wipe 1.3s var(--ease-in-out) 0.1s forwards; }
  .js .gallery__rule { transform: scaleX(0); animation: gallery-rule 1.3s var(--ease-in-out) 0.4s forwards; }
}
@keyframes gallery-wipe { to { clip-path: inset(0); } }
@keyframes gallery-rule { to { transform: none; } }


/* ==========================================================================
   Gallery popup
   ========================================================================== */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(10, 14, 28, 0.88);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.lightbox.is-open::backdrop { opacity: 1; }

.lightbox__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px clamp(8px, 2vw, 32px);
  width: 100%;
  height: 100%;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--pad-x) calc(16px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.lightbox.is-open .lightbox__inner { opacity: 1; }

.lightbox__count {
  grid-column: 1 / 3;
  align-self: center;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.lightbox__close {
  grid-column: 3;
  justify-self: end;
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--glass);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.5s var(--ease-out);
}
.lightbox__close span {
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.lightbox__close span + span { transform: rotate(-45deg); }

/* big image */
.lightbox__stage {
  grid-row: 2;
  grid-column: 2;
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0;
  touch-action: pan-y;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}
.lightbox__img.is-swapping {
  opacity: 0;
  transform: translateX(calc(var(--dir, 0) * 48px)) scale(0.97);
  transition: none;
}

/* arrows: thin line + head */
.lightbox__arrow {
  grid-row: 2;
  align-self: center;
  position: relative;
  width: 56px;
  height: 56px;
  background: var(--glass);
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.lightbox__arrow--prev { grid-column: 1; }
.lightbox__arrow--next { grid-column: 3; }
.lightbox__arrow::before,
.lightbox__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transition: transform 0.4s var(--ease-out);
}
.lightbox__arrow::before { width: 22px; height: 1.5px; margin: -0.75px 0 0 -11px; background: currentColor; }
.lightbox__arrow::after {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -11px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.lightbox__arrow--next::after { margin-left: 1px; transform: rotate(-135deg); }

@media (hover: hover) {
  .lightbox__close:hover,
  .lightbox__arrow:hover { background: var(--white); color: #000; }
  .lightbox__close:hover { transform: rotate(90deg); }
  .lightbox__arrow--prev:hover::before,
  .lightbox__arrow--prev:hover::after { transform: translateX(-4px) rotate(45deg); }
  .lightbox__arrow--prev:hover::before { transform: translateX(-4px); }
  .lightbox__arrow--next:hover::before { transform: translateX(4px); }
  .lightbox__arrow--next:hover::after { transform: translateX(4px) rotate(-135deg); }
}

/* thumbnail strip */
.lightbox__thumbs {
  grid-row: 3;
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  justify-content: safe center;
  overflow-x: auto;
  padding: 4px 2px;
  scrollbar-width: none;
}
.lightbox__thumbs::-webkit-scrollbar { display: none; }
.lightbox__thumb {
  display: block;
  height: 64px;
  opacity: 0.4;
  outline: 1.5px solid transparent;
  outline-offset: 2px;
  transition: opacity 0.3s var(--ease-out), outline-color 0.3s var(--ease-out);
}
.lightbox__thumb img { width: auto; height: 100%; max-width: none; }
.lightbox__thumb[aria-current="true"] { opacity: 1; outline-color: var(--white); }

/* Popup image always fits between the counter and the thumbnails */
.lightbox__stage { position: relative; }
.lightbox__img { position: absolute; inset: 0; margin: auto; }

@media (hover: hover) {
  .lightbox__thumb:hover { opacity: 0.85; }
}

@media (max-width: 767px) {
  .lightbox__inner { grid-template-columns: 0 minmax(0, 1fr) 0; column-gap: 0; }
  .lightbox__arrow { display: none; }          /* swipe instead */
  .lightbox__thumb { height: 48px; }
}

/* ==========================================================================
   Page transition: curtain
   ========================================================================== */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.curtain span {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
}
.curtain span:first-child { background: var(--rule); }
.curtain span:last-child { background: var(--light-grey); }

/* leaving: panels rise to cover the page */
.is-leaving .curtain { pointer-events: auto; }
.is-leaving .curtain span { transform: none; transition: transform 0.75s var(--ease-in-out); }
.is-leaving .curtain span:last-child { transition-delay: 0.12s; }

/* arriving: start covered, then lift away */
.curtain-in .curtain span { transform: none; transition: none; }
.curtain-out .curtain span { transform: translateY(-100%); transition: transform 0.9s var(--ease-in-out); }
.curtain-out .curtain span:first-child { transition-delay: 0.12s; }

/* ==========================================================================
   News page
   ========================================================================== */
.news {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--pad-x) calc(var(--footer-h) + var(--band-h, 85px) + 24px);
  color: #000;
}
.news__panel { display: none; }
.news__rule,
.news__divider { display: none; }

.news__side { position: relative; padding-bottom: 12px; margin-bottom: 8px; }
/* phones: grey block behind the title + tabs only */
.news__side::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc((var(--header-h) + 24px) * -1);
  bottom: 0;
  left: calc(var(--pad-x) * -1);
  right: calc(var(--pad-x) * -1);
  background: var(--light-grey);
}
.news .eyebrow {
  margin-bottom: 16px;
  font-size: 16px;
}

/* tabs: horizontal swipe row on phones */
.news__tabs {
  display: flex;
  gap: 20px;
  margin: 0 calc(var(--pad-x) * -1);
  padding: 4px var(--pad-x) 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.news__tabs::-webkit-scrollbar { display: none; }

.news__tab {
  position: relative;
  flex: none;
  color: #a8a8a8;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.news__tab[aria-pressed="true"] { color: #000; }
.news__tab:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
@media (hover: hover) {
  .news__tab:not([aria-pressed="true"]):hover { color: #555; transform: translateX(6px); }
}

/* news list */
.news__list { transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out); }
.news__list.is-switching { opacity: 0; transform: translateY(12px); }

.news-item { border-bottom: 1px solid #dcdcdc; }
.news-item[hidden] { display: none; }
.news-item__link {
  display: grid;
  gap: 14px;
  padding: 24px 0 22px;
  transition: transform 0.5s var(--ease-out);
}
.news-item__cat,
.news-item__date {
  color: var(--grey-text);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.news-item__title {
  font-size: 16px;
  line-height: 1.6;
  text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
  justify-self: start;
}
.news-item__link:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
@media (hover: hover) {
  .news-item__link:hover { transform: translateX(8px); }
  .news-item__link:hover .news-item__title { background-size: 100% 1px; }
}

.news__scroller { position: relative; }
.news__empty { margin: 24px 0; color: var(--grey-text); }

/* reveal: tabs and rows rise in with a stagger */
.js .news__tab,
.js .news-item {
  opacity: 0;
  transform: translateY(24px);
}
.js .news__tab.is-in,
.js .news-item.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease-out) calc(var(--i, 0) * 0.07s),
    transform 1s var(--ease-out) calc(var(--i, 0) * 0.07s),
    color 0.4s var(--ease-out);
}

/* ---------- Desktop (1440 × 950 design) ---------- */
@media (min-width: 768px) {
  .news {
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    padding: 0;
  }
  .news__panel {                                     /* grey block: 816 wide */
    display: block;
    position: absolute;
    inset: 0 auto var(--footer-h) 0;
    width: 56.67vw;
    background: var(--light-grey);
  }
  .news__side::before { display: none; }

  .news__divider {                                   /* vertical line at 561 */
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 38.96vw;
    width: 1px;
    background: var(--ink-rule);
    z-index: 46;                                         /* runs over the footer, as in the design */
  }
  .news__rule {                                      /* hairline at 282, left block only */
    display: block;
    position: absolute;
    left: 0;
    top: 29.68%;
    width: 38.96vw;
    height: 1px;
    background: var(--ink-rule);
  }

  .news__side {
    position: absolute;
    left: var(--pad-x);
    top: 40.3%;
    width: calc(38.96vw - var(--pad-x) - 24px);
    margin: 0;
    padding: 0;
  }
  .news .eyebrow {
    margin-bottom: clamp(12px, 1.1vw, 16px);
    font-size: clamp(16px, 1.667vw, 24px);
  }
  .news__tabs {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(8px, 1.53vw, 22px);                       /* 66px rhythm at 1440 */
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .news__tab { font-size: clamp(26px, 2.778vw, 40px); }

  .news__scroller {
    position: absolute;
    left: 42.36vw;                                       /* 610 */
    right: calc(var(--col-r) + var(--col-w) + clamp(60px, 6.94vw, 100px));
    top: 13.9%;                                          /* 132 */
    bottom: calc(var(--footer-h) + 50px);
    padding-right: clamp(24px, 3.6vw, 52px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  @supports not selector(::-webkit-scrollbar) {
    .news__scroller { scrollbar-width: thin; scrollbar-color: #9a9a9a #e6e6e6; }
  }
  .news__scroller::-webkit-scrollbar { width: 12px; }
  .news__scroller::-webkit-scrollbar-track { background: #e6e6e6; }
  .news__scroller::-webkit-scrollbar-thumb { background: #9a9a9a; }

  .news-item__link { gap: clamp(10px, 1.1vw, 16px); padding: 26px 20px 22px; }
  .news-item__cat,
  .news-item__date { font-size: clamp(12px, 1.04vw, 15px); }
  .news-item__title { font-size: clamp(15px, 1.39vw, 20px); }

  .js .news__panel { clip-path: inset(0 100% 0 0); animation: gallery-wipe 1.3s var(--ease-in-out) 0.1s forwards; }
  .js .news__rule { transform-origin: left center; transform: scaleX(0); animation: gallery-rule 1.3s var(--ease-in-out) 0.4s forwards; }
  .js .news__divider { transform-origin: center top; transform: scaleY(0); animation: news-line 1.4s var(--ease-in-out) 0.2s forwards; }
}
@keyframes news-line { to { transform: none; } }

/* ==========================================================================
   News detail page (reuses the news page frame: panel, lines, scroller)
   ========================================================================== */
.detail__back {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 20px;
  margin-bottom: 28px;
  color: var(--grey-text);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease-out);
}
.detail__back-arrow {
  position: relative;
  width: 40px;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.detail__back-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.detail__back:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
@media (hover: hover) {
  .detail__back:hover { color: #000; }
  .detail__back:hover .detail__back-arrow { width: 52px; transform: translateX(-8px); }
}

/* phones: grey block also covers the Back link */
.news--detail .news__side::before { top: calc((var(--header-h) + 24px + 48px) * -1); }

.detail__title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.detail__date {
  margin: 0;
  color: var(--grey-text);
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail__media {
  margin: 0 0 28px;
  overflow: hidden;
  background: #e6e6e6;
}
.detail__media img { width: 100%; height: auto; }

.detail__body {
  color: var(--grey-text);
  font-size: 14px;
  line-height: 1.5;
}
.detail__body p { margin: 0 0 1.4em; }

/* reveal: poster wipes in, text rises */
.js .detail__media { clip-path: inset(100% 0 0 0); animation: detail-wipe 1.3s var(--ease-in-out) 0.35s forwards; }
.js .detail__media img { transform: scale(1.2); animation: detail-zoom 2s var(--ease-out) 0.35s forwards; }
.js .detail__body { opacity: 0; transform: translateY(24px); animation: detail-rise 1s var(--ease-out) 0.7s forwards; }
@keyframes detail-wipe { to { clip-path: inset(0); } }
@keyframes detail-zoom { to { transform: none; } }
@keyframes detail-rise { to { opacity: 1; transform: none; } }

/* ---------- Desktop (1440 × 950 design) ---------- */
@media (min-width: 768px) {
  .detail__back {
    position: absolute;
    left: var(--pad-x);
    top: 20.2%;                                          /* 192 / 950 */
    margin: 0;
    font-size: clamp(12px, 0.97vw, 14px);
    gap: 20px;
  }
  .detail__back-arrow { width: 52px; }
  @media (hover: hover) {
    .detail__back:hover .detail__back-arrow { width: 64px; }
  }

  .detail__title { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.5; margin-bottom: clamp(12px, 1.25vw, 18px); }
  .detail__date { font-size: clamp(16px, 1.667vw, 24px); }

  .detail__media { width: 94%; margin-bottom: clamp(20px, 2.2vw, 32px); }   /* 459 of 488 */
  .detail__body { font-size: clamp(15px, 1.389vw, 20px); line-height: 1.6; }
}


/* ==========================================================================
   Discography page
   ========================================================================== */
.disco {
  --cover: calc(100vw - 2 * var(--pad-x) - 56px);
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--pad-x) calc(var(--footer-h) + var(--band-h, 85px) + 24px);
  color: #000;
}
.disco__panel,
.disco__rule,
.disco__backing { display: none; }

.disco__side { position: relative; padding-bottom: 12px; margin-bottom: 32px; }
/* phones: grey block behind the title + tabs */
.disco__side::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc((var(--header-h) + 24px) * -1);
  bottom: 0;
  left: calc(var(--pad-x) * -1);
  right: calc(var(--pad-x) * -1);
  background: var(--light-grey);
}
.disco .eyebrow { margin-bottom: 16px; font-size: 16px; }

.disco__tabs {
  display: flex;
  gap: 20px;
}
.disco__tab {
  color: #a8a8a8;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
  transition: color 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.disco__tab[aria-pressed="true"] { color: #000; }
.disco__tab:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
@media (hover: hover) {
  .disco__tab:not([aria-pressed="true"]):hover { color: #555; transform: translateX(6px); }
}

/* ---------- Carousel: stacked deck, next covers peek out on the right ---------- */
.disco__carousel { position: relative; width: var(--cover); }
.disco__stage {
  position: relative;
  width: var(--cover);
  height: var(--cover);
  touch-action: pan-y;
}
.disco-item {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transition:
    transform 0.9s var(--ease-in-out),
    opacity 0.6s var(--ease-out),
    filter 0.9s var(--ease-in-out);
}
.disco-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.9s var(--ease-in-out);
}
.disco-item[hidden] { display: none; }

/* positions (set by script.js via data-offset) */
.disco-item[data-offset="0"] { z-index: 5; transform: none; }
.disco-item[data-offset="1"] { z-index: 4; transform: translateX(calc(var(--cover) * 0.164)) scale(0.844); cursor: pointer; }
.disco-item[data-offset="2"] { z-index: 3; transform: translateX(calc(var(--cover) * 0.289)) scale(0.764); cursor: pointer; }
.disco-item[data-offset="far"] { z-index: 2; transform: translateX(calc(var(--cover) * 0.36)) scale(0.7); opacity: 0; }
.disco-item[data-offset="prev"] { z-index: 6; transform: translateX(-30%) rotate(-4deg); opacity: 0; pointer-events: none; }

/* unselected covers: blurred + dimmed */
.disco-item:not([data-offset="0"]) img { filter: blur(6px) brightness(0.75) saturate(0.9); }
@media (hover: hover) {
  .disco-item[data-offset="1"]:hover { transform: translateX(calc(var(--cover) * 0.19)) scale(0.844); }
  .disco-item[data-offset="0"] img:hover { filter: none; }
}

/* controls */
.disco__controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.disco__arrows { display: flex; gap: 12px; padding-top: 6px; }
.disco__arrow {
  position: relative;
  width: 44px;
  height: 20px;
  color: #000;
  transition: color 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.disco__arrow::before,
.disco__arrow::after { content: ""; position: absolute; top: 50%; }
.disco__arrow::before { left: 0; right: 0; height: 1px; background: currentColor; }
.disco__arrow::after {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}
.disco__arrow--next::after { right: 0; transform: rotate(45deg); }
.disco__arrow--prev::after { left: 0; transform: rotate(-135deg); }
.disco__arrow:disabled { color: #c8c8c8; cursor: default; }
.disco__arrow:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
@media (hover: hover) {
  .disco__arrow--next:not(:disabled):hover { transform: translateX(5px); }
  .disco__arrow--prev:not(:disabled):hover { transform: translateX(-5px); }
}

.disco__caption { text-align: right; transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out); }
.disco__caption.is-switching { opacity: 0; transform: translateY(6px); }
.disco__title {
  margin: 0 0 4px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.disco__meta {
  margin: 0;
  color: var(--grey-text);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* reveal */
.js .disco__tab { opacity: 0; transform: translateY(20px); }
.js .disco__tab.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s var(--ease-out) calc(var(--i, 0) * 0.08s),
    transform 1s var(--ease-out) calc(var(--i, 0) * 0.08s),
    color 0.4s var(--ease-out);
}
.js .disco__stage { clip-path: inset(100% -50% 0 0); animation: disco-wipe 1.4s var(--ease-in-out) 0.3s forwards; }
@keyframes disco-wipe { to { clip-path: inset(-10% -50% -10% 0); } }   /* stays open on the right for the peeking covers */
.js .disco__controls { opacity: 0; animation: detail-rise 1s var(--ease-out) 0.9s forwards; }

/* ---------- Desktop (1440 × 950 design) ---------- */
@media (min-width: 768px) {
  .disco {
    --cover: min(40.97vw, 62svh);                        /* 590 */
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    padding: 0;
  }
  .disco__panel {                                        /* grey block, 816 wide */
    display: block;
    position: absolute;
    inset: 0 auto var(--footer-h) 0;
    width: 56.67vw;
    background: var(--light-grey);
  }
  .disco__backing {                                      /* white box from x 438, y 128 */
    display: block;
    position: absolute;
    left: 30.42vw;
    width: 26.25vw;
    top: 13.47%;
    bottom: var(--footer-h);
    background: var(--white);
  }
  .disco__rule {                                         /* hairline at 283 */
    display: block;
    position: absolute;
    left: 0;
    top: 29.8%;
    width: 30.42vw;
    height: 1px;
    background: var(--ink-rule);
  }
  .disco__side::before { display: none; }
  .disco__side {
    position: absolute;
    left: var(--pad-x);
    top: 40.3%;
    width: calc(30.42vw - var(--pad-x) - 24px);
    margin: 0;
    padding: 0;
  }
  .disco .eyebrow { margin-bottom: clamp(12px, 1.1vw, 16px); font-size: clamp(16px, 1.667vw, 24px); }
  .disco__tabs { flex-direction: column; align-items: flex-start; gap: clamp(8px, 1.53vw, 22px); }
  .disco__tab { font-size: clamp(26px, 2.778vw, 40px); }

  .disco__carousel {
    position: absolute;
    left: 35.49vw;                                       /* 511 */
    top: 21.05%;                                         /* 200 */
  }
  .disco__controls { margin-top: clamp(14px, 1.53vw, 22px); }
  .disco__arrow { width: clamp(36px, 3.47vw, 50px); }
  .disco__title { font-size: clamp(13px, 1.11vw, 16px); }
  .disco__meta { font-size: clamp(11px, 0.9vw, 13px); }

  .js .disco__panel { clip-path: inset(0 100% 0 0); animation: gallery-wipe 1.3s var(--ease-in-out) 0.1s forwards; }
  .js .disco__backing { clip-path: inset(100% 0 0 0); animation: detail-wipe 1.2s var(--ease-in-out) 0.2s forwards; }
  .js .disco__rule { transform-origin: left center; transform: scaleX(0); animation: gallery-rule 1.3s var(--ease-in-out) 0.4s forwards; }
}
.disco__arrows[hidden] { display: none; }
.disco__caption { margin-left: auto; }


/* ==========================================================================
   Discography detail page (Back link styles come from the News detail section)
   ========================================================================== */
.disco-detail {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 24px) var(--pad-x) calc(var(--footer-h) + var(--band-h, 85px) + 24px);
  color: #000;
}
.disco-detail__panel,
.disco-detail__rule,
.disco-detail__divider { display: none; }

.disco-detail__side { position: relative; padding-bottom: 20px; margin-bottom: 32px; }
/* phones: grey block behind Back + title */
.disco-detail__side::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc((var(--header-h) + 24px + 48px) * -1);
  bottom: 0;
  left: calc(var(--pad-x) * -1);
  right: calc(var(--pad-x) * -1);
  background: var(--light-grey);
}
.disco-detail .eyebrow { margin-bottom: 14px; font-size: 16px; }

.disco-detail__type {
  margin: 0 0 12px;
  color: var(--grey-text);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.disco-detail__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* cover + facts */
.disco-detail__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.disco-detail__cover { margin: 0; overflow: hidden; background: #e6e6e6; }
.disco-detail__cover img { width: 100%; height: auto; }

.disco-detail__facts { margin: 0; padding-top: 4px; }
.disco-detail__facts dt {
  color: var(--grey-text);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.disco-detail__facts dd {
  margin: 4px 0 18px;
  font-size: 16px;
  text-transform: uppercase;
}
.disco-detail__facts small { font-size: 0.7em; }

/* track list */
.disco-detail__tracks {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.disco-detail__track {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 16px;
  border-bottom: 1px solid #d9d9d9;
  text-transform: uppercase;
  transition: background-color 0.4s var(--ease-out);
}
.disco-detail__track-title { transition: transform 0.5s var(--ease-out); font-size: 16px; }
.disco-detail__track-time {
  color: var(--grey-text);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s var(--ease-out);
  font-size: 12px;
}
@media (hover: hover) {
  .disco-detail__track:hover { background: rgba(0, 0, 0, 0.03); }
  .disco-detail__track:hover .disco-detail__track-title { transform: translateX(8px); }
  .disco-detail__track:hover .disco-detail__track-time { color: #000; }
}

/* reveal */
.js .disco-detail__cover { clip-path: inset(100% 0 0 0); animation: detail-wipe 1.3s var(--ease-in-out) 0.3s forwards; }
.js .disco-detail__cover img { transform: scale(1.2); animation: detail-zoom 2s var(--ease-out) 0.3s forwards; }
.js .disco-detail__facts { opacity: 0; transform: translateY(20px); animation: detail-rise 1s var(--ease-out) 0.6s forwards; }
.js .disco-detail__track {
  opacity: 0;
  transform: translateY(20px);
  animation: detail-rise 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.8s + var(--i, 0) * 0.08s);
}

/* ---------- Desktop (1440 × 950 design) ---------- */
@media (min-width: 768px) {
  .disco-detail .disco-detail__facts dt { font-size: 12px; }
  .disco-detail .disco-detail__facts dd { font-size: 16px; }
  .disco-detail .disco-detail__facts dd { margin-top: 8px; }
  .disco-detail {
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    padding: 0;
  }
  .disco-detail__panel {                                 /* grey block, 816 wide */
    display: block;
    position: absolute;
    inset: 0 auto var(--footer-h) 0;
    width: 56.67vw;
    background: var(--light-grey);
  }
  .disco-detail__divider {                               /* vertical line at 561 */
    display: block;
    position: absolute;
    top: 0;
    bottom: var(--footer-h);
    left: 38.96vw;
    width: 1px;
    background: var(--ink-rule);
  }
  .disco-detail__rule {                                  /* hairline at 282, up to the cover */
    display: block;
    position: absolute;
    left: 0;
    top: 29.68%;
    width: 42.36vw;
    height: 1px;
    background: var(--ink-rule);
  }

  .disco-detail__side::before { display: none; }
  .disco-detail__side {
    position: absolute;
    left: var(--pad-x);
    top: 40.3%;
    width: calc(38.96vw - var(--pad-x) - 24px);
    margin: 0;
    padding: 0;
  }
  .disco-detail .eyebrow { margin-bottom: clamp(16px, 1.5vw, 22px); font-size: clamp(16px, 1.667vw, 24px); }
  .disco-detail__type { font-size: clamp(16px, 1.667vw, 24px); margin-bottom: clamp(16px, 1.8vw, 26px); }
  .disco-detail__title { font-size: clamp(26px, 2.778vw, 40px); }

  .disco-detail__content {
    position: absolute;
    left: 42.36vw;                                       /* 610 */
    right: calc(var(--col-r) + var(--col-w) + clamp(60px, 6.94vw, 100px));
    top: 13.9%;                                          /* 132 */
    bottom: calc(var(--footer-h) + 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .disco-detail__content::-webkit-scrollbar { display: none; }

  .disco-detail__top {
    grid-template-columns: clamp(200px, 20.83vw, 300px) minmax(0, 1fr);   /* cover 300 */
    gap: clamp(16px, 1.74vw, 25px);
  }
  .disco-detail__facts { padding-top: clamp(40px, 4.2vw, 60px); }
  .disco-detail__facts dt { font-size: clamp(12px, 1.11vw, 16px); }
  .disco-detail__facts dd { font-size: clamp(15px, 1.39vw, 20px); margin: 2px 0 clamp(16px, 1.6vw, 24px); }

  .disco-detail__tracks { margin-top: clamp(24px, 3.26vw, 47px); }
  .disco-detail__track { padding: clamp(16px, 1.6vw, 23px) 20px; font-size: clamp(15px, 1.39vw, 20px); }

  .js .disco-detail__panel { clip-path: inset(0 100% 0 0); animation: gallery-wipe 1.3s var(--ease-in-out) 0.1s forwards; }
  .js .disco-detail__rule { transform-origin: left center; transform: scaleX(0); animation: gallery-rule 1.3s var(--ease-in-out) 0.4s forwards; }
  .js .disco-detail__divider { transform-origin: center top; transform: scaleY(0); animation: news-line 1.4s var(--ease-in-out) 0.2s forwards; }
}
.disco-item__link { display: block; width: 100%; height: 100%; }
.disco-detail__track:last-child { border-bottom: 0; }


