/* =============================================================
   LANES — Hero
   Tokens are centralized here. Adjust :root vars to retune globally.
   ============================================================= */

:root {
  /* Palette — strictly black, white, one warm neutral. */
  --ink: #000000;
  --paper: #ffffff;
  --bone: #f4f1ec; /* warm off-white, page background */
  --ink-12: rgba(0, 0, 0, 0.12);
  --ink-55: rgba(0, 0, 0, 0.55);
  --ink-72: rgba(0, 0, 0, 0.72);

  /* Typography */
  --font-display: "Anton", "Oswald", "Helvetica Neue", Arial, sans-serif; /* hero wordmark — display-weight */
  --font-logo: "Archivo Black", "Helvetica Neue", Arial, sans-serif;     /* nav brand — logo-weight */
  --font-italic: "Fraunces", "Times New Roman", serif;                    /* tagline counterpoint */
  --font-ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Font-feature settings */
  --ff-display: "kern" on;
  --ff-ui: "ss01" on, "kern" on, "tnum" off;
  --ff-tabular: "tnum" on, "lnum" on;

  /* Motion — strong custom curve from Emil's set. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Load-in timing (sub-1.4s total) */
  --t-letter-stagger: 60ms;
  --t-letter-duration: 900ms;
  --t-nav-delay: 600ms;
  --t-nav-duration: 400ms;
  --t-tagline-delay: 900ms;
  --t-tagline-duration: 500ms;
  --t-cta-delay: 1100ms;
  --t-cta-duration: 400ms;
  --t-ticker-delay: 1200ms;
  --t-ticker-duration: 600ms;

  /* Hover micro-timing */
  --t-hover: 250ms;

  /* Spacing */
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(20px, 2.5vw, 32px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bone);
  border: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100%;
}
body {
  color: var(--ink);
  font-family: var(--font-ui);
  font-feature-settings: var(--ff-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100svh;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Grain overlay ---------- */
/* SVG noise via data URI: fractalNoise, 5% opacity, fixed, non-blocking. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: var(--pad-y) var(--pad-x);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.nav__brand {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  justify-self: start;
  padding-block: 2px;
  opacity: 0;
  animation: navFade var(--t-nav-duration) var(--ease-out) var(--t-nav-delay) forwards;
}

.nav__links {
  display: flex;
  gap: clamp(24px, 3vw, 44px);
  justify-self: center;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: navFade var(--t-nav-duration) var(--ease-out) calc(var(--t-nav-delay) + 60ms) forwards;
}
.nav__links a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-weight: 400;
  color: var(--ink-72);
  transition: color var(--t-hover) ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover {
    color: var(--ink);
  }
  .nav__links a:hover::after {
    transform: scaleX(1);
  }
}

.nav__icons {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
  opacity: 0;
  animation: navFade var(--t-nav-duration) var(--ease-out) calc(var(--t-nav-delay) + 120ms) forwards;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  transition: transform 160ms var(--ease-out), opacity var(--t-hover) ease;
  opacity: 0.88;
}
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    opacity: 1;
  }
}
.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn--bag {
  position: relative;
}
.bag-count {
  position: absolute;
  top: 2px;
  right: -2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bone);
  border-radius: 999px; /* the one permitted rounded element */
  font-family: var(--font-ui);
  font-feature-settings: var(--ff-tabular);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

/* Hamburger: hidden on desktop, takes over on mobile. */
.hamburger {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transition: transform 240ms var(--ease-out), opacity 160ms ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg);
}

/* Mobile slide-down menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bone);
  border-top: 1px solid var(--ink-12);
  padding: 16px var(--pad-x) 28px;
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink-12);
}
.mobile-menu li:last-child a {
  border-bottom: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--pad-y) * 4) var(--pad-x) calc(var(--pad-y) * 1.5);
  overflow: hidden;
  isolation: isolate;
}

/* Hero media slot — sits behind everything. Empty by default. */
.hero__media-slot {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media-slot :where(video, img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* When media is added (toggled by script via [data-has-media] on <body>), engage a soft tonal wash. */
body[data-has-media] .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(244, 241, 236, 0.55), rgba(244, 241, 236, 0.85));
  pointer-events: none;
}

/* Wordmark — five letters, each masked from below.
   Anton is condensed display-weight; goes wider per char without going thicker.
   Sized to fill ~93% of viewport width as one architectural block. */
.wordmark {
  margin: 0 auto 0;
  margin-top: auto; /* pushes wordmark to vertical center via the copy's margin-bottom:auto */
  text-align: center;
  font-family: var(--font-display);
  font-feature-settings: var(--ff-display);
  font-weight: 400;
  font-size: clamp(7rem, 27vw, 34rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  justify-content: center;
  gap: 0;
  user-select: none;
  text-transform: uppercase;
}

.wordmark__letter {
  position: relative;
  display: inline-block;
  overflow: hidden;
  /* Provide enough vertical room for descender of S optical curve */
  padding-block: 0.04em;
}
.wordmark__letter > span {
  display: inline-block;
  transform: translateY(105%);
  will-change: transform;
}

/* Hero copy stack — tagline + CTA below wordmark.
   margin-bottom: auto pushes the ticker to the bottom while keeping the copy
   visually anchored just below the wordmark with controlled breathing room. */
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2vw, 22px);
  text-align: center;
  margin-top: clamp(28px, 4vw, 44px);
  margin-bottom: auto;
}

.hero__tagline {
  margin: 0;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "opsz" 14, "SOFT" 100;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.005em;
  color: var(--ink-72);
  opacity: 0;
  transform: translateY(14px);
  animation: rise var(--t-tagline-duration) var(--ease-out) var(--t-tagline-delay) forwards;
}

/* CTA — text + arrow, underline draws on hover. */
.cta {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 2px 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(10px);
  animation: rise var(--t-cta-duration) var(--ease-out) var(--t-cta-delay) forwards;
}
.cta__label {
  position: relative;
}
.cta__label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-hover) var(--ease-out);
}
.cta__arrow {
  display: inline-block;
  transition: transform var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cta:hover .cta__label::after {
    transform: scaleX(1);
  }
  .cta:hover .cta__arrow {
    transform: translateX(4px);
  }
}
.cta:active {
  transform: translateY(10px) scale(0.985);
}
/* After the load-in animation finishes, the cta's resting transform must be identity for :active scale to feel right. */
.cta {
  animation-fill-mode: forwards;
}

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  width: 100%;
  margin-top: 0;
  padding: 14px 0 4px;
  border-top: 1px solid var(--ink-12);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  animation: rise var(--t-ticker-duration) var(--ease-out) var(--t-ticker-delay) forwards;
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 48s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  padding-right: clamp(16px, 2.4vw, 28px);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-55);
  text-transform: uppercase;
  white-space: nowrap;
  font-feature-settings: var(--ff-ui);
}
.ticker__dot {
  display: inline-block;
  color: var(--ink-12);
  transform: translateY(-1px);
  font-size: 10px;
}

/* ---------- Keyframes ---------- */
@keyframes letterReveal {
  0% {
    transform: translateY(105%);
  }
  100% {
    transform: translateY(0%);
  }
}
@keyframes navFade {
  0% {
    opacity: 0;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rise {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Wordmark letter reveal — staggered via inline --i custom property. */
.wordmark__letter > span {
  animation: letterReveal var(--t-letter-duration) var(--ease-out) calc(var(--i) * var(--t-letter-stagger)) both;
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .nav {
    grid-template-columns: 1fr auto;
  }
  .nav__links {
    display: none;
  }
  .nav__icons {
    gap: 12px;
  }
  /* On small screens, show only the bag in the right cluster + hamburger; collapse search/account into the menu. */
  .nav__icons .icon-btn:not(.icon-btn--bag) {
    display: none;
  }
  .hamburger {
    display: inline-flex;
  }

  .wordmark {
    font-size: clamp(4rem, 22vw, 9rem);
    letter-spacing: -0.02em;
    gap: 0;
  }

  .hero {
    padding-top: calc(var(--pad-y) * 6);
  }

  .hero__tagline {
    font-size: 16px;
  }
  .cta {
    font-size: 14.5px;
  }

  .ticker__group {
    font-size: 10px;
    letter-spacing: 0.2em;
    gap: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 420px) {
  .wordmark {
    font-size: 23vw;
    letter-spacing: -0.02em;
    gap: 0;
  }
}

/* =============================================================
   SECTION 2 — EDITORIAL CAMPAIGN IMAGE
   Full-bleed. Sits flush below hero. Image carries the section;
   typography is corner-pinned, restrained, and reveals on scroll.
   ============================================================= */

:root {
  --overlay-padding: 40px;
  --campaign-title-size: clamp(40px, 5vw, 68px);
  --campaign-meta-size: 11px;
}

.campaign {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper);
}

/* Media layer — fills section, sits behind everything. */
.campaign__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.campaign__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  display: block;
  transform: scale(1.08);
  transform-origin: center 60%;
  will-change: transform;
}

/* Top scrim — very subtle vertical wash on the upper 35% to keep
   the meta block and top-right title legible against the white wall
   without darkening the photograph. */
.campaign__scrim--top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 35%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Meta — top left. Small, tracked open. Near-black on the white wall.
   Reads as deliberate magazine-cover masthead, not white-on-white panic. */
.campaign__meta {
  position: absolute;
  top: var(--overlay-padding);
  left: var(--overlay-padding);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  font-size: var(--campaign-meta-size);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0a0a0a;
  font-feature-settings: var(--ff-ui);
}
.campaign__meta-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: rgba(10, 10, 10, 0.45);
}

/* Title — top right. Anton, tight, two lines, right-aligned. */
.campaign__title {
  position: absolute;
  right: var(--overlay-padding);
  top: var(--overlay-padding);
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-feature-settings: var(--ff-display);
  font-weight: 400;
  font-size: var(--campaign-title-size);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0a0a0a;
  text-align: right;
  max-width: 14ch;
}
.campaign__line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em;
}
.campaign__line > [data-reveal="title"] {
  display: inline-block;
  will-change: transform;
}
/* The animated hide-state is applied by JS only when GSAP + IntersectionObserver
   are confirmed available. If JS is unavailable or fails, the title is visible
   by default — degraded gracefully, never broken. */
.js-anim .campaign__line > [data-reveal="title"] {
  transform: translateY(105%);
}
.js-anim .campaign__meta,
.js-anim .campaign__cta {
  opacity: 0;
  transform: translateY(16px);
}

/* CTA — bottom right. Reuses .cta but lightens for dark image. */
.campaign__cta {
  position: absolute;
  right: var(--overlay-padding);
  bottom: var(--overlay-padding);
  z-index: 2;
  animation: none; /* overrides the hero CTA load-in keyframe */
}
.cta--light {
  color: var(--paper);
}

/* ---------- Mobile (≤ 720px) ---------- */
@media (max-width: 720px) {
  :root {
    --overlay-padding: 24px;
  }
  .campaign__title {
    font-size: clamp(34px, 9vw, 44px);
    max-width: 10ch;
  }
  .campaign__meta {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }
  .campaign__meta-rule {
    width: 18px;
  }
  .campaign__cta {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  /* On the narrowest screens, the title can crowd the meta block.
     The meta is left-aligned and the title is right-aligned, so they
     coexist on the top edge — slightly nudge the title down to give
     vertical separation when both wrap. */
  .campaign__title {
    top: calc(var(--overlay-padding) + 28px);
  }
}

/* =============================================================
   SECTION 3 — BRAND DIRECTORY
   Pure typography. Off-white page, near-black type. 3-col grid.
   Names ARE the design — no images, cards, borders, or tints.
   ============================================================= */

.directory {
  position: relative;
  padding: 160px 64px;
  background: var(--bone);
  color: var(--ink);
}

.directory__header {
  max-width: 100%;
  margin: 0 0 120px;
}

.directory__label {
  margin: 0 0 28px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-feature-settings: var(--ff-ui);
}

.directory__title {
  margin: 0;
  font-family: var(--font-display);
  font-feature-settings: var(--ff-display);
  font-weight: 400;
  font-size: clamp(56px, 8.5vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Editorial rule: thin line under the title, broken at the right by A — Z tag. */
.directory__rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 22px;
  width: 100%;
}
.directory__rule-line {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.3);
}
.directory__rule-tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-feature-settings: var(--ff-ui);
}

.directory__subhead {
  margin: 0;
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(0, 0, 0, 0.5);
}

/* Brand grid — 3 cols desktop, 2 tablet, 1 mobile. */
.directory__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 80px;
  row-gap: 32px;
}

.directory__row {
  display: block;
}

.directory__brand {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0 6px;
  cursor: pointer;
  color: var(--ink);
}

.directory__name {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-feature-settings: var(--ff-display);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.directory__name::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease-out);
}

.directory__num {
  display: inline-block;
  margin-top: 0.35em;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-feature-settings: var(--ff-tabular);
  color: rgba(0, 0, 0, 0.4);
  transition: color 280ms var(--ease-out), opacity 280ms var(--ease-out);
  line-height: 1;
}

@media (hover: hover) and (pointer: fine) {
  .directory__brand:hover .directory__name::after {
    transform: scaleX(1);
  }
  .directory__brand:hover .directory__num {
    color: var(--ink);
  }
}

/* JS-driven reveal hide-state. Mirrors the campaign pattern. */
.js-anim .directory [data-dir-reveal],
.js-anim .directory .directory__row {
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
}
.js-anim .directory [data-dir-reveal="label"],
.js-anim .directory [data-dir-reveal="title"],
.js-anim .directory [data-dir-reveal="subhead"] {
  transform: translateY(12px);
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .directory__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
  .directory__name {
    font-size: 36px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .directory {
    padding: 80px 24px;
  }
  .directory__header {
    margin-bottom: 64px;
  }
  .directory__title {
    font-size: 56px;
  }
  .directory__subhead {
    font-size: 16px;
  }
  .directory__list {
    grid-template-columns: 1fr;
    row-gap: 20px;
    column-gap: 0;
  }
  .directory__name {
    font-size: 32px;
  }
}

/* =============================================================
   SECTION 4 — CATEGORY GRID
   Three 4:5 portrait tiles. Image returns to the page; type plays
   support. Whole tile is the link target. Sharp corners only.
   ============================================================= */

.category {
  position: relative;
  padding: 120px 64px 160px;
  background: var(--bone);
  color: var(--ink);
}

.category__header {
  text-align: center;
  margin: 0 auto 80px;
  max-width: 720px;
}

.category__label {
  margin: 0 0 22px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-feature-settings: var(--ff-ui);
}

.category__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-feature-settings: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.category__subhead {
  margin: 0;
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 16px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.5);
}

/* Grid — 3 columns desktop, 16px gap. */
.category__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Tile — whole element is the link. Sharp corners, 4:5 portrait. */
.category__tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1a1a; /* fallback while image loads */
  color: var(--paper);
  cursor: pointer;
  isolation: isolate;
}

.category__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.category__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}

/* Per-tile crop tuning — keeps subjects' faces/torsos visible inside the 4:5 frame. */
.category__tile--men .category__img {
  object-position: center 30%;
}
.category__tile--women .category__img {
  object-position: center 25%;
}
.category__tile--accessories .category__img {
  object-position: center 35%;
}

/* Women tile — the lower-left of this crop is the cream-coloured coat,
   so the default 0.5 scrim isn't strong enough for white type. Deepen
   only this tile's gradient to keep overlay legibility solid. */
.category__tile--women .category__scrim {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
}
@media (hover: hover) and (pointer: fine) {
  .category__tile--women:hover .category__scrim {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 45%,
      rgba(0, 0, 0, 0.78) 100%
    );
  }
}

/* Bottom-only gradient — covers lower half, fully transparent above. */
.category__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.5) 100%
  );
  transition: background 600ms var(--ease-out);
}

/* Overlay — bottom-left, 32px from edges. */
.category__overlay {
  position: absolute;
  left: 32px;
  bottom: 32px;
  right: 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--paper);
}

.category__num {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-feature-settings: var(--ff-tabular);
}

.category__name {
  font-family: var(--font-display);
  font-feature-settings: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--paper);
}

.category__cta {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper);
}
.category__cta-arrow {
  display: inline-block;
  transition: transform 280ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .category__tile:hover .category__img {
    transform: scale(1.04);
  }
  .category__tile:hover .category__scrim {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 45%,
      rgba(0, 0, 0, 0.65) 100%
    );
  }
  .category__tile:hover .category__cta-arrow {
    transform: translateX(6px);
  }
}

/* JS-driven reveal hide-state. */
.js-anim .category [data-cat-reveal="label"],
.js-anim .category [data-cat-reveal="title"],
.js-anim .category [data-cat-reveal="subhead"] {
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity;
}
.js-anim .category [data-cat-reveal="tile"] {
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .category {
    padding: 96px 32px 120px;
  }
  .category__grid {
    gap: 12px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .category {
    padding: 64px 16px 80px;
  }
  .category__header {
    margin-bottom: 48px;
  }
  .category__title {
    font-size: 40px;
  }
  .category__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .category__overlay {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }
  .category__name {
    font-size: 40px;
  }
  .category__cta {
    font-size: 13px;
  }
}

/* =============================================================
   SECTION 5 — NEW ARRIVALS
   First product moment. 4-col editorial grid, no commercial chrome.
   Header is a flex row: left heading block sits opposite the
   "View all" CTA, both anchored to the title baseline.
   ============================================================= */

.products {
  position: relative;
  padding: 160px 64px 120px;
  background: var(--bone);
  color: var(--ink);
}

/* Header — split row: heading left, CTA right, baseline-aligned. */
.products__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin: 0 0 64px;
}

.products__heading {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.products__label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-feature-settings: var(--ff-ui);
}

.products__title {
  margin: 0;
  font-family: var(--font-display);
  font-feature-settings: var(--ff-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

/* "View all 248 products →" — same underline-on-hover treatment as elsewhere. */
.products__viewall {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 2px 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.products__viewall-label {
  position: relative;
}
.products__viewall-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-hover) var(--ease-out);
}
.products__viewall-arrow {
  display: inline-block;
  transition: transform var(--t-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .products__viewall:hover .products__viewall-label::after {
    transform: scaleX(1);
  }
  .products__viewall:hover .products__viewall-arrow {
    transform: translateX(4px);
  }
}

/* Grid — 4 cols desktop, 32px col gap / 64px row gap. */
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 64px;
}

/* Card — whole card is the link. Sharp corners, 4:5 portrait media. */
.product-card {
  display: block;
  color: var(--ink);
  cursor: pointer;
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eae6df; /* faint warm grey frame behind product image */
  transition: background 320ms var(--ease-out);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* No scale on hover — restrained per brief. */
}

/* Info block — left-aligned, stacked. 16px gap below media. */
.product-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 16px;
}

.product-card__brand {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 280ms var(--ease-out);
  font-feature-settings: var(--ff-ui);
}

.product-card__name {
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
}

.product-card__price {
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  font-feature-settings: var(--ff-tabular);
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card__media {
    background: #e0dcd3;
  }
  .product-card:hover .product-card__brand {
    opacity: 1;
  }
}

/* JS-driven reveal hide-state. */
.js-anim .products [data-prod-reveal] {
  opacity: 0;
  transform: translateY(12px);
  will-change: transform, opacity;
}
.js-anim .products [data-prod-reveal="card"] {
  transform: translateY(20px);
}

/* ---------- Tablet (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 48px;
  }
}

/* ---------- Mobile (≤ 720px) ---------- */
@media (max-width: 720px) {
  .products {
    padding: 80px 24px 64px;
  }
  .products__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }
  .products__heading {
    gap: 16px;
  }
  .products__title {
    font-size: 40px;
  }
  .products__viewall {
    font-size: 13px;
  }
  .products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 32px;
  }
  .product-card__info {
    margin-top: 12px;
  }
  .product-card__brand {
    font-size: 10px;
  }
  .product-card__name,
  .product-card__price {
    font-size: 14px;
  }
}

/* =============================================================
   SECTION 6 — BRAND STORY
   Inverted-palette editorial strip. Near-black background with
   near-white type. Asymmetric two-column on desktop (40/60) with
   a 1px vertical rule between them. Stacks on mobile.
   All colors explicit so we never depend on global tokens flipping.
   ============================================================= */
.story {
  --story-bg: #0a0a0a;
  --story-ink: #f4f1ec;
  --story-ink-50: rgba(244, 241, 236, 0.5);
  --story-ink-20: rgba(244, 241, 236, 0.2);

  background: var(--story-bg);
  color: var(--story-ink);
  padding: 160px 64px;
  /* Section 6 is a tonal break; subtle horizontal hairlines top and
     bottom guard the transition from off-white sections above and
     whatever follows below. */
}

.story__inner {
  display: grid;
  grid-template-columns: 40fr 1px 60fr;
  column-gap: 64px;
  max-width: 1320px;
  margin: 0 auto;
  align-items: start;
}

.story__left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--story-ink-50);
  margin: 0;
}

.story__title {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--story-ink);
  margin: 0;
  text-transform: uppercase;
}

/* Each title line is a clip container; the inner <span> is what
   actually translates up for the reveal. padding-block gives the
   clip a little breathing room so Anton's ascenders aren't shaved. */
.story__line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em;
}
.story__line > [data-story-reveal="title"] {
  display: inline-block;
  will-change: transform;
}

.story__rule {
  width: 1px;
  align-self: stretch;
  position: relative;
}

.story__rule-line {
  display: block;
  width: 1px;
  height: 100%;
  background: var(--story-ink-20);
  transform-origin: top;
  will-change: transform;
}

.story__right {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 560px;
}

.story__paragraph {
  font-family: var(--font-ui);
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--story-ink);
  margin: 0;
}

/* Paragraph is composed of line spans so the reveal can stagger
   line-by-line. Each line sits in its own clipping container. */
.story__p-line {
  display: block;
  overflow: hidden;
}
.story__p-line[data-story-reveal="line"] {
  /* Inline display chunks need their own block flow for the clip; we
     animate transform + opacity on the line itself. */
  will-change: transform, opacity;
}

.story__cta {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--story-ink);
  text-decoration: none;
  align-self: flex-start;
  position: relative;
  transition: color var(--t-hover) ease;
}

.story__cta-label {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.story__cta-label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--story-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-hover) var(--ease-out);
}
.story__cta:hover .story__cta-label::after,
.story__cta:focus-visible .story__cta-label::after {
  transform: scaleX(1);
}

.story__cta-arrow {
  display: inline-block;
  transition: transform var(--t-hover) var(--ease-out);
}
.story__cta:hover .story__cta-arrow,
.story__cta:focus-visible .story__cta-arrow {
  transform: translateX(4px);
}

/* ---------- Story: JS hide-states (only when .js-anim) ---------- */
/* JS-only hide states. We intentionally do NOT clip the title via
   CSS — if GSAP fails to load or ScrollTrigger never fires, the
   title must remain visible. JS sets the clipped state via
   gsap.set() inside armStory() and tweens it out. */
.story.js-anim [data-story-reveal="label"],
.story.js-anim [data-story-reveal="cta"] {
  opacity: 0;
}
.story.js-anim .story__rule-line {
  transform: scaleY(0);
}
.story.js-anim [data-story-reveal="line"] {
  opacity: 0;
  transform: translateY(8px);
}

/* ---------- Story: tablet/mobile ---------- */
@media (max-width: 900px) {
  .story {
    padding: 100px 24px;
  }
  .story__inner {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 32px;
  }
  .story__title {
    font-size: 36px;
  }
  .story__paragraph {
    font-size: 17px;
  }
  /* Vertical rule is omitted on mobile — no clean read in a single
     column. Element is hidden but the JS reveal still no-ops safely. */
  .story__rule {
    display: none;
  }
  .story__right {
    gap: 32px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .wordmark__letter > span,
  .nav__brand,
  .nav__links,
  .nav__icons,
  .hero__tagline,
  .cta,
  .ticker {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .ticker__track {
    animation: none !important;
  }
  .cta__arrow,
  .cta__label::after,
  .nav__links a::after {
    transition: none !important;
  }
  /* Campaign section — show final state immediately, no scale/stagger. */
  .campaign__img {
    transform: none !important;
  }
  .campaign__meta,
  .campaign__cta {
    opacity: 1 !important;
    transform: none !important;
  }
  .campaign__line > [data-reveal="title"] {
    transform: none !important;
  }
  /* Directory — show final state immediately. */
  .directory [data-dir-reveal],
  .directory .directory__row {
    opacity: 1 !important;
    transform: none !important;
  }
  .directory__name::after {
    transition: none !important;
  }
  /* Category — show final state immediately. */
  .category [data-cat-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .category__img,
  .category__scrim,
  .category__cta-arrow {
    transition: none !important;
  }
  /* Products — show final state immediately. */
  .products [data-prod-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .product-card__media,
  .product-card__brand,
  .products__viewall-label::after,
  .products__viewall-arrow {
    transition: none !important;
  }
  /* Story — show final state immediately. */
  .story [data-story-reveal],
  .story .story__line > [data-story-reveal="title"],
  .story .story__rule-line {
    opacity: 1 !important;
    transform: none !important;
  }
  .story__cta-label::after,
  .story__cta-arrow {
    transition: none !important;
  }
  /* Newsletter + Footer — no motion to disable, hover only. Reset
     the focus-thicken transition so it doesn't animate. */
  .newsletter__input,
  .newsletter__field,
  .newsletter__submit-arrow,
  .newsletter__submit-label,
  .footer__link::after,
  .footer__social-link::after {
    transition: none !important;
  }
}

/* =============================================================
   SECTION 7A — NEWSLETTER
   Off-white background (matches sections 1–5). Centered editorial
   composition. Inline underline-only email form. Subscribe-on-submit
   simulates success by swapping label text.
   ============================================================= */
.newsletter {
  background: var(--bone);
  color: var(--ink);
  padding: 160px 64px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.newsletter__label {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.newsletter__title {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 80px;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.newsletter__line {
  display: block;
}

.newsletter__subhead {
  margin: 32px 0 0;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink-55);
  max-width: 540px;
}

.newsletter__form {
  margin: 48px 0 0;
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: stretch;
  gap: 16px;
  /* Single shared bottom border across input + button. */
  border-bottom: 1px solid var(--ink);
  transition: border-bottom-width 200ms var(--ease-out);
}
/* When focus lands inside the form, the shared bottom border thickens
   to 2px without nudging surrounding layout (we compensate with margin). */
.newsletter__form:focus-within {
  border-bottom-width: 2px;
  margin-bottom: -1px;
}

.newsletter__field {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
}

.newsletter__input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 16px 0;
  font-family: var(--font-ui);
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 0;
}
.newsletter__input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}
.newsletter__input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--bone) inset;
  caret-color: var(--ink);
}

.newsletter__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: transform 200ms var(--ease-out);
}
.newsletter__submit-label {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
.newsletter__submit-arrow {
  display: inline-block;
  transition: transform 200ms var(--ease-out);
}
.newsletter__submit:hover .newsletter__submit-arrow,
.newsletter__submit:focus-visible .newsletter__submit-arrow {
  transform: translateX(6px);
}
.newsletter__submit:hover .newsletter__submit-label,
.newsletter__submit:focus-visible .newsletter__submit-label {
  transform: translateY(-1px);
}

/* Submitted state — swap label text via JS adding .is-submitted. */
.newsletter__form.is-submitted .newsletter__input {
  opacity: 0;
  pointer-events: none;
}
.newsletter__form.is-submitted .newsletter__submit {
  pointer-events: none;
  margin-left: auto;
  margin-right: auto;
}

/* Visually-hidden helper (for the email label). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* =============================================================
   SECTION 7B — FOOTER
   Near-black, matching Section 6. Four-column link grid + bottom bar.
   ============================================================= */
.footer {
  --footer-bg: #0a0a0a;
  --footer-ink: #f4f1ec;
  --footer-ink-80: rgba(244, 241, 236, 0.8);
  --footer-ink-60: rgba(244, 241, 236, 0.6);
  --footer-ink-40: rgba(244, 241, 236, 0.4);
  --footer-ink-15: rgba(244, 241, 236, 0.15);

  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 100px 64px 40px;
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__col--brand {
  gap: 0;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--footer-ink);
  text-transform: uppercase;
}

.footer__tagline {
  margin: 12px 0 0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  color: var(--footer-ink-60);
  line-height: 1.4;
}

.footer__meta {
  margin: 24px 0 0;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--footer-ink-40);
}

.footer__heading {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--footer-ink-40);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  display: inline-block;
  position: relative;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--footer-ink-80);
  padding-bottom: 2px;
  transition: color 200ms var(--ease-out);
}
.footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--footer-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--footer-ink);
}
.footer__link:hover::after,
.footer__link:focus-visible::after {
  transform: scaleX(1);
}

.footer__rule {
  border: 0;
  height: 1px;
  background: var(--footer-ink-15);
  margin: 80px 0 0;
}

.footer__bottom {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__copy {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--footer-ink-40);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer__social-link {
  position: relative;
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--footer-ink-60);
  padding-bottom: 2px;
  transition: color 200ms var(--ease-out);
}
.footer__social-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--footer-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
.footer__social-link:hover,
.footer__social-link:focus-visible {
  color: var(--footer-ink);
}
.footer__social-link:hover::after,
.footer__social-link:focus-visible::after {
  transform: scaleX(1);
}

.footer__social-sep {
  color: var(--footer-ink-40);
  font-size: 11px;
  line-height: 1;
}

/* ---------- Newsletter + Footer: tablet/mobile ---------- */
@media (max-width: 900px) {
  .newsletter {
    padding: 100px 24px 80px;
  }
  .newsletter__title {
    font-size: 48px;
  }
  .newsletter__subhead {
    font-size: 15px;
  }
  .newsletter__form {
    max-width: 100%;
    gap: 12px;
  }
  .newsletter__input,
  .newsletter__submit {
    font-size: 15px;
  }

  .footer {
    padding: 64px 24px 32px;
  }
  /* Stack to a single column — the cleaner read on 390px. The 2-col
     option leaves an awkward orphaned brand block below the link
     columns; stacking gives every block full width and a clear rhythm. */
  .footer__cols {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer__wordmark {
    font-size: 40px;
  }
  .footer__rule {
    margin-top: 56px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
