:root {
  --paper: #efefef;
  --fog: #dcdcde;
  --ink: #0e0e0e;
  --red: #c81e1c;
  --red-text: #b5171c;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: 0.7vw;
  --gap: 0.9vw;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { background: var(--paper); }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; text-decoration: none; }
p, h1, h2 { margin: 0; font-weight: 400; }

.scroll-space { height: 1100vh; }

/* ---------- stage ---------- */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--paper);
}
.stage > section { position: absolute; inset: 0; }

/* ---------- hero ---------- */
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  will-change: filter, opacity;
}
.hero__type {
  position: absolute; inset: 0;
  color: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
}
.hero__type > *, .hero__logo span, .tl { will-change: filter, opacity; }
.hero__logo {
  position: absolute;
  left: 0.3vw; top: -2.15vw;
  font-size: 14.1vw;
  line-height: 1;
  letter-spacing: -0.068em;
  white-space: nowrap;
}
.hero__logo span { display: inline-block; }
.hero__tag {
  position: absolute;
  left: 0.75vw; top: 45.6vh;
  font-size: 1.16vw;
  line-height: 1.42;
  letter-spacing: -0.035em;
}
.tl { display: block; }
.hero__num {
  position: absolute;
  right: 0.45vw; top: 46.5vh;
  font-size: 14.6vw;
  line-height: 1;
  letter-spacing: -0.06em;
}

/* ---------- ring ---------- */
.ring { pointer-events: none; }
.ring__cards { position: absolute; inset: 0; }
.rcard {
  position: absolute;
  left: 0; top: 0;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  will-change: transform, width, height;
}
.rcard img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ring__text {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%);
  text-align: center;
  white-space: nowrap;
  color: var(--red-text);
  line-height: 0.96;
}
.rt { font-size: 7.8vh; letter-spacing: -0.068em; }
.rt--title { font-size: 6.4vh; margin-bottom: 7.6vh; }
.rt--gap2 { margin-top: 3.4vh; }
.rt .w { display: inline-block; opacity: 0; will-change: filter, opacity; }
.rt-dash { margin: 0 0.12em; }

/* ---------- gallery ---------- */
.gallery { opacity: 1; }
.gallery__title {
  position: absolute;
  left: 0.45vw; top: -0.35vw;
  font-size: 3.45vw;
  line-height: 1.1;
  letter-spacing: -0.06em;
  opacity: 0;
}
.gallery__track {
  position: absolute;
  left: var(--pad);
  top: 21.1vh;
  display: flex;
  gap: var(--gap);
  will-change: transform;
  visibility: hidden;
}
.gcard {
  flex: 0 0 auto;
  width: calc((100vw - 2 * var(--pad) - 3 * var(--gap)) / 4);
}
.gcard__img {
  height: 57.6vh;
  overflow: hidden;
  background: #fff;
}
.gcard__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(.2,.7,.1,1);
}
.gcard__meta {
  display: flex;
  justify-content: space-between;
  padding-top: 0.55vh;
  font-size: max(11px, 0.68vw);
  letter-spacing: -0.03em;
  opacity: 0;
  transition: color 0.25s;
}
.gcard:hover .gcard__meta { color: var(--red-text); }
.gcard:hover .gcard__img img { transform: scale(1.025); }

/* ---------- fixed chrome ---------- */
.cta {
  position: fixed;
  top: 1.4vh; right: 0.6vw;
  z-index: 20;
  display: flex; flex-direction: column;
  gap: 0.55vh;
  width: max(150px, 8.2vw);
}
.cta__btn {
  display: flex; align-items: center; justify-content: center;
  height: max(28px, 3.05vh);
  font-size: max(11px, 0.66vw);
  letter-spacing: -0.035em;
  color: #fff;
  transition: background-color 0.25s, color 0.25s;
}
.cta__btn--red { background: var(--red); }
.cta__btn--black { background: #000; }
.cta__btn--red:hover { background: #000; }
.cta__btn--black:hover { background: var(--red); }

.dock {
  position: fixed;
  left: 50%; bottom: 1.3vh;
  transform: translateX(-50%);
  z-index: 20;
  display: flex; align-items: center;
  height: max(30px, 3.35vh);
  padding: 0 max(8px, 0.45vw) 0 max(4px, 0.2vw);
  background: #fff;
  font-size: max(11px, 0.66vw);
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.dock__brand {
  display: flex; align-items: center;
  height: calc(100% - 8px);
  padding: 0 max(8px, 0.45vw);
  margin-right: max(22px, 2.2vw);
  background: var(--red);
  color: #fff;
}
.dock__item { transition: color 0.2s; }
.dock__item:hover, .dock__item.is-active, .dock__btn[aria-expanded="true"] { color: var(--red-text); }
.dock__sep { color: #9a9a9a; margin: 0 max(7px, 0.62vw); }
/* Shortlist is a button that must look exactly like the link items */
.dock__btn {
  appearance: none; border: 0; padding: 0; margin: 0;
  background: none; color: inherit;
  font: inherit; letter-spacing: inherit; line-height: inherit;
  cursor: pointer;
}
/* Invisible 44px-tall tap area around every bar item — the bar itself is unchanged */
.dock__brand, .dock__item { position: relative; }
.dock__brand::after, .dock__item::after {
  content: "";
  position: absolute;
  left: -3px; right: -3px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}

/* ---------- shortlist: card heart ---------- */
.gcard__img { position: relative; }
/* The button itself is the 44x44 tap target; the visible 30px square is drawn inside it,
   so the icon looks exactly as before (square still sits 8px from the image corner). */
.gcard__fav {
  position: absolute;
  top: 1px; right: 1px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 0; padding: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.gcard__fav::before {
  content: "";
  position: absolute;
  inset: 7px;
  background: #fff;
  transition: background-color 0.2s;
}
.gcard__fav svg { position: relative; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.gcard__fav:hover { color: var(--red-text); }
.gcard__fav[aria-pressed="true"] { color: #fff; }
.gcard__fav[aria-pressed="true"]::before { background: var(--red); }
.gcard__fav[aria-pressed="true"] svg { fill: currentColor; }
.gcard__fav:active { transform: scale(0.92); }
.gcard__fav:focus-visible { outline: none; }
.gcard__fav:focus-visible::before { outline: 2px solid var(--red); outline-offset: 2px; }
.dock__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- shortlist: panel above the dock ---------- */
.shortpanel {
  position: fixed;
  left: 50%;
  bottom: calc(1.3vh + max(30px, 3.35vh) + 8px);
  transform: translateX(-50%);
  z-index: 21;
  width: min(340px, calc(100vw - 16px));
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.shortpanel[hidden] { display: none; }
.shortpanel__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e4e4e4;
}
.shortpanel button {
  appearance: none; border: 0; background: none; padding: 0;
  font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer;
}
.shortpanel__close, .shortpanel__rm, .shortpanel__clear { position: relative; color: #6b6b6b; }
.shortpanel__close:hover, .shortpanel__rm:hover, .shortpanel__clear:hover { color: var(--red-text); }
.shortpanel__close::after, .shortpanel__rm::after, .shortpanel__clear::after {
  content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%);
}
.shortpanel__list { list-style: none; margin: 0; padding: 4px 12px; max-height: 50vh; overflow-y: auto; }
.shortpanel__row {
  display: grid;
  grid-template-columns: 40px auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.shortpanel__row:last-child { border-bottom: 0; }
.shortpanel__row img { width: 40px; height: 52px; object-fit: cover; display: block; background: #eee; }
.shortpanel__age { color: #6b6b6b; }
.shortpanel__empty { padding: 14px 0; color: #6b6b6b; }
.shortpanel__foot { padding: 10px 12px; border-top: 1px solid #e4e4e4; text-align: right; }
.shortpanel__foot:has(.shortpanel__clear[hidden]) { display: none; }

/* ---------- phones ---------- */
@media (max-width: 700px) {
  :root { --m-top: 46px; } /* height reserved for the CTA row */

  /* CTA: one full-width row instead of a stacked pair in the corner */
  .cta {
    top: 8px; left: 8px; right: 8px;
    width: auto;
    flex-direction: row;
    gap: 6px;
  }
  .cta__btn { flex: 1 1 0; height: 30px; font-size: 11px; }

  .dock {
    bottom: max(10px, env(safe-area-inset-bottom));
    height: 32px;
    max-width: calc(100vw - 16px);
    font-size: 10px;
  }
  .dock__brand { margin-right: 10px; padding: 0 7px; }
  .dock__sep { margin: 0 4px; }
  .shortpanel { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 32px + 8px); }

  /* hero: wordmark spans the width under the CTA row, copy + number sit low */
  .hero__logo { left: 1.6vw; top: var(--m-top); font-size: 24vw; }
  .hero__tag { top: auto; bottom: 122px; left: 3vw; width: 56vw; font-size: 13px; line-height: 1.38; }
  .hero__num { top: auto; bottom: 104px; right: 2vw; font-size: 30vw; }

  /* manifesto: capped by width so the longest line fits */
  .rt { font-size: min(7.8vh, 11.2vw); }
  .rt--title { font-size: min(6.4vh, 9vw); margin-bottom: 5vh; }
  .rt--gap2 { margin-top: 2.4vh; }

  /* gallery */
  .gallery__title { left: 2.4vw; top: calc(var(--m-top) - 2px); font-size: 11vw; }
  .gallery__track { --card: 64vw; top: calc(50% - var(--card) * 0.62); gap: 8px; }
  .gcard { width: var(--card); }
  .gcard__img { height: calc(var(--card) * 1.3); }
  .gcard__meta { font-size: 12px; padding-top: 6px; }
}
