/* ─────────────────────────────────────────────
   Larissa Sans — Design System & Homepage Styles
   ───────────────────────────────────────────── */

/* 1. Tokens
   2. Reset & Base
   3. Typography
   4. Navigation
   4b. Site grid
   5. Hero
   6. Gallery
   7. About
   8. Services
   9. Commission CTA
   10. Footer
   11. Utilities
   12. Responsive
*/

/* ─── 0. Local fonts ────────────────────────── */

/* Clash Display (Fontshare, FFL) — variable, weights 200–700 */
@font-face {
  font-family: 'Clash Display';
  src: url('fonts/clash-display/ClashDisplay-Variable.woff2') format('woff2'),
       url('fonts/clash-display/ClashDisplay-Variable.woff') format('woff');
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

/* ─── 1. Tokens ─────────────────────────────── */

:root {
  /* Paper + ink palette (warm, painterly, low-contrast) */
  --black:       #1A1916; /* primary ink */
  --white:       #F4F0E7; /* paper */
  --pink:        #B07A68; /* clay accent */
  --parchment:   #E9E2D6; /* paper depth */
  --pink-tint:   #F1E4DE; /* warm wash */
  --ink:         #12110E; /* deep ink (sparingly) */

  /* RGB helpers for translucent layers */
  --black-rgb: 26, 25, 22;
  --white-rgb: 244, 240, 231;

  /* Paper texture (subtle, easy to tune) */
  --paper-grain-opacity: 0.07;
  --paper-fiber-opacity: 0.04;
  --paper-speckle-opacity: 0.016;
  --paper-grain-size: 160px;
  --paper-fiber-size: 900px;
  --paper-texture-blend: multiply;

  --hero-bg:     #f5efe5; /* hero section background */
  --accent-dot:  #b97864; /* name punctuation */

  --font-display: 'Clash Display', sans-serif; /* display face (no serifs on the site) */
  --font-display-tracking: -0.01em;
  --font-display-weight: 400;
  --font-body:    'DM Sans', sans-serif;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  120px;
  --space-2xl: 200px;

  --nav-h: 72px;
  --app-shell-h: calc(var(--page-padding) + var(--nav-logo-h));
  --nav-overlay-top: var(--app-shell-h);
  --radius: 0;
  --transition: 0.4s ease;

  /* Site grid — Figma viewports (large / medium / small) */
  --page-padding:    40px;
  --page-padding-sm: 16px;
  --modal-padding:   24px;
  /* Detail view: two halves — art centred in the left, details bottom-left in
     the right. The art box leaves generous room around the piece. */
  --modal-max-w:     1280px;
  --modal-art-h:     min(720px, calc(100vh - 2 * var(--modal-padding) - 200px));
  --modal-details-w: 340px; /* text column inside the right half */
  --modal-content-gap: 80px;
  --page-gap:        80px;
  --page-gap-md:     56px;
  --page-gap-sm:     40px;
  --grid-columns:    8;
  --link-rail-width: 741px;
  --link-gap:        24px;
  --nav-logo-h:      40px;
  --hero-art-w:      381px;
  --hero-art-ratio:  381 / 508;
}

/* ─── 2. Reset & Base ───────────────────────── */

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

html {
  scroll-behavior: auto;
  font-size: 16px;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  background-color: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Avoid lone words and ragged last lines in running text and headings */
p,
li,
h1,
h2,
h3,
h4,
figcaption,
blockquote {
  text-wrap: pretty;
}

/* Paper texture overlay (no assets, non-directional, subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    /* soft fibers (broad, cloudy) */
    radial-gradient(var(--paper-fiber-size) var(--paper-fiber-size) at 18% 22%, rgba(var(--black-rgb), var(--paper-fiber-opacity)), rgba(var(--black-rgb), 0) 60%),
    radial-gradient(calc(var(--paper-fiber-size) * 0.85) calc(var(--paper-fiber-size) * 0.85) at 82% 78%, rgba(var(--black-rgb), calc(var(--paper-fiber-opacity) * 0.85)), rgba(var(--black-rgb), 0) 62%),
    radial-gradient(calc(var(--paper-fiber-size) * 0.7) calc(var(--paper-fiber-size) * 0.7) at 55% 35%, rgba(255,255,255, 0.35), rgba(255,255,255, 0) 62%),

    /* fine grain (non-directional) */
    radial-gradient(circle at 20% 30%, rgba(var(--black-rgb), var(--paper-grain-opacity)) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(var(--black-rgb), calc(var(--paper-grain-opacity) * 0.85)) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(var(--black-rgb), calc(var(--paper-grain-opacity) * 0.7)) 0 1px, transparent 2px),

    /* a second grain layer at different scale */
    radial-gradient(circle at 15% 75%, rgba(var(--black-rgb), var(--paper-speckle-opacity)) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 24%, rgba(var(--black-rgb), calc(var(--paper-speckle-opacity) * 0.9)) 0 1px, transparent 2px),
    radial-gradient(circle at 58% 14%, rgba(var(--black-rgb), calc(var(--paper-speckle-opacity) * 0.8)) 0 1px, transparent 2px);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    var(--paper-grain-size) var(--paper-grain-size),
    calc(var(--paper-grain-size) * 1.15) calc(var(--paper-grain-size) * 1.15),
    calc(var(--paper-grain-size) * 1.3) calc(var(--paper-grain-size) * 1.3),
    calc(var(--paper-grain-size) * 1.9) calc(var(--paper-grain-size) * 1.9),
    calc(var(--paper-grain-size) * 2.1) calc(var(--paper-grain-size) * 2.1),
    calc(var(--paper-grain-size) * 2.35) calc(var(--paper-grain-size) * 2.35);
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    80px 40px,
    140px 120px,
    0 0,
    120px 180px,
    220px 60px;
  opacity: 1;
  mix-blend-mode: var(--paper-texture-blend);
}

/* Keep content above texture overlay */
body > * {
  position: relative;
  z-index: 1;
}

header {
  z-index: 200;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ─── 3. Typography ─────────────────────────── */

.t-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.t-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.t-h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.2;
}

.t-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
}

.t-caption {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.t-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Display type (Clash): names, titles, the bio and the large menu links */
.hero__overlay-link,
.nav__overlay-link,
.hero__brand,
.hero__bio,
.contact__headline,
.modal__title {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  letter-spacing: var(--font-display-tracking);
}

/* Small type (DM Sans): links, labels, captions and supporting copy */
.nav__links a,
.link-rail a,
.site-nav__menu,
.nav__burger,
.gallery__empty,
.contact__intro,
.contact__service,
.contact__input,
.contact__send,
.contact__email,
.contact__social a,
.modal__category,
.modal__label,
.modal__value,
.modal__description,
.modal__availability,
.modal__cta,
.intro__title {
  font-family: var(--font-body);
  letter-spacing: 0;
}

/* ─── 4. Navigation ─────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 40px;
  background: transparent;
}

.nav__logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.nav__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav__links a {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.1;
  position: relative;
  white-space: nowrap;
}

.nav__links a::after {
  display: none;
}

/* Mobile nav — reuses modal-backdrop frosted surface */
.hero__top.site-nav,
.nav {
  position: relative;
  z-index: 2;
}

.modal-backdrop.hero__overlay,
.modal-backdrop.nav__overlay {
  z-index: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--space-md);
  padding: calc(var(--nav-overlay-top) + var(--space-md)) var(--page-padding) var(--page-padding);
}

.hero__overlay-link,
.nav__overlay-link,
.nav__overlay a {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.1;
  color: var(--black);
  letter-spacing: var(--font-display-tracking);
  transition: opacity 0.2s ease;
}

.hero__overlay-link:hover,
.nav__overlay-link:hover,
.nav__overlay a:hover {
  opacity: 0.65;
}

.hero__overlay-link.is-active,
.hero__overlay-link[aria-current="page"],
.nav__overlay-link.is-active,
.nav__overlay-link[aria-current="page"],
.nav__overlay a[aria-current="page"] {
  border-bottom: 1px solid var(--pink);
}

/* Commission overlay — centered panel over frosted backdrop */
.modal-backdrop.commission-overlay {
  z-index: 1;
  align-items: center;
  justify-content: center;
  padding: var(--app-shell-h) var(--page-padding) var(--page-padding);
  overflow-y: auto;
}

.commission-overlay__panel {
  width: 100%;
  max-width: 302px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.commission-overlay .contact__headline {
  font-size: 40px;
  line-height: 0.6;
  letter-spacing: -0.05em;
  margin: 0;
}

.commission-overlay .contact__intro {
  margin: 0;
}

.commission-overlay .contact__form {
  margin: 0;
}

.contact__direct-mail {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0;
}

.contact__direct-mail a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__direct-mail a:hover {
  opacity: 0.65;
}

/* ─── 4b. Site grid (reusable page shell) ───── */

.page-shell {
  display: flex;
  flex-direction: column;
  gap: var(--page-gap);
  padding: var(--page-padding);
  width: 100%;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  width: 100%;
  min-height: 0;
}

.site-grid--stretch {
  flex: 1 1 auto;
}

.site-col-1-4 { grid-column: 1 / span 4; }
.site-col-5-8 { grid-column: 5 / span 4; }
.site-col-7   { grid-column: 7; }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--link-gap);
  width: 100%;
  flex-shrink: 0;
}

.site-nav__brand {
  flex: 1 1 auto;
  min-width: 0;
}

.link-rail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--link-gap);
  flex-shrink: 0;
  width: min(100%, var(--link-rail-width));
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-rail a {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
}

.site-nav__menu,
.nav__burger {
  display: none;
  align-items: center;
  margin-left: auto;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.1;
  color: var(--black);
}

/* ─── 4c. App shell (persistent nav) ─────────── */

.app-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  gap: 0;
  padding-bottom: 0;
  background: var(--hero-bg);
}

#homeView {
  padding-top: var(--app-shell-h);
  background: var(--hero-bg);
}

.hero.page-shell {
  padding-top: var(--page-gap);
}

.hero__nav a.is-active,
.hero__nav a[aria-current="page"] {
  border-bottom: 1px solid var(--pink);
}

.app-view--immersive {
  position: fixed;
  inset: var(--app-shell-h) 0 0 0;
  z-index: 10;
  overflow: hidden;
  background: var(--hero-bg);
}

body.is-immersive-view {
  overflow: hidden;
  background: var(--hero-bg);
}

body.is-immersive-view .app-shell {
  background: transparent;
}

/* A cream wash keeps the nav legible over the artwork. */
body.is-immersive-view .app-shell::before {
  content: '';
  position: absolute;
  inset: 0 0 -56px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(245, 239, 229, 0.94) 0%,
    rgba(245, 239, 229, 0.78) 45%,
    rgba(245, 239, 229, 0) 100%
  );
}

body.is-immersive-view .app-view--immersive {
  inset: 0;
}

body.is-modal-open .immersive-main {
  pointer-events: none;
  touch-action: none;
}

/* ─── 5. Hero (landing viewport) ─────────────── */

.hero {
  min-height: calc(100vh - var(--app-shell-h));
  background-color: var(--hero-bg);
}

.hero__enter {
  opacity: 0;
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__enter.is-visible {
  opacity: 1;
}

.hero__logo {
  display: flex;
  align-items: center;
  height: var(--nav-logo-h);
  margin-right: var(--logo-gap, 10px); /* space between the star and the name */
  flex-shrink: 0;
}

/* The star mark (from arts_lari/Star 2.png), cropped to its edges so it can be
   sized and aligned against the name precisely. */
.hero__logo-mark {
  display: block;
  width: auto;
  height: var(--logo-h, 22px);
}

.hero__top.site-nav {
  gap: 0;
}

.hero__top.site-nav .hero__nav {
  margin-left: var(--link-gap);
}

.hero__brand {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--black);
  text-decoration: none;
}

.hero__brand:hover {
  opacity: 0.65;
}

.hero__grid {
  align-items: stretch;
  position: relative;
}

.hero__grid .hero__bio {
  grid-column: 1 / span 6;
  grid-row: 1;
  align-self: end;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  font-weight: var(--font-display-weight);
  font-size: 30px;
  line-height: 1.3;
  color: var(--black);
  will-change: transform;
}

.hero__bio p + p {
  margin-top: 1em;
}

.hero__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--link-gap);
  margin-top: var(--space-md);
  list-style: none;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
}

.hero__social a {
  color: rgba(var(--black-rgb), 0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.hero__social a:hover,
.hero__social a:focus-visible {
  color: var(--black);
}

.hero__grid .hero__art {
  grid-column: 4 / span 5;
  grid-row: 1;
  align-self: end;
  position: relative;
  z-index: 1;
  justify-self: end;
  width: var(--hero-art-w);
  max-width: 100%;
  aspect-ratio: var(--hero-art-ratio);
  margin: 0;
  overflow: hidden;
  will-change: transform;
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* ─── 5b. About record (exhibitions + workshops) ─ */

.record.page-shell {
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  padding-bottom: var(--page-gap);
  background: var(--hero-bg);
}

.record__label {
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--black-rgb), 0.55);
}

.record__list {
  list-style: none;
}

.record__list > li {
  border-top: 1px solid rgba(var(--black-rgb), 0.18);
}

.record__list > li:last-child {
  border-bottom: 1px solid rgba(var(--black-rgb), 0.18);
}

.record__row {
  display: flex;
  align-items: baseline;
  gap: var(--link-gap);
  padding: 14px 0;
}

.record__title {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: var(--font-display-weight);
  letter-spacing: var(--font-display-tracking);
  line-height: 1.2;
  color: var(--black);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    font-weight 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.record__row:hover .record__title {
  transform: translateX(8px);
  font-weight: 600;
}

.record__meta {
  flex: none;
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
  color: rgba(var(--black-rgb), 0.55);
}

.record__thumb {
  display: none;
}

.record__float {
  position: fixed;
  top: 0;
  left: 52vw;
  z-index: 5;
  width: 240px;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) scale(0.96);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.record__float.is-on {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.record__float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .record.page-shell {
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .record__row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: var(--space-sm);
    row-gap: 2px;
    padding: 12px 0;
  }

  .record__row:not(:has(.record__thumb)) {
    grid-template-columns: 1fr;
  }

  .record__row:not(:has(.record__thumb)) > * {
    grid-column: 1;
  }

  .record__thumb {
    display: block;
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    object-fit: cover;
  }

  .record__title,
  .record__meta {
    grid-column: 2;
    text-align: left;
  }

  .record__title {
    font-size: 20px;
  }

  .record__float {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .record__title,
  .record__float {
    transition: none;
  }
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding: 10px 26px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--pink);
}

.btn--ghost {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}

.btn--ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* ─── 6. Gallery ─────────────────────────────── */

.gallery {
  background: var(--hero-bg);
}

.gallery.page-shell {
  padding-inline: 0;
}

.gallery__toolbar {
  display: flex;
  align-items: center;
  gap: var(--link-gap);
  width: 100%;
  flex-shrink: 0;
  padding-inline: var(--page-padding);
}

.gallery__immersive-link {
  margin-left: auto;
  font-size: 14px;
  line-height: 1.1;
  color: var(--black);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.gallery__immersive-link:hover {
  opacity: 1;
}

.gallery__checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--black);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.gallery__checkbox:checked {
  background: var(--black);
  box-shadow: inset 0 0 0 2px var(--hero-bg);
}

.gallery__empty {
  font-size: 14px;
  line-height: 1.3;
  color: var(--black);
  opacity: 0.55;
  margin: 0;
  padding-inline: var(--page-padding);
}

.gallery__grid {
  --gallery-row-h: 353px;
  grid-auto-rows: var(--gallery-row-h);
}

.gallery__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 0;
  padding: var(--page-padding);
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 0.15s ease;
}

.gallery__cell:hover {
  opacity: 0.88;
}

@media (prefers-reduced-motion: reduce) {
  .gallery__frame {
    opacity: 1 !important;
    transform: none !important;
  }
}

.gallery__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: calc(var(--gallery-row-h) - 2 * var(--page-padding));
}

.gallery__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Large viewports: 8-column grid, each art spans 2 → 4 per row */
.gallery__cell[data-slot="1"]  { grid-column: 1 / span 2; grid-row: 1; }
.gallery__cell[data-slot="2"]  { grid-column: 3 / span 2; grid-row: 1; }
.gallery__cell[data-slot="3"]  { grid-column: 5 / span 2; grid-row: 1; }
.gallery__cell[data-slot="4"]  { grid-column: 7 / span 2; grid-row: 1; }
.gallery__cell[data-slot="5"]  { grid-column: 1 / span 2; grid-row: 2; }
.gallery__cell[data-slot="6"]  { grid-column: 3 / span 2; grid-row: 2; }
.gallery__cell[data-slot="7"]  { grid-column: 5 / span 2; grid-row: 2; }
.gallery__cell[data-slot="8"]  { grid-column: 7 / span 2; grid-row: 2; }
.gallery__cell[data-slot="9"]  { grid-column: 1 / span 2; grid-row: 3; }
.gallery__cell[data-slot="10"] { grid-column: 3 / span 2; grid-row: 3; }
.gallery__cell[data-slot="11"] { grid-column: 5 / span 2; grid-row: 3; }
.gallery__cell[data-slot="12"] { grid-column: 7 / span 2; grid-row: 3; }
.gallery__cell[data-slot="13"] { grid-column: 1 / span 2; grid-row: 4; }
.gallery__cell[data-slot="14"] { grid-column: 3 / span 2; grid-row: 4; }
.gallery__cell[data-slot="15"] { grid-column: 5 / span 2; grid-row: 4; }
.gallery__cell[data-slot="16"] { grid-column: 7 / span 2; grid-row: 4; }

/* Outer columns flush to page grid; inset only between images */
.gallery__cell[data-slot="1"],
.gallery__cell[data-slot="5"],
.gallery__cell[data-slot="9"],
.gallery__cell[data-slot="13"] {
  padding-left: 0;
}

.gallery__cell[data-slot="4"],
.gallery__cell[data-slot="8"],
.gallery__cell[data-slot="12"],
.gallery__cell[data-slot="16"] {
  padding-right: 0;
}

/* ─── 6b. Contact + Footer ───────────────────── */

.contact.page-shell {
  background: var(--hero-bg);
  padding-top: 80px;
  padding-bottom: 80px;
  gap: 80px;
}

.commission-page__section.contact.page-shell {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
  padding-top: var(--app-shell-h);
  padding-bottom: var(--page-padding);
  gap: 0;
}

.commission-page__section .contact__main {
  grid-row: 2;
}

.commission-page__section .contact__headline {
  font-size: 40px;
  line-height: 1.1;
}

.commission-page__section .contact__footer {
  grid-row: 3;
  align-self: end;
}

.contact__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.contact__headline {
  font-weight: 300;
  font-size: clamp(64px, 16vw, 236px);
  line-height: 0.6;
  letter-spacing: -0.05em;
  color: var(--black);
  margin: 0 0 16px;
}

.contact__headline em {
  font-style: italic;
  font-weight: 300;
}

.contact__intro {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0;
}

.contact__pricelist {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__pricelist:hover {
  opacity: 0.65;
}

.contact__services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 8px 0;
}

.contact__service {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--black);
  white-space: nowrap;
  user-select: none;
}

.contact__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.contact__field {
  width: 100%;
  max-width: 749px;
  border-bottom: 1px solid var(--black);
  padding: 8px 0;
}

.contact__input {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--black);
  outline: none;
  resize: vertical;
  min-height: 1.3em;
}

.contact__input::placeholder {
  font-style: italic;
  color: var(--black);
  opacity: 1;
}

.contact__input:focus::placeholder {
  opacity: 0.35;
}

.contact__input--message {
  min-height: 1.3em;
}

.contact__send {
  margin-top: 8px;
  padding: 8px 24px;
  border: none;
  background: var(--black);
  color: var(--hero-bg);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .contact__send:hover {
    background: var(--pink);
  }
}

.contact__send:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.contact__send:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .contact__send {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .contact__send:active {
    transform: none;
  }
}

.contact__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
}

.contact__email {
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--black);
  flex-shrink: 0;
}

.contact__social {
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.contact__social a:hover {
  opacity: 0.65;
}

/* ─── 7. About ──────────────────────────────── */

.about {
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.about__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-lg);
}

.about__quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 480px;
}

.about__quote em {
  font-style: italic;
  color: var(--pink);
}

.about__body {
  max-width: 440px;
  opacity: 0.65;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.7;
}

.about__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--white);
  border-bottom: 1px solid var(--white);
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.25s, border-color 0.25s;
}

.about__link:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.about__image {
  position: relative;
  overflow: hidden;
}

.about__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.85);
}

/* ─── 8. Art Modal ──────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  /* Frosted: the gallery stays present as soft colour, not as detail. */
  background: rgba(245, 239, 229, 0.82);
  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--modal-padding);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: transparent;
  width: 100%;
  max-width: min(var(--modal-max-w), 100%);
  height: min(900px, calc(100vh - (2 * var(--modal-padding))));
  max-height: calc(100vh - (2 * var(--modal-padding)));
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--modal-content-gap);
  overflow: hidden;
  transform: translateY(24px);
  transition: transform 0.35s ease;
}

.modal-backdrop.is-open .modal {
  transform: none;
}

.modal__controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  pointer-events: none;
}

.modal__controls > * {
  pointer-events: auto;
}

.modal__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
}

.modal__nav[hidden] {
  display: none;
}

.modal__icon-btn {
  position: relative;
  z-index: 0;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(var(--black-rgb), 0.6);
  transition:
    color 0.2s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal__icon-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  box-shadow: none;
  transition:
    background 0.2s ease,
    backdrop-filter 0.2s ease,
    -webkit-backdrop-filter 0.2s ease,
    box-shadow 0.2s ease;
}

.modal__icon-btn--nav + .modal__icon-btn--nav {
  border-left: none;
}

@media (hover: hover) and (pointer: fine) {
  .modal__icon-btn:hover {
    color: var(--black);
  }

  .modal__icon-btn:hover::before {
    background: rgba(var(--white-rgb), 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 12px rgba(var(--black-rgb), 0.06);
  }

  .modal__nav .modal__icon-btn:first-child:hover .modal__icon {
    transform: translateX(-2px);
  }

  .modal__nav .modal__icon-btn:last-child:hover .modal__icon {
    transform: translateX(2px);
  }
}

.modal__icon-btn {
  border-radius: 50%; /* the focus ring follows the round hover shape */
}

.modal__icon-btn:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 2px;
}

/* Tucked away while reading down a long page (see modal.js) */
.modal__controls {
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.is-controls-hidden .modal__controls {
  opacity: 0;
  transform: translateY(-10px);
}

.modal-backdrop.is-controls-hidden .modal__controls > * {
  pointer-events: none;
}

.modal__icon-btn:active {
  transform: scale(0.98);
}

.modal__icon {
  display: block;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal__close {
  margin-left: auto;
}

/* Image side */
.modal__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 calc(50% - var(--modal-content-gap) / 2); /* halves; a real basis keeps them off the series' line */
  min-width: 0;
  height: var(--modal-art-h);
  overflow: visible;
  padding: 0;
  background: transparent;
}

.modal__image-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.modal__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Details side */
.modal__details {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* bottom-aligned with the art box */
  align-self: center;
  flex: 1 1 calc(50% - var(--modal-content-gap) / 2); /* halves; a real basis keeps them off the series' line */
  min-width: 0;
  height: var(--modal-art-h);
  gap: 16px;
  padding: 0 0 var(--art-inset, 0px); /* set by modal.js to the artwork's bottom edge */
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  background: transparent;
}

.modal__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.modal__details > * {
  max-width: var(--modal-details-w);
}

.modal__category {
  font-size: 14px;
  line-height: 15px;
  letter-spacing: 0;
  color: var(--black);
}

.modal__title {
  font-weight: var(--font-display-weight);
  font-size: clamp(24px, 5vw, 32px);
  line-height: 32px;
  letter-spacing: var(--font-display-tracking);
  color: var(--black);
}

/* Meta fields */
.modal__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.modal__divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0;
  border: none;
  background: rgba(var(--black-rgb), 0.4);
}

.modal__field[hidden] {
  display: none;
}

.modal__field {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: baseline;
}

.modal__label {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.02em;
  color: rgba(var(--black-rgb), 0.55);
}

.modal__value {
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.02em;
  color: var(--black);
}

/* Description */
.modal__description {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
}

/* Footer */
.modal__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.modal__availability {
  font-style: italic;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.02em;
  color: var(--black);
}

.modal__cta {
  display: inline-block;
  padding: 8px 24px;
  border: none;
  background: var(--black);
  color: var(--hero-bg);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal__cta--outline {
  background: transparent;
  color: var(--black);
  border: 1px solid rgba(var(--black-rgb), 0.12);
}

@media (hover: hover) and (pointer: fine) {
  .modal__cta:hover {
    background: var(--pink);
  }

  .modal__cta--outline:hover {
    background: transparent;
    border-color: var(--pink);
    color: var(--pink);
  }
}

.modal__cta:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.modal__cta:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .modal__cta {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .modal__cta:active {
    transform: none;
  }

  .modal__icon-btn:active {
    transform: none;
  }

  .modal__nav .modal__icon-btn:hover .modal__icon {
    transform: none;
  }
}

/* Modal — scale art block on narrower viewports */
@media (max-width: 900px) and (min-width: 681px) {
  .modal {
    gap: clamp(32px, 6vw, var(--modal-content-gap));
  }

  :root {
    --modal-art-h: min(720px, calc(100vh - 2 * var(--modal-padding) - 200px), 56vw);
  }
}

/* Modal responsive */
@media (max-width: 680px) {
  .modal-backdrop {
    padding: 0;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .modal {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    padding-top: 0;
    overflow: visible;
    border-radius: 0;
  }

  .modal-backdrop.is-open .modal {
    transform: none;
  }

  .modal__controls {
    position: sticky;
    top: max(24px, env(safe-area-inset-top));
    margin: max(24px, env(safe-area-inset-top)) 0 8px;
    padding-inline: 12px;
    z-index: 2;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .modal__image-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    background: transparent;
  }

  .modal__image-stage {
    width: 100%;
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
  }

  .modal__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 60dvh;
    object-fit: contain;
    object-position: center top;
    margin-inline: auto;
  }

  .modal__intro {
    gap: 8px;
  }

  .modal__title {
    line-height: 1.2;
  }

  .modal__details {
    align-self: auto;
    flex: 0 0 auto;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    gap: 16px;
    padding: 24px 12px max(16px, env(safe-area-inset-bottom));
    overflow: visible;
  }
}

/* Modal — Brand & Design project: the first screen is the regular detail view
   (cover + details); the rest of the series follows below it when scrolled. */
.modal-backdrop--project {
  --modal-h: min(900px, calc(100vh - (2 * var(--modal-padding))));
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__scroll-hint {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: -0.02em;
  color: rgba(var(--black-rgb), 0.55);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-backdrop--project .modal__scroll-hint {
  display: inline-flex;
}

.modal__scroll-hint-arrow {
  display: inline-block;
  animation: modal-hint-bob 2.4s cubic-bezier(.45, 0, .55, 1) 1.2s infinite;
}

@media (hover: hover) {
  .modal__scroll-hint:hover {
    color: var(--black);
  }
}

.modal__scroll-hint:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 4px;
}

@keyframes modal-hint-bob {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(4px); }
}

.modal__project {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

.modal__project[hidden] {
  display: none;
}

.modal__project-row {
  display: flex;
  gap: var(--space-sm);
}

.modal__project-row--narrow {
  width: var(--row-w, 50%);
  margin-inline: auto;
}

.modal__project-figure {
  flex: var(--aspect, 1) 1 0;
  min-width: 0;
  margin: 0;
  background: rgba(var(--black-rgb), 0.04); /* placeholder until revealed */
}

.modal__project-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* A lone image fills its row (flex-grow is its aspect ratio, which for a
   portrait is below 1 and would leave the row part-empty). */
.modal__project-figure:only-child {
  flex-grow: 1;
}

/* Staged entrance: each row rises into place as it scrolls into view, its
   images a beat apart (see the reveal observer in modal.js). */
.modal__project-row .modal__project-figure {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s cubic-bezier(.33, 0, .2, 1),
    transform 1.3s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}

.modal__project-row.is-revealed .modal__project-figure {
  opacity: 1;
  transform: none;
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  .modal__project-row .modal__project-figure {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .modal__scroll-hint-arrow {
    animation: none;
  }
}

@media (min-width: 681px) {
  /* Same row as a regular piece, but the panel grows past one screen. */
  .modal-backdrop--project .modal {
    flex-wrap: wrap;
    align-content: flex-start;
    row-gap: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  /* First screen matches a regular piece: both halves centred in one
     screen's height, the details still bottom-aligned with the art box. */
  .modal-backdrop--project .modal__image-wrap,
  .modal-backdrop--project .modal__details {
    margin-block: calc((var(--modal-h) - var(--modal-art-h)) / 2);
  }

  .modal-backdrop--project .modal__details {
    overflow: visible;
  }

  /* The panel scrolls, so the controls stick to the top: a full-width first
     flex line that takes no height. */
  .modal-backdrop--project .modal__controls {
    position: sticky;
    top: 0;
    flex: 0 0 100%;
    height: 40px;
    margin-bottom: -40px;
  }


  /* A touch narrower than the first screen, centred on the page. */
  .modal__project {
    flex: 0 0 auto;
    width: min(100%, 1040px);
    margin-inline: auto;
    padding: var(--space-lg) 0 var(--space-xl);
  }
}

@media (max-width: 680px) {
  .modal__project {
    gap: 12px;
    padding: 0 12px max(24px, env(safe-area-inset-bottom));
  }

  .modal__project-row {
    flex-direction: column;
    gap: 12px;
  }

  .modal__project-row--narrow {
    width: 100%;
  }

  .modal__project-figure {
    flex: none;
  }
}

/* Desktop hero: every artwork anchors to the same two lines — its bottom on
   a shared baseline and its right edge against the gutter — so the label
   beside it always starts in the same column, on the same baseline, whatever
   the piece's proportions. */
@media (min-width: 681px) {
  .modal__image-stage {
    justify-content: flex-end;
    align-items: flex-end;
  }

  /* Landscape pieces would fill the half edge to edge; give them equal room
     on both sides and centre them in the left area, both ways. */
  .modal__image-wrap.is-landscape {
    padding-inline: clamp(24px, 5vw, 80px);
  }

  .modal__image-wrap.is-landscape .modal__image-stage {
    justify-content: center;
    align-items: center;
  }

  /* …with the label centred on the same line beside it */
  .modal__details.is-centred {
    justify-content: center;
    padding-bottom: 0;
  }
}

/* Acquire: an email field unfolds under the button (see modal.js) */
.modal__enquiry {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  margin-top: -16px; /* no footer gap while folded */
  transition:
    grid-template-rows 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal__enquiry.is-open {
  grid-template-rows: 1fr;
  margin-top: 0;
}

.modal__enquiry-inner {
  min-height: 0;
  overflow: hidden;
}

.modal__enquiry-form {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  padding: 2px 3px 3px 0; /* room for focus rings inside the clip */
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.modal__enquiry.is-open .modal__enquiry-form {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease 0.12s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.modal__enquiry-input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 18px;
}

.modal__enquiry-send {
  flex: none;
  padding: 10px 20px;
}

.modal__enquiry-status {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(var(--black-rgb), 0.66);
}

.modal__enquiry-status a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* After a successful send only the thank-you remains */
.modal__enquiry.is-sent .modal__enquiry-form {
  display: none;
}

.modal__enquiry.is-sent .modal__enquiry-status {
  margin-top: 0;
  color: var(--black);
}

@media (prefers-reduced-motion: reduce) {
  .modal__enquiry,
  .modal__enquiry-form,
  .modal__enquiry.is-open .modal__enquiry-form {
    transition: none;
  }
}

/* Next project: closes a project page */
.modal__next-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: 100%;
  margin-top: var(--space-lg);
  padding: var(--space-md) 0 0;
  border: none;
  border-top: 1px solid rgba(var(--black-rgb), 0.18);
  background: none;
  font: inherit;
  text-align: left;
  color: var(--black);
  cursor: pointer;
}

.modal__next-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal__next-label {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--black-rgb), 0.66);
}

.modal__next-title {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: var(--font-display-tracking);
}

.modal__next-arrow {
  display: inline-block;
  margin-left: 0.3em;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal__next-thumb {
  flex: none;
  width: clamp(96px, 14vw, 180px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .modal__next-project:hover .modal__next-arrow {
    transform: translateX(8px);
  }

  .modal__next-project:hover .modal__next-thumb {
    transform: scale(1.03);
  }
}

.modal__next-project:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .modal__controls,
  .modal__next-arrow,
  .modal__next-thumb {
    transition: none;
  }
}

/* ─── 9. Commission CTA ─────────────────────── */

.cta {
  background: var(--pink-tint);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.cta__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0.5;
}

.cta__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  max-width: 720px;
}

.cta__sub {
  opacity: 0.6;
  max-width: 400px;
}

.cta__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.cta__email {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  opacity: 0.5;
  letter-spacing: 0.04em;
}

/* ─── 10. Footer ────────────────────────────── */

.footer {
  background: var(--black);
  color: var(--white);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-lg);
}

.footer__logo {
  height: 36px;
  width: auto;
  filter: invert(1);
}

.footer__logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: invert(1);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 1;
  color: var(--pink);
}

.footer__copy {
  font-size: 12px;
  opacity: 0.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ─── 11. Utilities ─────────────────────────── */

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

/* ─── 12. Responsive ────────────────────────── */

@media (max-width: 1100px) {
  :root {
    --space-lg: 48px;
    --space-xl: 80px;
    --app-shell-h: calc(var(--page-padding) + var(--nav-logo-h));
  }

  .page-shell {
    gap: var(--page-gap-md);
  }

  .hero.page-shell {
    padding-top: var(--page-gap-md);
  }

  .hero__top .link-rail {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .hero__grid .hero__bio {
    grid-column: 1 / span 5;
    align-self: end;
    max-width: none;
  }

  .hero__grid .hero__art {
    grid-column: 4 / span 5;
    align-self: end;
    justify-self: end;
    width: auto;
    aspect-ratio: 457 / 610;
  }

  /* Gallery — 4 columns × 4 rows */
  .gallery__grid {
    --gallery-row-h: 280px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: var(--gallery-row-h);
  }

  .gallery__cell[data-slot="1"]  { grid-column: 1; grid-row: 1; }
  .gallery__cell[data-slot="2"]  { grid-column: 2; grid-row: 1; }
  .gallery__cell[data-slot="3"]  { grid-column: 3; grid-row: 1; }
  .gallery__cell[data-slot="4"]  { grid-column: 4; grid-row: 1; }
  .gallery__cell[data-slot="5"]  { grid-column: 1; grid-row: 2; }
  .gallery__cell[data-slot="6"]  { grid-column: 2; grid-row: 2; }
  .gallery__cell[data-slot="7"]  { grid-column: 3; grid-row: 2; }
  .gallery__cell[data-slot="8"]  { grid-column: 4; grid-row: 2; }
  .gallery__cell[data-slot="9"]  { grid-column: 1; grid-row: 3; }
  .gallery__cell[data-slot="10"] { grid-column: 2; grid-row: 3; }
  .gallery__cell[data-slot="11"] { grid-column: 3; grid-row: 3; }
  .gallery__cell[data-slot="12"] { grid-column: 4; grid-row: 3; }
  .gallery__cell[data-slot="13"] { grid-column: 1; grid-row: 4; }
  .gallery__cell[data-slot="14"] { grid-column: 2; grid-row: 4; }
  .gallery__cell[data-slot="15"] { grid-column: 3; grid-row: 4; }
  .gallery__cell[data-slot="16"] { grid-column: 4; grid-row: 4; }
}

@media (max-width: 1100px) {
  .contact.page-shell {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .contact__field {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 24px;
    --space-xl: 64px;
    --space-2xl: 100px;
    --app-shell-h: calc(var(--page-padding-sm) + var(--nav-logo-h));
  }

  .hero.page-shell {
    padding-top: var(--space-md);
  }

  /* Nav */
  .nav {
    padding: 24px;
  }
  .nav__links {
    display: none;
  }
  header:not(.app-shell) {
    --nav-overlay-top: calc(24px + var(--nav-logo-h));
  }

  .modal-backdrop.hero__overlay,
  .modal-backdrop.nav__overlay {
    padding: calc(var(--nav-overlay-top) + var(--space-md)) var(--page-padding-sm) var(--page-padding-sm);
  }

  .modal-backdrop.commission-overlay {
    padding: var(--app-shell-h) var(--page-padding-sm) var(--page-padding-sm);
  }

  .site-nav__menu,
  .nav__burger {
    display: flex;
  }

  /* Hero / About — content-driven height on small screens */
  .hero {
    min-height: auto;
    scroll-margin-top: var(--app-shell-h);
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }

  .page-shell {
    gap: var(--page-gap-sm);
    padding: var(--page-padding-sm);
  }

  .gallery.page-shell {
    padding-inline: 0;
  }

  .gallery__toolbar,
  .gallery__empty {
    padding-inline: var(--page-padding-sm);
  }

  .gallery__cell {
    padding: var(--page-padding-sm);
  }

  .gallery__frame {
    max-height: calc(var(--gallery-row-h) - 2 * var(--page-padding-sm));
  }

  .hero__top .link-rail {
    display: none;
  }

  .hero__grid .hero__bio {
    order: 1;
    max-width: none;
    font-size: 18px;
    line-height: 1.45;
  }

  .hero__grid .hero__art {
    order: 2;
    align-self: center;
    width: min(68vw, 280px);
    aspect-ratio: 457 / 610;
    margin: 0;
  }

  /* Gallery — 2 columns × 8 rows */
  .gallery__toolbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .gallery__grid {
    --gallery-row-h: 240px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: var(--gallery-row-h);
  }

  .gallery__cell[data-slot="1"]  { grid-column: 1; grid-row: 1; }
  .gallery__cell[data-slot="2"]  { grid-column: 2; grid-row: 1; }
  .gallery__cell[data-slot="3"]  { grid-column: 1; grid-row: 2; }
  .gallery__cell[data-slot="4"]  { grid-column: 2; grid-row: 2; }
  .gallery__cell[data-slot="5"]  { grid-column: 1; grid-row: 3; }
  .gallery__cell[data-slot="6"]  { grid-column: 2; grid-row: 3; }
  .gallery__cell[data-slot="7"]  { grid-column: 1; grid-row: 4; }
  .gallery__cell[data-slot="8"]  { grid-column: 2; grid-row: 4; }
  .gallery__cell[data-slot="9"]  { grid-column: 1; grid-row: 5; }
  .gallery__cell[data-slot="10"] { grid-column: 2; grid-row: 5; }
  .gallery__cell[data-slot="11"] { grid-column: 1; grid-row: 6; }
  .gallery__cell[data-slot="12"] { grid-column: 2; grid-row: 6; }
  .gallery__cell[data-slot="13"] { grid-column: 1; grid-row: 7; }
  .gallery__cell[data-slot="14"] { grid-column: 2; grid-row: 7; }
  .gallery__cell[data-slot="15"] { grid-column: 1; grid-row: 8; }
  .gallery__cell[data-slot="16"] { grid-column: 2; grid-row: 8; }

  /* 2-col: flush outer columns to page grid */
  .gallery__cell[data-slot="3"],
  .gallery__cell[data-slot="7"],
  .gallery__cell[data-slot="11"],
  .gallery__cell[data-slot="15"] {
    padding-left: 0;
  }

  .gallery__cell[data-slot="2"],
  .gallery__cell[data-slot="6"],
  .gallery__cell[data-slot="10"],
  .gallery__cell[data-slot="14"] {
    padding-right: 0;
  }

  /* Contact */
  .contact.page-shell {
    gap: var(--space-xl);
  }

  .contact__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact__social {
    width: 100%;
  }

  /* About */
  .about {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .about__image {
    height: 60vw;
    position: relative;
  }
  .about__image img {
    position: absolute;
  }
  .about__text {
    padding: var(--space-xl) var(--space-lg);
  }

  /* Footer */
  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-md);
  }
  .footer__logo {
    margin: 0 auto;
  }
  .footer__copy {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    --gallery-row-h: 220px;
    grid-auto-rows: var(--gallery-row-h);
  }

  .contact__headline {
    font-size: clamp(48px, 14vw, 236px);
  }
}

/* ═══════════════════════════════════════════════
   PORTFOLIO PAGE
   ═══════════════════════════════════════════════ */

.page-header {
  padding: calc(var(--nav-h) + var(--space-xl)) var(--space-lg) var(--space-lg);
  border-bottom: 1px solid var(--black);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.page-header__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.page-header__title em {
  font-style: normal;
  color: var(--pink);
}

.page-header__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-xs);
  padding-bottom: 8px;
}

.page-header__count {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(var(--black-rgb), 0.10);
  flex-wrap: wrap;
}

.filter-pill {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 18px;
  border: 1px solid rgba(var(--black-rgb), 0.22);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--black);
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.filter-pill.active {
  background: var(--black);
}

/* Gallery: available-for-sale toggle */
.filter-bar--sale {
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.filter-bar__sale-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

.filter-sale-toggle {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.filter-sale-toggle:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}

.filter-sale-toggle__track {
  display: inline-block;
  width: 48px;
  height: 26px;
  border-radius: 999px;
  background: rgba(var(--black-rgb), 0.16);
  position: relative;
  transition: background var(--transition);
}

.filter-sale-toggle.is-on .filter-sale-toggle__track {
  background: var(--black);
}

.filter-sale-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(var(--black-rgb), 0.20);
  transition: transform 0.25s ease;
}

.filter-sale-toggle.is-on .filter-sale-toggle__knob {
  transform: translateX(22px);
}

/* Portfolio grid */
.portfolio-section {
  padding: var(--space-lg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.pf-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--parchment);
}

.pf-card--tall   { grid-row:    span 2; }
.pf-card--wide   { grid-column: span 2; }

.pf-card__image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  overflow: hidden;
}

.pf-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
  display: block;
}

.pf-card:hover .pf-card__image img {
  transform: scale(1.04);
}

/* Hover overlay */
.pf-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--black-rgb), 0.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.pf-card:hover .pf-card__overlay {
  opacity: 1;
}

.pf-card__overlay-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  line-height: 1.2;
}

.pf-card__overlay-cat {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-top: 4px;
}

/* Hide filter effect */
.pf-card[data-hidden="true"] {
  display: none;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pf-card--wide { grid-column: span 1; }
}

@media (max-width: 540px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .pf-card--tall { grid-row: span 1; }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-header__meta { align-items: flex-start; }
}

/* ═══════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════ */

/* About hero: full-bleed split */
.ab-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.ab-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-lg);
}

.ab-hero__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 6.5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.ab-hero__name em {
  font-style: normal;
  color: var(--pink);
}

.ab-hero__sub {
  font-size: 15px;
  line-height: 1.7;
  max-width: 400px;
  opacity: 0.7;
}

.ab-hero__image {
  position: relative;
  overflow: hidden;
}

.ab-hero__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Bio section */
.ab-bio {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--black);
}

.ab-bio__label {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
  padding-top: 6px;
}

.ab-bio__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ab-bio__para {
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.8;
}

.ab-bio__edu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(var(--black-rgb), 0.12);
}

.ab-bio__edu-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-sm);
  font-size: 14px;
  line-height: 1.5;
}

.ab-bio__edu-year {
  font-family: var(--font-body);
  font-size: 12px;
  opacity: 0.35;
  letter-spacing: 0.06em;
  padding-top: 2px;
}

/* Artist statement */
.ab-statement {
  background: var(--black);
  color: var(--white);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: flex-start;
}

.ab-statement__eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.ab-statement__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 800px;
}

.ab-statement__text em {
  font-style: italic;
  color: var(--pink);
}

.ab-statement__pt {
  font-size: 15px;
  line-height: 1.75;
  opacity: 0.55;
  max-width: 680px;
  font-style: italic;
}

/* Techniques */
.ab-techniques {
  padding: var(--space-xl) var(--space-lg);
}

.ab-techniques__header {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  border-top: 1px solid var(--black);
  padding-top: var(--space-md);
  margin-bottom: var(--space-xl);
}

.ab-techniques__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.technique-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.technique-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--parchment);
}

.technique-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.technique-card:hover .technique-card__image img {
  transform: scale(1.03);
}

.technique-card__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  color: var(--pink);
  line-height: 1;
  letter-spacing: -0.03em;
}

.technique-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.technique-card__desc {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.65;
}

.technique-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.technique-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(var(--black-rgb), 0.22);
  color: var(--black);
  opacity: 0.7;
}

/* Process photo strip */
.ab-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background: var(--black);
}

.ab-process__photo {
  aspect-ratio: 1;
  overflow: hidden;
}

.ab-process__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(20%);
  transition: filter 0.4s ease, transform 0.5s ease;
}

.ab-process__photo:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* About page responsive */
@media (max-width: 900px) {
  .ab-techniques__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ab-hero {
    grid-template-columns: 1fr;
    grid-template-rows: 65vw auto;
    min-height: unset;
  }
  .ab-hero__image {
    grid-row: 1;
    position: relative;
    height: 65vw;
  }
  .ab-hero__image img { position: absolute; }
  .ab-hero__text {
    grid-row: 2;
    padding: var(--space-lg);
  }
  .ab-bio {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .ab-techniques__grid {
    grid-template-columns: 1fr;
  }
  .ab-process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .ab-process {
    grid-template-columns: 1fr;
  }
}

/* ─── 13. Intro Parallax ─────────────────────── */

body.is-intro-active {
  overflow: hidden;
}

body.is-intro-active > :not(#intro) {
  visibility: hidden;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--white);
  transform: translateZ(0);
}

.intro[hidden] { display: none; }

.intro__floating {
  position: absolute;
  inset: 0;
}

.intro__piece {
  position: absolute;
  will-change: transform;
  opacity: 0;
  transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(var(--black-rgb), 0.12);
  background: var(--white);
  overflow: hidden;
}

.intro.is-leaving .intro__piece {
  transition: opacity 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

#intro .intro__piece.is-visible { opacity: 1; }

.intro__piece img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.01);
}

/* Sizes */
.intro__piece--sm  { width: clamp(64px, 10vw, 96px);  aspect-ratio: 1; }
.intro__piece--md  { width: clamp(80px, 12vw, 112px); aspect-ratio: 1; }
.intro__piece--lg  { width: clamp(96px, 14vw, 128px); aspect-ratio: 1; }
.intro__piece--tall { width: clamp(112px, 16vw, 160px); aspect-ratio: 4 / 5; }
.intro__piece--wide { width: clamp(128px, 18vw, 208px); aspect-ratio: 5 / 4; }

/* Collage positions — center kept clear for copy */
.intro__piece--p1 { top: 8%;  left: 11%; }
.intro__piece--p2 { top: 10%; left: 32%; }
.intro__piece--p3 { top: 2%;  left: 53%; }
.intro__piece--p4 { top: 0%;  left: 83%; }
.intro__piece--p5 { top: 40%; left: 2%;  }
.intro__piece--p6 { top: 70%; left: 77%; }
.intro__piece--p7 { top: 73%; left: 15%; }
.intro__piece--p8 { top: 80%; left: 50%; }

.intro__copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--black);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.intro.is-leaving .intro__copy {
  transition: opacity 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

.intro.is-ready .intro__copy {
  opacity: 1;
  pointer-events: auto;
}

.intro__title {
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  transform: translateY(10px);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.intro.is-leaving .intro__title {
  transition: transform 520ms cubic-bezier(0.4, 0, 0.2, 1);
}

.intro.is-ready .intro__title {
  transform: translateY(-0.05em);
}

.intro.is-exiting {
  transition: opacity 650ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .intro__piece--p3 { top: 4%;  left: 58%; }
  .intro__piece--p4 { top: 2%;  left: 78%; }
  .intro__piece--p6 { top: 72%; left: 68%; }
  .intro__piece--p8 { top: 82%; left: 44%; }
}

@media (prefers-reduced-motion: reduce) {
  .intro__piece { transition: none; }
  .intro__copy { transition: opacity 300ms ease; }
  .intro__title { transition: none; transform: none; }
  .intro.is-ready .intro__title { transform: none; }
  .hero__enter {
    opacity: 1;
    transition: none;
  }
}

/* ─── 14. About — statement hero, record focus, closing invitation ─── */

/* Original composition (bio and portrait bottom-aligned in a full-height
   hero); only the type hierarchy changes: a display statement over a quieter
   biography. */
.hero__bio .hero__statement {
  max-width: 24ch;
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--black);
}

.hero__bio .hero__body {
  max-width: 44ch;
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
  color: rgba(var(--black-rgb), 0.78);
}

/* Secondary text: dark enough to read comfortably on the cream */
.record__label,
.record__meta,
.hero__social a {
  color: rgba(var(--black-rgb), 0.66);
}

/* Record: the hovered row gains weight while its neighbours step back */
.record__title {
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    font-weight 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .record__list:hover .record__title {
    opacity: 0.4;
  }

  .record__list .record__row:hover .record__title {
    opacity: 1;
  }
}

/* Closing invitation: headline, one line and a button that unfolds the form */
.about-cta.page-shell {
  gap: 0;
  padding-top: var(--space-lg); /* the record above already ends with a page gap */
  padding-bottom: var(--space-xl);
  background: var(--hero-bg);
}

.about-cta__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.about-cta__headline {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 6.4vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--black);
}

.about-cta__headline em {
  font-style: italic;
}

.about-cta__text {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.3;
  letter-spacing: var(--font-display-tracking);
  color: var(--black);
}

.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
}

.about-cta__open {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px 12px 26px;
  border: 1px solid var(--black);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--black);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Plus that folds into a minus, as in the option picker */
.about-cta__open-icon {
  position: relative;
  width: 11px;
  height: 11px;
}

.about-cta__open-icon::before,
.about-cta__open-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-cta__open-icon::after {
  transform: rotate(90deg);
}

.about-cta.is-open .about-cta__open-icon::after {
  transform: rotate(0deg);
}

@media (hover: hover) and (pointer: fine) {
  .about-cta__open:hover {
    background: var(--black);
    color: var(--hero-bg);
  }
}

.about-cta__open:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 3px;
}

/* The form unfolds to its natural height, its fields rising in one by one */
.about-cta__reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-cta.is-open .about-cta__reveal {
  grid-template-rows: 1fr;
}

.about-cta__reveal-inner {
  min-height: 0;
  overflow: hidden;
}

.about-cta .art-form {
  max-width: 640px;
  padding: var(--space-lg) 4px 4px 0; /* room for focus rings inside the clip */
}

.about-cta .art-form > * {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.3s ease,
    transform 0.4s ease;
}

.about-cta.is-open .art-form > * {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease var(--d, 0ms),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}

.about-cta.is-open .art-form > :nth-child(1) { --d: 120ms; }
.about-cta.is-open .art-form > :nth-child(2) { --d: 190ms; }
.about-cta.is-open .art-form > :nth-child(3) { --d: 260ms; }
.about-cta.is-open .art-form > :nth-child(4) { --d: 330ms; }

.about-cta__mail {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(var(--black-rgb), 0.66);
}

.about-cta__mail a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.about-cta__mail a:hover {
  color: var(--black);
}

/* Commission form (About closing section + Commission overlay) */
.art-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.art-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 32px;
}

.art-form__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.art-form__label {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(var(--black-rgb), 0.66);
}

.art-form__control {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(var(--black-rgb), 0.28);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: var(--font-display-tracking);
  color: var(--black);
  outline: none;
  transition: border-color 0.25s ease;
}

.art-form__control::placeholder {
  color: rgba(var(--black-rgb), 0.35);
  opacity: 1;
}

.art-form__control:hover {
  border-bottom-color: rgba(var(--black-rgb), 0.5);
}

.art-form__control:focus,
.art-form__control:focus-visible {
  border-bottom-color: var(--black);
}

/* "I'm thinking of": a button that unfolds a row of options (see commission-overlay.js) */
.art-choice__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  width: 100%;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(var(--black-rgb), 0.28);
  background: none;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: var(--font-display-tracking);
  text-align: left;
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.art-choice__toggle.is-empty .art-choice__value {
  color: rgba(var(--black-rgb), 0.35);
}

.art-choice__toggle:hover {
  border-bottom-color: rgba(var(--black-rgb), 0.5);
}

.art-choice.is-open .art-choice__toggle,
.art-choice__toggle:focus-visible {
  border-bottom-color: var(--black);
  outline: none;
}

/* A plus that folds into a minus */
.art-choice__icon {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
}

.art-choice__icon::before,
.art-choice__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-choice__icon::after {
  transform: rotate(90deg);
}

.art-choice.is-open .art-choice__icon::after {
  transform: rotate(0deg);
}

/* Height animates from nothing to the options' natural size */
.art-choice__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-choice.is-open .art-choice__panel {
  grid-template-rows: 1fr;
}

.art-choice__options {
  display: flex;
  flex-wrap: wrap;
  column-gap: 8px;
  min-height: 0;
  overflow: hidden;
}

.art-choice__option {
  margin-top: 10px; /* row spacing; keeps the folded panel at zero height */
  padding: 7px 16px 8px;
  border: 1px solid rgba(var(--black-rgb), 0.22);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-display);
  font-weight: var(--font-display-weight);
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: var(--font-display-tracking);
  color: var(--black);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.3s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/* Options arrive one after another once the panel opens */
.art-choice.is-open .art-choice__option {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.4s ease calc(90ms + var(--i, 0) * 45ms),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) calc(90ms + var(--i, 0) * 45ms),
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .art-choice__option:hover {
    border-color: var(--black);
  }
}

.art-choice__option[aria-pressed="true"] {
  border-color: var(--black);
  background: var(--black);
  color: var(--hero-bg);
}

.art-choice__option:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 2px;
}

.art-form__control--message {
  resize: none;
  min-height: 2.6em;
  max-height: 12em;
  field-sizing: content; /* grows with the text where supported */
}

.art-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-md);
}

.art-form__send {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: 0;
  background: var(--black);
  color: var(--hero-bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.art-form__arrow {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.art-form__send[aria-disabled="true"] {
  opacity: 0.3;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .art-form__send:not([aria-disabled="true"]):hover {
    background: var(--pink);
  }

  .art-form__send:not([aria-disabled="true"]):hover .art-form__arrow {
    transform: translateX(6px);
  }
}

.art-form__send:focus-visible {
  outline: 1px solid var(--black);
  outline-offset: 3px;
}

.art-form__status {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(var(--black-rgb), 0.7);
}

.art-form__status:empty {
  display: none;
}

.site-footer.page-shell {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
  border-top: 1px solid rgba(var(--black-rgb), 0.18);
  background: var(--hero-bg);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(var(--black-rgb), 0.66);
}

.site-footer__top {
  transition: color 0.2s ease;
}

.site-footer__top:hover {
  color: var(--black);
}

/* ─── 15. Commission overlay — invitation + form ─── */

.modal-backdrop.commission-overlay {
  align-items: flex-start;
}

.commission-overlay__panel {
  position: relative;
  max-width: 480px;
  gap: var(--space-md);
  margin-block: auto; /* centred, yet scrolls from the top when taller than the screen */
  padding-block: var(--space-md);
}

.commission-overlay__close {
  position: absolute;
  top: -16px; /* above the headline, in the panel's corner */
  right: -12px;
}

.commission-overlay__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.commission-overlay .contact__headline {
  margin: 0;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.commission-overlay .contact__intro {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(var(--black-rgb), 0.78);
}

.commission-overlay__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  width: 100%;
}

.commission-overlay .contact__direct-mail {
  font-size: 14px;
  color: rgba(var(--black-rgb), 0.66);
}

.contact__send[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .contact__send[aria-disabled="true"]:hover {
    background: var(--black);
  }
}

.contact__status {
  min-height: 1.4em;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(var(--black-rgb), 0.7);
}

.contact__status:empty {
  display: none;
}

/* Mobile menu: contact line pinned to the bottom */
.hero__overlay-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(var(--black-rgb), 0.66);
}

@media (prefers-reduced-motion: reduce) {
  .about-cta__reveal,
  .about-cta__open-icon::before,
  .about-cta__open-icon::after,
  .about-cta .art-form > *,
  .about-cta.is-open .art-form > *,
  .art-form__arrow,
  .art-form__control,
  .art-form__send,
  .art-choice__panel,
  .art-choice__icon::before,
  .art-choice__icon::after,
  .art-choice__option,
  .art-choice.is-open .art-choice__option {
    transition: none;
  }
}



@media (max-width: 768px) {
  .hero.page-shell {
    padding-top: calc(var(--space-md) + 16px); /* the mobile bar is taller than --app-shell-h */
    padding-bottom: var(--space-md);
  }

  .hero__bio .hero__statement {
    max-width: none;
    font-size: 28px;
    line-height: 1.15;
  }

  .hero__bio .hero__body {
    margin-top: var(--space-sm);
    font-size: 16px;
  }

  .about-cta.page-shell {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }


  .about-cta__headline {
    font-size: clamp(48px, 15vw, 64px);
  }

  .art-form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .art-form__control,
  .art-choice__toggle {
    font-size: 18px;
  }

  .site-footer.page-shell {
    padding-top: var(--space-sm);
    padding-bottom: max(var(--space-sm), env(safe-area-inset-bottom));
  }

  .commission-overlay__panel {
    padding-block: var(--space-sm) var(--space-lg);
  }

  /* Clear of the header's "menu"; sits level with the title instead */
  .commission-overlay__close {
    top: calc(var(--space-sm) + 4px);
  }

  .commission-overlay .contact__headline {
    padding-right: 40px;
  }

  .commission-overlay .contact__headline {
    font-size: clamp(40px, 12vw, 56px); /* one line beside the close button */
  }

  .commission-overlay .contact__service {
    font-size: 15px;
  }

  /* Mobile menu: links at display size */
  .modal-backdrop.hero__overlay {
    gap: var(--space-sm);
  }

  .hero__overlay-link {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.1;
  }

  .hero__overlay-foot {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
