/* KALA Construction
   One typeface, Open Sans, carried by weight and generous spacing. Espresso, gold and cream come from her logo. */
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --espresso: #3a2b1c;
  --espresso-deep: #1f160d;
  --gold: #ad7e1d;
  --gold-light: #d6a53f;
  --gold-text: #8a6312;
  --cream: #f6f0e3;
  --porenbeton: #eeece5;
  --paper: #fbfaf6;
  --beton: #b9b4a8;
  --ink: #241a10;
  --ink-soft: #5d5245;
  --line: rgba(58, 43, 28, .16);
  --line-on-dark: rgba(246, 240, 227, .18);

  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(22px, 4.4vw, 56px);
  --section: clamp(88px, 11vw, 170px);
  --gap-head: clamp(18px, 2vw, 28px);    /* heading to lead sentence */
  --gap-block: clamp(44px, 5.6vw, 80px); /* section head to its content */
  --radius: 14px;
  --header-h: 70px;
  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; background: var(--espresso-deep); }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; font-weight: 400; line-height: 1.72; color: var(--ink); background: var(--porenbeton); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
b { font-weight: 700; }
h1, h2, h3 { font-family: var(--font); margin: 0; text-wrap: balance; overflow-wrap: break-word; }
h1, h2 { font-weight: 800; letter-spacing: -.021em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4.1rem); line-height: 1.14; }
h3 { font-size: clamp(1.16rem, 1.45vw, 1.3rem); font-weight: 700; line-height: 1.34; letter-spacing: -.006em; }
@media (max-width: 520px) { h2, h3 { hyphens: auto; -webkit-hyphens: auto; } }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
.lead { font-size: clamp(1.1rem, 1.42vw, 1.27rem); line-height: 1.62; max-width: 33em; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 2000; }
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 13px 28px; border-radius: 999px; font: 600 1rem/1.1 var(--font); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .3s var(--ease-out), background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .3s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn--gold { background: var(--gold-light); color: var(--espresso-deep); }
.btn--gold:hover { background: #e5b552; box-shadow: 0 10px 24px rgba(173, 126, 29, .32); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: .92rem; }
.link { font-weight: 600; text-decoration: none; background: linear-gradient(var(--gold-light), var(--gold-light)) no-repeat 0 100% / 100% 2px; padding-bottom: 3px; transition: background-size .4s var(--ease-out), color .25s ease; }
.link:hover { color: var(--gold-text); background-size: 40% 2px; }

/* ---------- Header ---------- */
.site-header { position: fixed; z-index: 1000; top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 24px), 1200px); height: var(--header-h); display: flex; align-items: center; gap: 20px; padding: 0 14px 0 24px; border-radius: 999px; color: var(--cream); background: rgba(31, 22, 13, .9); box-shadow: 0 10px 30px rgba(20, 12, 4, .22); transition: height .35s var(--ease-out), background-color .35s ease, top .35s var(--ease-out); }
.site-header.is-scrolled { height: 60px; background: rgba(31, 22, 13, .93); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); --logo-gold: var(--gold-light); flex: none; }
.brand__mark { width: 64px; height: 40px; flex: none; }
.brand__word { width: 76px; height: 31px; flex: none; }
.main-nav { display: flex; gap: clamp(18px, 2.7vw, 38px); margin-left: auto; margin-right: clamp(4px, 1vw, 14px); }
.main-nav a { position: relative; text-decoration: none; font-size: .95rem; font-weight: 600; letter-spacing: .004em; padding: 6px 0; opacity: .9; transition: opacity .2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold-light); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease-out); }
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { transform: scaleX(1); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: 4px; padding: 0; background: none; border: 0; color: var(--cream); cursor: pointer; position: relative; flex: none; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .25s var(--ease-out), top .25s var(--ease-out); }
.menu-toggle span:first-child { top: 17px; } .menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.mobile-nav { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 100px max(28px, env(safe-area-inset-right, 0px)) 40px max(28px, env(safe-area-inset-left, 0px)); background: var(--espresso-deep); color: var(--cream); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-size: clamp(1.9rem, 8.4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; text-decoration: none; animation: menuIn .5s var(--ease-out) both; }
.mobile-nav a:nth-child(2) { animation-delay: .05s; } .mobile-nav a:nth-child(3) { animation-delay: .1s; } .mobile-nav a:nth-child(4) { animation-delay: .15s; } .mobile-nav a:nth-child(5) { animation-delay: .2s; }
@keyframes menuIn { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 900px) { .main-nav { display: none; } .menu-toggle { display: block; } .header-cta { margin-left: auto; } }
@media (max-width: 480px) { :root { --header-h: 62px; } .site-header { padding: 0 6px 0 16px; gap: 8px; } .site-header.is-scrolled { height: 56px; } .brand { gap: 8px; } .brand__mark { width: 50px; height: 31px; } .brand__word { width: 58px; height: 24px; } .header-cta { min-height: 38px; padding: 6px 14px; font-size: .82rem; } .menu-toggle { margin-left: 0; } }
@media (max-width: 379px) { .header-cta { display: none; } .menu-toggle { margin-left: auto; } }

/* ---------- Masked words: used by the hero and by headings ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .07em .05em .17em; margin: -.07em -.05em -.17em; }
.w__i { display: inline-block; }

/* ---------- Hero: scrubbed 3D sequence ---------- */
.hero { position: relative; height: 330vh; height: 330lvh; background: var(--espresso-deep); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; --hero-fg: #1f160d; color: var(--hero-fg); }
.hero__poster, .hero__poster img, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__poster img { object-fit: cover; object-position: 56% 72%; }
.hero__canvas { opacity: 0; }
.hero__canvas.is-live { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 13, 7, .74) 0%, rgba(20, 13, 7, .38) 26%, rgba(20, 13, 7, 0) 48%); opacity: 0; }
.hero__copy { position: absolute; z-index: 2; left: max(var(--gutter), calc(50% - var(--wrap) / 2 + var(--gutter))); right: 92px; top: calc(var(--header-h) + 12px + clamp(22px, 3.6vh, 40px) + env(safe-area-inset-top, 0px)); display: grid; grid-template-columns: auto auto 1fr; column-gap: clamp(20px, 2.6vw, 40px); align-items: center; }
.hero__title { grid-column: 1 / -1; font-size: clamp(2.5rem, 5.2vw, 5.5rem); font-weight: 800; line-height: 1.12; letter-spacing: -.026em; position: relative; min-height: 1.14em; color: var(--hero-fg); }
.hero__title br { display: none; }
.hero__line { display: block; }
.js .hero__line { position: absolute; left: 0; top: 0; white-space: nowrap; visibility: hidden; }
.js .hero__line[data-line="1"] { visibility: visible; }
.hero__sub { margin-top: clamp(12px, 1.6vh, 18px); max-width: 26em; font-size: clamp(.98rem, 1.12vw, 1.08rem); line-height: 1.55; font-weight: 500; color: var(--hero-fg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(12px, 1.6vh, 18px); color: var(--hero-fg); }

/* Elevation ruler: real heights of the model, marker follows the building */
.ruler { position: absolute; z-index: 2; right: max(16px, env(safe-area-inset-right, 0px)); top: 32%; bottom: 12%; width: 2px; background: var(--hero-fg); }
.ruler__tick { position: absolute; right: 8px; bottom: var(--at); transform: translateY(50%); white-space: nowrap; padding: 3px 8px; border-radius: 6px; background: rgba(246, 240, 227, .88); color: var(--espresso-deep); font-size: .72rem; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; }
.ruler__tick b { font-weight: 700; margin-right: 3px; }
.ruler__mark { position: absolute; left: -5px; bottom: 0; width: 12px; height: 12px; background: var(--gold-light); transform: translateY(50%) rotate(45deg); box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); will-change: bottom; }
.ruler__mark i { display: none; }
.hero__hint, .hero__skip { position: absolute; z-index: 3; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); font-size: .84rem; font-weight: 600; color: var(--espresso-deep); padding: 7px 16px; border-radius: 999px; background: rgba(246, 240, 227, .88); white-space: nowrap; text-decoration: none; }
.hero__hint[hidden], .hero__skip[hidden] { display: none; }
.hero__hint::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); animation: nudge 1.7s var(--ease-io) infinite; }
@keyframes nudge { 50% { transform: translateY(2px) rotate(45deg); } }
.hero__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; pointer-events: none; opacity: 0; background: linear-gradient(0deg, var(--espresso-deep) 0%, rgba(31, 22, 13, .62) 40%, rgba(31, 22, 13, 0) 100%); }

@media (max-aspect-ratio: 1/1) {
  .hero { height: 300vh; height: 300lvh; }
  .hero__poster img { object-position: 50% 70%; }
  .hero__copy { top: calc(var(--header-h) + 12px + 24px + env(safe-area-inset-top, 0px)); left: max(22px, env(safe-area-inset-left, 0px)); right: 22px; display: block; }
  .hero__title { font-size: clamp(2.35rem, 11.2vw, 4.6rem); line-height: 1.14; }
  .hero__stage.is-final .hero__title { min-height: 2.28em; }
  .hero__stage.is-final .hero__sub { display: none; }
  .hero__title br { display: inline; }
  .js .hero__line { white-space: normal; width: 100%; }
  .hero__sub { font-size: 1rem; margin-top: 8px; max-width: 22em; }
  .hero__actions { display: none; margin-top: 14px; }
  .hero__stage.is-final .hero__actions { display: flex; }
  .hero__stage.is-final .hero__actions .btn--ghost { display: none; }
  .hero__scrim { background: linear-gradient(180deg, rgba(20, 13, 7, .8) 0%, rgba(20, 13, 7, .44) 32%, rgba(20, 13, 7, 0) 52%); }
  .ruler { top: 48%; bottom: 10%; right: 8px; }
  .ruler__tick { font-size: 0; padding: 2px 5px; right: 6px; }
  .ruler__tick b { font-size: .66rem; margin-right: 0; }
  .hero__hint, .hero__skip { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-aspect-ratio: 1/1) and (max-height: 720px) { .hero__sub { display: none; } }
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .hero__sub, .hero__actions, .ruler, .hero__hint { display: none; }
  .hero__copy { top: calc(var(--header-h) + 22px); }
  .hero__title { font-size: clamp(1.8rem, 4.6vw, 2.8rem); }
}

/* ---------- Intro ---------- */
.intro { background: var(--espresso-deep); color: var(--cream); padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 100px); }
.intro__statement { font-size: clamp(1.95rem, 4vw, 3.7rem); font-weight: 700; line-height: 1.24; letter-spacing: -.016em; max-width: 21em; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4.6vw, 64px); margin: clamp(56px, 7vw, 96px) 0 0; }
.values > div { min-width: 0; padding-top: 22px; border-top: 2px solid var(--gold-light); }
.values dt { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 700; line-height: 1.25; letter-spacing: -.012em; color: var(--gold-light); }
.values dd { margin: 14px 0 0; color: rgba(246, 240, 227, .84); max-width: 30em; line-height: 1.7; }
.values dd b { color: var(--cream); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Running band of trades ---------- */
.ticker { background: var(--espresso-deep); color: var(--cream); overflow: hidden; padding-block: clamp(4px, 1vw, 12px) clamp(56px, 7vw, 100px); }
.ticker__track { display: flex; width: max-content; animation: ticker 70s linear infinite; will-change: transform; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker span { font-size: clamp(2.5rem, 6.2vw, 5.8rem); font-weight: 800; letter-spacing: -.024em; line-height: 1.25; padding-inline: .36em; white-space: nowrap; }
.ticker span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px rgba(246, 240, 227, .5); }
.ticker span:nth-child(3n) { color: var(--gold-light); -webkit-text-stroke: 0; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Construction site ---------- */
.site { padding-block: var(--section) clamp(64px, 8vw, 120px); background: var(--porenbeton); background-image: linear-gradient(rgba(58, 43, 28, .05) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(58, 43, 28, .05) 1.5px, transparent 1.5px); background-size: 125px 50px, 125px 100px; background-position: 0 0, 62px 0; }
.site__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--gap-head) clamp(32px, 6vw, 88px); align-items: end; margin-bottom: var(--gap-block); }
.draw { background: linear-gradient(var(--gold-light), var(--gold-light)) no-repeat 0 94% / 100% .07em; padding-bottom: .04em; }
.site__layout { max-width: 1840px; margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
.viewer { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 104px); max-height: calc(100svh - 104px); min-height: 480px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, #a6bac5 0%, #cdd6d6 46%, #e7e3d7 100%); box-shadow: 0 30px 70px rgba(58, 43, 28, .2); cursor: grab; isolation: isolate; }
.viewer:active { cursor: grabbing; }
.viewer.is-night { background: linear-gradient(180deg, #120d09 0%, #2a1e15 56%, #4a3323 100%); }
.viewer__poster, .viewer__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer__canvas { opacity: 0; transition: opacity .6s ease; }
.viewer.is-ready .viewer__canvas { opacity: 1; }
.viewer.is-ready .viewer__poster { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s .6s; }
.viewer__pins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .4s ease; }
.viewer.is-ready .viewer__pins { opacity: 1; }
.pin { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; font-family: var(--font); will-change: transform; }
.pin__dot { width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--gold-light); border: 2px solid var(--cream); box-shadow: 0 1px 5px rgba(0, 0, 0, .4); flex: none; transition: transform .25s var(--ease-out); }
.pin__label { padding: 5px 11px; border-radius: 999px; background: rgba(31, 22, 13, .9); color: var(--cream); font-size: .75rem; font-weight: 600; line-height: 1.25; white-space: nowrap; transition: opacity .18s ease, background-color .18s ease, color .18s ease; }
.viewer.is-ready .pin__dot, .viewer.is-ready .pin__label { animation: pinIn .55s var(--ease-out) both; animation-delay: calc(.25s + var(--i, 0) * 45ms); }
@keyframes pinIn { from { opacity: 0; transform: scale(.4); } }
.pin.is-compact .pin__label { opacity: 0; pointer-events: none; }
.pin:hover .pin__dot { transform: scale(1.35); }
.pin:hover .pin__label, .pin:focus-visible .pin__label { opacity: 1; background: var(--espresso); }
.pin.is-active .pin__label { opacity: 1; background: var(--gold-light); color: var(--espresso-deep); }
.pin.is-active .pin__dot { background: var(--cream); border-color: var(--gold-light); }
.pin:hover { z-index: 5; } .pin.is-active { z-index: 6; }
.viewer__controls { position: absolute; z-index: 8; display: flex; gap: 8px; }
.viewer__controls--tl { top: 16px; left: 16px; flex-wrap: wrap; right: 16px; pointer-events: none; }
.viewer__controls--tl .chip { pointer-events: auto; }
.viewer__controls--bl { bottom: 16px; left: 16px; align-items: center; }
.chip { min-height: 42px; padding: 8px 17px; border: 0; border-radius: 999px; background: rgba(246, 240, 227, .94); color: var(--espresso-deep); font: 600 .875rem/1.1 var(--font); cursor: pointer; box-shadow: 0 2px 10px rgba(30, 20, 10, .14); transition: background-color .15s ease, transform .2s var(--ease-out); }
.chip:hover:not(:disabled) { background: #fff; transform: translateY(-1px); }
.chip:active:not(:disabled) { transform: scale(.97); }
.chip:disabled { opacity: .5; cursor: default; }
.chip[aria-pressed="true"], .chip[aria-pressed="true"]:hover:not(:disabled) { background: var(--espresso); color: var(--cream); }
.chip--icon { width: 42px; padding: 0; font-size: 1.25rem; font-weight: 500; }
.viewer__hint { position: absolute; z-index: 7; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 500; line-height: 1.35; color: var(--cream); background: rgba(31, 22, 13, .66); pointer-events: none; text-align: center; max-width: calc(100% - 180px); transition: opacity .4s ease; }

/* Detail card: photo and text beside the model, so both stay in view */
.viewer__card { position: absolute; z-index: 9; top: 16px; right: 16px; width: clamp(290px, 25%, 380px); max-height: calc(100% - 32px); overflow: auto; background: var(--paper); border-radius: 12px; box-shadow: 0 18px 50px rgba(20, 12, 4, .34); cursor: auto; overscroll-behavior: contain; }
.viewer__card[hidden] { display: none; }
.viewer__card.is-anim { animation: cardIn .6s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateX(28px); } }
.viewer__card img { width: 100%; aspect-ratio: 16 / 10.5; height: auto; object-fit: cover; background: var(--beton); }
.viewer__card.is-anim img { animation: cardPic 1.2s var(--ease-out) both; }
@keyframes cardPic { from { clip-path: inset(0 0 100% 0); scale: 1.12; } to { clip-path: inset(0); scale: 1; } }
.viewer__card h3 { padding: 18px 20px 0; padding-right: 44px; }
.viewer__card img ~ h3, .viewer__card h3:first-child { padding-right: 20px; }
.viewer__card h3:first-child { padding-right: 48px; }
.viewer__card p { padding: 8px 20px 0; font-size: .95rem; line-height: 1.62; color: var(--ink-soft); }
.viewer__card .trade__cta { margin: 12px 20px 20px; }
.viewer__card.is-anim h3, .viewer__card.is-anim p, .viewer__card.is-anim .trade__cta { animation: cardText .6s var(--ease-out) both; animation-delay: .22s; }
.viewer__card.is-anim p { animation-delay: .3s; } .viewer__card.is-anim .trade__cta { animation-delay: .38s; }
@keyframes cardText { from { opacity: 0; transform: translateY(12px); } }
.viewer__close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(246, 240, 227, .92); cursor: pointer; box-shadow: 0 1px 6px rgba(0, 0, 0, .18); transition: transform .25s var(--ease-out); }
.viewer__close:hover { transform: rotate(90deg); }
.viewer__close::before, .viewer__close::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 2px; background: var(--espresso-deep); transform: rotate(45deg); }
.viewer__close::after { transform: rotate(-45deg); }

/* Trades: the building section as an index */
.trades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.25fr); gap: 32px clamp(24px, 2.8vw, 44px); max-width: var(--wrap); margin: clamp(40px, 4.8vw, 68px) auto 0; padding-inline: var(--gutter); }
.level { min-width: 0; padding-top: 14px; border-top: 2px solid var(--espresso); }
.level__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: .84rem; line-height: 1.4; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); padding-bottom: 8px; }
.kote { color: var(--gold-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.trade { scroll-margin-top: 104px; scroll-margin-bottom: 24px; }
.trade > button { width: 100%; display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; background: none; border: 0; text-align: left; font: 600 1rem/1.42 var(--font); color: var(--ink); cursor: pointer; transition: color .2s ease, transform .3s var(--ease-out); }
.trade > button:hover { color: var(--gold-text); transform: translateX(4px); }
.trade.is-open > button { color: var(--gold-text); font-weight: 700; }
.trade__body { display: none; }
.trade__cta { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .96rem; color: var(--espresso); text-decoration: none; background: linear-gradient(var(--gold-light), var(--gold-light)) no-repeat 0 100% / 100% 2px; padding-bottom: 3px; transition: background-size .4s var(--ease-out); }
.trade__cta:hover { background-size: 40% 2px; }

/* phones and small tablets: viewer stays pinned above the list, details open in the row */
@media (max-width: 1060px) {
  .site__head { grid-template-columns: 1fr; }
  .viewer { position: sticky; top: calc(var(--header-h) + 18px); z-index: 5; aspect-ratio: 16 / 9; max-height: 60vh; max-height: 60svh; min-height: 300px; }
  .viewer__controls--bl { display: none; }
  .chip { min-height: 36px; padding: 7px 13px; font-size: .8rem; }
  .pin__label { font-size: .69rem; padding: 4px 8px; }
  .pin__dot { width: 11px; height: 11px; }
  .viewer__hint { font-size: .72rem; bottom: 12px; max-width: calc(100% - 28px); white-space: nowrap; }
  .viewer__card { display: none !important; }
  .trades { display: block; margin-top: 16px; padding: 8px 18px 14px; background: var(--paper); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(58, 43, 28, .1); max-width: none; }
  .level { padding-block: 14px 8px; border-top: 0; border-bottom: 1.5px solid var(--line); }
  .level:last-child { border-bottom: 0; }
  .trade { scroll-margin-top: calc(52svh + 104px); }
  .trade > button { align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
  .trade > button:hover { transform: none; }
  .trade > button::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease-out); }
  .trade > button[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .trade__body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--ease-out), visibility 0s .45s; font-size: .96rem; line-height: 1.62; color: var(--ink-soft); }
  .trade__body > div { overflow: hidden; min-height: 0; }
  .trade.is-open .trade__body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .45s var(--ease-out), visibility 0s; }
  .trade__body img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin: 2px 0 12px; }
  .trade.is-open .trade__body img { animation: cardPic 1s var(--ease-out) both; }
  .trade__body a { margin-bottom: 16px; }
}
@media (max-width: 699px) {
  .viewer { aspect-ratio: auto; height: 52vh; height: 52svh; max-height: 620px; }
}

/* ---------- Bautagebuch ---------- */
.diary { padding-block: var(--section); background: var(--paper); }
.diary__head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--gap-head) clamp(32px, 6vw, 88px); align-items: end; margin-bottom: var(--gap-block); }
.pic { position: relative; overflow: hidden; border-radius: 12px; background: var(--beton); isolation: isolate; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.entry__meta { margin: 20px 0 8px; font-size: .86rem; font-weight: 600; line-height: 1.4; letter-spacing: .012em; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.entry h3 { margin-bottom: 8px; transition: color .25s ease; }
.entry:hover h3 { color: var(--gold-text); }
.entry p:last-child { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.entry--feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.6vw, 72px); align-items: end; margin-bottom: clamp(56px, 7.4vw, 104px); }
.entry--feature .pic { aspect-ratio: 4 / 3.6; }
.entry--feature img { object-position: 50% 62%; }
.entry--feature h3 { font-size: clamp(1.8rem, 3.1vw, 2.8rem); font-weight: 800; line-height: 1.16; letter-spacing: -.02em; margin-bottom: 18px; }
.entry--feature .entry__meta { margin: 0 0 14px; font-size: .94rem; }
.entry--feature .entry__text p:last-child { font-size: clamp(1.05rem, 1.25vw, 1.14rem); line-height: 1.65; max-width: 30em; }
.diary__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(48px, 5.4vw, 80px) clamp(20px, 2.8vw, 40px); }
.diary__grid .entry { grid-column: span 4; min-width: 0; }
.diary__grid .pic { aspect-ratio: 1 / 1; }
.diary__grid .entry--wide { grid-column: span 8; }
.diary__grid .entry--wide .pic { aspect-ratio: 16 / 9.2; }
.diary__more { margin-top: clamp(44px, 5.6vw, 72px); }
@media (max-width: 860px) {
  .diary__head { grid-template-columns: 1fr; }
  .entry--feature { grid-template-columns: 1fr; }
  .diary__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
  .diary__grid .entry, .diary__grid .entry--wide { grid-column: span 1; }
  .diary__grid .entry--wide { grid-column: span 2; }
  .diary__grid .entry--wide .pic { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) { .entry p:last-child { font-size: .94rem; line-height: 1.6; } .entry h3 { font-size: 1.06rem; } .entry__meta { margin-top: 14px; font-size: .8rem; } }

/* ---------- Family ---------- */
.family { padding-block: var(--section); background: var(--espresso); color: var(--cream); }
.family__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6.4vw, 96px); align-items: center; }
.family__grid > div { min-width: 0; }
.family__photo { width: 100%; aspect-ratio: 5 / 6; }
.family h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.17; margin-bottom: clamp(22px, 2.6vw, 34px); }
.family .lead { margin-bottom: 18px; }
.family p:not(.lead) { color: rgba(246, 240, 227, .84); max-width: 36em; }
.places { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(26px, 3vw, 38px); }
.places li { padding: 7px 16px; border: 1.5px solid var(--line-on-dark); border-radius: 999px; font-size: .88rem; font-weight: 600; line-height: 1.4; }
@media (max-width: 760px) { .family__grid { grid-template-columns: 1fr; } .family__photo { aspect-ratio: 4 / 3.4; } }

/* ---------- Process: steps climb like courses of a wall ---------- */
.process { padding-block: var(--section); background: var(--porenbeton); }
.process h2 { margin-bottom: clamp(52px, 7vw, 112px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; }
.steps li { min-width: 0; padding: 26px 22px 30px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--line); }
.steps li:nth-child(2) { margin-bottom: 40px; } .steps li:nth-child(3) { margin-bottom: 80px; } .steps li:nth-child(4) { margin-bottom: 120px; }
.steps__n { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--gold); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { font-size: .98rem; line-height: 1.62; color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .steps li, .steps li:nth-child(n) { margin-bottom: 0; } .steps li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: 10px; } .steps__n { grid-row: span 2; font-size: 2.2rem; margin: 0; } }

/* ---------- Contact ---------- */
.contact { padding-block: var(--section); background: var(--espresso-deep); color: var(--cream); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6.4vw, 96px); align-items: start; }
.contact__intro h2 { margin-bottom: var(--gap-head); }
.contact__intro .lead { color: rgba(246, 240, 227, .86); }
.contact__direct { margin-top: 22px; font-size: clamp(1.04rem, 1.5vw, 1.26rem); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.contact__direct + .contact__direct { margin-top: 12px; }
.contact__direct a { color: var(--gold-light); text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 100% 1.5px; padding-bottom: 2px; transition: background-size .4s var(--ease-out); }
.contact__direct a:hover { background-size: 35% 1.5px; }
.form { display: grid; gap: 20px; min-width: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; line-height: 1.4; }
.field small { font-weight: 400; opacity: .72; font-size: .82rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 10px; border: 1.5px solid var(--line-on-dark); background: rgba(246, 240, 227, .07); color: var(--cream); font: 400 1rem/1.5 var(--font); color-scheme: dark; transition: border-color .2s ease, background-color .2s ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(246, 240, 227, .36); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; border-color: transparent; background: rgba(246, 240, 227, .1); }
.field select option { color: #111; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e98b6d; }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: .88rem; line-height: 1.6; color: rgba(246, 240, 227, .9); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold-light); }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent.is-invalid { color: #f0a58e; }
.form .btn { justify-self: start; margin-top: 4px; }
.form__note { font-size: .86rem; line-height: 1.55; color: rgba(246, 240, 227, .7); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: #150e08; color: var(--cream); padding-block: clamp(52px, 6.4vw, 84px) 30px; }
.site-footer__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(28px, 5.4vw, 72px); align-items: center; }
.site-footer__logo { width: clamp(120px, 12vw, 170px); height: auto; }
.site-footer__claim { font-size: clamp(1.12rem, 1.9vw, 1.56rem); font-weight: 700; line-height: 1.36; letter-spacing: -.01em; }
.site-footer nav { display: grid; gap: 9px; font-size: .94rem; line-height: 1.5; }
.site-footer nav a { text-decoration: none; opacity: .86; overflow-wrap: anywhere; transition: opacity .2s ease, color .2s ease; }
.site-footer nav a:hover { opacity: 1; color: var(--gold-light); }
.site-footer__fine { margin-top: 34px; font-size: .82rem; opacity: .56; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Effects. fx.js switches them on, so content stays visible if it never runs. ---------- */
.fx-on .fx-rise { opacity: 0; transform: translateY(22px); transition: opacity .85s ease, transform .95s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.fx-on .fx-rise.is-in { opacity: 1; transform: none; }

.fx-on .fx-words .w__i { transform: translate3d(0, 112%, 0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.fx-on .fx-words.is-in .w__i { transform: none; }
.fx-on .draw { background-size: 0% .07em; transition: background-size 1s var(--ease-io) .55s; }
.fx-on .fx-words.is-in .draw { background-size: 100% .07em; }

/* Statement lights up word by word while it scrolls through */
.fx-on .fw { opacity: .2; transition: opacity .35s ease; }
.fx-on .fw.is-lit { opacity: 1; }

/* Pictures: a shutter in the page colour lifts with a thin gold edge, the photo settles out of a slight zoom, then drifts with the scroll */
.fx-on .pic { background: var(--shutter, var(--paper)); }
.fx-on .pic img { scale: 1.14; transition: scale 1.7s var(--ease-out); }
.fx-on .pic::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--shutter, var(--paper)); border-bottom: 3px solid var(--gold-light); pointer-events: none; }
.fx-on .pic.is-in::after { transform: translateY(-101%); transition: transform 1.15s var(--ease-io); }
.fx-on .pic.is-in img { scale: 1; }
.fx-on .pic.is-settled:hover img { scale: 1.05; transition-duration: 1.1s; }
.family { --shutter: var(--espresso); }
.pic[data-parallax] img { position: absolute; left: 0; top: -38px; height: calc(100% + 76px); translate: 0 var(--py, 0px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  .btn, .chip, .trade > button { transition: none; }
}

/* ---------- Legal pages ---------- */
.legal { background: var(--paper); padding: 136px 0 var(--section); min-height: 70vh; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.14; margin-bottom: 30px; }
.legal h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.01em; margin: 40px 0 12px; line-height: 1.3; }
.legal p, .legal li { margin-bottom: 12px; color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.fill { background: #fff0b8; color: #5b4300; padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.notice { padding: 14px 16px; border-radius: 10px; background: #fff0b8; color: #5b4300; margin-bottom: 28px; font-size: .96rem; }
