/* Trafik Kaindorf — editorial one-pager (style reference: MontRural by emblematica) */

:root {
  --cream: #F4E9CF;
  --cream-2: #EDDFBE;
  --ink: #3A3426;
  --ink-soft: #6B6150;
  --olive-dark: #37482F;
  --olive: #8C8A48;
  --gold: #C6A15B;
  --gold-soft: #D8BC80;
  --line: rgba(58, 52, 38, 0.22);

  --serif: "Playfair", "Playfair Display", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(16px, 2.2vw, 36px);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; font-weight: 400; }
::selection { background: var(--gold); color: var(--cream); }

.small {
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.kicker--light { color: var(--cream); }

/* line-by-line reveal wrappers (built by JS) */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; will-change: transform; }

/* ============================================================ loader */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--cream);
  display: grid; place-items: center;
  color: var(--ink);
}
.loader__bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(58, 52, 38, 0.12); }
.loader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a07a35, var(--gold), var(--gold-soft)); }
.loader__art { width: min(240px, 50vw); height: auto; }
.loader__label {
  position: absolute; bottom: 40px; left: 0; right: 0; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: 18px; opacity: 0.6; margin: 0;
}
.klapotetz__wheel { transform-origin: 80px 66px; transform-box: view-box; }
.klapotetz .klapotetz__wheel { animation: spin 3.2s linear infinite; will-change: transform; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================ header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--pad);
  transition: transform 0.6s var(--ease), background-color 0.4s;
}
.header.is-hidden { transform: translateY(-110%); }
.header.is-solid { background: rgba(244, 233, 207, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header__nav { display: flex; gap: clamp(20px, 4vw, 64px); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.header__nav--right { justify-content: flex-end; }
.header__nav a { position: relative; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.logo { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -0.04em; display: flex; align-items: flex-start; }
.logo__t { font-weight: 400; }
.logo__k { font-style: italic; font-weight: 300; margin-left: -0.12em; transform: translateY(0.28em); color: var(--olive); }

.burger { display: none; width: 34px; height: 24px; position: relative; justify-self: end; }
.burger span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--ink); transition: transform 0.4s var(--ease); }
.burger span:first-child { top: 8px; } .burger span:last-child { top: 15px; }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--olive-dark); color: var(--cream);
  display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 24px;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease);
}
.menu a { font-family: var(--serif); font-size: clamp(36px, 10vw, 64px); line-height: 1.1; }
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu-open .header { color: var(--cream); background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
.menu-open .burger span { background: var(--cream); }
.menu-open .logo__k { color: var(--gold); }

/* ============================================================ fixed CTA pills */
.cta-pills { position: fixed; right: var(--pad); bottom: 22px; z-index: 40; display: flex; gap: 6px; transition: opacity 0.4s, transform 0.4s var(--ease); }
.menu-open .cta-pills, .cta-pills.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.only-touch { display: none; }
@media (pointer: coarse) { .only-touch { display: inline; } .only-desk { display: none; } }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 18px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ease);
}
.pill:hover { transform: translateY(-2px); }
.pill--solid { background: var(--gold); color: var(--cream); }
.pill--solid:hover { background: var(--olive-dark); }
.pill--ghost { border: 1px solid var(--gold); color: var(--gold); background: rgba(244, 233, 207, 0.8); backdrop-filter: blur(6px); }
.pill--ghost:hover { background: var(--gold); color: var(--cream); }
.pill--light { background: transparent; color: var(--cream); border-color: var(--cream); }

/* ============================================================ hero */
.hero { position: relative; z-index: 3; padding: clamp(110px, 14vw, 170px) var(--pad) 70px; }
.hero__title {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 7.4vw, 124px); line-height: 0.95; letter-spacing: -0.035em;
  display: grid; grid-template-columns: repeat(12, 1fr);
  font-variation-settings: "opsz" 1200;
}
.hero__title em { font-size: 0.55em; letter-spacing: -0.01em; margin-right: 0.08em; }
.hero__row { display: block; }
.hero__row--1 { grid-column: 1 / 8; }
.hero__row--2 { grid-column: 7 / 13; text-align: right; margin-top: -0.05em; }
.hero__row--3 { grid-column: 2 / 13; margin-top: 0.08em; }
.hero__meta { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 42px; gap: 20px; }
.hero__meta p { margin: 0; }
.hero__meta p:first-child { grid-column: 1 / 4; }
.hero__lead { grid-column: 8 / 12; }
.hero__notch { position: absolute; left: 50%; bottom: -23px; transform: translateX(-50%); width: 60px; display: flex; flex-direction: column; align-items: center; z-index: 3; }
.hero__stem { width: 1px; height: 54px; background: var(--ink); transform-origin: top; }
.hero__notch svg { width: 60px; height: 24px; fill: var(--cream); margin-top: -1px; }

/* ============================================================ triptych */
.triptych { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: var(--olive-dark); }
.triptych figure { position: absolute; inset: 0; overflow: hidden; }
.triptych__center img { object-position: 50% 62%; transform-origin: 50% 62%; }
.triptych__shutter { display: none; }
.js .triptych__shutter {
  display: flex; align-items: flex-end; justify-content: center; position: absolute; inset: 0; z-index: 3; will-change: transform;
  /* horizontal slats like a Rollladen */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(0, 0, 0, 0.16) 100%) 0 0 / 100% 34px,
    var(--olive-dark);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.triptych__shutter::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); }
.triptych__shutter span { margin-bottom: 14vh; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 6vw, 96px); letter-spacing: -0.02em; color: var(--gold); }

/* ============================================================ about */
.about { position: relative; padding: clamp(100px, 12vw, 180px) var(--pad) 120px; }
.botanical { position: absolute; color: var(--ink); pointer-events: none; }
.botanical--about { width: clamp(150px, 18vw, 280px); right: 4vw; top: clamp(360px, 36vw, 520px); opacity: 0.7; }

.assemble {
  font-family: var(--serif); font-size: clamp(44px, 7vw, 116px); line-height: 1; letter-spacing: -0.035em;
  display: flex; flex-wrap: wrap; gap: 0 0.28em; justify-content: center; margin: 0 auto 90px; max-width: 1200px;
  font-variation-settings: "opsz" 1200;
}
.assemble span { display: inline-block; will-change: transform; }
.assemble em { color: var(--olive); }

.statement {
  font-size: clamp(18px, 2.1vw, 30px); line-height: 1.22; font-weight: 500; text-transform: uppercase; letter-spacing: -0.005em;
  max-width: 980px; margin: 22px 0 0;
}
.scrub-text .w { opacity: 0.16; transition: none; }

.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 110px; align-items: start; }

/* review card */
.review { grid-column: 1 / 13; margin-top: 70px; display: grid; grid-template-columns: 1.25fr 0.8fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); padding: clamp(30px, 4vw, 56px); border: 1px solid var(--line); border-radius: 26px; background: rgba(255, 255, 255, 0.35); }
.review__intro { display: flex; flex-direction: column; gap: 18px; }
.review__act { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-left: clamp(24px, 4vw, 64px); border-left: 1px solid var(--line); }
.review .gscore { flex-direction: column; align-items: flex-start; gap: 10px; }
.review .gscore__num { font-size: clamp(64px, 7vw, 112px); line-height: 0.85; letter-spacing: -0.04em; }
.review .gscore__stars { font-size: 24px; }
.review .kicker { margin: 0; }
.review__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 60px); line-height: 1; letter-spacing: -0.03em; margin: 0; }
.review__title em { color: var(--olive); }
.review__text { margin: 0; max-width: 34ch; }
.review__thanks { margin: -6px 0 0; min-height: 1.4em; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--olive); }
.review__cta { white-space: nowrap; display: inline-flex; gap: 10px; align-items: center; padding: 16px 28px; border-radius: 999px; background: var(--olive-dark); color: var(--cream); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; transition: background-color 0.4s, transform 0.5s var(--ease); }
.review__cta:hover { background: var(--ink); }
.review.is-rated .review__cta { background: var(--gold); animation: cta-nudge 0.6s var(--ease) 0.25s; }
@keyframes cta-nudge { 40% { transform: translateY(-4px) scale(1.04); } }

/* Google score (stars partially filled with --fill) */
.gscore { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--ink); text-decoration: none; }
.gscore__num { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.gscore__stars { position: relative; font-size: 20px; letter-spacing: 2px; color: rgba(55, 72, 47, 0.18); }
.gscore__stars span { position: absolute; inset: 0; width: var(--fill); overflow: hidden; color: var(--gold); white-space: nowrap; }
.gscore__count { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.gscore:hover .gscore__count { color: var(--ink); }

/* ============================================================ youth protection */
.youth { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: center; padding: clamp(80px, 9vw, 140px) var(--pad); background: var(--gold); color: var(--olive-dark); overflow: hidden; }
.youth__big { grid-column: 1 / 7; margin: 0; font-family: var(--serif); font-size: clamp(170px, 31vw, 520px); line-height: 0.8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 2px var(--olive-dark); }
.youth__big span { color: var(--olive-dark); -webkit-text-stroke: 0; font-size: 0.55em; vertical-align: top; margin-left: 0.04em; }
.youth__text { grid-column: 7 / 13; display: flex; flex-direction: column; gap: 26px; }
.youth__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.8vw, 80px); line-height: 0.98; letter-spacing: -0.035em; margin: 0; }
.youth__title em { color: var(--cream); }
.youth__text p.small { margin: 0; max-width: 42ch; color: var(--olive-dark); }
.youth .kicker { color: var(--olive-dark); }

/* Peek Rating: vanilla port of the React Bits micro component (reactbits.dev/c/micro/peek-rating) */
.peek-rating { --pr-active: var(--gold); --pr-idle: rgba(55, 72, 47, 0.18); --pr-tip: var(--olive-dark); --pr-tip-text: var(--cream); --pr-size: 42px; --pr-gap: 9px; --pr-room: 46px; --pr-rise: 320ms; --pr-ease-out: cubic-bezier(0.23, 1, 0.32, 1); display: inline-flex; }
.peek-rating__row { position: relative; display: inline-flex; align-items: flex-end; padding-top: var(--pr-room); touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.peek-rating__star { display: grid; place-items: center; width: calc(var(--pr-size) + var(--pr-gap)); height: calc(var(--pr-size) + 8px); margin: 0; padding: 0; border: 0; background: none; color: inherit; outline: none; cursor: pointer; touch-action: manipulation; }
.peek-rating__star:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.peek-rating__lift { display: block; transform-origin: 50% 100%; transition: transform var(--pr-rise) var(--pr-ease-out); }
.peek-rating__glyph { display: block; width: var(--pr-size); height: var(--pr-size); color: var(--pr-idle); transition: color 160ms ease; }
.peek-rating__glyph svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.peek-rating__glyph[data-lit='true'] { color: var(--pr-active); }
.peek-rating__tip { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; height: calc(var(--pr-size) * 0.62); padding: 0 calc(var(--pr-size) * 0.32); border-radius: 999px; background: var(--pr-tip); color: var(--pr-tip-text); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; box-shadow: 0 4px 14px rgba(55, 72, 47, 0.22); opacity: 0; pointer-events: none; transition: transform var(--pr-rise) var(--pr-ease-out), opacity 180ms ease; }
.peek-rating__tip[data-show='true'] { opacity: 1; }
.peek-rating[data-instant='true'] .peek-rating__lift, .peek-rating[data-instant='true'] .peek-rating__glyph, .peek-rating[data-instant='true'] .peek-rating__tip { transition-duration: 0ms; }
@media (pointer: coarse) { .peek-rating__star { min-width: 44px; min-height: 44px; } }
.about__copy { grid-column: 1 / 6; margin: 0; }

.panel-list {
  position: relative; margin: 120px 0 0 auto; width: min(760px, 100%);
  background: var(--olive); color: var(--cream); padding: 36px 36px 36px; display: grid; grid-template-columns: 1fr 200px; gap: 30px;
}
.panel-list .kicker { grid-column: 1 / -1; }
.panel-list ul { list-style: none; margin: 0; padding: 0; }
.panel-list li { border-bottom: 1px solid rgba(244, 233, 207, 0.35); padding: 16px 0; font-size: 14px; display: flex; gap: 18px; }
.panel-list li span { font-family: var(--serif); font-style: italic; opacity: 0.7; }
.panel-list__img { aspect-ratio: 3 / 4; align-self: end; }

/* ============================================================ image reveal (curtain + settle zoom) */
.reveal { position: relative; overflow: hidden; }
.reveal::after { content: ""; position: absolute; inset: 0; background: var(--cream); transform-origin: right; transform: scaleX(var(--curtain, 0)); }
.reveal--up::after { transform-origin: top; transform: scaleY(var(--curtain, 0)); background: var(--olive-dark); }
.js .reveal { --curtain: 1; }

/* ============================================================ location */
.location { background: var(--olive-dark); color: var(--cream); display: grid; grid-template-columns: 1fr 1fr; }
.location__text { position: relative; padding: 110px var(--pad); align-self: start; position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; gap: 28px; overflow: hidden; }
.botanical--location { color: var(--cream); width: 120%; left: -10%; bottom: -20%; opacity: 0.08; }
.location__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 58px); line-height: 1.05; letter-spacing: -0.025em; margin: 0; max-width: 640px; }
.location__title em { color: var(--gold); }
.location__copy { max-width: 440px; margin: 0; opacity: 0.85; }
.link-arrow { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); display: inline-flex; gap: 10px; }
.link-arrow span { transition: transform 0.4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }
.location__media { padding: 0; }
.location__media figure { height: 100vh; }
.location__media figure img { object-position: 46% 50%; }
.location__small { height: 80vh !important; width: 70%; margin: 10vh 0 10vh auto; }

/* ============================================================ assortment (horizontal pin) */
.range { padding-top: 140px; }
@media (min-width: 901px) {
  /* the whole section is pinned: heading and cards sit centered in the viewport, cards shrink on low screens */
  .range { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 84px 0 60px; }
  .range .assemble--range { margin: 18px 0 clamp(24px, 5vh, 56px); }
  .range .range__track { padding-bottom: 0; }
  .range .card { width: clamp(170px, min(26vw, calc((100vh - 450px) * 0.8)), 400px); }
}
@media (min-width: 901px) and (max-height: 720px) {
  .range { padding: 64px 0 24px; }
  .range .assemble--range { margin-bottom: 20px; }
}
.range__head { padding: 0 var(--pad); }
.assemble--range { margin: 26px 0 60px; justify-content: flex-start; }
.range__pin { overflow: hidden; }
.range__track { display: flex; gap: 20px; padding: 0 var(--pad) 120px; width: max-content; will-change: transform; }
.card { width: clamp(260px, 26vw, 400px); flex: none; }
.card figure { aspect-ratio: 4 / 5; overflow: hidden; }
.card img { transition: transform 1.2s var(--ease); }
.card:hover img { transform: scale(1.06); }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -0.02em; margin: 16px 0 10px; }
.card h3 em { color: var(--olive); }
.card p { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-soft); }

/* ============================================================ marquee */
.marquee { padding: 40px 0 100px; overflow: hidden; }
.marquee__row {
  white-space: nowrap; font-family: var(--serif); font-size: clamp(56px, 10vw, 170px); line-height: 1.12; letter-spacing: -0.03em;
  color: var(--gold); border-top: 1px solid rgba(198, 161, 91, 0.45);
}
.marquee__row:last-child { border-bottom: 1px solid rgba(198, 161, 91, 0.45); }
.marquee__row span { display: inline-block; will-change: transform; padding-left: 2vw; }

/* ============================================================ 3D tour */
.tour { background: var(--olive-dark); color: var(--cream); padding: 130px var(--pad) 110px; }
.tour__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; align-items: end; margin-bottom: 60px; }
.tour__head .kicker { grid-column: 1 / -1; }
.tour__title { grid-column: 1 / 9; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8vw, 140px); line-height: 0.95; letter-spacing: -0.04em; margin: 0; }
.tour__title em { color: var(--gold); }
.tour__copy { grid-column: 9 / 13; margin: 0; opacity: 0.85; }
.tour__stage { position: relative; display: block; width: 100%; aspect-ratio: 16 / 8; overflow: hidden; cursor: pointer; }
.tour__stage.reveal::after { background: var(--olive-dark); }
.tour__stage img { transition: transform 1.6s var(--ease), filter 0.8s; }
.tour__stage:hover img { transform: scale(1.04); filter: brightness(0.85); }
.tour__play {
  position: absolute; left: 50%; top: 50%; width: clamp(120px, 13vw, 190px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--gold); color: var(--cream);
  display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-size: clamp(18px, 1.7vw, 26px); line-height: 1.05;
  transition: transform 0.6s var(--ease), background-color 0.4s;
}
.tour__stage:hover .tour__play { transform: translate(-50%, -50%) scale(1.08); background: var(--olive); }
.tour__facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 40px; opacity: 0.8; }
.tour__facts strong { color: var(--gold); font-weight: 600; }

.tour-modal {
  position: fixed; inset: 0; z-index: 90; background: #111;
  clip-path: circle(0% at 50% 50%); transition: clip-path 0.9s var(--ease); visibility: hidden;
}
.tour-modal.is-open { clip-path: circle(150% at 50% 50%); visibility: visible; }
.tour-modal__frame.is-paused iframe { display: none; } /* stops the hidden tour's render loop */
.tour-modal.is-loading .tour-modal__frame { visibility: hidden; } /* never show the tour's own start card */
.tour-modal__frame, .tour-modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Loading card while the 3D model builds. The tour freezes the main thread for a long time, so
   everything here only animates transform/opacity (runs on the compositor and keeps moving). */
.tour-loader {
  position: absolute; inset: 0; z-index: 1; background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.tour-modal:not(.is-loading) .tour-loader { opacity: 0; visibility: hidden; pointer-events: none; }
.tl-art { position: relative; width: min(240px, 50vw); aspect-ratio: 220 / 200; }
.tl-art svg { position: absolute; display: block; }
/* the same drawing-in as the entrance loader (stroke by stroke); the wheel turns from the start */
.tl-art .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
.tour-modal.is-loading .tl-art .draw { animation: tl-draw 1.8s cubic-bezier(0.45, 0, 0.55, 1) forwards; animation-delay: calc(var(--i) * 40ms); }
@keyframes tl-draw { to { stroke-dashoffset: 0; } }
.tl-topbar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(58, 52, 38, 0.12); overflow: hidden; }
.tl-topbar span { display: block; height: 100%; background: linear-gradient(90deg, #a07a35, var(--gold), var(--gold-soft)); transform-origin: left; transform: scaleX(0); will-change: transform; }
.tour-modal.is-loading .tl-topbar span { animation: tl-progress 16s cubic-bezier(0.1, 0.6, 0.3, 1) forwards; }
@keyframes tl-progress { to { transform: scaleX(0.92); } }
.tl-body { inset: 0; width: 100%; height: 100%; }
.tl-wheel { left: 13.636%; top: 8%; width: 45.4545%; height: 50%; will-change: transform; animation: spin 3.2s linear infinite; }
.tour-modal.is-loading .tour-loader__label { position: relative; margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; white-space: nowrap; }
.tl-text { opacity: 0.38; }
/* shimmer like a "thinking" prompt: a soft window slides over the text and shows a dark copy of it.
   Window and copy move in opposite directions, so the copy stays put; both are transform-only. */
.tl-shine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 38%; overflow: hidden; will-change: transform;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 65%, transparent);
  animation: tl-shine-win 2.2s linear infinite;
}
.tl-shine > span { position: absolute; top: 0; left: 0; width: calc(100% / 0.38); will-change: transform; color: var(--ink); animation: tl-shine-txt 2.2s linear infinite; }
@keyframes tl-shine-win { from { transform: translateX(-100%); } to { transform: translateX(263%); } }
@keyframes tl-shine-txt { from { transform: translateX(38%); } to { transform: translateX(-100%); } }
.tour-modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 3; height: 44px; padding: 0 22px 0 16px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--ink); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}
.tour-modal__close span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: 11px; }
.tour-modal__close:hover { background: var(--gold); color: var(--cream); }

/* ============================================================ Emma */
.emma { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding: 150px var(--pad) 90px; align-items: center; }
.emma__media { grid-column: 1 / 7; position: relative; }
.emma__media figure { aspect-ratio: 4 / 5; }
.emma__media img { object-position: 60% 75%; }
.emma__text { grid-column: 8 / 12; display: flex; flex-direction: column; gap: 26px; }
.emma__title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 92px); line-height: 0.98; letter-spacing: -0.035em; margin: 0; }
.emma__title em { color: var(--olive); }
.emma__text p.small { margin: 0; }

/* ============================================================ history */
.history { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding: 90px var(--pad) 70px; align-items: center; }
.history__photo { grid-column: 1 / 6; aspect-ratio: 3 / 4; }
.history__photo img { object-position: 55% 50%; }
.history__text { grid-column: 7 / 12; display: flex; flex-direction: column; gap: 26px; }
.history__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.8vw, 82px); line-height: 0.98; letter-spacing: -0.035em; margin: 0; }
.history__title em { color: var(--olive); }
.history__text p.small { margin: 0; }
.history__sign { margin: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.history__name { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 38px); line-height: 1; letter-spacing: -0.02em; }
.history__sign .small { color: var(--gold); }

/* ============================================================ team */
.team { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding: 60px var(--pad) 140px; align-items: start; }
.team__text { grid-column: 1 / 6; grid-row: 1; display: flex; flex-direction: column; gap: 30px; padding-top: 8vw; }
.team__quote { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 54px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.team__quote em { color: var(--gold); }
.team__sign { margin: 0; }
.team__sign span { color: var(--ink-soft); }
.team__photo { grid-column: 7 / 13; grid-row: 1; aspect-ratio: 4 / 3; }
.team__names { grid-column: 7 / 13; grid-row: 2; list-style: none; margin: 0; padding: 0; position: relative; height: 150px; }
/* every name sits centred under its person in the photo; a gold line grows from a dot at the photo down to the name */
.team__names li { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); padding-top: 80px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.team__name { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 38px); line-height: 1; letter-spacing: -0.02em; }
.team__role { color: var(--gold); }
.team__arrow { position: absolute; top: 6px; left: 50%; width: 16px; height: 62px; margin-left: -8px; overflow: visible; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }
.team__dot { fill: var(--gold); stroke: none; transform-box: fill-box; transform-origin: center; }
.team__ring { stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: team-ring 2.6s ease-out infinite; animation-delay: calc(var(--d) + 1.4s); opacity: 0; }
.team__line { stroke-dasharray: 52; stroke-dashoffset: 0; }
@keyframes team-ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes team-grow { from { stroke-dashoffset: 52; } to { stroke-dashoffset: 0; } }
@keyframes team-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes team-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
/* scroll-in (the script adds .pre, then .is-in when the list is on screen; without JS everything just shows) */
.team__names.pre .team__line { stroke-dashoffset: 52; }
.team__names.pre .team__dot { transform: scale(0); }
.team__names.pre .team__ring { animation: none; }
.team__names.pre .team__name, .team__names.pre .team__role { opacity: 0; }
.team__names.is-in .team__dot { animation: team-pop 0.5s var(--ease) both; animation-delay: var(--d); }
.team__names.is-in .team__line { animation: team-grow 0.9s var(--ease) both; animation-delay: calc(var(--d) + 0.25s); }
.team__names.is-in .team__name, .team__names.is-in .team__role { animation: team-rise 0.8s var(--ease) both; animation-delay: calc(var(--d) + 0.9s); }

/* ============================================================ opening hours */
.hours { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; padding: 120px var(--pad); border-top: 1px solid var(--line); }
.hours__head { grid-column: 1 / 6; display: flex; flex-direction: column; gap: 24px; }
.hours__title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 92px); line-height: 0.98; letter-spacing: -0.035em; margin: 0; }
.hours__title em { color: var(--olive); }
.status { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-soft); position: relative; }
.status.is-open .status__dot { background: #5c8a3a; }
.status.is-open .status__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #5c8a3a; animation: ping 1.8s var(--ease) infinite; }
.status.is-closed .status__dot { background: #b0563c; }
@keyframes ping { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hours__table { grid-column: 7 / 13; margin: 0; align-self: end; }
.hours__row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding 0.5s var(--ease); }
.hours__row:first-child { border-top: 1px solid var(--line); }
.hours__row dt { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.hours__row dd { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 38px); line-height: 1.1; text-align: right; letter-spacing: -0.02em; }
.hours__row.is-today { padding-left: 18px; background: linear-gradient(90deg, rgba(198, 161, 91, 0.18), transparent 70%); }
.hours__row.is-today dt::after { content: " · heute"; color: var(--gold); }

/* ============================================================ contact */
.contact { position: relative; background: var(--olive-dark); color: var(--cream); padding: 0 var(--pad) 90px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.contact__img { grid-column: 1 / 7; aspect-ratio: 4 / 3; margin-top: -40px; }
.contact__img.reveal::after { background: var(--cream); }
.contact__card { grid-column: 7 / 13; background: var(--olive); padding: 36px; display: flex; flex-direction: column; gap: 22px; align-self: start; }
.contact__phone { font-family: var(--serif); font-size: clamp(30px, 3.8vw, 64px); white-space: nowrap; line-height: 1; letter-spacing: -0.03em; color: var(--cream); transition: color 0.3s; }
.contact__phone:hover { color: var(--gold-soft); }
.contact__card p { margin: 0; }
.contact__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.contact__lead { grid-column: 7 / 13; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 34px); line-height: 1.15; margin: 20px 0 0; letter-spacing: -0.015em; }
.contact__lead em { color: var(--gold); }

/* ============================================================ footer */
.footer { background: var(--olive-dark); color: var(--gold); overflow: hidden; padding: 0 0 22px; }
.footer__word { font-family: var(--serif); font-size: 17.5vw; line-height: 0.9; letter-spacing: -0.05em; white-space: nowrap; padding: 0 var(--pad); border-top: 1px solid rgba(198, 161, 91, 0.35); }
.footer__word span { display: inline-block; }
.footer__bar { display: flex; justify-content: space-between; gap: 20px; padding: 26px var(--pad) 0; color: var(--cream); opacity: 0.8; flex-wrap: wrap; }

/* ============================================================ responsive */
@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
  .burger { display: block; }
  .logo { order: -1; font-size: 30px; }

  .hero__title { display: block; }
  .hero__row--2 { text-align: right; }
  .hero__meta { grid-template-columns: 1fr 1fr; }
  .hero__meta p:first-child, .hero__lead { grid-column: auto; }
  .hero__stem { height: 40px; }

  .triptych { height: 80vh; }

  .about__grid { grid-template-columns: repeat(6, 1fr); }
  .review { grid-column: 1 / 7; margin-top: 30px; grid-template-columns: 1fr; }
  .review__act { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .about__copy { grid-column: 1 / 7; }
  .youth { grid-template-columns: 1fr; }
  .youth__big, .youth__text { grid-column: 1 / -1; }
  .peek-rating { --pr-size: 36px; --pr-gap: 6px; }
  .about__copy { grid-column: 1 / 7; grid-row: auto; }
  .panel-list { grid-template-columns: 1fr; padding: 26px 20px; }
  .panel-list__img { display: none; }

  .location { grid-template-columns: 1fr; }
  .location__text { position: relative; min-height: 0; padding: 90px var(--pad) 60px; }
  .location__media figure { height: 70vh; }
  .location__small { height: 60vh !important; width: 80%; margin: 20px var(--pad) 60px auto; }

  .range__pin { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .range__pin::-webkit-scrollbar { display: none; }
  .range__track { padding-bottom: 80px; }
  .card { width: 76vw; scroll-snap-align: center; }

  .tour__head, .emma, .history, .team, .hours, .contact { grid-template-columns: 1fr; }
  .tour__title, .tour__copy, .emma__media, .emma__text, .history__photo, .history__text, .team__text, .team__photo, .team__names,
  .hours__head, .hours__table, .contact__img, .contact__card, .contact__lead { grid-column: 1 / -1; grid-row: auto; }
  .tour__stage { aspect-ratio: 4 / 5; }
  .tour__stage img { object-position: 45% 50%; }
  .emma { padding-top: 110px; }
  .team__text { padding-top: 0; }
  .team__photo { grid-row: 2; }
  .team__names { grid-row: 3; }
  .team__name { font-size: 21px; }
  .hours { padding: 90px var(--pad); }
  .contact__card { padding: 26px 20px; }
  .footer__word { font-size: 15.5vw; }
  .footer__bar { flex-direction: column; gap: 6px; padding-bottom: 70px; }
}

@media (max-width: 600px) {
  /* call / route bar becomes a full-width strip so it never sits on top of running text */
  .cta-pills {
    left: 0; right: 0; bottom: 0; gap: 8px;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(244, 233, 207, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .cta-pills .pill { flex: 1; height: 44px; padding: 0 10px; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (min-width: 601px) and (max-width: 900px) {
  /* tablets: intro and Google score side by side, rating below */
  .review { grid-template-columns: 1.2fr 1fr; column-gap: 32px; }
  .review__act { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- legal dialog */
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--gold); }
.legal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(36, 44, 30, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.35s; }
.legal[hidden] { display: none; }
.legal.is-open { opacity: 1; }
.legal__panel { position: relative; width: min(720px, 100%); max-height: min(86vh, 900px); overflow-y: auto; overscroll-behavior: contain; background: var(--cream); color: var(--ink, #2f2a1e); border-radius: 22px; padding: clamp(28px, 5vw, 56px); outline: none; transform: translateY(16px); transition: transform 0.45s var(--ease); }
.legal.is-open .legal__panel { transform: none; }
.legal__close { position: sticky; top: 0; float: right; margin: -12px -12px 0 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); color: inherit; cursor: pointer; font-size: 15px; }
.legal__close:hover { background: var(--olive-dark); color: var(--cream); }
.legal__title { margin: 6px 0 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.legal h3 { margin: 26px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive-dark); }
.legal p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal__switch { margin-top: 30px !important; font-weight: 600; }
.legal__switch a { text-decoration: none; color: var(--olive-dark); }
