:root {
  --bg: #f5f2ed;
  --bg-alt: #ebe6de;
  --ink: #1f1d1a;
  --muted: #6f6a62;
  --accent: #b08968;
  --line: #d9d3c8;
  --radius: 4px;
  --container: 1200px;
  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 40px; }
h3 { font-size: 26px; }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg); font: inherit; font-size: 14px;
  letter-spacing: .06em; cursor: pointer; transition: .25s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 32px 24px; transition: opacity .6s ease, visibility .6s;
}
.preloader__brand { font-family: var(--font-head); font-size: 24px; letter-spacing: .04em; }
.preloader__bottom { display: flex; align-items: flex-end; gap: 24px; }
.preloader__bar { flex: 1; height: 1px; background: rgba(255, 255, 255, .25); position: relative; margin-bottom: 14px; }
.preloader__bar i { position: absolute; left: 0; top: -0.5px; height: 2px; width: 0; background: #fff; }
.preloader__pct { font-family: var(--font-head); font-size: 28px; line-height: 1; min-width: 3.4ch; text-align: right; font-variant-numeric: tabular-nums; }
.preloader__bottom .preloader__bar { margin-bottom: 8px; }

/* Floor plan drawn by progress */
.plan { width: min(100%, 760px); max-height: 62vh; margin: 0 auto; display: block; }
.plan [data-s] { stroke: #fff; stroke-dasharray: 1; stroke-dashoffset: 1; }
.plan .wall { stroke-width: 4; stroke-linejoin: miter; }
.plan .thin [data-s] { stroke-width: 1.5; stroke-opacity: .75; }
.plan .labels text { fill: #e3c4a3; stroke: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; font: 500 12px var(--font); letter-spacing: .22em; }
.preloader.is-done { opacity: 0; visibility: hidden; }
body.is-loading { overflow: hidden; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* the frosted background lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it */
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(245, 242, 237, .92); backdrop-filter: blur(8px); }
.header--overlay::before { display: none; }
/* Home page: header is always transparent; main.js sets .is-ink (dark text) while it is over a light section */
.header--overlay {
  position: fixed; top: 0; left: 0; right: 0; color: #fff;
  background: transparent; backdrop-filter: none; border-bottom: 0;
  transition: color .3s;
}
.header--overlay.is-ink { color: var(--ink); }
.header--overlay:not(.is-ink) .nav a:not(.btn)::after { background: #fff; }
.header--overlay:not(.is-ink) .nav .btn { background: #fff; color: var(--ink); border-color: #fff; }
.header--overlay:not(.is-ink) .nav .btn:hover { background: transparent; color: #fff; }
.header--overlay:not(.is-ink) .burger span,
.header--overlay:not(.is-ink) .burger span::before,
.header--overlay:not(.is-ink) .burger span::after { background: #fff; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-head); font-size: 24px; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav a:not(.btn) { position: relative; padding: 4px 0; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--ink); transition: width .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { width: 100%; }
.nav .btn { padding: 10px 20px; }
.burger { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 32px; }
.burger span, .burger span::before, .burger span::after {
  display: block; width: 24px; height: 1.5px; background: var(--ink); position: relative; transition: .25s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }

/* Hero with background video */
.hero {
  position: sticky; top: 0; z-index: 1; overflow: hidden; color: #fff;
  height: 100vh; height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end; padding-bottom: 72px;
  background: linear-gradient(135deg, #3a332b, #14110e);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 8, 6, .5), rgba(10, 8, 6, 0) 22%),
    linear-gradient(to top, rgba(10, 8, 6, .72), rgba(10, 8, 6, .15) 60%);
}
.hero__content { position: relative; z-index: 1; }
.hero h1 em { font-style: italic; color: #e3c4a3; }
.hero .lead { color: rgba(255, 255, 255, .8); }
.hero__actions { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* Photo placeholders: replace with <img> when real photos are ready */
.ph {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden;
  background: linear-gradient(135deg, var(--c1, #d8cfc2), var(--c2, #b9a98f));
  display: flex; align-items: flex-end; padding: 16px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
}
.ph--tall { aspect-ratio: 3 / 4; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Projects grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { display: block; }
.card__media { overflow: hidden; }
.card__media .ph { transition: transform .6s ease; }
.card:hover .card__media .ph { transform: scale(1.04); }
.card__meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 14px; color: var(--muted); }
.card__title { font-family: var(--font-head); font-size: 26px; margin-top: 4px; }
.more { margin-top: 48px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--bg); padding: 40px; }
.service__num { font-family: var(--font-head); color: var(--accent); font-size: 18px; }
.service h3 { margin: 12px 0; }
.service p { color: var(--muted); }

/* Pricing */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tariff { border: 1px solid var(--line); padding: 36px; background: var(--bg); }
.tariff--main { border-color: var(--ink); }
.tariff__price { font-family: var(--font-head); font-size: 40px; margin: 16px 0; }
.tariff__price small { font-size: 16px; color: var(--muted); font-family: var(--font); }
.tariff li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.numbers b { display: block; font-family: var(--font-head); font-size: 56px; font-weight: 500; }
.numbers span { color: var(--muted); font-size: 14px; }

/* Two columns */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split p + p { margin-top: 16px; }
.split p { color: var(--muted); }

/* Form */
.form { display: grid; gap: 16px; max-width: 520px; }
.field input, .field textarea {
  width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--ink);
  background: transparent; font: inherit; color: var(--ink); outline: none;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; }
.check { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.check input { margin-top: 4px; }
.check a { text-decoration: underline; }
.form__status { font-size: 14px; min-height: 20px; }
.form__status.is-ok { color: #3f7a4f; }
.form__status.is-err { color: #a33b3b; }
.hp { position: absolute; left: -9999px; }

.contacts li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.contacts li > span { color: var(--muted); }

/* Project page */
.page-head { padding: 80px 0 40px; }
.facts { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 32px; font-size: 14px; }
.facts b { display: block; font-weight: 500; font-size: 18px; }
.facts span { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.gallery .ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

/* Text page */
.prose { max-width: 760px; }
.prose h2 { font-size: 30px; margin: 40px 0 16px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 20px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--ink); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .grid, .tariffs { grid-template-columns: 1fr 1fr; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--bg);
    flex-direction: column; justify-content: flex-start; padding: 40px 24px; gap: 24px;
    font-size: 20px; transform: translateX(100%); transition: transform .3s; color: var(--ink);
  }
  .header--overlay:not(.is-ink) .nav a:not(.btn)::after { background: var(--ink); }
  .header--overlay:not(.is-ink) .nav .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .nav.is-open { transform: none; }
  .grid, .tariffs, .gallery { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 56px; }
  .service { padding: 28px; }
}

/* Day / night reveal: sticky screen, the top image is clipped by scroll progress */
.reveal-sec { position: relative; height: 235vh; background: var(--ink); }
.reveal-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.reveal-fig { position: absolute; inset: 0; margin: 0; overflow: hidden; cursor: ew-resize; touch-action: pan-y; background: #1a1612; }
.rv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; user-select: none; -webkit-user-drag: none; }
.rv__top { z-index: 2; clip-path: inset(0 100% 0 0); will-change: clip-path; }
.rv__divider { position: absolute; top: 0; bottom: 0; left: 0%; width: 2px; margin-left: -1px; background: #fff; z-index: 3; box-shadow: 0 0 18px rgba(0, 0, 0, .4); will-change: left; }
.rv__handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 22px rgba(0, 0, 0, .32); cursor: ew-resize; }
.rv__handle::before { content: "‹ ›"; font-size: 18px; letter-spacing: 3px; font-weight: 300; color: var(--ink); }
.rv__scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, rgba(17, 15, 13, .82) 0%, rgba(17, 15, 13, .4) 38%, rgba(17, 15, 13, .15) 100%); }
.rv__copy { position: absolute; left: 50%; bottom: clamp(54px, 9vh, 104px); transform: translateX(-50%); z-index: 4; width: min(92vw, 920px); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; color: #fff; pointer-events: none; }
.rv__title { font-size: clamp(32px, 5vw, 72px); text-shadow: 0 1px 30px rgba(0, 0, 0, .5); }
.rv__cta { pointer-events: auto; }
@media (max-width: 760px) {
  .reveal-sec { height: 190vh; }
  .rv__title { font-size: clamp(26px, 8vw, 40px); }
  .rv__copy { width: 88vw; bottom: 36px; gap: 20px; }
  }
@media (prefers-reduced-motion: reduce) { .reveal-sec { height: auto; } .reveal-sticky { position: static; height: 80vh; } }

/* ===== Words reveal for headings: [data-split] (main.js wraps words) ===== */
.line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.line__inner { display: inline-block; transform: translateY(115%); transition: transform .8s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 60ms); }
.is-in > .line > .line__inner { transform: none; }

/* ===== Horizontal gallery: sticky screen, cards move sideways while scrolling ===== */
:root { --pad-x: max(24px, calc((100vw - var(--container)) / 2 + 24px)); }
.hgallery { position: relative; z-index: 2; background: var(--bg); }
.hgallery__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(96px, 14vh, 150px); padding-bottom: clamp(24px, 4vh, 48px);
}
.hgallery__head { margin-bottom: clamp(24px, 3vh, 40px); }
.hgallery__head h2 { margin-bottom: 0; }
.hgallery__track { display: flex; gap: 24px; padding-inline: var(--pad-x); will-change: transform; }
.hcard { flex: 0 0 auto; width: clamp(240px, min(34vw, (100svh - 300px) * .88), 500px); display: block; }
.hshot { position: relative; overflow: hidden; aspect-ratio: 10 / 11; background: var(--bg-alt); }
.hshot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.hcard:hover .hshot img { transform: scale(1.03); }
.proj-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 18px; font-size: 15px; color: var(--muted); }
.proj-cap .nm { color: var(--ink); font-family: var(--font-head); font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; }
.hcard--all { align-self: flex-start; }
.hshot--all { position: relative; overflow: hidden; width: 100%; aspect-ratio: 10 / 11; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 2vw, 36px); }
.all-collage { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; }
.all-collage img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.46); transition: filter .55s; }
.hshot--all::after { content: ""; position: absolute; inset: 0; background: rgba(17, 15, 13, .46); transition: background-color .4s; }
.hcard--all:hover .all-collage img { filter: brightness(.62); }
.hcard--all:hover .hshot--all::after { background: rgba(17, 15, 13, .3); }
.all-label, .all-arrow { position: relative; z-index: 2; text-shadow: 0 1px 16px rgba(0, 0, 0, .5); }
.all-label { font-family: var(--font-head); font-size: clamp(30px, 2.6vw, 44px); line-height: 1.02; }
.all-arrow { align-self: flex-end; font-size: clamp(28px, 2.4vw, 40px); line-height: 1; }
.hscrollhint { margin-top: clamp(18px, 2.5vh, 30px); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.hscrollhint::before { content: ""; flex: 0 0 40px; height: 1px; background: var(--muted); }
@media (max-width: 900px) {
  .hgallery { height: auto !important; }
  .hgallery__sticky { position: static; height: auto; display: block; padding: 88px 0 24px; }
  .hgallery__track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; padding-bottom: 12px; -webkit-overflow-scrolling: touch; scroll-padding-inline: 24px; }
  .hcard { width: min(72vw, 340px); scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .hgallery { height: auto !important; }
  .hgallery__sticky { position: static; height: auto; display: block; padding: 88px 0 24px; }
  .hgallery__track { overflow-x: auto; transform: none !important; }
  .line__inner { transform: none; }
}

/* ===== Projects page: full-bleed grid, cards appear on scroll ===== */
.intro { padding: 150px 0 56px; }
.intro .lead { max-width: 640px; }
.work-sec { padding-bottom: 96px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; padding-inline: 24px; }
.work { display: block; color: inherit; }
.work__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-alt); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.work:hover .work__media img { transform: scale(1.03); }
.work__cap { display: flex; flex-direction: column; align-items: flex-start; padding-top: 18px; }
.work__nm { display: inline-flex; align-items: center; gap: .34em; font-family: var(--font-head); font-size: clamp(26px, 2.4vw, 38px); line-height: 1.1; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.work__arr { font-style: normal; font-size: .5em; opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .45s cubic-bezier(.16, 1, .3, 1); }
.work:hover .work__nm { transform: translateX(12px); }
.work:hover .work__arr { opacity: .5; transform: none; }
.work__meta { margin-top: 8px; font-size: 15px; color: var(--muted); }
html.rv .work__media { clip-path: inset(0 0 100% 0); transform: scale(1.04); transition: clip-path 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.4s cubic-bezier(.16, 1, .3, 1); }
html.rv .work.is-in .work__media { clip-path: inset(0 0 0 0); transform: none; }
html.rv .work__cap { opacity: 0; transform: translateY(20px); transition: opacity .8s .25s, transform .8s .25s cubic-bezier(.16, 1, .3, 1); }
html.rv .work.is-in .work__cap { opacity: 1; transform: none; }
.cta-band { background: var(--ink); color: #fff; padding: 110px 0; text-align: center; }
.cta-band h2 { margin-bottom: 28px; }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; gap: 44px; padding-inline: 0; }
  .work__cap { padding-inline: 24px; }
  .work:hover .work__nm { transform: none; }
  .intro { padding: 120px 0 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html.rv .work__media, html.rv .work__cap { clip-path: none; opacity: 1; transform: none; transition: none; }
}

/* ===== Grotesque typography (Inter Tight). To try another family: change --font here and the Google Fonts link in <head>. ===== */
:root { --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif; --font-head: var(--font); }
body { font-weight: 400; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(36px, 5.2vw, 68px); }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: 22px; }
.logo { font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; }
.eyebrow { font-weight: 500; }
.lead { font-size: 18px; }
.service__num { font-size: 15px; }
.tariff__price { font-size: 34px; letter-spacing: -.02em; }
.numbers b { font-size: 48px; font-weight: 500; letter-spacing: -.03em; }
.card__title { font-size: 22px; }
.proj-cap .nm { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.01em; }
.work__nm { font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; }
.all-label { font-size: clamp(24px, 2.1vw, 36px); letter-spacing: -.02em; }
.rv__title { font-size: clamp(30px, 4.4vw, 64px); letter-spacing: -.03em; }
.preloader__brand { font-size: 20px; letter-spacing: -.01em; }
.preloader__pct { font-size: 24px; }
.prose h2 { font-size: 26px; }
@media (max-width: 760px) { .rv__title { font-size: clamp(24px, 7vw, 36px); } }

/* Next section slides over the pinned hero (bottom to top) */
.hero::after { content: ""; position: absolute; inset: 0; background: #0a0806; opacity: var(--cover, 0); pointer-events: none; z-index: 2; }
.hgallery { box-shadow: 0 -24px 60px rgba(0, 0, 0, .18); }
/* Every section after the hero stacks above the pinned hero */
main > section:not(.hero) { position: relative; z-index: 2; }
:where(main > section:not(.hero)) { background-color: var(--bg); }
.section--alt { background-color: var(--bg-alt); }

/* Project page: photos in their natural proportions, two columns */
.pgal { columns: 2; column-gap: 24px; margin-top: 40px; }
.pgal img { display: block; width: 100%; height: auto; margin: 0 0 24px; break-inside: avoid; background: var(--bg-alt); }
@media (max-width: 700px) { .pgal { columns: 1; } }

/* Popup request form */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; transition: visibility 0s .4s; }
.modal.is-open { visibility: visible; pointer-events: auto; transition: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(15, 13, 11, .62); opacity: 0; transition: opacity .4s ease; backdrop-filter: blur(3px); }
.modal.is-open .modal__scrim { opacity: 1; }
.modal__box { position: relative; width: min(520px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--bg); padding: 44px 40px 36px; opacity: 0; transform: translateY(40px); transition: opacity .4s ease, transform .5s cubic-bezier(.16, 1, .3, 1); }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__box h2 { margin: 6px 0 10px; }
.modal__lead { color: var(--muted); margin: 0 0 24px; }
.modal__box .form { max-width: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; }
.modal__close::before, .modal__close::after { content: ""; position: absolute; left: 11px; right: 11px; top: 19px; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }
html.modal-lock { overflow: hidden; }
@media (max-width: 600px) { .modal { align-items: end; padding: 0; } .modal__box { padding: 40px 22px 28px; max-height: 92svh; } }
@media (prefers-reduced-motion: reduce) { .modal__scrim, .modal__box { transition: none; } }

/* ===== Tariff columns (open columns, ink fill on hover, staggered entrance) ===== */
.sec-intro { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-intro .h2 { margin-top: 14px; }
.sec-intro .lead { margin-top: 16px; }
.tf-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.tf-grid--2 { grid-template-columns: repeat(2, 1fr); }
.tf-col { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px) clamp(24px, 2.6vw, 40px) clamp(30px, 3.2vw, 48px); border-top: 1px solid var(--ink); }
.tf-col + .tf-col { border-left: 1px solid var(--line); }
.tf-col::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: center bottom; transition: transform .7s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.tf-col > * { position: relative; z-index: 1; }
.tf-idx { font-size: 13px; color: var(--muted); letter-spacing: .08em; font-variant-numeric: tabular-nums; transition: color .55s cubic-bezier(.16, 1, .3, 1); }
.tf-name { margin-top: clamp(26px, 3.2vw, 48px); font-size: clamp(2.1rem, 3.6vw, 3.6rem); font-weight: 600; letter-spacing: -.015em; line-height: .95; transition: color .55s cubic-bezier(.16, 1, .3, 1); }
.tf-tag { margin-top: 12px; font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; transition: color .55s; }
.tf-desc { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.45; min-height: 4.2em; transition: color .55s; }
.tf-price { margin-top: clamp(22px, 2.8vw, 40px); font-size: clamp(1.9rem, 2.8vw, 2.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color .55s; }
.tf-price small { font-size: .45em; font-weight: 500; color: var(--muted); margin-left: .3em; letter-spacing: 0; transition: color .55s; }
.tf-meta { font-size: 13px; color: var(--muted); margin-top: 10px; letter-spacing: .02em; line-height: 1.35; min-height: 2.4em; transition: color .55s; }
.tf-col ul { list-style: none; margin: clamp(20px, 2.4vw, 32px) 0 0; padding: 0; }
.tf-col li { font-size: 14.5px; color: var(--muted); line-height: 1.4; padding: 11px 0; border-top: 1px solid var(--line); transition: color .55s, border-color .55s; }
.tf-spacer { flex: 1 1 0; }
.tf-btn { margin-top: clamp(24px, 2.8vw, 36px); align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; padding: 13px 28px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 500; transition: background-color .55s, color .55s, border-color .55s; }
.tf-btn:hover { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .tf-col:hover::before { transform: scaleY(1); }
  .tf-col:hover .tf-name, .tf-col:hover .tf-tag, .tf-col:hover .tf-price { color: var(--bg); }
  .tf-col:hover .tf-btn { border-color: var(--bg); color: var(--bg); }
  .tf-col:hover .tf-btn:hover { background: var(--bg); color: var(--ink); }
  .tf-col:hover .tf-idx, .tf-col:hover .tf-desc, .tf-col:hover .tf-meta, .tf-col:hover li, .tf-col:hover .tf-price small { color: rgba(245, 242, 237, .72); }
  .tf-col:hover li { border-color: rgba(245, 242, 237, .22); }
}
html.rv .tf-col { opacity: 0; transform: translateY(44px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * .14s); }
html.rv .tf-grid.is-in .tf-col { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .tf-grid, .tf-grid--2 { grid-template-columns: 1fr; }
  .tf-col { padding-inline: 0; }
  .tf-col + .tf-col { border-left: 0; }
  .tf-name { margin-top: 14px; }
  .tf-desc, .tf-meta { min-height: 0; }
}

/* ===== Sections that slide over the previous one (like hero -> projects) ===== */
[data-covered] { --cover: 0; }
.reveal-sticky::after { content: ""; position: absolute; inset: 0; background: #0a0806; opacity: var(--cover, 0); pointer-events: none; z-index: 6; }
.reveal-sec { height: calc(235vh + 100vh); }
#pricing { margin-top: -100vh; }
/* pinned pages: hold still for a moment (margin-bottom) before the next page starts covering them */
.tf-sec[data-covered] { position: sticky; top: var(--stick-top, 0px); min-height: 100vh; min-height: 100svh; margin-bottom: 45vh; }
.cover-over { box-shadow: 0 -24px 60px rgba(0, 0, 0, .18); }
.tf-sec[data-covered]::after { content: ""; position: absolute; inset: 0; background: #0a0806; opacity: var(--cover, 0); pointer-events: none; z-index: 5; }
@media (max-width: 900px) { .reveal-sec { height: calc(190vh + 100vh); } }
@media (prefers-reduced-motion: reduce) {
  .reveal-sec { height: auto; }
  #pricing { margin-top: 0; }
  .tf-sec[data-covered] { position: relative; margin-bottom: 0; min-height: 0; }
  html.rv .tf-col { opacity: 1; transform: none; transition: none; }
}

/* ===== Finale: photo page, then the contact strip + footer are uncovered beneath it ===== */
.tf-sec--center { display: flex; align-items: center; }
.tf-sec--center > .container { width: 100%; }
.tf-sec--center .numbers b { font-size: clamp(56px, 8vw, 120px); letter-spacing: -.04em; }
.tf-sec--center .numbers span { font-size: 15px; }
.closing { height: calc(100svh + 20vh); background: #0f0d0b; }
.closing__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.closing__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.closing__scrim { position: absolute; inset: 0; background: rgba(12, 10, 8, .1); }
.closing__title { position: relative; z-index: 1; color: #fff; text-align: center; font-size: clamp(28px, 4.2vw, 62px); letter-spacing: -.02em; line-height: 1.15; text-shadow: 0 1px 30px rgba(0, 0, 0, .45); padding: 0 24px; }
.closing__title > span { display: block; }
.has-endbar { margin-bottom: var(--end-h, 0px); }
.endbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; background: var(--bg-alt); transform: translateY(calc((1 - var(--r, 1)) * 18%)); }
.endbar__contact { padding: clamp(36px, 5vh, 56px) 0; }
.endbar__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.endbar h2 { margin: 4px 0 20px; }
.endbar .contacts { margin: 0; padding: 0; list-style: none; }
.endbar .footer { background: var(--bg-alt); }
@media (max-width: 900px) { .endbar__inner { grid-template-columns: 1fr; gap: 24px; } .endbar .footer { padding: 28px 0; } }
@media (prefers-reduced-motion: reduce) { .closing { height: 100svh; } .endbar { transform: none; } }
@media (max-width: 900px) {
  .endbar__contact { padding: 28px 0 20px; }
  .endbar h2 { margin-bottom: 14px; }
  .endbar .contacts { display: flex; flex-wrap: wrap; gap: 6px 18px; }
  .endbar .contacts li { border: 0; padding: 0; gap: 0; }
  .endbar .contacts span { display: none; }
  .endbar .footer { padding: 18px 0; }
  .endbar .footer__inner, .endbar .footer__links { gap: 8px 16px; }
}

/* Numbers page: three figures, and a longer hold before the finale photo slides over */
.tf-sec--center .numbers { grid-template-columns: repeat(3, 1fr); }
.tf-sec--center[data-covered] { margin-bottom: 95vh; }
@media (max-width: 900px) { .tf-sec--center .numbers { grid-template-columns: 1fr; gap: 36px; } }
@media (prefers-reduced-motion: reduce) { .tf-sec--center[data-covered] { margin-bottom: 0; } }

/* Longer hold on "Дополнительные услуги" before the finale photo slides over it */
#extras[data-covered] { margin-bottom: 80vh; }
@media (prefers-reduced-motion: reduce) { #extras[data-covered] { margin-bottom: 0; } }

/* About page */
.about__photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%; background: var(--bg-alt); }
.about__text p + p { margin-top: 16px; }
.about__final { color: var(--ink) !important; font-size: 1.15em; line-height: 1.45; margin-top: 28px !important; }
.about__text .more { margin-top: 32px; }

/* Reviews page: screenshots of reviews in two columns, placed in order into the shorter column */
.revs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.revs.is-masonry { display: flex; gap: 24px; }
.revs__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.rev { margin: 0; border: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; }
.rev img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .revs, .revs.is-masonry { display: flex; flex-direction: column; } .revs__col { width: 100%; } }
.endbar__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Reviews: "more coming soon" placeholder */
.soon { margin-top: 24px; padding: clamp(36px, 6vw, 64px) 24px; border: 1.5px dashed var(--muted); text-align: center; }
.soon__t { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.02em; margin-top: 14px; }
.soon__s { color: var(--muted); margin-top: 6px; font-size: 15px; }
.soon__dots { display: inline-flex; gap: 7px; }
.soon__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: .25; animation: soon-dot 1.4s ease-in-out infinite; }
.soon__dots i:nth-child(2) { animation-delay: .2s; }
.soon__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes soon-dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .soon__dots i { animation: none; opacity: .6; } }

.tf-desc { min-height: 6.4em; }
@media (max-width: 900px) { .tf-desc { min-height: 0; } }

/* Pinned pages (home): compact spacing so a whole page fits on screen and its heading stays clear of the header */
@media (min-width: 901px) {
  .tf-sec[data-covered] { padding: clamp(88px, 12vh, 112px) 0 clamp(20px, 4vh, 44px); }
  .tf-sec[data-covered] .sec-intro { margin-bottom: clamp(16px, 3.4vh, 36px); }
  .tf-sec[data-covered] .sec-intro .lead { margin-top: 10px; font-size: 17px; }
  .tf-sec[data-covered] .tf-col { padding: clamp(18px, 3vh, 30px) clamp(24px, 2.6vw, 40px) clamp(20px, 3.4vh, 34px); }
  .tf-sec[data-covered] .tf-name { margin-top: clamp(10px, 2.4vh, 26px); }
  .tf-sec[data-covered] .tf-desc { min-height: 5em; }
  .tf-sec[data-covered] .tf-price { margin-top: clamp(10px, 2.2vh, 22px); }
  .tf-sec[data-covered] .tf-col ul { margin-top: clamp(10px, 2vh, 18px); }
  .tf-sec[data-covered] .tf-col li { padding: 8px 0; }
  .tf-sec[data-covered] .tf-btn { margin-top: clamp(14px, 2.4vh, 24px); }
}
@media (min-width: 901px) and (max-height: 820px) {
  .tf-sec[data-covered] { padding-top: 80px; padding-bottom: 16px; }
  .tf-sec[data-covered] .sec-intro .lead { display: none; }
  .tf-sec[data-covered] .sec-intro { margin-bottom: 14px; }
  .tf-sec[data-covered] .tf-name { font-size: min(3.6rem, 6.2vh); margin-top: 8px; }
  .tf-sec[data-covered] .tf-desc { min-height: 4.4em; }
  .tf-sec[data-covered] .tf-price { font-size: min(2.6rem, 4.6vh); margin-top: 8px; }
  .tf-sec[data-covered] .tf-col { padding-top: 14px; padding-bottom: 16px; }
  .tf-sec[data-covered] .tf-col li { padding: 6px 0; }
  .tf-sec[data-covered] .tf-btn { padding: 10px 24px; margin-top: 12px; }
}
.prose__date { margin-bottom: 8px; }
.prose h2 { font-size: clamp(20px, 2.2vw, 26px); }

/* Contacts page */
.contacts--page { max-width: 760px; margin: 0; padding: 0; list-style: none; }
.contacts--page li { padding: 22px 0; font-size: clamp(18px, 2.2vw, 26px); border-top: 1px solid var(--line); }
.contacts--page li:last-child { border-bottom: 1px solid var(--line); }
.contacts--page li > span { font-size: 14px; }
.contacts--page a { transition: color .3s; }
.contacts--page a:hover { color: var(--accent); }
.contacts__legal { margin-top: 40px; color: var(--muted); font-size: 14px; }
.contacts--page li { align-items: baseline; }

/* Telegram contact: shows the studio handle, opens the personal chat */
.tg { display: inline-flex; align-items: center; gap: .5em; position: relative; }
.tg__ico { width: 1em; height: 1em; color: var(--accent); flex: none; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.tg__txt { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 2px; transition: background-size .45s cubic-bezier(.16, 1, .3, 1); }
.tg__arr { font-size: .8em; opacity: 0; transform: translate(-6px, 4px); transition: opacity .35s, transform .45s cubic-bezier(.16, 1, .3, 1); color: var(--accent); }
.tg:hover .tg__txt, .tg:focus-visible .tg__txt { background-size: 100% 1px; }
.tg:hover .tg__ico { transform: translate(2px, -2px) rotate(-8deg); }
.tg:hover .tg__arr, .tg:focus-visible .tg__arr { opacity: 1; transform: none; }
.contacts--page a.tg:hover { color: var(--ink); }
@media (hover: none) { .tg__arr { opacity: .7; transform: none; } }
