/* =====================================================================
   Léna Ordronneau — portfolio
   Tokens inherit from the live lenao.studio system (paper / ink / olive,
   Bricolage Grotesque + Cormorant Garamond). Each chapter carries its own
   ground colour, sampled from the photographs of that piece; site.js
   cross-fades the page ground as chapters scroll into view.
   ===================================================================== */

:root {
  --paper: #F5F4F0;
  --linen: #EDE8DF;
  --ink: #1A1A18;
  --olive: #6B6430;
  --hair: #D8D4CC;
  --plum: #5C2842;

  --ui: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;

  --page-x: clamp(16px, 4.5vw, 72px);
  --gutter: clamp(12px, 1.8vw, 28px);
  --head-h: 56px;
  --vh: 1svh; /* one screen = 100 × --vh */

  --ground: var(--paper);
  --on: var(--ink);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--ground);
  color: var(--on);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 900ms var(--ease), color 900ms var(--ease);
}
body { min-height: 100vh; overflow-x: hidden; }

/* Full-page scroll: hard snapping where every spread fits the screen,
   soft snapping on small or short screens where spreads grow taller. */
@media (min-width: 900px) and (min-height: 640px) {
  html { scroll-snap-type: y mandatory; }
}
@media (max-width: 899px), (max-height: 639px) {
  html { scroll-snap-type: y proximity; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.page { scroll-snap-align: start; position: relative; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--olive); color: var(--paper); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; font-size: 12px;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Section grounds.
   Without JS each section paints its own ground; with JS sections go
   transparent and the root ground cross-fades instead. */
.page { background: var(--bg, transparent); }
html:not(.js) .page[data-on="light"] { color: var(--paper); }
html:not(.js) .page[data-on="dark"] { color: var(--ink); }
html.js .page { background: transparent; }

/* ============================ type ============================ */

.label {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.caption {
  font-size: 11.5px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  opacity: 0.78;
}
.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 34ch;
}
.prose p { margin: 0 0 1em; max-width: 50ch; }
.prose p:last-child { margin-bottom: 0; }

.display {
  font-family: var(--ui);
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  line-height: 0.9;
  letter-spacing: -0.015em;
  margin: 0;
}

.link-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap 220ms var(--ease), opacity 160ms ease;
}
.link-line:hover { gap: 16px; }

/* ============================ header ============================ */

.head {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--page-x);
  background: var(--ground);
  color: var(--on);
  border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  transition: background-color 900ms var(--ease), color 900ms var(--ease),
              opacity 400ms var(--ease), transform 400ms var(--ease);
}
.head.is-hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.head__brand {
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  font-variation-settings: "opsz" 24;
}
.head__crumb {
  position: absolute; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0.72;
}
.head__nav { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.head__nav a { padding: 6px 0; transition: opacity 150ms ease; }
.head__nav a:hover { opacity: 0.55; }
.head__nav a[aria-current="page"] { border-bottom: 1px solid currentColor; }
.head__menu { display: none; }

@media (max-width: 1100px) { .head__crumb { display: none; } }
@media (max-width: 760px) {
  .head__nav { display: none; }
  .head__menu { display: inline-flex; padding: 10px 0; }
}

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--plum); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0 var(--page-x) 32px;
  opacity: 0; visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 0s linear 300ms;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease); }
.menu__top { height: var(--head-h); display: flex; align-items: center; justify-content: space-between; }
.menu__links { display: flex; flex-direction: column; gap: 6px; }
.menu__links a { font-size: clamp(40px, 12vw, 64px); }
.menu__foot { display: flex; flex-direction: column; gap: 6px; }

/* ============================ hero (home) ============================ */

.hero {
  height: 100svh; min-height: 560px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  background-color: var(--plum);
}
.hero__pattern {
  position: absolute; inset: 0; z-index: 0;
  background: #5C2842 url("../img/hero-motif.webp") center / cover no-repeat;
}
.hero__inner { position: relative; z-index: 2; text-align: center; padding: 0 var(--page-x); }
.hero__name {
  font-family: var(--ui);
  font-weight: 600;
  font-variation-settings: "opsz" 96;
  letter-spacing: 0.015em;
  line-height: 0.92;
  font-size: clamp(56px, 9.2vw, 144px);
  margin: 0;
}
.hero__tag {
  margin-top: clamp(20px, 3vh, 36px);
  font-size: 11px; letter-spacing: 0.22em; font-weight: 400; opacity: 0.95;
}
/* nav as drawn in the brief: stacked left, pair right */
.hero__nav {
  position: absolute; z-index: 3; top: clamp(20px, 3.4vh, 36px);
  left: var(--page-x); right: var(--page-x);
  display: flex; justify-content: space-between; align-items: flex-start;
  font-weight: 600; font-variation-settings: "opsz" 32;
  font-size: clamp(15px, 1.35vw, 20px); line-height: 1.12;
}
.hero__nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.hero__nav-main { flex-direction: column; text-transform: uppercase; letter-spacing: 0.01em; }
.hero__nav-side { gap: 0.6em; }
.hero__nav a { transition: opacity 160ms ease; }
.hero__nav a:hover { opacity: 0.6; }
.hero__cue {
  position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
@media (prefers-reduced-motion: no-preference) {
  .hero__cue span[aria-hidden] { animation: bob 2.4s ease-in-out infinite; }
}
@keyframes bob { 50% { transform: translateY(5px); } }

/* ============================ split spread ============================ */

.split {
  min-height: 100svh;
  padding-top: var(--head-h);
  display: grid;
  grid-template-columns: var(--split, 1fr 1fr);
}
.split__media { position: relative; overflow: hidden; margin: 0; }
.split__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, center);
}
.split__media figcaption {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.split__text {
  padding: clamp(28px, 6vh, 72px) var(--page-x) clamp(28px, 5vh, 56px);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(24px, 4vh, 48px);
  min-width: 0;
}
.split--flip .split__media { order: 2; }

/* chapter text */
.chap__top { display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 26px); }
.chap__no { display: flex; align-items: center; gap: 14px; }
.chap__no::after {
  content: ""; flex: 0 0 56px; height: 1px;
  background: color-mix(in srgb, currentColor 40%, transparent);
}
.chap__title { font-size: clamp(64px, 8.6vw, 150px); }
.chap__title--long { font-size: clamp(48px, 5.6vw, 96px); line-height: 0.95; }
.chap__mid { display: flex; flex-direction: column; gap: 18px; }

/* museum-label spec sheet */
.spec {
  display: grid; grid-template-columns: max-content 1fr; gap: 6px 28px;
  margin: 0; padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  font-size: 12.5px; line-height: 1.5;
}
.spec dt { font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; padding-top: 2px; }
.spec dd { margin: 0; }

/* cover / opener text */
.cover__title { font-size: clamp(56px, 7.4vw, 128px); }
.cover__title em {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 0.62em; letter-spacing: -0.01em; line-height: 1.05;
  margin-top: 0.12em;
}
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.toc li { border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.toc a {
  display: grid; grid-template-columns: 3.2em 1fr auto; align-items: baseline; gap: 12px;
  padding: 12px 0; transition: padding-left 220ms var(--ease);
}
.toc a:hover { padding-left: 8px; }
.toc b { font-weight: 600; font-size: clamp(18px, 1.6vw, 24px); font-variation-settings: "opsz" 48; }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.meta p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }

/* ============================ statement ============================ */

.statement {
  min-height: 100svh;
  padding: calc(var(--head-h) + clamp(32px, 8vh, 96px)) var(--page-x) clamp(32px, 7vh, 80px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter); row-gap: clamp(32px, 7vh, 80px);
  align-content: center;
}
.statement__eyebrow { grid-column: 1 / -1; }
.statement__quote {
  grid-column: 1 / span 10;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(38px, 5.4vw, 92px); line-height: 1.02; letter-spacing: -0.015em;
  margin: 0;
}
.statement__body {
  grid-column: 6 / span 7;
  columns: 2; column-gap: var(--gutter);
  font-size: 14.5px;
}
.statement__body p { margin: 0 0 1em; break-inside: avoid-column; }

/* process line — a real sequence, so it is numbered by order */
.process {
  grid-column: 1 / -1;
  list-style: none; margin: 0; padding: 18px 0 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gutter);
  border-top: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  counter-reset: step;
}
.process li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; }
.process li::before { content: counter(step) " →"; font-size: 11px; letter-spacing: .14em; opacity: .6; }
.process li:last-child::before { content: counter(step); }
.process b { font-weight: 600; font-size: clamp(17px, 1.5vw, 22px); font-variation-settings: "opsz" 48; }

/* ============================ gallery ============================ */

.gallery {
  min-height: 100svh;
  padding: calc(var(--head-h) + clamp(20px, 4vh, 48px)) var(--page-x) clamp(20px, 4vh, 44px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 3vh, 32px);
}
.gallery__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.gallery__head h3 { margin: 0; font-weight: 600; font-size: clamp(22px, 2.2vw, 34px); font-variation-settings: "opsz" 48; letter-spacing: -0.01em; }
.gallery__row {
  display: grid; grid-template-columns: var(--cols, 1fr 1fr);
  gap: var(--gutter); align-items: end;
}
.fig { margin: 0; min-width: 0; }
.fig img {
  width: 100%; height: var(--h, 66svh);
  object-fit: cover; object-position: var(--pos, center);
}
.fig--contain img { object-fit: contain; }
.fig figcaption { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; }
.gallery__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.gallery__foot .caption { max-width: 70ch; }

/* ============================ collections index ============================ */

.duo {
  height: 100svh; min-height: 560px;
  padding-top: var(--head-h);
  display: grid; grid-template-columns: 1fr 1fr;
}
.duo__item { position: relative; overflow: hidden; color: var(--paper); display: block; }
.duo__item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1200ms var(--ease);
}
.duo__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 14, 16, .62) 0%, rgba(20, 14, 16, 0) 52%);
}
.duo__item:hover img { transform: scale(1.035); }
.duo__text {
  position: absolute; z-index: 2; left: var(--page-x); right: var(--page-x); bottom: clamp(24px, 5vh, 56px);
  display: flex; flex-direction: column; gap: 14px;
}
.duo__text .display { font-size: clamp(56px, 7.6vw, 132px); }

/* ============================ far / near ============================ */

.distance {
  min-height: 100svh; padding-top: var(--head-h);
  display: grid; grid-template-columns: 1fr 1fr;
}
.distance__half {
  position: relative; overflow: hidden; margin: 0;
  display: flex; flex-direction: column;
  height: calc(100svh - var(--head-h));
}
.distance__frame { flex: 1 1 0; min-height: 0; overflow: hidden; position: relative; }
.distance__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.distance__far img { object-position: 50% 30%; }
.distance__near img { transform-origin: 50% 60%; }
.distance__half figcaption {
  padding: clamp(16px, 3vh, 28px) var(--page-x);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.4vw, 38px); line-height: 1.15;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .distance__near img {
      animation: lean linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 55%;
    }
  }
}
@keyframes lean { from { transform: scale(1); } to { transform: scale(1.16); } }

/* ============================ wallpaper strips ============================ */

.strips {
  position: relative; overflow: hidden; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 18px);
  padding: clamp(24px, 5vh, 56px) clamp(20px, 3.5vw, 56px);
}
.strip {
  background-repeat: repeat-y; background-size: 100% auto; background-position: center top;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.6);
}

/* colourways */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.ways .fig img { height: var(--h, 56svh); object-fit: cover; }

/* ============================ contact ============================ */

.contact {
  min-height: 100svh;
  padding-top: var(--head-h);
  display: grid; grid-template-columns: 5fr 7fr;
  background: var(--paper); color: var(--ink);
}
.contact .lede { max-width: 44ch; }
.contact__media { position: relative; margin: 0; overflow: hidden; }
.contact__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.contact__body {
  padding: clamp(24px, 5vh, 72px) var(--page-x);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 2.8vh, 32px);
  max-width: 820px;
}
.contact__eyebrow { color: var(--olive); letter-spacing: 0.32em; }
.contact__title {
  font-weight: 500; font-variation-settings: "opsz" 96;
  font-size: clamp(40px, 5.2vw, 84px); line-height: 1; letter-spacing: -0.02em;
  margin: 0;
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.8vh, 22px) 28px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--olive); }
.field label small { text-transform: none; letter-spacing: 0.02em; font-size: 11px; opacity: .8; }
.field input, .field select, .field textarea {
  font: 400 16px/1.4 var(--ui);
  color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid #BDB7AC; border-radius: 0;
  padding: 8px 0 10px;
  width: 100%;
  transition: border-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 72px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A1A18' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
  padding-right: 24px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--olive); outline-offset: 4px; border-bottom-color: var(--ink);
}
.field [aria-invalid="true"] { border-bottom-color: #A3242F; }
.field__error { font-size: 12px; color: #A3242F; min-height: 0; }

.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  border: 1px solid var(--ink);
  font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  transition: background-color 200ms ease, color 200ms ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn span { transition: transform 200ms var(--ease); }
.btn:hover span { transform: translateX(3px); }
.form__status { font-size: 13px; line-height: 1.5; max-width: 44ch; }

.contact__alt {
  display: flex; flex-wrap: wrap; gap: 10px 36px; align-items: baseline;
  padding-top: 18px; border-top: 1px solid var(--hair);
  font-size: 14px;
}
.contact__alt .label { color: var(--olive); }
.contact__mail { border-bottom: 1px solid var(--ink); padding-bottom: 2px; letter-spacing: .03em; }
.contact__mail:hover { opacity: .65; }

/* ============================ coda (end of inner pages) ============================ */

.coda {
  min-height: 72svh;
  padding: calc(var(--head-h) + 6vh) var(--page-x) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.coda__big {
  font-weight: 500; font-variation-settings: "opsz" 96;
  font-size: clamp(44px, 7.4vw, 124px); line-height: 0.98; letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline; gap: .25em;
  transition: gap 260ms var(--ease);
}
.coda__big:hover { gap: .4em; }
.coda__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: flex-end; }
.coda__links { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.coda__links a { border-bottom: 1px solid color-mix(in srgb, currentColor 50%, transparent); padding-bottom: 2px; }

/* ============================ about ============================ */

.about__body { columns: 2; column-gap: var(--gutter); font-size: 14px; line-height: 1.62; }
.about__body p { margin: 0 0 0.9em; break-inside: avoid-column; }
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.offer { border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.offer h3 { margin: 0; font-weight: 600; font-size: clamp(24px, 2.4vw, 38px); line-height: 1; letter-spacing: -0.01em; font-variation-settings: "opsz" 64; }
.offer p { margin: 0; max-width: 40ch; }

/* ============================ responsive ============================ */

@media (max-width: 899px) {
  .split, .distance, .duo, .contact { grid-template-columns: 1fr; }
  .split { padding-top: var(--head-h); min-height: 0; }
  .split__media { aspect-ratio: var(--ar, 4 / 5); max-height: 86svh; }
  .split--flip .split__media { order: 0; }
  .split__text { padding: 36px var(--page-x) 56px; }

  .statement { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--head-h) + 48px); padding-bottom: 56px; }
  .statement__quote, .statement__body { grid-column: 1 / -1; }
  .statement__body { columns: 1; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 22px; }

  .gallery { min-height: 0; padding-top: 32px; padding-bottom: 48px; }
  .gallery__row { grid-template-columns: 1fr 1fr; }
  .gallery__row > .fig--wide { grid-column: 1 / -1; }
  .fig img { height: auto; aspect-ratio: var(--ar, 4 / 5); }

  .duo { height: auto; }
  .duo__item { aspect-ratio: 4 / 5; }

  .distance { min-height: 0; }
  .distance__half { height: auto; }
  .distance__frame { flex: none; aspect-ratio: 4 / 5; }

  .strips { aspect-ratio: 4 / 5; }
  .ways { grid-template-columns: 1fr 1fr; }
  .ways .fig img { height: auto; aspect-ratio: 3 / 5; }

  .contact { min-height: 0; }
  .contact__media { aspect-ratio: 4 / 5; max-height: 80svh; }
  .contact__body { padding-top: 44px; padding-bottom: 56px; }

  .about__body { columns: 1; }
  .coda { min-height: 0; padding-top: 72px; }
}

@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .gallery__row { grid-template-columns: 1fr; }
  .meta, .offers { grid-template-columns: 1fr; }
  .hero__nav { font-size: 14px; }
  .chap__title { font-size: clamp(56px, 18vw, 96px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}

/* =====================================================================
   Revision 2 — review comments
   Every desktop section is exactly one screen, so nothing can push the
   page longer than its frame; content inside each section flexes to fit.
   ===================================================================== */

p, .lede, .caption { text-wrap: pretty; }
h1, h2, h3, .statement__quote, .contact__title, .coda__big { text-wrap: balance; }

@media (min-width: 900px) {
  .hero, .split, .statement, .gallery, .duo, .distance, .contact, .coda, .plate {
    height: max(calc(var(--vh) * 100), 720px);
    min-height: 0;
  }
  .split, .distance, .duo, .contact { grid-template-rows: minmax(0, 1fr); }
  .distance__half { height: auto; min-height: 0; }

  /* galleries: images take whatever height is left after head + foot */
  .gallery { justify-content: flex-start; }
  .gallery__row, .ways {
    flex: 1 1 0; min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }
  .gallery .fig { display: flex; flex-direction: column; min-height: 0; }
  .gallery .fig img { flex: 1 1 0; min-height: 0; height: auto; }
}

.cols-boundary { grid-template-columns: 1.6fr 1fr; }

/* hover swap (Rest): second photograph replaces the first on hover;
   on touch screens the two cross-fade slowly on their own */
.swap__alt { opacity: 0; transition: opacity 700ms var(--ease); }
@media (hover: hover) {
  .swap:hover .swap__alt { opacity: 1; }
}
@media (hover: none) {
  .swap__alt { animation: swap 10s var(--ease) infinite; }
}
@keyframes swap { 0%, 40% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }
.swap__hint { position: absolute; right: 16px; bottom: 14px; z-index: 2; color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
@media (hover: none) { .swap__hint { display: none; } }

/* statement + chapter summary (Projects) */
.statement--summary { align-content: space-between; row-gap: clamp(20px, 4vh, 48px); }
.statement--summary .statement__quote { grid-column: 1 / span 9; font-size: clamp(36px, 4.6vw, 80px); }
.statement--summary .statement__body { grid-column: 1 / span 6; align-self: end; font-size: 14px; }
.summary {
  grid-column: 8 / span 5; align-self: end;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter);
}
.summary a { display: flex; flex-direction: column; gap: 10px; }
.summary img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 900ms var(--ease); }
.summary a:hover img { transform: scale(1.03); }
.summary__frame { display: block; overflow: hidden; }
.summary b { font-weight: 600; font-size: 17px; font-variation-settings: "opsz" 32; }

/* full-page plate with a title over a busy image */
.plate { position: relative; overflow: hidden; color: var(--paper); padding-top: var(--head-h); }
.plate__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(14, 22, 30, .78) 0%, rgba(14, 22, 30, .42) 30%, rgba(14, 22, 30, 0) 52%),
    linear-gradient(to top, rgba(14, 22, 30, .7) 0%, rgba(14, 22, 30, 0) 26%);
}
.plate__inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(28px, 6vh, 72px) var(--page-x) clamp(20px, 4vh, 40px);
}
.plate__title {
  font-size: clamp(56px, 8.4vw, 148px); max-width: 12ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.plate .gallery__foot { border-top-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.plate .caption { opacity: .92; }

/* coda: a full page, set like the original lenao.studio holding page */
.coda {
  justify-content: center; align-items: center; text-align: center;
  gap: clamp(20px, 3.4vh, 36px);
  padding: calc(var(--head-h) + 6vh) var(--page-x) 32px;
  position: relative;
}
.coda__eyebrow { letter-spacing: .32em; opacity: .82; }
.coda__lede { margin: 0; max-width: 40ch; }
.coda__mail { border-bottom: 1px solid currentColor; padding: 6px 2px; letter-spacing: .04em; font-size: clamp(14px, 1.2vw, 18px); }
.coda__mail:hover { opacity: .7; }
.coda__foot {
  position: absolute; left: var(--page-x); right: var(--page-x); bottom: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
}
.coda__foot .coda__links { justify-content: flex-start; }

@media (max-width: 899px) {
  .statement--summary .statement__quote, .statement--summary .statement__body, .summary { grid-column: 1 / -1; }
  .gallery .fig img { flex: none; height: auto; aspect-ratio: 4 / 5; }
  .gallery .fig--wide img { aspect-ratio: 3 / 2; }
  .cols-boundary { grid-template-columns: 1fr 1fr; }
  .plate { min-height: 0; aspect-ratio: 4 / 5; }
  .plate__title { font-size: clamp(44px, 13vw, 72px); }
  .coda { min-height: 86svh; }
  .coda__foot { position: static; justify-content: center; margin-top: 24px; }
}
@media (max-width: 560px) {
  .cols-boundary { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* contact fits one screen, header included */
.contact__title { font-size: clamp(36px, 4.4vw, 68px); }
.contact__body { gap: clamp(12px, 2.2vh, 26px); padding-top: clamp(20px, 4vh, 56px); padding-bottom: clamp(20px, 4vh, 56px); }
.contact .lede { max-width: none; }
.form { row-gap: clamp(8px, 1.5vh, 18px); }
.field textarea { min-height: 60px; }
.contact__media img { object-position: 42% 50%; }

/* =====================================================================
   Revision 3 — review comments, round 2
   ===================================================================== */

/* collection index: both ledes reserve two lines so the titles sit level */
.duo__text .lede { min-height: calc(2 * 1.3em); }

/* coda title centred on one line, arrow nudges on hover */
.coda__big {
  display: block; text-align: center;
  font-size: clamp(44px, 6.2vw, 112px);
}
.coda__big span { display: inline-block; margin-left: .2em; transition: transform 260ms var(--ease); }
.coda__big:hover span { transform: translateX(.18em); }

/* plates: the whole image, edges matched to its own background */
.plate--contain { background-color: var(--plate-bg, #454C56); }
.plate--contain .plate__img { object-fit: contain; }
.plate--quiet::before { background: linear-gradient(to top, rgba(14, 22, 30, .6) 0%, rgba(14, 22, 30, 0) 22%); }
.plate__inner--foot { justify-content: flex-end; }

/* tighter covers so every line fits one screen */
@media (min-width: 900px) {
  .split__text { padding-top: clamp(24px, 4.5vh, 64px); padding-bottom: clamp(20px, 4vh, 48px); gap: clamp(16px, 3vh, 40px); }
  .cover__title { font-size: clamp(52px, 6.4vw, 112px); }
  .toc a { padding: 9px 0; }
  .about__body { font-size: 13.5px; line-height: 1.55; }
  .about__body p { margin-bottom: .75em; }
}

.cols-int2 { grid-template-columns: 0.8fr 1fr 1.6fr; }
@media (max-width: 899px) { .cols-int2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cols-int2 { grid-template-columns: 1fr; } }

/* =====================================================================
   Revision 4 — Léna's review (46 comments)
   One-line transparent header · overview grids · full-image pages
   ===================================================================== */

/* header: transparent, one line, the nav typography of the home page */
.head {
  background: transparent; border-bottom: 0; height: 64px;
  font-weight: 600; font-variation-settings: "opsz" 32;
  font-size: clamp(15px, 1.3vw, 19px); line-height: 1; letter-spacing: 0;
  text-shadow: 0 1px 14px color-mix(in srgb, var(--ground) 70%, transparent);
}
.head__group { display: flex; gap: clamp(14px, 1.8vw, 26px); align-items: center; }
.head__group a { padding: 6px 0; text-decoration: none; transition: opacity 150ms ease; }
.head__group a:hover { opacity: .6; }
.head__group a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.head__brand { position: absolute; left: 50%; transform: translateX(-50%); font-size: inherit; font-weight: 600; white-space: nowrap; }
body[data-page="Home"] .head__brand { visibility: hidden; }
.head__menu { font: inherit; }
@media (max-width: 760px) {
  .head__group { display: none; }
  .head__brand { position: static; transform: none; }
  body[data-page="Home"] .head__brand { visibility: visible; }
  .head__menu { display: inline-flex; }
}

/* hero: crisp on wide screens (mirror repeat), copyright line */
/* wide screens: the motif repeats side by side at its own height, never enlarged */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero__pattern { background-size: auto 100%; background-repeat: repeat-x; background-position: center top; }
}
.hero__tag { max-width: 60ch; margin-left: auto; margin-right: auto; line-height: 1.7; }
.hero__copy { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; text-align: center; font-size: 10px; letter-spacing: .22em; opacity: .85; }

/* overview grid: one image + one caption per project / collection */
.overview {
  display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 26px);
  padding: calc(64px + clamp(12px, 2.6vh, 32px)) var(--page-x) clamp(20px, 4vh, 40px);
}
.overview__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.overview__head h1 { margin: 0; font-size: clamp(40px, 4.4vw, 72px); }
.overview__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px) var(--gutter); }
.overview__grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ov-item { display: flex; flex-direction: column; gap: 10px; min-height: 0; color: inherit; text-decoration: none; }
.ov-item__img { overflow: hidden; min-height: 0; background: color-mix(in srgb, currentColor 8%, transparent); }
.ov-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1000ms var(--ease); }
.ov-item:hover .ov-item__img img { transform: scale(1.035); }
.ov-item__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ov-item__cap b { font-weight: 600; font-size: clamp(15px, 1.25vw, 19px); font-variation-settings: "opsz" 32; line-height: 1.2; }
@media (min-width: 900px) {
  .overview { height: max(calc(var(--vh) * 100), 720px); }
  .overview__grid { flex: 1 1 0; min-height: 0; grid-auto-rows: minmax(0, 1fr); }
  .ov-item__img { flex: 1 1 0; }
}
@media (max-width: 899px) {
  .overview__grid, .overview__grid--5 { grid-template-columns: 1fr 1fr; }
  .ov-item__img { aspect-ratio: 3 / 4; }
}

/* full-image page with the text laid on the picture */
.full { position: relative; overflow: hidden; color: var(--paper); }
.full--dark { color: var(--ink); }
.full__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.full::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.full--scrim-right::before { background: linear-gradient(to left, rgba(16, 12, 14, .66) 0%, rgba(16, 12, 14, .4) 34%, rgba(16, 12, 14, 0) 62%); }
.full--scrim-left::before { background: linear-gradient(to right, rgba(16, 12, 14, .66) 0%, rgba(16, 12, 14, .4) 34%, rgba(16, 12, 14, 0) 62%); }
.full--soft-right::before { background: linear-gradient(to left, rgba(16, 12, 14, .32) 0%, rgba(16, 12, 14, 0) 55%); }
.full__inner {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding: calc(64px + clamp(16px, 4vh, 48px)) var(--page-x) clamp(20px, 4.5vh, 48px);
}
.full__text { grid-column: 8 / span 4; align-self: center; display: flex; flex-direction: column; gap: clamp(12px, 2vh, 22px); }
.full--left .full__text { grid-column: 2 / span 4; }
.full--wide .full__text { grid-column: 7 / span 5; }
.full--left.full--wide .full__text { grid-column: 1 / span 5; }
.full__title { font-size: clamp(52px, 5.8vw, 100px); text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.full--dark .full__title { text-shadow: none; }
.full__title em { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: .6em; margin-top: .12em; letter-spacing: -.01em; }
.full__body p { margin: 0 0 .9em; font-size: 14.5px; line-height: 1.62; max-width: 46ch; }
.full__body p:last-child { margin-bottom: 0; }
.full__spec {
  position: absolute; z-index: 2; left: var(--page-x); bottom: clamp(20px, 4.5vh, 48px);
  width: min(380px, 34%); margin: 0;
}
.full--left .full__spec { left: auto; right: var(--page-x); }
.full .spec { border-top-color: color-mix(in srgb, currentColor 45%, transparent); }
.full .toc, .full .toc li { border-color: color-mix(in srgb, currentColor 35%, transparent); }

/* stand-in for a landscape image still to come: the portrait photo held to one
   side, the rest of the screen in its own wall colour */
.full--extend { background-color: var(--wall); }
.full--extend .full__img { width: auto; max-width: none; height: 100%; }
.full--extend.full--from-left .full__img { left: 0; right: auto; -webkit-mask-image: linear-gradient(to right, #000 72%, transparent); mask-image: linear-gradient(to right, #000 72%, transparent); }
.full--extend.full--from-right .full__img { left: auto; right: 0; -webkit-mask-image: linear-gradient(to left, #000 72%, transparent); mask-image: linear-gradient(to left, #000 72%, transparent); }

@media (min-width: 900px) {
  .full { height: max(calc(var(--vh) * 100), 720px); }
}
@media (max-width: 899px) {
  .full { min-height: 100svh; }
  .full::before { background: linear-gradient(to top, rgba(16,12,14,.78) 0%, rgba(16,12,14,.45) 45%, rgba(16,12,14,0) 75%) !important; }
  .full--dark { color: var(--paper); }
  .full--extend .full__img { width: 100%; -webkit-mask-image: none !important; mask-image: none !important; }
  .full__inner { display: flex; flex-direction: column; justify-content: flex-end; gap: 22px; min-height: 100svh; padding-top: 96px; }
  .full__spec { position: static; width: auto; }
  .full__title { font-size: clamp(44px, 13vw, 72px); }
}

/* contact page on the plum ground */
.contact--plum { background: var(--plum); color: var(--paper); padding-top: 64px; }
.contact--plum .contact__eyebrow, .contact--plum .field label, .contact--plum .contact__alt .label { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.contact--plum .field input, .contact--plum .field select, .contact--plum .field textarea { color: var(--paper); border-bottom-color: color-mix(in srgb, var(--paper) 40%, transparent); }
.contact--plum .field input:hover, .contact--plum .field select:hover, .contact--plum .field textarea:hover,
.contact--plum .field input:focus-visible, .contact--plum .field select:focus-visible, .contact--plum .field textarea:focus-visible { border-bottom-color: var(--paper); outline-color: var(--paper); }
.contact--plum .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23F5F4F0' stroke-width='1.2'/%3E%3C/svg%3E"); }
.contact--plum .field select option { color: var(--ink); }
.contact--plum .btn { border-color: var(--paper); }
.contact--plum .btn:hover { background: var(--paper); color: var(--plum); }
.contact--plum .contact__alt { border-top-color: color-mix(in srgb, var(--paper) 25%, transparent); }
.contact--plum .contact__mail { border-bottom-color: var(--paper); }
.contact--plum .field [aria-invalid="true"] { border-bottom-color: #FFB4A8; }
.contact--plum .field__error { color: #FFB4A8; }
.site-copy { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }

/* full-image pages laid out like Léna's Project_Pages: the text sits on the
   picture about a third of the way down, its column set per page (--col),
   the piece's details on a hairline at the bottom corner */
.full__text {
  grid-column: var(--col, 7) / span var(--span, 4);
  align-self: start; margin-top: clamp(24px, 15vh, 180px);
}
.full--left .full__text, .full--wide .full__text, .full--left.full--wide .full__text { grid-column: var(--col, 7) / span var(--span, 4); }
.full__title {
  font-family: var(--serif); font-weight: 400; font-variation-settings: normal;
  font-size: clamp(48px, 4.8vw, 88px); line-height: 1; letter-spacing: -0.01em;
}
.full__title em { font-size: .62em; }
.full__body p { font-size: 14px; }
.full__spec { left: var(--page-x); right: auto; width: min(340px, 30%); }
.full--spec-right .full__spec { left: auto; right: var(--page-x); }
.full .spec { font-size: 12px; }
.full--scrim-right::before, .full--scrim-left::before { transition: none; }
@media (max-width: 899px) {
  .full__text { margin-top: 0; }
}
/* shorter screens: text rides higher, About centres its longer text */
.full__text { margin-top: clamp(12px, calc(var(--vh) * 15 - 32px), 180px); }
.full--about .full__text { align-self: center; margin-top: 0; gap: clamp(10px, 1.6vh, 18px); }
.full--about .full__body p { font-size: 13.5px; line-height: 1.55; margin-bottom: .7em; }
@media (max-height: 800px) and (min-width: 900px) {
  .full__body p { font-size: 13px; line-height: 1.5; }
  .full .lede { font-size: 19px; }
}
@media (max-height: 800px) and (min-width: 900px) {
  .contact .field textarea { min-height: 44px; }
  .contact__title { font-size: clamp(34px, 3.8vw, 56px); }
}
#hybrid-surfaces::before { background: linear-gradient(to left, rgba(16, 12, 14, .8) 0%, rgba(16, 12, 14, .62) 40%, rgba(16, 12, 14, 0) 68%); }
/* busy backgrounds (textures, patterns, interiors): the text sits on a
   frosted panel so the picture stays visible around it */
.full--panel::before { background: none !important; }
.full--panel .full__text, .full--panel .full__spec {
  background: rgba(22, 16, 18, .58);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
}
.full--panel .full__text { padding: clamp(20px, 2.4vw, 36px); }
.full--panel .full__spec { padding: 4px 18px 14px; }
.full--panel .full__spec.spec { border-top: 0; }
@media (max-width: 899px) {
  .full--panel .full__text, .full--panel .full__spec { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; }
}
/* a light shade under the transparent header on full-image pages */
.full::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(16, 12, 14, .32), rgba(16, 12, 14, 0)); }
.full--dark::after { display: none; }

/* =====================================================================
   Revision 5 — less text on pictures
   Project pages carry only the title, set right above the piece's details
   in a bottom corner. Contact is the form alone, centred.
   ===================================================================== */

.full--corner::before { background: linear-gradient(to top, rgba(16, 12, 14, .42) 0%, rgba(16, 12, 14, 0) 34%); }
.full--corner .full__inner { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.full--corner.full--right .full__inner { align-items: flex-end; }
.full__corner { width: min(400px, 36%); display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 18px); }
.full__corner .full__title { text-shadow: 0 2px 24px rgba(0, 0, 0, .28); }
.full__corner .spec { margin: 0; text-shadow: 0 1px 10px rgba(0, 0, 0, .35); }
.full__corner .spec dd { opacity: .95; }
@media (max-width: 899px) {
  .full--corner .full__img { object-position: var(--mpos, center); }
  .full--corner .full__inner,
  .full--corner.full--right .full__inner { align-items: flex-start; }
  .full__corner { width: 100%; }
}

/* overview with five projects: three, then two */
.overview__grid--fill { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* contact: the form alone, centred on the plum ground */
.contact--solo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.contact--solo .contact__body { width: 100%; max-width: 720px; margin: 0 auto; }

/* About back to the portrait-and-text spread, text in one column */
.about--split .about__body { columns: 1; max-width: 62ch; font-size: 14.5px; line-height: 1.62; }

/* hero legibility: a slightly deeper ground and a soft shadow behind the type */
.hero__pattern::after { content: ""; position: absolute; inset: 0; background: rgba(38, 10, 24, .26); }
.hero__name { text-shadow: 0 2px 34px rgba(30, 8, 18, .45); }
.hero__tag { font-size: 12px; font-weight: 500; text-shadow: 0 0 2px rgba(30, 8, 18, .55), 0 1px 14px rgba(30, 8, 18, .75); }
.hero__copy { text-shadow: 0 0 2px rgba(30, 8, 18, .55), 0 1px 12px rgba(30, 8, 18, .7); }
.hero__inner::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -18% -10%;
  background: radial-gradient(ellipse at center, rgba(30, 8, 18, .58) 0%, rgba(30, 8, 18, .34) 42%, rgba(30, 8, 18, 0) 72%);
}
.hero__tag { font-size: 13px; letter-spacing: .2em; }
