/* K699 — design system
   Quiet architectural luxury: warm paper, ink, RAL 7048 grey, moss. */

/* The two webfonts, served from the site itself (no request to Google). */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-italic-latin-ext-0.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin-ext */
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-italic-latin-1.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-normal-latin-ext-2.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin-ext */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/instrument-serif-normal-latin-3.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/inter-tight-normal-latin-ext-4.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin-ext */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/inter-tight-normal-latin-5.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* latin */

/* Stand-ins for the two webfonts, scaled to the same width and height (measured against
   Inter Tight and Instrument Serif). If a webfont arrives late on a slow connection,
   the text is already laid out at its final size and does not jump when it swaps in. */
@font-face { font-family: 'K699 Sans Fallback'; src: local('Arial'); size-adjust: 95.3%; ascent-override: 101.8%; descent-override: 25.2%; line-gap-override: 0%; }
@font-face { font-family: 'K699 Serif Fallback'; font-style: italic; src: local('Times New Roman Italic'), local('TimesNewRomanPS-ItalicMT'); size-adjust: 88.4%; ascent-override: 112%; descent-override: 35%; line-gap-override: 0%; }

:root {
  --paper: #efece6;
  --paper-2: #e6e2da;
  --paper-3: #dcd7cd;
  --ink: #161714;
  --ink-2: #3b3c37;
  --mute: #7e7a72; /* RAL 7048 pearl mouse grey */
  --line: rgba(22, 23, 20, 0.14);
  --line-strong: rgba(22, 23, 20, 0.28);
  --moss: #3f4a3c;
  --night: #111210;
  --night-2: #1b1c1a;
  --night-line: rgba(239, 236, 230, 0.14);
  --free: #6f8f68;
  --reserved: #c7924a;
  --rented: #b0574d;

  --f-sans: 'Inter Tight', 'K699 Sans Fallback', 'Helvetica Neue', Arial, sans-serif;
  --f-serif: 'Instrument Serif', 'K699 Serif Fallback', 'Times New Roman', serif;
  --f-mono: 'Inter Tight', 'K699 Sans Fallback', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1520px;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
/* the scrollbar keeps its place while the page is locked (preloader, menu, inquiry, lightbox),
   so the layout does not shift sideways on systems with classic scrollbars (Windows) */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html.is-locked:not(.lenis) { overflow: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow.no-line::before { display: none; }
.display {
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-size: clamp(56px, 11vw, 210px);
  margin: 0;
}
.h1 { font-size: clamp(44px, 6.6vw, 112px); font-weight: 400; letter-spacing: -0.04em; line-height: 0.98; margin: 0; }
.h2 { font-size: clamp(34px, 4.4vw, 72px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.h3 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; letter-spacing: -0.012em; color: var(--ink-2); max-width: 36ch; }
.muted { color: var(--mute); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 14vw, 200px) 0; position: relative; }
.section--tight { padding: clamp(64px, 8vw, 120px) 0; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(12px, 2vw, 32px); }
.dark { background: var(--night); color: var(--paper); }
.dark .muted, .dark .eyebrow { color: #9c988f; }
.dark .lead { color: #cfcac0; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.dark .rule { background: var(--night-line); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 26px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--moss);
  transform: translateY(101%); border-radius: 50% 50% 0 0;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn .arr { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.dark .btn { --bg: var(--paper); --fg: var(--ink); }
.dark .btn::before { background: #d9d4c8; }
.dark .btn--ghost { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 1px rgba(239,236,230,.3); }
.dark .btn--ghost::before { background: var(--paper); }
.dark .btn--ghost:hover { color: var(--ink); }

.link-line { position: relative; display: inline-flex; gap: 10px; align-items: center; padding-bottom: 4px; font-weight: 500; }
.link-line::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link-line:hover::after { transform: scaleX(0); }

.chip {
  height: 38px; padding: 0 16px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px; display: inline-flex; align-items: center; gap: 8px;
  transition: background .3s, color .3s, box-shadow .3s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }
.dark .chip { box-shadow: inset 0 0 0 1px rgba(239,236,230,.25); }
.dark .chip:hover { box-shadow: inset 0 0 0 1px var(--paper); }
.dark .chip.is-active { background: var(--paper); color: var(--ink); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot--free { background: var(--free); }
.dot--reserved { background: var(--reserved); }
.dot--rented { background: var(--rented); }

/* ---------- Preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  display: grid; place-items: center;
}
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__crown { width: 120px; height: 34px; color: var(--ink); }
.loader__crown path { stroke-dasharray: 200; stroke-dashoffset: 200; }
.loader__count { font-family: var(--f-mono); font-size: 13px; letter-spacing: .18em; color: var(--mute); }
.loader__word { overflow: hidden; }
.loader__word span { display: block; font-size: 64px; font-weight: 500; letter-spacing: -0.05em; line-height: 1; transform: translateY(105%); }
.loader__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Page transition ---------- */
.transition {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  display: grid; place-items: center;
}
.transition__panel { position: absolute; inset: 0; background: var(--ink); transform: translateY(100%); }
.transition__logo { position: relative; color: var(--paper); opacity: 0; }
.transition__logo svg { width: 180px; height: auto; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .7s var(--ease), background .5s, color .5s;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: none; padding: 0 var(--gutter); }
.header.is-light { color: var(--paper); }
.header.is-solid { background: rgba(239, 236, 230, 0.82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { height: 26px; width: auto; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 40px); font-size: 14.5px; }
.nav a { position: relative; padding: 6px 0; opacity: .86; transition: opacity .3s; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.nav a:hover, .nav a.is-current { opacity: 1; }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header .btn { height: 44px; padding: 0 20px; font-size: 14px; }
.header .btn--inquiry { height: 52px; padding: 0 30px; font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.header.is-light .btn { --bg: var(--paper); --fg: var(--ink); }
.header.is-light .btn::before { background: #d9d4c8; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--night); color: var(--paper);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
}
.menu__links { display: grid; gap: 4px; }
.menu__links a { font-size: clamp(40px, 11vw, 64px); letter-spacing: -0.04em; line-height: 1.08; display: flex; gap: 14px; align-items: baseline; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.menu__links a span.i { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: #8d897f; }
.menu__links a .t { display: inline-block; }
.menu__foot { margin-top: 48px; display: flex; justify-content: space-between; color: #9c988f; font-size: 14px; gap: 16px; flex-wrap: wrap; }
.menu-open .header { color: var(--paper) !important; background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; }

/* ---------- Reveal primitives ---------- */
/* words fade in place (no clipping mask), so a line never changes size or position */
.split-line { display: block; padding: 0.04em 0.12em 0.18em 0; margin: -0.04em -0.12em -0.18em 0; }
.split-line > span { display: block; }
[data-reveal] { opacity: 0; transform: translateY(16px); }
.img-reveal { position: relative; overflow: hidden; }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
/* sliding window used by the horizontal story (see pages/home.js) */
.img-reveal__win, .img-reveal__hold { position: absolute; inset: 0; overflow: hidden; will-change: transform; }
.hstory .img-reveal img { will-change: transform; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; color: var(--paper); background: var(--night); }
.hero__media { position: absolute; inset: 0; will-change: transform, clip-path; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.18); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__video.is-on { opacity: 1; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,10,.42) 0%, rgba(10,11,10,0) 24%, rgba(10,11,10,0) 38%, rgba(10,11,10,.55) 72%, rgba(10,11,10,.78) 100%); }
.hero__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(28px, 5vw, 64px); }
.hero__title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero__word { font-size: clamp(110px, 25vw, 420px); font-weight: 500; letter-spacing: -0.065em; line-height: 0.78; margin: 0 0 -0.14em -0.04em; display: flex; overflow: hidden; overflow: clip; padding: .06em .08em .14em 0; }
.hero__word.is-done { overflow: visible; }
.hero__word span { display: inline-block; transform: translateY(105%); }
.hero__aside { max-width: 360px; padding-bottom: 1.2vw; }
.hero__aside { position: relative; }
.hero__aside::before { content: ''; position: absolute; inset: -60px -80px -40px -80px; z-index: -1; background: radial-gradient(closest-side, rgba(10,11,10,.55), rgba(10,11,10,0)); pointer-events: none; }
.hero__aside p, .hero__aside .eyebrow, .hero__meta { text-shadow: 0 1px 18px rgba(0,0,0,.45); }
.hero__aside p { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.4; margin: 14px 0 26px; color: #ece8e0; }
.hero__meta { display: flex; justify-content: space-between; align-items: center; margin-top: clamp(20px, 3vw, 36px); padding-top: 18px; border-top: 1px solid rgba(239,236,230,.28); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #ddd8ce; gap: 20px; }
.hero__meta .scroll { display: inline-flex; align-items: center; gap: 12px; }
.hero__meta .scroll i { width: 1px; height: 28px; background: rgba(239,236,230,.3); position: relative; overflow: hidden; }
.hero__meta .scroll i::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--paper); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- Statement ---------- */
.statement { font-size: clamp(30px, 4.2vw, 68px); line-height: 1.08; letter-spacing: -0.035em; max-width: 20ch; margin: 0; font-weight: 400; }
.statement .w { opacity: .14; transition: none; }
.statement .serif { font-size: 1.06em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat__n { font-size: clamp(54px, 7vw, 120px); font-weight: 400; letter-spacing: -0.055em; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.stat__n small { font-size: .3em; letter-spacing: -0.01em; color: var(--mute); }
.stat__l { margin-top: 14px; font-size: 15px; color: var(--ink-2); }

/* ---------- 3D model stage ---------- */
.stage { position: relative; height: 100svh; min-height: 640px; background: var(--paper-2); overflow: hidden; }
.stage--dark { background: var(--night); }
/* The model is light by day and dark in the evening, whatever section it stands in: the
   controls take their colours from the stage, never from a dark section around it. */
.stage { color: var(--ink); transition: color 1s; }
.stage .eyebrow { color: var(--mute); }
.stage--night { color: var(--paper); }
.stage--night .stage__hint { color: #cfcac0; background: rgba(27, 28, 26, 0.72); }
.stage--night .eyebrow, .stage--night .panel__label { color: #9c988f; }
.stage__canvas { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
/* a still of the model in its resting view stands in until the live model is fully loaded */
.stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease); }
.stage.is-ready .stage__canvas { opacity: 1; }
.stage.is-ready .stage__poster { opacity: 0; }
.no-webgl .stage__poster { display: none; }
/* pan-y: a finger moving up or down over the model scrolls the page, sideways it turns the house */
.stage__canvas canvas { width: 100% !important; height: 100% !important; touch-action: pan-y !important; }
.stage__ui { position: absolute; inset: 0; pointer-events: none; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--header-h) + 20px) var(--gutter) 28px; }
.stage__ui > * { pointer-events: auto; }
.stage__ui > div:empty { pointer-events: none; }
.stage__bottom { pointer-events: none; }
.stage__bottom > * { pointer-events: auto; }
.stage__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; pointer-events: none; }
.stage__top > * { pointer-events: auto; }
.stage__title .h2 { max-width: 11ch; }
.stage__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.panel {
  background: rgba(239, 236, 230, 0.72);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 18px; padding: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 18px 50px -20px rgba(20,20,18,.25);
  display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
}
.stage--night .panel { background: rgba(27, 28, 26, 0.72); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }
.panel__label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); padding: 0 10px 0 8px; }
.seg { height: 40px; min-width: 40px; padding: 0 14px; border-radius: 12px; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .3s, color .3s; white-space: nowrap; }
.seg:hover { background: rgba(22,23,20,.07); }
.stage--night .seg:hover { background: rgba(239,236,230,.08); }
.seg.is-active { background: var(--ink); color: var(--paper); }
.stage--night .seg.is-active { background: var(--paper); color: var(--ink); }
.floor-rail { display: grid; gap: 4px; }
.floor-rail .seg { width: 44px; padding: 0; font-family: var(--f-mono); font-size: 12px; }
.stage__side { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); pointer-events: auto; }
.legend { display: flex; gap: 16px; font-size: 13px; padding: 10px 16px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.compass { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.compass svg { width: 64px; height: 64px; }
.stage__hint { font-size: 13px; color: #55524b; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 99px; background: rgba(239, 236, 230, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.stage__hint svg { width: 22px; }
.stage__skip { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); }
/* during the fly-in the controls are out of the way and cannot be clicked; the heading stays */
.stage__bottom, .stage__side, .stage__top .legend { transition: opacity .8s var(--ease); }
.stage--intro .stage__bottom, .stage--intro .stage__side, .stage--intro .stage__top .legend { opacity: 0; }
.stage--intro .stage__bottom > *, .stage--intro .stage__side, .stage--intro .stage__top .legend { pointer-events: none; }

.tooltip {
  position: fixed; z-index: 60; pointer-events: none;
  min-width: 220px; padding: 16px 18px; border-radius: 16px;
  background: rgba(22, 23, 20, .92); color: var(--paper);
  backdrop-filter: blur(10px);
  opacity: 0; transform: translate(-50%, calc(-100% - 18px)) scale(.96);
  transition: opacity .25s, transform .35s var(--ease-out);
}
.tooltip.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 22px)) scale(1); }
.tooltip__code { font-size: 28px; letter-spacing: -0.03em; line-height: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tooltip__code small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: #a6a298; }
.tooltip__rows { margin-top: 12px; display: grid; grid-template-columns: auto auto; gap: 4px 18px; font-size: 13px; color: #d0cbc1; }
.tooltip__rows b { font-weight: 500; color: var(--paper); text-align: right; }
.tooltip__st { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }

.unit-label {
  position: absolute; transform: translate(-50%, -50%); pointer-events: none;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
  padding: 5px 9px; border-radius: 99px; background: rgba(22,23,20,.85); color: var(--paper);
  white-space: nowrap;
}
.unit-label i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

.fallback { position: absolute; inset: 0; display: none; }
.no-webgl .fallback { display: block; }
.fallback img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Architecture: horizontal story ---------- */
.hstory { position: relative; overflow: hidden; background: var(--paper); }
.hstory__track { display: flex; gap: clamp(24px, 4vw, 64px); padding: 0 var(--gutter); height: 100svh; align-items: center; width: max-content; }
.hstory__intro { width: min(560px, 80vw); flex: none; }
.hcard { flex: none; width: min(clamp(300px, 34vw, 560px), calc((100svh - 330px) * 0.8)); display: grid; gap: 22px; }
.hcard--wide { width: min(clamp(320px, 52vw, 860px), calc((100svh - 330px) * 1.6)); }
.hcard .img-reveal { aspect-ratio: 4 / 5; border-radius: 4px; }
.hcard--wide .img-reveal { aspect-ratio: 16 / 10; }
.hcard__meta { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; }
.hcard__meta .mono { color: var(--mute); padding-top: 6px; }
.hcard__meta p { color: var(--ink-2); margin: 10px 0 0; max-width: 42ch; font-size: 16px; }
.hcard:not(.hcard--wide) .hcard__meta { grid-template-columns: 40px 1fr; gap: 0 12px; }
.hcard:not(.hcard--wide) .hcard__meta p { max-width: none; }
.hstory__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; height: 1px; background: var(--line); }
.hstory__progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Floor plan & units ---------- */
.units-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.ucard {
  position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 6px; overflow: hidden;
  background: var(--paper-2); transition: background .5s var(--ease);
}
.ucard:hover { background: var(--paper-3); }
.ucard__plan { aspect-ratio: 4 / 3; position: relative; background: #f7f6f2; overflow: hidden; }
.ucard__plan svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1s var(--ease-out); }
.ucard:hover .ucard__plan svg { transform: scale(1.05); }
.ucard__body { padding: 22px 22px 24px; display: grid; gap: 14px; }
.ucard__top { display: flex; justify-content: space-between; align-items: baseline; }
.ucard__code { font-size: 40px; letter-spacing: -0.04em; line-height: 1; }
.ucard__status { font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.ucard__specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.ucard__specs span { display: block; color: var(--mute); font-size: 11px; font-family: var(--f-mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.ucard__go { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .6s var(--ease-out); }
.ucard:hover .ucard__go { transform: scale(1) rotate(0); }
.ucard__go svg { width: 18px; }
.badge { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; background: var(--ink); color: var(--paper); position: absolute; left: 14px; top: 14px; z-index: 2; }

/* Table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.utable { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 820px; }
.utable th { text-align: left; font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 14px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; user-select: none; }
.utable th[data-sort] { cursor: pointer; }
.utable th[data-sort]:hover { color: var(--ink); }
.utable th.is-sorted { color: var(--ink); }
.utable th.is-sorted::after { content: ' ↓'; }
.utable th.is-sorted.asc::after { content: ' ↑'; }
.utable td { padding: 18px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.utable tr { transition: background .3s; }
.utable tbody tr { cursor: pointer; }
.utable tbody tr:hover { background: var(--paper-2); }
.utable td.code { font-size: 22px; letter-spacing: -0.03em; }
.utable .st { display: inline-flex; align-items: center; gap: 8px; }
.utable a.pdf { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.empty { padding: 60px 0; text-align: center; color: var(--mute); }

/* ---------- Penthouse feature ---------- */
.feature { position: relative; height: 130svh; overflow: hidden; color: var(--paper); }
.feature__media { position: absolute; inset: 0; }
.feature__media img { width: 100%; height: 120%; object-fit: cover; }
.feature__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,13,12,.62), rgba(12,13,12,.08) 60%); }
.feature__content { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.feature__box { max-width: 560px; }
.feature__box .h1 { margin: 20px 0 26px; }
.feature__box p { color: #e6e1d7; font-size: 19px; max-width: 40ch; }
.feature__nums { display: flex; gap: 40px; margin: 32px 0 36px; }
.feature__nums b { display: block; font-size: 48px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.feature__nums span { font-size: 13px; color: #cfcac0; }

/* ---------- Location ---------- */
.loc { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.loc__list { margin-top: 40px; border-top: 1px solid var(--line); }
.loc__item { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; cursor: default; transition: padding .5s var(--ease); }
.loc__item:hover, .loc__item.is-active { padding-left: 14px; }
.loc__item b { font-weight: 500; }
.loc__item span { font-family: var(--f-mono); font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.map-art { position: relative; aspect-ratio: 1 / 1; background: #e4e0d7; border-radius: 6px; overflow: hidden; }
.map-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-art .poi circle { transition: r .4s var(--ease-out); }
.map-art .poi.is-active circle.c { r: 9; }
.map-art .poi text { font-family: var(--f-sans); font-size: 15px; font-weight: 500; fill: var(--ink); }
.map-art .m-label { font-family: var(--f-sans); font-weight: 500; }
/* over the picture of the neighbourhood the lettering needs a light edge to stay readable */
.map-art .m-halo { paint-order: stroke; stroke: rgba(239, 236, 230, .88); stroke-width: 3.5px; stroke-linejoin: round; }
.map-art .m-img { opacity: 0; transition: opacity 1.2s var(--ease); }
.map-art .m-img.is-in { opacity: 1; }
.map-art .route { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .5; }

/* ---------- Living in the house ---------- */
.amen { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.amen__item { padding: 28px 24px 36px 0; border-bottom: 1px solid var(--line); min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.amen__item:not(:nth-child(4n)) { border-right: 1px solid var(--line); margin-right: 0; }
.amen__item:not(:nth-child(4n+1)) { padding-left: 24px; }
.amen__item .mono { color: var(--mute); }
.amen__item h4 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 8px; }
.amen__item p { margin: 0; color: var(--ink-2); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 72px); align-items: center; }
.split .img-reveal { aspect-ratio: 4 / 5; border-radius: 4px; }

/* ---------- Gallery ---------- */
.gal-strip { display: flex; gap: 18px; padding: 0 var(--gutter); overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.gal-strip.is-dragging { cursor: grabbing; }
.gal-strip__track { display: flex; gap: 18px; will-change: transform; }
.gal-strip figure { margin: 0; flex: none; height: clamp(320px, 52vh, 620px); position: relative; overflow: hidden; border-radius: 4px; }
.gal-strip figure img { height: 100%; width: auto; max-width: none; transition: transform 1.2s var(--ease-out); pointer-events: none; }
.gal-strip figure:hover img { transform: scale(1.04); }
.gal-strip figcaption, .gal-grid figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: var(--paper); text-shadow: 0 1px 12px rgba(0,0,0,.5); opacity: 0; transform: translateY(8px); transition: .5s var(--ease-out); }
.gal-strip figure:hover figcaption, .gal-grid figure:hover figcaption { opacity: 1; transform: none; }
.gal-grid { columns: 3; column-gap: 18px; }
.gal-grid figure { margin: 0 0 18px; break-inside: avoid; position: relative; overflow: hidden; border-radius: 4px; cursor: zoom-in; }
.gal-grid img { width: 100%; height: auto; transition: transform 1.2s var(--ease-out); }
.gal-grid figure:hover img { transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; z-index: 180; background: rgba(12,13,12,.96); color: var(--paper); display: none; grid-template-rows: auto 1fr auto; }
.lightbox.is-open { display: grid; }
.lightbox__top, .lightbox__bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); font-size: 14px; }
/* the picture always fits the space between the two bars, whatever its shape. (It used to
   be sized by max-height in a grid cell, which browsers ignore there: tall pictures ran off
   the bottom of the screen and took the caption and the arrows with them.) */
.lightbox__img { position: relative; min-height: 0; }
.lightbox__img img { position: absolute; top: 0; bottom: 0; left: var(--gutter); width: calc(100% - 2 * var(--gutter)); height: 100%; max-width: none; object-fit: contain; }
.lightbox button { width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(239,236,230,.3); display: grid; place-items: center; }
.lightbox button:hover { background: rgba(239,236,230,.1); }
.lightbox svg { width: 18px; }

/* ---------- Timeline ---------- */
.tl { position: relative; display: grid; gap: 0; }
.tl__line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--night-line); }
.tl__line i { position: absolute; inset: 0; background: var(--paper); transform-origin: top; transform: scaleY(0); }
.tl__item { position: relative; display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 0 0 52px 48px; }
.tl__item::before { content: ''; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--night); box-shadow: inset 0 0 0 1px rgba(239,236,230,.4); }
.tl__item.done::before { background: var(--paper); box-shadow: none; }
.tl__item.current::before { background: var(--paper); box-shadow: 0 0 0 6px rgba(239,236,230,.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 12px rgba(239,236,230,0); } }
.tl__date { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9c988f; padding-top: 4px; }
.tl__item h4 { font-size: clamp(22px, 2vw, 30px); font-weight: 400; letter-spacing: -0.025em; margin: 0 0 8px; }
.tl__item p { margin: 0; color: #b8b3a9; max-width: 52ch; }
.tl__item.current h4::after { content: 'Právě teď'; margin-left: 14px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--paper); color: var(--ink); vertical-align: 6px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font-size: clamp(19px, 1.7vw, 25px); letter-spacing: -0.02em; }
.faq__q i { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; flex: none; transition: background .4s, transform .6s var(--ease); }
.faq__q i::before, .faq__q i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .6s var(--ease); }
.faq__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__q i { background: var(--ink); color: var(--paper); transform: rotate(180deg); }
.faq__item.is-open .faq__q i::after { transform: translate(-50%, -50%) rotate(0); }
.faq__a { height: 0; overflow: hidden; }
.faq__a p { padding: 0 0 30px; margin: 0; max-width: 62ch; color: var(--ink-2); }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { position: relative; padding-top: 20px; margin-bottom: 18px; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 18px; color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 12px 0 12px; border-radius: 0; outline: none; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.dark .field input, .dark .field textarea, .dark .field select { border-color: rgba(239,236,230,.25); }
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.dark .field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field label { position: absolute; left: 0; top: 32px; font-size: 18px; color: var(--mute); pointer-events: none; transition: .35s var(--ease-out); transform-origin: left; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: currentColor; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-26px) scale(.72); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--rented); }
.field__err { font-size: 12.5px; color: var(--rented); margin-top: 6px; display: none; }
.field.is-invalid .field__err { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); grid-column: 1 / -1; margin: 10px 0 28px; cursor: pointer; }
.dark .check { color: #cfcac0; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin-top: 1px; }
.hp { position: absolute; left: -9999px; }
.form__ok { display: none; padding: 40px 0; }
.form.is-sent { display: none; }
.form.is-sent + .form__ok { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: var(--paper); padding: clamp(80px, 10vw, 140px) 0 32px; overflow: hidden; }
.footer__cta { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(60px, 8vw, 120px); }
.footer__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--night-line); font-size: 15px; }
.footer__cols h5 { font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: #8d897f; margin: 0 0 16px; }
.footer__cols a { display: block; padding: 3px 0; color: #d6d1c7; transition: color .3s; }
.footer__cols a:hover { color: var(--paper); }
.footer__big { font-size: clamp(120px, 30vw, 520px); font-weight: 500; letter-spacing: -0.07em; line-height: .76; margin: 20px 0 0 -0.04em; color: #1e201d; user-select: none; white-space: nowrap; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8d897f; padding-top: 24px; border-top: 1px solid var(--night-line); }

/* ---------- Subpage hero ---------- */
.phero { padding: calc(var(--header-h) + clamp(60px, 10vw, 140px)) 0 clamp(48px, 6vw, 80px); }
.phero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.phero .h1 { margin-top: 24px; }
.crumbs { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); display: flex; gap: 10px; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Unit detail ---------- */
.ud { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 72px); align-items: start; }
.ud__plan { background: #f7f6f2; border-radius: 6px; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.ud__plan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ud__plan .zoom { position: absolute; right: 14px; bottom: 14px; display: flex; z-index: 2; gap: 6px; }
/* the flat as a white model, lying over the drawing */
.ud__model { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; container-type: size; background: #f7f6f2; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; }
.ud__plan.is-model .ud__model { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
/* the picture and the room names share one 4 : 3 frame, so the names stay on their rooms in a box of any shape */
.ud__model-in { position: relative; flex: none; width: 100%; aspect-ratio: 4 / 3; }
@supports (width: 1cqw) { .ud__model-in { width: min(100cqw, 100cqh * 4 / 3); } }
.ud__model img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ud__tag { position: absolute; transform: translate(-50%, -50%); padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .88); box-shadow: 0 1px 8px rgba(0, 0, 0, .08); font-size: clamp(10.5px, 1vw, 12.5px); font-weight: 500; white-space: nowrap; pointer-events: none; }
.ud__tag--in { background: var(--ink); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
/* on a phone the box grows by the height of the buttons, so they do not lie over the model */
@media (max-width: 640px) {
  .ud__plan.has-model { aspect-ratio: 10 / 9; }
  .ud__plan.has-model .ud__model { padding-bottom: 15%; }
  .ud__tag { padding: 3px 8px; font-size: 10px; }
  .ud__tag--s { display: none; }
}
.ud__plan .zoom button { height: 38px; padding: 0 16px; border-radius: 99px; background: var(--paper); box-shadow: 0 2px 10px rgba(0,0,0,.08); font-size: 13px; transition: background .3s, color .3s; }
.ud__plan .zoom button:hover, .ud__plan .zoom button.is-active { background: var(--ink); color: var(--paper); }
.ud__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.ud__code { font-size: clamp(90px, 11vw, 180px); letter-spacing: -0.06em; line-height: .85; font-weight: 400; }
.specs { display: grid; grid-template-columns: 1fr auto; border-top: 1px solid var(--line); margin: 32px 0; }
.specs > * { padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; text-align: right; font-weight: 500; }
.specs dd.na { color: var(--mute); font-weight: 400; }
.price-box { background: var(--paper-2); border-radius: 6px; padding: 22px; display: grid; gap: 6px; margin-bottom: 18px; }
.price-box b { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; }
.keyplan { background: var(--paper-2); border-radius: 6px; padding: 18px; }
.keyplan svg { width: 100%; height: auto; }
.rooms { columns: 2; column-gap: 32px; padding: 0; margin: 0; list-style: none; }
.rooms li { padding: 12px 0; border-bottom: 1px solid var(--line); break-inside: avoid; display: flex; justify-content: space-between; gap: 12px; }
.rooms li span { color: var(--mute); font-family: var(--f-mono); font-size: 12px; }
.siblings { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sib { padding: 16px; border-radius: 6px; background: var(--paper-2); display: grid; gap: 6px; transition: background .4s; }
.sib:hover { background: var(--paper-3); }
.sib b { font-size: 24px; font-weight: 400; letter-spacing: -0.03em; }
.sib span { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news a { display: grid; gap: 18px; }
.news .img-reveal { aspect-ratio: 4 / 3; border-radius: 4px; }
.news .img-reveal img { transition: transform 1.2s var(--ease-out); }
.news a:hover .img-reveal img { transform: scale(1.05); }
.news h3 { font-size: 24px; font-weight: 400; letter-spacing: -0.025em; margin: 0; line-height: 1.15; }
.news p { color: var(--ink-2); font-size: 15px; margin: 0; }
.article { max-width: 760px; margin: 0 auto; }
.article p { font-size: 19px; line-height: 1.65; color: var(--ink-2); }

/* ---------- Standards ---------- */
.std { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 96px); }
.std__item { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.std__item .mono { color: var(--mute); padding-top: 6px; }
.std__item h4 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 8px; }
.std__item p { margin: 0; color: var(--ink-2); }
.mat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mat figure { margin: 0; }
.mat .img-reveal { aspect-ratio: 3 / 4; border-radius: 4px; }
.mat figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.swatch { aspect-ratio: 3 / 4; border-radius: 4px; display: flex; align-items: flex-end; padding: 16px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--paper); text-transform: uppercase; }

.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); }
.leaflet-map { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--paper-2); z-index: 1; }
.leaflet-container { font-family: var(--f-sans); background: #e4e0d7; }
.map-pin { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 13px; font-weight: 500; letter-spacing: -0.02em; box-shadow: 0 0 0 10px rgba(22,23,20,.12); }

.note { font-size: 13px; color: var(--mute); border-left: 2px solid var(--line-strong); padding-left: 14px; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 12.5px; font-weight: 500; transform: scale(0); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__cta .btn { height: 44px; padding: 0 18px; font-size: 13px; }
  .unit-grid { grid-template-columns: repeat(2, 1fr); }
  .amen { grid-template-columns: repeat(2, 1fr); }
  .amen__item:nth-child(n) { border-right: 0; padding-left: 0; }
  .amen__item:nth-child(odd) { border-right: 1px solid var(--line); }
  .amen__item:nth-child(even) { padding-left: 24px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .mat { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { margin-right: 0; padding-right: 16px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .stat:nth-child(2n) { border-right: 0; padding-left: 16px; }
  .loc, .split, .ud, .contact-grid, .std { grid-template-columns: 1fr; }
  .ud__aside { position: static; order: -1; }
  .unit-grid, .news { grid-template-columns: 1fr; }
  .gal-grid { columns: 2; column-gap: 10px; }
  .gal-grid figure { margin-bottom: 10px; }
  .tl__item { grid-template-columns: 1fr; gap: 6px; padding-left: 40px; }
  .form { grid-template-columns: 1fr; }
  .hero__aside { max-width: none; }
  .hero__word { margin-bottom: 0; }
  .hero__title { gap: 18px; }
  .hero__meta .hide-m { display: none; }
  .stage__side { top: calc(var(--header-h) + 150px); bottom: auto; transform: none; }
  .floor-rail .seg { height: 34px; }
  .stage__top .h2 { font-size: 30px; }
  .stage__bottom .panel { max-width: 100%; }
  .compass { display: none; }
  .feature__nums { gap: 24px; }
  .feature__nums b { font-size: 36px; }
  .rooms { columns: 1; }
  .hstory__track { height: auto; flex-direction: column; width: auto; padding: 96px var(--gutter); align-items: stretch; gap: 56px; }
  .hcard, .hcard--wide, .hstory__intro { width: 100%; }
  .hstory__progress { display: none; }
  .amen { grid-template-columns: 1fr; }
  .amen__item:nth-child(n) { border-right: 0; padding-left: 0; min-height: 0; }
  .amen__item { flex-direction: row; justify-content: flex-start; gap: 18px; padding: 22px 0; }
  .amen__item .mono { min-width: 26px; padding-top: 5px; }
}
@media (max-width: 520px) {
  .legend { gap: 10px; font-size: 12px; }
  .stage__hint { display: none; }
  .seg { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 820px) {
  .grid-12 { display: block; }
  .grid-12 > * + * { margin-top: 48px; }
}

/* ---------- Unit card for print / PDF ---------- */
.print-card { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body > *:not(.print-card) { display: none !important; }
  body { background: #fff; }
  .print-card { display: block; color: #161714; font-family: var(--f-sans); }
  .pc__head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ccc; padding-bottom: 10px; font-size: 11px; color: #7e7a72; }
  .pc__head svg { height: 22px; width: auto; }
  .pc__title { display: flex; justify-content: space-between; align-items: flex-end; margin: 18px 0 12px; }
  .pc__title h1 { font-size: 72px; font-weight: 400; letter-spacing: -0.05em; margin: 0; line-height: .9; }
  .pc__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #7e7a72; }
  .pc__sub { text-align: right; font-size: 18px; }
  .pc__plan { border: 1px solid #ddd; aspect-ratio: 4 / 3; position: relative; }
  .pc__plan svg { position: absolute; inset: 0; width: 100%; height: 100%; }
  .pc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
  .pc__specs { display: grid; grid-template-columns: 1fr auto; margin: 0; font-size: 12px; }
  .pc__specs dt, .pc__specs dd { padding: 6px 0; border-bottom: 1px solid #e3e3e3; margin: 0; }
  .pc__specs dd { text-align: right; font-weight: 500; }
  .pc__rooms { columns: 3; font-size: 11px; color: #3b3c37; padding-left: 16px; margin: 14px 0; }
  .pc__foot { display: flex; justify-content: space-between; border-top: 1px solid #ccc; padding-top: 8px; font-size: 10px; color: #7e7a72; }
}

.leaflet-map .leaflet-tile-pane { filter: grayscale(1) sepia(.12) contrast(.92) brightness(1.04); }

/* First-paint covers: shown before JS builds the loader / transition panel */
html.is-entering body::before, html.is-preloading body::before { content: ''; position: fixed; inset: 0; z-index: 210; }
html.is-entering body::before { background: var(--ink); }
html.is-preloading body::before { background: var(--paper); }
.hero__media img { will-change: transform; }

.stage__loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); pointer-events: none; transition: opacity .6s; }
.stage__loading span { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; border-right-color: transparent; animation: spin 0.9s linear infinite; }
.stage.is-ready .stage__loading, .no-webgl .stage__loading { opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .map-art .poi text { font-size: 24px; }
  .map-art .m-label { font-size: 18px; }
  .map-art .poi circle.c { r: 9; }
  .feature__media::after { background: linear-gradient(180deg, rgba(12,13,12,.25), rgba(12,13,12,.72) 45%, rgba(12,13,12,.55)); }
}

.filters-col { display: grid; gap: 12px; justify-items: end; }
@media (max-width: 820px) {
  .filters-col { justify-items: start; width: 100%; }
  .filters-col .filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .filters-col .filters::-webkit-scrollbar { display: none; }
  .filters-col .chip { flex: none; }
  .utable { min-width: 0; }
  .utable thead { display: none; }
  .utable tbody tr { display: grid; grid-template-columns: 64px 1fr 1fr auto; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .utable td { border: 0; padding: 0 6px 0 0; font-size: 14px; }
  .utable td.code { font-size: 22px; }
  .utable td:nth-child(2), .utable td:nth-child(5), .utable td:nth-child(6), .utable td:nth-child(7), .utable td:nth-child(9) { display: none; }
  .utable td.code .mono { display: none; }
}

/* ---------- Virtual tour (unit detail) ---------- */
.tour-sec { padding-block: clamp(80px, 10vw, 140px); }
.tour__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.tour__tabs { display: flex; gap: 8px; }
.tour__tabs .chip:disabled { opacity: .45; cursor: default; }
.dark .tour__tabs .chip { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.dark .tour__tabs .chip.is-active { background: var(--paper); color: var(--ink); }
.tour__video { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #0d0e0c; }
.tour__video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.tour { position: relative; aspect-ratio: 16 / 9; max-height: 82svh; width: 100%; border-radius: 4px; overflow: hidden; background: #0d0e0c; cursor: grab; touch-action: none; }
.tour.is-dragging { cursor: grabbing; }
.tour__canvas, .tour__canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tour__markers { position: absolute; inset: 0; pointer-events: none; }
.tour__hot { position: absolute; left: 0; top: 0; margin: -22px 0 0 -22px; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #fff; cursor: pointer; transition: opacity .3s; font: 500 13px/1 var(--f-mono); letter-spacing: .04em; }
.tour__hot i { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); background: rgba(255,255,255,.18); backdrop-filter: blur(4px); box-shadow: 0 4px 24px rgba(0,0,0,.25); transition: transform .3s, background .3s; }
.tour__hot span { padding: 7px 10px; border-radius: 40px; background: rgba(22,23,20,.55); backdrop-filter: blur(6px); white-space: nowrap; }
.tour__hot:hover i { transform: scale(1.12); background: rgba(255,255,255,.4); }
.tour__room { position: absolute; left: 20px; top: 20px; display: grid; gap: 6px; padding: 12px 16px; border-radius: 4px; background: rgba(22,23,20,.55); backdrop-filter: blur(8px); color: #fff; pointer-events: none; }
.tour__room .mono { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.tour__room b { font-weight: 500; font-size: 18px; }
.tour__hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 12px; color: #fff; opacity: .75; text-shadow: 0 1px 12px rgba(0,0,0,.5); pointer-events: none; white-space: nowrap; }
.tour__rooms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dark .tour__rooms .chip { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.dark .tour__rooms .chip.is-active { background: var(--paper); color: var(--ink); }
.tour__note { margin-top: 18px; }
@media (max-width: 820px) {
  .tour { aspect-ratio: 3 / 4; }
  .tour__hint { display: none; }
  .tour__hot span { display: none; }
}

/* ---------- Inquiry drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 250; display: none; }
.drawer.is-open { display: block; }
/* no backdrop blur here: blurring the whole page behind a sliding panel is what made the drawer stutter */
.drawer__scrim { position: absolute; inset: 0; background: rgba(17, 18, 16, .62); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--paper); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; padding: 28px clamp(20px, 4vw, 48px) 48px; display: flex; flex-direction: column; gap: 22px; box-shadow: -30px 0 80px rgba(0,0,0,.18); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__close { width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; place-items: center; transition: background .3s, color .3s; }
.drawer__close:hover { background: var(--ink); color: var(--paper); }
.drawer__close svg { width: 20px; height: 20px; }
.drawer__lead { color: var(--ink-2); margin: 0; max-width: 44ch; }
.drawer__unit { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding: 16px 18px; border-radius: 6px; background: var(--paper-2); }
.drawer__unit b { font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.drawer__unit .st { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; margin-left: auto; }
.drawer .form { grid-template-columns: 1fr; }
.drawer-open .header { z-index: 80; }

/* ---------- Floor picker (render with clickable floors) ---------- */
.fpick { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 48px); align-items: stretch; }
.fpick__img { position: relative; border-radius: 6px; overflow: hidden; background: var(--paper-2); aspect-ratio: 1960 / 1500; }
.fpick__img svg { width: 100%; height: 100%; }
.fpick__floor { fill: #fff; fill-opacity: 0; stroke: #fff; stroke-opacity: 0; stroke-width: 4; cursor: pointer; transition: fill-opacity .35s, stroke-opacity .35s; outline: none; }
.fpick__floor.is-hover, .fpick__floor:focus-visible { fill: var(--free); fill-opacity: .42; stroke-opacity: .95; }
.fpick__floor.is-active { fill: var(--ink); fill-opacity: .38; stroke-opacity: 1; }
.fpick__tip { position: absolute; left: 0; top: 0; pointer-events: none; margin: 18px 0 0 18px; padding: 12px 16px; border-radius: 6px; background: var(--ink); color: var(--paper); display: grid; gap: 2px; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.fpick__tip b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.fpick__tip span { font-size: 13px; color: #cfcac0; }
.fpick__tip.is-on { opacity: 1; }
.fpick__rail { display: flex; flex-direction: column; gap: 18px; }
.fpick__list { display: grid; gap: 8px; }
.fpick__btn { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 16px 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.fpick__btn b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.fpick__btn span { font-size: 14px; color: var(--ink-2); }
.fpick__btn .arr { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.fpick__btn.is-hover { box-shadow: inset 0 0 0 1px var(--ink); }
.fpick__btn.is-hover .arr { transform: translateX(4px); }
.fpick__btn.is-active { background: var(--ink); color: var(--paper); }
.fpick__btn.is-active span { color: #cfcac0; }
.fpick__hint { font-size: 14px; color: var(--mute); margin: auto 0 0; }

.fview { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.fview__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.fview__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.fview__body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3vw, 48px); align-items: start; }
.fview__plan { background: #f7f6f2; border-radius: 6px; padding: clamp(8px, 1.5vw, 20px); box-shadow: inset 0 0 0 1px var(--line); }
.fview__plan svg { width: 100%; height: auto; }
.fp-unit { cursor: pointer; }
.fp-unit .fp-fill { fill: var(--c); fill-opacity: .2; transition: fill-opacity .3s; }
.fp-unit .fp-out { fill: var(--c); fill-opacity: .12; }
.fp-unit .fp-line { fill: none; stroke: var(--c); stroke-width: 3.5; stroke-linejoin: round; }
.fp-unit:hover .fp-fill, .fp-unit.is-hover .fp-fill { fill-opacity: .42; }
.fp-unit.is-active .fp-fill { fill-opacity: .55; }
.fp-unit.is-active .fp-line { stroke: #161714; stroke-width: 5; }
.fview__side { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.fview__units { display: grid; gap: 6px; }
.fview__unit { display: grid; grid-template-columns: 52px 52px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 9px 14px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: background .25s, box-shadow .25s; }
.fview__unit b { font-size: 18px; font-weight: 600; }
.fview__unit .st { display: inline-flex; gap: 6px; align-items: center; color: var(--ink-2); }
.fview__unit.is-hover { box-shadow: inset 0 0 0 1px var(--ink); }
.fview__unit.is-active { background: var(--ink); color: var(--paper); }
.fview__unit.is-active .st { color: #cfcac0; }
.fview__card { padding: 20px 22px; border-radius: 6px; background: var(--paper-2); }
.fview__cardtop { display: flex; justify-content: space-between; align-items: baseline; }
.fview__cardtop .st { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.fview__code { font-size: 48px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.fview__specs { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 14px 0 18px; font-size: 15px; }
.fview__specs dt { color: var(--ink-2); }
.fview__specs dd { margin: 0; font-weight: 500; text-align: right; }
.fview__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.fview__legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; }
.fview__legend span { display: inline-flex; gap: 8px; align-items: center; }
.stage-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }

@media (max-width: 1000px) {
  .fpick, .fview__body { grid-template-columns: 1fr; }
  .fpick__list { grid-template-columns: repeat(3, 1fr); }
  .fpick__btn { grid-template-columns: 1fr; gap: 2px; padding: 12px 14px; }
  .fpick__btn .arr { display: none; }
  .fpick__btn b { font-size: 18px; }
  .fpick__btn span { font-size: 12.5px; }
  .fpick__hint { display: none; }
  .fview__side { position: static; }
}
@media (max-width: 520px) {
  .fpick__list { grid-template-columns: repeat(2, 1fr); }
  .fview__unit { grid-template-columns: 44px 44px 1fr; }
  .fview__unit .st { grid-column: 1 / -1; }
}

/* ---------- Café page ---------- */
.cafe-news { display: grid; margin-top: 48px; border-top: 1px solid var(--night-line); }
.cafe-news__item { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--night-line); }
.cafe-news__item p { color: #cfcac0; margin: 12px 0 0; max-width: 60ch; }
@media (max-width: 820px) { .cafe-news__item { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Technical equipment (standards page) ---------- */
/* ---------- card-model pictures with numbered notes (section of the house, floor build-up) ---------- */
.cutfig { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.cutfig__pic { position: relative; background: #f7f6f2; border-radius: 6px; overflow: hidden; color: var(--ink); }
.cutfig__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cutfig__dot { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(22, 23, 20, .12); cursor: default; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.cutfig__dot.is-active { transform: scale(1.3); box-shadow: 0 0 0 9px rgba(22, 23, 20, .16); }
.cutfig__lvl { position: absolute; left: 2.4%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--mute); white-space: nowrap; }
[data-note] { transition: opacity .4s; }
[data-notes].is-pointing [data-note]:not(.is-active) { opacity: .45; }
.cutfig--side { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 72px); align-items: center; }
.cutfig__list { list-style: none; margin: 22px 0 0; padding: 0; }
.cutfig__list li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.dark .cutfig__list li { border-color: var(--night-line); }
.cutfig__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 11px; background: var(--ink); color: var(--paper); }
.dark .cutfig__n { background: var(--paper); color: var(--ink); }
.cutfig__list h4 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; margin: 2px 0 4px; }
.cutfig__list p { margin: 0; font-size: 15px; color: var(--ink-2); }
.dark .cutfig__list p { color: #cfcac0; }
@media (max-width: 900px) {
  .cutfig--side { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cutfig__dot { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 10px; box-shadow: 0 0 0 3px rgba(22, 23, 20, .12); }
  .cutfig__lvl { display: none; }
}
.tech { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 56px); }
.tech__item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 28px 0 32px; border-top: 1px solid var(--night-line); }
.tech__item .mono { color: #8d897f; padding-top: 6px; }
.tech__item h4 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; margin: 0 0 10px; }
.tech__item p { margin: 0; color: #cfcac0; font-size: 15.5px; }
.perks { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 72px); margin-top: clamp(64px, 8vw, 112px); padding-top: 40px; border-top: 1px solid var(--night-line); }
.perks__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.perks__item { display: grid; gap: 14px; padding: 26px; border-radius: 6px; background: var(--night-2); }
.perks__item b { font-size: 44px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.perks__item h4 { font-size: 19px; font-weight: 500; margin: 0 0 8px; }
.perks__item p { margin: 0; color: #cfcac0; font-size: 15px; }
.tech__more { max-width: 760px; margin: clamp(48px, 6vw, 80px) 0 0 auto; }
@media (max-width: 1000px) { .tech { grid-template-columns: 1fr 1fr; } .perks { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .tech, .perks__list { grid-template-columns: 1fr; } }

/* ---------- Phones: a finger instead of a mouse ---------- */
/* no 3D on this device: the photo stands alone, without controls that would do nothing */
.no-webgl .stage__side, .no-webgl .stage__bottom, .no-webgl .legend, .no-webgl .stage__skip { display: none; }
@media (max-width: 820px) {
  /* flat page: its name, then its picture, then the table (the page used to start with two
     screens of table before the flat itself appeared) */
  .ud { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .ud > div:first-child, .ud__aside { display: contents; }
  .ud__aside > * { order: 3; }
  .ud__aside > .ud__head { order: 1; }
  .ud__pic { order: 2; margin-top: 26px; }
  .ud__more { order: 4; }
  /* two numbers side by side must share the row evenly, whatever their length */
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* small links get a hit area a finger can find; nothing moves on the page */
  .footer__cols a { padding: 8px 0; }
  .crumbs a, .link-line, .specs dd a { position: relative; }
  .crumbs a::before, .link-line::before, .specs dd a::before { content: ''; position: absolute; inset: -12px -8px; }
  .leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
}
@media (max-width: 640px) {
  /* 3D model: heading, then the colour key on its own line (side by side both broke in two) */
  .stage__top { flex-direction: column; gap: 12px; }
  .stage__title .h2 { max-width: none; }
  /* the drawing of the flat ends above the Model / Půdorys / Celé patro buttons, as the model does */
  .ud__plan.has-model > svg { bottom: auto; height: 85%; }
}
@media (max-width: 400px) {
  .stat__n { font-size: 46px; }
}

/* ---------- Launch: flat statuses hidden until the real ones are known (SHOW_STATUS in data.js) ---------- */
.no-status [data-status-only], .no-status .st, .no-status .ucard__status, .no-status .tooltip__st > span:first-child { display: none !important; }

/* ---------- Form: sending failed ---------- */
.form__err { grid-column: 1 / -1; margin: 0 0 24px; padding: 14px 16px; border-left: 2px solid var(--rented); background: rgba(176, 87, 77, .08); font-size: 14.5px; }
.form__err[hidden] { display: none; }
.form__err a, .check a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer: company details ---------- */
.footer__company { font-size: 13px; line-height: 1.6; color: #8d897f; max-width: 96ch; margin: 28px 0 20px; position: relative; }
.footer__legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(141, 137, 127, .5); }
.footer__legal a:hover { color: #d6d1c7; }

/* ---------- Legal text (privacy policy) and the 404 page ---------- */
.legal { max-width: 72ch; }
.legal h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.01em; margin: 56px 0 16px; scroll-margin-top: 110px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal__meta { font-size: 13px; color: var(--mute); margin-top: 56px; }
