/* Rest & Nest — Rental Bucharest
   Layout: one continuous story on warm milk paper; the logo's arch (house window) and nest curves
   are the only ornaments. Palette sampled from the logo. */
:root {
  --milk: #FBFAF7;      /* page */
  --paper: #F4EEE6;     /* warm beige surfaces */
  --sand: #E9CFB3;      /* nest highlight */
  --caramel: #C9936B;   /* nest / leaves */
  --bark: #7E4D35;      /* deep terracotta, small text accents */
  --aqua: #51B2B5;      /* logo lettering */
  --teal: #2B7F82;      /* accessible turquoise for buttons & links */
  --teal-d: #1F6467;
  --mist: #E2F1EF;      /* light turquoise */
  --sage: #93A68E;      /* leaves */
  --ink: #22302F;       /* text, teal-tinted */
  --ink-2: #56625F;
  --line: rgba(34, 48, 47, .13);
  --night: #172221;     /* areas / lightbox ground */

  --f-display: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mark: 'Nunito', 'Onest', system-ui, sans-serif;

  --gut: clamp(16px, 4.2vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --hdr: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--milk); color: var(--ink);
  font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── type ── */
h2 { font: 500 clamp(2.4rem, 5.2vw, 4.4rem)/1.02 var(--f-display); letter-spacing: -.01em; }
h2 em { font-style: italic; color: var(--teal); }
.label { font: 600 .74rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--bark); display: flex; align-items: center; gap: .8em; margin-bottom: 1.1rem; }
.label::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: var(--ink-2); max-width: 36em; }
.eyebrow { font: 600 .76rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--bark); }

/* ── buttons ── */
.btn {
  --bg: var(--teal); --fg: #fff; --bd: var(--teal);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 52px; padding: 0 1.45em; border-radius: 10px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 500 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease), background-color .35s, color .35s, border-color .35s;
}
.btn::after { /* light sweep */
  content: ''; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transition: transform .7s var(--ease);
}
.btn:hover { transform: scale(1.025); }
.btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.btn:active { transform: scale(.97); }
.btn-arrow { transition: transform .35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary:hover { --bg: var(--teal-d); --bd: var(--teal-d); }
.btn-ghost { --bg: transparent; --fg: var(--teal); }
.btn-ghost:hover { --bg: var(--mist); }
.btn-sm { min-height: 42px; padding: 0 1.1em; font-size: .92rem; }
.btn-lg { min-height: 60px; padding: 0 1.8em; font-size: 1.06rem; }

.soc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.soc .ico { width: 24px; height: 24px; }
.soc a { display: inline-grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); text-decoration: none; transition: background-color .3s, transform .3s var(--ease); }
.soc a:hover { background: var(--mist); transform: translateY(-2px); }
.soc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.soc-pill a { display: inline-flex; width: auto; height: 52px; border-color: rgba(255,255,255,.35); padding: 0 1.1em; gap: .55em; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); color: #fff; }
.soc-pill a:hover { background: rgba(255,255,255,.12); }
.soc-pill span { position: static; width: auto; height: auto; clip: auto; overflow: visible; font-size: .95rem; }
.soc-lg a { width: 52px; height: 52px; }

/* ── header ── */
.hdr {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  padding: env(safe-area-inset-top, 0px) var(--gut) 0;
  height: calc(var(--hdr) + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 24px;
  transition: height .4s var(--ease), background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.hdr.is-scrolled { --hdr: 62px; background: rgba(251,250,247,.8); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-logo { width: 64px; height: 64px; transition: width .4s var(--ease), height .4s var(--ease); }
.hdr.is-scrolled .brand-logo { width: 54px; height: 54px; }
.brand-logo-lg { width: 120px; height: 120px; }
.nav { display: none; margin-left: auto; gap: 30px; }
.nav a { white-space: nowrap; position: relative; text-decoration: none; font-size: .95rem; color: var(--ink); padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; font-size: .82rem; letter-spacing: .06em; color: var(--ink-2); }
.lang span { opacity: .4; }
.lang a { text-decoration: none; padding: 4px 2px; }
.lang a[aria-current] { color: var(--teal); font-weight: 600; }
.lang a:hover { color: var(--teal); }
.hdr-cta { display: none; }
/* language switch: always visible, a compact segmented control */
.hdr .lang { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(251,250,247,.7); }
.hdr .lang span { display: none; }
.hdr .lang a { min-width: 34px; min-height: 30px; display: grid; place-items: center; padding: 0 6px; border-radius: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-2); transition: background-color .3s, color .3s; }
.hdr .lang a[aria-current] { background: var(--teal); color: #fff; }
.hdr .lang a:not([aria-current]):hover { background: var(--mist); color: var(--teal); }
.hdr-end { gap: 12px; }
.burger { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 7px; cursor: pointer; position: relative; z-index: 70; }
.burger i { display: block; width: 26px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] i:first-of-type { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4.25px) rotate(-45deg); }
.lang-hint { position: fixed; z-index: 49; right: var(--gut); top: calc(var(--hdr) + 8px); background: var(--ink); color: #fff; font-size: .85rem; padding: 9px 14px; border-radius: 10px; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.15); }

@media (min-width: 1080px) {
  .nav { display: flex; }
  .hdr-end { margin-left: 28px; }
  .hdr-cta { display: inline-flex; }
  .hdr-end { gap: 18px; }
  .burger { display: none; }
}
@media (min-width: 640px) and (max-width: 1079px) { .hdr-cta { display: inline-flex; } }

.mmenu { position: fixed; inset: 0; z-index: 60; background: var(--milk); padding: calc(var(--hdr) + 24px + env(safe-area-inset-top, 0px)) var(--gut) calc(28px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; justify-content: space-between; }
.mmenu nav { display: flex; flex-direction: column; gap: 6px; }
.mmenu nav a { font: 500 clamp(2.4rem, 11vw, 3.4rem)/1.12 var(--f-display); text-decoration: none; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 60ms + 80ms); }
.mmenu.open nav a { opacity: 1; transform: none; }
.mmenu-foot { display: flex; flex-direction: column; gap: 18px; }
.mmenu-foot .lang { font-size: 1rem; }
body.menu-open { overflow: hidden; }

/* ── hero: the logo first ── */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: calc(var(--hdr) + 8px) var(--gut) clamp(48px, 7vw, 88px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(18px, 3vh, 30px);
  min-height: 100svh; justify-content: center; overflow-x: clip;
}
.hero::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 4%; width: min(100%, 900px); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(226,241,239,.9), rgba(244,238,230,.5) 55%, transparent); pointer-events: none; }
.hero-logo { width: min(68vw, 42svh, 400px); aspect-ratio: 1; }
.hero-logo-pic { width: 100%; height: auto; display: block; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; max-width: 820px; }
.hero-h1 { font: 500 clamp(2.4rem, 5.2vw, 4.4rem)/1.02 var(--f-display); letter-spacing: -.012em; }
.hero-h1 .ln { display: inline-block; overflow: hidden; padding-bottom: .08em; vertical-align: top; }
.hero-h1 .ln > span { display: inline-block; }
.hero-h1 .ln:nth-child(2) > span { font-style: italic; color: var(--teal); }
.hero-sub { color: var(--ink-2); max-width: 34em; font-size: clamp(1rem, 1.25vw, 1.12rem); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .soc { justify-content: center; }
.hdr .brand { opacity: 0; pointer-events: none; transition: opacity .4s; }
.hdr.is-scrolled .brand { opacity: 1; pointer-events: auto; }

/* ── video section ── */
.film { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut) clamp(24px, 4vw, 48px); }
.film-frame, .life-frame { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: var(--paper); }
.film-frame { aspect-ratio: 4 / 5; max-height: 86svh; }
@media (min-width: 700px) { .film-frame { aspect-ratio: 16 / 9; max-height: none; } }
.film-video, .life-video { width: 100%; height: 100%; object-fit: cover; }
.film-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(23,34,33,.55), transparent 38%); }
.film-cap { position: absolute; z-index: 1; left: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 32px); right: 80px; color: #fff; font: 500 clamp(1.5rem, 3vw, 2.4rem)/1.1 var(--f-display); text-align: left; }
.film-cap span { display: block; margin-bottom: 8px; font: 600 .72rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--sand); }
.film .vtoggle, .life-frame .vtoggle { z-index: 2; }
.life-frame { aspect-ratio: 16 / 10; }

/* hero entrance (pre-hero is removed by JS after the intro) */
[data-hr] { transition: opacity .8s var(--ease), transform .9s var(--ease); }
.hero-h1 .ln > span { transition: transform 1s var(--ease); }
[data-hr="1"] { transition-delay: 0ms; } [data-hr="2"] { transition-delay: 80ms; } [data-hr="3"] { transition-delay: 160ms; } [data-hr="4"] { transition-delay: 240ms; }
[data-hr="5"] { transition-delay: 420ms; } [data-hr="6"] { transition-delay: 560ms; } [data-hr="7"] { transition-delay: 680ms; }
.pre-hero [data-hr] { opacity: 0; transform: translateY(18px); }
.pre-hero .hero-h1 .ln > span { opacity: 1; transform: translateY(108%); }


/* ── intro ── */
.intro { display: none; }
.intro-on .intro {
  display: grid; position: fixed; inset: 0; z-index: 100; place-content: center; justify-items: center; gap: clamp(18px, 3vh, 30px);
  background: var(--milk); transition: background-color .9s .1s;
}
.intro-on body { overflow: hidden; }
.intro-stage { position: relative; width: min(82vw, 480px); aspect-ratio: 1; animation: breathe 1.4s 3.5s ease-in-out both; transform-origin: 50% 50%; will-change: transform; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
/* house-in-nest box, aligned to the same pixels of the full logo */
.intro-markbox { position: absolute; left: 20.45%; top: 23.55%; width: 61.6%; height: 55.4%; }
.intro-nest { position: absolute; left: -6%; width: 112%; bottom: -2%; overflow: visible; animation: fadeOut .8s 2.2s forwards; }
.intro-nest path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.15s cubic-bezier(.55,.05,.3,1) forwards; animation-delay: calc(.35s + var(--i) * 48ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.intro-mark { position: absolute; inset: 0; opacity: 0; clip-path: circle(0% at 50% 62%); filter: blur(12px); transform: scale(.94); animation: markIn 1.1s var(--ease) 1.35s forwards; }
@keyframes markIn { to { opacity: 1; clip-path: circle(80% at 50% 55%); filter: blur(0); transform: scale(1); } }
.intro-logo { position: absolute; inset: 0; opacity: 0; clip-path: circle(26% at 50% 52%); animation: logoIn 1.2s var(--ease) 2.35s forwards; }
@keyframes logoIn { 30% { opacity: 1; } to { opacity: 1; clip-path: circle(72% at 50% 50%); } }
.intro-pic { width: 100%; height: auto; display: block; }
.intro-skip { position: absolute; right: var(--gut); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); border: 0; background: none; color: var(--ink-2); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; padding: 10px; cursor: pointer; }
.intro.exit { background-color: transparent; pointer-events: none; }
.intro.exit .intro-skip, .intro.exit .intro-nest, .intro.exit .intro-markbox { opacity: 0 !important; transition: opacity .35s; }
.intro.exit .intro-stage { animation: none; }
.intro-on .hero-logo { opacity: 0 !important; }
.intro-played .hero-logo[data-hr] { transform: none; transition: none; }

/* ── reveal on scroll ── */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="title"] { clip-path: inset(0 0 100% 0); transform: translateY(.35em); transition: clip-path 1s var(--ease), transform 1s var(--ease), opacity .6s; }
.js [data-reveal="card"] { transform: translateY(44px); }
.js [data-reveal="img"] { transform: none; }
.js [data-reveal="img"] img, .js [data-reveal="img"] video { transform: scale(1.06); transition: transform 1.4s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; clip-path: inset(-10% -10% -20% -10%); }
.js [data-reveal="img"].in img, .js [data-reveal="img"].in video { transform: scale(1); }

/* ── sections ── */
section { position: relative; }
.about { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gut) clamp(64px, 9vw, 120px); }
.about-grid { display: grid; gap: 48px; align-items: end; }
.about-text { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.about-text h2 { max-width: 12em; }
.facts { display: grid; gap: 18px; margin: 10px 0 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.facts dt { font: 500 1.6rem/1 var(--f-display); color: var(--teal); }
.facts dd { margin: 0; color: var(--ink-2); font-size: .95rem; }
.area-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.area-line i { width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.about-fig { margin: 0; aspect-ratio: 4/5; max-width: 460px; width: 100%; justify-self: center; overflow: hidden; border-radius: 16px; }
.arch-sm { overflow: hidden; border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px; }
.about-fig img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.15fr .85fr; gap: clamp(48px, 7vw, 120px); }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .about-fig { justify-self: end; }
}

/* ── properties ── */
.props { padding: clamp(48px, 7vw, 90px) 0 clamp(64px, 8vw, 110px); background: linear-gradient(transparent, rgba(244,238,230,.75) 25%, rgba(244,238,230,.75) 80%, transparent); }
.pin-sticky { display: flex; flex-direction: column; gap: clamp(26px, 4vh, 44px); }
.props-head { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gut); display: grid; gap: 18px; align-items: end; }
.props-p { color: var(--ink-2); max-width: 28em; }
@media (min-width: 900px) { .props-head { grid-template-columns: 1fr auto; } }
.ptrack {
  display: flex; gap: clamp(16px, 2.2vw, 34px); align-items: flex-end;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px var(--gut) 10px; scroll-padding-inline: var(--gut); scrollbar-width: none;
}
.ptrack::-webkit-scrollbar { display: none; }
.card { --h: min(92vw, 470px); flex: none; width: calc(var(--h) * .8); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.card--m { --h: min(80vw, 400px); }
.card-hit { display: block; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 14px; }
.card-media { position: relative; display: block; height: var(--h); overflow: hidden; border-radius: 14px; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,34,33,.45), transparent 45%); opacity: 0; transition: opacity .5s; }
.card-view { position: absolute; z-index: 1; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px; background: rgba(251,250,247,.92); color: var(--ink); font-size: .85rem; font-weight: 500; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.card-count { position: absolute; z-index: 1; right: 14px; top: 14px; padding: 5px 10px; border-radius: 6px; background: rgba(23,34,33,.5); color: #fff; font-size: .75rem; letter-spacing: .04em; backdrop-filter: blur(6px); }
.card--xl .card-count { top: auto; bottom: 16px; }
.card-hit:hover .card-media img, .card-hit:focus-visible .card-media img { transform: scale(1.04); }
.card-hit:hover .card-media::after, .card-hit:focus-visible .card-media::after { opacity: 1; }
.card-hit:hover .card-view, .card-hit:focus-visible .card-view { opacity: 1; transform: none; }
.card-info { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 2px; transition: transform .5s var(--ease); }
.card:hover .card-info { transform: translateY(-4px); }
.card-area { grid-column: 1 / -1; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bark); font-weight: 600; }
.card-type { font: 500 1.55rem/1.15 var(--f-display); }
.card-meta { color: var(--ink-2); font-size: .92rem; }
.card-price { grid-column: 2; grid-row: 2 / 4; align-self: end; text-align: right; font-size: .85rem; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-price strong { display: block; font: 600 1.25rem/1.1 var(--f-body); color: var(--teal); }
.card-end { flex: none; align-self: center; padding: 0 clamp(8px, 4vw, 60px) 0 12px; scroll-snap-align: end; }
.props-foot { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 20px; }
.pbar { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.pbar i { position: absolute; inset: 0; background: var(--teal); transform: scaleX(var(--p, .08)); transform-origin: left; transition: transform .15s linear; }
.swipe-hint { display: inline-flex; gap: 8px; align-items: center; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }

/* pinned horizontal scroll (desktop, set by JS) */
.is-pinned .pin { height: var(--pin-h, 300vh); }
.is-pinned .pin-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; justify-content: center; padding-top: 56px; }
.is-pinned .ptrack { overflow: visible; scroll-snap-type: none; transform: translate3d(var(--x, 0), 0, 0); will-change: transform; padding-inline: var(--gut) 8vw; }
.is-pinned .card { --h: min(56vh, 600px); }
.is-pinned .card--l { --h: min(48vh, 520px); }
.is-pinned .card--m { --h: min(40vh, 440px); align-self: flex-start; margin-top: 2vh; }
.is-pinned .swipe-hint { visibility: hidden; }
.is-pinned .props { padding-block: 0; }
@media (min-width: 900px) { .card { --h: 460px; } .card--l { --h: 420px; } .card--m { --h: 380px; } }

/* ── areas ── */
.areas { background: var(--night); color: #fff; overflow: hidden; isolation: isolate; }
.areas-bg { position: absolute; inset: 0; z-index: -1; }
.abg { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.abg.on { opacity: 1; }
.abg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s ease-out; }
.abg.on img { transform: scale(1); }
.areas-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(23,34,33,.9) 0%, rgba(23,34,33,.72) 45%, rgba(23,34,33,.35) 100%); }
.areas-inner { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gut); display: grid; gap: 44px; }
.areas .label { color: var(--sand); }
.areas-head { display: grid; gap: 16px; align-content: start; }
.areas-head p:last-child { color: rgba(255,255,255,.78); max-width: 26em; }
.alist { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.18); }
.aitem { border-bottom: 1px solid rgba(255,255,255,.18); }
.aname { width: 100%; display: flex; align-items: baseline; gap: 16px; border: 0; background: none; padding: 14px 0 12px; cursor: pointer; text-align: left;
  font: 500 clamp(2.3rem, 7.4vw, 5.4rem)/1 var(--f-display); letter-spacing: -.01em; color: rgba(255,255,255,.5); transition: color .5s, transform .6s var(--ease); }
.anum { font: 500 .78rem/1 var(--f-body); letter-spacing: .14em; color: rgba(255,255,255,.5); transform: translateY(-1.6em); }
.aitem.on .aname, .aname:hover { color: #fff; }
.aitem.on .aname { transform: translateX(10px); }
.aitem.on .anum { color: var(--aqua); }
.adetail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.adetail > * { min-height: 0; overflow: hidden; }
.adetail p { color: rgba(255,255,255,.82); max-width: 32em; }
.adetail a { margin-top: 10px; display: inline-flex; gap: 8px; align-items: center; color: var(--aqua); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 0 18px; }
.adetail a:hover { color: #9ed9db; }
.aitem.on .adetail { grid-template-rows: 1fr; }
@media (min-width: 900px) {
  .areas-inner { grid-template-columns: .8fr 1.2fr; min-height: 100vh; align-items: center; }
  .areas-head { align-self: start; position: sticky; top: 120px; }
}

/* ── how it works ── */
.how { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gut) clamp(40px, 6vw, 80px); }
.how-head { margin-bottom: clamp(36px, 6vw, 72px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; position: relative; }
.steps li { display: grid; gap: 12px; align-content: start; padding-left: 26px; border-left: 1px solid var(--sand); }
.snum { font: italic 500 3.6rem/1 var(--f-display); color: var(--caramel); }
.steps h3 { font: 500 1.7rem/1.15 var(--f-display); }
.steps p { color: var(--ink-2); max-width: 26em; }
.steps-line { display: none; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 64px); padding-top: 70px; }
  .steps li { padding-left: 0; border-left: 0; }
  .steps-line { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 40px; overflow: visible; }
  .steps-line path { fill: none; stroke: var(--caramel); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
  .steps.in .steps-line path, .no-io .steps-line path { stroke-dashoffset: 0; }
}

/* ── life ── */
.life { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 9vw, 120px) var(--gut) clamp(80px, 11vw, 150px); display: grid; gap: 48px; align-items: center; }
.life-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.lc { position: absolute; margin: 0; overflow: hidden; background: var(--paper); }
.lc img, .lc video { width: 100%; height: 100%; object-fit: cover; }
.lc-video { right: 0; top: 0; width: 64%; height: 92%; }
.lc-1 { left: 0; top: 10%; width: 40%; aspect-ratio: 4/5; border-radius: 14px; }
.lc-2 { left: 10%; bottom: 0; width: 34%; aspect-ratio: 4/5; border-radius: 50%; border: 6px solid var(--milk); }
.vtoggle { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(251,250,247,.85); cursor: pointer; display: grid; place-items: center; }
.vtoggle i { width: 10px; height: 12px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.vtoggle.paused i { width: 0; height: 0; border: 0; border-left: 11px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
@media (min-width: 900px) {
  .life { grid-template-columns: .85fr 1.15fr; gap: clamp(48px, 6vw, 100px); }
}

/* ── faq ── */
.faq { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 9vw, 120px) var(--gut); display: grid; gap: 36px; border-top: 1px solid var(--line); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 500 clamp(1.25rem, 2vw, 1.55rem)/1.25 var(--f-display); }
.faq summary .ico { color: var(--teal); transition: transform .4s var(--ease); width: 22px; height: 22px; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq summary:hover h3 { color: var(--teal); }
.faq-a { padding: 0 48px 24px 0; color: var(--ink-2); max-width: 44em; }
.faq details[open] .faq-a { animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 900px) { .faq { grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 7vw, 120px); } .faq-head { position: sticky; top: 110px; align-self: start; } }

/* ── final cta ── */
.cta { color: #fff; overflow: hidden; isolation: isolate; min-height: min(92vh, 860px); display: flex; align-items: center; background: var(--night); }
.cta-bg { position: absolute; inset: -8% 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, rgba(23,34,33,.9) 0%, rgba(23,34,33,.7) 50%, rgba(31,100,103,.35) 100%); }
.cta-inner { width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(90px, 12vw, 160px) var(--gut); display: flex; flex-direction: column; gap: 26px; }
.cta h2 { font-size: clamp(2.8rem, 7vw, 6rem); max-width: 10em; }
.cta .lead { color: rgba(255,255,255,.85); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .btn-primary { --bg: var(--aqua); --bd: var(--aqua); --fg: var(--night); }
.cta .btn-primary:hover { --bg: #74c6c8; --bd: #74c6c8; }
.cta-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: .95rem; color: rgba(255,255,255,.7); padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); max-width: 760px; }
.cta-contacts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.cta-contacts a { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; padding: 6px 0; }
.cta-contacts a:hover { color: var(--aqua); }

/* ── footer ── */
.ftr { background: var(--paper); padding: 56px var(--gut) calc(32px + env(safe-area-inset-bottom, 0px)); }
.ftr-top, .ftr-bot { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.ftr .brand-logo { width: 130px; height: 130px; }
.ftr-bot { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.ftr-bot a { color: var(--ink-2); }
.ftr-bot a:hover { color: var(--teal); }

/* ── lightbox ── */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(23,34,33,.96); color: #fff; display: grid; grid-template-rows: auto 1fr auto; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); animation: lbIn .4s var(--ease); }
@keyframes lbIn { from { opacity: 0; } }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 14px var(--gut); }
.lb-title { font: 500 1.4rem/1.2 var(--f-display); flex: 1; min-width: 0; }
.lb-count { font-size: .85rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; overflow: hidden; touch-action: pan-y; min-height: 0; }
.lb-stage img { position: absolute; inset: 0; margin: auto; max-width: min(92vw, 1100px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.lb-stage picture { display: contents; }
.lb-meta { text-align: center; padding: 14px var(--gut) 18px; color: rgba(255,255,255,.75); font-size: .92rem; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .3s; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: max(12px, 2vw); } .lb-next { right: max(12px, 2vw); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: none; } .lb-meta { padding-inline: 72px; } }

/* ── custom cursor (desktop, set by JS) ── */
.cur { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; }
.cur-dot, .cur-ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cur-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--teal); }
.cur-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(81,178,181,.7); display: grid; place-items: center; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .45s, border-color .45s, scale .2s; }
.cur-ring span { font: 600 .66rem/1 var(--f-body); letter-spacing: .16em; color: #fff; opacity: 0; transition: opacity .3s; text-transform: uppercase; }
.cur.label .cur-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: rgba(43,127,130,.9); border-color: transparent; }
.cur.label .cur-ring span { opacity: 1; }
.cur.label .cur-dot { opacity: 0; }
.cur.link .cur-ring { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(81,178,181,.14); }

.cur.hide { opacity: 0; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor summary, .has-cursor video { cursor: none; }

/* ── legal page ── */
.legal-main { max-width: 760px; margin: 0 auto; padding: 48px var(--gut) 80px; display: flex; flex-direction: column; gap: 20px; }
.legal-main h1 { font: 500 clamp(2.4rem, 6vw, 3.6rem)/1.05 var(--f-display); margin: 24px 0 8px; }
.legal-main p { color: var(--ink-2); }

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .25s !important; transition-delay: 0ms !important; }
  .hero-video { animation: none; }
  .js [data-reveal], .js [data-reveal="title"], .js [data-reveal="card"] { transform: none; clip-path: none; }
  .js [data-reveal="img"] img { transform: none; }
  .intro-mark { opacity: 1; clip-path: none; filter: none; transform: none; }
  .intro-nest { display: none; }
  .intro-logo { opacity: 1; clip-path: none; }
}

/* ── living background: woven strands (canvas) + drifting section words ── */
.bg-weave { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.bg-weave.on { opacity: 1; }
main > section, .ftr { isolation: isolate; }
main > section { overflow-x: clip; }
/* one word per section, large, placed only in empty zones (never behind text) */
.bgword { position: absolute; z-index: 0; pointer-events: none; user-select: none; white-space: nowrap; line-height: 1; }
.bgword span { display: block; will-change: transform; font: italic 500 var(--wsize, 4.6rem)/.9 var(--f-display); letter-spacing: -.015em; color: transparent;
  -webkit-text-stroke: 1.3px rgba(43,127,130,.2); transform: translate3d(var(--bx, 0px), 0, 0); }
.areas .bgword span, .cta .bgword span { -webkit-text-stroke-color: rgba(255,255,255,.18); }
/* phones: the word fills the top padding of each section */
.bgword { top: 22px; right: var(--gut); }
.bgword--hero { display: none; }
.about, .how, .life, .blog { padding-top: 120px !important; }
.props { padding-top: 120px; }
.areas-inner, .cta-inner { padding-top: 130px !important; }
@media (min-width: 900px) {
  :root { --wbig: clamp(8rem, 13vw, 15rem); }
  .bgword span { --wsize: var(--wbig); }
  .bgword--hero { display: block; top: 20%; left: calc(var(--gut) + 30px); right: auto; }
  .bgword--about, .bgword--how, .bgword--life, .bgword--blog { top: 24px; right: calc(var(--gut) + 40px); }
  .about, .how, .life, .blog { padding-top: calc(var(--wbig) * .9 + 70px) !important; }
  .bgword--props { top: 14px; right: calc(var(--gut) + 40px); }
  .bgword--props span { --wsize: clamp(4.5rem, 6vw, 6.5rem); }
  .is-pinned .pin-sticky { padding-top: 110px; }
  .props { padding-top: clamp(84px, 8vw, 110px); }
  .bgword--areas, .bgword--cta { top: 24px; right: calc(var(--gut) + 40px); }
  .areas-inner, .cta-inner { padding-top: calc(var(--wbig) * .9 + 70px) !important; }
  .areas-inner { min-height: 0; }
}
@media (min-width: 900px) and (max-width: 1199px) { .bgword--hero { display: none; } }
@supports not (-webkit-text-stroke: 1px black) { .bgword span { color: rgba(43,127,130,.06); } }
@media (prefers-reduced-motion: reduce) { .bgword span { transform: none; } }
.hero > .hero-logo, .hero > .hero-text, .blog-head, .blog-grid, .blog-more, .about-grid, .props-head, .ptrack, .props-foot, .areas-inner, .how-head, .steps, .life-text, .life-frame, .faq-head, .faq-list, .cta-inner { position: relative; z-index: 1; }
@supports not (-webkit-text-stroke: 1px black) { .bgword span { color: rgba(43,127,130,.05); } }
@media (prefers-reduced-motion: reduce) { .bgword span { transform: translate3d(-8%, 0, 0); } }

/* ── video blog ── */
.blog { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(70px, 9vw, 120px); }
.blog-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(30px, 5vw, 56px); max-width: 760px; }
.blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); max-width: 860px; }
.vcard { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vcard h3 { font: 500 clamp(1.15rem, 2vw, 1.6rem)/1.2 var(--f-display); }
.vcard-media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 16px; background: var(--paper); }
.blog-video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.vplay { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 12px; color: #fff;
  background: linear-gradient(to top, rgba(23,34,33,.6), rgba(23,34,33,.05) 55%); transition: background-color .3s; }
.vplay-ico { width: 74px; height: 74px; border-radius: 50%; background: rgba(251,250,247,.92); position: relative; transition: transform .4s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.vplay-ico::after { content: ''; position: absolute; left: 29px; top: 24px; border-left: 22px solid var(--teal); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.vplay:hover .vplay-ico { transform: scale(1.08); }
.vplay-t { font-weight: 500; font-size: .95rem; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.vplay-d { position: absolute; right: 12px; top: 12px; padding: 4px 9px; border-radius: 6px; background: rgba(23,34,33,.55); font-size: .78rem; font-variant-numeric: tabular-nums; }
.vcard.playing .vplay { display: none; }
.blog-more { margin-top: clamp(28px, 4vw, 44px); }
.blog-more .btn .ico { width: 22px; height: 22px; }
@media (max-width: 520px) { .vplay-ico { width: 58px; height: 58px; } .vplay-ico::after { left: 23px; top: 18px; border-left-width: 18px; border-top-width: 11px; border-bottom-width: 11px; } .vplay-t { font-size: .82rem; } }

/* ── social block ── */
.social { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 9vw, 120px) var(--gut); border-top: 1px solid var(--line); }
.social-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(30px, 5vw, 56px); max-width: 720px; }
.sgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.scard { height: 100%; display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 26px 24px 22px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(251,250,247,.75); text-decoration: none; color: var(--ink); transition: transform .45s var(--ease), border-color .3s, background-color .3s, box-shadow .45s var(--ease); }
.scard:hover { transform: translateY(-6px); border-color: var(--aqua); box-shadow: 0 24px 44px -26px rgba(31,100,103,.45); }
.scard-ico { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--mist); color: var(--teal); margin-bottom: 14px; }
.scard-ico .ico { width: 34px; height: 34px; }
.scard-name { font: 500 1.9rem/1.1 var(--f-display); }
.scard-desc { color: var(--ink-2); font-size: .95rem; }
.scard-handle { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--teal); font-weight: 500; overflow-wrap: anywhere; }
.scard-handle .ico { transition: transform .4s var(--ease); flex: none; }
.scard:hover .scard-handle .ico { transform: translateX(5px); }
.scard--telegram { background: var(--teal); border-color: var(--teal); color: #fff; }
.scard--telegram .scard-ico { background: rgba(255,255,255,.16); color: #fff; }
.scard--telegram .scard-desc { color: rgba(255,255,255,.82); }
.scard--telegram .scard-handle { color: #fff; border-color: rgba(255,255,255,.25); }
.scard--telegram:hover { background: var(--teal-d); border-color: var(--teal-d); }
@media (max-width: 639px) {
  .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .scard { padding: 18px 16px 16px; }
  .scard-ico { width: 52px; height: 52px; margin-bottom: 8px; }
  .scard-ico .ico { width: 28px; height: 28px; }
  .scard-name { font-size: 1.5rem; }
  .scard-desc { font-size: .85rem; }
  .scard-handle { font-size: .78rem; margin-top: 10px; }
}

.faq-a a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.faq-a a:hover { color: var(--teal-d); }
