/* ==========================================================================
   ELPIS FASHION: maison de stylisme, Lomé
   Motion site styles
   ========================================================================== */

:root {
  --ivory: #f4eee6;
  --paper: #ebe3d7;
  --sand: #ddd2c2;
  --ink: #141110;
  --ink-2: #3b302a;
  --muted: #6b5b4f;
  --red: #e93121;        /* the red in the Elpis logo */
  --red-deep: #b32416;   /* the same red, dark enough for small text on ivory */
  --black: #0b0908;      /* text on brand red: 4.7:1 */
  --line: rgba(20, 17, 16, 0.14);
  --line-light: rgba(244, 238, 230, 0.2);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; font-weight: 400; }
ul { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--red); color: var(--black); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

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

/* film grain: ties phone footage and studio photography together */
.grain {
  position: fixed;
  inset: -100%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- type primitives ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.accent { font-style: italic; color: var(--red-deep); }

/* line masks: taller than the glyphs, pulled together to the heading's pitch */
.ln { display: block; overflow: hidden; line-height: 1.14; }
.ln + .ln { margin-top: -0.18em; }
.ln > span { display: inline-block; padding-right: 0.08em; will-change: transform; }

/* word-mark letters */
.mark { display: inline-flex; overflow: hidden; line-height: 1.12; padding: 0 0.12em 0 0.02em; margin: 0 -0.12em 0 -0.02em; }
.mark > span { display: inline-block; will-change: transform; }

/* rolling-label buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn__roll { position: relative; display: block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.btn__roll > span { display: block; transition: transform 0.55s var(--ease); }
.btn__roll > span + span { position: absolute; left: 0; top: 100%; }
.btn:hover .btn__roll > span,
.btn:focus-visible .btn__roll > span { transform: translateY(-100%); }
.btn__arrow { width: 14px; height: 14px; flex: none; transition: transform 0.55s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: var(--red); color: var(--black); }
.btn--ivory { background: var(--ivory); color: var(--ink); }
.btn--ivory:hover { background: var(--red); color: var(--black); }
.btn--red { background: var(--red); color: var(--black); }
.btn--red:hover { background: var(--ink); color: var(--ivory); }
.btn--ghost { border: 1px solid rgba(244, 238, 230, 0.55); color: var(--ivory); }
.btn--ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--line { border: 1px solid currentColor; }
.btn--line:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.link-line { position: relative; display: inline-block; }
.link-line::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.link-line:hover::after, .link-line:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.section-tag {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--muted);
  margin-bottom: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader { display: none; }
.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--ivory);
}
.no-motion .loader { display: none !important; }
.loader__inner { display: grid; justify-items: center; gap: 18px; }
.loader__word { font-family: var(--serif); font-style: italic; font-size: clamp(76px, 13vw, 180px); line-height: 0.9; }
.loader__meta { display: flex; gap: 28px; align-items: center; color: rgba(244, 238, 230, 0.62); }
.loader__count { font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; color: var(--ivory); }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px var(--pad);
  color: var(--ivory);
  transition: color 0.5s var(--ease), background-color 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.header.is-solid { padding-top: 10px; padding-bottom: 10px; -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); }
.header.is-solid[data-theme="light"] { background: rgba(244, 238, 230, 0.9); box-shadow: 0 1px 0 var(--line); }
.header.is-solid[data-theme="dark"] { background: rgba(20, 17, 16, 0.82); box-shadow: 0 1px 0 var(--line-light); }
.header.is-solid[data-theme="red"] { background: rgba(233, 49, 33, 0.94); box-shadow: 0 1px 0 rgba(11, 9, 8, 0.2); }
.header[data-theme="light"] { color: var(--ink); }
.header[data-theme="red"] { color: var(--black); }
.header__nav { display: flex; gap: 28px; }
.header__nav a { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.logo { display: grid; justify-items: center; line-height: 1; }
.logo__name { font-family: var(--serif); font-style: italic; font-size: 34px; letter-spacing: -0.01em; }
.logo__sub { font-size: 8.5px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; margin: 2px -0.42em 0 0; }
.header__cta { justify-self: end; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; }
.lang a { padding: 6px 5px; opacity: 0.55; transition: opacity 0.3s var(--ease); }
.lang a:hover, .lang a[aria-current="page"] { opacity: 1; }
.lang a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.social {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(128, 118, 110, 0.45);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.social svg { width: 17px; height: 17px; }
.social:hover { background: var(--red); color: var(--black); border-color: var(--red); }
.header[data-theme="red"] .social:hover { background: var(--black); color: var(--ivory); border-color: var(--black); }
.header .btn { height: 38px; padding: 0 18px; font-size: 11px; }
.header[data-theme="dark"] .btn { background: var(--ivory); color: var(--ink); }
.header[data-theme="light"] .btn { background: var(--ink); color: var(--ivory); }
.header[data-theme="red"] .btn { background: var(--black); color: var(--ivory); }
.header .btn:hover { background: var(--red); color: var(--black); }
.header[data-theme="red"] .btn:hover { background: var(--ivory); color: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--ink);
  color: var(--ivory);
}
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 11, 10, 0.5) 0%, rgba(14, 11, 10, 0) 18%, rgba(14, 11, 10, 0) 46%, rgba(14, 11, 10, 0.78) 100%),
    linear-gradient(90deg, rgba(14, 11, 10, 0.35) 0%, rgba(14, 11, 10, 0) 40%, rgba(14, 11, 10, 0) 62%, rgba(14, 11, 10, 0.45) 100%);
}
.hero__content {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: clamp(26px, 5vh, 54px);
  display: grid;
  grid-template-columns: 1fr minmax(0, 430px);
  align-items: end;
  gap: 32px;
}
.hero__eyebrow { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; color: rgba(244, 238, 230, 0.85); }
.hero__eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero__word {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(112px, 19vw, 300px);
  letter-spacing: -0.03em;
  margin: -0.2em 0 -0.14em -0.03em;
}
.hero__aside { padding-bottom: 8px; }
.hero__caption { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(244, 238, 230, 0.8); margin-bottom: 16px; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: #f2b8b0; box-shadow: 0 0 0 4px rgba(242, 184, 176, 0.25); flex: none; }
.hero__title { font-family: var(--serif); font-size: clamp(32px, 3vw, 46px); line-height: 1.02; letter-spacing: -0.01em; }
.hero__title em { font-style: italic; }
.hero__lede { margin-top: 14px; font-size: 14.5px; color: rgba(244, 238, 230, 0.86); max-width: 40ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  color: rgba(244, 238, 230, 0.75);
}
.scroll-cue__line { position: relative; width: 1px; height: 40px; background: rgba(244, 238, 230, 0.3); overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--ivory);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ==========================================================================
   La maison
   ========================================================================== */
.intro { position: relative; padding: clamp(110px, 14vw, 210px) var(--pad) clamp(90px, 11vw, 170px); background: var(--ivory); }
.intro__text {
  font-family: var(--serif);
  font-size: clamp(34px, 5.3vw, 86px);
  line-height: 1.03;
  letter-spacing: -0.012em;
  max-width: 23ch;
}
.pill {
  display: inline-block;
  position: relative;
  width: 1.75em;
  height: 0.82em;
  margin: 0 0.06em;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: -0.06em;
  background: var(--sand);
}
.pill video { width: 100%; height: 100%; object-fit: cover; }
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: clamp(60px, 8vw, 120px);
}
.facts li { display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.facts__term { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); line-height: 1; color: var(--ink); }

/* ==========================================================================
   La styliste: Elpis and her award
   ========================================================================== */
.founder { position: relative; overflow: hidden; background: var(--ink); color: var(--ivory); padding: clamp(100px, 12vw, 190px) var(--pad); }
/* the year, outlined and huge, drifting behind the section */
.founder__ghost {
  position: absolute;
  right: -0.03em;
  top: clamp(20px, 4vw, 60px);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(170px, 31vw, 480px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 238, 230, 0.13);
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.founder__grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.founder__media { position: relative; margin: 0; }
.founder__frame { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 2000 / 1275; background: #231d1a; }
.founder__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
/* award seal: the words turn around a star, bridging the photo and the text */
.founder__badge {
  position: absolute;
  right: calc(-1 * clamp(36px, 4.4vw, 76px));
  bottom: calc(-1 * clamp(36px, 4.4vw, 76px));
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(126px, 12.5vw, 184px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--red);
  color: var(--black);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}
.founder__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: founder-spin 24s linear infinite; }
.founder__ring text { font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; fill: currentColor; }
.founder__star { display: block; width: 30%; aspect-ratio: 1; }
.founder__star svg { display: block; width: 100%; height: 100%; fill: currentColor; }
@keyframes founder-spin { to { transform: rotate(360deg); } }
.founder__tag { color: rgba(244, 238, 230, 0.6); margin-bottom: 20px; }
.founder__title { font-family: var(--serif); font-size: clamp(52px, 6.4vw, 112px); line-height: 0.95; letter-spacing: -0.02em; }
.founder__title em { font-style: italic; color: var(--red); }
.founder__award {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.founder__award span + span { display: inline-flex; align-items: center; gap: 16px; color: var(--red); }
.founder__award span + span::before { content: ""; width: 28px; height: 1px; background: rgba(244, 238, 230, 0.4); }
.founder__text { margin-top: 18px; max-width: 44ch; font-size: 16px; color: rgba(244, 238, 230, 0.82); }
.founder__cta { margin-top: 32px; }

/* ==========================================================================
   Story: scroll-scrubbed sequence
   ========================================================================== */
.story { position: relative; height: 100vh; height: 100svh; background: var(--paper); overflow: hidden; }
.story__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(28px, 4vw, 80px);
  height: 100%;
  padding: 92px var(--pad) 96px;
}
.story__left { position: relative; align-self: end; min-height: 300px; }
.chapter { position: absolute; left: 0; right: 0; bottom: 0; }
.chapter__tag { color: var(--muted); margin-bottom: 18px; display: flex; gap: 12px; align-items: center; }
.chapter__tag::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.chapter__title { font-family: var(--serif); font-size: clamp(42px, 4.5vw, 74px); line-height: 0.98; letter-spacing: -0.012em; }
.chapter__title em { font-style: italic; color: var(--red-deep); }
.chapter__text { margin-top: 18px; max-width: 34ch; color: var(--ink-2); }

.story__window {
  position: relative;
  align-self: center;
  height: calc(100svh - 188px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 18px;
  background: var(--sand);
  will-change: clip-path;
}
.story__poster, .story__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__veil { display: none; }
.story__right { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; text-align: right; }
.story__meta { color: var(--muted); }
.story__meta strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; color: var(--ink); text-transform: none; letter-spacing: 0; line-height: 1.1; margin-top: 8px; }
.story__thread { width: 40px; height: 34vh; color: var(--red); }
.story__thread path { fill: none; stroke: currentColor; stroke-width: 1.4; }
.story__count { display: flex; align-items: flex-end; gap: 8px; font-family: var(--serif); }
.story__num { height: 1em; overflow: hidden; font-size: clamp(64px, 7vw, 120px); line-height: 1; font-style: italic; padding-right: 0.1em; }
.story__num-track { display: block; will-change: transform; }
.story__num-track span { display: block; height: 1em; }
.story__total { font-size: 22px; color: var(--muted); padding-bottom: 0.5em; }
.story__progress {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.seg { display: grid; gap: 10px; color: var(--muted); transition: color 0.4s var(--ease); }
.seg.is-active { color: var(--ink); }
.seg__track { height: 2px; background: var(--line); overflow: hidden; }
.seg__fill { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   Les pièces: horizontal
   ========================================================================== */
.look { position: relative; background: var(--ink); color: var(--ivory); overflow: hidden; }
.look__inner {
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 84px 0 30px;
}
.look__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  padding: 0 var(--pad);
  margin-bottom: clamp(22px, 4vh, 44px);
}
.look__title { font-family: var(--serif); font-size: clamp(46px, 6vw, 100px); line-height: 0.95; letter-spacing: -0.015em; }
.look__title em { font-style: italic; color: var(--red); }
.look__hint { display: grid; gap: 10px; max-width: 34ch; color: rgba(244, 238, 230, 0.78); font-size: 14px; padding-bottom: 10px; }
.look__hint .eyebrow { color: rgba(244, 238, 230, 0.6); }
.look__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(20px, 2.6vw, 44px);
  width: max-content;
  padding: 0 var(--pad);
  will-change: transform;
}
.card { flex: none; margin: 0; }
.card:nth-child(even) { margin-top: 7vh; }
.card__media { position: relative; overflow: hidden; border-radius: 3px; background: #231d1a; aspect-ratio: 3 / 4; }
.card--tall .card__media { height: 48vh; }
.card--mid .card__media { height: 39vh; }
.card__media img {
  position: absolute;
  top: 0;
  left: -8%;
  width: 116%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.card__ref, .card__tag {
  position: absolute;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.card__ref { left: 10px; bottom: 10px; padding: 5px 9px; border-radius: 999px; background: var(--ivory); color: var(--ink); }
.card__tag { right: 10px; top: 10px; padding: 5px 9px; border-radius: 999px; background: var(--red); color: var(--black); }
.card__cap { display: grid; gap: 2px; margin-top: 14px; }
.card__name { font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.05; }
.card__desc { font-size: 12.5px; color: rgba(244, 238, 230, 0.7); }
.card__order { justify-self: start; margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #ff8a7d; }
.card__link { position: absolute; inset: 0; z-index: 2; }
.card__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(11, 9, 8, 0); transition: background-color 0.6s var(--ease); pointer-events: none; }
.card__media:hover::after { background: rgba(11, 9, 8, 0.14); }
.card--end { align-self: center; width: clamp(260px, 25vw, 360px); margin-top: 0 !important; padding: 0 clamp(8px, 3vw, 60px) 0 clamp(8px, 2vw, 40px); }
.card--end p { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; margin-bottom: 26px; }
.card__all { display: table; margin-top: 22px; }
.look__bar { margin: clamp(20px, 3.5vh, 36px) var(--pad) 0; height: 1px; background: var(--line-light); overflow: hidden; }
.look__bar-fill { height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   En mouvement: parallax wall of clips
   ========================================================================== */
.reels { padding: clamp(110px, 13vw, 200px) var(--pad) clamp(60px, 8vw, 120px); background: var(--ivory); overflow: hidden; }
.reels__head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 100px); color: var(--muted); }
.reels__title { font-family: var(--serif); font-size: clamp(46px, 6.4vw, 108px); line-height: 0.95; letter-spacing: -0.015em; color: var(--ink); }
.reels__title em { font-style: italic; color: var(--red-deep); }
.reels__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 40px); align-items: start; }
.reels__col { display: grid; gap: clamp(16px, 2.4vw, 40px); will-change: transform; }
.reels__col:nth-child(2) { margin-top: 24vw; }
.reels__col:nth-child(3) { margin-top: 5vh; }
.reel { margin: 0; }
.reel__media { position: relative; overflow: hidden; border-radius: 3px; aspect-ratio: 9 / 16; background: var(--sand); }
.reel__media--sq { aspect-ratio: 1 / 1; }
.reel__media--wide { aspect-ratio: 576 / 620; }
.reel__media--34 { aspect-ratio: 3 / 4; }
.reel__media video { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.1; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { padding: clamp(40px, 6vw, 90px) 0 clamp(70px, 9vw, 130px); background: var(--ivory); overflow: hidden; }
.marquee__row {
  display: flex;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(58px, 10.5vw, 176px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.marquee__row + .marquee__row { font-style: italic; color: var(--red-deep); }
.marquee__inner { display: flex; flex: none; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; flex: none; padding-right: 0.42em; gap: 0.42em; }
.cowrie { position: relative; display: inline-block; width: 0.2em; height: 0.3em; border-radius: 50%; background: var(--red); flex: none; }
.cowrie::after {
  content: "";
  position: absolute;
  left: 50%; top: 18%; bottom: 18%;
  width: 0.022em;
  transform: translateX(-50%);
  background: var(--ivory);
  border-radius: 2px;
}

/* ==========================================================================
   Ils portent Elpis: names only
   ========================================================================== */
.worn { padding: clamp(100px, 12vw, 180px) var(--pad) clamp(80px, 10vw, 150px); background: var(--red); color: var(--black); }
.worn__head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 90px); }
.worn__title { font-family: var(--serif); font-size: clamp(44px, 6vw, 100px); line-height: 0.95; letter-spacing: -0.015em; }
.worn__title em { font-style: italic; }
.worn__lede { max-width: 46ch; font-size: 16px; }
.names { border-bottom: 1px solid rgba(11, 9, 8, 0.3); }
.names li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: clamp(10px, 1.4vw, 18px) 0;
  border-top: 1px solid rgba(11, 9, 8, 0.3);
}
.names__name {
  font-family: var(--serif);
  font-size: clamp(38px, 6.2vw, 104px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.names__name > span { display: inline-block; transition: transform 0.7s var(--ease); }
.names li:hover .names__name > span { transform: translateX(clamp(8px, 1.5vw, 24px)); font-style: italic; }
.names__desc { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-align: right; }
.worn__note { margin-top: 28px; max-width: 60ch; font-size: 15px; }
.worn__note a { font-weight: 600; }

/* ==========================================================================
   Occasions: arches
   ========================================================================== */
.ways { padding: clamp(110px, 13vw, 200px) var(--pad) clamp(90px, 10vw, 160px); background: var(--ivory); }
.ways__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(48px, 7vw, 110px); }
.ways__title { font-family: var(--serif); font-size: clamp(46px, 6.4vw, 108px); line-height: 0.95; letter-spacing: -0.015em; }
.ways__title em { font-style: italic; color: var(--red-deep); }
.ways__head p { max-width: 32ch; color: var(--ink-2); padding-bottom: 8px; }
.ways__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 44px); align-items: end; }
.way:nth-child(2) { margin-bottom: clamp(40px, 7vw, 120px); }
.way__media {
  position: relative;
  aspect-ratio: 3 / 4.3;
  overflow: hidden;
  border-radius: 999px 999px 4px 4px;
  background: var(--sand);
  transform: translateZ(0);
}
.way__media img, .way__media video { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.way__cap { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 18px; }
.way__no { font-size: 11px; letter-spacing: 0.12em; color: var(--muted); padding-top: 9px; }
.way__name { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; }
.way__desc { grid-column: 2; color: var(--ink-2); max-width: 32ch; font-size: 14px; }

/* ==========================================================================
   Formation
   ========================================================================== */
.school {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 7vw, 130px);
  align-items: center;
  padding: clamp(100px, 12vw, 180px) var(--pad);
  background: var(--ink);
  color: var(--ivory);
}
.school__body .eyebrow { color: rgba(244, 238, 230, 0.6); }
.school__title { margin-top: 18px; font-family: var(--serif); font-size: clamp(60px, 9vw, 160px); line-height: 0.9; letter-spacing: -0.02em; }
.school__title em { font-style: italic; color: var(--red); }
.school__lede { margin-top: 26px; max-width: 46ch; font-size: 17px; color: rgba(244, 238, 230, 0.86); }
.school__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: clamp(36px, 5vw, 60px) 0; max-width: 680px; }
.school__cols div { padding-top: 14px; border-top: 1px solid var(--line-light); }
.school__cols h3 { font-family: var(--serif); font-size: 24px; line-height: 1.1; margin-bottom: 8px; }
.school__cols p { color: rgba(244, 238, 230, 0.72); font-size: 14px; }
/* the class montage is 3:4: a flatter arch keeps heads near the top corners in frame */
.school__media { position: relative; aspect-ratio: 3 / 4; width: min(100%, calc(78vh * 3 / 4)); overflow: hidden; border-radius: 50% 50% 4px 4px / 30% 30% 4px 4px; background: #231d1a; justify-self: end; }
.school__media video { width: 100%; height: 100%; object-fit: cover; }
.school__label, .visit__label { position: absolute; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(20, 17, 16, 0.72); color: var(--ivory); }

/* ==========================================================================
   Commander sur mesure
   ========================================================================== */
.fit {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 110px);
  align-items: start;
  padding: clamp(100px, 12vw, 180px) var(--pad) clamp(70px, 8vw, 120px);
  background: var(--paper);
}
.fit__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 999px 999px 4px 4px;
  background: var(--sand);
}
.fit__media img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 20%; will-change: transform; }
.fit__tag { color: var(--muted); margin-bottom: 18px; }
.fit__title { font-family: var(--serif); font-size: clamp(54px, 7vw, 116px); line-height: 0.92; letter-spacing: -0.02em; }
.fit__title em { font-style: italic; color: var(--red-deep); }
.fit__lede { margin-top: 20px; max-width: 46ch; color: var(--ink-2); }

.form { margin-top: clamp(30px, 4vw, 48px); display: grid; gap: 26px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend, .field label { display: block; margin-bottom: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(20, 17, 16, 0.28);
  border-radius: 999px;
  font-size: 13px;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.chip input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.chip:hover span { border-color: var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(20, 17, 16, 0.3);
  background: transparent;
  font-size: 17px;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.field textarea { resize: none; overflow: hidden; min-height: 46px; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: rgba(20, 17, 16, 0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding-top: 6px; }
.form__note { font-size: 13px; color: var(--muted); max-width: 38ch; }

.fit__more { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); margin-top: clamp(20px, 4vw, 60px); align-items: start; }
.acc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1;
}
.acc summary::-webkit-details-marker { display: none; }
.acc__hint { margin-left: auto; color: var(--muted); }
.acc__icon { position: relative; width: 14px; height: 14px; flex: none; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc[open] .acc__icon::after { transform: rotate(0); }
.acc__body { padding: 0 0 26px; color: var(--ink-2); }
.acc__body > p { max-width: 60ch; margin-bottom: 16px; }
.acc__note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; }
.tbl td { padding: 11px 12px 11px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tbl td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.faq dt { font-family: var(--serif); font-size: 22px; line-height: 1.15; color: var(--ink); padding-top: 14px; border-top: 1px solid var(--line); }
.faq dt:first-child { border-top: 0; padding-top: 0; }
.faq dd { margin: 6px 0 16px; max-width: 62ch; }

/* ==========================================================================
   Atelier
   ========================================================================== */
.visit { padding: clamp(100px, 12vw, 180px) var(--pad); background: var(--ivory); }
.visit .section-tag [data-open-status] { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #9a8b80; }
.status-dot.is-open { background: #2f8f4e; box-shadow: 0 0 0 4px rgba(47, 143, 78, 0.18); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
/* Elpis at work: the clip keeps its own 9:16 shape and zooms in a little, anchored
   near the top so her face stays in frame with her hands */
.visit__media { position: relative; aspect-ratio: 9 / 16; width: min(100%, calc(84vh * 9 / 16)); overflow: hidden; border-radius: 999px 999px 4px 4px; background: var(--sand); }
.visit__media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: 50% 6%; }
.visit__side { margin-top: clamp(28px, 4vw, 48px); }
.visit__title { font-family: var(--serif); font-size: clamp(60px, 9vw, 160px); line-height: 0.9; letter-spacing: -0.02em; }
.visit__title em { font-style: italic; color: var(--red-deep); }
.visit__addr { margin-top: 26px; max-width: 42ch; font-size: 17px; color: var(--ink-2); }
.visit__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.visit__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; background: var(--ink); color: var(--ivory); padding: clamp(70px, 9vw, 130px) var(--pad) 26px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.7fr; gap: 32px; }
.footer__lede { font-family: var(--serif); font-size: clamp(28px, 2.8vw, 44px); line-height: 1.06; max-width: 16ch; }
.footer__lede em { font-style: italic; color: var(--red); }
.footer__col .eyebrow { display: block; color: rgba(244, 238, 230, 0.55); margin-bottom: 14px; }
.footer__col li { color: rgba(244, 238, 230, 0.82); font-size: 14px; }
.footer__col li + li { margin-top: 6px; }
.footer__col .socials { display: flex; gap: 10px; }
.footer__col .socials a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 238, 230, 0.3);
  color: var(--ivory);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.footer__col .socials svg { width: 19px; height: 19px; }
.footer__col .socials a:hover { background: var(--red); color: var(--black); border-color: var(--red); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: clamp(56px, 7vw, 100px);
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
  font-size: 12px;
  color: rgba(244, 238, 230, 0.62);
}
.footer__bottom a, .footer__bottom button { color: var(--ivory); font-size: 12px; }

/* floating WhatsApp, phones only */
.wa-float {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 58;
  display: none;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--black);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(20, 17, 16, 0.25);
  transform: translateY(140%);
  transition: transform 0.6s var(--ease);
}
.wa-float svg { width: 22px; height: 22px; }
.wa-float.is-visible { transform: translateY(0); }
.wa-float.is-on-red { background: var(--black); color: var(--ivory); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__lede { grid-column: 1 / -1; }
}

/* story: full-screen portrait window on narrow or portrait screens */
@media (max-width: 1023px), (max-aspect-ratio: 1/1) {
  .story__grid { display: block; padding: 0; }
  .story__window { position: absolute; inset: 0; height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; }
  .story__veil {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 11, 10, 0.28) 0%, rgba(14, 11, 10, 0) 22%, rgba(14, 11, 10, 0) 44%, rgba(14, 11, 10, 0.8) 100%);
  }
  .story__left { position: absolute; left: var(--pad); right: var(--pad); bottom: 92px; min-height: 0; color: var(--ivory); z-index: 2; }
  .chapter__tag { color: rgba(244, 238, 230, 0.78); }
  .chapter__title { font-size: clamp(40px, 9vw, 64px); }
  .chapter__title em { color: #ff8a7d; }
  .chapter__text { color: rgba(244, 238, 230, 0.88); }
  .story__right { position: absolute; top: 84px; right: var(--pad); z-index: 2; color: var(--ivory); }
  .story__meta, .story__thread { display: none; }
  .story__num { font-size: 56px; }
  .story__total { color: rgba(244, 238, 230, 0.72); font-size: 18px; }
  .story__progress { z-index: 2; bottom: 34px; }
  .seg { color: rgba(244, 238, 230, 0.62); }
  .seg.is-active { color: var(--ivory); }
  .seg__track { background: var(--line-light); }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header { grid-template-columns: 1fr auto; }
  .logo { justify-self: start; justify-items: start; }
  .logo__sub { margin-right: 0; }
  .header__cta { gap: 8px; }
  .social { width: 32px; height: 32px; }
  .social svg { width: 15px; height: 15px; }
  .header .btn { padding: 0 14px; }

  .hero__content { grid-template-columns: 1fr; gap: 18px; }
  .hero__word { font-size: clamp(96px, 30vw, 200px); }
  .hero__lede { display: none; }
  .scroll-cue { display: none; }
  .hero__img { object-position: 50% 26%; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(14, 11, 10, 0.5) 0%, rgba(14, 11, 10, 0) 16%, rgba(14, 11, 10, 0) 34%, rgba(14, 11, 10, 0.86) 78%, rgba(14, 11, 10, 0.9) 100%);
  }

  /* pieces: native swipe carousel */
  .look__inner { height: auto; min-height: 0; padding: 96px 0 64px; }
  .look__head { flex-direction: column; align-items: flex-start; }
  .look__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--pad);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }
  .look__track::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }
  .card:nth-child(even) { margin-top: 0; }
  .card .card__media { height: auto; width: 74vw; max-width: 380px; }
  .card__media img { left: 0; width: 100%; }
  .card--end { padding-right: var(--pad); }
  .look__bar { display: none; }

  .reels__grid { grid-template-columns: 1fr 1fr; }
  .reels__col:nth-child(2) { margin-top: 36vw; }
  .reels__col:nth-child(3) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin-top: 0; }

  .founder__grid { grid-template-columns: 1fr; gap: 76px; }
  .founder__badge { right: 14px; bottom: -48px; width: 112px; }
  .founder__ghost { top: auto; bottom: 30px; font-size: 44vw; }
  .reel figcaption { font-size: 17px; }

  .names li { flex-direction: column; gap: 4px; }
  .names__desc { text-align: left; }

  .ways__head { grid-template-columns: 1fr; }
  .ways__grid { grid-template-columns: 1fr; gap: 56px; }
  .way:nth-child(2) { margin-bottom: 0; }
  .way__media { aspect-ratio: 4 / 5; }

  .school { grid-template-columns: 1fr; }
  .school__media { order: -1; justify-self: start; width: min(100%, 420px); }
  .school__cols { grid-template-columns: 1fr; }

  .fit { grid-template-columns: 1fr; }
  .fit__media { position: relative; top: 0; max-width: 520px; width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .fit__more { grid-template-columns: 1fr; }

  .visit__grid { grid-template-columns: 1fr; }
  .visit__media { width: min(100%, 420px); }

  .wa-float { display: inline-flex; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .logo__name { font-size: 30px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__lede { max-width: 22ch; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .story__progress .seg .eyebrow { font-size: 9px; letter-spacing: 0.1em; }
  .section-tag { flex-direction: column; gap: 6px; }
  .tbl td:first-child { white-space: normal; }
  .founder__frame { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue__line::after, .founder__ring { animation: none; }
  .btn__roll > span { transition: none; }
}

/* ==========================================================================
   Piece pages: /pieces/<slug>/ and /en/pieces/<slug>/
   ========================================================================== */
.piece { padding: clamp(96px, 8vw, 124px) var(--pad) clamp(80px, 10vw, 150px); }
.piece__crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  padding-bottom: 14px;
  margin-bottom: clamp(22px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.piece__back { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); }
.piece__back > span:first-child { transition: transform 0.5s var(--ease); }
.piece__back:hover > span:first-child { transform: translateX(-4px); }

.piece__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 90px); align-items: start; }

/* rows share one height: each view grows in proportion to its own ratio */
.piece__gallery { display: grid; gap: clamp(10px, 1.1vw, 16px); }
.piece__row { display: flex; gap: clamp(10px, 1.1vw, 16px); }
.piece__view {
  position: relative;
  /* grow factors under 1 would leave part of the row empty, so scale them up */
  flex: calc(var(--ar) * 100) 1 0%;
  min-width: 0;
  aspect-ratio: var(--ar);
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--sand);
}
.piece__view img, .piece__view video { width: 100%; height: 100%; object-fit: cover; }
.piece__counter { display: none; }

.piece__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.piece__chips .card__ref, .piece__chips .card__tag { position: static; }
.piece__chips .card__ref { background: transparent; border: 1px solid rgba(20, 17, 16, 0.3); }
.piece__title { font-family: var(--serif); font-size: clamp(46px, 4.8vw, 82px); line-height: 0.94; letter-spacing: -0.02em; }
.piece__title em { font-style: italic; color: var(--red-deep); }
.piece__meta { margin-top: 16px; font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.piece__blurb { margin-top: 16px; max-width: 46ch; font-size: 16px; color: var(--ink-2); }
.piece__form { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); gap: 22px; }
.piece__form .form__row { gap: 22px; }
.piece__send { justify-content: center; height: 52px; }
.piece__form .form__note { max-width: 46ch; }
.piece__links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 24px; font-size: 13px; }

/* tall screens keep the order panel beside the photos while they scroll */
@media (min-width: 901px) and (min-height: 820px) {
  .piece__info { position: sticky; top: 92px; }
}

/* the first photos and the title arrive without waiting for any script */
@keyframes piece-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes piece-unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes piece-settle { from { transform: scale(1.12); } to { transform: none; } }
.piece__crumbs { animation: piece-rise 1s var(--ease) both; }
.piece__info > * { animation: piece-rise 1.1s var(--ease) both; }
.piece__info > :nth-child(1) { animation-delay: 0.15s; }
.piece__info > :nth-child(2) { animation-delay: 0.22s; }
.piece__info > :nth-child(3) { animation-delay: 0.3s; }
.piece__info > :nth-child(4) { animation-delay: 0.36s; }
.piece__info > :nth-child(5) { animation-delay: 0.44s; }
.piece__info > :nth-child(6) { animation-delay: 0.5s; }
.piece__row:first-child .piece__view { animation: piece-unveil 1.3s var(--ease-io) both; }
.piece__row:first-child .piece__view img { animation: piece-settle 2s var(--ease) both; }

/* other pieces */
.more { background: var(--ink); color: var(--ivory); padding: clamp(80px, 10vw, 140px) var(--pad); }
.more__head { display: grid; gap: 14px; margin-bottom: clamp(30px, 4vw, 56px); }
.more__head .eyebrow { color: rgba(244, 238, 230, 0.6); }
.more__title { font-family: var(--serif); font-size: clamp(46px, 6vw, 100px); line-height: 0.95; letter-spacing: -0.015em; }
.more__title em { font-style: italic; color: var(--red); }
.more__track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }
.mini { display: grid; align-content: start; gap: 3px; }
.mini__media { position: relative; display: block; margin-bottom: 12px; overflow: hidden; border-radius: 3px; aspect-ratio: 3 / 4; background: #231d1a; }
.mini__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mini:hover .mini__media img { transform: scale(1.045); }
.mini__ref { font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(244, 238, 230, 0.6); }
.mini__name { font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.05; }
.mini__cat { font-size: 12.5px; color: rgba(244, 238, 230, 0.7); }
.more__all { margin-top: clamp(28px, 3.5vw, 48px); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: #ff8a7d; }

/* the collection page: every piece, as a grid on every screen */
.more--page { min-height: 100svh; padding-top: clamp(110px, 12vw, 170px); }
.more--page .piece__crumbs { color: rgba(244, 238, 230, 0.72); border-bottom-color: var(--line-light); margin-bottom: 18px; }
.more--page .piece__back { color: var(--ivory); }
.more__lede { max-width: 46ch; color: rgba(244, 238, 230, 0.78); font-size: 15px; }
.more__track--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); row-gap: clamp(30px, 4vw, 56px); }

@media (max-width: 900px) {
  .piece { padding-top: 84px; }
  /* minmax(0, …): the swipe strip scrolls inside the column instead of widening it */
  .piece__grid { grid-template-columns: minmax(0, 1fr); }

  /* several views: a swipe strip at one height, the next photo peeking in */
  .piece__gallery:not([data-count="1"]) {
    display: flex;
    gap: 10px;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--pad);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .piece__gallery::-webkit-scrollbar { display: none; }
  .piece__gallery:not([data-count="1"]) .piece__row { display: contents; }
  .piece__gallery:not([data-count="1"]) .piece__view {
    flex: none;
    height: min(64svh, 124vw);
    width: auto;
    max-width: calc(100vw - 2 * var(--pad) - 30px);
    scroll-snap-align: start;
  }
  .piece__counter { display: block; margin-top: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

  .more__track {
    display: flex;
    gap: 16px;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--pad);
    scrollbar-width: none;
  }
  .more__track::-webkit-scrollbar { display: none; }
  .mini { flex: none; width: min(62vw, 280px); scroll-snap-align: start; }
  .more__track--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; margin: 0; padding: 0; overflow: visible; }
  .more__track--grid .mini { width: auto; }
  .more__track--grid .mini__name { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  .piece__crumbs, .piece__info > *, .piece__row:first-child .piece__view, .piece__row:first-child .piece__view img { animation: none; }
  .mini__media img { transition: none; }
}

/* ==========================================================================
   404: served for any address that does not exist
   ========================================================================== */
.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 22px;
  padding: 120px var(--pad) 80px;
  max-width: 1100px;
}
.lost__tag { color: var(--muted); }
.lost__title { font-family: var(--serif); font-size: clamp(60px, 10vw, 168px); line-height: 0.9; letter-spacing: -0.02em; }
.lost__title em { font-style: italic; color: var(--red-deep); }
.lost__text { max-width: 46ch; font-size: 17px; color: var(--ink-2); }
.lost__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
