/* =================================================================
   Riopele · 100 Years - Landing Page
   Vanilla CSS · mobile-first · breakpoints 768px / 1280px
   Design tokens extracted from Figma (node 1:940 tree):
   colors  #FAF7F3 / #1B1B1B / #000 / #444 / #FFF
   type    PP Fragment (display) + BDO Grotesk (grotesk)
   ================================================================= */

/* ---------- PP Fragment (self-hosted, assets/font/pp-fragment/) ------- */
/* Display - PP Fragment Serif */
@font-face {
  font-family: "PP Fragment";
  src: url("../assets/font/pp-fragment/PPFragment-SerifLight.otf")
    format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Fragment";
  src: url("../assets/font/pp-fragment/PPFragment-SerifRegular.otf")
    format("opentype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Fragment";
  src: url("../assets/font/pp-fragment/PPFragment-SerifExtraBold.otf")
    format("opentype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}
/* Body - PP Fragment Sans */
@font-face {
  font-family: "PP Fragment Sans";
  src: url("../assets/font/pp-fragment/PPFragment-SansLight.otf")
    format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Fragment Sans";
  src: url("../assets/font/pp-fragment/PPFragment-SansRegular.otf")
    format("opentype");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Fragment Sans";
  src: url("../assets/font/pp-fragment/PPFragment-SansExtraBold.otf")
    format("opentype");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Custom properties ---------- */
:root {
  /* palette */
  --bg: #faf7f3;
  --ink: #1b1b1b;
  --black: #000000;
  --gray: #444444;
  --gray-soft: #8c8880; /* footer labels / footnotes, as in the Figma */
  --white: #ffffff;
  --line: rgba(27, 27, 27, 0.14);
  --line-soft: rgba(27, 27, 27, 0.08);
  --ink-inv: #f0ede7;

  /* typography - PP Fragment family (Serif for display, Sans for body) */
  --font-serif:
    "PP Fragment", "Hoefler Text", "Big Caslon", Georgia, "Times New Roman",
    serif;
  --font-sans:
    "PP Fragment Sans", "Helvetica Neue", "Inter", Helvetica, Arial, system-ui,
    sans-serif;

  /* fluid display scale (Figma desktop: 80 / 64 / 32) */
  --fs-display: clamp(2.65rem, 7.2vw, 5rem); /* ~42 -> 80 */
  --fs-xl: clamp(2.1rem, 5.2vw, 4rem); /* ~34 -> 64 */
  --fs-lg: clamp(1.6rem, 3.2vw, 2rem); /* ~26 -> 32 */
  --fs-md: clamp(1.25rem, 2vw, 1.5rem); /* 20 -> 24 */
  --fs-body: 1rem; /* 16 */
  --fs-sm: 0.875rem; /* 14 */
  --fs-nav: 0.75rem; /* 12 */

  /* spacing rhythm */
  --gap: 1.25rem;
  --pad-x: 1.5rem;
  --section-y: clamp(4.5rem, 10vw, 9rem);
  --maxw: 1280px;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 72px;
}

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

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

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* serif display helper */
.weave__t1,
.weave__t2,
.fab__name,
.events__title,
.featured__name,
.featured__date,
.footer__statement,
.hero__title {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* =================================================================
   NAVBAR
   ================================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition:
    background 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    transform 0.45s var(--ease),
    opacity 0.35s var(--ease);
}
/* out of the way while the weave section holds the screen (toggled by JS) */
.nav.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .nav {
    transition: none;
  }
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  height: var(--nav-h);
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
/* blur effect on scroll (toggled by JS) */
.nav.is-scrolled {
  background: rgba(250, 247, 243, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
/* solid white while the timeline rail runs underneath the bar */
.nav.is-over-tl {
  background: var(--white);
}
/* over the dark hero, links are light until scrolled */
.nav.is-over-hero:not(.is-scrolled) {
  color: var(--white);
}

/* the two prints sit in the same grid cell, so swapping them costs no layout */
.nav__logo {
  display: inline-grid;
  align-items: center;
  color: inherit;
}
.logo-mark {
  grid-area: 1 / 1;
  height: 52px; /* the 100 + Riopele signature mark - tall enough to read the script */
  width: auto;
  transition: opacity 0.4s var(--ease);
}
/* black by default; white only while the dark hero is behind an unscrolled bar */
.logo-mark--light {
  opacity: 0;
}
.nav.is-over-hero:not(.is-scrolled) .logo-mark--light {
  opacity: 1;
}
.nav.is-over-hero:not(.is-scrolled) .logo-mark--dark {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark {
    transition: none;
  }
}

/* menu · language switch · burger, together on the right */
.nav__end {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* EN / PT - set like the menu links, always the language you can switch to */
.nav__lang {
  position: relative;
  z-index: 110; /* stays reachable over the open mobile menu */
  font-size: var(--fs-nav);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 0;
}
.nav__lang::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__lang:hover::after,
.nav__lang:focus-visible::after {
  transform: scaleX(1);
}
/* EN | PT and the 100 mark inside the menu - mobile only */
.nav__langs,
.nav__menu-logo {
  display: none;
}
.nav__menu a {
  font-size: var(--fs-nav);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 2px 0;
  transition: opacity 0.25s var(--ease);
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__menu a:hover::after {
  transform: scaleX(1);
}
.nav__sep {
  font-size: var(--fs-nav);
  opacity: 0.4;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
}
.nav__toggle span {
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

/* =================================================================
   HERO  (CSS keyframe entrance)
   ================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 2.4s var(--ease) both;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0.3) 100%
  );
}
.hero__content {
  padding: 0 var(--pad-x) clamp(2.5rem, 6vw, 4.5rem);
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
}
.hero__eyebrow {
  font-size: var(--fs-nav);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}
.hero__title {
  font-size: var(--fs-display);
  line-height: 0.96;
}
.hero__title span {
  display: block;
}
.hero__years {
  margin-top: 1.25rem;
  font-size: var(--fs-md);
  letter-spacing: 0.18em;
  font-weight: 300;
}
.hero__scroll {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(2.5rem, 6vw, 4.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-nav);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__arrow {
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes heroZoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* hero entrance (load) */
.anim-hero {
  opacity: 0;
  transform: translateY(26px);
  animation: heroIn 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}

/* =================================================================
   Scroll-reveal (IntersectionObserver adds .is-visible)
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =================================================================
   TIMELINE  - immersive horizontal journey (1927 → 1965)
   ================================================================= */
.tl {
  background-color: #fff;
  --tl-h: clamp(540px, 82vh, 760px);
  --tl-gap: clamp(2.5rem, 5vw, 7rem); /* breathing space between panels */
  position: relative;
  padding-block: var(--section-y) clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}
.tl__hint {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  right: var(--pad-x);
  z-index: 6;
  font-size: var(--fs-nav);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference; /* legible over dark hero panel and cream alike */
}
.tl__hint span {
  font-weight: 500;
}
.tl__hint-arrow {
  display: inline-block;
  margin-inline: 1px 4px; /* room for the nudge before the next word */
  animation: hintNudge 2.4s var(--ease) infinite;
}
@keyframes hintNudge {
  0%,
  100% {
    transform: translateX(0);
  }
  55% {
    transform: translateX(5px);
  }
}

.tl__track {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  /* dragging the rail must never select text or lift an image ghost */
  -webkit-user-select: none;
  user-select: none;
}
.tl__track img {
  -webkit-user-drag: none;
}
.tl__track::-webkit-scrollbar {
  display: none;
}
.tl__track.is-dragging {
  cursor: grabbing;
}
.tl__track:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}

.tl__rail {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--tl-gap);
  width: max-content;
  height: var(--tl-h);
  padding-inline: var(--pad-x) clamp(var(--pad-x), 8vw, 8rem);
  /* background-color: #fff; */
}

@media (prefers-reduced-motion: reduce) {
}

/* progressive reveal - each top-level block of a panel fades in on its own,
   the moment IT slides into the viewport (not when its panel does), so wide
   panels keep revealing column by column as you travel. The thread imgs are
   excluded: their visibility belongs to the scroll-drawn mask. */
.tl-panel > :not(.tl-fio) {
  opacity: 0;
  transform: translateX(44px);
}
.tl.is-threaded .tl-panel > .is-in {
  animation: tlFade 0.85s var(--ease) forwards;
}
@keyframes tlFade {
  to {
    opacity: 1;
    transform: none;
  }
}

/* the year numerals get their own beat - they rise after the block lands */
.tl.is-threaded .tl-panel .is-in .tl-year,
.tl.is-threaded .tl-panel .is-in .tl-c1958__year,
.tl.is-threaded .tl-panel .is-in .tl-c1962__year,
.tl.is-threaded .tl-panel .is-in .tl-c1963__year,
.tl.is-threaded .tl-panel .is-in .tl-c1965__year,
.tl.is-threaded .tl-panel > .tl-end__num.is-in {
  animation: tlYear 0.9s var(--ease) 0.5s backwards;
}
/* 1957 - the four boxed digits land one by one */
.tl.is-threaded .tl-panel > .tl-c1957__year.is-in span {
  animation: tlYear 0.7s var(--ease) backwards;
}
.tl.is-threaded .tl-panel > .tl-c1957__year.is-in span:nth-child(1) {
  animation-delay: 0.45s;
}
.tl.is-threaded .tl-panel > .tl-c1957__year.is-in span:nth-child(2) {
  animation-delay: 0.58s;
}
.tl.is-threaded .tl-panel > .tl-c1957__year.is-in span:nth-child(3) {
  animation-delay: 0.71s;
}
.tl.is-threaded .tl-panel > .tl-c1957__year.is-in span:nth-child(4) {
  animation-delay: 0.84s;
}
@keyframes tlYear {
  from {
    opacity: 0;
    transform: translateY(0.45em);
  }
}

/* photos develop in a beat after their block slides into place */
.tl.is-threaded .tl-panel .is-in figure img,
.tl.is-threaded .tl-panel > figure.is-in img {
  animation: tlImg 1s var(--ease) 0.25s backwards;
}
@keyframes tlImg {
  from {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-panel > :not(.tl-fio) {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .tl.is-threaded .tl-panel .is-in .tl-year,
  .tl.is-threaded .tl-panel .is-in .tl-c1958__year,
  .tl.is-threaded .tl-panel .is-in .tl-c1962__year,
  .tl.is-threaded .tl-panel .is-in .tl-c1963__year,
  .tl.is-threaded .tl-panel .is-in .tl-c1965__year,
  .tl.is-threaded .tl-panel > .tl-end__num.is-in,
  .tl.is-threaded .tl-panel > .tl-c1957__year.is-in span,
  .tl.is-threaded .tl-panel .is-in figure img,
  .tl.is-threaded .tl-panel > figure.is-in img {
    animation: none;
  }
}

/* shared panel */
.tl-panel {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
}

/* composed image panels (intro, 1953) - shown at native aspect */
.tl-shot {
  background: var(--ink);
}
.tl-shot img:not(.tl-fio) {
  height: 100%;
  width: auto;
  display: block;
}
/* intro copy over the family photo - placed in --tl-h units (the panel's
   height) so it scales with the photo, as in the original Figma intro */
.tl-shot__title,
.tl-shot__span {
  position: absolute;
  z-index: 2; /* above the thread */
  margin: 0;
  color: var(--white);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}
.tl-shot__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: calc(var(--tl-h) * 0.058);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.tl-shot__title--a {
  /* one line along the curtain, just above the heads */
  left: calc(var(--tl-h) * 0.064);
  top: calc(var(--tl-h) * 0.045);
  white-space: nowrap;
}
.tl-shot__title--b {
  right: calc(var(--tl-h) * 0.07);
  bottom: calc(var(--tl-h) * 0.045); /* mirrors --a's top inset */
}
.tl-shot__span {
  left: calc(var(--tl-h) * 0.064);
  top: 49%;
  font-size: var(--fs-nav);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- dark photo panels (1933, 1962) ---- */
.tl-dark {
  width: clamp(300px, 70vw, 480px);
  overflow: hidden;
  color: var(--white);
  display: flex;
  align-items: flex-end;
}
.tl-dark--slim {
  width: clamp(280px, 62vw, 420px);
}
.tl-dark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.tl-dark:hover img {
  transform: scale(1.05);
}
.tl-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.74),
    rgba(0, 0, 0, 0) 64%
  );
}
.tl-dark__cap {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.tl-dark__cap p {
  font-size: var(--fs-sm);
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.82);
}

/* ---- cream editorial panels ---- */
.tl-cream {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 3vw, 3.5rem);
  padding: clamp(1.75rem, 3vw, 3.25rem);
  width: clamp(480px, 74vw, 780px);
}
.tl-cream--wide {
  width: clamp(700px, 94vw, 1140px);
}
.tl-cream--narrow {
  width: clamp(340px, 64vw, 480px);
}

.tl-cream__head {
  display: flex;
  flex-direction: column;
  align-self: center;
  min-width: 200px;
  max-width: 320px;
}
.tl-cream__head--end {
  align-self: flex-end;
}
.tl-cream__aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  max-width: 220px;
}

/* year typography - light grotesk, as in the Figma */
.tl-year {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.5vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 1rem;
}
.tl-year--light {
  display: block;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 0;
  margin-bottom: 0.6rem;
}
.tl-year--stack {
  display: flex;
  flex-direction: column;
  align-self: center;
  line-height: 0.86;
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin: 0;
}
.tl-year--stack span {
  display: block;
}

.tl-eyebrow {
  font-size: var(--fs-nav);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  max-width: 26ch;
}
.tl-text {
  color: var(--gray);
  font-size: var(--fs-body);
  max-width: 30ch;
}
.tl-cap {
  font-size: var(--fs-sm);
  color: var(--gray);
}
.tl-signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-lg);
  line-height: 1.05;
}

/* figures */
.tl-fig {
  overflow: hidden;
  align-self: center;
}
.tl-fig img {
  display: block;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.tl-fig:hover img {
  transform: scale(1.05);
}
.tl-fig figcaption {
  margin-top: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--gray);
}
.tl-fig--tall img {
  width: clamp(240px, 24vw, 340px);
  height: clamp(300px, 48vh, 480px);
}
.tl-fig--mid img {
  width: clamp(210px, 21vw, 300px);
  height: clamp(260px, 40vh, 380px);
}
.tl-fig--wide img {
  width: clamp(280px, 28vw, 420px);
  height: clamp(230px, 34vh, 330px);
}
.tl-fig--cluster {
  align-self: stretch;
}
.tl-fig--cluster img {
  width: clamp(240px, 23vw, 330px);
  height: 100%;
}
.tl-fig--silk {
  margin-top: 1.25rem;
  align-self: flex-start;
  overflow: visible;
}
.tl-fig--silk img {
  width: clamp(150px, 15vw, 200px);
  height: auto;
}

.tl-grid2 {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-self: center;
}
.tl-grid2 .tl-fig img {
  width: clamp(170px, 17vw, 230px);
  height: clamp(130px, 14vh, 160px);
}

/* ---- 1927 editorial spread (matches Figma layout) ---- */
.tl-c1927 {
  display: grid;
  grid-template-columns: minmax(150px, 220px) auto minmax(210px, 300px);
  gap: clamp(2.5rem, 0vw, 8.5rem); /* generous air between text and photos */
  width: clamp(960px, 99vw, 1420px);
  height: 100%;
  padding: clamp(2.5rem, 4.5vw, 4.5rem) clamp(2.5rem, 4.5vw, 5rem);
}
.tl-c1927__col {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tl-c1927__left .tl-year {
  margin-bottom: 0;
  font-size: clamp(2.4rem, 3.4vw, 3rem);
}
.tl-c1927__cap1 {
  margin-block: auto;
  max-width: 21ch;
  font-size: var(--fs-sm);
} /* mid-left, narrow column */

.tl-c1927__right {
  text-align: center;
  justify-content: center;
  gap: clamp(5rem, 17vh, 9.5rem);
}
.tl-c1927__name {
  font-size: var(--fs-sm);
  color: var(--gray);
  margin-bottom: 0.5rem;
}
.tl-c1927__sig {
  font-family: "Snell Roundhand", "Apple Chancery", "Brush Script MT", cursive;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.tl-c1927__cap2 {
  max-width: 36ch;
  font-size: var(--fs-sm);
  margin-inline: auto;
}

/* photo cluster: two large photos, clearly separated; the colour one gently tilted */
.tl-c1927__photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(
    1.75rem,
    2.6vw,
    2.5rem
  ); /* wide enough that the tilted corner never touches ph1 */
}
.tl-c1927__ph {
  overflow: hidden;
}
.tl-c1927__ph img {
  display: block;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.tl-c1927__ph1 img {
  width: clamp(460px, 41vw, 600px);
  height: clamp(320px, 52vh, 420px);
}
.tl-c1927__ph2 {
  position: relative;
  z-index: 2;
  margin-top: clamp(
    0.75rem,
    2.5vh,
    1.5rem
  ); /* sits a touch lower, as in the Figma */
  transform: rotate(-4deg);
  box-shadow: 0 12px 32px rgba(27, 27, 27, 0.12);
}
.tl-c1927__ph2 img {
  width: clamp(235px, 21vw, 305px);
  height: clamp(330px, 54vh, 435px);
}
.tl-c1927__ph1:hover img,
.tl-c1927__ph2:hover img {
  transform: scale(1.04);
}

/* ---- 1933 editorial spread (dark photo + cream, matches Figma) ---- */
.tl-c1933 {
  display: grid;
  grid-template-columns: clamp(340px, 38vw, 520px) 1fr;
  width: clamp(900px, 98vw, 1260px);
  height: 100%;
}
.tl-c1933__photo {
  overflow: hidden;
}
.tl-c1933__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.tl-c1933__photo:hover img {
  transform: scale(1.04);
}
.tl-c1933__body {
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 3.5vw, 3.75rem) clamp(2rem, 4vw, 0rem);
}
.tl-c1933__eyebrow {
  margin-block: auto;
  max-width: 28ch;
  font-weight: 500;
}
.tl-c1933__bottom {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(300px, 1fr);
  gap: clamp(1.25rem, 2.5vw, 3rem);
  align-items: end;
}
.tl-c1933__bottom .tl-year {
  margin: 0;
}
.tl-c1933__bottom .tl-text {
  font-size: var(--fs-sm);
  max-width: none;
}

/* ---- 1952 editorial collage (cluster left + loose collage right, matches Figma) ----
   The stage keeps the Figma proportions (1149 × 900), so every absolute
   position below is the exact fraction measured in the design. */
.tl-c1952 {
  position: relative; /* anchors the thread that leaves the cluster */
  display: flex;
  width: max-content; /* cluster (0.89 × h) + stage (1.28 × h) - exact Figma ratio at any height */
  height: 100%;
}
.tl-c1952__cluster {
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
}
.tl-c1952__cluster img {
  height: 100%;
  width: auto;
}
.tl-c1952__stage {
  position: relative;
  height: 100%;
  aspect-ratio: 1149 / 900;
}
.tl-c1952__year {
  position: absolute;
  left: 8.7%;
  top: 8.9%;
  margin: 0;
  font-size: clamp(2.5rem, 3.9vw, 3.5rem);
}
.tl-c1952__eyebrow {
  position: absolute;
  left: 8.7%;
  top: 29%;
  margin: 0;
  max-width: 16rem;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.tl-c1952__silk {
  position: absolute;
  left: 46.5%;
  top: 15.2%;
  width: 36%;
}
.tl-c1952__jacket {
  position: absolute;
  left: 18.9%;
  top: 41.5%;
  width: 31%;
}
.tl-c1952__silk img,
.tl-c1952__jacket img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply; /* white plates melt into the cream background */
}
.tl-c1952__caps {
  position: absolute;
  left: 62%;
  top: 53.5%;
  width: 23%;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}
.tl-c1952__caps .tl-text {
  font-size: var(--fs-sm);
  max-width: none;
}

/* ---- 1953 dark chapter (photo inset left, matches Figma 1440×900) ---- */
.tl-c1953 {
  position: relative;
  height: 100%;
  aspect-ratio: 1440 / 900;
  background: var(--ink);
  color: var(--bg);
}
.tl-c1953__photo {
  position: absolute;
  left: 1.11%; /* 16 / 1440 */
  top: 1.78%; /* 16 / 900  */
  width: 47.2%; /* 680 / 1440 */
  height: 96.4%; /* 868 / 900  */
  overflow: hidden;
}
.tl-c1953__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.tl-c1953__photo:hover img {
  transform: scale(1.04);
}
/* the body is the positioning stage for year + captions (it carries the
   reveal transform, so absolute children must resolve against it at full size) */
.tl-c1953__body {
  position: absolute;
  inset: 0;
}
.tl-c1953__year {
  position: absolute;
  left: 51.1%; /* 736 / 1440 */
  top: 8.9%; /* 80 / 900   */
  margin: 0;
  font-size: clamp(2.5rem, 3.9vw, 3.5rem);
  color: var(--bg);
}
.tl-c1953__caps {
  position: absolute;
  left: 51.1%;
  bottom: 4.4%; /* caption block ends 40px from the base, as in Figma */
  width: 23.5%; /* 338 / 1440 */
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-size: var(--fs-sm);
  line-height: 1.25;
}
.tl-c1953__caps strong {
  font-weight: 500;
}

/* ---- 1957 spread (wool still · year on a vertical rule · sea photo · captions)
   Sizes are height-relative (Figma h = 900), so the composition keeps its
   exact proportions at any track height. ---- */
.tl-c1957 {
  display: flex;
  align-items: stretch;
  height: 100%;
  padding-left: calc(var(--tl-h) * 0.5); /* airy cream lead-in, as in Figma */
}
.tl-c1957__wool {
  flex: 0 0 auto;
  align-self: center;
  width: calc(var(--tl-h) * 0.661); /* 595 / 900 */
  margin-right: calc(var(--tl-h) * 0.47); /* 423 / 900 */
}
.tl-c1957__wool img {
  width: 100%;
  height: auto; /* native 595 × 389 */
}
.tl-c1957__wool figcaption,
.tl-c1958__ph figcaption {
  margin-top: 1.1rem;
  font-size: var(--fs-nav);
  font-weight: 500;
  letter-spacing: 0.06em;
  /*text-transform: uppercase;*/
}
.tl-c1957__year {
  flex: 0 0 auto;
  width: calc(var(--tl-h) * 0.109); /* 98 / 900 */
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(var(--tl-h) * 0.138); /* 124 / 900 between digits */
  font-weight: 300;
  font-size: clamp(2.5rem, 3.9vw, 3.5rem);
  line-height: 1;
}
.tl-c1957__sea {
  flex: 0 0 auto;
  width: calc(var(--tl-h) * 0.889); /* 800 / 900 - full-height portrait */
  overflow: hidden;
}
.tl-c1957__sea img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.tl-c1957__sea:hover img {
  transform: scale(1.04);
}
.tl-c1957__caps {
  flex: 0 0 auto;
  width: calc(var(--tl-h) * 0.537); /* 483 / 900 */
  padding: calc(var(--tl-h) * 0.089) 0 calc(var(--tl-h) * 0.044)
    calc(var(--tl-h) * 0.044); /* 80 top · 40 bottom · 40 left */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tl-c1957__lead {
  font-size: clamp(1.05rem, 1.67vw, 1.5rem); /* fs 24 */
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.tl-c1957__note {
  font-size: var(--fs-sm);
  line-height: 1.25;
  max-width: 34ch; /* 307 of 483 */
}

/* ---- 1958 spread (year over player · lead · team · note - all baseline y355)
   Height-relative sizing keeps the Figma (h = 900) proportions everywhere. ---- */
.tl-c1958 {
  display: flex;
  align-items: flex-start;
  height: 100%;
}
.tl-c1958__col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: calc(var(--tl-h) * 0.471); /* 424 / 900 */
  height: 100%;
  padding-top: calc(var(--tl-h) * 0.089); /* year at y 80 */
  padding-bottom: calc(var(--tl-h) * 0.018); /* photo ends 16 from base */
}
.tl-c1958__year {
  font-weight: 300;
  font-size: clamp(2.5rem, 3.9vw, 3.5rem); /* fs 56 */
  line-height: 0.95;
}
.tl-c1958__col .tl-c1958__ph {
  margin-top: auto; /* pins the player photo to y 355 (900 − 16 − 529) */
}
.tl-c1958__ph {
  overflow: hidden;
}
.tl-c1958__ph img {
  width: 100%;
  height: auto; /* native 424 × 529 */
  transition: transform 0.9s var(--ease);
}
.tl-c1958__ph:hover img {
  transform: scale(1.04);
}
.tl-c1958__lead,
.tl-c1958__team,
.tl-c1958__note {
  margin-top: calc(var(--tl-h) * 0.394); /* shared top line, y 355 */
}
.tl-c1958__lead {
  flex: 0 0 auto;
  width: max(calc(var(--tl-h) * 0.374), 18.5rem); /* 337 / 900, never cramped */
  margin-left: calc(var(--tl-h) * 0.027); /* 24 */
  font-size: clamp(1.05rem, 1.67vw, 1.5rem); /* fs 24 */
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.tl-c1958__team {
  flex: 0 0 auto;
  width: calc(var(--tl-h) * 0.471);
  margin-left: calc(var(--tl-h) * 0.044); /* 40 */
}
.tl-c1958__note {
  flex: 0 0 auto;
  width: max(calc(var(--tl-h) * 0.327), 16rem); /* 294 / 900, never cramped */
  margin-left: calc(var(--tl-h) * 0.027);
  font-size: var(--fs-sm);
  line-height: 1.25;
}

/* ---- 1962 (dark photo · year + export caption · strip of three stills) ---- */
.tl-c1962 {
  position: relative; /* anchors the passing thread */
  display: flex;
  align-items: center;
  height: 100%;
}
/* Vector 5 - springs from the dark photo's right edge and meanders across */
.tl-c1962__fio {
  position: absolute;
  left: calc(var(--tl-h) * 0.822); /* the photo's right edge (740 / 900) */
  top: 38.7%; /* 348 / 900 */
  width: calc(var(--tl-h) * 1.51); /* 1359 / 900 */
  max-width: none;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 0;
}
.tl-c1962__photo,
.tl-c1962__body,
.tl-c1962__strip {
  position: relative;
  z-index: 1; /* photos and copy ride above the thread */
}
.tl-c1962__photo {
  flex: 0 0 auto;
  height: 98.2%; /* 884 / 900, 8px breathing top and bottom */
  overflow: hidden;
}
.tl-c1962__photo img {
  height: 100%;
  width: auto; /* native 740 × 884 */
}
.tl-c1962__body {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: calc(var(--tl-h) * 0.044); /* 40 */
  padding-top: calc(var(--tl-h) * 0.089); /* year at y 80 */
  padding-bottom: calc(var(--tl-h) * 0.044); /* caption ends 40 up */
  width: max(calc(var(--tl-h) * 0.341), 17rem); /* 307 / 900 */
}
.tl-c1962__year {
  font-weight: 300;
  font-size: clamp(2.5rem, 3.9vw, 3.5rem); /* fs 56 */
  line-height: 1;
}
.tl-c1962__note {
  font-size: var(--fs-sm);
  line-height: 1.25;
}
.tl-c1962__strip {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: calc(var(--tl-h) * 0.267); /* 240 */
  width: calc(var(--tl-h) * 0.222); /* 200 */
  padding-block: calc(var(--tl-h) * 0.089); /* stills at y 80 / 337 / 595 */
}
.tl-c1962__strip img {
  width: 100%;
  height: auto; /* native 200 × 225 */
}

/* ---- 1963 (ready-to-wear collage - overlapping photos, Texlene captions)
   Stage keeps the Figma proportions (1427 × 900); positions are the exact
   design fractions. ---- */
.tl-c1963 {
  position: relative;
  height: 100%;
  aspect-ratio: 1427 / 900;
}
.tl-c1963__stage {
  position: absolute;
  inset: 0;
}
/* Vector 11 - crosses the collage and runs on toward 1965, as in Figma */
.tl-c1963__fio {
  position: absolute;
  left: 59.6%; /* 851 / 1427 */
  top: 29.1%; /* 262 / 900  */
  width: 112.6%; /* 1607 / 1427 - intentionally overflows right */
  max-width: none;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 0; /* photos (z 1–2) and captions sit above */
}
.tl-c1963__year {
  position: absolute;
  left: 0;
  top: 8.9%;
  font-weight: 300;
  font-size: clamp(2.5rem, 3.9vw, 3.5rem);
  line-height: 1;
}
.tl-c1963__eyebrow {
  position: absolute;
  left: 25.2%; /* 359 / 1427 */
  top: 8.9%;
  width: 14%;
  min-width: 10rem;
  font-size: var(--fs-sm);
  line-height: 1.25;
}
.tl-c1963__car {
  position: absolute;
  left: 48.1%; /* 687 / 1427 */
  top: 0.9%;
  width: 51.9%; /* 740 / 1427 */
  z-index: 2; /* the car photo reads as a complete plate, over the sit photo */
  overflow: hidden;
}
.tl-c1963__sit {
  position: absolute;
  left: 25.2%;
  top: 29.8%; /* 268 / 900 */
  width: 36.6%; /* 522 / 1427 */
  z-index: 1;
  overflow: hidden;
}
.tl-c1963__car img,
.tl-c1963__sit img {
  width: 100%;
  height: auto;
}
.tl-c1963__caps {
  position: absolute;
  left: 80.4%; /* 1147 / 1427 */
  bottom: 4.4%;
  width: 19.6%;
  min-width: 15rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: var(--fs-sm);
  line-height: 1.25;
}
.tl-c1963__strong {
  font-weight: 500;
}

/* ---- 1965 (desk photo sitting low · captions top right · year bottom right) ---- */
.tl-c1965 {
  display: flex;
  height: 100%;
}
.tl-c1965__photo {
  flex: 0 0 auto;
  align-self: flex-end;
  margin-bottom: calc(var(--tl-h) * 0.009); /* 8 from the base */
  height: calc(var(--tl-h) * 0.67); /* 603 / 900 */
  overflow: hidden;
}
.tl-c1965__photo {
  position: relative; /* anchors the sound toggle */
}
.tl-video__sound {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(27, 27, 27, 0.45);
  color: var(--white);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tl-video__sound:hover,
.tl-video__sound:focus-visible {
  background: rgba(27, 27, 27, 0.7);
  border-color: var(--white);
}
.tl-video__sound:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.tl-video__sound svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tl-video__spk {
  fill: currentColor;
}
.tl-video__sound .tl-video__on,
.tl-video__sound[aria-pressed="true"] .tl-video__off {
  display: none;
}
.tl-video__sound[aria-pressed="true"] .tl-video__on {
  display: inline;
}
.tl-c1965__photo img,
.tl-c1965__photo video {
  display: block;
  height: 100%;
  width: auto; /* native 966 × 603 */
  aspect-ratio: 1024 / 640; /* the film's frame - holds the width before it loads */
  object-fit: cover;
}
.tl-c1965__col {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-left: calc(var(--tl-h) * 0.111); /* 100 */
  width: max(calc(var(--tl-h) * 0.311), 16rem); /* 280 */
  padding-top: calc(var(--tl-h) * 0.089); /* captions at y 80 */
  padding-bottom: calc(var(--tl-h) * 0.044); /* year ends 40 up */
}
.tl-c1965__caps {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* 32 between the two notes */
  font-size: var(--fs-sm);
  line-height: 1.25;
}
.tl-c1965__strong {
  font-weight: 500;
}
.tl-c1965__year {
  font-weight: 300;
  font-size: clamp(2.5rem, 3.9vw, 3.5rem); /* fs 56 */
  line-height: 1;
}

/* ---- design-true thread segments (positions measured in Figma, h = 900) ----
   Each vector is anchored to its panel and sized against the track height,
   so the yarn always lands exactly where the design put it. */
.tl-fio {
  position: absolute;
  max-width: none;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 0;
  /* drawn by scroll - JS advances --fio-f (0 → 1) as the weaving frontier
     sweeps the track, so every segment picks up exactly where the previous
     one stopped and the yarn reads as one continuous thread */
  --fio-f: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 calc((100% + 90px) * var(--fio-f) - 90px),
    rgba(0, 0, 0, 0) calc((100% + 90px) * var(--fio-f))
  );
  mask-image: linear-gradient(
    90deg,
    #000 calc((100% + 90px) * var(--fio-f) - 90px),
    rgba(0, 0, 0, 0) calc((100% + 90px) * var(--fio-f))
  );
}
@media (prefers-reduced-motion: reduce) {
  .tl-fio {
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
}
.tl-shot,
.tl-c1957,
.tl-c1958 {
  position: relative; /* fio anchors */
}
.tl-fio--v3 {
  left: calc(
    var(--tl-h) * -0.031
  ); /* x −28 - drifts in from before the intro */
  /* the stroke ends at (78.9%, 21.8%) of fio-v3.png - the rest is empty.
     Sized so that tail lands exactly where .tl-fio--i5 picks up: the intro
     photo's right edge (1436/1061 × h) at y 62.6%.
     width = (1.3534 + 0.031) / 0.789 · top = 62.6% − 21.8% × (w × 427/2986) */
  top: 57.13%;
  width: calc(var(--tl-h) * 1.7547);
  mix-blend-mode: normal; /* white stroke straight over the dark intro photo, as designed */
  z-index: 1; /* the thread crosses OVER the intro composition (Figma overlay) */
}
.tl-fio--i5 {
  left: 100%; /* leaves the intro exactly at its right edge (x 1440) */
  top: 62.6%; /* y 563 */
  /* ends exactly where .tl-fio--v6 (1933) starts, behind the 1927 mill photo:
     gap + the 1927 panel (vw-clamped, see .tl-c1927) + gap − v6's 0.842h
     lead-in. A fixed length overshot it under the photo on wide screens and
     fell short on narrow ones. The drop is shortened (62.6% → 74%) so the
     hand-over to v6 sits behind the mill photo, whose foot is at 77.6-81.7%
     of the rail depending on the viewport - no thread shows under it. */
  width: calc(clamp(960px, 99vw, 1420px) + 2 * var(--tl-gap) - var(--tl-h) * 0.842);
  height: calc(var(--tl-h) * 0.114);
}
.tl-fio--v6 {
  left: calc(var(--tl-h) * -0.842); /* enters from the 1927 side (x 2793) */
  top: 40.5%; /* starts at 74% (40.5% + its 0.335h), behind the 1927 mill photo */
  width: calc(var(--tl-h) * 1.418);
}
.tl-fio--v7 {
  left: calc(var(--tl-h) * 0.486); /* x 3988 */
  top: 22%; /* y 198 */
  width: calc(var(--tl-h) * 1.786);
}
.tl-fio--53a {
  /* anchored to the 1952 panel: in the design the head sits exactly on the
     cluster's right edge (x 6060 = 5260 + 800), so it must emerge from behind
     that image at any viewport - 24px tuck under it absorbs layout drift */
  left: calc(var(--tl-h) * 0.889 - 24px); /* cluster is 800/900 × h wide */
  top: 34.1%; /* y 307 */
  width: calc(var(--tl-h) * 1.51);
}
.tl-fio--v8 {
  left: calc(var(--tl-h) * 0.773); /* x 7905 */
  top: 45.9%; /* y 413 */
  /* reaches 4px under the 1957 wool photo's left edge (1.6h plate + 0.122h
     gap + 0.5h lead-in − 0.773h) so the yarn runs into the picture */
  width: calc(var(--tl-h) * 1.455);
}
.tl-fio--v8-dark {
  mix-blend-mode: normal;
  /* only inside the 1953 plate (1.6h wide): 1.455h − (1.6h − 0.773h) */
  clip-path: inset(0 calc(var(--tl-h) * 0.628) 0 0);
}
.tl-fio--v9 {
  left: calc(
    var(--tl-h) * 1.162
  ); /* springs from the wool's right edge (x 9667) */
  top: 23.7%; /* y 213 */
  width: calc(var(--tl-h) * 1.404);
}
.tl-fio--57b {
  left: calc(
    var(--tl-h) * 2.629
  ); /* from the sea photo, on toward 1958 (x 10987) */
  top: 34.1%; /* y 307 */
  width: calc(var(--tl-h) * 1.102);
}
.tl-fio--v10 {
  left: calc(var(--tl-h) * 0.351); /* x 11995 */
  top: 24.3%; /* y 219 */
  width: calc(var(--tl-h) * 1.743);
}

/* ---- end panel ---- */
.tl-end {
  width: clamp(300px, 72vw, 440px);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tl-end__num {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.tl-end__text {
  color: var(--gray);
  margin: 1rem 0 2rem;
  max-width: 22ch;
}
.tl-end__cta {
  align-self: flex-start;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color 0.3s var(--ease);
}
.tl-end__cta:hover {
  border-color: var(--ink);
}

/* =================================================================
   TRANSITION / WEAVE - a single thread becomes fabric as you scroll
   (scroll-scrubbed: the tall section pins, JS drives the progress)
   ================================================================= */
.weave {
  position: relative;
  height: 300vh; /* scroll distance the animation plays over */
  background: #000;
}
.weave__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  /* dvh, not svh: svh is the viewport at its *smallest*, so once a mobile
     browser hides its toolbar the stage stops short of the screen and the
     footage reads as cut off along the bottom edge */
  height: 100dvh;
  overflow: hidden;
  background: #000;
}
.weave__media {
  position: absolute;
  inset: 0;
}
/* the two scrubbed clips - their frames are driven by the scroll, not by playback */
.weave__video,
.weave__video2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* fills the stage; no letterbox seam against the black */
  object-position: center;
  opacity: 0; /* surfaces out of the dark - JS fades it in */
  background: #000;
  /* the footage is already monochrome on black - it needs no grading */
}
/* portrait screens: both clips are 2.9:1, so filling a tall screen would zoom
   past the woven mark - show the whole wide frame instead of cropping it */
@media (max-aspect-ratio: 1 / 1) {
  .weave__video,
  .weave__video2 {
    object-fit: contain;
  }
}
.weave__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 50% 50%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.55) 100%
  );
  opacity: 0;
}
.weave__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: #fff;
  pointer-events: none;
}
.weave__t1,
.weave__t2 {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  padding-inline: var(--pad-x);
  font-size: var(--fs-display);
  line-height: 0.98;
}
.weave__t1 {
  top: clamp(12vh, 16vh, 18vh);
}
.weave__t2 {
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
.weave__link {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(10vh, 12vh, 14vh);
  text-align: center;
  font-size: var(--fs-body);
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: auto;
}
.weave__link span,
.weave__link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 3px;
  transition: border-color 0.3s var(--ease);
}
.weave__link:hover {
  border-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .weave {
    height: auto;
  }
  .weave__sticky {
    position: relative;
  }
  /* no scrub to drive it - hold the celebration clip as a static frame */
  .weave__video {
    display: none;
  }
  .weave__video2 {
    opacity: 1;
  }
  .weave__scrim {
    opacity: 0.5;
  }
  .weave__t1 {
    top: clamp(8vh, 12vh, 14vh);
  }
  .weave__t1,
  .weave__t2,
  .weave__link {
    opacity: 1;
  }
}

/* =================================================================
   FABRICS / ARCHIVAL FABRICS - 3-column editorial (matches Figma)
   ================================================================= */
.fab {
  position: relative;
  display: flex; /* mobile: stacked */
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}
.fab__col {
  position: relative;
  min-width: 0;
}

/* left - flowing silk video on white */
.fab__silk {
  display: grid;
  place-items: center;
  padding: 0;
  background: #fff;
  aspect-ratio: 1 / 1;
}
.fab__video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the column - larger, more present silk */
  mix-blend-mode: multiply; /* drops the video's white background onto the white column */
  transition: opacity 0.26s ease;
}
/* media crossfade while the selected fabric swaps */
.fab__video.is-swapping,
.fab__portrait img.is-swapping {
  opacity: 0;
}

/* centre - full-bleed portrait */
.fab__portrait {
  overflow: hidden;
  height: clamp(360px, 56vh, 520px);
}
.fab__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.26s ease;
}

/* right - fabric details */
.fab__detail {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: clamp(2rem, 7vw, 3rem) clamp(1.5rem, 5vw, 3.5rem)
    clamp(5.5rem, 14vw, 7rem);
}
.fab__eyebrow {
  font-size: var(--fs-nav);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.9rem;
}
.fab__name {
  font-size: var(--fs-display);
  line-height: 0.96;
}
.fab__lower {
  margin-top: auto;
  max-width: 40ch;
}
.fab__desc {
  color: var(--gray);
  margin-bottom: 1.75rem;
}
.fab__specs {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.fab__specs div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.fab__specs dt {
  font-size: var(--fs-sm);
  color: var(--gray);
}
.fab__specs dd {
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.fab__tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.fab__tag {
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--ink);
  transition:
    opacity 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}
.fab__tag--solid {
  background: var(--ink);
  color: #fff;
}
.fab__tag--solid:hover {
  opacity: 0.85;
}

/* floating selector pill (overlaps silk + portrait, as in Figma) */
.fab__select {
  position: absolute;
  bottom: clamp(1.25rem, 4vw, 2rem);
  left: 1.25rem;
  right: 1.25rem;
  z-index: 5;
}
.fab__select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 22%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(27, 27, 27, 0.1);
  border-radius: 100px;
  box-shadow: 0 12px 36px rgba(27, 27, 27, 0.12);
  font-size: var(--fs-body);
  letter-spacing: 0.02em;
  transition: background 0.25s var(--ease);
}
.fab__select-btn:hover {
  background: rgba(255, 255, 255, 35%);
}
.fab__chev {
  transition: transform 0.3s var(--ease);
  font-size: 0.9em;
}
.fab__select.is-open .fab__chev {
  transform: rotate(180deg);
}

.fab__options {
  position: absolute;
  bottom: calc(100% + 0.6rem);
  left: 0;
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  /* about six fabrics on show, the rest scroll - and never taller than the
     room under the nav on short screens */
  max-height: min(23rem, calc(100svh - var(--nav-h) - 7rem));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 27, 27, 0.25) transparent;
  background: rgba(255, 255, 255, 50%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(27, 27, 27, 0.1);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(27, 27, 27, 0.16);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.fab__select.is-open .fab__options {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.fab__opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: var(--fs-body);
  transition: background 0.2s var(--ease);
}
.fab__opt:hover,
.fab__opt:focus-visible {
  background: rgba(27, 27, 27, 0.06);
  outline: none;
}
.fab__opt img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}
.fab__opt.is-active {
  font-weight: 500;
}
.fab__opt.is-active::after {
  content: "\2014";
  margin-left: auto;
  color: var(--gray);
}

/* =================================================================
   EVENTS
   ================================================================= */
.events {
  padding-block: var(--section-y);
  background: var(--bg);
}
.events__title {
  font-size: clamp(2.6rem, 9vw, 4.65rem); /* ~90px at 1440, as in the Figma */
  text-transform: uppercase;
  margin-bottom: clamp(3rem, 8vw, 7rem);
}

.featured {
  margin-bottom: clamp(2rem, 3.4vw, 3rem);
}
/* the kicker repeats across the full width in the design */
.featured__kicker {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.featured__kicker span + span {
  display: none; /* mobile shows a single kicker */
}
.featured__card {
  background: var(--ink);
  color: var(--ink-inv);
  display: grid;
  overflow: hidden;
}
.featured__media {
  overflow: hidden;
}
.featured__media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition:
    transform 0.9s var(--ease),
    filter 0.6s var(--ease);
}
.featured__card:hover .featured__media img {
  transform: scale(1.04);
  filter: grayscale(0.6);
}
.featured__body {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
/* name + date over a hairline, as in the Figma */
.featured__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid rgba(240, 237, 231, 0.16);
}
.featured__name {
  font-size: var(--fs-xl);
  text-transform: uppercase;
}
.featured__date {
  font-size: var(--fs-xl);
  text-transform: uppercase;
  text-align: right;
}
.featured__lead {
  font-weight: 500;
  max-width: 24ch;
  line-height: 1.35;
}
.featured__sub {
  color: rgba(240, 237, 231, 0.65);
  font-size: var(--fs-sm);
  max-width: 26ch;
}
/* tag pill stacked over the venue, pinned bottom-right */
.featured__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  text-align: right;
}
.featured__tag {
  font-size: 0.8125rem;
  padding: 0.32rem 0.85rem;
  border: 1px solid rgba(240, 237, 231, 0.35);
  border-radius: 100px;
}
.featured__where {
  font-size: clamp(1.3rem, 1.95vw, 1.75rem);
  font-weight: 400;
  max-width: 15ch;
}

.other__title {
  font-size: var(--fs-md);
  text-align: right;
  margin-bottom: clamp(1.5rem, 2.5vw, 2.25rem);
}
.other__item {
  display: grid;
  gap: 1rem clamp(1.25rem, 2.2vw, 2rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.75rem) 0;
  border-top: 1px solid var(--line);
}
.other__when {
  font-size: var(--fs-md);
}
.other__thumb {
  width: clamp(96px, 8.4vw, 120px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.other__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.other__item:hover .other__thumb img {
  transform: scale(1.08);
}
/* category sits inline beside the name, baseline-aligned */
.other__info {
  display: flex;
  align-items: baseline;
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  flex-wrap: wrap;
}
.other__cat {
  font-size: var(--fs-sm);
  color: var(--gray);
  white-space: nowrap;
}
.other__name {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.other__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: var(--fs-sm);
}

/* =================================================================
   FOOTER
   ================================================================= */
.footer {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--line);
  overflow: hidden; /* clip the bleeding centennial mark */
  padding-block: clamp(3rem, 7vw, 5.5rem) 1.75rem;
}
/* the "100" centennial mark, bleeding off the right edge */
.footer__logo {
  position: absolute;
  top: auto;
  bottom: 1rem;
  right: -54px;
  height: 200px;
  width: auto;
  opacity: 0.12; /* faint watermark on small screens */
  z-index: 0;
  pointer-events: none;
}
.footer__inner {
  position: relative;
  z-index: 1;
}
.footer__statement {
  font-size: clamp(1.9rem, 3.4vw, 3rem); /* ~48px at 1440, as designed */
  text-transform: uppercase;
  margin-bottom: clamp(3rem, 9vw, 6rem);
}

.footer__body {
  display: flex;
  flex-direction: column;
  gap: clamp(2.75rem, 7vw, 4rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 420px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}
.footer__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer__group a,
.footer__group address {
  font-style: normal;
  font-size: var(--fs-body);
  color: var(--ink);
  width: fit-content;
  transition: color 0.25s var(--ease);
}
.footer__group a:hover {
  color: var(--gray);
}
.footer__label {
  font-size: var(--fs-sm);
  color: var(--gray-soft);
  margin-bottom: 0.35rem;
}
.footer__muted {
  color: var(--gray-soft);
}

/* newsletter */
.footer__news-title {
  font-size: clamp(1.3rem, 1.7vw, 1.5rem); /* ~24px, as designed */
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.footer__field {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 460px;
}
.footer__field input {
  flex: 1;
  font: inherit;
  padding: 0.6rem 0.25rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  border-radius: 0;
}
.footer__field input::placeholder {
  color: var(--gray-soft);
}
.footer__field input:focus {
  outline: none;
  border-color: var(--ink);
}
.footer__field button {
  flex: 0 0 auto;
  padding: 0.6rem 1.7rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 100px;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}
.footer__field button:hover {
  background: var(--ink);
  color: var(--bg);
}
.footer__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8125rem;
  color: var(--gray-soft);
  max-width: 460px;
  margin-top: 1rem;
}
/* the design draws the checkbox as a thin circle */
.footer__consent input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 0.1rem;
  border: 1px solid var(--gray-soft);
  border-radius: 50%;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.footer__consent input::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform 0.2s var(--ease);
}
.footer__consent input:checked {
  border-color: var(--ink);
}
.footer__consent input:checked::before {
  transform: scale(1);
}
.footer__consent input:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}
.footer__consent a {
  text-decoration: underline;
}
.footer__feedback {
  font-size: var(--fs-sm);
  color: var(--ink);
  margin-top: 0.75rem;
  min-height: 1.2em;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  /* no hairline in the design; the © column ends with the newsletter block,
     clear of the bleeding centennial mark */
  max-width: 64rem;
  font-size: 0.8125rem;
  color: var(--gray-soft);
}
.footer__bottom a:hover {
  color: var(--ink);
}

/* =================================================================
   RESPONSIVE - 768px (tablet)
   ================================================================= */
@media (min-width: 768px) {
  .fab {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.86fr;
    height: min(92vh, 900px);
  }
  .fab__silk {
    aspect-ratio: auto;
  }
  .fab__portrait {
    height: auto;
  }
  .fab__detail {
    padding: calc(var(--nav-h) + clamp(1.5rem, 3vw, 2.5rem))
      clamp(2rem, 3.5vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
  }
  .fab__select {
    left: 37%;
    right: auto;
    transform: translateX(-50%);
    width: clamp(280px, 38%, 520px);
  }

  .featured__kicker span + span {
    display: inline; /* the kicker repeats 3× across the width */
  }
  .featured__card {
    grid-template-columns: 1fr 1.35fr; /* photo 400 / panel 540, as designed */
    min-height: clamp(400px, 40vw, 576px);
  }
  .featured__media img {
    min-height: 100%;
  }
  /* body: title row / two narrow text columns / foot pinned at the bottom */
  .featured__body {
    display: grid;
    grid-template-columns: minmax(0, 24ch) minmax(0, 24ch) 1fr;
    grid-template-rows: auto auto 1fr;
    gap: clamp(1.5rem, 2.5vw, 2.25rem) clamp(1.5rem, 2.6vw, 2.25rem);
  }
  .featured__row {
    grid-column: 1 / -1;
  }
  .featured__lead {
    grid-column: 1;
  }
  .featured__sub {
    grid-column: 2;
  }
  .featured__foot {
    grid-column: 1 / -1;
    align-self: end;
  }

  /* list rows: when | thumb | info | meta - thumb and info swap on even rows */
  .other__item {
    grid-template-columns: 2.2fr auto 3fr 1.35fr;
  }
  .other__item:nth-of-type(even) {
    grid-template-columns: 2.2fr 3fr auto 1.35fr;
  }
  .other__item:nth-of-type(even) .other__info {
    grid-column: 2;
    grid-row: 1;
  }
  .other__item:nth-of-type(even) .other__thumb {
    grid-column: 3;
    grid-row: 1;
  }
  .other__when {
    grid-column: auto;
  }

  .footer__body {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(3rem, 9vw, 9rem);
  }
  .footer__links {
    max-width: none;
    flex: 0 0 auto;
  }
  .footer__col {
    min-width: 150px;
  }
  .footer__logo {
    top: clamp(2rem, 5vw, 4.5rem);
    bottom: auto;
    right: clamp(-90px, -5vw, -50px);
    height: clamp(360px, 42vw, 560px);
    opacity: 1;
  }
}

/* =================================================================
   RESPONSIVE - 1280px (desktop)
   ================================================================= */
@media (min-width: 1280px) {
  :root {
    --pad-x: 2.5rem;
    --nav-h: 80px;
  }

  .featured__card {
    grid-template-columns: 1fr 1.35fr;
  }
}

/* =================================================================
   MOBILE NAV (max 767px)
   ================================================================= */
@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
    z-index: 110;
  }
  .nav__end {
    gap: 1.25rem;
  }
  /* the mark sits just under the bar; the auto margins share the free
     height so the links stay centred below it and never ride over it */
  .nav__menu:has(.nav__menu-logo) {
    padding-top: var(--nav-h);
  }
  .nav__menu-logo {
    display: block;
    height: 96px;
    width: auto;
    margin-bottom: auto;
  }
  .nav__langs {
    margin-bottom: auto;
  }
  /* on mobile the language lives in the menu (EN | PT), not the bar */
  .nav__lang {
    display: none;
  }
  .nav__langs {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 1rem;
    letter-spacing: 0.08em;
  }
  .nav__menu .nav__langs a {
    font-size: inherit;
    opacity: 0.45;
  }
  .nav__menu .nav__langs a[aria-current] {
    opacity: 1;
  }
  .nav__langs span {
    opacity: 0.35;
  }
  .nav__menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--bg);
    color: var(--ink);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
    visibility: hidden;
  }
  .nav__menu a {
    font-size: 1.5rem;
  }
  .nav__sep {
    display: none;
  }
  .nav.is-open .nav__menu {
    transform: translateY(0);
    visibility: visible;
  }
  .nav.is-open .nav__toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .nav.is-open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.is-open .nav__toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  /* the open menu is a light sheet: the X and EN/PT go dark, even over the
     hero (whose white-bar rule is more specific than .nav.is-open alone) */
  .nav.is-open,
  .nav.is-open.is-over-hero:not(.is-scrolled) {
    color: var(--ink);
  }

  .featured__row {
    flex-direction: column;
    gap: 0.5rem;
  }
  .featured__date {
    text-align: left;
    font-size: var(--fs-lg);
    color: var(--gray);
  }
  .featured__date br {
    display: none;
  }
  .featured__name br {
    display: none;
  }

  .footer__statement {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }
  .footer__links {
    grid-template-columns: 1fr;
    max-width: none;
    gap: clamp(1.75rem, 4vw, 2.5rem);
  }
  .footer__field button {
    padding: 0.6rem 1.3rem;
  }
}
