/* Georgien Makler
   Direction (taste-skill draw, seed 1050798851): "The place carries it".
   Idea: every page is named by a Georgian word, set like a film title on the
   photograph of the place, with its German meaning beside it. The site teaches
   the first words of the new home: sakhli, zghva, ghvino, mta, ndoba, gza, gamarjoba.
   Colour: whitewash and the blue of Tbilisi's wooden balconies. One light world, chosen
   deliberately: the courtyards are white and blue in daylight.
   Type: EB Garamond for every German word, Noto Serif Georgian for the Mkhedruli. */

:root {
  color-scheme: light;
  --paper: #EDEDE7;
  --paper-2: #E2E2D9;
  --ink: #1C3F73;
  --ink-soft: #4A6190;
  --field: #183660;
  --field-ink: #F1F1EC;
  --field-soft: #BDC9DD;
  --photo-ink: #F6F5F1;
  --note: #E6DFC6;
  --note-ink: #3A3216;

  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ka: "Noto Serif Georgian", "Sylfaen", "DejaVu Serif", serif;

  --step-small: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);
  --step-body: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.375rem, 1.18rem + 0.8vw, 1.875rem);
  --step-head: clamp(2.25rem, 1.35rem + 3.4vw, 4.5rem);
  --step-mono: clamp(5.5rem, 19vw, 22rem);

  --m: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --col: calc((100vw - 2 * var(--m) - 11 * var(--gutter)) / 12);
  --gap-section: clamp(6rem, 4rem + 8vw, 13rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--ink) var(--paper-2); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-body);
  line-height: 1.55;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ink);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.06em; text-underline-offset: 0.18em; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; letter-spacing: -0.012em; line-height: 1.04; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }
[lang="ka"] { font-family: var(--ka); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; z-index: 100; left: 1rem; top: 1rem; padding: 0.7rem 1.1rem; background: var(--ink); color: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; outline-color: var(--ink); }
::placeholder { color: var(--ink-soft); opacity: 1; }

/* frame */
.wrap {
  padding-left: max(var(--m), env(safe-area-inset-left, 0px));
  padding-right: max(var(--m), env(safe-area-inset-right, 0px));
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.t-small { font-size: var(--step-small); line-height: 1.45; }
.t-lead { font-size: var(--step-lead); line-height: 1.32; letter-spacing: -0.005em; }
.t-head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.015em; }
.soft { color: var(--ink-soft); }

/* header */
.site-head { position: relative; z-index: 30; }
.site-head .bar { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding-block: clamp(1rem, 1.6vw, 1.5rem); }
.wordmark { font-size: var(--step-body); font-weight: 600; text-decoration: none; letter-spacing: 0; white-space: nowrap; }
.nav { display: flex; align-items: baseline; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav a { text-decoration: none; font-size: var(--step-body); }
.nav a.link { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
.nav a.link[aria-current="page"] { text-decoration: underline; text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .nav a.link:hover { text-decoration-color: currentColor; } }
.menu-btn { display: none; font: inherit; font-size: var(--step-body); background: none; border: 0; color: inherit; padding: 0.5rem 0; min-height: 44px; cursor: pointer; }
.sheet-close { display: inline-block; }
.on-photo .site-head { position: absolute; inset: 0 0 auto 0; color: var(--photo-ink); }
.on-photo .site-head .bar { padding-top: max(clamp(1rem, 1.6vw, 1.5rem), env(safe-area-inset-top, 0px)); }
.sheet { position: fixed; inset: 0; z-index: 60; background: var(--field); color: var(--field-ink); padding: max(1.25rem, env(safe-area-inset-top, 0px)) max(var(--m), env(safe-area-inset-right, 0px)) 2rem max(var(--m), env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 2rem; overflow-y: auto; overscroll-behavior: contain; }
.sheet .sheet-top { display: flex; justify-content: space-between; align-items: baseline; }
.sheet ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.sheet a { font-size: clamp(2rem, 9vw, 3rem); text-decoration: none; line-height: 1.15; }
.sheet .ka-line { font-family: var(--ka); font-size: var(--step-small); color: var(--field-soft); display: block; }
@media (max-width: 820px) {
  .nav .link { display: none; }
  .menu-btn { display: inline-block; }
  .nav .btn { display: none; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.7rem 1.4rem; font: inherit; font-size: var(--step-body); font-weight: 500; line-height: 1.1;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ink); color: var(--paper);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-light { background: var(--photo-ink); color: var(--field); }
.btn-light:focus-visible { outline-color: var(--photo-ink); }
.sheet :focus-visible, .field-band :focus-visible, .post-wrap > .wrap > :focus-visible { outline-color: var(--field-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--field); }
  .btn-light:hover { background: #FFFFFF; }
}
.textlink { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 0.06em; transition: text-decoration-thickness var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .textlink:hover { text-decoration-thickness: 0.12em; } }

/* monument: a Georgian word set like a film title */
.monument { font-family: var(--ka); font-weight: 300; font-size: var(--step-mono); line-height: 1; letter-spacing: -0.01em; margin: 0; white-space: nowrap; max-width: 100%; min-width: 0; flex: 0 1 auto; }
.monument .ch { display: inline-block; }
.gloss { display: flex; flex-direction: column; gap: 0.1rem; font-size: var(--step-small); line-height: 1.35; }
.gloss i { font-style: italic; }

/* ---------- HOME: hero, a slow crossfade of four places ---------- */
.hero { position: relative; height: 100svh; min-height: 34rem; max-height: 68rem; color: var(--photo-ink); background: #2a2f36; overflow: clip; }
.hero-slides { position: absolute; inset: 0; margin: 0; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1600ms ease; }
.hero-slides img.is-on { opacity: 1; }
.hero-scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 18, 32, 0.74) 0%, rgba(10, 18, 32, 0.6) 40%, rgba(10, 18, 32, 0) 68%), /* taste-skill-ignore: neutral scrim over a photograph */
    linear-gradient(0deg, rgba(10, 18, 32, 0.66) 0%, rgba(10, 18, 32, 0) 40%), /* taste-skill-ignore: neutral scrim over a photograph */
    linear-gradient(180deg, rgba(10, 18, 32, 0.6) 0%, rgba(10, 18, 32, 0) 20%); } /* taste-skill-ignore: neutral scrim over a photograph */
.hero-copy { position: absolute; z-index: 2; left: 0; right: 0; top: 21%; }
.hero-copy .inner { max-width: calc(7 * var(--col) + 6 * var(--gutter)); }
.hero h1 { font-size: clamp(2.05rem, 1.15rem + 3.5vw, 4.25rem); line-height: 1.04; }
.hero h1 .line { white-space: nowrap; }
.hero-title .monument { font-size: min(19vw, 30svh); line-height: 0.92; margin-bottom: -0.04em; }
.hero .lede { margin-top: 1.25rem; max-width: 40ch; font-size: var(--step-body); line-height: 1.5; }
.hero .actions { margin-top: 1.75rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.hero-title { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-bottom: clamp(0.25rem, 1vw, 1rem); display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.hero-title .side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.9rem; padding-bottom: clamp(1rem, 2.4vw, 2.25rem); text-align: right; }
.hero-title .gloss { align-items: flex-end; }
.slide-ctl { font: inherit; font-size: var(--step-small); background: none; color: inherit; border: 0; padding: 0.35rem 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(246, 245, 241, 0.45); text-underline-offset: 0.2em; min-height: 44px; }
.slide-count { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .hero { height: 92svh; min-height: 36rem; }
  .hero-copy { top: 15%; }
  .hero-copy .inner { max-width: none; }
  .hero-scrim { background: linear-gradient(180deg, rgba(10, 18, 32, 0.62) 0%, rgba(10, 18, 32, 0.5) 45%, rgba(10, 18, 32, 0.3) 65%, rgba(10, 18, 32, 0.66) 100%); } /* taste-skill-ignore: neutral scrim over a photograph */
  .hero h1 .line { white-space: normal; }
  .hero-title .monument { font-size: 31vw; }
  .hero-title .place-line { display: none; }
  .hero-title { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero-title .side { order: -1; text-align: left; padding-bottom: 0.25rem; flex-direction: row; gap: 1.25rem; align-items: baseline; }
  .hero-title .gloss { align-items: flex-start; }
}

/* ---------- HOME: intro, a headline crossing onto a photograph ---------- */
.cross { position: relative; padding-top: clamp(5rem, 9vw, 9rem); }
.cross-grid {
  position: relative; container-type: inline-size; min-height: clamp(48rem, 74vw, 64rem);
  --hs: clamp(2.6rem, 1.2rem + 4.4vw, 5.6rem);
  --pw: min(46vw, 44rem);
  --pt: calc(var(--hs) * 1.36);
}
.cross-photo { position: absolute; right: calc(-1 * var(--m)); top: var(--pt); width: var(--pw); aspect-ratio: 2 / 3; overflow: clip; background: #6d6478; }
.cross-photo img { width: 100%; height: 100%; object-fit: cover; }
.cross-head { position: relative; z-index: 2; margin: 0; font-weight: 500; font-size: var(--hs); line-height: 1.04; letter-spacing: -0.018em; }
.cross-head .l { display: block; white-space: nowrap; }
.cross-head .l2 { padding-left: calc(3 * var(--col) + 3 * var(--gutter)); }
.cross-head:not(.cross-head-copy) {
  clip-path: polygon(0 0, 100% 0, 100% var(--pt), calc(100cqw + var(--m) - var(--pw)) var(--pt), calc(100cqw + var(--m) - var(--pw)) 100%, 0 100%);
}
.cross-head-copy { position: absolute; z-index: 3; inset: 0 0 auto 0; color: var(--photo-ink); pointer-events: none; clip-path: inset(var(--pt) 0 0 calc(100cqw + var(--m) - var(--pw))); }
.cross-text { position: relative; z-index: 2; margin-top: clamp(2rem, 4vw, 3.5rem); max-width: calc(5 * var(--col) + 4 * var(--gutter)); }
.cross-aside { position: relative; z-index: 2; margin-top: 1.25rem; max-width: calc(4 * var(--col) + 3 * var(--gutter)); }
.cross-small { position: relative; z-index: 2; margin-top: clamp(3rem, 7vw, 6rem); width: calc(4 * var(--col) + 3 * var(--gutter)); }
.cross-small img { width: 100%; aspect-ratio: 9 / 10; object-fit: cover; }
.cross-small figcaption { margin-top: 0.75rem; }
@media (max-width: 820px) {
  .cross-grid { min-height: 0; display: flex; flex-direction: column; --hs: clamp(2.2rem, 9.5vw, 3.4rem); }
  .cross-head .l { white-space: normal; }
  .cross-head .l2 { padding-left: 0; }
  .cross-head:not(.cross-head-copy) { clip-path: none; }
  .cross-photo { position: relative; top: auto; right: calc(-1 * var(--m)); width: 78%; align-self: flex-end; margin-top: 1.75rem; order: 2; }
  .cross-head-copy { display: none; }
  .cross-text { margin-top: 2rem; max-width: none; order: 3; }
  .cross-aside { max-width: none; order: 4; }
  .cross-small { order: 5; width: 58%; margin-top: 2.5rem; }
}

/* ---------- HOME: who you deal with ---------- */
.about { padding-top: var(--gap-section); }
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.75rem; align-items: start; }
.about-head { grid-column: 1 / span 4; }
.about-head h2 { font-size: var(--step-lead); margin-bottom: 1.25rem; }
.route { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem 0.9rem; margin-bottom: 1.75rem; font-size: var(--step-small); color: var(--ink); }
.flag-item { display: inline-flex; align-items: center; gap: 0.55rem; }
.flag { display: block; height: 2.1rem; width: auto; flex: none; }
.route-arrow { width: 2.25rem; height: auto; color: var(--ink-soft); flex: none; }
.about-ka { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.2; color: var(--ink); margin-bottom: 0.35rem; }
.about-body { grid-column: 5 / span 7; display: flex; flex-direction: column; gap: 1.1rem; max-width: 46rem; }
.about-statement { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.25rem); line-height: 1.22; letter-spacing: -0.01em; }
.about-sign { margin-top: 0.25rem; }
@media (max-width: 820px) { .about-head, .about-body { grid-column: 1 / -1; } }

/* ---------- HOME: drag row of four regions ---------- */
.rowhead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: clamp(1.25rem, 2.2vw, 2rem); }
.drag { display: flex; gap: 0.75rem; height: clamp(26rem, 68svh, 46rem); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding-left: max(6vw, var(--m)); padding-right: var(--m); cursor: grab; }
.drag::-webkit-scrollbar { display: none; }
.drag.is-grabbing { cursor: grabbing; scroll-snap-type: none; }
.drag.is-grabbing a { pointer-events: none; }
.drag:focus-visible { outline-offset: -4px; }
.mod { flex: none; height: 100%; scroll-snap-align: start; display: flex; flex-direction: column; gap: 0.75rem; text-decoration: none; }
.mod:focus-visible, .mod-pair .cell:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.mod figure { flex: 1; min-height: 0; overflow: clip; display: flex; flex-direction: column; }
.mod img { width: 100%; flex: 1; min-height: 0; object-fit: cover; transition: transform 600ms var(--ease-soft); -webkit-user-drag: none; user-select: none; }
.mod figcaption { flex: none; font-size: var(--step-small); padding-top: 0.6rem; }
.mod-tall { width: calc((clamp(26rem, 68svh, 46rem) - 2.2rem) * 0.75); }
.mod-wide { width: calc((clamp(26rem, 68svh, 46rem) - 2.2rem) * 1.6); }
.mod-pair { width: calc(((clamp(26rem, 68svh, 46rem) - 0.75rem) / 2 - 2.2rem) * 1.333); }
.mod-pair .cell { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: clip; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a.mod:hover img, .mod-pair .cell:hover img { transform: scale(1.035); } }
@media (max-width: 760px) {
  .drag { height: 62svh; gap: 0.5rem; padding-left: 1.25rem; }
  .mod-tall { width: 72vw; }
  .mod-wide { width: 88vw; }
  .mod-wide figure { flex: 0 1 auto; margin-block: auto; }
  .mod-wide img { aspect-ratio: 4 / 3; flex: none; }
  .mod-pair { width: 64vw; }
}

/* ---------- HOME: one scene, stepping statements ---------- */
.stage { position: relative; height: 420vh; }
.stage-pin { position: sticky; top: 0; height: 100svh; overflow: clip; color: var(--photo-ink); }
.stage-pin > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.stage-scrim { position: absolute; inset: 0 0 auto 0; height: 52%; background: linear-gradient(180deg, rgba(10, 18, 32, 0.8) 0%, rgba(10, 18, 32, 0.62) 60%, rgba(10, 18, 32, 0) 100%); } /* taste-skill-ignore: neutral scrim over a photograph */
.stage-list { position: absolute; z-index: 2; top: clamp(5rem, 11vh, 8rem); left: 50%; transform: translateX(-50%); width: min(40rem, 92vw); display: flex; flex-direction: column; align-items: center; gap: 0.9rem; text-align: center; }
.stage-list h2 { font-size: var(--step-small); font-weight: 500; letter-spacing: 0.01em; color: var(--photo-ink); }
.stage-list ol { list-style: none; display: flex; flex-direction: column; align-items: inherit; gap: 0.55rem; }
.stage-list li { font-size: var(--step-lead); line-height: 1.2; color: color-mix(in srgb, var(--field-soft) 78%, transparent); transition: color 400ms ease; }
.stage-list li a { text-decoration: none; }
.stage-list li.is-on { color: var(--photo-ink); }
.stage-pics { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stage-pic { position: absolute; margin: 0; width: clamp(10rem, 15vw, 15rem); opacity: 0; transform: translateY(2.5rem); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.stage-pic img { width: 100%; object-fit: cover; }
.stage-pic.is-on { opacity: 1; transform: none; }
.stage-pic.left { left: max(6vw, var(--m)); top: 54%; }
.stage-pic.right { right: max(6vw, var(--m)); top: 38%; }
.stage-pic.left img { aspect-ratio: 3 / 4; }
.stage-pic.right img { aspect-ratio: 4 / 3; }
.stage-marks { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; }
.stage-marks span { flex: none; height: 70vh; }
.stage-marks span:last-child { flex: 1; }
.stage-more { position: absolute; z-index: 2; bottom: clamp(1.5rem, 4vh, 2.5rem); left: 50%; transform: translateX(-50%); }
@media (max-width: 760px) {
  .stage { height: 460vh; }
  .stage-scrim { inset: auto 0 0 0; height: 62%; background: linear-gradient(0deg, rgba(10, 18, 32, 0.78) 0%, rgba(10, 18, 32, 0.45) 70%, rgba(10, 18, 32, 0) 100%); } /* taste-skill-ignore: neutral scrim over a photograph */
  .stage-list { top: auto; bottom: 6.5rem; left: var(--m); transform: none; align-items: flex-start; text-align: left; width: calc(100% - 2 * var(--m)); }
  .stage-list li { font-size: 1.0625rem; }
  .stage-pic { width: 44vw; }
  .stage-pic.left { display: none; }
  .stage-pic.right { top: max(1rem, env(safe-area-inset-top, 0px)); right: 1rem; }
  .stage-more { left: var(--m); transform: none; }
}

/* ---------- HOME: a figure on the photograph's edge ---------- */
.figure-band { position: relative; height: 88svh; min-height: 30rem; color: var(--photo-ink); overflow: clip; }
.figure-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.figure-band .scrim { position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(0deg, rgba(10, 18, 32, 0.66), rgba(10, 18, 32, 0)); } /* taste-skill-ignore: neutral scrim over a photograph */
.figure-band .head { position: absolute; z-index: 2; top: clamp(1.25rem, 3vw, 2.5rem); left: 0; right: 0; }
.figure-band .head h2 { font-size: var(--step-lead); font-weight: 500; color: var(--ink); }
.figure-band .foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; padding-bottom: 1.25rem; }
.big-figure { font-size: clamp(6rem, 17vw, 17.5rem); line-height: 0.8; letter-spacing: -0.03em; font-weight: 400; font-variant-numeric: tabular-nums lining-nums; margin: 0; white-space: nowrap; }
.big-figure .unit { font-size: 0.42em; letter-spacing: 0; margin-left: 0.08em; }
.figure-band .note { max-width: 26ch; text-align: right; font-size: var(--step-body); padding-bottom: 0.75rem; }
.figures-more { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: 2.5rem; }
.figures-more .f { grid-column: span 6; display: flex; gap: 1.25rem; align-items: baseline; }
.figures-more .n { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1; font-variant-numeric: lining-nums; white-space: nowrap; }
@media (max-width: 760px) {
  .figure-band { height: 80svh; }
  .figure-band .foot { flex-direction: column-reverse; align-items: flex-start; gap: 0.75rem; }
  .figure-band .note { text-align: left; padding-bottom: 0; }
  .big-figure { font-size: 30vw; }
  .figures-more .f { grid-column: 1 / -1; flex-direction: column; gap: 0.35rem; margin-bottom: 1.5rem; }
}

/* rolling figures */
.roll__digits { display: inline-flex; font-variant-numeric: tabular-nums; line-height: 1; }
.roll__col { display: inline-block; height: 1em; overflow: clip; }
.roll__strip { display: flex; flex-direction: column; transform: translateY(calc(var(--d) * -1em)); }
.roll__strip > span { height: 1em; line-height: 1; }
.roll.roll-zero .roll__strip { transform: none; transition: none; }
.roll.is-rolling .roll__strip { transition: transform 1100ms var(--ease-expo) calc(var(--i) * 70ms); }

/* ---------- HOME: visit card on a photograph ---------- */
.visit { position: relative; min-height: max(100svh, 34rem); overflow: clip; }
.visit > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.visit-card { position: absolute; z-index: 2; top: 3.75rem; right: max(var(--m), 3.75rem); width: min(25rem, calc(100% - 2 * var(--m))); background: var(--paper); color: var(--ink); padding: 2rem 2rem 0; border-radius: 8px; overflow: clip; display: flex; flex-direction: column; gap: 1.1rem; }
.visit-card h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 400; }
.visit-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: 0.45rem; font-size: var(--step-small); }
.visit-card dt { color: var(--ink-soft); }
.visit-card dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.visit-card .btn { margin: 0.6rem -2rem 0; min-height: 3.25rem; width: calc(100% + 4rem); }
.visit-card .btn:focus-visible { outline-color: var(--paper); outline-offset: -5px; }
@media (max-width: 760px) {
  .visit { min-height: 0; display: flex; flex-direction: column; overflow: visible; }
  .visit > img { position: relative; height: 70svh; }
  .visit-card { position: relative; top: auto; right: auto; margin: -5rem var(--m) 0; width: auto; }
  .visit-card .btn { min-height: 3.5rem; }
}

/* ---------- postcard footer ---------- */
.post-wrap { background: var(--field); padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.postcard { position: relative; background: var(--paper); color: var(--ink); margin-inline: calc(var(--col) + var(--gutter)); min-height: 26rem; padding: clamp(2.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem) 1.25rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 5rem); row-gap: 2rem; }
.postcard .scallops { position: absolute; left: 0; right: 0; top: -24px; height: 25px; width: 100%; display: block; }
.postcard .scallops.m { display: none; }
.postcard .pc-title { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); line-height: 1.1; margin-bottom: 1rem; }
.postcard .pc-left p + p { margin-top: 0.6rem; }
.postcard .pc-nav { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 1.75rem; }
.postcard .pc-right { position: relative; padding-top: 7.5rem; }
.postcard address { font-style: normal; display: flex; flex-direction: column; gap: 0.75rem; font-size: var(--step-body); }
.postcard address a, .postcard address span { overflow-wrap: anywhere; }
.stamp { position: absolute; top: 0; right: 0; width: 5.5rem; padding: 6px; background: var(--paper-2); }
.stamp img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.imprint { grid-column: 1 / -1; align-self: end; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; font-size: var(--step-small); color: var(--ink-soft); padding-top: 1.5rem; }
@media (max-width: 760px) {
  .postcard { margin-inline: 0; grid-template-columns: 1fr; padding-top: 2.5rem; }
  .postcard .scallops.d { display: none; }
  .postcard .scallops.m { display: block; }
  .postcard .pc-right { padding-top: 0; }
  .stamp { top: -9.5rem; width: 4rem; }
}

/* ---------- inner pages: the opener ---------- */
.opener { padding-top: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.opener .monument { color: var(--ink); line-height: 1.02; }
.opener .monument.long { font-stretch: 78%; }
.opener-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(1.25rem, 2.5vw, 2.25rem); align-items: start; row-gap: 1.5rem; }
.opener-row .gloss { grid-column: 1 / span 3; padding-top: 0.6rem; }
.opener-row .copy { grid-column: 5 / span 8; }
.opener-row h1 { font-size: var(--step-head); max-width: 16ch; }
.opener-row .lede { margin-top: 1.25rem; font-size: var(--step-lead); line-height: 1.32; max-width: 34ch; }
@media (max-width: 760px) {
  .opener-row .gloss, .opener-row .copy { grid-column: 1 / -1; }
  .opener .monument { font-size: 26vw; }
  .opener .monument.long { font-size: 21vw; }
}

/* ---------- REGIONEN: index with preview ---------- */
.rindex { list-style: none; position: relative; }
.rindex li { position: relative; }
.rindex a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: baseline; padding-block: clamp(0.9rem, 1.6vw, 1.4rem); text-decoration: none; }
.rindex li:nth-child(even) a { background: var(--paper-2); }
.rindex .ka { grid-column: 1 / span 3; font-family: var(--ka); font-weight: 300; font-size: var(--step-lead); color: var(--ink-soft); padding-left: 0.75rem; }
.rindex .de { grid-column: 4 / span 4; font-size: var(--step-head); line-height: 1; transition: transform 400ms var(--ease-out); }
.rindex .what { grid-column: 9 / span 4; padding-right: 0.75rem; }
.rindex .peek { position: absolute; z-index: 5; right: calc(3 * var(--col) + 4 * var(--gutter)); top: 50%; width: clamp(12rem, 18vw, 18rem); aspect-ratio: 4 / 5; transform: translateY(-50%) scale(0.96); opacity: 0; pointer-events: none; transition: opacity 260ms ease, transform 420ms var(--ease-out); overflow: clip; }
.rindex .peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .rindex a:hover .de, .rindex a:focus-visible .de { transform: translateX(0.6rem); }
  .rindex li:hover .peek, .rindex li:focus-within .peek { opacity: 1; transform: translateY(-50%) scale(1); }
}
@media (max-width: 820px) {
  .rindex a { grid-template-columns: 1fr; row-gap: 0.25rem; padding-inline: 0.75rem; }
  .rindex .ka, .rindex .de, .rindex .what { grid-column: 1; padding: 0; }
  .rindex .peek { display: none; }
}

/* region chapters */
.chapter { padding-top: var(--gap-section); scroll-margin-top: 1rem; }
.ch-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3vw, 2.75rem); }
.ch-title .monument { font-size: clamp(4.5rem, 15vw, 16rem); color: var(--ink); }
.ch-title .gloss { padding-bottom: clamp(0.75rem, 2vw, 2rem); text-align: right; align-items: flex-end; }
.uneven { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.uneven .p-tall { grid-column: 2 / span 4; }
.uneven .p-tall img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.uneven .p-wide { grid-column: 7 / span 6; margin-top: clamp(4rem, 9vw, 8rem); }
.uneven .p-wide img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.uneven .p-small { grid-column: 9 / span 3; margin-top: clamp(2rem, 4vw, 3.5rem); }
.uneven .p-small img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.uneven .txt { grid-column: 2 / span 5; margin-top: clamp(2.5rem, 5vw, 4rem); }
.uneven figcaption, .bleed figcaption, .strip figcaption { margin-top: 0.6rem; font-size: var(--step-small); color: var(--ink-soft); }
.uneven.mirror .p-tall { grid-column: 8 / span 4; grid-row: 1; }
.uneven.mirror .p-wide { grid-column: 1 / span 6; grid-row: 1; }
.uneven.mirror .txt { grid-column: 7 / span 5; }
.facts { margin-top: 1.75rem; display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; row-gap: 0.55rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
dl.facts { margin-bottom: 0; }
.txt p + p { margin-top: 1rem; }
.txt .t-lead + p { margin-top: 1.25rem; }
.bleed { margin-top: clamp(2.5rem, 5vw, 4rem); }
.bleed img { width: 100%; height: clamp(22rem, 62svh, 44rem); object-fit: cover; }
.bleed figcaption { padding-inline: max(var(--m), env(safe-area-inset-left, 0px)); }
.strip img { width: 100%; aspect-ratio: 21 / 7; object-fit: cover; }
.two { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); row-gap: 2rem; }
.two .a { grid-column: 1 / span 5; }
.two .b { grid-column: 7 / span 6; }
@media (max-width: 820px) {
  .uneven .p-tall, .uneven.mirror .p-tall { grid-column: 1 / span 9; grid-row: auto; }
  .uneven .p-wide, .uneven.mirror .p-wide { grid-column: 3 / -1; grid-row: auto; margin-top: 2rem; }
  .uneven .p-small { grid-column: 1 / span 7; }
  .uneven .txt, .uneven.mirror .txt { grid-column: 1 / -1; }
  .two .a, .two .b { grid-column: 1 / -1; }
  .ch-title .gloss { text-align: left; align-items: flex-start; }
  .ch-title .monument { font-size: 24vw; }
  .strip img { aspect-ratio: 16 / 9; }
}

/* ---------- LEISTUNGEN ---------- */
.svc-list { list-style: none; }
.svc-list a { display: block; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 5rem); line-height: 1.12; text-decoration: none; letter-spacing: -0.015em; padding-block: 0.1em; transition: translate 400ms var(--ease-out); }
.svc-list a span { font-family: var(--ka); font-weight: 300; font-size: 0.32em; color: var(--ink-soft); margin-left: 0.6em; vertical-align: 0.5em; letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) { .svc-list a:hover { translate: 0.5rem 0; } }
.svc { padding-top: var(--gap-section); scroll-margin-top: 1rem; }
.svc-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; align-items: start; }
.svc-row h2 { grid-column: 1 / span 4; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.75rem); }
.svc-row .body { grid-column: 5 / span 5; }
.svc-row .body p + p { margin-top: 1rem; }
.svc-row .incl { margin-top: 1.75rem; }
.svc-row .incl h3 { font-size: var(--step-body); font-weight: 600; margin-bottom: 0.6rem; }
.svc-row .incl ul { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.svc-row .incl li { padding-left: 1.3rem; position: relative; }
.svc-row .incl li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ink); }
.svc-row figure { grid-column: 10 / span 3; }
.svc-row figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.svc-row.wide-pic figure { grid-column: 5 / span 8; grid-row: 2; }
.svc-row.wide-pic figure img { aspect-ratio: 16 / 9; }
.svc-row.left-pic h2 { grid-column: 5 / span 8; }
.svc-row.left-pic .body { grid-column: 5 / span 6; }
.svc-row.left-pic figure { grid-column: 1 / span 3; grid-row: 1 / span 2; }
.svc-row figcaption { margin-top: 0.6rem; font-size: var(--step-small); color: var(--ink-soft); }
.note-block { background: var(--note); color: var(--note-ink); padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1rem; }
.note-block h2 { grid-column: 1 / span 4; font-size: var(--step-lead); }
.note-block p { grid-column: 5 / span 7; }
@media (max-width: 820px) {
  .svc-row h2, .svc-row .body, .svc-row figure, .svc-row.wide-pic figure, .svc-row.left-pic h2, .svc-row.left-pic .body, .svc-row.left-pic figure { grid-column: 1 / -1; grid-row: auto; }
  .svc-row figure { width: 72%; }
  .svc-row.wide-pic figure { width: 100%; }
  .note-block h2, .note-block p { grid-column: 1 / -1; }
}

/* field band with one action */
.field-band { background: var(--field); color: var(--field-ink); padding-block: clamp(4.5rem, 9vw, 8rem); margin-top: var(--gap-section); }
.field-band .grid { align-items: end; row-gap: 2rem; }
.field-band h2 { grid-column: 1 / span 7; font-size: var(--step-head); }
.field-band .act { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.field-band .act p { color: var(--field-soft); }
@media (max-width: 820px) { .field-band h2, .field-band .act { grid-column: 1 / -1; } }

/* ---------- ABLAUF: photographs down a diagonal ---------- */
.diag-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.diag-head h2 { grid-column: 7 / span 6; font-size: var(--step-head); max-width: 14ch; }
.diag-head p { grid-column: 7 / span 5; margin-top: 1.25rem; }
.steps { list-style: none; margin-top: clamp(-6rem, -8vw, -3rem); }
.step { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.step + .step { margin-top: clamp(-4rem, -5vw, -1rem); }
.step figure img { width: 100%; object-fit: cover; }
.step .stxt { max-width: 36ch; }
.step b { font-weight: 600; }
.marker { display: block; font-family: var(--ka); font-weight: 300; font-size: clamp(2.75rem, 2rem + 2.5vw, 4.25rem); line-height: 1; color: var(--ink-soft); margin-bottom: 0.75rem; }
.s1 figure { grid-column: 1 / span 4; }
.s1 figure img { aspect-ratio: 3 / 4; }
.s1 .stxt { grid-column: 6 / span 4; margin-top: clamp(9rem, 16vw, 15rem); }
.s2 figure { grid-column: 6 / span 3; grid-row: 1; }
.s2 figure img { aspect-ratio: 1 / 1; }
.s2 .stxt { grid-column: 9 / span 4; grid-row: 1; padding-top: 0.25rem; }
.s3 figure { grid-column: 8 / span 5; grid-row: 1; margin-top: clamp(8rem, 12vw, 11rem); }
.s3 figure img { aspect-ratio: 16 / 10; }
.s3 .stxt { grid-column: 3 / span 4; grid-row: 1; margin-top: clamp(8rem, 12vw, 11rem); justify-self: end; }
.s4 figure { grid-column: 2 / span 4; grid-row: 1; margin-top: clamp(8rem, 12vw, 11rem); }
.s4 figure img { aspect-ratio: 4 / 5; }
.s4 .stxt { grid-column: 7 / span 5; grid-row: 1; margin-top: clamp(14rem, 22vw, 20rem); }
.step figcaption { margin-top: 0.6rem; font-size: var(--step-small); color: var(--ink-soft); }
@media (max-width: 820px) {
  .diag-head h2, .diag-head p { grid-column: 1 / -1; }
  .steps { margin-top: 3rem; }
  .step, .step + .step { display: flex; flex-direction: column; gap: 1rem; margin-top: 0; margin-bottom: 3.5rem; }
  .step figure { margin-top: 0 !important; }
  .s1 figure { width: 100%; }
  .s2 figure { width: 62%; align-self: flex-end; }
  .s3 figure { width: 78%; }
  .s4 figure { width: 70%; align-self: flex-end; }
  .step .stxt { margin-top: 0 !important; justify-self: auto; }
}

/* ---------- FAQ: questions beside a tall photograph ---------- */
.faq { background: var(--paper-2); margin-top: var(--gap-section); padding-bottom: clamp(3rem, 6vw, 5rem); overflow: clip; }
.faq .grid { align-items: start; }
.faq-left { grid-column: 1 / span 5; padding-top: clamp(3.5rem, 7vw, 6rem); }
.faq-left h2 { font-size: clamp(2.25rem, 1.8rem + 1vw, 2.75rem); margin-bottom: 1.25rem; }
.faq-facts { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 2.5rem; }
.acc { display: flex; flex-direction: column; gap: 0.25rem; }
.acc details { padding-block: 0.6rem; }
.acc summary { list-style: none; cursor: pointer; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.375rem); line-height: 1.3; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding-block: 0.4rem; min-height: 44px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .chev { flex: none; width: 0.8rem; height: 0.8rem; position: relative; top: -0.1rem; transition: transform 320ms var(--ease-out); }
.acc summary .chev::before, .acc summary .chev::after { content: ""; position: absolute; top: 50%; width: 0.55rem; height: 2px; background: currentColor; }
.acc summary .chev::before { left: 0; transform: rotate(45deg); }
.acc summary .chev::after { right: 0; transform: rotate(-45deg); }
.acc details[open] .chev { transform: rotate(180deg); }
.acc .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.acc details[open] .ans { grid-template-rows: 1fr; }
.acc .ans > div { overflow: hidden; }
.acc .ans p { color: var(--ink-soft); padding-top: 0.4rem; padding-bottom: 0.6rem; max-width: 52ch; }
.faq-end { margin-top: 2.5rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.faq-right { grid-column: 7 / span 6; position: relative; margin-top: -2px; }
.faq-right .tall img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.faq-right .sq { position: absolute; left: -2.5rem; bottom: -2.5rem; width: 34%; border: 6px solid var(--paper-2); }
.faq-right .sq img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 820px) {
  .faq-left, .faq-right { grid-column: 1 / -1; }
  .faq-right { order: -1; margin-bottom: 3.5rem; }
  .faq-right .tall img { aspect-ratio: 4 / 5; }
  .faq-right .sq { left: auto; right: -0.5rem; width: 38%; }
}

/* ---------- KONTAKT ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 3rem; align-items: start; }
.contact form { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 1.4rem; }
.contact aside { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 2.75rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: var(--step-small); color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step-body); color: var(--ink); background: var(--paper-2);
  border: 0; border-bottom: 2px solid var(--ink-soft); border-radius: 0; padding: 0.75rem 0.85rem; min-height: 3rem; width: 100%;
  transition: border-color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); background: #F6F6F1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.field .req { color: var(--ink-soft); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #9B2C2C; }
.err { color: #9B2C2C; font-size: var(--step-small); min-height: 1.4em; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-done { background: var(--field); color: var(--field-ink); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.form-done:focus { outline: 2px solid var(--ink); outline-offset: 3px; }
.form-done a, .form-done .copy-btn { color: inherit; }
.form-done textarea { font: inherit; font-size: var(--step-small); width: 100%; min-height: 8rem; padding: 0.6rem; border: 0; background: var(--paper); color: var(--ink); resize: vertical; }
.plate-wrap h2, .channels h2 { font-size: var(--step-lead); margin-bottom: 1rem; }
.plate { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 1.6rem 1.5rem 1.3rem; position: relative; min-height: 9.5rem; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; }
.plate::before, .plate::after { content: ""; position: absolute; top: 0.85rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--field-soft); }
.plate::before { left: 0.85rem; }
.plate::after { right: 0.85rem; }
.plate .ka { font-family: var(--ka); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.15; overflow-wrap: anywhere; min-height: 1.15em; }
.plate .ka .ch { display: inline-block; }
.plate .lat { font-size: var(--step-small); color: var(--field-soft); }
.plate-note { margin-top: 0.85rem; font-size: var(--step-small); color: var(--ink-soft); }
.channels ul { list-style: none; display: flex; flex-direction: column; gap: 0.25rem; }
.channels li { display: grid; grid-template-columns: 6.5rem 1fr auto; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; }
.channels li:nth-child(odd) { background: var(--paper-2); }
.channels .k { color: var(--ink-soft); font-size: var(--step-small); }
.channels .v { overflow-wrap: anywhere; }
.copy-btn { font: inherit; font-size: var(--step-small); background: none; border: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; min-height: 44px; padding: 0 0.25rem; }
@media (max-width: 820px) {
  .contact form, .contact aside { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .channels li { grid-template-columns: 1fr auto; }
  .channels .k { grid-column: 1 / -1; }
}

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1rem; padding-top: var(--gap-section); }
.legal h2 { grid-column: 1 / span 4; font-size: var(--step-lead); }
.legal .body { grid-column: 5 / span 7; }
.legal .body p + p { margin-top: 0.9rem; }
.legal ol { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.imprint-list { grid-template-columns: minmax(9rem, 14rem) 1fr; row-gap: 0.8rem; margin-top: 1.25rem; }
.imprint-list dd { overflow-wrap: anywhere; }
@media (max-width: 560px) { .imprint-list { grid-template-columns: 1fr; row-gap: 0.15rem; } .imprint-list dd { margin-bottom: 0.7rem; } }
.placeholder { background: var(--note); color: var(--note-ink); padding: 1.25rem 1.5rem; }
@media (max-width: 820px) { .legal h2, .legal .body { grid-column: 1 / -1; } }

/* ---------- motion ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-leave 200ms cubic-bezier(0.55, 0.055, 0.675, 0.19) both; }
::view-transition-new(root) { animation: vt-arrive 380ms var(--ease-out) 60ms both; }
@keyframes vt-leave { to { opacity: 0; } }
@keyframes vt-arrive { from { opacity: 0; transform: translateY(16px); } }

.shutter, .settle { overflow: clip; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }

/* listings: the sign in the corner is the one Georgians hang in the window, იყიდება */
.listings { padding-top: clamp(2rem, 4vw, 3.5rem); }
.listings + .listings { padding-top: var(--gap-section); }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.cat-head h2 { font-size: var(--step-head); }
.cards { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--col) + 2 * var(--gutter)); row-gap: clamp(3rem, 6vw, 5rem); }
.cards > li:nth-child(2n) { margin-top: clamp(3rem, 9vw, 9rem); }
.card a { display: block; text-decoration: none; }
.card-pic { cursor: zoom-in; }
.pic-count { position: absolute; z-index: 2; left: 0; bottom: 0; background: var(--ink); color: var(--photo-ink); padding: 0.55rem 0.9rem; font-size: var(--step-small); line-height: 1.2; }
.card figure { position: relative; margin: 0 0 1.1rem; aspect-ratio: 4 / 5; overflow: clip; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.card h3 { font-size: var(--step-lead); line-height: 1.15; }
.proj { display: block; font-size: var(--step-small); font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 0.3rem; }
.c-price { font-size: var(--step-lead); margin-top: 0.4rem; }
.c-price .eur { font-size: var(--step-body); color: var(--ink-soft); margin-left: 0.4rem; }
.obj-price .eur { display: block; font-size: var(--step-body); letter-spacing: 0; color: var(--ink-soft); margin-top: 0.4rem; text-align: right; }
@media (max-width: 820px) { .obj-price .eur { text-align: left; } }
.c-meta { font-size: var(--step-small); color: var(--ink-soft); margin-top: 0.2rem; }
@media (hover: hover) and (pointer: fine) { .card a:hover img { transform: scale(1.03); } .card a:hover h3 { text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.15em; } }
.card a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.sign { position: absolute; z-index: 2; left: clamp(0.75rem, 2vw, 1.25rem); top: clamp(0.75rem, 2vw, 1.25rem); background: var(--photo-ink); color: var(--ink); padding: 0.4rem 0.8rem 0.5rem; font-family: var(--ka); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem); line-height: 1; transform: rotate(-2.5deg); box-shadow: 0 1px 0 rgba(10, 18, 32, 0.25); } /* taste-skill-ignore: paper sign edge over a photograph */
.sign-reserviert, .sign-verkauft { background: var(--note); color: var(--note-ink); }
.listing-note { padding-top: clamp(2.5rem, 5vw, 4rem); }
.more { padding-top: var(--gap-section); }
.more .cat-head h2 { font-size: var(--step-lead); }
@media (max-width: 760px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .cards > li:nth-child(2n) { margin-top: 0; }
}

.obj-head { padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.crumbs { margin-bottom: clamp(1.25rem, 3vw, 2.5rem); }
.obj-title { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; row-gap: 1rem; }
.obj-title h1 { grid-column: 1 / span 8; font-size: var(--step-head); }
.obj-title h1 .proj { font-size: var(--step-body); margin-bottom: 0.6rem; }
.obj-price { grid-column: 9 / span 4; justify-self: end; font-size: var(--step-head); line-height: 1; letter-spacing: -0.015em; }
.obj-main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.obj-lead { grid-column: 1 / span 7; position: relative; display: block; aspect-ratio: 4 / 5; max-height: 88svh; overflow: clip; cursor: zoom-in; }
.obj-lead img { width: 100%; height: 100%; object-fit: cover; }
.obj-facts { grid-column: 9 / span 4; position: sticky; top: 6rem; }
.obj-facts h2 { margin-bottom: 1rem; }
.obj-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; font-size: var(--step-body); }
.obj-facts dt, .obj-facts dd { padding-block: 0.55rem; border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); } /* taste-skill-ignore: rows of a real key-value table */
.obj-facts dt { color: var(--ink-soft); }
.obj-facts dd { margin: 0; text-align: right; }
.tbd { background: var(--note); color: var(--note-ink); padding: 0.05em 0.4em; font-size: var(--step-small); white-space: nowrap; }
.obj-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.75rem 0 1rem; }
.obj-gallery { padding-top: var(--gap-section); }
.obj-gallery h2 { margin-bottom: 1.25rem; }
.obj-gallery h2 .soft { font-size: var(--step-body); margin-left: 0.4rem; }
.g-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(11rem, 40vw), 1fr)); gap: var(--gutter); }
.g-grid a { display: block; aspect-ratio: 4 / 5; overflow: clip; cursor: zoom-in; }
.g-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .g-grid a:hover img { transform: scale(1.04); } }
.g-grid a:focus-visible, .obj-lead:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.obj-video { padding-top: var(--gap-section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; align-items: end; }
.vid-text { grid-column: 1 / span 4; }
.vid-text p { margin-top: 0.75rem; max-width: 30ch; }
.obj-video video { grid-column: 6 / span 4; width: 100%; height: auto; max-height: 86svh; aspect-ratio: 9 / 16; object-fit: cover; background: var(--field); }
.obj-place { padding-top: var(--gap-section); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; align-items: end; }
.place-head { grid-column: 1 / span 4; }
.place-head p { margin-top: 0.5rem; }
.dist { grid-column: 5 / span 8; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; }
.dist dd { margin: 0; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); white-space: nowrap; line-height: 1; letter-spacing: -0.015em; }
.dist dt { margin-top: 0.5rem; color: var(--ink-soft); font-size: var(--step-small); }
@media (max-width: 820px) { .place-head, .dist { grid-column: 1 / -1; } }
@media (max-width: 560px) { .dist { grid-template-columns: minmax(0, 1fr); } }
.obj-desc { padding-top: var(--gap-section); }
.desc-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1rem; }
.desc-block h2 { grid-column: 1 / span 4; font-size: var(--step-lead); }
.desc-block p { grid-column: 5 / span 7; max-width: 62ch; }
.obj-desc .listing-note { padding-top: 1.25rem; }
@media (max-width: 820px) {
  .obj-title h1, .obj-price { grid-column: 1 / -1; justify-self: start; }
  .obj-lead, .obj-facts { grid-column: 1 / -1; }
  .obj-facts { position: static; }
  .vid-text, .obj-video video { grid-column: 1 / -1; }
  .obj-video video { max-width: 26rem; }
  .desc-block h2, .desc-block p { grid-column: 1 / -1; }
}

/* photo viewer */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 18, 32, 0.95); color: var(--photo-ink); } /* taste-skill-ignore: neutral backdrop behind photographs */
.lb::backdrop { background: rgba(10, 18, 32, 0.6); } /* taste-skill-ignore: neutral backdrop behind photographs */
.lb[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.75rem max(var(--m), env(safe-area-inset-left, 0px)); font-size: var(--step-small); }
.lb figure { margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-inline: var(--m); touch-action: pan-y; }
.lb img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.lb figcaption { padding-top: 0.75rem; text-align: center; max-width: 60ch; }
.lb button { font: inherit; font-size: var(--step-body); color: inherit; background: none; border: 0; padding: 0.6rem 0.25rem; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; }
.lb button:focus-visible, .lb a:focus-visible { outline: 2px solid var(--photo-ink); outline-offset: 2px; }
.lb-acts { display: flex; align-items: center; gap: 1.5rem; }
.lb-more { color: inherit; font-size: var(--step-body); text-decoration-thickness: 0.06em; text-underline-offset: 0.2em; }

/* entrances keep the finished state as the resting style; the keyframes only add the arrival */
@media (prefers-reduced-motion: no-preference) {
  .js [data-chars] .ch { animation: ch-up 900ms var(--ease-expo) both; animation-delay: calc(120ms + var(--i) * 34ms); }
  .js [data-chars] { overflow: clip; overflow-clip-margin: 0.2em; padding-bottom: 0.08em; }
  .js .load [data-line] { animation: ch-up 820ms var(--ease-expo) both; animation-delay: calc(260ms + var(--i) * 95ms); }
  .js .load [data-load] { animation: rise 520ms var(--ease-out) both; animation-delay: var(--d, 520ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-rise] [data-line] { transform: translateY(105%); transition: transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 95ms); }
  .js [data-rise].is-in [data-line] { transform: none; }
  .js .shutter img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1150ms var(--ease-in-out), transform 1500ms var(--ease-soft); }
  .js .shutter.is-in img { clip-path: inset(0); transform: none; }
  .js .settle img { transform: scale(1.08); transition: transform 1400ms var(--ease-soft); }
  .js .settle.is-in img { transform: none; }
  .js .hero-slides img.is-on { animation: drift 7.5s linear both; }
  .hero.is-paused .hero-slides img, .hero.is-off .hero-slides img { animation-play-state: paused; }
  .js .figure-band > img { transform: scale(1.06); }
  .js .plate .ch.new { animation: ch-up 500ms var(--ease-expo) both; }
}
@keyframes ch-up { from { transform: translateY(104%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.0); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .hero-slides img { transition: none; }
  .stage-pic { transition: opacity 200ms ease; transform: none; }
  .acc .ans, .acc summary .chev, .mod img, .rindex .de, .svc-list a, .rindex .peek, .card img, .g-grid img { transition: none; }
  .card a:hover img, .g-grid a:hover img { transform: none; }
  a.mod:hover img, .mod-pair .cell:hover img { transform: none; }
  .rindex a:hover .de, .rindex a:focus-visible .de { transform: none; }
  .svc-list a:hover { translate: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}
