/* ==========================================================================
   CADORO — V1 "Dark Luxury"
   Black ground, gold hairlines, Cormorant display over Inter.
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-alt: #0e0e12;
  --surface: #141419;
  --surface-2: #1b1b22;

  --gold: #d4af37;
  --gold-lit: #f0d98c;
  --gold-deep: #8a7128;

  --text: #ededf0;
  --text-2: #a6a6b2;
  --text-3: #71717e;

  --line: rgba(212, 175, 55, 0.18);
  --line-soft: rgba(255, 255, 255, 0.07);

  --shell: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 78px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 0.7, 0.28, 1);
}

/* ── reset ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  letter-spacing: 0.005em;
  overflow-x: hidden;
}
body.nav-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  background: var(--gold);
  color: #16130a;
  padding: 0.7rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

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

/* ── typography ────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.75rem;
  opacity: 0.7;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-title em {
  font-style: italic;
  color: var(--gold-lit);
}

.section-lede {
  margin-top: 1.25rem;
  max-width: 56ch;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.75;
}
.section-lede a {
  color: var(--gold);
  border-bottom: 1px solid var(--line);
}

.section {
  padding: clamp(4.5rem, 9vw, 8.5rem) 0;
  scroll-margin-top: var(--header-h);
}
.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line-soft);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
  text-align: center;
}
.section-head--center .section-lede {
  margin-inline: auto;
}

/* ── buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.btn--lg {
  padding: 1.05rem 2.1rem;
}
.btn svg,
.btn i {
  width: 1rem;
  height: 1rem;
}

.btn--primary {
  background: linear-gradient(
    105deg,
    var(--gold) 0%,
    var(--gold-lit) 55%,
    var(--gold) 100%
  );
  color: #17130a;
  font-weight: 600;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(212, 175, 55, 0.22);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-lit);
  background: rgba(212, 175, 55, 0.06);
}

/* ── preloader ─────────────────────────────────────────────────────────── */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition:
    opacity 0.6s var(--ease),
    visibility 0.6s;
  /* Safety net: never trap the page behind the loader if a script fails. */
  animation: preloader-bail 0s linear 6s forwards;
}
@keyframes preloader-bail {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}
.preloader-mark {
  display: grid;
  justify-items: center;
  gap: 1rem;
  color: var(--gold);
}
.preloader-mark img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  box-shadow: 0 0 44px rgba(212, 175, 55, 0.18);
  animation: preloader-pulse 2.4s var(--ease) infinite;
}
.preloader-mark span {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-3);
}
@keyframes preloader-pulse {
  50% {
    transform: scale(1.04);
    filter: brightness(1.15);
  }
}

/* ── header ────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 120;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold);
}
.logo-mark {
  width: 48px;
  height: 48px;
  flex: none;
  object-fit: contain;
  /* border: 1px solid rgba(212, 175, 55, 0.38); */
}
.logo-text {
  display: grid;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--text);
}
.logo-text small {
  margin-top: 0.32rem;
  font-family: var(--sans);
  font-size: 0.46rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav {
  display: flex;
  gap: clamp(1rem, 1.7vw, 2rem);
  margin-left: auto;
}
.nav-link {
  position: relative;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--gold-lit);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.header-cta {
  padding: 0.7rem 1.3rem;
  font-size: 0.72rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle .bar {
  width: 18px;
  height: 1px;
  background: var(--text);
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.4rem;
  padding: 1.5rem var(--gutter) 2rem;
  transform: translateY(-120%);
  visibility: hidden;
  transition:
    transform 0.45s var(--ease),
    visibility 0.45s;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.nav-drawer.is-open {
  transform: none;
  visibility: visible;
}
.nav-drawer nav {
  display: grid;
}
.nav-drawer .nav-link {
  font-family: var(--serif);
  font-size: 1.5rem;
  text-transform: none;
  letter-spacing: 0.02em;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer .btn {
  margin-top: 1.25rem;
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 5rem) 0 clamp(3rem, 6vw, 6rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  background: radial-gradient(
    circle,
    rgba(212, 175, 55, 0.13) 0%,
    transparent 62%
  );
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-lit);
}

.hero-lede {
  margin-top: 1.6rem;
  max-width: 52ch;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.78;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.hero-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-3);
}
.hero-formats li::before {
  content: "· ";
  color: var(--gold-deep);
}

/* viewer */
.hero-stage {
  display: grid;
  gap: 1.2rem;
}

.viewer {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background:
    radial-gradient(
      ellipse at 50% 40%,
      rgba(212, 175, 55, 0.08),
      transparent 62%
    ),
    linear-gradient(180deg, #0d0d11, #08080a);
}
.viewer--square {
  aspect-ratio: 1 / 1;
}
.viewer canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}
.viewer canvas:active {
  cursor: grabbing;
}

.viewer::before,
.viewer::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.viewer::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}
.viewer::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.viewer-hint {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  pointer-events: none;
}
.viewer-fallback {
  position: absolute;
  inset: 0;
  display: grid;
}
.viewer-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}
.viewer-fallback p {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.9rem 1rem;
  background: rgba(10, 10, 11, 0.86);
  font-size: 0.78rem;
  color: var(--text-2);
}

.vc {
  display: grid;
  gap: 0.7rem;
}
.vc-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.vc-btn,
.vc-toggle {
  flex: 1 1 auto;
  padding: 0.6rem 0.9rem;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.vc-btn:hover,
.vc-toggle:hover {
  border-color: var(--gold);
  color: var(--gold-lit);
}
.vc-btn.is-active {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold);
  color: var(--gold-lit);
}
.vc-toggle.is-active {
  border-color: var(--gold);
  color: var(--gold-lit);
}
.vc-toggle::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--text-3);
  vertical-align: middle;
  transition: background 0.3s;
}
.vc-toggle.is-active::before {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.vc--compact .vc-btn {
  font-size: 0.64rem;
  padding: 0.5rem 0.7rem;
}

/* ── stats band ────────────────────────────────────────────────────────── */

.stats-band {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-alt);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: clamp(2rem, 4vw, 3.25rem) 0;
}
.stat {
  text-align: center;
  padding-inline: 1rem;
}
.stat + .stat {
  border-left: 1px solid var(--line-soft);
}
.stat-value {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--gold-lit);
  line-height: 1;
}
.stat-label {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── portfolio ─────────────────────────────────────────────────────────── */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.6rem 1.15rem;
  background: none;
  border: 1px solid var(--line-soft);
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-lit);
}
.filter-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #17130a;
  font-weight: 600;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.pf-item {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.pf-item.is-hidden {
  display: none;
}

.pf-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--surface);
}
.pf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.75s var(--ease),
    filter 0.5s var(--ease);
}
.pf-mesh {
  position: absolute;
  inset: 0;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.45s var(--ease);
  background-image:
    repeating-linear-gradient(
      58deg,
      rgba(212, 175, 55, 0.65) 0 1px,
      transparent 1px 15px
    ),
    repeating-linear-gradient(
      -58deg,
      rgba(212, 175, 55, 0.65) 0 1px,
      transparent 1px 15px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(212, 175, 55, 0.32) 0 1px,
      transparent 1px 15px
    );
}
.pf-badge {
  position: absolute;
  left: 0.7rem;
  top: 0.7rem;
  padding: 0.28rem 0.55rem;
  background: rgba(10, 10, 11, 0.78);
  border: 1px solid var(--line);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.4s var(--ease);
}
.pf-item:hover .pf-img,
.pf-item:focus-visible .pf-img {
  transform: scale(1.05);
  filter: grayscale(0.9) contrast(1.2) brightness(0.5);
}
.pf-item:hover .pf-mesh,
.pf-item:focus-visible .pf-mesh {
  opacity: 1;
}
.pf-item:hover .pf-badge,
.pf-item:focus-visible .pf-badge {
  opacity: 1;
  transform: none;
}
.pf-item:hover .pf-media {
  border-color: var(--gold);
}

.pf-info {
  display: grid;
  gap: 0.2rem;
}
.pf-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--text);
}
.pf-spec {
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.pf-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-3);
  text-align: center;
}

/* ── services ──────────────────────────────────────────────────────────── */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.svc-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.75rem, 3vw, 2.6rem);
  background: var(--bg);
  transition: background 0.4s var(--ease);
}
.svc-card:hover {
  background: var(--surface);
}
.svc-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  color: var(--gold);
}
.svc-icon i {
  width: 20px;
  height: 20px;
}
.svc-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}
.svc-text {
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.72;
}
.svc-meta {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-soft);
}

/* ── process ───────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line-soft);
}
.step-num {
  position: absolute;
  top: -0.75rem;
  left: 0;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: rgba(212, 175, 55, 0.22);
  line-height: 1;
}
.step-day {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.step-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.step-text {
  color: var(--text-2);
  font-size: 0.93rem;
  line-height: 1.72;
}

/* ── materials ─────────────────────────────────────────────────────────── */

.materials-inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.metals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 2.75rem;
}
.metal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  background: none;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  color: var(--text-2);
  transition: all 0.3s var(--ease);
}
.metal-btn:hover {
  border-color: var(--gold);
  color: var(--text);
}
.metal-btn.is-active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  color: var(--text);
}
.metal-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--metal);
  box-shadow:
    inset 0 -3px 5px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}
.metal-name {
  font-size: 0.82rem;
}
.metal-code {
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.cap-title {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
}
.cap-list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-2);
}
.cap-list li::before {
  content: "—";
  color: var(--gold-deep);
  margin-right: 0.5rem;
}

.materials-stage {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

/* ── estimator ─────────────────────────────────────────────────────────── */

.estimator {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), var(--bg));
}
.est-controls {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.est-result {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-left: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.035);
}
.est-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-soft);
}
.est-key {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.est-val {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  color: var(--gold-lit);
}
.est-note {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.65;
}
.est-send {
  width: 100%;
  margin-top: 0.5rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}
.field-label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.field-label em {
  color: var(--gold);
  font-style: normal;
}
.field-input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-soft);
  color: var(--text);
  transition:
    border-color 0.3s,
    background 0.3s;
}
.field-input:focus {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
  outline: none;
}
select.field-input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.4rem;
}
select.field-input option {
  background: var(--surface);
}
textarea.field-input {
  resize: vertical;
  min-height: 120px;
}

.field--range output {
  color: var(--gold-lit);
  font-weight: 600;
}
.field-range {
  width: 100%;
  appearance: none;
  height: 2px;
  background: var(--line-soft);
  cursor: pointer;
}
.field-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
  cursor: grab;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}
.field-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  border: 0;
}

/* ── why ───────────────────────────────────────────────────────────────── */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.why-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1.85rem 1.5rem;
  border: 1px solid var(--line-soft);
  background: var(--bg);
}
.why-icon {
  color: var(--gold);
}
.why-icon i {
  width: 24px;
  height: 24px;
}
.why-title {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 400;
}
.why-text {
  font-size: 0.89rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── testimonials ──────────────────────────────────────────────────────── */

.tm-swiper {
  padding-bottom: 1rem;
}
.tm-card {
  display: grid;
  align-content: start;
  gap: 1.1rem;
  height: 100%;
  padding: 2.2rem 1.9rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, var(--surface), var(--bg));
}
.tm-mark {
  color: var(--gold-deep);
}
.tm-mark i {
  width: 26px;
  height: 26px;
}
.tm-quote {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
}
.tm-by {
  display: grid;
  gap: 0.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.tm-name {
  font-size: 0.9rem;
  color: var(--gold-lit);
}
.tm-role {
  font-size: 0.73rem;
  color: var(--text-3);
}
.tm-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.tm-dots .swiper-pagination-bullet {
  width: 24px;
  height: 2px;
  border-radius: 0;
  background: var(--line-soft);
  opacity: 1;
}
.tm-dots .swiper-pagination-bullet-active {
  background: var(--gold);
}

/* ── pricing ───────────────────────────────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.price-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 2.3rem 1.9rem;
  border: 1px solid var(--line-soft);
  background: var(--bg);
}
.price-card--featured {
  border-color: var(--gold);
  background: linear-gradient(
    170deg,
    rgba(212, 175, 55, 0.07),
    transparent 60%
  );
}
.price-flag {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 0.35rem 0.8rem;
  background: var(--gold);
  color: #17130a;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.price-name {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 400;
}
.price-blurb {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.65;
}
.price-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.75rem 0;
  border-block: 1px solid var(--line-soft);
}
.price-from {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.price-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold-lit);
  line-height: 1;
}
.price-unit {
  font-size: 0.75rem;
  color: var(--text-3);
}
.price-list {
  display: grid;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--text-2);
}
.price-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.6rem;
  align-items: start;
}
.price-list i {
  width: 14px;
  height: 14px;
  color: var(--gold);
  margin-top: 0.32rem;
}
.price-cta {
  margin-top: 0.75rem;
}

/* ── faq ───────────────────────────────────────────────────────────────── */

.faq-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.faq-inner .section-head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.faq-list {
  display: grid;
}
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-item h3 {
  margin: 0;
  font: inherit;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.4rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.25rem;
  transition: color 0.3s;
}
.faq-q:hover {
  color: var(--gold-lit);
}
.faq-q i {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold);
  transition: transform 0.35s var(--ease);
}
.faq-item.is-open .faq-q {
  color: var(--gold-lit);
}
.faq-item.is-open .faq-q i {
  transform: rotate(135deg);
}
.faq-a {
  padding-bottom: 1.5rem;
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.78;
  max-width: 62ch;
}

/* ── cta band ──────────────────────────────────────────────────────────── */

.cta-band {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background:
    radial-gradient(
      ellipse at 50% 120%,
      rgba(212, 175, 55, 0.16),
      transparent 60%
    ),
    var(--bg-alt);
  border-block: 1px solid var(--line);
  text-align: center;
}
.cta-inner h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}
.cta-inner p {
  margin: 1rem auto 2.2rem;
  max-width: 46ch;
  color: var(--text-2);
}

/* ── contact ───────────────────────────────────────────────────────────── */

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin: 2.2rem 0;
}
.contact-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.9rem;
  align-items: center;
  color: var(--text-2);
  font-size: 0.94rem;
}
.contact-list i {
  width: 17px;
  height: 17px;
  color: var(--gold);
}
.contact-list a:hover {
  color: var(--gold-lit);
}
.contact-quick {
  display: flex;
  gap: 0.6rem;
}
.contact-photo {
  margin-top: 2.5rem;
  border: 1px solid var(--line-soft);
}
.contact-photo img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
}

.contact-form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface), var(--bg));
}
.form-demo {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid var(--line);
  font-size: 0.79rem;
  color: var(--text-2);
}
.form-demo i {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex: none;
  margin-top: 0.15rem;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
}
.field-error {
  font-size: 0.74rem;
  color: #ff8f7a;
  min-height: 1em;
}
.field.has-error .field-input {
  border-color: #ff8f7a;
}

.dropzone {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 1.9rem 1rem;
  text-align: center;
  cursor: pointer;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.015);
  transition: all 0.3s var(--ease);
}
.dropzone:hover,
.dropzone.is-over {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.07);
}
.dropzone i {
  width: 22px;
  height: 22px;
  color: var(--gold);
}
.dropzone span {
  font-size: 0.88rem;
  color: var(--text-2);
}
.dropzone strong {
  color: var(--text);
  font-weight: 500;
}
.dropzone small {
  font-size: 0.73rem;
  color: var(--text-3);
}

.filelist {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.filelist li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-2);
}
.filelist i {
  width: 14px;
  height: 14px;
  color: var(--gold);
}
.filelist em {
  font-style: normal;
  color: var(--text-3);
  font-size: 0.73rem;
}

.form-submit.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
.form-status {
  font-size: 0.86rem;
  line-height: 1.65;
}
.form-status.is-error {
  color: #ff8f7a;
}
.form-status.is-pending {
  color: var(--text-3);
}
.form-status.is-ok {
  color: var(--text-2);
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.06);
}
.form-status.is-ok strong {
  color: var(--gold-lit);
  display: block;
  margin-bottom: 0.3rem;
}

/* ── footer ────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding: clamp(3rem, 5vw, 4.5rem) 0 2.5rem;
}
.footer-brand p {
  margin: 1.1rem 0 1.5rem;
  max-width: 38ch;
  color: var(--text-3);
  font-size: 0.88rem;
  line-height: 1.7;
}
.socials {
  display: flex;
  gap: 0.5rem;
}
.social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-soft);
  color: var(--text-2);
  transition: all 0.3s;
}
.social:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.social i {
  width: 16px;
  height: 16px;
}
.footer-nav {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  font-size: 0.86rem;
  color: var(--text-2);
}
.footer-nav a:hover {
  color: var(--gold-lit);
}
.footer-contact {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  font-size: 0.86rem;
  color: var(--text-2);
}
.footer-contact a:hover {
  color: var(--gold-lit);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  color: var(--text-3);
}
.footer-legal a:hover {
  color: var(--gold);
}

/* ── reveal ────────────────────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease) var(--d, 0ms),
    transform 0.8s var(--ease) var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ── lightbox ──────────────────────────────────────────────────────────── */

.lb {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.94);
  backdrop-filter: blur(6px);
}
.lb-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: min(1120px, 100%);
}
.lb-figure {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  max-height: 82vh;
  overflow: hidden;
}
.lb-img {
  width: 100%;
  height: 100%;
  max-height: 82vh;
  object-fit: cover;
}
.lb-cap {
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.lb-count {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.lb-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: var(--text);
}
.lb-meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.lb-note {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.75;
}
.lb-formats {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-soft);
}

.lb-nav,
.lb-close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(20, 20, 25, 0.9);
  border: 1px solid var(--line-soft);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.lb-nav:hover,
.lb-close:hover {
  border-color: var(--gold);
  color: var(--gold-lit);
}
.lb-nav i,
.lb-close i {
  width: 19px;
  height: 19px;
}
.lb-close {
  position: absolute;
  top: -58px;
  right: 0;
}

@media (max-width: 860px) {
  .lb-figure {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .lb-img {
    max-height: 38vh;
  }
  .lb-panel {
    grid-template-columns: 1fr;
  }
  .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .lb-prev {
    left: 0.5rem;
    top: 40%;
  }
  .lb-next {
    right: 0.5rem;
    top: 40%;
  }
  .lb-close {
    top: -52px;
  }
}

/* ── responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .pf-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .svc-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-grid {
    grid-template-columns: 1fr;
  }
  .materials-inner,
  .faq-inner,
  .contact-inner,
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .materials-stage,
  .faq-inner .section-head {
    position: static;
  }
  .estimator {
    grid-template-columns: 1fr;
  }
  .est-result {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav,
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero {
    padding-top: calc(var(--header-h) + 2.5rem);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 0;
  }
  .stat:nth-child(odd) {
    border-left: 0;
  }
  .stat:nth-child(3),
  .stat:nth-child(4) {
    padding-top: 2rem;
    border-top: 1px solid var(--line-soft);
  }
  .pf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cap-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 560px) {
  .pf-grid {
    grid-template-columns: 1fr;
  }
  .svc-grid,
  .steps,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
  }
  .hero-actions .btn {
    width: auto;
    flex: 1 1 auto;
  }
  .contact-quick .btn {
    flex: 1 1 auto;
  }
}

/* ── motion preferences ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
