/* Камчия Хилс. Palette taken from the house itself: graphite facade panels,
   lime plaster, larch lamellas, the meadow around the plots. */
/* Geologica, self-hosted (variable 200-500, SIL OFL 1.1, fonts/LICENSE.txt).
   No request to Google: visitors' IP addresses stay with us (GDPR). */
/* cyrillic */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url(fonts/geologica-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url(fonts/geologica-latin.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;
}

:root {
  /* Palette from the place and the materials: the Kamchia forest and meadows
     (deep green, moss), limestone and stone cladding (light warm neutrals),
     larch lamellas (the one warm accent). */
  --graphite: #1f2b24;      /* forest: dark sections */
  --graphite-2: #28372e;
  --plaster: #f3f3ee;       /* limestone: page */
  --plaster-2: #e7e8df;     /* stone: alternate sections */
  --ink: #1b231e;
  --ink-soft: #57615a;
  --line: rgba(27, 35, 30, .14);
  --line-dark: rgba(236, 240, 232, .16);
  --sage: #6f8160;
  --larch: #a8693a;
  --on-dark: #eef1ea;
  --on-dark-soft: #a9b5a9;
  --radius: 12px;
  --img-radius: 4px;
  --gutter: 28px;
  --font: "Geologica", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* lang="bg" makes Chrome use the cursive-style Bulgarian д/т/в (look like g/m/ß).
   "locl" 0 keeps the usual forms; !important because every `font:` shorthand
   below would otherwise reset it to normal. */
*, *::before, *::after { font-feature-settings: "locl" 0 !important; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--plaster); color: var(--ink);
  font: 300 17px/1.7 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
b, strong, dt { font-weight: 400; }
h1, h2, h3 { font-weight: 300; line-height: 1; margin: 0; letter-spacing: -.035em; }
h2 { font-size: clamp(42px, 6vw, 88px); }
h3 { font-size: 26px; font-weight: 400; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Buttons: 12px radius, one filled primary per group ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; border-radius: var(--radius); border: 0;
  font: 400 16px/1 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.btn-light { background: var(--plaster); color: var(--graphite); }
.btn-light:hover { background: var(--white, #fff); }
:focus-visible { outline: 2px solid var(--larch); outline-offset: 3px; }

/* ---------- Header: transparent over the hero, solid after scroll ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; color: var(--on-dark); transition: color .3s; }
/* The blur lives on a pseudo-element so the header is never a containing block. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(238, 241, 234, .88);
  -webkit-backdrop-filter: saturate(1.3) blur(16px); backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .3s;
}
.site-header.solid { color: var(--ink); }
.site-header.solid::before { opacity: 1; }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 24px; }
.brand-name { font: 400 18px/1 var(--font); letter-spacing: .01em; }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; font-size: 15px; font-weight: 300; text-decoration: none; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.site-header.solid .nav a { text-shadow: none; }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: var(--radius);
  background: transparent; border: 1px solid currentColor; color: inherit; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-btn span { width: 20px; height: 1.5px; background: currentColor; transition: transform .25s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer { position: fixed; inset: 76px 0 0; z-index: 19; background: var(--plaster); display: flex; flex-direction: column; padding: 8px var(--gutter) 32px; overflow-y: auto; }
.drawer[hidden] { display: none; }
.drawer a { font: 300 32px/1.2 var(--font); letter-spacing: -.025em; text-decoration: none; padding: 18px 0; border-bottom: 1px solid var(--line); }

/* ---------- Image labels: render or real photo ---------- */
.tag {
  position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 10px; border-radius: 4px;
  background: rgba(31, 43, 36, .62); color: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 400 12px/1 var(--font); letter-spacing: .02em; pointer-events: none;
}
.tag-real { background: rgba(168, 105, 58, .9); color: #fff; }

/* ---------- Contour lines: the hills of the name, as on the site plan ---------- */
.contours { position: relative; isolation: isolate; }
.contours::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("img/contours.svg") center / cover no-repeat; opacity: .09;
}

/* ---------- Hero: graphite panel with the name, the house at full height ---------- */
.hero { display: grid; grid-template-columns: 5fr 7fr; height: 100svh; min-height: 640px; max-height: 1040px; background: var(--graphite); color: var(--on-dark); }
.hero-panel { position: relative; display: flex; align-items: flex-end; padding: 0 clamp(28px, 4.5vw, 72px) clamp(44px, 8vh, 88px); isolation: isolate; }
.hero-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("img/contours.svg") 30% 40% / 180% auto no-repeat; opacity: .11; }
.hero h1 { font-size: clamp(64px, 8.4vw, 132px); font-weight: 200; letter-spacing: -.05em; line-height: .9; margin-bottom: 34px; }
.hero h1 span { display: block; }
.hero h1 span:last-child { padding-left: .55em; }
.hero-lead { font-size: 19px; line-height: 1.55; max-width: 26ch; margin-bottom: 36px; color: var(--on-dark-soft); }
.hero-media { position: relative; margin: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.hero-media .tag { left: auto; top: auto; right: 18px; bottom: 18px; }
/* One orchestrated load moment: the house settles, the name rises. */
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-media img { animation: settle 2.2s var(--ease) both; }
.hero-body > * { animation: rise 1s var(--ease) both; }
.hero-body > :nth-child(2) { animation-delay: .15s; }
.hero-body > :nth-child(3) { animation-delay: .3s; }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 12vw, 176px) 0; }
.section-stone { background: var(--plaster-2); }
.section-dark { background: var(--graphite); color: var(--on-dark); }
.intro { display: grid; grid-template-columns: 7fr 5fr; gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.intro-text { font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.section-dark .intro-text { color: var(--on-dark-soft); }

/* ---------- Images and zoom buttons ---------- */
.shot { margin: 0; }
.shot figcaption, .footprint figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--plaster-2); border-radius: var(--img-radius); overflow: hidden; cursor: zoom-in; position: relative; color: inherit; }
.zoom img { width: 100%; }
.zoom::after {
  content: "+"; position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(238,241,234,.92); color: var(--ink); font: 300 24px/1 var(--font);
  opacity: 0; transition: opacity .25s;
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
.wide { margin: 0 auto clamp(20px, 2.4vw, 32px); }
.wide .zoom img { aspect-ratio: 16 / 7.4; object-fit: cover; object-position: 50% 60%; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 32px); }
.duo .zoom img { aspect-ratio: 16 / 10; object-fit: cover; }
.paper .zoom { background: #fff; border: 1px solid var(--line); }
.paper .zoom img { aspect-ratio: 1 / .95; object-fit: contain; padding: 14px; }

/* ---------- House ---------- */
.frame-wide { aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 70%; }
.plan-row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 96px); align-items: center; margin-top: clamp(64px, 8vw, 112px); }
.footprint { margin: 0; }
.footprint svg { width: min(100%, 360px); height: auto; display: block; overflow: visible; }
.footprint .house { fill: rgba(111, 129, 96, .16); stroke: var(--ink); stroke-width: 2; }
.footprint .veranda { fill: none; stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 5 5; }
.footprint .dim path, .footprint .entry { fill: none; stroke: var(--ink-soft); stroke-width: 1; }
.footprint .entry { stroke: var(--larch); stroke-width: 2; }
.footprint text { font-family: var(--font); fill: var(--ink); }
.footprint .dim-t { font-size: 13px; fill: var(--ink-soft); }
.footprint .area { font-size: 34px; font-weight: 300; letter-spacing: -.03em; }
.footprint .area-s { font-size: 13px; fill: var(--ink-soft); }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--ink); }
.specs div { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }
.specs dd { margin: 0; font-size: 20px; font-weight: 300; letter-spacing: -.01em; }
.yard { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 96px); align-items: end; margin-top: clamp(64px, 8vw, 112px); }
.yard-text { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; letter-spacing: -.015em; max-width: 22ch; }

/* ---------- Plans ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius); background: var(--plaster-2); margin-bottom: 28px; }
.tab { min-height: 44px; padding: 0 24px; border: 0; border-radius: 9px; cursor: pointer; background: transparent; color: var(--ink-soft); font: 400 15px/1 var(--font); transition: background-color .2s, color .2s; }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: inset 0 -2px 0 var(--sage); }
.plan-panel { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.plan-panel[hidden] { display: none; }
.plan-img { background: #fff; border: 1px solid var(--line); }
.plan-img img { padding: clamp(8px, 1.6vw, 24px); }
.plan-side h3 { margin-bottom: 12px; }
.plan-side p { color: var(--ink-soft); }
.rooms { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.rooms li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.rooms b { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Facades ---------- */
.switcher { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.stage { display: grid; aspect-ratio: 733 / 510; }
.stage img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.stage img.is-active { opacity: 1; }
.variant-list { display: flex; flex-direction: column; counter-reset: v; }
.variant-tab {
  counter-increment: v; position: relative; text-align: left; cursor: pointer; padding: 20px 0;
  border: 0; border-top: 1px solid var(--line-dark); background: none; color: var(--on-dark-soft); font: inherit; transition: color .25s;
}
.variant-tab:last-child { border-bottom: 1px solid var(--line-dark); }
.variant-tab::before { content: "Вариант " counter(v); display: block; font-size: 13px; margin-bottom: 4px; color: var(--on-dark-soft); }
.variant-tab b { display: block; font-size: 22px; font-weight: 300; letter-spacing: -.015em; color: inherit; }
.variant-tab span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s; }
.variant-tab:hover { color: var(--on-dark); }
.variant-tab[aria-selected="true"] { color: #fff; }
.variant-tab[aria-selected="true"]::before { color: var(--larch); }
.variant-tab[aria-selected="true"] span { max-height: 60px; opacity: 1; color: var(--on-dark-soft); }
.sub { margin: clamp(96px, 10vw, 144px) 0 32px; font-size: clamp(30px, 3vw, 44px); color: var(--on-dark); }
.looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.look { margin: 0; }
.look .zoom { background: var(--graphite-2); }
.look .zoom img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.look figcaption { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--on-dark-soft); }
.look figcaption b { display: block; font-size: 17px; color: var(--on-dark); margin-bottom: 4px; }

/* ---------- Construction ---------- */
.build { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 32px); }
.build .zoom img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; }

/* ---------- Contact ---------- */
.contact { padding: clamp(110px, 13vw, 190px) 0; background: var(--graphite); color: var(--on-dark); }
.contact-box { display: grid; grid-template-columns: 7fr 5fr; gap: 40px 64px; align-items: end; }
.contact-box h2 { margin-bottom: 24px; }
.contact-box p { color: var(--on-dark-soft); font-size: 19px; max-width: 38ch; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 20px 0; border-top: 1px solid var(--line-dark); }
.contact-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.contact-list span { display: block; font-size: 13px; color: var(--on-dark-soft); margin-bottom: 6px; }
.contact-list a { font: 300 clamp(24px, 2.4vw, 32px)/1.2 var(--font); letter-spacing: -.02em; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
/* Visible marker for data still missing from the client. */
.todo { outline: 2px dashed #e6b44c; outline-offset: 5px; border-radius: 2px; }

/* ---------- Footer: brand + legal only ---------- */
.site-footer { background: var(--graphite); color: var(--on-dark-soft); padding: 30px 0; font-size: 14px; border-top: 1px solid var(--line-dark); }
.footer-row { display: flex; gap: 12px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.site-footer .brand-name { color: var(--on-dark); font-size: 16px; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(17, 25, 20, .97); color: #fff; }
.lightbox::backdrop { background: rgba(17, 25, 20, .8); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 72px 84px 28px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: 3px; background: #fff; }
.lightbox figcaption { margin-top: 16px; font-size: 15px; color: #c9d0d2; text-align: center; max-width: 60ch; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; font: 200 30px/1 var(--font); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .looks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .intro, .plan-row, .yard, .plan-panel, .switcher, .contact-box { grid-template-columns: 1fr; }
  .intro { align-items: start; }
  /* Phone/tablet hero: the whole house on top, the name on graphite below.
     The picture takes whatever height the text leaves. */
  .hero { display: flex; flex-direction: column; height: 100svh; min-height: 580px; max-height: none; }
  .hero-media { order: -1; flex: 1 1 0; min-height: 260px; }
  .hero-media img { object-position: 66% 80%; }
  .hero-media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(180deg, rgba(31,43,36,0), var(--graphite)); }
  .hero-media .tag { top: 88px; bottom: auto; right: var(--gutter); }
  .hero-media::before { content: ""; position: absolute; inset: 0 0 auto; height: 150px; z-index: 1; background: linear-gradient(180deg, rgba(15,24,19,.55), rgba(15,24,19,0)); }
  .hero-panel { flex: 0 0 auto; padding: 0 var(--gutter) max(26px, env(safe-area-inset-bottom)); margin-top: -36px; }
  .hero-panel::before { background-size: 260% auto; }
  .hero h1 { font-size: clamp(46px, 14.5vw, 76px); white-space: nowrap; margin-bottom: 18px; }
  .hero h1 span { display: inline; }
  .hero h1 span:last-child { padding-left: 0; }
  .hero-lead { font-size: 17px; max-width: 34ch; margin-bottom: 24px; }
  .hero .btn { display: flex; width: 100%; min-height: 56px; font-size: 17px; }
  .wide .zoom img { aspect-ratio: 16 / 10; }
  .variant-tab span { max-height: none; opacity: 1; }
  .variant-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .variant-tab:nth-last-child(2) { border-bottom: 1px solid var(--line-dark); }
  .yard-text { max-width: 30ch; }
}
@media (max-width: 600px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .intro-text { font-size: 17px; }
  .duo, .build, .looks, .variant-list { grid-template-columns: 1fr; }
  .build .zoom img, .look .zoom img { aspect-ratio: 4 / 3.6; }
  .frame-wide { aspect-ratio: 4 / 3; object-position: 0 60%; }
  .variant-tab:nth-last-child(2) { border-bottom: 0; }
  .footprint svg { margin-inline: auto; }
  .lightbox figure { padding: 70px 8px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
  .lightbox img { max-height: calc(100dvh - 190px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* =====================================================================
   v4 "modern" layer. No libraries: layout + CSS scroll-driven animations.
   Every effect is progressive: browsers without animation-timeline show
   the plain, fully visible layout (no hidden-until-scrolled content).
   ===================================================================== */

/* ---------- Complex: bento, one big view and two side views ---------- */
.bento { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: clamp(16px, 2vw, 24px); }
.bento-main { grid-row: 1 / span 2; }
.bento-main .zoom, .bento-main .zoom img { height: 100%; }
.bento-main .zoom img { object-fit: cover; object-position: 50% 60%; }
.bento .shot:not(.bento-main) .zoom img { aspect-ratio: 16 / 10; object-fit: cover; }
.bento figcaption { margin-top: 10px; }

/* ---------- Facades: one big stage, the four variants as a row of tabs ---------- */
.switcher { grid-template-columns: 1fr; gap: 0; }
.stage { aspect-ratio: 16 / 9; }
.stage img { object-position: 50% 42%; }
.variant-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; margin-top: 8px; }
.variant-tab { border-top: 2px solid var(--line-dark); border-bottom: 0 !important; padding: 18px 0 6px; }
.variant-tab[aria-selected="true"] { border-top-color: var(--larch); }
.variant-tab span { max-height: none; opacity: 1; }

/* ---------- More looks: a swipeable strip instead of a static grid ---------- */
.looks { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--larch) transparent; }
.look { flex: 0 0 clamp(260px, 34%, 440px); scroll-snap-align: start; }

/* ---------- Scroll-driven motion (CSS only) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* pictures open up from a slightly inset frame as they enter */
    main .shot .zoom, .stage, .look .zoom { animation: frame-in linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    main .shot .zoom img { animation: img-in linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    @keyframes frame-in { from { clip-path: inset(7% 5% 7% 5% round 4px); } to { clip-path: inset(0 round 4px); } }
    @keyframes img-in { from { transform: scale(1.14); } to { transform: none; } }
    /* section titles slide in from the side */
    .intro h2 { animation: title-in linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    @keyframes title-in { from { transform: translateX(-6vw); opacity: .15; } to { transform: none; opacity: 1; } }
  }
}

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-main { grid-row: auto; }
  .bento-main .zoom img { height: auto; aspect-ratio: 16 / 10; }
  .variant-list { grid-template-columns: 1fr 1fr; }
  .look { flex-basis: 78%; }
}
@media (max-width: 600px) {
  .stage { aspect-ratio: 4 / 3; }
  .variant-tab b { font-size: 17px; }
  .variant-tab span { display: none; }
}

/* ---------- Hero v5: photo, clear title, two actions, a facts bar ----------
   Placed last on purpose: it replaces every earlier hero rule. */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100svh; min-height: 640px; max-height: 1080px; overflow: hidden; background: var(--graphite); color: var(--on-dark); }
.hero-media { position: absolute; inset: 0; margin: 0; flex: none; min-height: 0; order: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; animation: settle 2.2s var(--ease) both; }
.hero-media::before { content: none; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; height: auto; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15,24,19,.55) 0%, rgba(15,24,19,0) 20%),
    linear-gradient(90deg, rgba(15,24,19,.78) 0%, rgba(15,24,19,.45) 38%, rgba(15,24,19,0) 62%),
    linear-gradient(0deg, rgba(15,24,19,.6) 0%, rgba(15,24,19,0) 30%);
}
.hero-media .tag { left: auto; right: var(--gutter); top: 92px; bottom: auto; }
.hero-content { position: relative; }
.hero-body { position: static; padding: 0 0 clamp(40px, 7vh, 72px); }
.hero h1 { font-size: clamp(54px, 7vw, 108px); font-weight: 300; letter-spacing: -.04em; line-height: .95; margin: 0 0 22px; white-space: normal; }
.hero-lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 30ch; margin: 0 0 34px; color: rgba(238,241,234,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-primary { background: var(--larch); color: #fff; }
.btn-primary:hover { background: #8e5730; }
.btn-ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(238,241,234,.55); }
.btn-ghost:hover { background: rgba(238,241,234,.1); }
.hero-facts { background: rgba(15,24,19,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid rgba(238,241,234,.14); }
.hero-facts dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; }
.hero-facts div { padding: 20px 0 22px; }
.hero-facts div + div { padding-left: clamp(16px, 3vw, 40px); border-left: 1px solid rgba(238,241,234,.14); }
.hero-facts dt { font-size: 13px; color: var(--on-dark-soft); margin-bottom: 2px; }
.hero-facts dd { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; letter-spacing: -.02em; }
.hero-body > *, .hero-facts { animation: rise 1s var(--ease) both; }
.hero-body > :nth-child(2) { animation-delay: .12s; }
.hero-body > :nth-child(3) { animation-delay: .24s; }
.hero-facts { animation-delay: .36s; }

@media (max-width: 900px) {
  /* Phone: the whole house on top, text and actions on graphite below. */
  .hero { height: auto; min-height: 100svh; max-height: none; justify-content: flex-start; }
  .hero-media { position: relative; height: 54svh; min-height: 330px; }
  .hero-media img { object-position: 64% 78%; }
  .hero-media::after { background: linear-gradient(180deg, rgba(15,24,19,.5) 0%, rgba(15,24,19,0) 25%), linear-gradient(0deg, var(--graphite) 0%, rgba(31,43,36,0) 28%); }
  .hero-body { padding: 4px 0 26px; }
  .hero h1 { font-size: clamp(44px, 13vw, 72px); margin-bottom: 14px; }
  .hero-lead { margin-bottom: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; min-height: 54px; }
  .hero-facts { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-facts dl { grid-template-columns: 1fr 1fr; }
  .hero-facts div { padding: 14px 0; }
  .hero-facts div + div { padding-left: 0; border-left: 0; }
  .hero-facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(238,241,234,.14); }
  .hero-facts div:nth-child(n+3) { border-top: 1px solid rgba(238,241,234,.14); }
}

/* ---------- Details, round 6 ---------- */
/* reading progress: a thin larch line, CSS only (no-op where unsupported) */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 30; background: var(--larch); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .progress { display: none; } }

/* header turns into a floating bar once the page scrolls */
.site-header::before { transition: opacity .3s, inset .35s var(--ease), border-radius .35s var(--ease); }
.site-header.solid::before { inset: 8px 12px; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(15, 24, 19, .45); }

/* facade variants: less crop, tabs top-aligned whatever the title length */
.stage { aspect-ratio: 3 / 2; }
.stage img { object-position: 50% 55%; }
.variant-tab { display: flex; flex-direction: column; justify-content: flex-start; align-self: stretch; }

/* "more looks" strip: arrows on the heading row, soft fade at the right edge */
.sub-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: clamp(96px, 10vw, 144px) auto 28px; }
.sub-row .sub { margin: 0; }
.strip-nav { display: flex; gap: 8px; }
.strip-btn { width: 48px; height: 48px; border-radius: var(--radius); border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); font: 300 26px/1 var(--font); cursor: pointer; transition: background-color .2s, opacity .2s; }
.strip-btn:hover:not(:disabled) { background: rgba(238, 241, 234, .1); }
.strip-btn:disabled { opacity: .3; cursor: default; }
.looks { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); scroll-behavior: smooth; }
.look .zoom img { transition: transform .8s var(--ease); }
.look:hover .zoom img { transform: scale(1.04); }

/* numbers line up */
.hero-facts dd, .specs dd, .rooms b { font-variant-numeric: tabular-nums; }

/* lightbox counter */
.lb-count { position: absolute; top: 30px; left: 24px; font-size: 14px; color: #c9d0d2; font-variant-numeric: tabular-nums; }

/* phone: sticky price button */
.sticky-cta { display: none; }
@media (max-width: 900px) {
  .sticky-cta {
    display: flex; align-items: center; justify-content: center; position: fixed; z-index: 18;
    left: var(--gutter); right: var(--gutter); bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 54px; border-radius: var(--radius); background: var(--larch); color: #fff; text-decoration: none;
    font: 400 17px/1 var(--font); box-shadow: 0 12px 30px -10px rgba(15, 24, 19, .55);
    transform: translateY(140%); transition: transform .35s var(--ease);
  }
  .sticky-cta.show { transform: none; }
  .strip-nav { display: none; }
  .looks { -webkit-mask-image: none; mask-image: none; }
  .specs { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .specs dd { font-size: 17px; }
  .footprint svg { width: min(100%, 280px); }
  .site-header.solid::before { inset: 6px 8px; }
}
@media (max-width: 380px) { .specs { grid-template-columns: 1fr; } }

/* =====================================================================
   Round 7: one clear path. Every section opens the same way (title,
   one paragraph), content follows at full width. Softer shapes:
   images and section panels are rounded, buttons keep 12px.
   ===================================================================== */
:root { --img-radius: 18px; --panel-radius: 32px; --panel-inset: 12px; }

/* sections: same rhythm everywhere */
.section { padding: clamp(80px, 9vw, 128px) 0; }
.section-stone, .section-dark, .contact { margin-inline: var(--panel-inset); border-radius: var(--panel-radius); }
.section-stone + .section, .section + .section-stone, .section + .section-dark, .section-dark + .section { margin-top: 0; }
.contact { margin-bottom: var(--panel-inset); }

/* the section head: title, then text under it */
.intro, .contact-box > div:first-child {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: baseline;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.intro h2, .contact-box h2 { margin: 0; }
.intro .intro-text, .contact-box > div:first-child p { max-width: 58ch; }
.intro h2 { font-size: clamp(40px, 5vw, 72px); }
.tabs { display: flex; width: fit-content; }
.tabs { margin-left: 0; }

/* softer shapes */
.zoom, .stage, .paper .zoom, .plan-img { border-radius: var(--img-radius); }
.tag { border-radius: 8px; }
.tabs { border-radius: 14px; }
.tab { border-radius: 10px; }
.plan-card, .plan-img { border-radius: var(--img-radius); }
.hero { border-radius: 0 0 var(--panel-radius) var(--panel-radius); }
.hero-facts { border-radius: 0 0 var(--panel-radius) var(--panel-radius); }
.lightbox img { border-radius: 12px; }

/* house: two yard pictures side by side, then plan + specs */
.pair { display: grid; grid-template-columns: 1.75fr 1fr; gap: clamp(16px, 2vw, 24px); align-items: start; }
.pair .zoom img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.pair-main .zoom img { aspect-ratio: auto; height: 100%; }
.pair-main .zoom { aspect-ratio: 7 / 3; }
.pair .shot figcaption { margin-top: 10px; }
.plan-row { margin-top: clamp(48px, 6vw, 80px); }

/* contact: same head as the other sections */
.contact-box { grid-template-columns: 7fr 5fr; align-items: center; }
.contact-box > div:first-child { margin-bottom: 0; }

@media (max-width: 900px) {
  :root { --panel-inset: 8px; --panel-radius: 24px; --img-radius: 14px; }
  .intro, .contact-box > div:first-child { gap: 12px; }
  .pair { grid-template-columns: 1fr; }
  .pair-main .zoom { aspect-ratio: auto; }
  .pair-main .zoom img { aspect-ratio: 4 / 3; height: auto; }
  .hero { border-radius: 0 0 24px 24px; }
}
/* round 7 fixes */
.section-dark + .section-stone, .section-stone + .section-dark { margin-top: var(--panel-inset); }
.contact-box h2 { font-size: clamp(40px, 5vw, 72px); }
.site-footer { background: var(--plaster); color: var(--ink-soft); border-top: 0; }
.site-footer .brand-name { color: var(--ink); }
@media (max-width: 900px) { .contact-box { grid-template-columns: 1fr; } .contact-list a { overflow-wrap: anywhere; } }

/* ---------- Hero photo: the sunset, with a slow settle on load ---------- */
.hero-media .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); }
.hero-media .hero-slide.is-active { animation: drift 7s var(--ease) both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (max-width: 900px) { .hero-media .hero-slide { object-position: var(--pos-m); } }
@media (prefers-reduced-motion: reduce) { .hero-media .hero-slide.is-active { animation: none; } }

/* =====================================================================
   Depth. Light comes from above: panels and pictures sit on the page
   with soft forest-tinted shadows, edges catch a thin highlight, inputs
   are recessed, buttons are raised. Pictures drift slower than the page
   (CSS scroll timeline, off where unsupported or reduced motion).
   ===================================================================== */
:root {
  --sh-img: 0 1px 2px rgba(15, 24, 19, .08), 0 8px 16px -6px rgba(15, 24, 19, .12), 0 28px 56px -18px rgba(15, 24, 19, .34);
  --sh-img-up: 0 2px 4px rgba(15, 24, 19, .08), 0 14px 28px -8px rgba(15, 24, 19, .16), 0 44px 80px -24px rgba(15, 24, 19, .42);
  --sh-panel: 0 1px 2px rgba(15, 24, 19, .05), 0 12px 24px -12px rgba(15, 24, 19, .12), 0 48px 90px -50px rgba(15, 24, 19, .45);
}
.section-dark, .contact {
  --sh-img: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 20px -8px rgba(0, 0, 0, .35), 0 34px 64px -20px rgba(0, 0, 0, .6);
  --sh-img-up: 0 2px 4px rgba(0, 0, 0, .25), 0 16px 30px -8px rgba(0, 0, 0, .4), 0 50px 90px -24px rgba(0, 0, 0, .7);
}

/* the hero lies on top of the page and casts onto it */
.hero { z-index: 2; box-shadow: 0 2px 4px rgba(15, 24, 19, .12), 0 40px 80px -40px rgba(15, 24, 19, .7); }
.hero h1, .hero-lead { text-shadow: 0 2px 28px rgba(10, 16, 12, .35); }
.hero-facts { box-shadow: inset 0 1px 0 rgba(238, 241, 234, .12); }

/* section panels: raised slabs, lit from the top */
.section-stone {
  background: linear-gradient(180deg, #eef0e8 0%, var(--plaster-2) 38%, #e2e4da 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), var(--sh-panel);
}
.section-dark, .contact {
  background:
    radial-gradient(110% 70% at 18% 0%, rgba(111, 129, 96, .22) 0%, rgba(111, 129, 96, 0) 60%),
    linear-gradient(180deg, #24322a 0%, var(--graphite) 45%, #1a241e 100%);
  box-shadow: inset 0 1px 0 rgba(238, 241, 234, .1), var(--sh-panel);
}

/* pictures: lifted off the surface, with a thin lit edge */
.zoom, .stage { box-shadow: var(--sh-img); transition: box-shadow .45s var(--ease), transform .45s var(--ease); }
.zoom::before {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .28);
}
@media (hover: hover) {
  .zoom:hover { box-shadow: var(--sh-img-up); transform: translateY(-4px); }
}
.paper .zoom, .plan-img { border: 0; box-shadow: 0 0 0 1px rgba(15, 24, 19, .06), var(--sh-img); }
.zoom::after { box-shadow: 0 4px 14px -4px rgba(15, 24, 19, .45); }
.tag { box-shadow: 0 4px 12px -4px rgba(10, 16, 12, .5); }

/* floor tabs: a recessed track with a raised selected tab */
.tabs { background: var(--plaster-2); box-shadow: inset 0 1px 3px rgba(15, 24, 19, .14), inset 0 0 0 1px rgba(15, 24, 19, .04); }
/* the chosen floor is filled in forest green so the two never blend */
.tab { color: var(--ink); font-weight: 400; }
.tab[aria-selected="true"] {
  background: linear-gradient(180deg, #2c3d33 0%, var(--graphite) 100%);
  color: var(--on-dark);
  box-shadow: inset 0 1px 0 rgba(238, 241, 234, .14), 0 1px 2px rgba(15, 24, 19, .25), 0 6px 14px -6px rgba(15, 24, 19, .55);
}
.tab[aria-selected="false"]:hover { background: rgba(255, 255, 255, .7); }

/* buttons: raised, lit from above */
.btn { transition: background-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease); }
.btn-primary, .sticky-cta {
  background: linear-gradient(180deg, #b77a45 0%, var(--larch) 55%, #965c32 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(60, 30, 10, .3), 0 12px 26px -10px rgba(140, 80, 40, .75);
}
.btn-primary:hover { background: linear-gradient(180deg, #a86f3d 0%, #8e5730 100%); transform: translateY(-1px); }
.btn-ghost { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(238, 241, 234, .06); }
.strip-btn { box-shadow: inset 0 1px 0 rgba(238, 241, 234, .08), 0 6px 16px -8px rgba(0, 0, 0, .6); }

/* the "more looks" strip needs room for the shadows */
.looks { padding: 6px 0 48px; margin-bottom: -30px; } /* no side padding: it shifts the snap point, the strip scrolls itself on load and Chrome stops measuring LCP */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* pictures rise into place (translate, so hover's transform still works) */
    main .shot .zoom, .stage, .look .zoom { animation: lift-in linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes lift-in { from { translate: 0 48px; scale: .97; opacity: .4; } to { translate: 0 0; scale: 1; opacity: 1; } }
    /* and the photo inside drifts slower than the page: parallax depth */
    main .shot:not(.paper) .zoom img { animation: drift-y linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes drift-y { from { translate: 0 -4%; scale: 1.1; } to { translate: 0 4%; scale: 1.1; } }
  }
}

/* ---------- Feature lists: specs, location, terraces (one pattern) ---------- */
.spec-groups { display: grid; gap: clamp(48px, 6vw, 72px); }
.spec-group h3 { margin-bottom: 20px; }
.features { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 40px); }
.features div { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.features dt { font-size: 17px; font-weight: 400; color: var(--ink); margin-bottom: 4px; }
.features dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); max-width: 36ch; }
#situacia .features { margin-top: clamp(40px, 5vw, 64px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-photos { margin-top: clamp(72px, 9vw, 120px); margin-bottom: 28px; }
.site-photos h3 { margin-bottom: 12px; }
.site-photos p { color: var(--ink-soft); max-width: 58ch; }
.map-link { margin-top: clamp(40px, 5vw, 56px); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(27, 35, 30, .35); }
.btn-outline:hover { background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(27, 35, 30, .5), 0 8px 20px -12px rgba(15, 24, 19, .4); }

/* contact: the two ways to buy, and who sells */
.buy { margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.buy div { padding: 18px 0; border-top: 1px solid var(--line-dark); }
.buy dt { color: var(--on-dark); font-size: 18px; margin-bottom: 6px; }
.buy dd { margin: 0; color: var(--on-dark-soft); font-size: 15px; line-height: 1.55; }
.contact-box > div:first-child p.seller { font-size: 14px; margin-top: 8px; }
.contact-box { align-items: start; }

/* seven menu items: tighter spacing on mid-size screens */
@media (max-width: 1280px) { .nav { gap: 22px; } .nav a { font-size: 14px; } }

@media (max-width: 900px) {
  .features, #situacia .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .features, #situacia .features, .buy { grid-template-columns: 1fr; }
}

/* h1 = brand + what the page is about (search engines read both) */
.hero h1 span.h1-sub { display: block; padding-left: 0; margin-top: 14px; font-size: clamp(20px, 2.1vw, 30px); font-weight: 300; letter-spacing: -.01em; line-height: 1.2; color: rgba(238, 241, 234, .92); }
@media (max-width: 900px) { .hero h1 span.h1-sub { margin-top: 10px; font-size: 20px; white-space: normal; } }

/* hero text rises without fading: it is visible from the first paint, so the
   largest element on the page is not held back by the animation (LCP) */
@keyframes rise-in { from { transform: translateY(18px); } to { transform: none; } }
.hero-body > *, .hero-facts { animation-name: rise-in; }

/* ---------- Tighter rhythm (18.11): sections were too far apart ----------
   The bottom padding of one section and the top padding of the next added
   up to 180-260 px. Panels have their own edge, so a plain section next to
   a panel only needs a short gap on that side. */
:root { --sec-pad: clamp(52px, 6vw, 88px); --sec-gap: clamp(32px, 3.5vw, 48px); }
.section { padding: var(--sec-pad) 0; }
.contact { padding: clamp(60px, 7vw, 104px) 0; }
main > .section:not(.section-stone):not(.section-dark):has(+ .section-stone, + .section-dark, + .contact) { padding-bottom: var(--sec-gap); }
.section-stone + .section:not(.section-stone):not(.section-dark),
.section-dark + .section:not(.section-stone):not(.section-dark) { padding-top: var(--sec-gap); }
.section-stone + .contact, .section-dark + .contact { margin-top: var(--panel-inset); }
.intro, .contact-box > div:first-child { margin-bottom: clamp(28px, 3.5vw, 44px); }
.contact-box > div:first-child { margin-bottom: 0; }
.plan-row { margin-top: clamp(36px, 4.5vw, 60px); }
.sub-row { margin-top: clamp(56px, 6vw, 88px); }
.site-photos { margin-top: clamp(48px, 6vw, 80px); }
.spec-groups { gap: clamp(36px, 4.5vw, 56px); }
#situacia .features { margin-top: clamp(28px, 3.5vw, 44px); }
.map-link { margin-top: clamp(28px, 3.5vw, 40px); }

/* ---------- Legal page and 404: plain reading page, solid header ---------- */
.legal-page .site-header::before { opacity: 1; }
.legal-page .site-header { color: var(--ink); }
.back-link { font-size: 15px; text-decoration: none; padding: 10px 0; }
.back-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.legal { max-width: 760px; padding: clamp(120px, 14vw, 160px) 0 clamp(56px, 7vw, 96px); }
.legal h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; letter-spacing: -.015em; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .lead { font-size: 19px; color: var(--ink); margin: 20px 0 8px; }
.legal-meta { font-size: 14px; color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal a { text-underline-offset: 3px; }
.site-footer a { color: inherit; text-underline-offset: 4px; }
.contact-list a.contact-office { font-size: clamp(19px, 1.7vw, 23px); }
.notfound { min-height: 70svh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
