/* Galleria 1899 — Carrara marble gallery palette.
   Layout: one long ZEM chapter, then quieter sections; rhythm changes every block. */
:root {
  --marble: #ecebe7;       /* Carrara white, the gallery wall */
  --marble-2: #e2e0db;
  --paper: #f7f6f3;        /* drawing paper */
  --ink: #1d1f21;
  --bardiglio: #686c6f;    /* grey Carrara marble, secondary text */
  --alpi: #1e2a24;         /* Verde Alpi, dark sections */
  --alpi-ink: #d9e0da;
  --alpi-mute: #93a198;
  --bronze: #9a7c4f;       /* champagne bronze, used on lines */
  --bronze-lt: #d6c3a1;
  --line: rgba(29, 31, 33, .16);
  --white: #ffffff;
  --shade: rgba(18, 20, 19, 1);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1520px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--marble);
  color: var(--ink);
  font: 300 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 1px solid var(--bronze); outline-offset: 4px; }

.wordmark { font-family: var(--serif); font-size: 22px; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.kicker { font-size: 14px; letter-spacing: .02em; opacity: .8; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gutter) 22px;
  color: var(--white);
  transition: background-color .4s ease, color .4s ease, padding .4s ease;
}
.site-header.is-solid {
  background: rgba(236, 235, 231, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.site-header.is-solid .wordmark { opacity: 1; }
.site-header .wordmark { opacity: 0; transition: opacity .4s ease; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); font-size: 15px; font-weight: 400; }
.nav a { text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: currentColor; }
.nav-private { font: inherit; color: inherit; background: none; cursor: pointer; padding: 3px 12px; border: 1px solid currentColor; border-radius: 999px; }
.nav-private:hover { color: var(--ink); background: var(--white); }
.site-header.is-solid .nav-private:hover { color: var(--marble); background: var(--ink); }
.menu-btn { display: none; font-size: 15px; }

/* Hero: the armchair detail */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; color: var(--white); background: #2b2a27; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: settle 2.8s cubic-bezier(.2,.6,.2,1) both; }
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,20,19,.58) 0%, rgba(18,20,19,.12) 50%, rgba(18,20,19,.22) 100%); }
.hero-inner { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(70px, 12vh, 120px) var(--gutter) clamp(28px, 5vh, 56px); }
.hero-mark {
  font-family: var(--serif); font-size: clamp(64px, 13.5vw, 230px); line-height: .9; letter-spacing: -.03em;
  text-align: center; margin-top: 6vh;
}
.hero-title { font-size: clamp(30px, 3.6vw, 58px); line-height: 1.05; max-width: 18ch; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.4); }
.hero-sub { max-width: 52ch; font-size: clamp(15px, 1.1vw, 17px); }
.hero-caption { font-size: 13px; text-align: right; opacity: .85; white-space: nowrap; }

/* ZEM chapter */
.zem { background: var(--paper); }
.zem-film { position: relative; height: min(92vh, 900px); min-height: 560px; overflow: hidden; color: var(--white); background: #24221f; }
.zem-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zem-film-shade { position: absolute; inset: 0; background: linear-gradient(to right, rgba(18,20,19,.62) 0%, rgba(18,20,19,.2) 55%, rgba(18,20,19,0) 100%); }
.zem-film-text { position: absolute; left: var(--gutter); bottom: clamp(32px, 7vh, 72px); max-width: 560px; display: grid; gap: 16px; }
.zem-film-text h2 { font-size: clamp(44px, 6vw, 96px); line-height: .98; }
.zem-film-text p { font-size: clamp(15px, 1.15vw, 18px); max-width: 46ch; }
.film-sound { justify-self: start; margin-top: 6px; font-size: 15px; font-weight: 400; padding: 10px 18px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; transition: background-color .25s ease, color .25s ease; }
.film-sound:hover, .film-sound[aria-pressed="true"] { background: var(--white); color: var(--ink); }

.zem-facts {
  margin: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: clamp(28px, 5vh, 48px) var(--gutter); gap: 24px;
  border-bottom: 1px solid var(--line);
}
.zem-facts div { display: grid; gap: 6px; align-content: start; }
.zem-facts dt { font-size: 14px; color: var(--bardiglio); }
.zem-facts dd { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.5vw, 23px); line-height: 1.25; }

.zem-scope { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 72px); padding: clamp(64px, 10vh, 120px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.zem-scope h3 { font-size: clamp(30px, 3vw, 46px); }
.zem-scope p { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 34px); line-height: 1.3; max-width: 34ch; }

.zem-block { padding: 0 0 clamp(72px, 11vh, 130px); }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; padding: 0 var(--gutter); margin-bottom: 24px; max-width: var(--max); }
.block-head h3 { font-size: clamp(30px, 3vw, 46px); }
.block-head p { color: var(--bardiglio); max-width: 44ch; }

/* Horizontal rails */
.rail { display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 14px; scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--bardiglio) transparent; overscroll-behavior-x: contain; }

/* Mosaic of our own photographs */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 14vw, 230px); gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--gutter); max-width: var(--max); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.m-a { grid-column: 1 / 8; grid-row: span 3; }
.m-b { grid-column: 8 / 13; grid-row: span 3; }
.m-c { grid-column: 1 / 4; grid-row: span 2; }
.m-d { grid-column: 4 / 10; grid-row: span 2; }
.m-e { grid-column: 10 / 13; grid-row: span 2; }
.m-f { display: none; }

/* Reels */
.films { background: var(--ink); color: var(--marble); padding-top: clamp(64px, 10vh, 120px); }
.films .block-head p { color: #a3a6a8; }
.reels { scrollbar-color: #6b6e70 transparent; }
.reel { position: relative; flex: 0 0 auto; width: clamp(200px, 21vw, 300px); aspect-ratio: 9 / 16; scroll-snap-align: start; overflow: hidden; background: #2b2d2f; text-align: left; }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel span { position: absolute; left: 14px; right: 14px; bottom: 14px; font-family: var(--serif); font-size: 20px; color: var(--white); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.reel::after { content: ""; position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.8);
  background: center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0l10 6-10 6z' fill='%23fff'/%3E%3C/svg%3E"); }
.reel.is-playing::after, .reel.is-playing span { display: none; }


.bleed { position: relative; color: var(--white); }
.bleed img { display: block; width: 100%; height: min(86vh, 860px); object-fit: cover; }
.bleed::after { content: ""; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(to top, rgba(18, 20, 19, .55), rgba(18, 20, 19, 0)); pointer-events: none; }
.bleed figcaption { z-index: 1; position: absolute; left: var(--gutter); bottom: 24px; font-size: 15px; max-width: 40ch; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.bleed figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 60px); line-height: 1; margin-bottom: 6px; }

/* The spaces: one per row, filmed by us */
.spaces { display: grid; gap: clamp(72px, 11vh, 130px); padding-bottom: clamp(72px, 11vh, 130px); }
.bleed video { display: block; width: 100%; height: min(86vh, 860px); object-fit: cover; background: #24221f; }
.space { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 80px); align-items: end; padding: 0 var(--gutter); max-width: var(--max); }
.space > video { width: min(100%, calc(86vh * 9 / 16)); aspect-ratio: 9 / 16; object-fit: cover; background: #24221f; }
.space-hero { width: min(100%, calc(88vh * 2 / 3)); aspect-ratio: 2 / 3; object-fit: cover; }
.space.flip > video, .space.flip > .space-hero { order: 2; justify-self: end; }
.space-text { display: grid; gap: 14px; align-content: end; min-width: 0; }
.space-text h3 { font-size: clamp(36px, 4vw, 64px); line-height: 1; }
.space-text p { color: var(--bardiglio); max-width: 40ch; }
.space-pics { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(10px, 1.2vw, 18px); align-items: end; margin-top: clamp(16px, 4vh, 48px); }
.space-pics img, .space-pics video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #24221f; }
.space-pics video { aspect-ratio: 9 / 16; }
.space.small .space-pics img:first-child { aspect-ratio: 4 / 3; }
.space.small { grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); }
.space.small > video { width: min(100%, calc(62vh * 9 / 16)); }
.space.small .space-text h3 { font-size: clamp(30px, 3vw, 46px); }

.space-duo { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(12px, 1.6vw, 24px); align-items: end; padding: 0 var(--gutter); max-width: var(--max); }
.space-duo video, .space-duo img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #24221f; }
.space-duo > :last-child { margin-bottom: clamp(40px, 10vh, 120px); }

.space-cabins { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto; grid-auto-rows: clamp(110px, 12vw, 210px); gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--gutter); max-width: var(--max); }
.space-cabins .space-text { grid-column: 1 / 5; grid-row: 1 / 2; align-content: start; }
.space-cabins img { width: 100%; height: 100%; object-fit: cover; }
.c-a { grid-column: 5 / 9; grid-row: 1 / 5; }
.c-b { grid-column: 9 / 13; grid-row: 1 / 4; }
.c-c { grid-column: 1 / 5; grid-row: 2 / 6; }
.c-d { grid-column: 9 / 13; grid-row: 4 / 7; }

.space-pair { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(10px, 1.2vw, 18px); padding: 0 var(--gutter); max-width: var(--max); margin-top: calc(-1 * clamp(56px, 9vh, 110px)); }
.space-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.space-pair.tall { grid-template-columns: 5fr 4fr; align-items: end; margin-top: 0; }
.space-pair.tall img { aspect-ratio: 4 / 5; }
.space-pair.tall img + img { aspect-ratio: 2 / 3; }
.space-pair.trio { grid-template-columns: 1fr 1fr 1fr; }
.space-pair.trio img { aspect-ratio: 3 / 4; }

.podcast { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(24px, 4vw, 72px); align-items: center; padding: clamp(72px, 11vh, 130px) var(--gutter); max-width: var(--max); }
.podcast-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.podcast-text { display: grid; gap: 18px; }
.podcast-text h3 { font-size: clamp(36px, 4vw, 64px); line-height: 1; }
.podcast-text p:not(.kicker) { max-width: 44ch; }
.podcast-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.podcast-links a { text-decoration: none; font-size: 15px; font-weight: 400; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px; }
.podcast-links a:hover { background: var(--ink); color: var(--marble); }

.zem-end { display: flex; gap: 28px; flex-wrap: wrap; padding: 0 var(--gutter) clamp(72px, 11vh, 130px); }
.text-link { font-size: 15px; font-weight: 400; text-decoration: none; border-bottom: 1px solid var(--bronze); padding-bottom: 3px; }
.text-link:hover { color: var(--bronze); }

/* Scale */
.scale { position: relative; height: 420vh; background: var(--marble-2); }
.scale-sticky {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; gap: clamp(24px, 4vw, 72px);
  padding: clamp(80px, 12vh, 120px) var(--gutter) clamp(32px, 6vh, 64px);
  max-width: var(--max); margin: 0 auto;
}
.scale-text { display: flex; flex-direction: column; min-height: 0; }
.scale-intro { font-size: 15px; color: var(--bardiglio); }
.scale-num { font-family: var(--serif); font-size: clamp(88px, 11.5vw, 196px); line-height: .9; letter-spacing: -.035em; margin: 18px 0 auto; }
.scale-steps { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.scale-steps li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--bardiglio); transition: color .4s ease; position: relative; }
.scale-steps li::before { content: attr(data-num); position: absolute; right: 0; top: 16px; font-family: var(--serif); font-size: 15px; }
.scale-steps h3 { font-family: var(--sans); font-weight: 400; font-size: 17px; letter-spacing: 0; }
.scale-steps p { font-size: 15px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s ease, opacity .4s ease, margin .4s ease; max-width: 44ch; }
.scale-steps li.is-active { color: var(--ink); }
.scale-steps li.is-active::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 64px; height: 1px; background: var(--bronze); }
.scale-steps li.is-active p { max-height: 6em; opacity: 1; margin-top: 6px; }
.step-img { display: none; }
.scale-media { position: relative; min-height: 0; }
.scale-media figure { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.scale-media figure.is-active { opacity: 1; }
.scale-media img { width: 100%; height: calc(100% - 28px); object-fit: cover; transform: scale(1.03); transition: transform 2.4s cubic-bezier(.2,.6,.2,1); }
.scale-media figure.is-active img { transform: scale(1); }
.scale-media figcaption, .sheets figcaption, .atelier-farm figcaption { font-size: 13px; color: var(--bardiglio); margin-top: 8px; }

/* Section heads */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vh, 48px); }
.section-head h2, .drawings h2, .atelier h2 { font-size: clamp(36px, 4.4vw, 72px); line-height: 1.02; }
.section-lede { max-width: 50ch; color: var(--bardiglio); }

/* More work: quieter, smaller */
.work { padding: clamp(80px, 12vh, 140px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.filters button:hover { border-color: var(--ink); }
.filters button.is-on { background: var(--ink); color: var(--marble); border-color: var(--ink); }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(14px, 1.6vw, 24px); row-gap: clamp(32px, 5vh, 56px); }
.card { grid-column: span var(--span, 4); text-align: left; display: block; width: 100%; }
.card-img { overflow: hidden; aspect-ratio: var(--ratio, 4 / 3); background: var(--marble-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.6,.2,1); }
.card:hover .card-img img { transform: scale(1.025); }
.card-cap { display: flex; justify-content: space-between; gap: 14px; padding-top: 10px; align-items: baseline; }
.card-title { font-family: var(--serif); font-size: clamp(19px, 1.5vw, 24px); line-height: 1.1; }
.card-meta { font-size: 13px; color: var(--bardiglio); text-align: right; }
.card-type { display: block; font-size: 13px; color: var(--bardiglio); margin-top: 3px; }
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Objects */
.objects { padding: clamp(80px, 12vh, 140px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.objects-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.4vw, 22px); }
.objects-grid button { display: block; width: 100%; text-align: left; }
.objects-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.obj-name { display: block; font-family: var(--serif); font-size: clamp(19px, 1.5vw, 24px); margin-top: 10px; }
.objects-grid button:hover .obj-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.obj-note { display: block; font-size: 14px; color: var(--bardiglio); margin-top: 2px; }

/* Drawings */
.drawings { background: var(--alpi); color: var(--alpi-ink); padding: clamp(80px, 12vh, 140px) 0; }
.drawings-head { display: grid; grid-template-columns: 5fr 6fr; gap: 40px; align-items: end; padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto clamp(36px, 5vh, 60px); }
.drawings-head p { color: var(--alpi-mute); max-width: 52ch; }
.sheets { display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 20px; scrollbar-width: thin; scrollbar-color: var(--alpi-mute) transparent; }
.sheets figure { flex: 0 0 auto; width: min(56vw, 680px); scroll-snap-align: start; }
.sheets img { width: 100%; background: var(--white); padding: 10px; aspect-ratio: 1806 / 1414; object-fit: contain; }
.sheets figcaption { color: var(--alpi-mute); }

/* Atelier */
.atelier { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: clamp(24px, 3.5vw, 64px); align-items: start; padding: clamp(80px, 12vh, 140px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.atelier-portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.atelier-text { display: grid; gap: 18px; padding-top: 8px; }
.atelier-text h2 { margin-bottom: 10px; }
.atelier-text p { max-width: 48ch; }
.atelier-facts, .contact-list { margin: 18px 0 0; display: grid; gap: 14px; }
.atelier-facts div, .contact-list div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
dt { color: var(--bardiglio); font-size: 15px; }
dd { margin: 0; }
.atelier-farm { align-self: end; }
.atelier-farm img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Contact */
.contact { background: var(--ink); color: var(--marble); padding: clamp(96px, 16vh, 180px) var(--gutter); }
.contact h2 { font-size: clamp(40px, 6vw, 104px); line-height: 1; max-width: 14ch; }
.contact-lede { color: #a3a6a8; margin-top: 24px; max-width: 48ch; }
.contact-mail { display: inline-block; margin-top: clamp(36px, 6vh, 64px); font-family: var(--serif); font-size: clamp(24px, 3.4vw, 56px); text-decoration: none; border-bottom: 1px solid var(--bronze); padding-bottom: 6px; overflow-wrap: anywhere; user-select: all; }
.contact-mail:hover { color: var(--bronze-lt); }
.contact-list { max-width: 720px; margin-top: clamp(40px, 7vh, 72px); }
.contact-list div { border-color: rgba(236,235,231,.18); }
.contact-list dt { color: #a3a6a8; }
.contact-list a { text-decoration: none; border-bottom: 1px solid rgba(236,235,231,.3); }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: #a3a6a8; font-size: 14px; border-top: 1px solid rgba(236,235,231,.12); }
.site-footer .wordmark { color: var(--marble); font-size: 18px; margin-right: auto; }
.site-footer a { text-decoration: none; }

/* Viewer */
.viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--marble); color: var(--ink); }
.viewer::backdrop { background: rgba(29,31,33,.6); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; animation: viewerIn .45s ease both; }
@keyframes viewerIn { from { opacity: 0; } to { opacity: 1; } }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 16px; border-bottom: 1px solid var(--line); }
.viewer-close { font-size: 15px; border-bottom: 1px solid var(--bronze); padding-bottom: 2px; }
.viewer-body { display: grid; grid-template-columns: minmax(280px, 3fr) 9fr; min-height: 0; }
.viewer-info { padding: clamp(24px, 4vh, 48px) var(--gutter); display: flex; flex-direction: column; gap: 22px; overflow-y: auto; border-right: 1px solid var(--line); }
.viewer-info h2 { font-size: clamp(32px, 3vw, 48px); line-height: 1.04; }
.viewer-info dl { margin: 0; display: grid; gap: 10px; }
.viewer-info dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 10px; }
.viewer-info p { font-size: 16px; max-width: 40ch; }
.viewer-count { color: var(--bardiglio); font-size: 14px; margin-top: auto !important; }
.viewer-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: clamp(24px, 4vh, 48px) var(--gutter); align-items: center; min-height: 0; }
.viewer-strip figure { flex: 0 0 auto; height: 100%; scroll-snap-align: center; display: flex; flex-direction: column; }
.viewer-strip img { height: calc(100% - 28px); width: auto; max-width: none; object-fit: contain; background: var(--marble-2); }
.viewer-strip figcaption { font-size: 13px; color: var(--bardiglio); margin-top: 8px; }

/* Tablet */
@media (max-width: 1080px) {
  .zem-facts { grid-template-columns: repeat(3, 1fr); }
  .zem-scope { grid-template-columns: 1fr; }
  .scale-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 84px; }
  .scale-num { font-size: clamp(72px, 16vw, 140px); margin: 4px 0 0; }
  .scale-steps { display: none; }
  .scale-text { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .scale-intro { order: 2; text-align: right; max-width: 18ch; }
  .atelier { grid-template-columns: 1fr 1fr; }
  .atelier-farm { display: none; }
  .objects-grid { grid-template-columns: repeat(3, 1fr); }
  .drawings-head { grid-template-columns: 1fr; }
  .card { grid-column: span 6; }
}

/* Private viewing */
.private { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.private::backdrop { background: rgba(29, 31, 33, .55); }
.private-close { position: absolute; top: 18px; right: 20px; }
.private-body { display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 5vw, 48px); }
.private-body h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.05; padding-right: 64px; }
.private-lead { color: var(--bardiglio); max-width: 40ch; }
.private-form { display: flex; flex-direction: column; gap: 8px; }
.private-form label { font-size: 14px; color: var(--bardiglio); }
.private-row { display: flex; gap: 8px; }
.private-row input { flex: 1; min-width: 0; width: 100%; font: 400 18px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 12px 14px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.private-row input:focus { outline: 1px solid var(--bronze); border-color: var(--bronze); }
.private-row button { font: 400 15px/1 var(--sans); padding: 0 20px; border: 1px solid var(--ink); background: var(--ink); color: var(--marble); cursor: pointer; }
.private-row button:disabled { opacity: .5; cursor: wait; }
.private-msg { min-height: 1.6em; font-size: 15px; color: var(--bardiglio); }
.private-msg.is-error { color: #8a3b2e; }
.private-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.private-list li { border-bottom: 1px solid var(--line); }
.private-list a { display: grid; gap: 2px; padding: 16px 0; text-decoration: none; }
.private-list b { font-family: var(--serif); font-weight: 400; font-size: 24px; }
.private-list span { font-size: 15px; color: var(--bardiglio); }
.private-list a:hover b { color: var(--bronze); }

/* Phone: each block gets its own rhythm */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .menu-btn { display: block; position: relative; z-index: 2; }
  .nav { position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 0 var(--gutter); background: var(--marble); color: var(--ink); font-family: var(--serif); font-size: 40px; visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility .3s; }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav-private { margin-top: 18px; padding: 6px 18px; font-size: 24px; }
  .site-header.menu-open { color: var(--ink); }

  /* Hero: big wordmark on top, text at the bottom */
  .hero-mark { font-size: 21vw; text-align: left; margin-top: 4vh; line-height: .88; }
  .hero-title { font-size: 30px; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-sub { font-size: 15px; }
  .hero-caption { text-align: left; }

  /* ZEM film: tall, text at the bottom */
  .zem-film { height: 88svh; }
  .zem-film-shade { background: linear-gradient(to top, rgba(18,20,19,.75) 0%, rgba(18,20,19,.15) 60%); }
  .zem-film-text { right: var(--gutter); }

  /* Facts: a two-column ledger */
  .zem-facts { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .zem-facts div:last-child { grid-column: 1 / -1; }

  .zem-scope { padding-block: 56px; }
  .zem-scope p { font-size: 22px; }


  /* Mosaic: collage, not a column */
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 22vw; gap: 8px; }
  .m-a { grid-column: 1 / -1; grid-row: 1 / span 3; }
  .m-b { grid-column: 1 / 4; grid-row: 4 / span 4; }
  .m-c { grid-column: 4 / 7; grid-row: 4 / span 2; }
  .m-e { grid-column: 4 / 7; grid-row: 6 / span 2; }
  .m-d { grid-column: 1 / -1; grid-row: 8 / span 2; }
  .m-f { display: block; grid-column: 1 / -1; grid-row: 10 / span 3; }


  /* Spaces: each film fills the phone, details follow as a collage */
  .space, .space.small { grid-template-columns: 1fr; padding: 0; gap: 18px; }
  .space > video, .space.flip > video, .space > .space-hero, .space.flip > .space-hero { order: 0; width: 100%; max-height: 86svh; justify-self: stretch; }
  .space-text { padding: 0 var(--gutter); }
  .space-pics { margin-top: 8px; }
  .space.small { grid-template-columns: 5fr 7fr; padding: 0 var(--gutter); gap: 14px; align-items: end; }
  .space.small > video { width: 100%; }
  .space.small .space-text { padding: 0; }
  .space.small .space-pics { display: none; }
  .space-duo { grid-template-columns: 1fr 1fr; gap: 8px; }
  .space-duo .space-text { grid-column: 1 / -1; padding: 0; }
  .space-duo > :last-child { margin-bottom: 48px; }
  .space-cabins { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 24vw; gap: 8px; }
  .space-cabins .space-text { grid-column: 1 / -1; grid-row: auto; padding: 0 0 8px; }
  .c-a { grid-column: 1 / -1; grid-row: 2 / span 4; }
  .c-b { grid-column: 1 / 4; grid-row: 6 / span 3; }
  .c-c { grid-column: 4 / 7; grid-row: 6 / span 3; }
  .c-d { grid-column: 1 / -1; grid-row: 9 / span 4; }
  .space-pair { margin-top: -64px; gap: 8px; }
  .space-pair.tall { margin-top: 0; grid-template-columns: 3fr 2fr; }
  .space-pair.trio { grid-template-columns: 1fr 1fr; }
  .space-pair.trio img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .bleed video { height: 70svh; }
  .space-lobby video { object-position: 72% center; }

  /* Reels: phone-native vertical films */
  .reel { width: 64vw; }

  /* Full-bleed figures */

  .bleed img { height: 78svh; }

  .podcast { grid-template-columns: 1fr; padding-block: 64px; gap: 24px; }

  /* Scale: full-bleed image per step, number overlaid */
  .scale { height: auto; }
  .scale-sticky { position: static; height: auto; display: block; padding: 64px 0; }
  .scale-text { display: block; }
  .scale-intro { text-align: left; max-width: none; padding: 0 var(--gutter); }
  .scale-num, .scale-media { display: none; }
  .scale-steps { display: block; margin-top: 18px; border: 0; }
  .scale-steps li { color: var(--ink); padding: 0 0 40px; border: 0; display: grid; }
  .scale-steps li::before { position: relative; top: auto; right: auto; order: 1; z-index: 1; margin: -64px var(--gutter) 0; font-size: 64px; line-height: 1; color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
  .step-img { display: block; order: 0; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
  .scale-steps h3 { order: 2; padding: 16px var(--gutter) 0; font-size: 18px; }
  .scale-steps p { order: 3; max-height: none; opacity: 1; margin: 4px var(--gutter) 0; }
  .scale-steps li.is-active::after { display: none; }

  /* More work: horizontal cards */
  .work { padding-inline: 0; }
  .work .section-head { padding: 0 var(--gutter); }
  .work-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); gap: 12px; padding: 0 var(--gutter) 12px; }
  .card { flex: 0 0 72vw; scroll-snap-align: start; }
  .card-img { aspect-ratio: 3 / 4 !important; }
  .card-cap { flex-direction: column; gap: 0; }
  .card-meta { text-align: left; }

  /* Objects: tight 2-column grid */
  .objects-grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .objects-grid li:first-child { grid-column: 1 / -1; }
  .objects-grid li:first-child img { aspect-ratio: 4 / 3; }

  .sheets figure { width: 86vw; }
  .atelier { grid-template-columns: 1fr; }
  .atelier-facts div, .contact-list div { grid-template-columns: 1fr; gap: 2px; }

  .viewer-body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .viewer-info { border-right: 0; border-bottom: 1px solid var(--line); gap: 14px; }
  .viewer-count { display: none; }
  .viewer-strip { flex-direction: column; overflow: visible; scroll-snap-type: none; height: auto; }
  .viewer-strip figure { height: auto; width: 100%; }
  .viewer-strip img { width: 100%; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
