/* Tootega Models — site styles. No build step; plain CSS. */

@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrumentserif-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrumentserif-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-normal.woff2') format('woff2');
  font-weight: 300 700; font-style: normal; font-display: swap;
}

/* Themes: Claro (light, the default), Escuro (dark) and Âmbar (amber).
   <html data-theme="..."> is set by the inline script in the page head. */
:root {
  color-scheme: light;
  --paper: #f5f0e8;
  --paper-2: #ebe4d8;
  --ink: #16120e;
  --ink-soft: #5f574d;
  --line: rgba(22, 18, 14, .14);
  --accent: #9a5a3a;
  --night: #14110e;
  --night-ink: #f3ede3;
  --night-soft: #b0a698;
  --night-accent: #dba678;

  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --wide: 92rem;
  --radius: 14px;
  --gap: clamp(.5rem, 1.1vw, 1rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme='dark'] {
  color-scheme: dark;
  --paper: #110f0d;
  --paper-2: #1a1714;
  --ink: #f3ede3;
  --ink-soft: #a89f92;
  --line: rgba(243, 237, 227, .16);
  --accent: #dba678;
  --night: #1d1915;
}

[data-theme='amber'] {
  color-scheme: dark;
  --paper: #1b1107;
  --paper-2: #26180a;
  --ink: #fbe6bd;
  --ink-soft: #c9a56c;
  --line: rgba(251, 230, 189, .18);
  --accent: #f5a524;
  --night: #100a04;
  --night-ink: #fbe6bd;
  --night-soft: #c9a56c;
  --night-accent: #f5a524;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--paper); }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 999px;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */
h1, h2, .profile-name {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: .95;
  text-wrap: balance;
}
h1 { font-size: clamp(3.1rem, 8.6vw, 8.25rem); }
h2 { font-size: clamp(2.5rem, 6.2vw, 5.5rem); }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 38em; text-wrap: pretty; }
.eyebrow, .index {
  font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.index { display: flex; align-items: center; gap: .9rem; }
.index span:first-child { color: var(--accent); }
.index span:first-child::after {
  content: ''; display: inline-block; width: 2.5rem; height: 1px; background: currentColor;
  vertical-align: middle; margin-left: .9rem; opacity: .6;
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: 0 1.75rem; border-radius: 999px;
  font-size: .95rem; font-weight: 500; letter-spacing: .01em;
  border: 1px solid var(--ink);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid::after { content: '→'; transition: transform .3s var(--ease); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-solid:hover::after { transform: translateX(4px); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: scale(.98); }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 4.25rem; padding: 0 var(--pad);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.top.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: baseline; gap: .5rem; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; line-height: 1; letter-spacing: -.01em; }
.brand-tag { font-size: .68rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.nav { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); font-size: .9rem; }
.nav a { position: relative; padding: .5rem 0; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.top-tools { display: flex; align-items: center; gap: .75rem; }
.themes { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.themes button {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; height: 2rem; padding: 0 .7rem 0 .5rem; border-radius: 999px;
  font-size: .78rem; font-weight: 500; color: var(--ink-soft); transition: background .25s, color .25s;
}
.themes button:hover { color: var(--ink); }
.themes button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.sw { width: .95rem; height: .95rem; border-radius: 50%; border: 1px solid rgba(128, 128, 128, .55); flex: none; }
.sw-light { background: linear-gradient(135deg, #f5f0e8 50%, #9a5a3a 50%); }
.sw-dark { background: linear-gradient(135deg, #110f0d 50%, #dba678 50%); }
.sw-amber { background: linear-gradient(135deg, #1b1107 50%, #f5a524 50%); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  min-width: 2.5rem; height: 2rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .1em;
  color: var(--ink-soft); transition: background .25s, color .25s;
}
.lang button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; width: 2.75rem; height: 2.75rem; position: relative; border-radius: 999px; }
.menu-btn span {
  position: absolute; left: .7rem; right: .7rem; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-btn span:first-child { top: 1.1rem; }
.menu-btn span:last-child { top: 1.6rem; }
.menu-open .menu-btn span:first-child { top: 1.35rem; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 1.35rem; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 4.5rem); align-items: end;
  max-width: var(--wide); margin: 0 auto;
  min-height: min(100svh, 58rem);
  padding: 6.5rem var(--pad) clamp(2.5rem, 5vw, 4.5rem);
}
/* The small picture juts into the text column: keep the paragraph clear of it. */
.hero .lead { max-width: min(38em, 100% - 4.5rem); }
.hero-text { display: grid; gap: clamp(1.25rem, 2.2vw, 2rem); padding-bottom: clamp(0rem, 2vw, 2rem); }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: .5rem 1.75rem;
  padding-top: 1.5rem; margin-top: .5rem; border-top: 1px solid var(--line);
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}
.hero-facts span { color: var(--accent); margin-right: .35rem; }
.hero-art { position: relative; }
.hero-main {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3 / 4; max-height: calc(100svh - 9rem); margin-left: auto; width: 100%;
  background: var(--paper-2);
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.8s var(--ease) both; }
.hero-main figcaption {
  position: absolute; left: 1rem; bottom: 1rem; display: flex; gap: .6rem; align-items: baseline;
  padding: .5rem .9rem; border-radius: 999px;
  background: rgba(20, 17, 14, .5); color: #f3ede3;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .75rem; letter-spacing: .06em;
}
.hero-main figcaption span:first-child { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 0; }
.hero-side {
  position: absolute; left: clamp(-4.5rem, -5vw, -1.5rem); bottom: clamp(3.5rem, 7vw, 6rem);
  width: 38%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: calc(var(--radius) - 4px);
  border: 5px solid var(--paper); background: var(--paper-2);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .45);
}
.hero-side img { width: 100%; height: 100%; object-fit: cover; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 1.1rem 0; }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee-track span {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.5rem); white-space: nowrap;
  padding: 0 clamp(1rem, 2.2vw, 2rem); display: inline-flex; align-items: center; gap: clamp(2rem, 4.4vw, 4rem);
}
.marquee-track span::after { content: '✦'; font-style: normal; font-size: .45em; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 9.5rem) var(--pad); }
.section > * { max-width: var(--wide); margin-inline: auto; }
.section-tint { background: var(--paper-2); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { max-width: 14em; }
.section-lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--ink-soft); max-width: 36em; }

/* ---------- Cast ---------- */
.cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3 / 4; background: var(--paper-2); isolation: isolate;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); z-index: -2; }
.card:not(.card-soon)::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12, 10, 8, .72), rgba(12, 10, 8, 0) 46%);
}
a.card:hover img { transform: scale(1.05); }
.chip {
  position: absolute; top: 1rem; left: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .8rem; border-radius: 999px; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--ink-soft);
}
.chip-live { background: rgba(20, 17, 14, .45); color: #f3ede3; border-color: rgba(243, 237, 227, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chip-live::before { content: ''; width: .45rem; height: .45rem; border-radius: 50%; background: #8fd6a4; box-shadow: 0 0 0 4px rgba(143, 214, 164, .22); }
.card-foot { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.1rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.card-name { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1; color: #f6f0e6; }
.card-more { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #f6f0e6; display: inline-flex; gap: .4rem; padding-bottom: .35rem; white-space: nowrap; }
.card-more::after { content: '→'; transition: transform .3s var(--ease); }
a.card:hover .card-more::after { transform: translateX(4px); }
.card-soon { border: 1px dashed var(--line); background: transparent; display: grid; place-items: center; }
.card-soon .card-name { color: var(--ink); font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.05; }
.soon-mark { font-family: var(--serif); font-style: italic; font-size: clamp(6rem, 13vw, 12rem); line-height: 1; color: var(--accent); opacity: .28; }

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.profile-art { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 5; background: var(--paper); }
.profile-art img { width: 100%; height: 100%; object-fit: cover; }
.profile-text { display: grid; gap: clamp(1.1rem, 2vw, 1.75rem); }
.profile-name { font-size: clamp(4.5rem, 12vw, 11rem); line-height: .82; letter-spacing: -.035em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: .5rem; border-top: 1px solid var(--line); }
.facts div { padding: .95rem 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 1.25rem; }
.facts dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.2; margin-top: .2rem; }

.portfolio { margin-top: clamp(3.5rem, 8vw, 7rem); }
.portfolio-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.portfolio-head h3 { font-size: clamp(2rem, 4vw, 3.25rem); }
.filters { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; min-height: 2.6rem; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-soft); transition: background .25s, color .25s, border-color .25s;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gallery {
  container-type: inline-size;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--gap);
  grid-auto-rows: calc((100cqw - 3 * var(--gap)) / 4 * 1.25);
}
.tile {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) - 4px); background: var(--paper);
  cursor: zoom-in; display: block; width: 100%; height: 100%; text-align: left;
  animation: rise .7s var(--ease) both;
}
.tile.wide { grid-column: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.045); }
.tile-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .85rem;
  background: linear-gradient(to top, rgba(12, 10, 8, .7), rgba(12, 10, 8, 0));
  color: #f6f0e6; font-family: var(--serif); font-size: 1.2rem; line-height: 1.15;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Manifesto ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pillar { padding: clamp(1.5rem, 2.4vw, 2.25rem) clamp(1rem, 2vw, 2rem) clamp(1.5rem, 2.4vw, 2.25rem) 0; display: grid; gap: .8rem; align-content: start; }
.pillar + .pillar { border-left: 1px solid var(--line); padding-left: clamp(1rem, 2vw, 2rem); }
.pillar-n { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--accent); }
.pillar p, .steps p { color: var(--ink-soft); font-size: .98rem; }
.uses { margin-top: clamp(2.5rem, 5vw, 4.5rem); display: grid; gap: 1.1rem; }
.uses-title { font-size: .75rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.uses ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.uses li { font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 1.9rem); line-height: 1; padding: .7rem 1.3rem; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); counter-reset: none; }
.steps li { border-top: 1px solid var(--ink); padding-top: 1.25rem; display: grid; gap: .7rem; align-content: start; }
.step-n { font-size: .75rem; letter-spacing: .18em; color: var(--accent); font-weight: 500; }

/* ---------- Contact ---------- */
.contact {
  background: var(--night); color: var(--night-ink);
  padding: clamp(5rem, 12vw, 11rem) var(--pad);
  display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); justify-items: center; text-align: center;
}
.contact .index { color: var(--night-soft); }
.contact .index span:first-child { color: var(--night-accent); }
.contact h2 { font-size: clamp(3rem, 8.5vw, 8rem); max-width: 11em; }
.contact h2 em { color: var(--night-accent); }
.contact .lead { color: var(--night-soft); }
.contact .actions { justify-content: center; margin-top: .75rem; }
.contact .btn-solid { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.contact .btn-solid:hover { background: var(--night-accent); border-color: var(--night-accent); }
.contact-soon { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--night-soft); border: 1px solid rgba(243, 237, 227, .2); border-radius: 999px; padding: .8rem 1.4rem; }

/* ---------- Footer ---------- */
.foot {
  background: var(--night); color: var(--night-soft); border-top: 1px solid rgba(243, 237, 227, .12);
  padding: 2rem var(--pad) calc(2rem + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: center;
  font-size: .82rem;
}
.foot .brand-name { color: var(--night-ink); }
.foot .brand-tag { color: var(--night-accent); }
.foot-note { max-width: 46em; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 8, 7, .94); color: #f3ede3;
}
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; animation: fade .3s var(--ease); }
.lightbox::backdrop { background: rgba(10, 8, 7, .6); }
.lightbox figure { display: grid; gap: 1rem; justify-items: center; padding: 3.5rem 0 1.5rem; max-height: 100dvh; touch-action: pan-y; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 9rem); width: auto; border-radius: 8px; object-fit: contain; }
.lightbox figcaption { display: flex; gap: 1.25rem; align-items: baseline; font-family: var(--serif); font-size: 1.35rem; }
#lb-count { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; color: #b0a698; }
.lb-btn {
  width: 3.25rem; height: 3.25rem; margin: 0 clamp(.25rem, 1.5vw, 1.5rem); border-radius: 50%;
  border: 1px solid rgba(243, 237, 227, .25); color: #f3ede3; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: background .25s, color .25s;
}
.lb-btn:hover { background: #f3ede3; color: #14110e; }
.lb-close { position: absolute; top: 1rem; right: 1rem; margin: 0; z-index: 2; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reveal on scroll (only with JavaScript) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(3) { border-left: 0; padding-left: 0; }
  .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); }
  /* Theme names give way to their colour swatches. */
  .themes button { padding: 0; width: 2rem; justify-content: center; }
  .themes button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav { gap: 1.1rem; font-size: .85rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - 2 * var(--gap)) / 3 * 1.25); }
}

/* ---------- Phone ---------- */
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: -1; background: var(--paper);
    flex-direction: column; justify-content: center; gap: .25rem; padding: 5rem var(--pad) 3rem;
    font-family: var(--serif); font-size: clamp(2.6rem, 12vw, 4rem); line-height: 1.15;
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav a::after { display: none; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  /* The language switch moves into the open menu; the theme switch stays in the bar. */
  .lang {
    position: fixed; left: var(--pad); bottom: calc(2rem + env(safe-area-inset-bottom));
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .menu-open .lang { opacity: 1; visibility: visible; }
  .lang button { min-width: 3.25rem; height: 2.5rem; }
  .top-tools { gap: .35rem; }
  .menu-open { overflow: hidden; }
  .menu-open .top { background: var(--paper); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 6.5rem; gap: 2.5rem; align-items: start; }
  .hero .lead { max-width: 38em; }
  .hero-main { aspect-ratio: 4 / 5; max-height: none; }
  .hero-side { left: auto; right: .75rem; bottom: -1.75rem; width: 34%; border-width: 4px; }
  .hero-art { margin-bottom: 1.75rem; }
  .btn { flex: 1 1 auto; }

  .cast {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); max-width: none;
  }
  .cast::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; }

  .profile { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc((100cqw - var(--gap)) / 2 * 1.3); }
  .tile-cap { opacity: 1; transform: none; font-size: 1rem; padding: 2rem .7rem .6rem; }

  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar + .pillar { border-left: 0; padding-left: 0; padding-right: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); }

  .foot { grid-template-columns: minmax(0, 1fr); }
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); padding: 0 .75rem; }
  .lightbox figure { grid-row: 1; padding-bottom: 5.5rem; }
  .lb-prev, .lb-next { position: absolute; bottom: 1.25rem; margin: 0; }
  .lb-prev { left: calc(50% - 4rem); }
  .lb-next { right: calc(50% - 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
