/* Windy Studio · public stylesheet */

:root {
  --paper: #ece6dc;
  --paper-2: #e3dccf;
  --paper-3: #d7cebe;
  --ink: #1f1b17;
  --ink-2: #4a433c;
  --mute: #7b7267;
  --line: rgba(31, 27, 23, 0.16);
  --line-strong: rgba(31, 27, 23, 0.45);
  --bronze: #9a7a4f;
  --bronze-soft: #c7b08b;
  --dark: #241f1b;
  --dark-2: #2d2722;
  --dark-3: #38302a;
  --on-dark: #ede6da;
  --on-dark-mute: #a89c8d;
  --on-dark-line: rgba(237, 230, 218, 0.16);

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Allison", "Brush Script MT", cursive;

  --gutter: clamp(20px, 5vw, 76px);
  --header-h: 84px;
  --max: 1560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
picture img { width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; font-style: normal; overflow-wrap: anywhere; min-width: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
::selection { background: var(--bronze-soft); color: var(--ink); }

.script { font-family: var(--font-script); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--ink-2); }

.prose p { margin: 0 0 1.1em; max-width: 64ch; font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 1.1em; padding-left: 1.2em; list-style: disc; color: var(--ink-2); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose h3 { font-family: var(--font-display); font-size: 1.5rem; margin: 1.5em 0 0.5em; }

/* ---------- Shared elements ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.9rem; min-height: 52px;
  background: var(--ink); color: var(--paper);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  border-radius: 2px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.button:hover { background: var(--bronze); color: var(--paper); }
.button:active { transform: translateY(1px); }

.link-rule {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  color: var(--ink);
}
.link-rule::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; transition: width 0.4s var(--ease); flex: none; }
.link-rule:hover::before { width: 3.25rem; }
.link-rule:hover { color: var(--bronze); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: 0 var(--gutter); margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: var(--max); margin-left: auto; margin-right: auto;
}
.section-head--stack { display: block; }
.section-head__title { font-family: var(--font-display); font-size: clamp(2.1rem, 3.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.01em; }
.section-head__text { margin-top: 0.9rem; max-width: 52ch; color: var(--mute); font-size: 1.02rem; }
.section-head > .link-rule { margin-bottom: 0.4rem; }

.page-head {
  padding: calc(var(--header-h) + clamp(3rem, 8vh, 6rem)) var(--gutter) clamp(2rem, 5vw, 4rem);
  max-width: var(--max); margin: 0 auto;
}
.page-head__title { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.6rem); line-height: 0.98; letter-spacing: -0.015em; max-width: 14ch; }
.page-head__lead { margin-top: 1.5rem; max-width: 54ch; font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); }

.frame { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; }
.frame img, .arch img { width: 100%; height: 100%; object-fit: cover; }

/* The arch: the studio's mark, used as an image frame */
.arch { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 5; border-radius: 50% 50% 0 0 / 40% 40% 0 0; }
.arch--portrait { aspect-ratio: 3 / 4; border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0; }
.arch--small { aspect-ratio: 4 / 5; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--header-h); color: var(--ink);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled { background: rgba(236, 230, 220, 0.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header__inner {
  height: 100%; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
/* The studio logo (assets/img, traced from the studio's artwork), painted in the current text colour */
.logo-mark, .logo-word, .logo-lockup { display: inline-block; flex: none; background-color: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.logo-mark { aspect-ratio: 1505 / 1764; -webkit-mask-image: url(../img/logo-mark.svg?v=1); mask-image: url(../img/logo-mark.svg?v=1); }
.logo-word { aspect-ratio: 766 / 371; -webkit-mask-image: url(../img/logo-wordmark.svg?v=1); mask-image: url(../img/logo-wordmark.svg?v=1); }
.logo-lockup { aspect-ratio: 766 / 1017; -webkit-mask-image: url(../img/logo.svg?v=1); mask-image: url(../img/logo.svg?v=1); }
@media (forced-colors: active) { .logo-mark, .logo-word, .logo-lockup { forced-color-adjust: none; background-color: CanvasText; } }

.brand { display: inline-flex; align-items: center; gap: 0.9rem; margin-right: auto; color: inherit; }
.brand__mark { height: 56px; }
.brand__word { height: 46px; }
.brand__image { height: 54px; width: auto; }

.site-nav ul { display: flex; gap: 2rem; }
.site-nav a { font-size: 0.95rem; font-weight: 500; white-space: nowrap; padding: 0.4rem 0; position: relative; color: inherit; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-header__cta { font-size: 0.95rem; font-weight: 500; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color 0.25s, border-color 0.25s; }
.site-header__cta:hover { color: var(--bronze); border-color: var(--bronze); }
.menu-toggle { display: none; font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0; }

.menu-panel { position: fixed; inset: 0; z-index: 39; background: var(--paper); padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem; overflow-y: auto; }
.menu-panel[hidden] { display: none; }
.menu-panel__inner { display: flex; flex-direction: column; min-height: 100%; }
.menu-panel__links a { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 9vw, 4.5rem); line-height: 1.15; padding: 0.15em 0; border-bottom: 1px solid var(--line); }
.menu-panel__meta { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 0.5rem; color: var(--ink-2); }
.menu-panel__tag { font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); margin-top: 1rem; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero-wrap { height: 170svh; background: var(--dark); }
.hero {
  position: sticky; top: 0; isolation: isolate; overflow: hidden;
  height: 100svh; background: var(--dark); color: var(--on-dark);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; align-items: end;
  column-gap: 2rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) clamp(2rem, 6vh, 4rem);
  --p: 0;
}
.hero__media { position: absolute; inset: 0; z-index: -1; clip-path: inset(14vh 28vw 0 28vw round 22vw 22vw 0 0); }
.hero__frame {
  position: absolute; inset: 0;
  clip-path: inset(calc(var(--p) * 12vh) calc(var(--p) * 31vw) 0 calc(var(--p) * 31vw) round calc(var(--p) * 19vw) calc(var(--p) * 19vw) 0 0);
}
.hero__frame img, .hero__frame video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; animation: drift-a 9s linear forwards; }
.hero__slide:nth-child(even).is-active { animation-name: drift-b; }
@keyframes drift-a { from { transform: scale(1.12) translate(1.2%, 0.8%); } to { transform: scale(1.02) translate(0, 0); } }
@keyframes drift-b { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-1.2%, -0.6%); } }
.hero__scrim {
  position: absolute; inset: 0; opacity: calc(1 - var(--p) * 0.9);
  background:
    linear-gradient(to top, rgba(22, 17, 13, 0.86) 0%, rgba(22, 17, 13, 0.42) 38%, rgba(22, 17, 13, 0.08) 70%, rgba(22, 17, 13, 0.28) 100%),
    linear-gradient(to right, rgba(22, 17, 13, 0.35) 0%, rgba(22, 17, 13, 0) 55%);
}
.hero__content, .hero__corner, .hero__caption { opacity: calc(1 - var(--p) * 1.8); transform: translateY(calc(var(--p) * -28px)); }
.hero__content { grid-column: 1; grid-row: 2; max-width: 64rem; min-width: 0; }
.hero__kicker { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-soft); margin-bottom: 1.4rem; }
.hero__title { font-family: var(--font-display); font-size: clamp(3.4rem, 9.2vw, 10.5rem); line-height: 0.92; letter-spacing: -0.02em; font-weight: 400; color: var(--paper); }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.09em; margin-bottom: -0.09em; }
.hero__line > span { display: inline-block; transform: translateY(110%); }
.hero__lead { margin-top: 1.4rem; max-width: 36ch; font-size: 1.15rem; line-height: 1.5; color: rgba(237, 230, 218, 0.86); }
.hero__actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.button--light { background: var(--paper); color: var(--ink); }
.button--light:hover { background: var(--bronze-soft); color: var(--ink); }
.hero__actions .link-rule { color: var(--paper); }
.hero__actions .link-rule:hover { color: var(--bronze-soft); }
.hero__corner { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; color: var(--paper); }
.hero__corner-link { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; text-align: right; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; max-width: 16ch; }
.hero__corner-link small { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-mute); }
.hero__corner-link:hover span { color: var(--bronze-soft); }
.hero__thumbs { display: flex; gap: 0.55rem; }
.hero__thumb { position: relative; width: 50px; aspect-ratio: 4 / 5; border-radius: 50% 50% 0 0 / 40% 40% 0 0; overflow: hidden; background: var(--dark-2); opacity: 0.55; transition: opacity 0.4s var(--ease); padding: 0; }
.hero__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero__thumb:hover, .hero__thumb.is-active { opacity: 1; }
.hero__thumb-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--bronze-soft); transform: scaleX(0); transform-origin: left; }
.hero__thumb.is-active .hero__thumb-bar { animation: dot-fill 4s linear forwards; }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero__caption { position: absolute; right: calc(var(--gutter) - 0.2rem); top: calc(var(--header-h) + 1.5rem); writing-mode: vertical-rl; font-size: 0.75rem; letter-spacing: 0.08em; color: rgba(237, 230, 218, 0.7); margin: 0; }

body.is-ready .hero__media { animation: reveal 1.8s cubic-bezier(0.76, 0, 0.24, 1) 0.2s forwards; }
body.is-ready .hero__frame video { animation: settle 16s linear 0.2s forwards; }
body.is-ready .hero__line > span { animation: rise 1.1s var(--ease) forwards; animation-delay: calc(0.95s + var(--i, 0) * 0.13s); }
body.is-ready .hero__kicker, body.is-ready .hero__lead, body.is-ready .hero__actions, body.is-ready .hero__corner, body.is-ready .hero__caption { animation: fade 1s var(--ease) 1.5s both; }
@keyframes reveal { to { clip-path: inset(0 0 0 0 round 0 0 0 0); } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes settle { to { transform: scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Sections after the hero slide over it */
body.is-home main > :not(.hero-wrap) { position: relative; z-index: 2; }
.intro, .work, .process, .closing, .voices { background: var(--paper); }

/* Header over the hero: light text, and no second enquiry button while the hero's own is visible */
body.is-home .site-header:not(.is-scrolled) { color: var(--paper); }
body.is-home .site-header__cta { transition: opacity 0.35s var(--ease), visibility 0.35s; }
body.is-home .site-header:not(.is-scrolled) .site-header__cta, body.is-home .site-header.over-hero .site-header__cta { opacity: 0; visibility: hidden; }

/* ---------- Intro ---------- */
.intro {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter);
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3rem, 8vh, 7rem) var(--gutter);
  border-top: 1px solid var(--line);
  align-items: start;
}
.intro__figure { width: min(100%, 360px); }
.intro__body { max-width: 64ch; padding-top: 0.5rem; }
.intro__title { font-family: var(--font-display); font-size: clamp(2rem, 3.8vw, 3.6rem); line-height: 1.08; margin-bottom: 1.5rem; }
.intro__text { margin-bottom: 2rem; }

/* ---------- Work grid ---------- */
.work { padding: clamp(3rem, 8vh, 7rem) 0; border-top: 1px solid var(--line); }
.work-feature { padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto clamp(2.5rem, 5vw, 4.5rem); }
.work-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2.5rem);
  padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto;
}
.work-card { min-width: 0; }
.work-card__link { display: block; }
.work-card__media { overflow: hidden; background: var(--paper-2); }
.work-card--feature .work-card__media { aspect-ratio: 21 / 10; }
.work-card--uniform .work-card__media { aspect-ratio: 4 / 3; }
.work-card--wide .work-card__media { aspect-ratio: 4 / 3; }
.work-card--tall .work-card__media { aspect-ratio: 4 / 5; }
.work-card__media picture, .work-card__media img, .work-card__media video { width: 100%; height: 100%; object-fit: cover; }
.work-card__media img, .work-card__media video { transition: transform 1.2s var(--ease); }
.work-card__link:hover .work-card__media img, .work-card__link:hover .work-card__media video { transform: scale(1.035); }
.work-card__empty { height: 100%; display: grid; place-items: center; color: var(--line-strong); }
.work-card__arch { width: 30%; }
.work-card__caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem 2rem; padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.work-card__title { font-family: var(--font-display); font-size: clamp(1.25rem, 1.6vw, 1.6rem); line-height: 1.15; }
.work-card__meta { font-size: 0.82rem; color: var(--mute); margin-top: 0.3rem; }
.work-card__flag { display: inline-block; margin-left: 0.6rem; padding: 0.1rem 0.55rem; border: 1px solid var(--bronze-soft); border-radius: 999px; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--bronze); vertical-align: middle; }
.work-card__link:hover .work-card__title { color: var(--bronze); }
.work-card--feature .work-card__caption { padding-top: 1.4rem; margin-top: 1.4rem; }
.work-card--feature .work-card__title { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.work-card--feature .work-card__summary { max-width: 44ch; font-size: 1rem; color: var(--ink-2); flex: 0 1 44ch; }

.work-index {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2.5rem);
  padding: 0 var(--gutter) clamp(4rem, 10vh, 8rem); max-width: var(--max); margin: 0 auto;
}

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding: 0 var(--gutter) clamp(2rem, 5vw, 4rem); max-width: var(--max); margin: 0 auto; }
.filters__link { font-size: 0.95rem; font-weight: 500; padding: 0.3rem 0; border-bottom: 1px solid transparent; color: var(--mute); white-space: nowrap; }
.filters__link:hover { color: var(--ink); }
.filters__link.is-active { color: var(--ink); border-color: var(--ink); }
.empty { padding: 0 var(--gutter) 6rem; color: var(--mute); }

/* ---------- Services band ---------- */
.services-band {
  background: var(--dark); color: var(--on-dark);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter);
  padding: clamp(3rem, 8vh, 7rem) var(--gutter);
}
.services-band__visual { position: sticky; top: calc(var(--header-h) + 1rem); align-self: start; }
.services-band__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--dark-2); max-width: 520px; }
.services-band__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); }
.services-band__image.is-active { opacity: 1; }
.services-band__head { margin-bottom: 1.5rem; }
.services-band .section-head__text { color: var(--on-dark-mute); }
.service-list__item { border-top: 1px solid var(--on-dark-line); }
.service-list__item:last-child { border-bottom: 1px solid var(--on-dark-line); }
.service-list__link { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem; padding: clamp(1.4rem, 2.6vw, 2.2rem) 0; }
.service-list__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; transition: color 0.3s var(--ease); }
.service-list__tagline { color: var(--bronze-soft); font-size: 0.95rem; }
.service-list__summary { color: var(--on-dark-mute); max-width: 56ch; font-size: 1rem; margin-top: 0.4rem; }
.service-list__item.is-active .service-list__title, .service-list__link:hover .service-list__title { color: var(--bronze-soft); }

/* ---------- Process ---------- */
.process { padding: clamp(3rem, 8vh, 7rem) 0; }
.process--inner { border-top: 1px solid var(--line); }
.steps {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem;
  padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto;
  counter-reset: none;
}
.steps__item { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; min-width: 0; }
.steps__num { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--bronze); line-height: 1; margin-bottom: 1.2rem; }
.steps__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; margin-bottom: 0.6rem; }
.steps__body { font-size: 0.95rem; color: var(--mute); }

/* ---------- Site diary strip ---------- */
.diary { padding: clamp(3rem, 8vh, 7rem) 0; background: var(--paper-2); }
.strip-controls { display: flex; gap: 0.5rem; }
.strip-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.strip-btn svg { display: block; }
.strip-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.strip {
  display: flex; gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter) 0.5rem;
}
.strip::-webkit-scrollbar { display: none; }
.strip__item { flex: 0 0 min(78vw, 440px); scroll-snap-align: start; min-width: 0; }
.strip__item a, .strip__item picture, .strip__item img, .strip__item video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-3); }
.strip__item figcaption { margin-top: 0.6rem; font-size: 0.8rem; color: var(--mute); }

/* ---------- Testimonials ---------- */
.voices { padding: clamp(3rem, 8vh, 7rem) var(--gutter); max-width: var(--max); margin: 0 auto; display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.voice { margin: 0; border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.voice__quote { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; }
.voice__by { margin-top: 1.2rem; font-size: 0.9rem; color: var(--mute); }

/* ---------- Closing ---------- */
.closing {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end;
  padding: clamp(4rem, 10vh, 8rem) var(--gutter); max-width: var(--max); margin: 0 auto;
}
.closing--inner { border-top: 1px solid var(--line); }
.closing__title { font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 6rem); line-height: 0.98; letter-spacing: -0.015em; }
.closing__lead { margin-top: 1.5rem; max-width: 46ch; color: var(--ink-2); font-size: 1.1rem; }
.closing__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.closing__phone { font-family: var(--font-display); font-size: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark); padding: clamp(3rem, 7vh, 6rem) var(--gutter) 1.5rem; position: relative; overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.site-footer__text { font-family: var(--font-display); font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.3; max-width: 26ch; }
.site-footer__script { color: var(--bronze-soft); margin-top: 1.2rem; font-size: 2.8rem; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer__heading { font-family: var(--font-display); font-size: 1.15rem; color: var(--bronze-soft); margin-bottom: 1rem; }
.site-footer__col li { margin-bottom: 0.45rem; font-size: 0.98rem; }
.site-footer__col a:hover { color: var(--bronze-soft); }
.site-footer__word { display: block; width: clamp(17rem, 62vw, 58rem); color: var(--dark-3); margin: clamp(2.5rem, 7vh, 5rem) 0 clamp(1.5rem, 4vh, 3rem); pointer-events: none; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--on-dark-mute); padding-top: 1.25rem; border-top: 1px solid var(--on-dark-line); max-width: var(--max); margin: 0 auto; position: relative; z-index: 1; }
.site-footer__credit { font-size: 0.72rem; opacity: 0.75; }
.site-footer__credit a:hover { color: var(--bronze-soft); }

/* ---------- Project page ---------- */
.project__head { padding: calc(var(--header-h) + clamp(3rem, 8vh, 6rem)) var(--gutter) clamp(2rem, 4vw, 3rem); max-width: var(--max); margin: 0 auto; }
.project__kicker { font-size: 0.85rem; color: var(--mute); margin-bottom: 1.5rem; display: flex; gap: 0.6rem; }
.project__kicker a:hover { color: var(--ink); }
.project__title { font-family: var(--font-display); font-size: clamp(2.8rem, 6.5vw, 6.2rem); line-height: 0.98; letter-spacing: -0.015em; max-width: 16ch; }
.project__summary { margin-top: 1.5rem; max-width: 60ch; font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); }
.project__cover { padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; }
.project__cover picture img, .project__cover video { width: 100%; max-height: 88vh; object-fit: cover; background: var(--paper-2); }
.project__cover--portrait > *, .project__cover--portrait a { display: flex; justify-content: center; background: var(--paper-2); }
.project__cover--portrait picture img { width: auto; max-width: 100%; max-height: 85vh; object-fit: contain; }
.project__cover--video { display: flex; justify-content: center; background: var(--paper-2); }
.project__cover--video video { width: auto; max-width: 100%; max-height: 85vh; object-fit: contain; background: var(--paper-2); }
.project__body {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter);
  padding: clamp(2.5rem, 6vh, 5rem) var(--gutter); max-width: var(--max); margin: 0 auto;
}
.facts { margin: 0; align-self: start; }
.facts__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.facts__row:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.82rem; letter-spacing: 0.04em; color: var(--mute); }
.facts dd { margin: 0; font-size: 0.98rem; }
.facts--studio { margin-top: 2.5rem; max-width: 520px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.5rem); padding: 0 var(--gutter) clamp(3rem, 8vh, 7rem); max-width: var(--max); margin: 0 auto; }
.gallery__item { min-width: 0; }
.gallery__item--full { grid-column: span 2; }
.gallery__item a { display: block; }
.gallery__item picture img, .gallery__item video { width: 100%; height: 100%; object-fit: cover; background: var(--paper-2); }
.gallery__item:not(.gallery__item--full) picture img { aspect-ratio: 4 / 3; }
.gallery__item--tall picture img { aspect-ratio: 4 / 5; }
.gallery__item--full picture img { max-height: 90vh; }
.gallery__item--video { display: flex; justify-content: center; align-items: flex-start; background: var(--paper-2); }
.gallery__item--video video { width: auto; max-width: 100%; max-height: 78vh; object-fit: contain; background: var(--paper-2); }
.gallery__item--video.gallery__item--full video { width: 100%; max-height: 85vh; }
.gallery__item a img { transition: opacity 0.3s; }
.gallery__item a:hover img { opacity: 0.92; }

.project-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto; }
.project-nav__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter); }
.project-nav__link--next { text-align: right; border-left: 1px solid var(--line); grid-template-columns: auto minmax(0, 1fr); }
.project-nav__link--next .project-nav__label, .project-nav__link--next .project-nav__title { grid-column: 2; }
.project-nav__link--next .project-nav__thumb { grid-column: 1; grid-row: 1 / 3; }
.project-nav__label { font-size: 0.8rem; color: var(--mute); }
.project-nav__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); line-height: 1.1; }
.project-nav__thumb { width: 96px; aspect-ratio: 1; overflow: hidden; border-radius: 48px 48px 0 0; grid-row: 1 / 3; }
.project-nav__thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-nav__link:hover .project-nav__title { color: var(--bronze); }

/* ---------- Services page ---------- */
.service-rows { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.service-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: clamp(2.5rem, 6vh, 5rem) 0; border-top: 1px solid var(--line); align-items: start; }
.service-row--flip .service-row__media { order: 2; }
.service-row__media { width: min(100%, 520px); }
.service-row--flip .service-row__media { justify-self: end; }
.service-row__title { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.02; }
.service-row__title a:hover { color: var(--bronze); }
.service-row__tagline { margin-top: 0.6rem; color: var(--bronze); font-size: 1rem; }
.service-row__summary { margin-top: 1.2rem; max-width: 56ch; font-size: 1.08rem; color: var(--ink-2); }
.check-list { margin: 1.8rem 0 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 2rem; max-width: 640px; }
.check-list li { padding: 0.55rem 0 0.55rem 1.4rem; border-top: 1px solid var(--line); position: relative; font-size: 0.95rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 0.7rem; height: 1px; background: var(--bronze); }
.note { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 8vh, 7rem) var(--gutter); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
.note__title { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: 1.1; }
.note__body { max-width: 56ch; }
.note .button { grid-column: 2; justify-self: start; }

.service-detail__head { padding: calc(var(--header-h) + clamp(3rem, 8vh, 6rem)) var(--gutter) clamp(2rem, 4vw, 3rem); max-width: var(--max); margin: 0 auto; }
.service-detail__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: 0 var(--gutter) clamp(3rem, 8vh, 7rem); max-width: var(--max); margin: 0 auto; align-items: start; }
.service-detail__media { width: min(100%, 520px); }
.service-detail__summary { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.3; margin-bottom: 1.5rem; }
.service-detail__sub { font-family: var(--font-display); font-size: 1.4rem; margin-top: 2.5rem; }
.service-detail__body .button { margin-top: 1rem; }
.other-services { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vh, 4rem) var(--gutter) clamp(4rem, 8vh, 6rem); border-top: 1px solid var(--line); }
.other-services__title { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 1rem; }
.other-services li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.other-services li a { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.other-services li a:hover { color: var(--bronze); }
.other-services li span { color: var(--mute); }
.work--related { border-top: 1px solid var(--line); }

/* ---------- Studio page ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: calc(var(--header-h) + clamp(3rem, 8vh, 6rem)) var(--gutter) clamp(3rem, 8vh, 7rem); max-width: var(--max); margin: 0 auto; align-items: start; }
.studio__figure { width: min(100%, 520px); position: sticky; top: calc(var(--header-h) + 1rem); }
.studio__title { font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 5.6rem); line-height: 0.98; letter-spacing: -0.015em; }
.studio__lead { margin: 1.5rem 0 2rem; font-family: var(--font-display); font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.3; max-width: 28ch; }
.studio__script { margin-top: 2rem; }
.values { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 8vh, 7rem) var(--gutter); border-top: 1px solid var(--line); }
.values__list { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem var(--gutter); }
.values__item { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.values__item h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.6rem; }
.values__item p { color: var(--ink-2); max-width: 44ch; }
.pull { background: var(--paper-2); padding: clamp(3rem, 8vh, 7rem) var(--gutter); }
.pull__text { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.15; max-width: 22ch; margin: 0 auto; text-align: center; }
.faq { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 8vh, 7rem) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 0; font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--font-body); color: var(--mute); flex: none; }
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 0 1.5rem; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: calc(var(--header-h) + clamp(3rem, 8vh, 6rem)) var(--gutter) clamp(4rem, 10vh, 8rem); max-width: var(--max); margin: 0 auto; align-items: start; }
.contact__aside { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); max-width: 420px; }
.contact__aside h2 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.8rem; }
.contact__details { margin-top: 1.25rem; display: grid; gap: 0.35rem; color: var(--ink-2); }
.contact__details a { text-decoration: underline; text-underline-offset: 3px; }
.contact__details a:hover { color: var(--bronze); }
.form { max-width: 720px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.form__trap { position: absolute; left: -9999px; }
.field { margin-bottom: 1.6rem; }
.field label { display: block; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--mute); margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 0.6rem 0;
  transition: border-color 0.25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 1.5rem; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: 0 2px 0 0 var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--mute); opacity: 0.8; }
.field.has-error input, .field.has-error textarea { border-color: #a0452f; }
.field__error { margin-top: 0.4rem; font-size: 0.85rem; color: #a0452f; }
.field--human input { max-width: 200px; }
.field__why { color: var(--mute); font-weight: 400; margin-left: 0.4rem; }
.field--captcha { margin: 0.5rem 0 1.6rem; }
.form__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form__hint { font-size: 0.85rem; color: var(--mute); }
.form-success { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; max-width: 52ch; }
.form-success__title { font-family: var(--font-display); font-size: 2rem; margin-bottom: 0.75rem; }
.form-success .link-rule { margin-top: 1.5rem; }

/* ---------- 404 ---------- */
.not-found { padding: calc(var(--header-h) + 10vh) var(--gutter) 12vh; max-width: var(--max); margin: 0 auto; }
.not-found__arch { width: 72px; color: var(--line-strong); margin-bottom: 2rem; }
.not-found__links { margin-top: 2rem; display: flex; gap: 2rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(22, 18, 15, 0.94); display: grid; place-items: center; padding: 4rem var(--gutter); color: var(--on-dark); }
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: min(1400px, 100%); max-height: 100%; display: grid; gap: 0.8rem; justify-items: center; }
.lightbox__media img { max-width: 100%; max-height: calc(100vh - 10rem); width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { font-size: 0.85rem; color: var(--on-dark-mute); text-align: center; }
.lightbox__close { position: absolute; top: 1.5rem; right: var(--gutter); font-size: 0.9rem; font-weight: 500; padding: 0.5rem 0; border-bottom: 1px solid currentColor; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 0.9rem; font-weight: 500; padding: 0.75rem 1rem; border: 1px solid var(--on-dark-line); border-radius: 999px; }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__nav:hover, .lightbox__close:hover { color: var(--bronze-soft); }
.lightbox__count { position: absolute; bottom: 1.5rem; left: var(--gutter); font-size: 0.85rem; color: var(--on-dark-mute); font-variant-numeric: tabular-nums; }
.lightbox :focus-visible { outline-color: var(--on-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .work-grid, .work-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-block; }
  .brand { gap: 0.7rem; }
  .brand__mark { height: 44px; }
  .brand__word { height: 36px; }
  .brand__image { height: 44px; }

  .hero-wrap { height: 150svh; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto; row-gap: 1.5rem; }
  .hero__media { clip-path: inset(12vh 16vw 0 16vw round 34vw 34vw 0 0); }
  .hero__frame { clip-path: inset(calc(var(--p) * 10vh) calc(var(--p) * 18vw) 0 calc(var(--p) * 18vw) round calc(var(--p) * 32vw) calc(var(--p) * 32vw) 0 0); }
  .hero__caption { display: none; }
  .hero__corner { grid-column: 1; grid-row: 3; align-items: flex-start; }
  .hero__corner-link { display: none; }
  .hero__thumb { width: 40px; }
  .hero__title { font-size: clamp(3rem, 14vw, 5.5rem); }

  .intro, .services-band, .closing, .site-footer__top, .project__body, .service-row, .note, .service-detail__grid, .studio, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .intro__figure { width: min(60%, 280px); }
  .work-grid, .work-index { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .work-card--feature .work-card__media { aspect-ratio: 4 / 3; }
  .work-card--feature .work-card__caption { flex-direction: column; gap: 0.75rem; }
  .services-band__visual { position: static; }
  .services-band__frame { aspect-ratio: 4 / 3; max-width: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .steps__item { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; padding-top: 1rem; }
  .steps__num { grid-row: 1 / 3; margin: 0; }
  .steps__title { margin-bottom: 0.3rem; }
  .closing__actions { align-items: flex-start; }
  .site-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery__item--full { grid-column: auto; }
  .gallery__item picture img { aspect-ratio: auto; }
  .gallery__item:not(.gallery__item--full) picture img, .gallery__item--tall picture img { aspect-ratio: auto; }
  .project-nav { grid-template-columns: minmax(0, 1fr); }
  .project-nav__link--next { border-left: 0; border-top: 1px solid var(--line); }
  .service-row--flip .service-row__media { order: 0; justify-self: start; }
  .service-row__media, .service-detail__media { width: min(100%, 420px); }
  .check-list { grid-template-columns: minmax(0, 1fr); }
  .note .button { grid-column: auto; }
  .studio__figure { position: static; width: min(80%, 420px); }
  .values__list { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact__aside { margin-bottom: 2rem; }
  .lightbox { padding: 4rem 1rem; }
  .lightbox__nav { top: auto; bottom: 1.25rem; transform: none; }
  .lightbox__count { bottom: auto; top: 1.75rem; }
}

@media (max-width: 480px) {
  .hero__kicker { font-size: 0.64rem; letter-spacing: 0.08em; margin-bottom: 1rem; white-space: nowrap; }
  .hero__actions { gap: 1.25rem; }
  .work-card__caption { flex-direction: column; gap: 0.2rem; }
  .work-card__meta { white-space: normal; }
  .script { font-size: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .hero__line > span { transform: none; }
  .hero-wrap { height: auto; }
  .hero { position: relative; --p: 0 !important; }
  .hero__media, .hero__frame { clip-path: none; }
  .hero__frame img, .hero__frame video { transform: none; }
  .hero__slide.is-active { animation: none; }
  .hero__thumb.is-active .hero__thumb-bar { animation: none; transform: scaleX(1); }
}

/* ---------- Project stages (3D views, before and after execution) ---------- */
.stage { max-width: var(--max); margin: 0 auto; scroll-margin-top: calc(var(--header-h) + 1rem); }
.stage__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem;
  margin: 0 var(--gutter); padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line);
}
.stage__title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.05; letter-spacing: -0.01em; }
.stage__text { color: var(--mute); max-width: 44ch; font-size: 0.98rem; }
.facts__stages a { border-bottom: 1px solid var(--line-strong); transition: color 0.25s, border-color 0.25s; }
.facts__stages a:hover { color: var(--bronze); border-color: var(--bronze); }

/* A stage shown as a carousel: the current image centred at its own proportions, the neighbours peeking in
   dimmed, arrows over the edges and a strip of arched thumbnails underneath */
.carousel { --slide-h: clamp(300px, calc(100vh - 340px), 720px); padding-bottom: clamp(3rem, 8vh, 7rem); }
.carousel__stage { position: relative; }
.carousel__track {
  position: relative; display: flex; align-items: center; gap: clamp(0.75rem, 1.6vw, 1.5rem);
  /* site.js widens the padding so the first and last slides can reach the centre */
  padding-inline: var(--pad-start, var(--gutter)) var(--pad-end, var(--gutter));
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: none; height: var(--slide-h); max-width: min(78vw, 1200px); scroll-snap-align: center; scroll-snap-stop: always; background: var(--paper-2); overflow: hidden; }
.carousel__slide a, .carousel__slide picture { display: block; width: 100%; height: 100%; }
.carousel__slide img, .carousel__slide video { display: block; width: 100%; height: 100%; object-fit: contain; }
.carousel__slide a { cursor: pointer; }
.carousel__slide.is-current a { cursor: zoom-in; }
.carousel__slide a:focus-visible { outline: 2px solid var(--ink); outline-offset: -6px; }
/* Neighbours fade and settle back as they leave the centre (decorative, so no fallback where unsupported) */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .carousel__slide { animation: carousel-focus auto linear both; animation-timeline: view(inline); }
  }
}
@keyframes carousel-focus {
  /* full strength only close to the centre, so narrow portrait neighbours dim as clearly as wide ones */
  0%, 38%, 62%, 100% { opacity: 0.32; scale: 0.92; }
  50% { opacity: 1; scale: 1; }
}
.carousel__arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%;
  background: rgba(236, 230, 220, 0.86); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(31, 27, 23, 0.14);
  transition: background-color 0.25s, color 0.25s, opacity 0.3s, scale 0.25s var(--ease);
}
.carousel__arrow--prev { left: var(--gutter); }
.carousel__arrow--next { right: var(--gutter); }
.carousel__arrow:hover { background: var(--ink); color: var(--paper); }
.carousel__arrow:active { scale: 0.94; }
.carousel__arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.carousel__arrow:disabled { opacity: 0; pointer-events: none; }
.carousel__footer {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 1rem clamp(1.25rem, 3vw, 2.5rem);
  max-width: var(--max); margin: clamp(1.25rem, 2.5vw, 2rem) auto 0; padding: 0 var(--gutter);
}
.carousel__count { min-width: 3.6em; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.carousel__of { font-family: var(--font-body); font-size: 0.9rem; color: var(--mute); }
.carousel__thumbs { display: flex; gap: 0.6rem; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; scroll-behavior: smooth; }
.carousel__thumbs::-webkit-scrollbar { display: none; }
.carousel__thumb {
  position: relative; flex: none; width: 64px; height: 76px; padding: 0; border: 0; overflow: hidden;
  border-radius: 32px 32px 0 0; background: var(--paper-2); color: var(--ink); opacity: 0.5;
  transition: opacity 0.25s, translate 0.3s var(--ease);
}
.carousel__thumb img, .carousel__thumb video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.carousel__thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 0.25s; }
.carousel__thumb:hover, .carousel__thumb.is-pending { opacity: 0.85; }
.carousel__thumb[aria-current="true"] { opacity: 1; translate: 0 -4px; }
.carousel__thumb[aria-current="true"]::after { box-shadow: inset 0 0 0 1.5px var(--ink); }
.carousel__thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.carousel__play { position: absolute; inset: 0; margin: auto; padding: 5px; width: 26px; height: 26px; border-radius: 50%; background: rgba(236, 230, 220, 0.9); }
@media (prefers-reduced-motion: reduce) { .carousel__thumbs { scroll-behavior: auto; } .carousel__thumb { transition: none; } }
@media (max-width: 700px) {
  .carousel { --slide-h: min(72vw, 60vh); }  /* sized for landscape, which most images are */
  .carousel__slide { max-width: 84vw; }
  .carousel__footer { grid-template-columns: minmax(0, 1fr); }
  .carousel__count { font-size: 1.35rem; }
  .carousel__thumb { width: 52px; height: 62px; border-radius: 26px 26px 0 0; }
}
@media (max-width: 700px) and (pointer: coarse) {
  .carousel__arrow { display: none; }  /* swipe, or tap a thumbnail */
}
