/* ------------------------------------------------
   Atelier North — Function. Form. Future.
   ------------------------------------------------ */

:root {
  --fog: #e8e6e1;
  --paper: #f4f3f0;
  --ink: #111110;
  --ink-soft: #3a3936;
  --signal: #ff3b00;
  --hairline: #c9c7c0;
  --hairline-dark: #2a2926;

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", sans-serif;

  --gutter: clamp(20px, 3.4vw, 56px);
  --header-h: 76px;
  --content-max: 1680px;

  --ease-ui: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
}

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

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background: var(--fog);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

i {
  font-style: normal;
}

::selection {
  background: var(--signal);
  color: var(--fog);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* ---------- Utilities ---------- */
.label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.7;
  text-transform: uppercase;
}

.label--strong {
  font-weight: 700;
}

.label--ink {
  color: var(--ink);
}

.label--light {
  color: var(--fog);
  opacity: 0.7;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 160ms var(--ease-ui);
}

.link-arrow:active {
  transform: scale(0.97);
}

.link-arrow__icon {
  width: 20px;
  height: 20px;
  transition: transform 220ms var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover .link-arrow__icon {
    transform: translateX(8px);
  }
}

/* ---------- Preloader ---------- */
.an-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px var(--gutter);
  background: var(--fog);
}

html.js .an-loader.is-active {
  display: flex;
}

.an-loader__row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.an-loader__brand {
  font-weight: 700;
  letter-spacing: 0.28em;
}

.an-loader__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.an-loader__count {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: clamp(96px, 22vw, 320px);
  line-height: 0.85;
  text-transform: uppercase;
}

.an-loader__num {
  display: inline-block;
}

.an-loader__panel {
  position: absolute;
  inset: 0;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ---------- Page transition curtain ---------- */
.an-curtain {
  position: fixed;
  inset: 0;
  z-index: 990;
  pointer-events: none;
  visibility: hidden;
}

html.js .an-curtain {
  visibility: visible;
}

.an-curtain__layer {
  position: absolute;
  inset: -1px 0;
  transform: translateY(101%);
}

/* Pre-JS state: cover the page so arrivals never flash content */
html.js .an-curtain__layer {
  transform: translateY(0);
}

.an-curtain__layer--signal {
  background: var(--signal);
  z-index: 1;
}

.an-curtain__layer--ink {
  background: var(--ink);
  z-index: 2;
}

/* ---------- Cursor ---------- */
.an-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  pointer-events: none;
  display: none;
  /* Blend the whole cursor against the page. Must live on the container,
     not the dot/ring — those are isolated inside this stacking context and
     would only blend against transparency (i.e. stay white). */
  mix-blend-mode: difference;
}

html.js.has-cursor .an-cursor {
  display: block;
}

html.js.has-cursor a,
html.js.has-cursor button,
html.js.has-cursor [data-cursor-href] {
  cursor: none;
}

.an-cursor__dot {
  position: fixed;
  top: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.an-cursor__ring {
  position: fixed;
  top: -20px;
  left: -20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 50%;
  transition:
    width 250ms var(--ease-ui),
    height 250ms var(--ease-ui),
    top 250ms var(--ease-ui),
    left 250ms var(--ease-ui),
    background-color 250ms var(--ease-ui),
    border-color 250ms var(--ease-ui);
}

.an-cursor__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 200ms var(--ease-ui),
    transform 200ms var(--ease-ui);
}

/* Brand states bypass the blend so the orange accent / fog panel cursor
   paint true instead of inverting (e.g. cyan over the signal orange). */
.an-cursor.is-view,
.an-cursor.is-invert {
  mix-blend-mode: normal;
}

.an-cursor.is-view .an-cursor__ring {
  width: 76px;
  height: 76px;
  top: -38px;
  left: -38px;
  background: var(--signal);
  border-color: var(--signal);
}

.an-cursor.is-view .an-cursor__dot {
  opacity: 0;
}

.an-cursor.is-view .an-cursor__label {
  opacity: 1;
  transform: scale(1);
}

.an-cursor.is-invert .an-cursor__dot {
  background: var(--fog);
}

.an-cursor.is-invert .an-cursor__ring {
  border-color: var(--fog);
}

/* ---------- Header ---------- */
.an-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Above .an-menu (950) so the burger-X close button paints over the open
     overlay, but below the curtain (990)/loader (1000)/cursor (1001). */
  z-index: 970;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
  padding: 0 var(--gutter);
}

.an-header__brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 280ms var(--ease-ui);
}

.an-header__nav {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  margin-left: auto;
  transition: opacity 280ms var(--ease-ui);
}

/* Menu open: keep the wordmark legible over the dark overlay and hide the
   dark desktop nav links (invisible dark-on-dark + phantom click targets). */
html.menu-open .an-header__brand {
  color: var(--fog);
}

html.menu-open .an-header__nav {
  opacity: 0;
  pointer-events: none;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.an-burger {
  position: relative;
  z-index: 960;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.an-burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition:
    transform 280ms var(--ease-ui),
    background-color 280ms var(--ease-ui);
}

.an-burger.is-open .an-burger__line {
  background: var(--fog);
}

.an-burger.is-open .an-burger__line:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.an-burger.is-open .an-burger__line:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* ---------- Menu overlay ---------- */
.an-menu {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: var(--ink);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}

.an-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: var(--header-h) var(--gutter) 0;
}

.an-menu__nav {
  display: flex;
  flex-direction: column;
}

.an-menu__link {
  display: block;
  overflow: hidden;
  padding: clamp(4px, 1vh, 12px) 0;
  border-bottom: 1px solid var(--hairline-dark);
  color: var(--fog);
  font-family: var(--font-display);
  font-size: clamp(40px, 7.5vh, 88px);
  line-height: 1;
  text-transform: uppercase;
  transition: color 250ms var(--ease-ui);
}

.an-menu__link-text {
  display: inline-block;
  transition: transform 300ms var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
  .an-menu__link:hover {
    color: var(--signal);
  }

  .an-menu__link:hover .an-menu__link-text {
    transform: translateX(24px);
  }
}

.an-menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 0;
}

.an-menu__mail {
  color: var(--fog);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--hairline-dark);
  padding-bottom: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: max(100svh, 720px);
  overflow: hidden;
}

/* Entrance-animated pieces stay hidden until the timeline takes over */
html.js [data-hero],
html.js [data-hero-title],
html.js [data-hero-numeral],
html.js [data-footer-mark] {
  visibility: hidden;
}

.hero__panel {
  position: absolute;
  left: 38%;
  right: 13%;
  top: 21%;
  bottom: 20%;
  background: var(--signal);
}

.hero__panel-meta {
  position: absolute;
  top: clamp(20px, 3.5vw, 44px);
  left: clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__panel-list {
  line-height: 1.9;
}

.hero__expand {
  position: absolute;
  left: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--ink);
  color: var(--signal);
  transition: transform 160ms var(--ease-ui);
}

.hero__expand svg {
  width: 26px;
  height: 26px;
  transition: transform 220ms var(--ease-ui);
}

.hero__expand:active {
  transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
  .hero__expand:hover svg {
    transform: translate(3px, -3px);
  }
}

.hero__figure {
  position: absolute;
  left: 53%;
  width: 30%;
  top: 11%;
  /* Overscan below the hero's bottom edge so the scroll/pointer parallax
     (figure moves up, see initParallax) has image to travel into. Without
     this the crop slices the model's legs at the fold the moment it moves;
     the hero's overflow:hidden clips the extra cleanly. */
  bottom: -10%;
}

.hero__figure-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__figure img,
.hero__drop-thumb img,
.product-card__media img,
.lookbook__item img,
.dv-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__figure img {
  position: absolute;
  inset: 0;
  /* Keep the head/torso framed; let the overscan crop fall through the
     legs below the fold rather than re-centering the model. */
  object-position: 50% 18%;
}

.hero__copy {
  position: absolute;
  left: var(--gutter);
  top: calc(var(--header-h) + 6vh);
  width: 36%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(24px, 4vh, 44px);
  /* This layer overlaps the panel's expand control; let pointer events fall
     through to whatever sits beneath (e.g. .hero__expand) so its :hover is
     reliable. Interactive descendants re-enable themselves below. */
  pointer-events: none;
}

.hero__copy a {
  pointer-events: auto;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 6.6vw, 122px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.hero__title-line {
  display: block;
}

.hero__eyebrow {
  line-height: 1.9;
}

.hero__drop {
  position: absolute;
  left: var(--gutter);
  bottom: 4.5%;
  display: flex;
  align-items: flex-end;
  gap: clamp(16px, 2vw, 32px);
}

.hero__drop-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  min-width: 110px;
}

.hero__drop-thumb {
  display: block;
  width: 76px;
  height: 96px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero__drop-copy {
  line-height: 1.8;
}

.hero__rail {
  position: absolute;
  top: var(--header-h);
  right: 0;
  bottom: 4.5%;
  width: clamp(56px, 5vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.hero__rail-text {
  writing-mode: vertical-rl;
  white-space: nowrap;
  font-size: 10px;
}

.hero__rail-line {
  width: 1px;
  flex: 0 1 90px;
  background: var(--ink);
}

.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  transition:
    background-color 200ms var(--ease-ui),
    color 200ms var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
  .monogram:hover {
    background: var(--ink);
    color: var(--fog);
  }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--ink);
  color: var(--fog);
  padding: clamp(18px, 2.4vw, 32px) 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marquee__group span {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 64px);
  line-height: 1;
  text-transform: uppercase;
  padding: 0 clamp(20px, 2.6vw, 44px);
}

.marquee__group i {
  width: 10px;
  height: 10px;
  background: var(--signal);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(96px, 14vh, 160px) var(--gutter);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.section__head .label {
  flex-basis: 100%;
  color: var(--signal);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 84px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
  max-width: 14em;
}

.section__head .link-arrow {
  margin-left: auto;
  margin-bottom: 8px;
}

/* ---------- Collection preview / grid ---------- */
.preview {
  border-top: 1px solid var(--hairline);
}

.preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
}

.product-card {
  display: block;
}

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper);
}

.product-card__media img {
  transition: transform 700ms var(--ease-ui);
}

.product-card__tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 8px 14px;
  background: var(--signal);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 350ms var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card__media img {
    transform: scale(1.05);
  }

  .product-card:hover .product-card__tag {
    clip-path: inset(0 0 0 0);
  }

  .product-card:hover .product-card__name {
    transform: translateX(8px);
  }
}

.product-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
}

.product-card__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 300ms var(--ease-ui);
}

.product-card__price {
  color: var(--ink-soft);
}

/* ---------- Manifesto ---------- */
.manifesto {
  border-top: 1px solid var(--hairline);
}

.manifesto > .label {
  display: block;
  color: var(--signal);
  margin-bottom: clamp(32px, 5vh, 56px);
}

.manifesto__text {
  max-width: 22em;
  font-size: clamp(24px, 2.8vw, 46px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.manifesto__sub {
  max-width: 34em;
  margin-top: clamp(24px, 4vh, 40px);
  font-size: 15px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--hairline);
}

.stats__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid var(--hairline);
}

.stats__num {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 140px);
  line-height: 0.9;
}

.stats__item .label {
  color: var(--ink-soft);
}

/* ---------- Journal ---------- */
.journal__row {
  display: grid;
  grid-template-columns: 130px 1fr auto 32px;
  align-items: center;
  gap: 24px;
  padding: clamp(20px, 3vh, 32px) 0;
  border-top: 1px solid var(--hairline);
  transition: padding-left 300ms var(--ease-ui);
}

.journal__row:last-of-type {
  border-bottom: 1px solid var(--hairline);
}

.journal__issue {
  color: var(--signal);
}

.journal__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 40px);
  line-height: 1;
  text-transform: uppercase;
}

.journal__date {
  color: var(--ink-soft);
}

.journal__arrow {
  width: 24px;
  height: 24px;
  transition: transform 250ms var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
  .journal__row:hover {
    padding-left: 16px;
  }

  .journal__row:hover .journal__arrow {
    transform: translate(4px, -4px);
  }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--ink);
  color: var(--fog);
  padding: clamp(100px, 14vh, 172px) var(--gutter) 0;
  overflow: hidden;
}

.footer__cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: clamp(70px, 11vh, 132px);
}

.footer__cta-link {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 110px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--fog);
  transition: color 250ms var(--ease-ui);
  align-self: flex-start;
}

@media (hover: hover) and (pointer: fine) {
  .footer__cta-link:hover {
    color: var(--signal);
  }
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: 40px;
  padding: clamp(47px, 7vh, 80px) 0;
  border-top: 1px solid var(--hairline-dark);
}

.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer__link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
  opacity: 0.85;
  transition:
    opacity 200ms var(--ease-ui),
    transform 200ms var(--ease-ui);
}

@media (hover: hover) and (pointer: fine) {
  .footer__link:hover {
    opacity: 1;
    transform: translateX(6px);
  }
}

.footer__note {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.6;
  max-width: 30em;
}

.footer__mark {
  font-family: var(--font-display);
  font-size: 13.2vw;
  line-height: 0.8;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--signal);
  margin-bottom: -0.14em; /* bottom-crop via flow, not transform (GSAP scrubs the transform) */
  pointer-events: none;
}

.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--hairline-dark);
}

/* ================================================
   DROPS PAGE
   ================================================ */
.hero--drop .hero__panel {
  left: 7%;
  right: 56%;
  top: 13%;
  bottom: 13%;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 100%);
}

.hero--drop .hero__figure {
  left: 12%;
  width: 36%;
  top: calc(var(--header-h) + 2vh);
  bottom: 0;
}

.hero--drop .hero__copy {
  left: 56%;
  right: var(--gutter);
  width: auto;
  top: calc(var(--header-h) + 5vh);
}

.hero--drop .hero__expand {
  left: auto;
  right: var(--gutter);
  top: calc(var(--header-h) + 3vh);
  bottom: auto;
  background: var(--ink);
}

.features {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
  width: 100%;
}

.features__intro {
  line-height: 1.9;
}

.features__divider {
  align-self: stretch;
  background: var(--hairline);
}

.features__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.features__item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: right;
}

.features__item i {
  color: var(--signal);
  font-size: 15px;
  font-weight: 500;
}

.hero--drop .hero__drop {
  position: static;
  transform: none;
  padding-right: 0;
}

/* drops page: the rail lives on the left edge, top-anchored */
.hero--drop .hero__rail {
  left: 0;
  right: auto;
  justify-content: flex-start;
  padding-top: 8px;
}

.hero--drop .hero__rail-line {
  flex: 1 1 auto;
}

/* Sticky media + caption swap */
.dv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  padding: clamp(96px, 14vh, 160px) var(--gutter);
  border-top: 1px solid var(--hairline);
}

.dv__media-wrap {
  position: relative;
}

.dv-media {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  aspect-ratio: 3 / 4;
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow: hidden;
  background: var(--paper);
}

.dv-media img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.dv-media img.is-current {
  opacity: 1;
}

/* Desktop pinned view (initStickyCaptions adds .is-pinned): collapse the
   section to one viewport and stack the captions so they crossfade in place
   while the section is pinned. The default tall sticky layout below stays the
   mobile / reduced-motion / no-JS fallback. */
@media (min-width: 1024px) {
  /* Exactly one viewport tall so the pin engages seamlessly. A taller panel
     scrolls partway in and then snaps when it finally pins; sizing it to the
     viewport (centred content, capped media) makes entry continuous. */
  .dv.is-pinned {
    height: 100vh;
    min-height: 0;
    padding-top: clamp(40px, 8vh, 88px);
    padding-bottom: clamp(40px, 8vh, 88px);
    align-content: center;
    align-items: center;
    overflow: hidden;
  }

  .dv.is-pinned .dv-media {
    position: relative;
    top: 0;
    max-height: min(76vh, calc(100vh - 140px));
  }

  .dv.is-pinned .dv__captions {
    display: grid;
    padding: 0;
    gap: 0;
  }

  .dv.is-pinned .dv-caption {
    grid-area: 1 / 1;
    align-self: center;
  }
}

/* Progress indicator generated by initStickyCaptions(), pinned to the bottom
   of the sticky media. */
.dv__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: linear-gradient(
    to top,
    rgba(17, 17, 16, 0.66),
    rgba(17, 17, 16, 0)
  );
  color: var(--fog);
  pointer-events: none;
}

.dv__progress-idx {
  white-space: nowrap;
}

.dv__progress-idx i {
  color: var(--signal);
}

.dv__progress-track {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(244, 243, 240, 0.28);
  overflow: hidden;
}

.dv__progress-fill {
  position: absolute;
  inset: 0;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
}

/* Manual carousel controls (mobile), generated by initManual(). Hidden on
   desktop where the section is scroll-pinned. */
.dv__nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.is-manual .dv__nav {
  display: flex;
}

.dv__nav-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.dv__nav-btn svg {
  width: 18px;
  height: 18px;
}

.dv__nav-btn--next svg {
  transform: rotate(180deg);
}

.dv__nav-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.dv__nav-btn:not(:disabled):hover {
  border-color: var(--ink);
}

.dv__dots {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dv__dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.dv__dot::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.28;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.25s ease,
    background-color 0.25s ease;
}

.dv__dot.is-active::after {
  opacity: 1;
  background: var(--signal);
}

.dv__captions {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 40vh;
  padding: 20vh 0;
}

.dv-caption .label {
  color: var(--signal);
}

.dv-caption h3 {
  margin: 16px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 52px);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.dv-caption p {
  max-width: 26em;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ================================================
   COLLECTION PAGE
   ================================================ */
.page-head {
  padding: calc(var(--header-h) + clamp(48px, 9vh, 110px)) var(--gutter)
    clamp(40px, 7vh, 80px);
}

.page-head__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 200px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.page-head__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(24px, 4vh, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.page-head__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.filter-label {
  position: relative;
  padding: 4px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 200ms var(--ease-ui);
}

.filter-label.is-active,
.filter-label:hover {
  color: var(--ink);
}

.filter-label.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--signal);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--gutter) clamp(96px, 14vh, 160px);
}

/* Lookbook strip — wider than the viewport. Desktop: pinned + horizontally
   scrubbed by initLookbookPin() (adds .is-pinned). Mobile / reduced motion /
   no-JS: a normal swipe-scrollable strip. */
.lookbook {
  border-top: 1px solid var(--hairline);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lookbook::-webkit-scrollbar {
  display: none;
}

.lookbook.is-pinned {
  overflow: hidden;
}

.lookbook__strip {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  width: max-content;
}

.lookbook__item {
  flex: 0 0 clamp(240px, 26vw, 420px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper);
}

@media (min-width: 1024px) {
  .lookbook.is-pinned {
    padding-top: clamp(56px, 8vh, 96px);
    padding-bottom: clamp(56px, 8vh, 96px);
  }

  .lookbook.is-pinned .section__head {
    margin-bottom: clamp(24px, 4vh, 44px);
  }

  .lookbook.is-pinned .lookbook__strip {
    height: min(60vh, 600px);
  }

  .lookbook.is-pinned .lookbook__item {
    flex: 0 0 auto;
    width: auto;
    height: 100%;
  }
}

/* ================================================
   Laptop / short viewport — keep footer from filling the screen
   ================================================ */
@media (max-height: 820px) and (min-width: 1024px) {
  .footer {
    padding-top: clamp(72px, 10vh, 120px);
  }

  .footer__cta {
    padding-bottom: clamp(56px, 9vh, 90px);
  }

  .footer__cta-link {
    font-size: clamp(36px, 5.5vw, 96px);
  }

  .footer__grid {
    padding-top: clamp(40px, 5.5vh, 64px);
    padding-bottom: clamp(40px, 5.5vh, 64px);
  }

  .footer__mark {
    font-size: 12.5vw;
  }
}

/* ================================================
   Responsive — breakpoint scale
   ------------------------------------------------
   Small phone   max-width: 400px                         shrink type/gutter
   Phone         max-width: 639px                         single column
   Tablet        min-width: 640px and max-width: 1023px   2-col, refined hero
   Desktop       min-width: 1024px (above)                full layout + pins
   Large/ultra   min-width: 1792px                        cap + centre content
   Landscape     max-height: 540px and orientation        compress vertical
   ------------------------------------------------
   The min-width tiers are placed AFTER the max-width catch-all blocks so they
   win on larger screens.
   ================================================ */
@media (max-width: 1023px) {
  .an-header__nav {
    display: none;
  }

  /* ---- Hero (sub-desktop): single-column stack with a self-contained media
     band. The orange panel and the figure share the "media" row; the copy and
     everything else stack below — nothing overlaps. An explicit panel HEIGHT
     sizes the shared row reliably: aspect-ratio on a stretched/overlapping grid
     item does not always contribute, which collapses the row and lets the panel
     overflow onto the copy (the original sub-1024 break). ---- */
  .hero {
    height: auto;
    min-height: 100svh;
    padding: calc(var(--header-h) + 4vh) var(--gutter) 48px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "media"
      "drop"
      "rail";
    align-content: start;
    gap: clamp(28px, 5vh, 44px);
  }

  /* Drop every formerly-absolute piece into normal grid flow. */
  .hero__copy,
  .hero__drop,
  .hero__panel,
  .hero__figure,
  .hero__rail {
    position: static;
    inset: auto;
  }

  .hero__copy {
    grid-area: copy;
    width: auto;
  }

  .hero__title {
    font-size: clamp(48px, 12vw, 92px);
  }

  .hero__panel {
    grid-area: media;
    position: relative;
    min-height: 0;
    height: clamp(260px, 64vw, 440px);
    margin-right: calc(var(--gutter) * -1); /* bleed to the right edge */
  }

  /* Figure covers the right portion of the band; the orange panel shows
     through on the left. */
  .hero__figure {
    grid-area: media;
    position: relative;
    align-self: stretch;
    width: 72%;
    justify-self: end;
    margin-right: calc(var(--gutter) * -1);
  }

  /* min-width:0 lets this grid item shrink to the column so its flex children
     wrap instead of expanding the item (and clipping the copy) past the edge. */
  .hero__drop {
    grid-area: drop;
    min-width: 0;
    transform: none;
    flex-wrap: wrap;
    padding-right: 0;
  }

  /* Text column (wraps) + monogram pinned right, so the long "Designed in
     London — Made for everywhere" never runs off the edge on narrow phones. */
  .hero__rail {
    grid-area: rail;
    width: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 16px;
    padding-top: 20px;
    border-top: 1px solid var(--hairline);
  }

  .hero__rail-text {
    writing-mode: horizontal-tb;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero__rail .monogram {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
  }

  .hero__rail-line {
    display: none;
  }

  /* ---- Drops hero: title / features / drop / link are nested inside
     .hero__copy. Promote them with display:contents and give each its own row
     BELOW the media band, so nothing overlaps the busy figure. ---- */
  .hero--drop {
    grid-template-areas:
      "media"
      "title"
      "features"
      "drop"
      "cta"
      "rail";
  }

  .hero--drop .hero__copy {
    display: contents;
  }

  /* Clear the drops-specific absolute offsets (higher specificity than the
     general reset above) so the relatively-positioned panel/figure don't shift
     down onto the copy. */
  .hero--drop .hero__panel,
  .hero--drop .hero__figure {
    inset: auto;
  }

  .hero--drop .hero__panel {
    height: clamp(280px, 72vw, 460px);
    margin-right: calc(var(--gutter) * -1);
    clip-path: polygon(0 0, 100% 0, 100% 86%, 60% 100%, 0 100%);
  }

  .hero--drop .hero__figure {
    width: 78%;
  }

  .hero--drop .hero__title {
    grid-area: title;
    inset: auto;
    max-width: none;
    margin: 0;
    font-size: clamp(46px, 13vw, 84px);
  }

  .hero--drop .features {
    grid-area: features;
  }

  .hero--drop .hero__drop {
    grid-area: drop;
  }

  .hero--drop .hero__copy > .link-arrow {
    grid-area: cta;
    justify-self: start;
  }

  .hero--drop .hero__rail {
    grid-area: rail;
  }

  /* Expand button: top-right corner of the drops media band. */
  .hero--drop .hero__expand {
    grid-area: media;
    position: relative;
    inset: auto;
    z-index: 3;
    justify-self: end;
    align-self: start;
    width: 52px;
    height: 52px;
    margin: clamp(12px, 3vw, 16px) calc(14px - var(--gutter)) 0 0;
  }

  .preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .dv {
    grid-template-columns: 1fr;
  }

  .dv__captions {
    gap: 8vh;
    padding: 6vh 0 0;
  }

  .dv-media {
    position: relative;
    top: 0;
  }

  /* Manual carousel: only the current caption occupies height (stacked in one
     grid cell) so swaps never shift the layout, and the media is the swipe
     viewport. */
  .dv.is-manual .dv-media {
    touch-action: pan-y;
  }

  .dv.is-manual .dv__captions {
    display: grid;
    gap: 0;
    padding: 8vh 0 0;
  }

  .dv.is-manual .dv-caption {
    grid-area: 1 / 1;
  }

  /* Lookbook manual carousel: one framed look at a time (same controls as the
     drops detail). The strip becomes a single 3:4 viewport with the looks
     stacked and crossfaded; the native horizontal scroll is disabled. */
  .lookbook.is-manual {
    overflow: hidden;
  }

  .lookbook.is-manual .lookbook__strip {
    position: relative;
    display: block;
    width: auto;
    aspect-ratio: 3 / 4;
    max-height: calc(100vh - var(--header-h) - 56px);
    touch-action: pan-y;
  }

  .lookbook.is-manual .lookbook__item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    flex: none;
    opacity: 0;
  }

  .lookbook.is-manual .lookbook__item.is-current {
    opacity: 1;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .features__divider {
    display: none;
  }

  .features__item {
    justify-content: flex-start;
    text-align: left;
  }

  .catalog {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .journal__row {
    grid-template-columns: 1fr auto;
  }

  .journal__issue {
    grid-column: 1 / -1;
  }

  .journal__date {
    display: none;
  }

  .preview__grid {
    grid-template-columns: 1fr;
  }

  .catalog {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .an-menu__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ---------- Small phone (≤400px) ---------- */
@media (max-width: 400px) {
  :root {
    --gutter: clamp(16px, 4.6vw, 24px);
  }

  /* Let the title shrink below the global 56px floor so the longest line
     ("Function.") never overflows a 320–360px viewport. */
  .hero__title {
    font-size: clamp(40px, 12.5vw, 64px);
  }

  .hero--drop .hero__title {
    font-size: clamp(40px, 13vw, 60px);
  }

  .page-head__title {
    font-size: clamp(44px, 15vw, 96px);
  }

  /* Tight width: explicit grid — head + thumb on row 1, copy spans row 2. */
  .hero__drop {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "head thumb"
      "copy copy";
    justify-content: start;
    align-items: end;
    gap: 14px 16px;
  }

  .hero__drop-head {
    grid-area: head;
    min-width: 0;
  }

  .hero__drop-thumb {
    grid-area: thumb;
    width: 64px;
    height: 80px;
  }

  .hero__drop-copy {
    grid-area: copy;
  }

  .stats__num {
    font-size: clamp(56px, 18vw, 96px);
  }

  .footer__bar {
    flex-direction: column;
    gap: 8px;
  }
}

/* ---------- Tablet (640–1023px) ---------- */
/* Keep the same robust single-column stack as the phone layout (see the
   ≤1023 block) but scale the type and the media band up to use the width. */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero {
    gap: clamp(36px, 5vh, 56px);
  }

  .hero__title {
    font-size: clamp(60px, 9vw, 96px);
  }

  .hero__panel {
    height: clamp(360px, 52vw, 520px);
  }

  .hero__figure {
    width: 66%;
  }

  .hero--drop .hero__panel {
    height: clamp(380px, 56vw, 560px);
  }

  .hero--drop .hero__figure {
    width: 70%;
  }

  .hero--drop .hero__title {
    font-size: clamp(56px, 8vw, 92px);
  }

  .hero__drop {
    gap: clamp(20px, 3vw, 32px);
  }

  .manifesto__text {
    font-size: clamp(30px, 4.4vw, 44px);
  }

  /* Drops captions can breathe a little more between blocks at tablet width. */
  .dv__captions {
    gap: 12vh;
  }
}

@media (min-width: 1792px) {
  :root {
    --gutter: calc((100vw - var(--content-max)) / 2);
  }
}

/* ---------- Landscape phone (short viewport) ---------- */
/* Compress the vertical rhythm so the stacked hero scrolls rather than
   clipping when height is the constraint. */
@media (max-height: 540px) and (orientation: landscape) {
  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 3vh);
    padding-bottom: 32px;
    gap: 28px;
  }

  .section {
    padding-top: clamp(56px, 12vh, 96px);
    padding-bottom: clamp(56px, 12vh, 96px);
  }

  .an-menu__inner {
    justify-content: flex-start;
    overflow-y: auto;
  }

  .an-menu__link {
    font-size: clamp(28px, 11vh, 56px);
  }
}

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

  html.js [data-hero],
  html.js [data-hero-title],
  html.js [data-hero-numeral],
  html.js [data-footer-mark] {
    visibility: visible;
  }

  .marquee__track {
    transform: none !important;
  }
}
