/* ==========================================================================
   Mackenna House Media
   Warm black, bone white and one brass accent reserved for the main action.
   Square corners throughout. Show the work; say little.
   ========================================================================== */

@property --mx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

:root {
  --ink: #0E0D0C;
  --ink-2: #171614;
  --paper: #F3F0EA;
  --paper-2: #E7E2D9;

  --on-ink: #F3F0EA;
  --on-ink-2: rgba(243, 240, 234, .72);
  --on-ink-3: rgba(243, 240, 234, .46);
  --line-ink: rgba(243, 240, 234, .16);

  --on-paper: #0E0D0C;
  --on-paper-2: rgba(14, 13, 12, .66);
  --on-paper-3: rgba(14, 13, 12, .44);
  --line-paper: rgba(14, 13, 12, .14);

  --brass: #C9A77A;

  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wordmark: "Montserrat", "Inter", Arial, sans-serif;

  --pad: clamp(20px, 3.3vw, 56px);
  --edge: max(var(--pad), calc((100vw - 1720px) / 2 + var(--pad)));
  --nav-h: 80px;
  --ease: cubic-bezier(.2, .75, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Film grain. A real element, not body::after, so iPhone Safari can see the header underneath it */
.grain {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
p, h1, h2, h3, dl, dd, figure, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 500; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.wrap { width: 100%; max-width: 1720px; margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 500; padding: 12px 16px; background: var(--paper); color: var(--ink); }
.skip:focus { top: 12px; }

[data-theme="dark"] { background: var(--ink); color: var(--on-ink); }
[data-theme="light"] { background: var(--paper); color: var(--on-paper); }

.label { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-3); }
[data-theme="light"] .label, .drawer .label { color: var(--on-paper-3); }

.sec-head { display: flex; flex-direction: column; gap: 18px; }
.sec-title { max-width: 18ch; font-family: var(--display); font-size: clamp(2.2rem, 4.6vw, 5rem); line-height: .98; letter-spacing: -.045em; }

/* ---------- Buttons ---------- */
/* Fixed-size buttons: the hover only changes colour (a fill rising from below) — nothing moves. */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 32px;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.005em;
  white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--brass { background: var(--brass); color: var(--ink); }
.btn--brass::before { background: var(--paper); }
[data-theme="light"] .btn--brass::before, .drawer .btn--brass::before { background: var(--ink); }
[data-theme="light"] .btn--brass:hover, .drawer .btn--brass:hover { color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper::before { background: var(--brass); }
.btn--ghost { border: 1px solid rgba(243, 240, 234, .3); color: var(--on-ink); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover { color: var(--ink); border-color: var(--paper); }

.link { position: relative; display: inline-block; padding: 6px 0; font-size: 15px; font-weight: 500; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: .5; transform-origin: right; transition: transform .6s var(--ease); }
.link:hover::after { transform: scaleX(0); }


/* ---------- Intro ---------- */
.intro { display: none; }
.js .intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--ink); clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-io); }
.intro__mark { width: 84px; fill: transparent; stroke: var(--paper); stroke-width: 6; stroke-dasharray: 4200; stroke-dashoffset: 4200; animation: draw 1.1s var(--ease-io) forwards, fillIn .4s ease .85s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillIn { to { fill: var(--paper); } }
.intro.is-out { clip-path: inset(0 0 100% 0); }
.intro.is-gone { display: none; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; color: var(--on-ink); transition: transform .7s var(--ease), color .4s, background-color .4s; }
.nav[data-theme-ui="light"] { color: var(--on-paper); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-solid { background: rgba(14, 13, 12, .78); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.nav.is-solid[data-theme-ui="light"] { background: rgba(243, 240, 234, .84); }
/* Phones and tablets: a solid header (no see-through blur). iPhone Safari paints the strip above the header in the header's own colour, but only when it is one solid colour */
@media (hover: none) {
  .nav.is-solid { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-solid[data-theme-ui="light"] { background: var(--paper); }
}
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand__mark { flex: none; width: 38px; fill: currentColor; }
.brand__name { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.brand__name span { font-weight: 400; opacity: .55; }
.nav__links { display: flex; gap: clamp(20px, 2.4vw, 40px); font-size: 15px; }
.nav__links a { position: relative; padding: 6px 0; opacity: .78; transition: opacity .3s; }
.nav__links a:hover, .nav__links a.is-current { opacity: 1; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav__links a.is-current::after { transform: scaleX(1); }
.lang { display: flex; align-items: center; font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.lang[hidden] { display: none; }
.lang span { opacity: .35; }
.lang button { padding: 12px 6px; opacity: .55; transition: opacity .3s; }
.lang button:hover, .lang button[aria-pressed="true"] { opacity: 1; }
.nav__menu { display: none; width: 44px; height: 44px; position: relative; }
.nav__menu i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__menu i:nth-of-type(1) { top: 17px; }
.nav__menu i:nth-of-type(2) { top: 26px; }
.nav.menu-open .nav__menu i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.nav.menu-open .nav__menu i:nth-of-type(2) { top: 21px; transform: rotate(-45deg); }
.nav.menu-open { color: var(--on-ink); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu { position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 24px) 0 calc(32px + env(safe-area-inset-bottom)); }
.menu[hidden] { display: none; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { display: block; font-family: var(--display); font-size: clamp(2.4rem, 11vw, 4rem); letter-spacing: -.045em; line-height: 1.08; padding: 8px 0; border-bottom: 1px solid var(--line-ink); animation: menuIn .7s var(--ease) both; }
.menu__links a:nth-child(2) { animation-delay: .05s; }
.menu__links a:nth-child(3) { animation-delay: .1s; }
.menu__foot { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.menu__foot .btn { width: 100%; }
@keyframes menuIn { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Reveal helpers ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(108%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i) * 30ms); }
.js [data-split].is-in .w > span { transform: none; }

/* ============ HERO ============ */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: #000; }
.hero__media { position: absolute; inset: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,.06) 40%, rgba(0,0,0,.8) 100%), linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.12) 45%, rgba(0,0,0,0) 70%), rgba(0,0,0,.08); } /* v8: darker bottom-left so the copy reads over bright aerials */
.hero__content { position: absolute; left: 0; right: 0; bottom: clamp(44px, 8vh, 92px); margin-inline: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; will-change: transform, opacity; }
.hero__title { font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 6.4vw, 7.4rem); line-height: .88; letter-spacing: -.055em; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.hero__title .ln > span { display: block; }
.js .hero__title .ln > span { transform: translateY(106%); transition: transform 1.3s var(--ease); }
.js .hero__title .ln:nth-child(2) > span { transition-delay: .09s; }
.is-ready .hero__title .ln > span { transform: none; }
.hero__sub { max-width: 24ch; margin-top: clamp(20px, 2.8vh, 32px); font-family: var(--display); font-size: clamp(1.4rem, 2.3vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; color: var(--on-ink); }
.hero__ctas { display: flex; align-items: center; gap: 30px; margin-top: clamp(24px, 3.4vh, 38px); flex-wrap: wrap; }
.hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 22px; flex: none; }
.cue { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--on-ink-2); }
.cue i { position: relative; width: 1px; height: 40px; overflow: hidden; background: rgba(243, 240, 234, .2); }
.cue i::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.hero__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(243, 240, 234, .14); }
.hero__progress span { display: block; height: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.js .hero .rv { transition-delay: .5s; }
.js .hero .hero__ctas.rv { transition-delay: .6s; }
.js .hero .hero__side.rv { transition-delay: .75s; }

/* ============ WHY IT MATTERS ============ */
.statement { padding: clamp(110px, 17vh, 200px) 0 clamp(110px, 17vh, 200px); }
.mf { max-width: 17ch; margin-top: clamp(22px, 3vh, 34px); font-family: var(--display); font-weight: 500; font-size: clamp(2.5rem, 5.4vw, 6.2rem); line-height: .98; letter-spacing: -.048em; text-wrap: balance; }
.mf .w2 { opacity: .13; transition: opacity .45s ease; }
.mf .w2.on { opacity: 1; }

/* ============ 02 · SERVICES — expanding panels ============ */
.services { padding: clamp(100px, 14vh, 160px) 0 clamp(90px, 13vh, 150px); }
.services .sec-head { margin-bottom: clamp(36px, 5.5vh, 60px); }
.gallery { --gh: clamp(560px, 78vh, 860px); display: flex; gap: 10px; height: var(--gh); }
.gp { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: var(--ink-2); transition: flex-grow .6s var(--ease), flex-basis .6s var(--ease); }
.gp.is-active { flex-grow: 3.6; }
/* Vertical films and portrait photos open to their real proportions — nothing stretched, no empty space */
.gp--portrait.is-active { flex: 0 0 calc(var(--gh) * 9 / 16); }
.gp--imagery.is-active { flex: 0 0 calc(var(--gh) * 2 / 3); }
/* Text is set at the open panel's final width, so it never re-wraps while the panel slides open */
.gp--portrait .gp__info { width: calc(var(--gh) * 9 / 16 - 2 * clamp(22px, 2.4vw, 40px)); }
.gp--imagery .gp__info { width: calc(var(--gh) * 2 / 3 - 2 * clamp(22px, 2.4vw, 40px)); }
.gp--portrait .gp__info h3, .gp--imagery .gp__info h3 { font-size: clamp(2.2rem, 3.4vw, 3.9rem); }
.gp__media { position: absolute; inset: 0; }
.gp__media > img, .gp__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease), opacity .7s var(--ease); }
.gp.is-active .gp__media > video, .gp.is-active .gp__media > img.is-on, .gp.is-active .social__bg { transform: none; }
.gp__slides img { opacity: 0; }
.gp__slides img.is-on { opacity: 1; }
.gp::before { content: ""; position: absolute; inset: 0; z-index: 4; background: rgba(8, 7, 6, .5); pointer-events: none; transition: opacity .5s var(--ease); }
.gp::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 48%); }
.gp.is-active::before { opacity: 0; }
.gp:not(.is-active):hover::before { opacity: .55; }
.gp__hit { position: absolute; inset: 0; z-index: 6; }
.gp.is-active .gp__hit { pointer-events: none; }
.gp__no { position: absolute; top: 22px; left: 24px; z-index: 5; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--on-ink-2); }
.gp__v { position: absolute; left: 20px; bottom: 26px; z-index: 5; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-size: clamp(1.4rem, 1.9vw, 2rem); letter-spacing: -.02em; white-space: nowrap; transition: opacity .5s var(--ease); }
.gp.is-active .gp__v { opacity: 0; }
.gp__info { position: absolute; left: clamp(22px, 2.4vw, 40px); bottom: clamp(22px, 2.6vw, 40px); z-index: 5; width: min(520px, 21vw); opacity: 0; transform: translateY(18px); transition: opacity .2s var(--ease), transform .9s var(--ease); pointer-events: none; }
.gp.is-active .gp__info { opacity: 1; transform: none; transition-duration: .5s, .9s; transition-delay: .35s; }
.gp__info h3 { font-family: var(--display); font-size: clamp(2.4rem, 4.2vw, 4.6rem); line-height: .95; letter-spacing: -.045em; white-space: nowrap; }
.gp__info p { max-width: 36ch; margin-top: 14px; font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.45; color: var(--on-ink-2); }
.gp__info ul { list-style: none; padding: 0; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.gp__info li { padding: 6px 11px; border: 1px solid rgba(243, 240, 234, .26); font-size: 12px; letter-spacing: .02em; }
.gp__bar { position: absolute; left: 0; right: 0; top: 0; z-index: 5; height: 2px; background: rgba(243, 240, 234, .16); opacity: 0; transition: opacity .4s; }
.gp.is-active .gp__bar { opacity: 1; }
.gp__bar i { display: block; height: 100%; background: var(--paper); transform-origin: left; transform: scaleX(0); }

/* Social & ads */
.social::after { content: ""; position: absolute; inset: 0; background: rgba(10, 9, 8, .38); }
.social__cards { position: absolute; z-index: 2; top: 24%; right: calc(8% + 39% + 28px); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; opacity: 0; transform: translateX(-14px); transition: opacity .8s var(--ease), transform 1.1s var(--ease); }
.gp.is-active .social__cards { opacity: 1; transform: none; transition-delay: .6s; }
.scard { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: rgba(14, 13, 12, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(243, 240, 234, .14); font-size: 13px; color: var(--on-ink); white-space: nowrap; }
.scard span { color: var(--brass); font-weight: 500; }
.scard i { width: 6px; height: 6px; background: var(--brass); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- iPhone (drawn in CSS) ---------- */
.iphone { position: absolute; z-index: 2; aspect-ratio: 71.6 / 147.6; container-type: inline-size; border-radius: 15.5% / 7.5%; background: #0a0a0a; box-shadow: 0 0 0 1.5px #3b3a3d, 0 0 0 2.5px #121212, 0 50px 90px -35px rgba(0, 0, 0, .85); }
.iphone__btn { position: absolute; left: -1.2cqw; width: 1.2cqw; background: #2b2a2d; border-radius: 1cqw 0 0 1cqw; }
.iphone__btn--a { top: 17%; height: 5.5%; }
.iphone__btn--v1 { top: 25%; height: 10%; }
.iphone__btn--v2 { top: 37%; height: 10%; }
.iphone__btn--p { left: auto; right: -1.2cqw; top: 29%; height: 15%; border-radius: 0 1cqw 1cqw 0; }
.iphone__screen { position: absolute; inset: 2.1cqw; overflow: hidden; border-radius: 13.6cqw; background: #fff; color: #111; container-type: inline-size; font-family: var(--text); }
.iphone__status { display: flex; justify-content: space-between; align-items: center; height: 13.5cqw; padding: 1.4cqw 7cqw 0 10cqw; font-size: 4.1cqw; font-weight: 600; letter-spacing: -.01em; }
.iphone__icons { display: flex; align-items: center; gap: 1.5cqw; }
.iphone__icons svg { height: 3.1cqw; width: auto; fill: currentColor; }
.iphone__icons svg:last-child { height: 3.3cqw; }
.iphone__island { position: absolute; z-index: 8; top: 2.9cqw; left: 50%; width: 31cqw; height: 9.2cqw; transform: translateX(-50%); background: #000; border-radius: 99px; }
.iphone__home { position: absolute; z-index: 8; bottom: 2.2cqw; left: 50%; width: 35cqw; height: 1.3cqw; transform: translateX(-50%); background: #111; border-radius: 99px; }
.iphone__notif { position: absolute; z-index: 9; top: 14cqw; left: 2.8cqw; right: 2.8cqw; display: grid; grid-template-columns: 9.6cqw 1fr auto; align-items: center; gap: 2.8cqw; padding: 3cqw 3.6cqw; background: rgba(246, 245, 243, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-radius: 6.6cqw; box-shadow: 0 2.5cqw 7cqw rgba(0, 0, 0, .22); font-size: 3.3cqw; line-height: 1.28; color: #222; transform: translateY(-160%); opacity: 0; transition: transform .8s var(--ease), opacity .5s var(--ease); }
.iphone__notif.is-on { transform: none; opacity: 1; }
.iphone__app { width: 9.6cqw; height: 9.6cqw; border-radius: 2.3cqw; background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.8 11 12 5' fill='none' stroke='%230E0D0C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 60%; }
.iphone__ntxt em { display: block; font-style: normal; font-size: 2.7cqw; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; }
.iphone__ntxt b { display: block; font-weight: 600; color: #111; }
.iphone__notif time { align-self: start; font-size: 2.8cqw; color: #8a8a8a; }

.iphone--feed { right: 8%; top: 50%; height: 86%; transform: translateY(-46%); opacity: .7; transition: transform 1.4s var(--ease), opacity 1s var(--ease); }
.gp.is-active .iphone--feed { transform: translateY(-50%); opacity: 1; transition-delay: .25s; }
.ig__top { display: flex; justify-content: space-between; align-items: center; padding: 1cqw 6cqw 3cqw; font-size: 5.2cqw; font-weight: 600; }
.ig__dots { font-size: 4cqw; letter-spacing: .1em; }
.ig__head { display: grid; grid-template-columns: 21cqw 1fr 1fr 1fr; align-items: center; gap: 2cqw; padding: 1cqw 5cqw; }
.ig__avatar { display: block; width: 21cqw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 .7cqw #fff, 0 0 0 1.3cqw var(--brass); }
.ig__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ig__stat { display: flex; flex-direction: column; align-items: center; font-size: 3.2cqw; color: #555; line-height: 1.3; }
.ig__stat b { font-size: 4.4cqw; color: #111; font-weight: 600; font-variant-numeric: tabular-nums; }
.ig__stat b.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { color: #A9804F; transform: translateY(-.6cqw); } }
.ig__bio { padding: 2cqw 5cqw 3cqw; font-size: 3.4cqw; line-height: 1.35; color: #333; }
.ig__bio b { display: block; color: #111; font-weight: 600; }
.ig__upload { position: relative; height: 0; overflow: hidden; display: flex; align-items: center; padding: 0 5cqw; font-size: 3.2cqw; color: #555; transition: height .5s var(--ease); }
.ig__upload.is-on { height: 8cqw; }
.ig__upload i { position: absolute; left: 0; right: 0; bottom: 0; height: .8cqw; background: #eee; }
.ig__upload i::after { content: ""; position: absolute; inset: 0; background: var(--brass); transform-origin: left; transform: scaleX(var(--up, 0)); }
.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6cqw; }
.ig__tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #eee; }
.ig__tile img { width: 100%; height: 100%; object-fit: cover; }
.ig__tile.is-new { animation: tileIn .9s var(--ease) both; }
.ig__tile.is-new::after { content: "♥"; position: absolute; left: 50%; top: 50%; color: #fff; font-size: 9cqw; text-shadow: 0 1cqw 3cqw rgba(0,0,0,.35); transform: translate(-50%, -50%) scale(0); animation: heart 1.4s var(--ease) .5s both; }
@keyframes tileIn { from { opacity: 0; transform: scale(.7); } }
@keyframes heart { 30% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 70% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }

/* ============ 03 · SELECTED WORK — a reel that moves sideways ============ */
.scene { position: relative; }
.scene__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.work { height: 400vh; }
.work__head { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + clamp(8px, 2.5vh, 32px)); margin-inline: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.work .sec-head { gap: 14px; }
.work .sec-title { font-size: clamp(2rem, 3.6vw, 3.9rem); max-width: none; }
.work__hint { margin-top: 4px; font-size: 13px; letter-spacing: .08em; color: var(--on-ink-3); transition: opacity .5s var(--ease); }
.work__hint span { display: inline-flex; align-items: center; gap: 10px; }
.work__hint i { font-style: normal; animation: nudge 1.8s var(--ease-io) infinite; }
.work__hint-touch { display: none !important; }
.work__hint-touch i { animation-name: nudgeDown; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }
@keyframes nudgeDown { 0%, 100% { transform: none; } 50% { transform: translateY(4px); } }
.work.is-moved .work__hint { opacity: 0; }
html.no-swipe-back, html.no-swipe-back body { overscroll-behavior-x: none; }
/* Phones and tablets: just scroll down */
@media (hover: none) {
  .work__hint-mouse { display: none !important; }
  .work__hint-touch { display: inline-flex !important; }
}
.work__count { flex: none; font-size: 14px; color: var(--on-ink-3); font-variant-numeric: tabular-nums; }
.work__count b { font-weight: 500; color: var(--on-ink); }
.track { position: absolute; left: 0; top: calc(var(--nav-h) + clamp(150px, 22vh, 230px)); bottom: clamp(64px, 10vh, 104px); display: flex; align-items: flex-start; gap: clamp(26px, 3.2vw, 60px); padding-left: var(--edge); padding-right: var(--edge); will-change: transform; }
.fr { flex: none; margin: 0; }
.fr--low { margin-top: 6vh; }
.fr__btn { display: block; cursor: pointer; }
.fr__img { position: relative; display: block; height: 46vh; overflow: hidden; background: var(--ink-2); }
.fr--l .fr__img { height: 52vh; aspect-ratio: 3 / 2; }
.fr--p .fr__img { aspect-ratio: 2 / 3; }
.fr--t .fr__img { height: 54vh; aspect-ratio: 9 / 16; }
.fr__img img, .fr__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.fr__btn:hover .fr__img img, .fr__btn:hover .fr__img video { scale: 1.04; }
.fr figcaption { display: flex; gap: 14px; margin-top: 14px; font-size: 13px; }
.fr figcaption span:first-child { color: var(--brass); font-variant-numeric: tabular-nums; }
.fr figcaption span:last-child { margin-left: auto; color: var(--on-ink-3); }
.track__end { flex: none; align-self: center; width: clamp(280px, 30vw, 460px); padding-left: clamp(10px, 2vw, 40px); }
.track__end-title { font-family: var(--display); font-size: clamp(1.9rem, 3vw, 3.2rem); line-height: 1; letter-spacing: -.04em; }
.track__end-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
.work__bar { position: absolute; left: 0; right: 0; bottom: clamp(26px, 4.5vh, 44px); margin-inline: auto; }
.work__bar span { position: relative; display: block; height: 1px; background: var(--line-ink); }
.work__bar i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ============ 04 · HOW IT WORKS — pauses for three steps ============ */
.how { height: 330vh; background: #EBE7DF; }
.how__grid { height: 100%; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: center; padding-top: calc(var(--nav-h) - 10px); padding-bottom: 20px; }
.how__text { display: flex; flex-direction: column; }
.how__short { display: none; }
.how__title { max-width: 12ch; margin-top: 22px; font-family: var(--display); font-size: clamp(2.2rem, 4.2vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }
.hsteps { list-style: none; padding: 0; margin-top: clamp(28px, 5vh, 56px); border-bottom: 1px solid var(--line-paper); }
.hstep { position: relative; border-top: 1px solid var(--line-paper); }
.hstep__head { display: flex; align-items: baseline; gap: 18px; width: 100%; padding: 22px 0; }
.hstep__no { width: 2.2em; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--on-paper-3); transition: color .5s; }
.hstep__name { font-family: var(--display); font-size: clamp(1.9rem, 2.9vw, 3.1rem); line-height: 1; letter-spacing: -.035em; color: var(--on-paper-3); transition: color .5s var(--ease); }
.hstep.is-active .hstep__name, .hstep__head:hover .hstep__name { color: var(--on-paper); }
.hstep.is-active .hstep__no { color: #A9804F; }
.hstep__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.hstep.is-active .hstep__body { grid-template-rows: 1fr; }
.hstep__body p { min-height: 0; overflow: hidden; max-width: 36ch; padding-left: calc(2.2em * 14 / 18 + 18px); font-size: 1.1rem; line-height: 1.5; color: var(--on-paper-2); opacity: 0; transition: opacity .6s var(--ease); }
.hstep.is-active .hstep__body p { opacity: 1; padding-bottom: 20px; transition-delay: .15s; }
.hstep__bar { position: absolute; left: 0; right: 0; top: -1px; height: 1px; }
.hstep__bar i { display: block; height: 100%; background: var(--on-paper); transform-origin: left; transform: scaleX(var(--p, 0)); }
.how__cta { align-self: flex-start; margin-top: clamp(28px, 4.5vh, 48px); }

.stage { position: relative; height: min(72vh, 680px); }
.stage__img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 3; overflow: hidden; transform-origin: 0 0; background: var(--paper-2); will-change: transform, clip-path; }
.stage__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__edit { opacity: 0; }
.finder { position: absolute; inset: 0; opacity: 0; pointer-events: none; color: #fff; }
.finder__c { position: absolute; width: 7%; aspect-ratio: 1; border: 2px solid rgba(255,255,255,.9); }
.finder__c--tl { left: 5%; top: 7%; border-right: 0; border-bottom: 0; }
.finder__c--tr { right: 5%; top: 7%; border-left: 0; border-bottom: 0; }
.finder__c--bl { left: 5%; bottom: 7%; border-right: 0; border-top: 0; }
.finder__c--br { right: 5%; bottom: 7%; border-left: 0; border-top: 0; }
.finder__grid { position: absolute; inset: 0; background:
  linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
  linear-gradient(0deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
.finder__focus { position: absolute; left: 50%; top: 52%; width: 9%; aspect-ratio: 1; border: 1.5px solid var(--brass); transform: translate(-50%, -50%) scale(var(--fs, 1.4)); transition: transform .5s var(--ease); }
.finder__read { position: absolute; left: 50%; bottom: 3.2%; transform: translateX(-50%); font-size: 12px; letter-spacing: .14em; white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.finder__read b { color: #E05A4A; font-weight: 400; }
.iphone--ad { left: 50%; top: 2%; height: 96%; transform: translateX(-50%); opacity: 0; }
.ad__head { display: flex; align-items: center; gap: 3cqw; padding: 1.5cqw 4cqw 3cqw; font-size: 3.6cqw; line-height: 1.2; }
.ad__head .ig__avatar { width: 9cqw; box-shadow: none; }
.ad__head b { display: block; font-weight: 600; }
.ad__head em { font-style: normal; color: #777; font-size: 3.1cqw; }
.ad__slot { aspect-ratio: 4 / 5; background: #eee; }
.ad__cta { display: flex; justify-content: space-between; align-items: center; padding: 3.2cqw 4cqw; background: #f2f0ec; font-size: 3.8cqw; font-weight: 600; transition: background .4s, color .4s; }
.ad__cta.is-press { background: var(--brass); }
.ad__meta { padding: 3cqw 4cqw; font-size: 3.3cqw; line-height: 1.4; color: #333; }
.ad__meta span { display: block; }
.ad__meta span:first-child { font-weight: 600; color: #111; margin-bottom: 1cqw; }
.ad__next { border-top: 1px solid #eee; margin-top: 1cqw; }
.ad__next .ad__head { padding-top: 4cqw; }
.ad__next > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.stage__screen { position: absolute; z-index: 5; overflow: hidden; pointer-events: none; container-type: inline-size; opacity: 0; }
.stage__tag { position: absolute; left: 0; top: calc(100% + 14px); display: grid; font-size: 13px; color: var(--on-paper-2); }
.stage__tag span { grid-area: 1 / 1; opacity: 0; transition: opacity .5s var(--ease); }
.stage__tag span.is-on { opacity: 1; }

/* ============ 05 · CONTACT ============ */
.final { position: relative; height: 100vh; height: 100svh; min-height: 680px; overflow: hidden; display: flex; align-items: flex-end; }
.final__bg { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,0) 75%), linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.82) 100%); }
.final__inner { position: relative; z-index: 1; padding-bottom: clamp(44px, 9vh, 100px); }
.final__title { max-width: 12ch; margin-top: 20px; font-family: var(--display); font-size: clamp(3rem, 8vw, 9.4rem); line-height: .9; letter-spacing: -.055em; }
.final__ctas { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; margin-top: clamp(26px, 4vh, 44px); }

/* ============ FOOTER ============ */
.footer { padding: clamp(64px, 10vh, 110px) 0 32px; border-top: 1px solid var(--line-ink); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__brand { max-width: 380px; }
.footer__mark { width: 52px; fill: var(--paper); }
.footer__brand p { margin-top: 22px; font-size: 15px; line-height: 1.5; color: var(--on-ink-2); }
.footer__cols { display: grid; grid-template-columns: repeat(2, auto); gap: clamp(40px, 7vw, 120px); }
.footer__cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__cols .label { margin-bottom: 8px; }
.footer__cols a, .footer__cols button { font-size: 15px; color: var(--on-ink-2); transition: color .3s; }
.footer__cols a:hover, .footer__cols button:hover { color: var(--on-ink); }
.footer__word { position: relative; margin: clamp(56px, 10vh, 120px) auto 0; padding-inline: var(--pad); max-width: 1720px; user-select: none; -webkit-user-select: none; }
.fw { display: block; font-family: var(--wordmark); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; line-height: 1.04; white-space: nowrap; text-align: center; font-size: var(--fw-size, 9.6vw); margin-right: -.12em; }
.fw--base { color: rgba(243, 240, 234, .07); }
.fw--glow { position: absolute; top: 0; left: var(--pad); right: var(--pad); color: transparent; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(222, 182, 134, .78) 0, rgba(201, 150, 105, .34) 6vw, rgba(201, 150, 105, 0) 14vw); -webkit-background-clip: text; background-clip: text; opacity: 0; transition: opacity .8s var(--ease); }
.footer__word.is-glow .fw--glow { opacity: 1; }
.footer__word.is-auto .fw--glow { opacity: .8; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { --mx: 12%; } to { --mx: 88%; } }
.footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(20px, 3vh, 36px); padding-top: 22px; border-top: 1px solid var(--line-ink); font-size: 13px; color: var(--on-ink-3); }
.footer__base a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(243, 240, 234, .3); }
.footer__base a:hover { color: var(--on-ink); }

/* ============ CONTACT PANEL ============ */
.drawer { position: fixed; inset: 0; z-index: 250; visibility: hidden; transition: visibility 0s .8s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .6s var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(600px, 100%); overflow-y: auto; padding: 28px clamp(24px, 3.4vw, 56px) 48px; background: var(--paper); color: var(--on-paper); transform: translateX(100%); transition: transform .8s var(--ease); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.close { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; padding: 8px 0; }
.close span { font-size: 22px; line-height: 1; font-weight: 300; }
.drawer__title { margin-top: clamp(40px, 8vh, 80px); font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: .98; letter-spacing: -.045em; }
.drawer__text { max-width: 38ch; margin-top: 16px; color: var(--on-paper-2); }
.book-form { margin-top: 28px; }
.f { position: relative; display: block; margin-top: 6px; }
.f input, .f textarea { width: 100%; padding: 26px 0 10px; border: 0; border-bottom: 1px solid var(--line-paper); border-radius: 0; background: transparent; color: inherit; font: inherit; font-size: 17px; outline: none; resize: vertical; transition: border-color .4s; }
.f span { position: absolute; left: 0; top: 26px; color: var(--on-paper-3); pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease); }
.f input:focus, .f textarea:focus { border-color: var(--on-paper); }
.f input:focus + span, .f input:not(:placeholder-shown) + span, .f textarea:focus + span, .f textarea:not(:placeholder-shown) + span { transform: translateY(-20px) scale(.78); }
.f.is-invalid input { border-color: #A4472A; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; padding: 0; border: 0; }
.chips legend { padding: 0; margin-bottom: 12px; font-size: 14px; color: var(--on-paper-2); }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 10px 14px; border: 1px solid var(--line-paper); font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.chips label:hover span { border-color: var(--on-paper); }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.book-form .btn { margin-top: 28px; }
.form__status { min-height: 1.4em; margin-top: 14px; font-size: 14px; color: var(--on-paper-2); }
.form__status.is-error { color: #A4472A; }
.form__note { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--on-paper-3); }
.form__note a { color: var(--on-paper-2); text-decoration: underline; text-underline-offset: 3px; }

/* ============ VIEWER ============ */
.viewer { position: fixed; inset: 0; z-index: 260; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #050505; color: var(--on-ink); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.viewer.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.viewer__top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); }
.viewer__title { display: flex; gap: 16px; font-size: 14px; }
.viewer__count { color: var(--on-ink-3); font-variant-numeric: tabular-nums; }
.viewer__stage { position: relative; min-height: 0; }
.viewer__media { position: absolute; top: 0; bottom: 34px; left: var(--pad); right: var(--pad); display: flex; align-items: center; justify-content: center; }
.viewer__media img, .viewer__media video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; animation: vIn .7s var(--ease); background: #000; }
.viewer__media video { height: 100%; }
@keyframes vIn { from { opacity: 0; transform: scale(.985); } }
.viewer__nav { position: absolute; top: 0; bottom: 0; width: 22%; display: flex; align-items: center; color: var(--on-ink); opacity: 0; transition: opacity .3s; z-index: 2; }
.viewer__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.viewer__nav--prev { left: 0; justify-content: flex-start; padding-left: var(--pad); }
.viewer__nav--next { right: 0; justify-content: flex-end; padding-right: var(--pad); }
.viewer__nav:hover, .viewer__nav:focus-visible { opacity: 1; }
.viewer__caption { position: absolute; left: var(--pad); bottom: 10px; font-size: 13px; color: var(--on-ink-2); pointer-events: none; }
.viewer__strip { display: flex; gap: 6px; overflow-x: auto; padding: 14px var(--pad) calc(18px + env(safe-area-inset-bottom)); scrollbar-width: none; }
.viewer__strip::-webkit-scrollbar { display: none; }
.thumb { position: relative; flex: none; height: 64px; opacity: .4; transition: opacity .3s; }
.thumb img { height: 100%; width: auto; }
.thumb:hover { opacity: .8; }
.thumb.is-active { opacity: 1; }
.thumb.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--paper); }
/* Films in the strip carry a small play mark */
.thumb--film::before { content: ""; position: absolute; left: 50%; top: 50%; margin: -6px 0 0 -4px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--paper); filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
/* One film on its own: no strip, arrows or count */
.viewer.is-single .viewer__strip, .viewer.is-single .viewer__nav, .viewer.is-single .viewer__count { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hero__content { flex-direction: column; align-items: flex-start; }
  .hero__side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .social__cards { display: none; }
  .how__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: block; }
  .brand__name { font-size: 11px; letter-spacing: .18em; }
  .nav__inner { gap: 12px; }
  .brand { gap: 10px; }
  .lang button { padding: 12px 4px; }
  .brand__mark { width: 32px; }

  .gallery { flex-direction: column; height: auto; gap: 8px; }
  .gp { flex: none; height: 78px; transition: height .6s var(--ease); }
  .gp.is-active { height: min(64vh, 560px); }
  .gp--social.is-active { height: min(82vh, 680px); }
  .gp--portrait.is-active { flex: none; height: min(calc((100vw - 2 * var(--pad)) * 16 / 9), 80vh); }
  .gp--imagery.is-active { flex: none; height: min(calc((100vw - 2 * var(--pad)) * 3 / 2), 74vh); }
  .gp__v { writing-mode: horizontal-tb; transform: none; left: 64px; bottom: auto; top: 22px; font-size: 1.45rem; line-height: 1.2; }
  .gp__no { top: 28px; }
  .gp__info, .gp--portrait .gp__info, .gp--imagery .gp__info { width: auto; right: 22px; }
  .gp__info h3 { font-size: 2.4rem; }
  .iphone--feed { right: 50%; top: 6%; height: 44%; transform: translate(50%, 0); } /* clear of the text below on every phone size */
  .gp.is-active .iphone--feed { transform: translate(50%, 0); }
  .gp:not(.is-active) .iphone--feed { opacity: 0; }

  .work { height: 360vh; }
  .work__count { display: none; }
  .fr__img { height: 40vh; }
  .fr--l .fr__img { height: 44vh; }
  .fr--t .fr__img { height: 48vh; }
  .fr--low { margin-top: 4vh; }
  .track { top: calc(var(--nav-h) + 176px); }

  .how { height: 300vh; }
  .how__grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; gap: 18px; align-items: stretch; padding-top: calc(var(--nav-h) + 6px); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .how__text { display: contents; }
  .how__text .label { display: none; }
  .how__long { display: none; }
  .how__short { display: inline; }
  .how__title { grid-row: 1; margin: 0; font-size: clamp(1.9rem, 8vw, 2.6rem); max-width: 14ch; }
  .stage { grid-row: 2; height: auto; min-height: 0; }
  .stage__tag { display: none; }
  .hsteps { grid-row: 3; margin: 0; }
  .hstep__head { padding: 12px 0; }
  .hstep__name { font-size: 1.5rem; }
  .hstep__body p { font-size: .95rem; padding-left: 0; }
  .hstep.is-active .hstep__body p { padding-bottom: 12px; }
  .how__cta { display: none; }

  .footer__cols { grid-template-columns: 1fr 1fr; row-gap: 36px; width: 100%; }
}

@media (max-width: 640px) {
  .hero { min-height: 560px; }
  .hero__content { gap: 22px; }
  .hero__title { font-size: clamp(2.7rem, 12.2vw, 4.4rem); }
  .hero__sub { font-size: clamp(1.3rem, 5.6vw, 1.6rem); }
  .hero__ctas { gap: 12px 22px; }
  .hero__ctas .btn { width: 100%; }
  .hero__side { display: none; }
  .hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,.1) 38%, rgba(0,0,0,.82) 78%, rgba(0,0,0,.88) 100%); }
  .sec-title { font-size: clamp(2rem, 9.4vw, 2.8rem); }
  .mf { font-size: clamp(2rem, 9.2vw, 2.8rem); line-height: 1.12; }
  .work .sec-title { font-size: clamp(1.7rem, 7.6vw, 2.3rem); }
  .final__title { font-size: clamp(2.7rem, 12vw, 4rem); }
  .final__ctas .btn { width: 100%; }
  .final__ctas { gap: 14px 28px; }
  .footer__base { flex-direction: column; }
  .viewer__nav { display: none; }
  .thumb { height: 52px; }
}

/* ---------- Reduced motion: no pinning, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .work__hint { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .intro { display: none; }
  .js .rv, .js [data-split] .w > span, .js .hero__title .ln > span { opacity: 1; transform: none; }
  .mf .w2 { opacity: 1; }
  .work { height: auto !important; }
  .work .scene__pin { position: relative; height: auto; padding: calc(var(--nav-h) + 40px) 0 80px; }
  .work__head { position: relative; top: auto; }
  .track { position: relative; top: auto; bottom: auto; margin-top: 40px; overflow-x: auto; transform: none !important; }
  .work__bar { display: none; }
  .how { height: auto; }
  .how .scene__pin { position: relative; height: auto; padding: 120px 0; }
  .hstep .hstep__body { grid-template-rows: 1fr; }
  .hstep .hstep__body p { opacity: 1; }
  .stage__edit { opacity: 1; }
}

/* ============ LEGAL PAGES (impressum.html, datenschutz.html) ============ */
.legal-page { background: var(--paper); color: var(--on-paper); }
.legal-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); height: var(--nav-h); }
.legal-nav__lang { display: flex; gap: 6px; font-size: 13px; font-weight: 500; letter-spacing: .08em; }
.legal-nav__lang span { opacity: .35; }
.legal-nav__lang a, .legal-nav__back { opacity: .6; transition: opacity .3s; }
.legal-nav__lang a:hover, .legal-nav__back:hover { opacity: 1; }
.legal-nav__back { font-size: 14px; }
.legal { padding-block: clamp(48px, 9vh, 110px) clamp(80px, 12vh, 140px); }
.legal article { max-width: 68ch; scroll-margin-top: 24px; }
.legal article + article { margin-top: clamp(80px, 12vh, 140px); padding-top: clamp(48px, 8vh, 90px); border-top: 1px solid var(--line-paper); max-width: none; }
.legal article + article > * { max-width: 68ch; }
.legal h1 { margin-top: 18px; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .95; letter-spacing: -.05em; }
.legal h2 { margin-top: clamp(40px, 6vh, 60px); font-family: var(--display); font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.15; letter-spacing: -.03em; }
.legal p, .legal ul, .legal address { margin-top: 12px; color: var(--on-paper-2); font-style: normal; }
.legal .legal__intro { margin-top: 24px; font-size: 1.15rem; color: var(--on-paper); }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 4px; }
.legal strong { color: var(--on-paper); font-weight: 500; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(14, 13, 12, .3); }
.legal a:hover { text-decoration-color: currentColor; }
.legal__date { margin-top: clamp(40px, 6vh, 60px) !important; font-size: 14px; color: var(--on-paper-3) !important; }
.legal-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; padding-bottom: 32px; border-top: 1px solid var(--line-paper); font-size: 13px; color: var(--on-paper-3); }
.legal-foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(14, 13, 12, .3); }
.legal-foot a:hover, .legal-foot a[aria-current] { color: var(--on-paper); }
@media (max-width: 640px) {
  .legal-nav .brand__name { display: none; }
}
