:root {
  --ink: #17140f;
  --ink-soft: #2a241c;
  --muted: #6f675c;
  --line: rgba(23, 20, 15, 0.12);
  --stone: #d9d2c6;
  --stone-deep: #b7aea0;
  --veneer: #5a3f2e;
  --fog: #f2efe9;
  --white: #faf9f6;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(90, 63, 46, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(183, 174, 160, 0.35), transparent 50%),
    linear-gradient(180deg, #1a1612 0%, #12100e 100%);
  line-height: 1.55;
}
body.is-intro {
  overflow: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.page {
  max-width: none;
  margin: 0;
  background: var(--fog);
  min-height: 100vh;
}

/* —— header —— */
.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px 5vw;
  position: sticky;
  top: 0;
  z-index: 40;
  margin-bottom: -72px;
  color: rgba(250, 249, 246, 0.92);
  opacity: 0;
  transition:
    background 0.4s var(--ease),
    color 0.4s var(--ease),
    backdrop-filter 0.4s,
    border-color 0.4s,
    opacity 0.7s var(--ease);
  border-bottom: 1px solid transparent;
}
body:not(.is-intro) .top {
  opacity: 1;
}
.top.is-solid {
  background: rgba(242, 239, 233, 0.94);
  color: var(--ink);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.logo {
  justify-self: start;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 32px;
  justify-content: center;
}
.nav a {
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.88;
}
.nav a:hover { opacity: 0.5; }

.top-phone {
  justify-self: end;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* —— hero: cinematic —— */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #0c0907;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: -10% 0 -14%;
  will-change: transform;
  opacity: 0.35;
  transition: opacity 1.2s var(--ease);
}
.hero.is-ready .hero-media {
  opacity: 1;
}
.hero-zoom {
  width: 100%;
  height: 100%;
  transform-origin: 78% 68%;
  transform: scale(1.72);
}
.hero.is-ready .hero-zoom {
  animation: hero-veneer-reveal 4.4s var(--ease) both;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 68%;
  filter: contrast(1.12) saturate(1.05) brightness(0.86);
}
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  transition: opacity 1s 0.4s var(--ease);
}
.hero.is-ready .hero-grain {
  opacity: 0.32;
  animation: grain-shift 0.8s steps(2) infinite;
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 9, 7, 0.78) 0%, rgba(12, 9, 7, 0.18) 24%, transparent 40%),
    linear-gradient(90deg, rgba(12, 9, 7, 0.9) 0%, rgba(12, 9, 7, 0.5) 36%, rgba(12, 9, 7, 0.1) 70%),
    linear-gradient(0deg, rgba(12, 9, 7, 0.92) 0%, rgba(12, 9, 7, 0.4) 26%, transparent 52%);
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 1.4s 0.2s var(--ease);
}
.hero.is-ready .hero-veil {
  opacity: 1;
}
.hero-curtain {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  background: #0c0907;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1.25s var(--ease), visibility 0s linear 1.25s;
}
.hero.is-ready .hero-curtain {
  opacity: 0;
  visibility: hidden;
}
.hero-curtain-mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.78);
  animation: curtain-mark 1.4s var(--ease) both;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(110px, 16vw, 180px) 5vw clamp(88px, 10vw, 130px);
  max-width: 920px;
  display: grid;
  gap: 22px;
}
.hero-brand {
  margin: 0;
  display: grid;
  gap: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 12.5vw, 148px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.86;
  text-shadow: 0 8px 60px rgba(0, 0, 0, 0.45);
}
.hero-brand span,
.hero-title,
.hero-lead,
.hero-cta,
.hero-scroll {
  opacity: 0;
}
.hero.is-ready .hero-brand span {
  display: block;
  animation: rise-hard 1.2s 0.45s var(--ease) both;
}
.hero-brand span {
  display: block;
}
.hero-brand span:nth-child(2) {
  padding-left: 0.08em;
  color: rgba(250, 249, 246, 0.92);
}
.hero.is-ready .hero-brand span:nth-child(2) {
  animation-delay: 0.58s;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(26px, 3.8vw, 44px);
  letter-spacing: 0.01em;
  line-height: 1.15;
  max-width: 12ch;
  color: rgba(250, 249, 246, 0.95);
}
.hero.is-ready .hero-title {
  animation: rise-hard 1.2s 0.7s var(--ease) both;
}
.hero-lead {
  margin: 0;
  max-width: 28ch;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(250, 249, 246, 0.68);
  line-height: 1.7;
}
.hero.is-ready .hero-lead {
  animation: rise-hard 1.2s 0.82s var(--ease) both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 28px;
  margin-top: 8px;
}
.hero.is-ready .hero-cta {
  animation: rise-hard 1.2s 0.94s var(--ease) both;
}
.hero-bars {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-bar {
  display: block;
  width: 56px;
  height: 4px;
}
.hero-bar-stone {
  background: linear-gradient(90deg, #f4f2ef, #d7d3cd 55%, #9a9690);
}
.hero-bar-veneer {
  background: linear-gradient(90deg, #3d2a1d, #7a563c 55%, #2a1c14);
}
.btn-hero {
  margin-top: 0;
  padding: 16px 32px;
  background: rgba(250, 249, 246, 0.08);
  border-color: rgba(250, 249, 246, 0.85);
  color: var(--white);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.btn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn-hero:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--white);
}
.btn-hero:hover::after {
  transform: translateY(0);
}
.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 5vw;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.5);
  pointer-events: none;
}
.hero.is-ready .hero-scroll {
  animation: rise-hard 1.2s 1.2s var(--ease) both;
}
.hero-scroll::before {
  content: "";
  width: 48px;
  height: 1px;
  background: rgba(250, 249, 246, 0.5);
}
.hero.is-ready .hero-scroll::before {
  animation: scroll-line 2.4s 1.4s var(--ease) infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleX(0.45); opacity: 0.3; transform-origin: left; }
  50% { transform: scaleX(1); opacity: 1; transform-origin: left; }
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-1.5%, 1%); }
  100% { transform: translate(1%, -1%); }
}
@keyframes curtain-mark {
  from { opacity: 0; letter-spacing: 0.42em; }
  to { opacity: 1; letter-spacing: 0.28em; }
}
@keyframes hero-veneer-reveal {
  0% {
    transform: scale(1.72);
    transform-origin: 78% 68%;
  }
  100% {
    transform: scale(1.32);
    transform-origin: 72% 60%;
  }
}
@keyframes rise-hard {
  from { opacity: 0; transform: translateY(36px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* —— panels —— */
.panel-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 100svh;
  background: var(--ink);
  color: var(--white);
}
.panel-split-visual {
  overflow: hidden;
  background: #211c17;
  position: relative;
}
.panel-split-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  transition: transform 1.6s var(--ease);
  filter: contrast(1.04) saturate(0.92);
}
.panel-split.is-in .panel-split-visual img,
.panel-split:hover .panel-split-visual img {
  transform: scale(1);
}
.panel-split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 72px);
  background:
    radial-gradient(520px 300px at 90% 10%, rgba(90, 63, 46, 0.4), transparent 70%),
    linear-gradient(165deg, #1a1511 0%, #0e0c0a 100%);
}
.panel-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.45);
}
.panel-title,
.order-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 10ch;
}
.panel-text,
.prices-lead {
  margin: 0;
  max-width: 28ch;
  font-size: 16px;
  font-weight: 300;
  color: rgba(250, 249, 246, 0.68);
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 14px 28px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s, transform 0.3s var(--ease);
}
.btn:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-light {
  color: var(--white);
  border-color: rgba(250, 249, 246, 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-fill {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-fill:hover {
  background: var(--veneer);
  border-color: var(--veneer);
}

/* —— catalog —— */
.catalog,
.order {
  padding: clamp(64px, 9vw, 120px) 5vw;
}
.catalog {
  background:
    linear-gradient(180deg, rgba(217, 210, 198, 0.35), transparent 28%),
    var(--fog);
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.catalog-lead {
  margin: 0 0 40px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 16px;
}

.catalog-group {
  margin: 48px 0 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.catalog-group:first-of-type { margin-top: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 26px;
}

.card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.card.is-in {
  opacity: 1;
  transform: none;
}

.card-media {
  display: block;
  background:
    linear-gradient(145deg, rgba(90, 63, 46, 0.08), transparent 40%),
    var(--stone);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  width: 100%;
  position: relative;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(18, 14, 10, 0.28));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.1s var(--ease), filter 1.1s var(--ease);
  filter: saturate(0.9) contrast(1.03);
}
.card:hover .card-media img {
  transform: scale(1.08);
  filter: saturate(1.06) contrast(1.06);
}
.card:hover .card-media::after {
  opacity: 1;
}

/* —— lightbox —— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 14, 10, 0.94);
  cursor: zoom-out;
}
.lightbox.is-open,
.lightbox:not([hidden]) {
  display: flex;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox-img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
}
.lightbox-close:hover { opacity: 0.7; }
body.lightbox-open { overflow: hidden; }

.card-meta {
  padding: 18px 2px 0;
}
.card-meta h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.card-meta > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.tile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.price-from {
  font-size: 13px;
  font-weight: 500;
  display: none;
}
.link-arrow {
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.link-arrow:hover { opacity: 0.5; }

/* —— materials essay —— */
.essay {
  padding: clamp(56px, 8vw, 100px) 4vw;
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
}
.essay .section-label { margin-bottom: 28px; }
.essay-block {
  margin: 0 0 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.essay-block:last-of-type {
  border-bottom: 0;
  margin-bottom: 36px;
  padding-bottom: 0;
}
.essay-block h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.8vw, 44px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}
.essay-block p {
  margin: 0 0 18px;
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.75;
}
.essay-points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.essay-points li {
  position: relative;
  padding: 12px 0 12px 1.2em;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}
.essay-points li:last-child { border-bottom: 1px solid var(--line); }
.essay-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--veneer);
}
.essay .btn {
  margin-top: 8px;
  color: var(--ink);
  border-color: var(--ink);
}
.essay .btn:hover {
  background: var(--ink);
  color: var(--white);
}

/* —— order —— */
.order {
  background:
    linear-gradient(180deg, rgba(90, 63, 46, 0.08), transparent 40%),
    var(--stone);
  border-top: 1px solid var(--line);
}
.order .section-label,
.order .prices-lead { color: var(--muted); }
.order-title {
  margin: 0 0 12px;
  max-width: none;
  color: var(--ink);
}
.prices-lead { color: var(--muted); }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
}
.form {
  display: grid;
  gap: 14px;
  max-width: 520px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(23, 20, 15, 0.16);
  border-radius: 0;
  background: rgba(250, 249, 246, 0.85);
  font: inherit;
  font-weight: 300;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 1px solid var(--ink);
  outline-offset: 0;
}
.form button { width: fit-content; margin-top: 4px; }
.form-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 300;
}

.footer {
  background: #12100e;
  color: rgba(250, 249, 246, 0.68);
  padding: 56px 4vw 72px;
  font-size: 14px;
  font-weight: 300;
}
.footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.footer a:hover {
  color: #fff;
  border-bottom-color: currentColor;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}
.footer-cols {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer p { margin: 0 0 8px; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .panel-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .panel-split-visual {
    min-height: min(70vw, 420px);
  }
  .hero-brand {
    font-size: clamp(56px, 18vw, 96px);
  }
}

@media (max-width: 860px) {
  .top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo phone"
      "nav nav";
    padding: 16px 5vw;
  }
  .logo { grid-area: logo; font-size: 16px; }
  .top-phone { grid-area: phone; font-size: 11px; }
  .nav {
    grid-area: nav;
    justify-content: flex-start;
    gap: 18px;
    padding-top: 4px;
  }
  .gallery { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy {
    padding: 100px 5vw 100px;
    gap: 16px;
  }
  .hero-scroll { display: none; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  body.is-intro { overflow: auto; }
  .top { opacity: 1 !important; }
  .hero-media,
  .hero-grain,
  .hero-veil,
  .hero-curtain,
  .hero-curtain-mark,
  .hero-zoom,
  .card-media img,
  .hero-brand span,
  .hero-title,
  .hero-lead,
  .hero-cta,
  .hero-scroll,
  .hero-scroll::before,
  .card,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    visibility: visible !important;
  }
  .hero-curtain { display: none !important; }
}
