/* ==========================================================================
   Martina Campodonico — Interior Design
   Brand tokens are derived from the portfolio: lime plaster, charcoal ink,
   terracotta, brass. Hand-drawn double lines are the signature device.
   ========================================================================== */

:root {
  /* colour */
  --paper: #FAFAF7;        /* neutral off-white */
  --paper-2: #FAFAF7;      /* bands use the same colour */
  --placeholder: #F4F2EE;  /* shown only while images load */
  --ink: #1E1B18;          /* charcoal ink */
  --stone: #675E56;        /* secondary text, 5:1 on paper */
  --line: #DCD4C8;         /* hairlines */
  --terra: #8E4A30;        /* terracotta accent, 5.9:1 on paper */
  --brass: #B08A52;        /* decorative only */
  --night: #171411;        /* cinematic background */
  --on-night: #F3EFE8;
  --on-night-muted: #BDB4A8;

  /* type */
  /* Avenir, as in the CV (Light 300 / Book 400 / Medium 500).
     Apple devices have it built in; elsewhere Nunito Sans is the closest free match. */
  --font-sans: "Avenir", "Avenir Next", "Nunito Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: var(--font-sans); /* accents are Avenir italic, like the CV */

  --fs-xs: 0.6875rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.875rem;
  --fs-lg: 0.9375rem;
  --fs-xl: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  --fs-2xl: clamp(1.25rem, 0.8rem + 1.8vw, 2.25rem);
  --fs-display: clamp(1.6rem, 0.6rem + 3.7vw, 4.5rem);

  --track-wide: 0.22em;
  --track-mid: 0.12em;

  /* space (spacious scale) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 1rem; --s-4: 1.5rem;
  --s-5: 2rem; --s-6: 3rem; --s-7: 4.5rem; --s-8: 6rem; --s-9: 9rem;

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --max: 1440px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-mid: 420ms;
  --t-slow: 1200ms;

  --z-header: 40;
  --z-menu: 100;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.05; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }
.on-dark :focus-visible, .cinema :focus-visible { outline-color: var(--on-night); }

.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 999;
  background: var(--ink); color: var(--paper); padding: var(--s-2) var(--s-3);
}
.skip-link:focus { top: var(--s-3); }

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

/* ---------- type helpers ---------- */
.caps { text-transform: uppercase; letter-spacing: var(--track-wide); }
.eyebrow {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide);
  color: var(--stone);
}
.serif-i { font-family: var(--font-serif); font-style: italic; font-weight: 300; letter-spacing: 0; }
.display {
  font-size: var(--fs-display); font-weight: 300; text-transform: uppercase;
  letter-spacing: 0.04em; line-height: 0.95;
}
.h2 { font-size: var(--fs-2xl); font-weight: 300; text-transform: uppercase; letter-spacing: 0.06em; }
.lead { font-size: var(--fs-lg); line-height: 1.6; max-width: 34em; }
.muted { color: var(--stone); }

/* split heading — "THE ............ STUDIO" from the reference */
.split {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4);
  flex-wrap: wrap;
}
.split > * { margin: 0; }
.split > :last-child { text-align: right; margin-left: auto; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 2rem + 8vw, 9rem); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.band { background: var(--paper-2); }
.dark { background: var(--night); color: var(--on-night); }
.dark .muted, .dark .eyebrow { color: var(--on-night-muted); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .rule { background: rgba(243, 239, 232, 0.18); }

/* "+" registration marks from the reference grid */
.plus { position: relative; }
.plus::before, .plus::after {
  content: "+"; position: absolute; font-weight: 300; font-size: 1rem; line-height: 1;
  color: var(--stone); pointer-events: none;
}
.plus::before { left: -0.9rem; bottom: -0.9rem; }
.plus::after { right: -0.9rem; bottom: -0.9rem; }

/* ---------- links & buttons ---------- */
.link {
  position: relative; display: inline-flex; align-items: center; gap: 0.6em;
  font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--track-mid);
  padding-block: 0.6rem; /* 44px target with line height */
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.35rem; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform var(--t-mid) var(--ease-out);
}
.link:hover::after { transform-origin: left; animation: relink 700ms var(--ease-out); }
@keyframes relink { 0% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); } }
.link svg { width: 1.1em; height: 1.1em; transition: transform var(--t-mid) var(--ease-out); }
.link:hover svg { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0 1.6rem; border: 1px solid currentColor;
  font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--track-mid);
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
}
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--terra); border-color: var(--terra); }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  color: var(--ink);
  transition: background var(--t-mid) ease, color var(--t-mid) ease, transform var(--t-mid) var(--ease-out);
}
.header.is-over-dark { color: var(--on-night); }
.header.is-solid { background: rgba(250, 250, 247, 0.94); backdrop-filter: blur(8px); color: var(--ink); }
.header.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 0.8rem; min-height: 44px; }
.brand__mark { width: 35px; height: 28px; flex: none; }
.brand__name {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide); line-height: 1.35;
}
.brand__sub { font-size: 0.667em; font-style: italic; }   /* a third smaller than the name */

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.75rem); }
.nav a {
  position: relative; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide);
  padding-block: 0.9rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.55rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-mid) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
  transition: transform var(--t-mid) var(--ease-out), top var(--t-mid) var(--ease-out);
}
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-header) - 1);
  background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 6rem var(--gutter) 2.5rem;
  opacity: 0; visibility: hidden; transition: opacity var(--t-mid) ease, visibility 0s linear var(--t-mid);
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity var(--t-mid) ease; }
.menu-open .header { color: var(--ink); background: transparent; }
.mobile-menu a.big {
  display: block; font-size: clamp(1.5rem, 7vw, 2.25rem); font-weight: 300; text-transform: uppercase;
  letter-spacing: 0.04em; line-height: 1.15; padding-block: 0.2rem;
}
.mobile-menu .contact-mini { margin-top: 2.5rem; font-size: var(--fs-sm); color: var(--stone); }
.mobile-menu .contact-mini a { display: block; padding-block: 0.35rem; }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .brand__name { display: none; }
}

/* ==========================================================================
   Cinema — recreates the reference video: a sharp framed image floating over
   a blurred, enlarged copy of itself, both drifting slowly, title over it.
   ========================================================================== */
.cinema {
  position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  background: var(--night); color: var(--on-night); isolation: isolate;
}
.cinema__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity var(--t-slow) var(--ease-in-out), visibility 0s linear var(--t-slow);
}
.cinema__slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity var(--t-slow) var(--ease-in-out), visibility 0s;
}

/* back layer — blurred, enlarged, darkened */
.cinema__bg {
  position: absolute; inset: -6%; z-index: 0;
}
.cinema__bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(18px) saturate(0.9) brightness(0.55);
  transform: scale(1.12);
}
.cinema__slide.is-active .cinema__bg img { animation: drift-bg 14s linear both; }

/* front image: 2/3 of its previous size, centred on the page */
.cinema {
  --fw: min(57vw, 1100px);
  --fh: min(52vh, 620px);
  --fx: calc((100vw - var(--fw)) / 2);
  --fy: calc((100vh - var(--fh)) / 2);
}
@supports (height: 100dvh) { .cinema { --fy: calc((100dvh - var(--fh)) / 2); } }
.cinema__frame {
  position: absolute; z-index: 1;
  top: var(--fy); bottom: var(--fy); left: var(--fx); right: var(--fx);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.cinema__frame img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
}
.cinema__slide.is-active .cinema__frame img { animation: drift-front 14s linear both; }
.cinema__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,20,17,0) 50%, rgba(23,20,17,0.55) 100%);
}

/* hand-drawn double line hugging the image (brand signature) */
.cinema__sketch {
  position: absolute; z-index: 2; pointer-events: none;
  top: calc(var(--fy) - 8px); bottom: calc(var(--fy) - 8px);
  left: calc(var(--fx) - 8px); right: calc(var(--fx) - 8px);
  color: rgba(243, 239, 232, 0.55);
}
.cinema__sketch svg { width: 100%; height: 100%; overflow: visible; }
.cinema__sketch path { stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: draw 2.4s var(--ease-out) 0.3s forwards; }

@keyframes drift-bg {
  from { transform: scale(1.12) translate3d(0, 0, 0); }
  to   { transform: scale(1.28) translate3d(-2%, -1.5%, 0); }
}
@keyframes drift-front {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(1.2%, -0.8%, 0); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* overlay text */
.cinema__title {
  position: absolute; z-index: 3;
  left: calc(var(--fx) + 1.25rem); right: calc(var(--fx) + 1.25rem);
  bottom: calc(var(--fy) + 1.1rem);
}
.cinema__title h1, .cinema__title h2 {
  font-size: var(--fs-display); font-weight: 300; letter-spacing: 0.05em; line-height: 0.95;
  text-transform: uppercase; text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.cinema__title .serif-i { font-size: var(--fs-sm); font-style: normal; display: block; margin-bottom: 0.4rem; }
.cinema__slide.is-active .reveal-line { animation: rise 1.1s var(--ease-out) 0.25s both; }
.cinema__slide.is-active .reveal-line--2 { animation-delay: 0.45s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.cinema__meta { display: none; }

/* bottom bar — caption, counter, progress, controls */
.cinema__bar {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 0;
  padding: 0 var(--fx) clamp(1.25rem, 4vh, 2.5rem);
  display: grid; grid-template-columns: 1fr auto; gap: var(--s-3) var(--s-5); align-items: end;
}
.cinema__caption {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  line-height: 1.4; max-width: 38em; color: var(--on-night); min-height: 2.8em;
}
.cinema__controls { display: flex; align-items: center; gap: var(--s-2); }
.cinema__count {
  font-size: var(--fs-xs); letter-spacing: var(--track-mid); font-variant-numeric: tabular-nums;
  min-width: 4.5em; text-align: center;
}
.cinema__btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(243, 239, 232, 0.35);
  transition: background var(--t-fast) ease, border-color var(--t-fast) ease;
}
.cinema__btn:hover { background: rgba(243, 239, 232, 0.12); border-color: var(--on-night); }
.cinema__btn svg { width: 16px; height: 16px; }
.cinema__progress {
  grid-column: 1 / -1; height: 1px; background: rgba(243, 239, 232, 0.22); position: relative; overflow: hidden;
}
.cinema__progress i {
  position: absolute; inset: 0; background: var(--on-night); transform-origin: left; transform: scaleX(0);
}
.cinema__next {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide);
}
.cinema__scroll {
  position: absolute; z-index: 4; left: 50%; bottom: clamp(5rem, 13vh, 7.5rem); transform: translateX(-50%);
  display: none;
}

@media (max-width: 760px) {
  .cinema { --fw: calc((100vw - 2rem) * 0.67); --fh: 46vh; }
  .cinema__bar { padding: 0 1rem 1.25rem; grid-template-columns: 1fr; }
  .cinema__controls { justify-content: flex-start; }
  .cinema__count { order: -1; margin-right: auto; text-align: left; }
}

/* ==========================================================================
   Home — landing: only the project covers, drifting sideways while their
   heights slowly breathe (video reference #2). No text.
   ========================================================================== */
.landing {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 7rem 2.5rem;   /* more room on top pushes the projects lower */
  overflow: hidden;
}
.strip { position: relative; }
.strip__track {
  display: flex; align-items: center; gap: clamp(0.75rem, 1.4vw, 1.25rem);
  width: max-content;
  animation: marquee 80s linear infinite;
}
.landing .strip__track { align-items: center; }
.landing__about {
  margin-bottom: clamp(5rem, 15vh, 9rem); max-width: 34rem; text-align: center;
  font-size: var(--fs-base); line-height: 1.7; color: var(--stone);
}
/* the rows keep sliding all the time (they still stop for visitors who ask their
   device to reduce motion) */

/* project pages: the renders slide the same way */
.strip-section { position: relative; overflow: hidden; padding-block: var(--s-6) 5rem; }
.strip-section .strip__track { align-items: center; }
/* drawings strip: each drawing keeps its own proportions, white paper blends into the page */
.strip--natural .strip__item { width: auto; }
.strip--natural .strip__media { background: none; }
.strip.strip--natural { mix-blend-mode: multiply; }   /* white paper of the drawings takes the page colour */
.strip--natural .strip__media img { width: auto; height: 100%; object-fit: contain; }
.strip-section--drawings { padding-block: var(--s-4) 5rem; }
.strip-section--drawings .zones-title { margin: 0 auto var(--s-4); }
.strip-section .strip__track--even { align-items: flex-start; }  /* names on one line */
.strip__caption { display: block; margin-top: 0.5rem; font-size: var(--fs-xs); letter-spacing: var(--track-wide); color: var(--stone); }
@keyframes marquee { to { transform: translateX(-50%); } }

.strip__track { align-items: flex-start; }
.strip__item { flex: none; width: clamp(170px, 10rem + 9vw, 320px); }
.strip__link { display: block; }
.strip__label {
  display: flex; justify-content: space-between; gap: 0.5rem;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-mid);
  padding-bottom: 0.55rem; white-space: nowrap;
}
.strip__link:hover .strip__label span:last-child { color: var(--terra); }
.strip__media {
  display: block; position: relative; overflow: hidden; background: var(--placeholder);
  height: var(--h, 300px);
  transition: height 1100ms var(--ease-out);
}
.strip__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.strip__link:hover .strip__media img { transform: scale(1.05); }

/* icon-only pause/play control (moving content must be pausable) */
.strip__toggle {
  position: absolute; right: var(--gutter); bottom: 1.25rem;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--stone);
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.strip__toggle:hover { color: var(--ink); border-color: var(--ink); }
.strip__toggle svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
  .strip__track { animation: none; padding-inline: var(--gutter); }
  .strip__item[aria-hidden="true"] { display: none; }
  .strip__toggle { display: none; }
}

.section-title { font-size: var(--fs-xl); font-weight: 300; text-transform: uppercase; letter-spacing: var(--track-wide); text-align: left; }

/* ==========================================================================
   Home — intro
   ========================================================================== */
.intro__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-5) var(--gutter);
  margin-top: var(--s-7); align-items: start;
}
.intro__text { grid-column: 1 / span 6; }
.landing + .intro { padding-top: 1.5rem; }   /* sits close under the sliding projects */
.intro .intro__text { max-width: 40rem; margin-inline: auto; text-align: center; }
.intro .intro__text .lead { margin-inline: auto; }
.keep-line { white-space: nowrap; }
@media (max-width: 600px) { .keep-line { white-space: normal; } }
.intro__big { font-size: var(--fs-2xl); font-weight: 300; line-height: 1.1; margin-bottom: var(--s-4); }
.intro__sketch { grid-column: 7 / span 6; background: var(--paper); }
.intro__sketch img { mix-blend-mode: multiply; width: 100%; max-width: 560px; margin-left: auto; }
.intro__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.fact { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.fact b { display: block; font-weight: 400; font-size: var(--fs-lg); margin-top: 0.25rem; }

@media (max-width: 900px) {
  .intro__text, .intro__sketch { grid-column: 1 / -1; }
  .intro__facts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Works grid — asymmetric, inspired by the reference desktop layout
   ========================================================================== */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2.5rem, 5vw, 5rem) var(--gutter); margin-top: var(--s-7); }
.work { display: block; }
.work:nth-child(1) { grid-column: 1 / span 7; }
.work:nth-child(2) { grid-column: 9 / span 4; margin-top: 18%; }
.work:nth-child(3) { grid-column: 2 / span 5; }
.work:nth-child(4) { grid-column: 7 / span 6; margin-top: 10%; }
.work:nth-child(5) { grid-column: 3 / span 8; }

.work__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.work:nth-child(2) .work__media { aspect-ratio: 4 / 5; }
.work:nth-child(5) .work__media { aspect-ratio: 16 / 8; }
.work__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease-out), filter var(--t-mid) ease;
}
.work:hover .work__media img { transform: scale(1.045); }
.work__info {
  display: grid; grid-template-columns: 1fr; gap: 0.15rem var(--s-3); align-items: baseline;
  padding-top: var(--s-3);
}
.work__num { font-size: var(--fs-xs); letter-spacing: var(--track-mid); color: var(--stone); }
.work__title { font-size: var(--fs-xl); font-weight: 300; text-transform: uppercase; letter-spacing: 0.08em; }
.work__type { grid-column: 1; font-family: var(--font-serif); font-style: italic; font-size: var(--fs-lg); color: var(--stone); }
.work__award {
  grid-column: 1 / -1; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-mid); color: var(--terra);
}
.work__title span { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size var(--t-mid) var(--ease-out); }
.work:hover .work__title span { background-size: 100% 1px; }

@media (max-width: 900px) {
  .works { grid-template-columns: 1fr; }
  .work:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .work:nth-child(n) .work__media { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   Recognition list
   ========================================================================== */
.list-rows { margin-top: var(--s-6); border-top: 1px solid var(--line); }
.list-rows li {
  display: grid; grid-template-columns: 7rem 1fr 1fr auto; gap: var(--s-2) var(--gutter); align-items: baseline;
  padding-block: 1.4rem; border-bottom: 1px solid var(--line);
}
.dark .list-rows, .dark .list-rows li { border-color: rgba(243, 239, 232, 0.18); }
.list-rows .yr { font-size: var(--fs-sm); letter-spacing: var(--track-mid); font-variant-numeric: tabular-nums; }
.list-rows .what { font-size: var(--fs-lg); }
.list-rows .who { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-lg); }
.list-rows .where { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide); }
.dark .list-rows .where, .dark .list-rows .yr { color: var(--on-night-muted); }
@media (max-width: 760px) {
  .list-rows li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta { text-align: left; }
.cta__eyebrow { font-size: calc(var(--fs-xs) * 1.25); font-weight: 400; color: var(--ink); }  /* a quarter bigger */
.cta__link { font-size: var(--fs-xs); padding-block: 0.4rem; color: var(--stone); }               /* smaller contact link */
.cta__link svg { width: 0.9em; height: 0.9em; }
.cta__big {
  display: block; font-size: clamp(1.4rem, 0.5rem + 4vw, 4.75rem); font-weight: 300; text-transform: uppercase;
  letter-spacing: 0.08em; line-height: 0.95; margin-block: var(--s-4) var(--s-6);
}
.cta__mail {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(0.95rem, 0.8rem + 1vw, 1.3rem);
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  padding-bottom: 0.15em; transition: color var(--t-fast) ease;
}
.cta__mail:hover { color: var(--terra); }

/* ==========================================================================
   Page header (non-cinema pages)
   ========================================================================== */
.page-head { padding-top: clamp(8rem, 6rem + 8vw, 12rem); padding-bottom: var(--s-6); }
.page-head .split { align-items: flex-end; }
.page-head .display { margin: 0; }

/* ==========================================================================
   Projects index
   ========================================================================== */
.index-list { border-top: 1px solid var(--line); }
.index-row {
  position: relative; display: grid; grid-template-columns: 4rem 1.4fr 1fr 1fr 2.5rem; gap: var(--gutter);
  align-items: center; padding-block: 1.6rem; border-bottom: 1px solid var(--line);
  transition: padding var(--t-mid) var(--ease-out);
}
.index-row .n { font-size: var(--fs-sm); color: var(--stone); letter-spacing: var(--track-mid); }
.index-row .t { font-size: var(--fs-xl); font-weight: 300; text-transform: uppercase; letter-spacing: 0.08em; }
.index-row .ty { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-lg); color: var(--stone); }
.index-row .l { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide); }
.index-row .arr { justify-self: end; width: 22px; height: 22px; transition: transform var(--t-mid) var(--ease-out); }
.index-row:hover .arr { transform: translateX(6px); }
.index-row:hover .t { color: var(--terra); }
.index-thumb {
  position: absolute; right: 9%; top: 50%; width: clamp(180px, 20vw, 300px); aspect-ratio: 4/3; z-index: 2;
  pointer-events: none; opacity: 0; transform: translateY(-50%) scale(0.94);
  transition: opacity var(--t-mid) ease, transform var(--t-mid) var(--ease-out);
}
.index-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (min-width: 1000px) {
  .index-row:hover .index-thumb { opacity: 1; transform: translateY(-50%) scale(1); }
}
@media (max-width: 900px) {
  .index-row { grid-template-columns: 2.5rem 1fr 1.5rem; gap: 0.25rem var(--s-3); }
  .index-row .ty, .index-row .l { grid-column: 2; }
  .index-row .arr { grid-row: 1; grid-column: 3; }
  .index-thumb { display: none; }
}

/* projects page: images at half their previous size */
.cards .work__title { font-size: var(--fs-lg); }
.cards .work__type { font-size: calc(var(--fs-lg) * 0.75); }   /* location, a quarter smaller */
.cards .work:nth-child(n) { grid-column: auto; margin-top: 0; }
.cards .work:nth-child(n) .work__media { aspect-ratio: 4 / 3; }
/* vertical list — each card keeps its previous size */
/* computer: all projects in one horizontal row; phone: one under the other */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--gutter); }   /* two projects side by side, rows going down */
.cards .work { width: auto; }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; gap: var(--s-6); } }

/* ==========================================================================
   Project page
   ========================================================================== */
.overview { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-6) var(--gutter); }
.overview__meta { grid-column: 1 / span 4; }
.overview__story { grid-column: 6 / span 7; }
.meta-row { border-top: 1px solid var(--line); padding-block: 0.9rem 1.2rem; }
.meta-row:last-child { border-bottom: 1px solid var(--line); }
.meta-row dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--stone); }
.meta-row dd { margin: 0.2rem 0 0; font-size: var(--fs-lg); line-height: 1.4; }
.meta-row dd.award { color: var(--terra); }
.overview__story p { font-size: var(--fs-lg); line-height: 1.7; }
.overview__story p:first-child::first-line { text-transform: uppercase; letter-spacing: var(--track-mid); }
@media (max-width: 900px) {
  .overview__meta, .overview__story { grid-column: 1 / -1; }
}

.pull {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(0.95rem, 0.8rem + 1.5vw, 1.75rem); line-height: 1.3; max-width: 30em; text-wrap: balance;
}
.pull::before { content: "“"; }
.pull::after { content: "”"; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.gallery figure { margin: 0; overflow: hidden; background: var(--paper-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .wide { grid-column: span 12; aspect-ratio: 16 / 9; }
.gallery .tall { grid-column: span 6; aspect-ratio: 4 / 5; }
.gallery .tall + .tall + .tall { grid-column: span 6; }
.gallery.has-1-tall .tall { grid-column: 4 / span 6; }
@media (min-width: 900px) {
  .gallery.has-3-tall .tall { grid-column: span 4; }
  .gallery .wide:nth-child(odd) { grid-column: 1 / span 10; }
  .gallery .wide:nth-child(even) { grid-column: 3 / span 10; }
}
@media (max-width: 600px) {
  .gallery .tall { grid-column: span 12; }
}

.drawings { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--gutter); align-items: center; }
.drawings figure { margin: 0; }
.drawings .solo { grid-column: 1 / -1; }
.drawings .solo .draw { max-width: min(640px, 100%); margin-inline: auto; }
/* white paper disappears into the page background */
.draw { display: block; position: relative; mix-blend-mode: multiply; }
/* "KLETA ZONES": smaller drawings side by side */
.zones-title { grid-column: 1 / -1; margin-top: var(--s-6); font-size: var(--fs-sm); font-weight: 400; letter-spacing: var(--track-wide); text-transform: uppercase; }
/* staggered: one left, one right, each starting about halfway down the previous one */
.drawings.drawings--small { grid-column: 1 / -1; display: block; }
.drawings--small figure { width: 46%; }
.drawings--small figure:nth-child(even) { margin-left: auto; }
.drawings--small figure + figure { margin-top: -4%; }   /* staggered, with breathing room */
.drawings--small figure:nth-child(4) { margin-top: -9%; } /* fourth zone sits a little higher */
.drawings--small figure:nth-child(6),
.drawings--small figure:nth-child(7) { margin-top: -9%; } /* SHOWROOM and PATIO a little higher */
/* zone names: small, under each drawing, on the same side as the drawing */
.drawings--small .zone-name { margin-top: 0.4rem; font-size: var(--fs-xs); letter-spacing: var(--track-wide); color: var(--stone); }
.drawings--small figure:nth-child(even) .zone-name { text-align: right; }
.drawings--small figure:nth-child(5) .zone-name { margin-top: 1.5rem; } /* EVENT label a little lower */
@media (max-width: 760px) {
  .drawings--small figure { width: 62%; }
  .drawings--small figure + figure { margin-top: -6%; }
}
/* appear from their side as you scroll */
.js .drawings--small [data-reveal="left"] { transform: translateX(-40px); }
.js .drawings--small [data-reveal="right"] { transform: translateX(40px); }
.js .drawings--small [data-reveal].is-in { transform: none; }
@media (prefers-reduced-motion: reduce) { .js .drawings--small [data-reveal] { transform: none; } }
.draw svg { display: block; width: 100%; height: auto; overflow: visible; }
@media (max-width: 760px) { .drawings { grid-template-columns: 1fr; } }

.next-project {
  position: relative; display: block; overflow: hidden; min-height: 70vh; color: var(--on-night); background: var(--night);
}
.next-project img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
  transition: transform 1.6s var(--ease-out), opacity var(--t-mid) ease;
}
.next-project:hover img { transform: scale(1.05); opacity: 0.7; }
.next-project, .next-project .wrap { min-height: 34vh; }
.next-project .wrap { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding-block: var(--s-6); }

/* ---------- project page top: main image in the logo square, on the left ---------- */
.p-hero { padding-top: clamp(7rem, 5rem + 5vw, 9rem); padding-bottom: 0; overflow-x: clip; }
/* info on the left, image on the right; both stay pinned at the same height
   while they drift outward as you scroll (the extra grid height gives room) */
.p-hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-6) var(--gutter); align-items: start; }
.p-hero__content { grid-column: 1 / span 6; grid-row: 1; position: sticky; top: 6.5rem; }
.p-hero__media { grid-column: 7 / span 6; grid-row: 1; position: sticky; top: 6.5rem; }
.p-info { width: max-content; max-width: 100%; margin-inline: auto; text-align: center; }
.project-page .pull { margin-inline: auto; text-align: center; }
/* description: compact block that spans the page in two columns */
.p-story { max-width: 44rem; margin-inline: auto; text-align: center; }
.p-hero + .section--tight { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.p-frame { position: relative; margin: 0 auto; width: 62.5%; color: var(--ink); aspect-ratio: 4 / 3; transform-origin: top center; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .p-frame { margin-inline: auto; } }
/* the image is zoomed in slightly and cut exactly along the drawn lines,
   so it fills the square right into each corner (no gap at the bottom right) */
.p-frame__clip {
  position: absolute; inset: 0;
  overflow: hidden;
  /* soft left and right edges that melt into the blurred copy behind */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.p-frame__clip img {
  position: absolute; inset: -2%; width: 104%; height: 104%; max-width: none;
  object-fit: cover; display: block;
}
.p-frame__side {
  position: absolute; top: 0; bottom: 0; width: 26%; pointer-events: none;
  background-repeat: no-repeat; background-size: 1200% 100%;   /* only the outer edge of the photo, stretched */
  filter: blur(16px) saturate(0.95); opacity: 0.75;
}
.p-frame__side--l {
  right: 100%; margin-right: -12%; background-position: left center;
  -webkit-mask-image: linear-gradient(to left, #000 35%, transparent 100%);
          mask-image: linear-gradient(to left, #000 35%, transparent 100%);
}
.p-frame__side--r {
  left: 100%; margin-left: -12%; background-position: right center;
  -webkit-mask-image: linear-gradient(to right, #000 35%, transparent 100%);
          mask-image: linear-gradient(to right, #000 35%, transparent 100%);
}
.p-frame__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.p-frame__lines path { stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: draw 2.4s var(--ease-out) 0.2s forwards; }
.p-title { font-size: var(--fs-2xl); font-weight: 300; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.5rem; }
@media (max-width: 900px) {
  .p-hero__grid { min-height: 0; }
  .p-hero__media, .p-hero__content { grid-column: 1 / -1; position: static; }
  .p-hero__media { grid-row: 1; }
  .p-hero__content { grid-row: 2; }
}

/* ---------- project pages: all text one size, capitals only for the name ---------- */
.project-page main p, .project-page main dd, .project-page main dt,
.project-page main .eyebrow, .project-page main .link, .project-page main figcaption,
.project-page .cinema__title .serif-i, .project-page .cinema__count,
.project-page .overview__story p, .project-page .pull {
  font-size: var(--fs-sm); font-weight: 400; font-style: normal;
  text-transform: none; letter-spacing: 0.01em; line-height: 1.7;
}
.project-page .overview__story p:first-child::first-line { text-transform: none; letter-spacing: inherit; }
.project-page .pull::before, .project-page .pull::after { content: none; }
/* project info: no lines, labels in spaced capitals like the footer headings */
.project-page .meta-row, .project-page .meta-row:last-child { border: 0; padding-block: 0 1rem; }
.project-page main .meta-row dt { color: var(--stone); text-transform: uppercase; letter-spacing: var(--track-wide); font-size: var(--fs-xs); }
.project-page .meta-row dd { margin-top: 0.1rem; }
.project-page .next-project .display { font-size: var(--fs-2xl); line-height: 1; text-transform: uppercase; }
.project-page .next-project .wrap { padding-block: var(--s-5); }
.project-page .next-project .eyebrow { color: var(--on-night); }



/* ==========================================================================
   About
   ========================================================================== */
.about-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-6) var(--gutter); align-items: start; }
.about-layout__photo { grid-column: 1 / span 4; position: sticky; top: 6.5rem; }
.about-layout__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.02); }
.about-layout__content { grid-column: 6 / span 7; }
.about-awards { margin-top: var(--s-7); }
.about-cta { margin-top: var(--s-4); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; }
.about-awards .list-rows { margin-top: var(--s-3); }
.about-awards .list-rows li { grid-template-columns: 5.5rem 1fr auto; }
.about-awards .list-rows .where { display: none; }
.about-awards .ext {
  display: block; margin-top: 0.3rem; font-style: normal; font-size: var(--fs-xs);
  text-transform: uppercase; letter-spacing: var(--track-mid); color: var(--terra);
}
.about-awards .ext:hover { text-decoration: underline; text-underline-offset: 3px; }
.about-awards .who { text-align: right; }
/* portrait shrinks as you scroll (scale set by JS) */
.about-layout__photo img { transform-origin: top left; will-change: transform; }
@media (max-width: 760px) {
  .about-layout__photo { grid-column: 1 / -1; position: static; max-width: 220px; }
  .about-layout__content { grid-column: 1 / -1; }
  .about-awards .list-rows li { grid-template-columns: 1fr; }
}

.cv-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-6) var(--gutter); }
.cv-grid > h2 { grid-column: 1 / span 4; }
.cv-grid > .cv-list { grid-column: 5 / span 8; }
.cv-list li { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem var(--s-4); padding-block: 1.4rem; border-top: 1px solid var(--line); }
.cv-list li:last-child { border-bottom: 1px solid var(--line); }
.cv-list .role { font-size: var(--fs-lg); }
.cv-list .org { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-lg); color: var(--stone); }
.cv-list .place { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--stone); text-align: right; grid-row: 1; grid-column: 2; align-self: center; }
.cv-list .desc { grid-column: 1 / -1; color: var(--stone); font-size: var(--fs-base); margin: 0.2rem 0 0; }
@media (max-width: 900px) {
  .cv-grid > h2, .cv-grid > .cv-list { grid-column: 1 / -1; }
  .cv-list li { grid-template-columns: 1fr; }
  .cv-list .place { grid-row: auto; grid-column: 1; text-align: left; }
}

.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--gutter); }
.skills h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--stone); margin-bottom: var(--s-3); }
.skills li { padding-block: 0.55rem; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--s-3); }
.skills li span:last-child { font-family: var(--font-serif); font-style: italic; color: var(--stone); }
@media (max-width: 900px) { .skills { grid-template-columns: 1fr; } }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-7) var(--gutter); }
.contact-grid__info { grid-column: 1 / span 5; }
.contact-grid__form { grid-column: 7 / span 6; }
@media (max-width: 900px) { .contact-grid__info, .contact-grid__form { grid-column: 1 / -1; } }
.contact-lines a { display: inline-block; padding-block: 0.4rem; font-size: var(--fs-lg); }
.contact-lines a:hover { color: var(--terra); }

.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--stone); }
.field label .req { color: var(--terra); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--stone); border-radius: 0;
  padding: 0.7rem 0; min-height: 48px; font-size: var(--fs-lg);
  transition: border-color var(--t-fast) ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom: 2px solid var(--ink); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; }
.field .error { font-size: var(--fs-sm); color: #9B2C1F; min-height: 1.3em; }
.field[data-invalid] input, .field[data-invalid] textarea { border-bottom-color: #9B2C1F; }
.form-note { font-size: var(--fs-sm); color: var(--stone); }
.form-status { font-size: var(--fs-base); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--night); color: var(--on-night); padding-block: var(--s-7) var(--s-5); }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-6) var(--gutter); }
.footer h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--on-night-muted); margin-bottom: var(--s-3); }
.footer a { display: inline-block; padding-block: 0.35rem; }
.footer a:hover { color: var(--brass); }
/* contact details read as one compact block */
.footer__contact h3 { margin-bottom: 0.6rem; font-size: calc(var(--fs-xs) * 1.367); }
.footer__contact a, .footer__contact span { display: block; padding-block: 0; line-height: 1.3; font-size: calc(var(--fs-base) * 0.75); }   /* a quarter smaller */
.footer__contact a[href^="mailto"] { margin-bottom: 0.35rem; }   /* a little air between email and phone */
.footer__sign { font-family: var(--font-serif); font-style: italic; font-size: clamp(0.86rem, 0.69rem + 0.83vw, 1.04rem); line-height: 1.25; white-space: nowrap; }
.footer__bottom {
  margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid rgba(243, 239, 232, 0.18);
  display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-mid); color: var(--on-night-muted);
}
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="img"] { transform: none; clip-path: inset(8% 0 0 0); transition: opacity 1.1s var(--ease-out), clip-path 1.3s var(--ease-out); }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .cinema__slide.is-active .cinema__bg img,
  .cinema__slide.is-active .cinema__frame img { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}

/* ==========================================================================
   Image viewer
   ========================================================================== */
.strip__zoom { display: block; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.p-frame { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(23, 20, 17, 0.94); opacity: 0; visibility: hidden;
  transition: opacity var(--t-mid) ease, visibility 0s linear var(--t-mid);
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity var(--t-mid) ease; }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 0.75rem; }
.lightbox__fig img { max-width: min(92vw, 1600px); max-height: 84vh; width: auto; height: auto; object-fit: contain; background: #fff; }
.lightbox__count { font-size: var(--fs-xs); letter-spacing: var(--track-mid); color: var(--on-night-muted); min-height: 1em; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  color: var(--on-night); border: 1px solid rgba(243, 239, 232, 0.35); transition: background var(--t-fast) ease;
}
.lightbox__btn:hover { background: rgba(243, 239, 232, 0.12); }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox :focus-visible { outline-color: var(--on-night); }
@media (max-width: 760px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.25rem; transform: none; }
}

/* ==========================================================================
   Home — services
   ========================================================================== */
.services { text-align: center; }
.services__eyebrow { font-weight: 400; }
.services__intro {
  font-size: var(--fs-2xl); font-weight: 300; line-height: 1.2;
  max-width: 22em; margin: var(--s-4) auto 0;
}
.services__list {
  list-style: none; padding: 0; margin: var(--s-7) auto 0; max-width: 72rem;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.services__list li { padding: var(--s-2) var(--s-5); }
.services__list li + li { border-left: 1px solid var(--line); }
.services__list h3 {
  font-size: var(--fs-xs); font-weight: 400; text-transform: uppercase;
  letter-spacing: var(--track-wide); color: var(--ink);
}
.services__list p {
  margin: var(--s-3) auto 0; color: var(--stone);
  font-size: var(--fs-sm); line-height: 1.7; max-width: 22em;
}
@media (max-width: 900px) {
  .services__list { grid-template-columns: 1fr 1fr; row-gap: var(--s-6); }
  .services__list li:nth-child(3) { border-left: 0; }
}
@media (max-width: 560px) {
  .services__list { grid-template-columns: 1fr; row-gap: 0; }
  .services__list li { padding: var(--s-5) 0; }
  .services__list li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* About without portrait: text sits in a centred column */
.about-layout__content { grid-column: 3 / span 8; }
@media (max-width: 760px) { .about-layout__content { grid-column: 1 / -1; } }

/* Home: title and text above the sliding projects */
.landing__intro { margin-bottom: clamp(4rem, 12vh, 7rem); max-width: 40rem; text-align: center; }
.landing__intro .lead { margin-inline: auto; }
.landing + .services { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }

/* ==========================================================================
   Projects page: intro, filters, card summaries, closing call to action
   ========================================================================== */
.page-intro {
  margin-top: var(--s-4); max-width: 36em;
  font-size: var(--fs-lg); line-height: 1.6; color: var(--stone);
}
.filters { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; margin-bottom: var(--s-6); }
.filters__btn {
  background: none; border: 0; padding: 0.6rem 0; cursor: pointer; min-height: 44px;
  font: inherit; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide);
  color: var(--stone); transition: color var(--t-fast) ease;
}
.filters__btn:hover { color: var(--ink); }
.filters__btn[aria-pressed="true"] {
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) left calc(100% - 0.45rem) / 100% 1px no-repeat;
}
.cards .work[hidden] { display: none; }
.cards .work__summary {
  margin-top: 0.5rem; font-size: var(--fs-sm); line-height: 1.6; color: var(--stone);
}
.closing { text-align: center; border-top: 1px solid var(--line); }
.closing__title { font-size: var(--fs-2xl); font-weight: 300; line-height: 1.15; }
.closing__text { margin: var(--s-3) auto var(--s-4); color: var(--stone); font-size: var(--fs-lg); }

/* ==========================================================================
   About — how we work: a path from idea to CGI
   ========================================================================== */
.process { margin-top: var(--s-7); }
.process__intro { margin-top: var(--s-3); font-size: var(--fs-lg); line-height: 1.6; max-width: 30em; }
.process__steps {
  list-style: none; padding: 0; margin: var(--s-6) 0 0; position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter);
}
/* the path: a thin line running through the four steps */
.process__steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line);
}
.process__steps li { position: relative; padding-top: var(--s-4); }
.process__dot {
  position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--ink);
}
.process__steps li:last-child .process__dot { background: var(--ink); }   /* the path arrives */
.process__steps h3 {
  font-size: var(--fs-xs); font-weight: 400; text-transform: uppercase;
  letter-spacing: var(--track-wide); color: var(--ink);
}
.process__steps p { margin-top: var(--s-2); font-size: var(--fs-sm); line-height: 1.7; color: var(--stone); }
@media (max-width: 900px) {
  .process__steps { grid-template-columns: 1fr; gap: var(--s-5); padding-left: var(--s-5); }
  .process__steps::before { left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .process__steps li { padding-top: 0; }
  .process__dot { left: calc(-1 * var(--s-5)); top: 0.3em; }
}

/* How we work, inside the centred Services section */
.services .process { max-width: 72rem; margin: var(--s-8) auto 0; }
.services .process__intro { margin-inline: auto; }
.services .process__steps li { padding-inline: var(--s-3); }
.services .process__dot { left: 50%; transform: translateX(-50%); }
.services .process__steps::before { left: 12.5%; right: 12.5%; }   /* line runs from the first dot to the last */
@media (max-width: 900px) {
  .services .process__steps { text-align: left; max-width: 30rem; margin-inline: auto; }
  .services .process__steps li { padding-inline: 0; }
  .services .process__dot { left: calc(-1 * var(--s-5)); transform: none; }
  .services .process__steps::before { left: 4px; right: auto; }
}

/* Services as its own page: clear the header */
.services--page { padding-top: clamp(8rem, 6rem + 8vw, 12rem); }

/* About: name smaller than the other page titles */
body[data-page="about"] .page-head .display { font-size: clamp(1.25rem, 0.7rem + 2.2vw, 2.6rem); }
/* About: same gap above Awards as between the title and the text */
.about-awards { margin-top: calc(var(--s-6) + clamp(3rem, 2rem + 4vw, 5rem)); }
body[data-page="about"] .page-head .display { text-align: center; }

/* "STUDIO" next to the M logo: MStudio */
.brand__flip { display: inline-block; transform: scaleX(-1); }   /* mirrored first E of ƎMME, if used */
.brand__name { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--track-wide); position: relative; top: 0.4em; }   /* "M . STUDIO", sitting on the base of the logo */
@media (max-width: 760px) { .brand__name { display: block; } }

/* ==========================================================================
   Project page — editorial scroll (Green Portals)
   ========================================================================== */
.editorial { padding-block: var(--s-7) var(--s-8); }
.editorial__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: clamp(4rem, 2rem + 8vw, 10rem); }
.ed { margin: 0; }
/* pairs of images: one large, one small and lower, swapping sides */
.ed--1 { grid-column: 1 / span 7; }
.ed--2 { grid-column: 9 / span 4; margin-top: 14vw; }
.ed--3 { grid-column: 3 / span 6; }
.ed--4 { grid-column: 10 / span 3; margin-top: 22vw; }
.ed--5 { grid-column: 1 / span 4; margin-top: 8vw; }
.ed--6 { grid-column: 6 / span 7; }
.ed__media { display: block; width: 100%; padding: 0; border: 0; background: var(--placeholder); overflow: hidden; cursor: zoom-in; }
.ed__media img { display: block; width: 100%; height: auto; transform: scale(1.08); will-change: transform; transition: filter 0.9s var(--ease-out); }
@media (hover: hover) {
  .ed__media img { filter: grayscale(0.9) contrast(1.02); }
  .ed__media:hover img, .ed__media:focus-visible img { filter: none; }
}
.ed__cap { display: flex; gap: 1.25rem; margin-top: 0.85rem; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--track-wide); color: var(--stone); }
.ed__num { color: var(--ink); font-variant-numeric: tabular-nums; }
.ed--2 .ed__cap, .ed--4 .ed__cap, .ed--6 .ed__cap { justify-content: flex-end; }
@media (max-width: 760px) {
  .editorial__grid { row-gap: var(--s-7); }
  .ed:nth-child(n) { grid-column: 1 / span 10; margin-top: 0; }
  .ed:nth-child(even) { grid-column: 3 / span 10; }
}
@media (prefers-reduced-motion: reduce) { .ed__media img { transform: none; } }

/* Editorial scroll: pictures centred, one below the other */
.editorial__grid { display: flex; flex-direction: column; align-items: center; row-gap: clamp(3.5rem, 2rem + 5vw, 7rem); }
.ed:nth-child(n) { width: min(100%, 56rem); margin-top: 0; }
.ed:nth-child(n) .ed__cap { justify-content: flex-start; }
.ed.ed--tall { width: min(100%, 36rem); }

/* Editorial project page: even spacing between info, text, pictures, quote and next project */
.is-editorial { --ed-gap: clamp(5rem, 3rem + 6vw, 10rem); }
.is-editorial #p-story p:last-child, .is-editorial #p-quote { margin-bottom: 0; }
.is-editorial section:has(> .wrap > #p-story) { padding-top: var(--ed-gap); padding-bottom: 0; }
.is-editorial .editorial { padding-top: calc(var(--ed-gap) * 1.35); padding-bottom: 0; }   /* a bit more room before the first picture */
.is-editorial section:has(> .wrap > #p-quote) { padding-top: var(--ed-gap); padding-bottom: var(--ed-gap); }

/* clickable renders fill their card (buttons otherwise shrink, leaving a gap after tall images) */
.strip:not(.strip--natural) .strip__zoom { width: 100%; padding: 0; border: 0; background: none; text-align: inherit; }

/* Project renders: a small title above, and cards a little smaller than before */
.strip-section--renders .renders-title { margin: 0 auto var(--s-4); }
.strip-section--renders .strip__item { width: clamp(150px, 8.75rem + 7.75vw, 276px); }
/* names under the renders: small, lowercase */
.strip-section--renders .strip__caption { text-transform: lowercase; letter-spacing: 0.04em; }

/* ==========================================================================
   Front page motion
   ========================================================================== */
/* title word by word, then the text */
.js .landing__intro .word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.js .landing__intro .word > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(0.15s + var(--i) * 0.12s); }
.js .landing__intro.is-on .word > span { transform: none; }
.js .landing__intro .lead { opacity: 0; transform: translateY(12px); transition: opacity 1.2s ease 0.9s, transform 1.2s var(--ease-out) 0.9s; }
.js .landing__intro.is-on .lead { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .landing__intro .lead { opacity: 1; transform: none; } }

/* strip: the project under the mouse stays in colour, the others soften */
.landing .strip__media img { transition: transform 1.2s var(--ease-out), filter 0.6s ease, opacity 0.6s ease; }
.landing .strip.is-hover .strip__item .strip__media img { filter: grayscale(0.7); opacity: 0.6; }
.landing .strip.is-hover .strip__item:hover .strip__media img { filter: none; opacity: 1; }
.landing .strip.is-hover .strip__label { transition: opacity 0.6s ease; opacity: 0.45; }
.landing .strip.is-hover .strip__item:hover .strip__label { opacity: 1; }

/* "view" cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 0; height: 0;
}
.cursor span {
  position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(250, 250, 247, 0.6); color: var(--ink); backdrop-filter: blur(2px);
  font-size: 0.6rem; letter-spacing: var(--track-wide); text-transform: uppercase;
  transform: scale(0); transition: transform 0.45s var(--ease-out);
}
.cursor.is-on span { transform: scale(1); }

/* How we work: descriptions appear one by one as you scroll */
.process__steps.is-stepped p { opacity: 0; transform: translateY(10px); transition: opacity 0.9s ease, transform 0.9s var(--ease-out); }
.process__steps.is-stepped li.is-open p { opacity: 1; transform: none; }
.process__steps.is-stepped .process__dot { transition: background-color 0.6s ease; }
.process__steps.is-stepped li.is-open .process__dot { background: var(--ink); }
.process__steps.is-stepped li:not(.is-open) .process__dot { background: var(--paper); }

/* Contact: smaller title, closer to the text below */
body[data-page="contact"] .page-head .display { font-size: clamp(1.25rem, 0.7rem + 2.2vw, 2.6rem); }
body[data-page="contact"] .page-head { padding-bottom: 0; }
body[data-page="contact"] .page-head + .section--tight { padding-top: clamp(1.75rem, 1rem + 2vw, 2.75rem) !important; }
/* Projects intro on one line (wraps only on small screens) */
@media (min-width: 900px) { .page-intro { max-width: none; white-space: nowrap; } }
.strip-section--drawings .strip__caption { text-transform: lowercase; letter-spacing: 0.04em; }   /* KLETA ZONES names, lowercase */
