/* Life Immobilien – Website-Entwurf (RiseYourCompany)
   Direction: "the place carries it" – the client's own project photographs, shown large and
   uninterrupted, with the name set under the first one like a film title. Lots of air.
   Colours: brand lime kept from the existing identity, anthracite ink, warm plaster paper. */

/* ---------- tokens ---------- */
:root {
  --bg: #f1efe9;            /* warm plaster */
  --sheet: #faf9f6;         /* one tone step lighter */
  --ink: #1d1f1b;           /* anthracite, like the window frames in the projects */
  --muted: #53564f;
  --line: #c9c5ba;          /* form fields only */
  --accent: #bccb23;        /* brand lime */
  --accent-strong: #a9b81a;
  --accent-ink: #1d1f1b;
  --dark: #22241f;
  --dark-ink: #f1efe9;
  --dark-muted: #bdbeb6;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-text: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* five sizes, no more */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.75vw, 1.75rem);
  --step-head: clamp(2.5rem, 1.2rem + 4.4vw, 5.5rem);
  --step-display: clamp(4rem, 1rem + 12vw, 15rem);   /* fitted to its line by script where marked */

  --header: 76px;
  --gap: 12px;
  --margin: clamp(1.25rem, 3.2vw, 3.25rem);
  --section: clamp(7rem, 14vw, 14rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 220ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; padding-top: var(--header);
  background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd, address { margin: 0; }
address { font-style: normal; }
ul[class], ol[class] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: calc(var(--header) + 1rem); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3 { font-weight: 500; line-height: 1.05; text-wrap: balance; }
p { max-width: 62ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

.head {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-head);
  line-height: 0.92; letter-spacing: -0.02em; text-transform: uppercase;
}
.lead { font-size: var(--step-lead); line-height: 1.35; font-weight: 500; letter-spacing: -0.005em; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: var(--gap); top: var(--gap); z-index: 100;
  padding: 0.75rem 1rem; background: var(--ink); color: var(--sheet);
  transform: translateY(-200%); transition: transform var(--t-ui) var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3.25rem; padding: 0 1.6rem;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--small { min-height: 2.75rem; padding: 0 1.15rem; }
.button--dark { background: var(--ink); color: var(--sheet); }
.button--wide { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.75rem;
  font-weight: 500; text-decoration: underline; text-underline-offset: 0.3em;
  text-decoration-thickness: 2px; text-decoration-color: var(--accent);
  transition: text-decoration-color var(--t-hover) ease;
}
.text-link svg { transition: transform var(--t-ui) var(--ease-out); }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button--dark:hover { background: #000; }
  .text-link:hover { text-decoration-color: currentColor; }
  .text-link:hover svg { transform: translateX(4px); }
}

/* ---------- header: a plain bar that steps aside while reading ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-inline: var(--margin); background: var(--sheet);
  transition: transform 260ms var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__logo img { width: 116px; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.site-nav__group { position: relative; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 2.75rem; white-space: nowrap;
  font-weight: 500; text-decoration: none; text-decoration-thickness: 2px; text-underline-offset: 0.4em;
}
.site-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); }
.site-nav__trigger svg { transition: transform var(--t-ui) var(--ease-out); }
.site-nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__phone { font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-header__mobile { display: none; }
@media (hover: hover) and (pointer: fine) {
  .site-nav__link:hover { text-decoration: underline; text-decoration-color: var(--accent); }
}

/* the Leistungen popover grows from its trigger */
.nav-pop {
  position: absolute; top: calc(100% + 10px); left: -1rem; z-index: 30;
  width: 22rem; padding: 0.5rem; background: var(--sheet);
  box-shadow: 0 22px 44px -20px rgb(29 31 27 / 0.35), 0 2px 6px rgb(29 31 27 / 0.08); /* a real overlay. taste-skill-ignore */
  transform-origin: 2.5rem 0;
  opacity: 0; transform: scale(0.97) translateY(-4px); visibility: hidden;
  transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s linear 150ms;
}
.nav-pop[data-open] {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity var(--t-ui) ease, transform var(--t-ui) var(--ease-out), visibility 0s;
}
.nav-pop__list a { display: grid; gap: 0.1rem; padding: 0.75rem 0.95rem; text-decoration: none; font-weight: 500; transition: background-color var(--t-hover) ease; }
.nav-pop__note { font-weight: 400; color: var(--muted); font-size: var(--step-small); }
@media (hover: hover) and (pointer: fine) {
  .nav-pop__list a:hover { background: var(--bg); }
}

.menu-sheet { display: none; }

/* ---------- hero: the photograph, then the name under it ---------- */
.hero { display: flex; flex-direction: column; height: calc(100svh - var(--header)); min-height: 38rem; }
.hero__media { position: relative; flex: 0 0 58%; overflow: hidden; background: var(--dark); }
.hero__media > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1600ms var(--ease-soft), transform 9000ms var(--ease-soft);
}
.hero__media > img.is-active { opacity: 1; transform: scale(1); }
.hero__video {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 900ms var(--ease-soft);
}
.hero__video.is-playing { opacity: 1; }

/* after the video: the logo alone (transparent) charges up from left to right, then dissolves */
.hero__brand { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; visibility: hidden; }
.hero__brand[data-state] { visibility: visible; }
.hero__brand-logo {
  position: relative; width: min(280px, 60%);
  opacity: 0; transform: scale(0.97);
  transition: opacity 500ms ease, transform 700ms var(--ease-out), filter 700ms ease;
}
.hero__brand-logo img { width: 100%; }
.hero__brand-base { opacity: 0.28; filter: grayscale(1) brightness(1.6); }
.hero__brand-fill { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); transition: clip-path 1600ms var(--ease-in-out) 450ms; }
.hero__brand[data-state="in"] .hero__brand-logo { opacity: 1; transform: none; }
.hero__brand[data-state="in"] .hero__brand-fill { clip-path: inset(0); }
.hero__brand[data-state="out"] .hero__brand-logo { opacity: 0; transform: scale(1.04); filter: blur(6px); }
.hero__brand[data-state="out"] .hero__brand-fill { clip-path: inset(0); }
.hero__replay {
  position: absolute; left: var(--margin); bottom: 1.25rem; z-index: 4;
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 1rem;
  background: var(--sheet); font-size: var(--step-small); font-weight: 500;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.hero__replay[hidden] { display: none; }
.hero__replay:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .hero__replay:hover { background: var(--accent); }
}
.hero__caption {
  position: absolute; right: var(--margin); bottom: 1.25rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.85rem; background: var(--sheet); font-size: var(--step-small); text-decoration: none;
}
.hero__caption span { transition: opacity var(--t-ui) ease; }
.hero__band { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem var(--margin) 0; overflow: hidden; }
.hero__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.hero__lead { max-width: 44ch; }
.hero__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: flex-end; }
.hero__name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: var(--step-display); line-height: 0.82; letter-spacing: -0.02em;
  white-space: nowrap; margin-bottom: 0.04em; transform-origin: 0 100%;
}
.hero__name .line { display: block; overflow: hidden; padding-top: 0.06em; }
.hero__name .line > span { display: inline-block; }
.br-narrow { display: none; }

/* sub-pages: the same idea, a little calmer */
.hero--page { height: auto; min-height: 0; }
.hero--page .hero__media { flex: none; height: 56svh; min-height: 22rem; }
.hero--page .hero__band { padding-top: 1.75rem; gap: 3rem; }
.hero--plain .hero__band { padding-top: clamp(4rem, 10vw, 8rem); gap: 2rem; }

/* ---------- intro: two professions, one contact ---------- */
.two { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 4rem; align-items: start; }
.two__head { grid-column: 1 / 9; }
.two__head .lead { margin-top: 1.5rem; max-width: 40ch; }
.two__head strong { font-weight: 500; background: var(--accent); padding: 0 0.15em; }
.two__col { grid-column: span 6; display: grid; align-content: start; justify-items: start; gap: 1.25rem; padding-right: clamp(0rem, 4vw, 4rem); }
.two__col p:not(.two__word) { max-width: 44ch; }
.two__facts {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
  margin-top: 2rem;
}
.two__facts > div { padding: 2rem 1.75rem 1.75rem; background: var(--sheet); display: grid; align-content: start; gap: 0.75rem; }
.two__facts dt { font-family: var(--font-display); font-weight: 700; font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.02em; }
.two__facts dd { color: var(--muted); font-size: var(--step-small); max-width: 28ch; }
.two__word { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.02em; }

/* ---------- sellers: the client's own figures, counting up, on a dark field ---------- */
.seller {
  margin-top: var(--section); padding: var(--section) var(--margin);
  background: var(--dark); color: var(--dark-ink);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(3.5rem, 7vw, 6rem);
}
.seller--compact { margin-top: 0; }
.seller__head { grid-column: 1 / 9; }
.seller__head .lead { margin-top: 1.25rem; max-width: 40ch; color: var(--dark-ink); }
.seller__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.seller__stats > div { display: grid; align-content: start; gap: 0.75rem; padding-top: 1.5rem; }
.seller__stats dt {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-display); line-height: 0.85;
  letter-spacing: -0.02em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.seller__unit { display: block; margin-top: 0.4rem; font-family: var(--font-text); font-weight: 500; font-size: var(--step-lead); letter-spacing: 0; line-height: 1.2; color: var(--dark-ink); }
.seller__stats dd { color: var(--dark-muted); max-width: 26ch; }
.seller__value {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem 4rem;
  padding: clamp(1.75rem, 3vw, 2.75rem); background: #2c2e28;
}
.seller__value p { margin-top: 0.75rem; color: var(--dark-muted); max-width: 52ch; }
.seller__value h3 { color: var(--dark-ink); }
.seller__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.seller__actions .text-link { color: var(--dark-ink); }

/* ---------- services: one scene, the statements step through it ---------- */
.scene { position: relative; margin-top: var(--section); }
.scene__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--dark); }
.scene__sticky > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1200ms var(--ease-soft), transform 6000ms var(--ease-soft);
}
.scene__sticky > img.is-active { opacity: 1; transform: none; }
/* the owner's portrait is small and upright: shown framed on the right instead of full-bleed */
.scene__sticky > img.scene__portrait {
  inset: auto; right: var(--margin); top: calc(var(--header) + 2rem); bottom: 2rem;
  width: auto; height: calc(100% - var(--header) - 4rem); aspect-ratio: 698 / 885; object-fit: cover;
  max-width: min(40vw, calc(100vw - 36rem - 3 * var(--margin) - 2rem)); /* never touches the panel */
}
.scene__panel {
  position: absolute; left: var(--margin); top: calc(var(--header) + 2rem); z-index: 2;
  width: min(36rem, calc(100% - 2 * var(--margin)));
  padding: clamp(1.75rem, 3vw, 2.75rem); background: var(--dark); color: var(--dark-ink);
}
.scene__panel h2 { color: var(--dark-ink); }
.scene__intro { margin-top: 1rem; color: var(--dark-muted); }
.scene__list { margin-top: 2rem; display: grid; gap: 0.25rem; }
.scene__item a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-block: 0.4rem; text-decoration: none; color: var(--dark-muted);
  font-size: var(--step-lead); font-weight: 500; transition: color var(--t-hover) ease;
}
.scene__item a span:last-child { font-size: var(--step-small); font-weight: 400; }
.scene__item.is-active a { color: var(--dark-ink); }
.scene__item.is-active a span:first-child { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.scene__desc { padding: 0.25rem 0 1rem; color: var(--dark-ink); max-width: 46ch; }
.js .scene__item:not(.is-active) .scene__desc { display: none; }
.scene__desc .text-link { color: var(--dark-ink); }
.scene__note { position: absolute; right: var(--margin); bottom: 1.25rem; z-index: 2; padding: 0.4rem 0.75rem; background: var(--sheet); font-size: var(--step-small); }
.scene__markers { position: relative; margin-top: -100svh; pointer-events: none; }
.scene__marker { height: 75svh; }
.scene__marker:first-child { height: 100svh; }
@media (hover: hover) and (pointer: fine) {
  .scene__item a:hover { color: var(--dark-ink); }
}

/* ---------- projects: each one a unit – picture with its own info panel attached ---------- */
.projs { padding: var(--section) var(--margin) 0; overflow-x: clip; } /* the sliding panels never cause sideways scrolling */
.projs__head { max-width: 46rem; margin-bottom: clamp(4rem, 8vw, 7rem); }
.projs__head .lead { margin-top: 1.25rem; }
.proj { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.proj + .proj { margin-top: clamp(7rem, 14vw, 12rem); }
.proj__media { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 10; grid-row: 1; }
.proj__media > img { width: 100%; height: 100%; object-fit: cover; }
.proj__media .video { height: 100%; aspect-ratio: auto; }
.proj__info {
  position: relative; z-index: 2; grid-row: 1;
  display: grid; justify-items: start; gap: 0.75rem;
  padding: clamp(1.75rem, 3vw, 2.75rem); margin-bottom: -3.5rem; background: var(--sheet);
}
.proj--left .proj__media { grid-column: 1 / 9; }
.proj--left .proj__info { grid-column: 8 / 13; }
.proj--right .proj__media { grid-column: 5 / 13; }
.proj--right .proj__info { grid-column: 1 / 6; }
.proj__year { display: block; overflow: hidden; font-family: var(--font-display); font-weight: 700; font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.02em; padding-top: 0.04em; }
.proj__year span { display: block; }
.proj__name { font-size: var(--step-lead); font-weight: 500; }
.proj__place { color: var(--muted); font-size: var(--step-small); margin-top: -0.4rem; }
.proj__desc { max-width: 40ch; }
.proj__note { display: block; margin-top: 0.4rem; color: var(--muted); font-size: var(--step-small); }
.projs__all { margin-top: clamp(6rem, 11vw, 10rem); }
@media (hover: hover) and (pointer: fine) {
  .proj__media > img { transition: transform 900ms var(--ease-soft); }
  a.proj__media:hover > img { transform: scale(1.03); }
}

/* entrance: the picture opens from the side it sits on, the panel slides in towards it, the year rises */
@media (prefers-reduced-motion: no-preference) {
  .js [data-proj] .proj__media { clip-path: inset(0 100% 0 0); transition: clip-path 1300ms var(--ease-in-out); }
  .js [data-proj].proj--right .proj__media { clip-path: inset(0 0 0 100%); }
  .js [data-proj] .proj__media > img, .js [data-proj] .proj__media .video img { transform: scale(1.18); transition: transform 1900ms var(--ease-soft); }
  .js [data-proj] .proj__info { opacity: 0; transform: translateX(48px); transition: opacity 800ms var(--ease-out) 450ms, transform 1000ms var(--ease-out) 450ms; }
  .js [data-proj].proj--right .proj__info { transform: translateX(-48px); }
  .js [data-proj] .proj__year span { transform: translateY(105%); transition: transform 900ms var(--ease-out) 700ms; }
  .js [data-proj] .proj__info > :not(.proj__year) { opacity: 0; transform: translateY(12px); transition: opacity 600ms ease, transform 700ms var(--ease-out); }
  .js [data-proj] .proj__info > :nth-child(2) { transition-delay: 820ms; }
  .js [data-proj] .proj__info > :nth-child(3) { transition-delay: 880ms; }
  .js [data-proj] .proj__info > :nth-child(4) { transition-delay: 950ms; }
  .js [data-proj] .proj__info > :nth-child(5) { transition-delay: 1020ms; }
  .js [data-proj].is-in .proj__media { clip-path: inset(0); }
  .js [data-proj].is-in .proj__media > img, .js [data-proj].is-in .proj__media .video img { transform: none; }
  .js [data-proj].is-in .proj__info { opacity: 1; transform: none; }
  .js [data-proj].is-in .proj__year span { transform: none; }
  .js [data-proj].is-in .proj__info > :not(.proj__year) { opacity: 1; transform: none; }
  /* afterwards the picture drifts gently with the scroll */
  @supports (animation-timeline: view()) {
    .proj__media > img { animation: proj-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes proj-drift { from { translate: 0 -3%; scale: 1.08; } to { translate: 0 3%; scale: 1.08; } }

/* video facade: our own photograph until the visitor asks for YouTube */
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark); }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { object-fit: cover; }
.video__play {
  position: absolute; left: var(--gap); bottom: var(--gap);
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0 1.4rem;
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.video__play:active { transform: scale(0.97); }
.video iframe { animation: fade 300ms ease; }
.video__note { margin-top: 0.75rem; max-width: none; }
@media (hover: hover) and (pointer: fine) {
  .video__play:hover { background: var(--accent-strong); }
}

/* ---------- how we work: one verb at a time (the old slogan: planen, gestalten, leben) ---------- */
.verbs { margin-top: var(--section); }
.verb { position: relative; height: 100svh; overflow: clip; } /* clip, not hidden: keeps the sticky word working */
.verb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verb__word {
  position: sticky; top: 50%; z-index: 2; transform: translateY(-50%);
  margin: 0; text-align: center; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: min(17vw, 15rem); line-height: 0.85; letter-spacing: -0.02em;
}
.verb__word span { display: inline-block; padding: 0.02em 0.12em 0; background: var(--sheet); }
.verb__note { position: absolute; right: var(--margin); top: 1.25rem; z-index: 2; padding: 0.4rem 0.75rem; background: var(--sheet); font-size: var(--step-small); }
.verb__text {
  position: absolute; left: var(--margin); bottom: var(--margin); z-index: 2;
  max-width: 30rem; padding: 1.1rem 1.35rem; background: var(--sheet);
}

/* ---------- guide: pick your concern; each one opens with its next step ---------- */
.guide {
  margin-top: var(--section); padding: var(--section) var(--margin);
  background: var(--accent); color: var(--accent-ink);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 3rem; align-items: start;
}
.guide__intro { grid-column: 1 / 6; position: sticky; top: calc(var(--header) + 2rem); display: grid; gap: 1.5rem; }
.guide__intro .lead { max-width: 30ch; }
.guide__direct { display: grid; justify-items: start; gap: 0.35rem; margin-top: 1rem; }
.guide__direct p { font-weight: 500; }
.guide__phone { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); text-decoration: none; letter-spacing: -0.01em; }
.guide__list { grid-column: 7 / 13; display: grid; gap: 6px; }
.guide__item { background: rgb(29 31 27 / 0.07); transition: background-color var(--t-ui) ease; }
.guide__item[open] { background: var(--sheet); }
.guide__summary {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label icon" "for icon"; align-items: center; column-gap: 1.5rem;
  padding: 1.25rem 1.5rem; cursor: pointer; list-style: none;
}
.guide__summary::-webkit-details-marker { display: none; }
.guide__summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.guide__label { grid-area: label; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); line-height: 1; letter-spacing: -0.01em; }
.guide__for { grid-area: for; margin-top: 0.35rem; font-size: var(--step-small); color: rgb(29 31 27 / 0.75); }
.guide__icon { grid-area: icon; position: relative; width: 2.25rem; height: 2.25rem; background: var(--ink); transition: transform var(--t-ui) var(--ease-out); }
.guide__icon::before, .guide__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.9rem; height: 2px; background: var(--sheet); transform: translate(-50%, -50%); }
.guide__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t-ui) var(--ease-out); }
.guide__item[open] .guide__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.guide__item[open] .guide__for { color: var(--muted); }
.guide__panel { padding: 0 1.5rem 1.75rem; display: grid; gap: 1.25rem; }
.guide__panel p { max-width: 52ch; }
.guide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
@media (hover: hover) and (pointer: fine) {
  .guide__item:not([open]):hover { background: rgb(29 31 27 / 0.12); }
  .guide__item:not([open]):hover .guide__icon { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .guide__item[open] .guide__panel { animation: guide-open 420ms var(--ease-out); }
}
@keyframes guide-open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- about: wide photo, colour tile, facts ---------- */
.about { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; }
.about__head { grid-column: 1 / 8; }
.about__lead { grid-column: 1 / 8; margin-top: 1.75rem; }
.about__photo { grid-column: 1 / 9; position: relative; margin-top: 4.5rem; aspect-ratio: 16 / 10; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__note { position: absolute; top: 0; right: 0; width: min(22rem, 70%); padding: 1.5rem; background: var(--sheet); }
.about__photo--portrait { grid-column: 1 / 7; aspect-ratio: 698 / 885; }
.about__photo--portrait img { object-position: 50% 30%; }
.about__photo--portrait .about__note { top: auto; bottom: 0; right: 0; width: min(24rem, 80%); }
.about__person { display: block; margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }
.about__person strong { display: block; font-weight: 500; color: var(--ink); font-size: var(--step-body); }
.about__side { grid-column: 8 / 13; margin-top: 4.5rem; display: grid; align-content: start; gap: 2rem; }
.about__map { background: var(--dark); color: var(--dark-ink); aspect-ratio: 4 / 3.4; padding: 1.25rem; position: relative; }
.about__map svg { width: 100%; height: 100%; overflow: visible; font-family: var(--font-text); }
.map__grid path { stroke: #2f322b; stroke-width: 1; fill: none; }
.map__areas ellipse { fill: #2d3029; }
.map__routes path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 6; opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .js .about__map .map__routes path { stroke-dashoffset: 400; transition: stroke-dashoffset 1800ms var(--ease-out) 400ms; }
  .js .about__map.is-in .map__routes path { stroke-dashoffset: 0; }
}
.map__river path { fill: none; stroke: #5b7781; stroke-width: 9; stroke-linecap: round; }
.map__water { fill: #8fa7af; font-size: 13px; font-style: italic; letter-spacing: 0.08em; }
.map__towns text { fill: #7d8076; font-size: 13px; }
.map__refs circle { fill: var(--dark-ink); }
.map__refs text { fill: var(--dark-ink); font-size: 15px; }
.map__office circle { fill: var(--accent); }
.map__office text { fill: var(--dark-ink); font-size: 16px; font-weight: 500; }
.map__office .map__street { fill: var(--dark-muted); font-size: 12.5px; font-weight: 400; }
.map__pulse { transform-box: fill-box; transform-origin: center; opacity: 0.45; }
.map__scale rect, .map__scale text { fill: var(--dark-muted); }
.map__scale text { font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  .map__pulse { animation: pulse 2400ms var(--ease-out) infinite; }
}
@keyframes pulse { from { transform: scale(1); opacity: 0.5; } to { transform: scale(3.2); opacity: 0; } }
.about__map figcaption { position: absolute; left: 1.25rem; top: 1rem; font-size: var(--step-small); color: var(--dark-muted); }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; font-size: var(--step-small); }
.about__facts dt { color: var(--muted); }
.about__facts dd { font-weight: 500; }
.about__team { grid-column: 1 / 9; margin-top: 2.5rem; }

/* ---------- contact: a visit card on a photograph ---------- */
.visit { position: relative; height: 100svh; min-height: 40rem; overflow: hidden; }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit__card {
  position: absolute; top: 4rem; right: 4rem; z-index: 2; width: min(25rem, calc(100% - 2rem));
  padding: 2rem 2rem 0; background: var(--sheet); display: grid; gap: 1rem;
}
.visit__card h2 { font-size: var(--step-lead); font-weight: 500; }
.visit__card dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; }
.visit__card dt { color: var(--muted); }
.visit__card .button { margin: 0.75rem -2rem 0; min-height: 3.5rem; }

/* ---------- footer: photograph half, menu half ---------- */
.site-footer { display: grid; grid-template-columns: 1fr 1fr; min-height: 92svh; background: var(--sheet); }
.site-footer__photo { position: relative; overflow: hidden; }
.site-footer__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.site-footer__note { position: absolute; left: var(--margin); bottom: 1.25rem; z-index: 1; padding: 0.4rem 0.75rem; background: var(--sheet); font-size: var(--step-small); }
.site-footer__field { display: flex; flex-direction: column; padding: 5rem var(--margin) 2rem clamp(2rem, 8vw, 8rem); }
.site-footer__logo img { width: 110px; }
.site-footer__menu { margin-top: 3rem; display: grid; gap: 0.25rem; }
.site-footer__menu a {
  display: inline-block; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.5rem); letter-spacing: -0.01em; line-height: 1.05;
  text-decoration: none; padding-block: 0.2rem;
  transition: transform var(--t-ui) var(--ease-out), color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__menu:hover a { color: var(--muted); }
  .site-footer__menu a:hover { color: var(--ink); transform: translateX(12px); }
}
.site-footer__blocks { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; font-size: var(--step-small); line-height: 1.6; }
.site-footer__legal { margin-top: auto; padding-top: 3rem; color: var(--muted); max-width: none; }

/* ---------- sub-page building blocks ---------- */
.narrow { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.narrow > * { grid-column: 3 / 9; }
.narrow > .lead + p { margin-top: 1.5rem; }

.bleed { margin-top: var(--section); height: 78svh; min-height: 26rem; overflow: hidden; }
.bleed img { width: 100%; height: 100%; object-fit: cover; }

.plain { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem; }
.plain__title { grid-column: 1 / 6; }
.plain__body { grid-column: 7 / 12; }
.plain__body > * + * { margin-top: 1.5rem; }

.ticks { display: grid; gap: 0.85rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.55rem; height: 0.55rem; background: var(--accent); }

.phases { padding-left: 1.4rem; display: grid; gap: 1.1rem; }
.phases li::marker { font-weight: 500; }
.phases strong { font-weight: 500; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.75rem 2rem; }
.facts dt { font-weight: 500; }

.figure { display: flex; align-items: baseline; gap: 1.25rem; flex-wrap: wrap; }
.figure__num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.02em; }

.duo { padding: var(--section) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.duo figure { overflow: hidden; }
.duo img { width: 100%; height: 100%; object-fit: cover; }
.duo figure:first-child { grid-column: 1 / 8; aspect-ratio: 3 / 2; }
.duo figure:last-child { grid-column: 9 / 13; aspect-ratio: 4 / 5; margin-bottom: -6rem; }
.duo figcaption { margin-top: 0.6rem; }
.duo figure:has(figcaption) { aspect-ratio: auto; }
.duo figure:has(figcaption) img { aspect-ratio: inherit; }

.more { padding: var(--section) var(--margin); }
.more h2 { margin-bottom: 2.5rem; }
.more__list a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 0.6rem; text-decoration: none; }
.more__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.02em; transition: transform var(--t-ui) var(--ease-out), color var(--t-hover) ease; }
.more__note { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .more__list:hover .more__name { color: var(--muted); }
  .more__list a:hover .more__name { color: var(--ink); transform: translateX(12px); }
}

/* project case studies */
.case { padding: var(--section) 0; }
.case:nth-of-type(even) { background: var(--sheet); }   /* every second project on its own ground: you always know where one ends */
.case__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem 2rem; padding: 0 var(--margin) clamp(2rem, 4vw, 3rem); }
.case__head .case__year { display: inline; }
.case__head h2 { font-size: var(--step-lead); }
.case__lead { overflow: hidden; }
.case__lead--bleed { height: 82svh; min-height: 26rem; }
.case__lead--inset { margin-inline: var(--margin); aspect-ratio: 16 / 9; }
.case__lead--inset.case__lead--video { aspect-ratio: auto; }
.case__lead img { width: 100%; height: 100%; object-fit: cover; }
.case__lead button { display: block; width: 100%; height: 100%; }
.case__body { padding: clamp(3rem, 6vw, 5rem) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 2rem; }
.case__title { grid-column: 1 / 6; }
.case__year { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.02em; }
.case__title h2 { margin-top: 0.75rem; font-size: var(--step-lead); }
.case__text { grid-column: 1 / 8; }
.case__text .facts { margin-bottom: 1.75rem; font-size: var(--step-small); }
.case__photos { padding: clamp(4rem, 8vw, 7rem) var(--margin) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
.case__photos button { display: block; overflow: hidden; }
.case__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.case__photos button:nth-child(1) { grid-column: 2 / 7; aspect-ratio: 4 / 3; }
.case__photos button:nth-child(2) { grid-column: 8 / 12; aspect-ratio: 4 / 5; margin-top: 8rem; }
.case__photos button:nth-child(3) { grid-column: 4 / 9; aspect-ratio: 3 / 2; margin-top: -2rem; }
@media (hover: hover) and (pointer: fine) {
  .case__photos button:hover img { transform: scale(1.03); }
}
.zoomable { cursor: zoom-in; }
.case-end { height: 0; }
.case__lead--video .video__note { margin-top: 0.75rem; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgb(17 18 16 / 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: 0.75rem; justify-items: center; padding: 1rem; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82svh; width: auto; height: auto; animation: lb-in 260ms var(--ease-out); }
.lightbox figcaption { color: var(--dark-ink); font-size: var(--step-small); }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; min-height: 2.75rem; padding: 0 1rem; background: var(--sheet); font-weight: 500; transition: transform var(--t-press) var(--ease-out); }
.lightbox__close:active { transform: scale(0.97); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.96); } }

/* ---------- contact form ---------- */
.contact { padding: var(--section) var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 4rem; }
.contact__form { grid-column: 1 / 8; }
.contact__aside { grid-column: 9 / 13; display: grid; align-content: start; gap: 2rem; }
.contact__aside .facts { grid-template-columns: 1fr; gap: 0.2rem; }
.contact__aside .facts dd + dt { margin-top: 1rem; }
.form { display: grid; gap: 1.6rem; margin-top: 2.5rem; }
.form__row { display: grid; gap: 0.5rem; }
.form__row--2 { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.form label, .form legend { font-weight: 500; font-size: var(--step-small); }
.form .optional { font-weight: 400; color: var(--muted); }
.field {
  width: 100%; min-height: 3.4rem; padding: 0.75rem 0.95rem;
  background: var(--sheet); border: 1px solid var(--line); border-radius: 0; /* form field. taste-skill-ignore */
  font-size: max(1rem, var(--step-body));
  transition: border-color var(--t-hover) ease;
}
textarea.field { min-height: 10rem; resize: vertical; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d1f1b' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.field[aria-invalid="true"] { border-color: #a3271b; }
.form__error { color: #a3271b; font-size: var(--step-small); }
.form__error:empty { display: none; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.choice label, .check { display: inline-flex; align-items: flex-start; gap: 0.6rem; font-weight: 400; font-size: var(--step-body); cursor: pointer; }
.choice input, .check input { width: 1.15rem; height: 1.15rem; margin-top: 0.3rem; accent-color: var(--ink); flex: none; }
.check { font-size: var(--step-small); line-height: 1.5; }
.form__note { padding: 1.1rem 1.3rem; background: var(--sheet); font-size: var(--step-small); }
.form__status { padding: 1.1rem 1.3rem; background: var(--accent); font-size: var(--step-small); }
.form__status:empty { display: none; }

/* legal text */
.legal { padding: clamp(3rem, 7vw, 6rem) var(--margin) var(--section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.legal__body { grid-column: 1 / 8; }
.legal h2 { font-size: var(--step-lead); margin-top: 3rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal dl { margin-top: 0.85rem; }

/* ---------- motion (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise 800ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 200ms); }
  .js .hero__name .line > span { transform: translateY(102%); animation: line-up 1100ms var(--ease-out) 120ms forwards; }
  .js .hero__media { animation: open-down 1300ms var(--ease-in-out) both; }
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* the clip sits on the picture, not on the observed element: Chrome does not report a clipped element as visible */
  .js .shutter[data-reveal] { opacity: 1; transform: none; }
  .js .shutter[data-reveal] img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1200ms var(--ease-in-out), transform 1600ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in img { clip-path: inset(0); transform: none; }

  /* signature: the name settles as the first screen leaves */
  @supports (animation-timeline: view()) {
    .hero__name { animation: name-settle linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .verb > img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .bleed img, .case__lead--bleed img { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media > img, .scene__sticky > img { transition: opacity 400ms ease; transform: none !important; }
  .lightbox img { animation: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes open-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes name-settle { to { transform: scale(0.94); } }
@keyframes drift { from { transform: scale(1.08) translateY(-3%); } to { transform: scale(1.08) translateY(3%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- smaller desktops ---------- */
@media (max-width: 80rem) {
  .site-nav__phone { display: none; }
}

/* ---------- tablet and phone: their own composition ---------- */
@media (max-width: 62rem) {
  :root { --header: 64px; }
  .site-nav { display: none; }
  .site-header__logo img { width: 96px; }
  .site-header__mobile { display: flex; gap: 0.5rem; }
  .site-header__mobile a, .site-header__mobile button {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1rem;
    font-weight: 500; font-size: var(--step-small); text-decoration: none;
    transition: transform var(--t-press) var(--ease-out);
  }
  .site-header__mobile a { background: var(--bg); }
  .site-header__mobile button { background: var(--ink); color: var(--sheet); }
  .site-header__mobile a:active, .site-header__mobile button:active { transform: scale(0.97); }

  .menu-sheet[open] {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 60;
    width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0 var(--margin) 1.5rem;
    border: 0; background: var(--sheet); color: var(--ink);
    animation: sheet-in 260ms var(--ease-out);
  }
  .menu-sheet[data-closing] { animation: sheet-out 160ms var(--ease-out) forwards; }
  .menu-sheet::backdrop { background: transparent; }
  .menu-sheet__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header); }
  .menu-sheet__top img { width: 96px; }
  .menu-sheet__close { min-height: 2.75rem; padding: 0 1rem; background: var(--bg); font-weight: 500; font-size: var(--step-small); }
  .menu-sheet__list { margin-top: 1.5rem; display: grid; }
  .menu-sheet__list a { display: block; padding-block: 0.35rem; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.05; text-decoration: none; }
  .menu-sheet__foot { margin-top: auto; display: grid; gap: 1.25rem; padding-top: 2rem; }

  .hero { height: auto; min-height: 0; }
  .hero__media { flex: none; height: 50svh; }
  .hero--page .hero__media { height: 44svh; min-height: 16rem; }
  .hero__band { padding-top: 1.5rem; gap: 2.25rem; }
  .hero__row { flex-direction: column; gap: 1.5rem; }
  .hero__actions { justify-content: flex-start; }
  .hero__name { white-space: normal; }
  .hero__caption { right: var(--gap); bottom: var(--gap); }

  .two { display: block; }
  .two__head { margin-bottom: 3rem; }
  .two__col { margin-bottom: 3rem; padding-right: 0; }
  .two__facts { grid-template-columns: 1fr 1fr; margin-top: 1rem; }
  .two__facts > div { padding: 1.5rem 1.25rem; }
  .seller__head { grid-column: 1 / -1; }
  .seller__stats { grid-template-columns: 1fr; gap: 2rem; }
  .seller__stats dt { font-size: clamp(3.5rem, 18vw, 5rem); }
  .seller__value { grid-template-columns: 1fr; }
  .scene { margin-top: var(--section); }
  .scene__sticky { position: relative; height: auto; overflow: visible; background: var(--dark); }
  .scene__sticky > img { position: relative; height: 46svh; opacity: 1; transform: none; }
  .scene__sticky > img:not(:first-of-type) { display: none; }
  .scene__panel { position: static; width: auto; padding: 2.5rem var(--margin) 3rem; }
  .js .scene__item:not(.is-active) .scene__desc { display: block; }
  .scene__item a { color: var(--dark-ink); }
  .scene__markers { display: none; }

  .proj { display: block; }
  .proj + .proj { margin-top: 5.5rem; }
  .proj__media { aspect-ratio: 4 / 3; }
  .proj__info { margin: -3rem 0 0 1.25rem; padding: 1.5rem 1.25rem; }
  .proj--right .proj__info { margin: -3rem 1.25rem 0 0; }
  .br-narrow { display: inline; }

  .verb { height: auto; overflow: clip; }
  .verb > img { position: relative; height: 62svh; }
  .verb__word { position: absolute; top: 31svh; left: 0; right: 0; font-size: 19vw; }
  .verb__text { position: static; max-width: none; padding: 1.25rem var(--margin) 3rem; background: none; }

  .about { display: block; }
  .about__photo { margin-top: 3rem; aspect-ratio: 4 / 3; overflow: visible; }
  .about__photo--portrait, .about__photo--portrait img { aspect-ratio: 698 / 885; }
  .scene__sticky > img.scene__portrait { position: relative; inset: auto; width: 100%; max-width: none; height: 60svh; object-position: 50% 25%; }
  .about__photo img { aspect-ratio: 4 / 3; }
  .about__note { position: static; width: auto; padding: 1.25rem 0 0; background: none; }
  .about__side { margin-top: 3rem; }
  .about__map { aspect-ratio: 3 / 2; }

  .visit { height: auto; min-height: 0; overflow: visible; padding-bottom: 2rem; }
  .visit > img { position: relative; height: 70svh; }
  .visit__card { position: relative; top: auto; right: auto; margin: -5rem var(--margin) 0; width: auto; }
  .visit__card .button { min-height: 3.5rem; }

  .site-footer { grid-template-columns: 1fr; min-height: 0; }
  .site-footer__photo { height: 46svh; }
  .site-footer__field { padding: 3rem var(--margin) 2rem; }
  .site-footer__blocks { grid-template-columns: 1fr; }

  .narrow > *, .plain__title, .plain__body { grid-column: 1 / -1; }
  .bleed { height: 56svh; }
  .duo { display: grid; grid-template-columns: 1fr; row-gap: 2rem; }
  .duo figure:first-child, .duo figure:last-child { grid-column: 1; margin-bottom: 0; }
  .duo figure:last-child { width: 72%; justify-self: end; }
  .case__lead--bleed { height: 56svh; }
  .case__title, .case__text { grid-column: 1 / -1; }
  .case__photos { display: grid; grid-template-columns: 1fr; row-gap: 1.5rem; }
  .case__photos button:nth-child(n) { grid-column: 1; margin-top: 0; }
  .case__photos button:nth-child(2) { width: 72%; justify-self: end; }
  .contact__form, .contact__aside { grid-column: 1 / -1; }
  .legal__body { grid-column: 1 / -1; }
  .form__row--2 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 0.15rem; }
  .facts dd + dt { margin-top: 0.85rem; }
  .guide { padding: 5rem var(--margin); }
  .guide__intro, .guide__list { grid-column: 1 / -1; position: static; }
  .guide__summary { padding: 1.1rem 1.1rem; }
  .guide__panel { padding: 0 1.1rem 1.5rem; }
}

@media (max-width: 30rem) {
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__actions .button { width: 100%; }
}

@keyframes sheet-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .menu-sheet[open], .menu-sheet[data-closing] { animation-name: fade; }
}

/* ---------- chat assistant (demo) ---------- */
.chat { position: fixed; right: clamp(1rem, 2vw, 1.75rem); bottom: clamp(1rem, 2vw, 1.75rem); z-index: 70; display: grid; justify-items: end; gap: 0.75rem; }
.chat__launcher {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 3.5rem; padding: 0 1.25rem;
  background: var(--ink); color: var(--sheet); font-weight: 500;
  box-shadow: 0 14px 30px -14px rgb(29 31 27 / 0.55); /* floats over the page. taste-skill-ignore */
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.chat__launcher:active { transform: scale(0.96); }
.chat__launcher[aria-expanded="true"] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .chat__launcher:hover { background: #000; }
}

/* the "text message" that pops up once */
.chat__teaser { position: relative; max-width: 17rem; transform-origin: 100% 100%; }
.chat__teaser[hidden] { display: none; }
.chat__teaser-body {
  display: block; text-align: left; padding: 1rem 1.15rem; background: var(--sheet); color: var(--ink);
  font-size: var(--step-small); line-height: 1.45;
  box-shadow: 0 18px 40px -18px rgb(29 31 27 / 0.45); /* floats over the page. taste-skill-ignore */
}
.chat__teaser-body strong { display: block; font-weight: 500; font-size: var(--step-body); margin-bottom: 0.2rem; }
.chat__teaser-body::after { content: ""; position: absolute; right: 1.5rem; bottom: -8px; width: 16px; height: 16px; background: var(--sheet); transform: rotate(45deg); }
.chat__teaser-close { position: absolute; top: -0.6rem; left: -0.6rem; z-index: 1; width: 1.75rem; height: 1.75rem; background: var(--ink); color: var(--sheet); font-size: 1rem; line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .chat__teaser:not([hidden]) { animation: teaser-in 520ms var(--ease-out); }
}
@keyframes teaser-in { from { opacity: 0; transform: translateY(10px) scale(0.92); } }

/* panel */
.chat__panel {
  width: min(24rem, calc(100vw - 2rem)); height: min(34rem, calc(100svh - 7rem));
  display: grid; grid-template-rows: auto 1fr auto auto; background: var(--sheet);
  box-shadow: 0 26px 60px -24px rgb(29 31 27 / 0.55); /* a real overlay. taste-skill-ignore */
  transform-origin: 100% 100%;
}
.chat__panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .chat__panel:not([hidden]) { animation: chat-in 260ms var(--ease-out); }
}
@keyframes chat-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
.chat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1rem 0.9rem 1.25rem; background: var(--ink); color: var(--sheet); }
.chat__title { font-weight: 500; }
.chat__sub { font-size: var(--step-small); color: var(--dark-muted); }
.chat__close { width: 2.25rem; height: 2.25rem; flex: none; background: rgb(255 255 255 / 0.1); color: var(--sheet); font-size: 1.25rem; line-height: 1; }
.chat__log { overflow-y: auto; padding: 1.1rem 1rem; display: grid; align-content: start; gap: 0.6rem; overscroll-behavior: contain; }
.chat__msg { max-width: 88%; padding: 0.7rem 0.9rem; font-size: var(--step-small); line-height: 1.5; }
.chat__msg--bot { justify-self: start; background: var(--bg); }
.chat__msg--user { justify-self: end; background: var(--accent); color: var(--accent-ink); }
.chat__msg a { font-weight: 500; }
.chat__msg-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin-top: 0.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .chat__msg { animation: msg-in 260ms var(--ease-out); }
}
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.chat__typing { display: inline-flex; gap: 4px; padding: 0.85rem 0.9rem; background: var(--bg); justify-self: start; }
.chat__typing span { width: 6px; height: 6px; background: var(--muted); animation: typing 1s infinite ease-in-out; }
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0 1rem 0.75rem; }
.chat__chip { padding: 0.45rem 0.7rem; background: var(--bg); font-size: var(--step-small); transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chat__chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .chat__chip:hover { background: var(--accent); }
}
.chat__form { display: grid; grid-template-columns: 1fr auto; }
.chat__input { min-height: 3.25rem; padding: 0 1rem; border: 0; background: var(--bg); font-size: max(1rem, var(--step-small)); }
.chat__input:focus { outline: 2px solid var(--ink); outline-offset: -2px; }
.chat__send { padding: 0 1.1rem; background: var(--ink); color: var(--sheet); font-weight: 500; }

@media (max-width: 62rem) {
  .chat { right: 0.75rem; bottom: 0.75rem; }
  .chat__launcher span { display: none; }
  .chat__launcher { min-height: 3.25rem; padding: 0 1rem; }
  .chat__panel { width: calc(100vw - 1.5rem); height: min(32rem, calc(100svh - 6rem)); }
}

/* ---------- demo password screen (a privacy screen for the preview, not real security) ---------- */
.gate { display: none; }
html.locked body { overflow: hidden; }
html.locked body > :not(.gate) { visibility: hidden; }
html.locked .gate { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: var(--margin); background: var(--bg); }
.gate__card { width: min(100%, 26rem); display: grid; gap: 1rem; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--sheet); }
.gate__logo { width: 120px; margin-bottom: 0.5rem; }
.gate__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 0.95; letter-spacing: -0.01em; }
.gate__card .button { width: 100%; }
.gate__error { color: #a3271b; font-size: var(--step-small); }
.gate__error:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .gate__card.is-wrong { animation: gate-shake 360ms var(--ease-out); }
}
@keyframes gate-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
