/* Orris — Didone editorial, three pinned stages.
   Every animated quantity is a custom property (--p per stage, --page on the rail)
   written by the single rAF scroll handler in orris.js. */

:root {
  --plaster: #F7F7F4;
  --paper: #F1F1ED;
  --paper-2: #E4E5E0;
  --paper-3: #E7E7E4;
  --blush: #F3D6DC;
  --blush-2: #F5D9DF;
  --ink: #070707;
  --sage: #B7BAA9;
  --sage-2: #AEB1A0;
  --navy: #071521;
  --grey: #999999;
  --pink: #EF6F79;

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Libre Bodoni", Georgia, serif;
  --script: "Caveat Brush", "Segoe Print", cursive;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 56px;
}

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

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

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
strong { font-weight: 600; }

::selection { background: var(--blush); color: var(--ink); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.wrap {
  max-width: 1360px;
  margin: 0 auto;
}

/* ---------- furniture: 10.5px small caps, +.18em ---------- */
.fur,
.pno,
.strap,
.nav-links a,
.row-dur,
.pill,
.btn,
.coll-note,
.foot-small {
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.fur, .pno { color: var(--grey); }

/* ---------- script: Caveat Brush, pink, rotated, three moments only ---------- */
.script {
  display: inline-block;
  font-family: var(--script);
  font-weight: 400;
  color: var(--pink);
  letter-spacing: 0;
  line-height: 1;
  rotate: -2deg;
}

/* ---------- progress rail ---------- */
.rail {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 60;
  background: var(--pink);
  transform-origin: 0 50%;
  transform: scaleX(var(--page, 0));
  pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  color: var(--ink);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
.nav[data-ground="plaster"] { background-color: var(--plaster); border-bottom-color: var(--paper-2); }
.nav[data-ground="blush"]   { background-color: var(--blush); border-bottom-color: rgba(7, 7, 7, .12); }
.nav[data-ground="blush2"]  { background-color: var(--blush-2); border-bottom-color: rgba(7, 7, 7, .12); }
.nav[data-ground="paper"]   { background-color: var(--paper-2); border-bottom-color: rgba(7, 7, 7, .12); }
.nav[data-ground="ink"]     { background-color: var(--ink); color: var(--plaster); border-bottom-color: rgba(183, 186, 169, .22); }

.nav-mark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: clamp(16px, 2.6vw, 36px);
}
.nav-links a {
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.nav-links a:hover { border-bottom-color: currentColor; }

@media (max-width: 720px) {
  .nav-links a[href="#method"],
  .nav-links a[href="#root"],
  .nav-links a[href="#notes"] { display: none; }
}

/* ---------- pinned stages ---------- */
.stage { position: relative; }
.stage--hero  { height: 300svh; background: var(--plaster); }
.stage--strip { height: 320svh; background: var(--plaster); }
.stage--notes { height: 360svh; background: var(--ink); color: var(--plaster); }

.pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
/* the pin paints its own ground: the blend modes need a backdrop inside its stacking context */
.stage--hero .pin,
.stage--strip .pin { background: var(--plaster); }
.stage--notes .pin { background: var(--ink); }

/* Stage 1 — hero */
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  mix-blend-mode: multiply;
  transform: translate3d(0, calc(var(--p, 0) * -3%), 0) scale(calc(1.04 + var(--p, 0) * .07));
  will-change: transform;
}

.hero-type {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: var(--nav-h) var(--gutter) 0;
  transform: translate3d(0, calc(var(--p, 0) * -46px), 0);
  opacity: calc(1 - var(--p, 0) * 1.6);
}
.hero-over {
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  margin-bottom: .15em;
  rotate: -2deg;
}
.wordmark {
  --chars: 5;
  font-weight: 600;
  font-size: min(clamp(3.5rem, 34vw, 20rem), calc(88vw / (var(--chars) * .60)));
  line-height: .8;
  letter-spacing: -.05em;
  padding-right: .05em; /* gives back the trailing negative tracking so the word centres */
  white-space: nowrap;
}

.straps {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(16px, 3.4svh, 36px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--navy);
}
.strap {
  padding-top: 12px;
  color: var(--navy); /* darker than .fur: grey washes out over the bright part of the photograph */
}
.strap:nth-child(2) { text-align: center; }
.strap:nth-child(3) { text-align: right; }

/* Stage 2 — bottom-up reveal */
.strip-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
  /* visible region grows upward from the bottom edge */
  clip-path: inset(calc(100% - var(--p, 0) * 100%) 0 0 0);
}
.cross {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 0 var(--gutter);
  text-align: center;
  color: #fff;
  mix-blend-mode: difference;
  font-size: clamp(3.4rem, 11vw, 11.5rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.045em;
  opacity: calc((1 - var(--p, 0)) * 3.4);
  pointer-events: none;
}
.strip-cap {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(20px, 4.5svh, 48px);
  max-width: 31ch;
  color: var(--plaster);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  opacity: calc((var(--p, 0) - .45) * 5);
}
.strip-cap em { font-style: italic; }
@media (max-width: 600px) {
  .cross { font-size: 17.5vw; }
  .strip-photo { object-position: 32% 50%; }
}

/* Stage 3 — composition rows */
.stage--notes .pin {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 112px);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
}
.notes-text { max-width: 680px; }
.notes-h {
  font-size: clamp(2.1rem, 4.2vw, 4.1rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}
.rows {
  margin-top: clamp(24px, 5svh, 56px);
  border-top: 1px solid rgba(183, 186, 169, .35);
}
.row { border-bottom: 1px solid rgba(183, 186, 169, .35); }
.row-in {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: clamp(12px, 2.3svh, 24px) 0;
  opacity: .28;
  transition: opacity .8s var(--ease);
}
.row.lit .row-in { opacity: 1; }
.row-idx {
  color: var(--pink);
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-variant-numeric: lining-nums;
}
.row-name {
  font-size: clamp(1.15rem, 1.9vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.2;
}
.row-dur {
  color: var(--sage);
  text-align: right;
  white-space: nowrap;
}
.notes-cap {
  margin-top: clamp(16px, 3svh, 32px);
  max-width: 44ch;
  color: var(--sage);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
}

.notes-fig {
  position: relative;
  justify-self: end;
  width: min(100%, calc((100svh - var(--nav-h) - 96px) * .8));
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1b1a17;
}
.notes-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1.08 - var(--p, 0) * .08));
  transform-origin: 50% 62%;
  will-change: transform;
}
.pill {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 9px 16px 8px;
  border-radius: 999px; /* the one rounded shape the brief names */
  background: var(--pink);
  color: var(--ink);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .stage--notes .pin {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: clamp(16px, 3svh, 28px);
    padding-top: calc(var(--nav-h) + 16px);
    padding-bottom: 20px;
  }
  .notes-fig {
    order: -1;
    justify-self: start;
    width: min(52vw, calc(28svh * .8));
  }
  .notes-h { font-size: clamp(1.75rem, 7.4vw, 2.6rem); }
  .pill { left: 10px; bottom: 10px; padding: 8px 12px 7px; letter-spacing: .12em; }
  .pill-ml { display: none; }
  .notes-cap { font-size: 15px; }
}

/* ---------- bands ---------- */
.band { padding: clamp(96px, 13vw, 196px) var(--gutter); }
.band--blush  { background: var(--blush); }
.band--blush2 { background: var(--blush-2); }
.band--paper  { background: var(--paper-2); }

.h2 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.04em;
}
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  max-width: 34em;
}

/* statement */
.statement {
  max-width: 16.5em;
  font-size: clamp(2.1rem, 4.7vw, 4.6rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -.03em;
}
.statement .script {
  font-size: 1.08em;
  rotate: -1.5deg;
  margin-left: .06em;
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(64px, 8vw, 128px);
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.col p { max-width: 34ch; line-height: 1.62; }
@media (max-width: 820px) {
  .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* collection / price table */
.coll-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px clamp(32px, 6vw, 96px);
}
@media (max-width: 820px) {
  .coll-head { grid-template-columns: minmax(0, 1fr); }
}
.ptable {
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--ink);
}
.prow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 5.5em;
  align-items: last baseline; /* description and figure sit on the name's line, not on its small "No." */
  gap: 8px clamp(16px, 3vw, 48px);
  padding: 22px 0;
  border-bottom: 1px solid var(--sage-2);
}
.prow--head { padding: 14px 0; }
.prow--head .fur:last-child { text-align: right; }
.pname {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.pno { display: block; margin-bottom: 6px; }
.pdesc {
  font-style: italic;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.45;
}
.pprice {
  color: var(--pink);
  text-align: right;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
  font-variation-settings: "opsz" 12; /* small optical size keeps the euro's hairline bars visible */
}
@media (max-width: 700px) {
  .prow { grid-template-columns: minmax(0, 1fr) auto; }
  .prow--head .fur:nth-child(2) { display: none; }
  .pname  { grid-column: 1; grid-row: 1; }
  .pdesc  { grid-column: 1; grid-row: 2; }
  .pprice { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding-top: 18px; }
}

.coll-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 44px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  background: var(--pink);
  color: var(--ink);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-decoration: none;
  border-radius: 0;
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--plaster); }
.btn:focus-visible { outline-color: var(--ink); }
.coll-script {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  rotate: 2deg;
}
.coll-note {
  flex-basis: 100%;
  color: var(--ink);
  letter-spacing: .16em;
}

/* questions */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: 40px clamp(32px, 6vw, 112px);
  align-items: start;
}
.faq-intro .lede { margin-top: 28px; max-width: 24em; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid rgba(7, 7, 7, .22); }
.faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.plus {
  position: relative;
  width: 18px;
  height: 18px;
  justify-self: end;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--ink);
  transition: transform .55s var(--ease);
}
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
.ans { padding: 0 44px 28px 0; }
.ans p { max-width: 60ch; line-height: 1.62; }

/* footer */
.foot {
  background: var(--plaster);
  padding: clamp(80px, 10vw, 140px) var(--gutter) 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px clamp(24px, 4vw, 64px);
  align-items: end;
}
.foot-mark {
  grid-row: span 2;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.05em;
}
.foot-line { max-width: 36ch; align-self: start; }
.foot-line a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.foot-small { color: var(--ink); letter-spacing: .16em; line-height: 1.7; }
@media (max-width: 820px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-mark { grid-row: auto; margin-bottom: 12px; }
}

/* ---------- per-atom motion (only when JS runs) ---------- */
.js [data-split] .w {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .4em, 0);
  transition:
    opacity .9s var(--ease) calc(var(--i, 0) * 38ms),
    transform 1.1s var(--ease) calc(var(--i, 0) * 38ms);
}
.js [data-split].in .w {
  opacity: 1;
  transform: none;
}
.js [data-rev] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity .9s var(--ease) var(--d, 0ms),
    transform 1.1s var(--ease) var(--d, 0ms);
}
.js [data-rev].in {
  opacity: 1;
  transform: none;
}

/* ---------- reduced motion: no scrubbing, no reveals, normal blending ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-split] .w,
  .js [data-rev] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .stage--hero,
  .stage--strip,
  .stage--notes { height: auto; }
  .pin { position: relative; }

  .hero-photo { transform: none; will-change: auto; }
  .hero-type { transform: none; opacity: 1; }

  .stage--strip .pin {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .cross {
    position: static;
    order: -1;
    padding: calc(var(--nav-h) + clamp(48px, 10vw, 120px)) var(--gutter) clamp(40px, 6vw, 80px);
    color: var(--ink);
    mix-blend-mode: normal;
    opacity: 1;
  }
  .strip-photo {
    position: relative;
    height: 90svh;
    clip-path: none;
  }
  .strip-cap { opacity: 1; }

  .stage--notes .pin { min-height: 100svh; height: auto; }
  .row-in { opacity: 1; transition: none; }
  .notes-fig img { transform: none; will-change: auto; }

  .nav, .btn, .plus::before, .plus::after { transition: none; }
}
