/* =========================================================================
   SALMAST — Architectural Gallery design system
   Dual theme: Day (warm porcelain, editorial) / Night (charcoal gallery luxe)
   ========================================================================= */

/* ---------- Brand Armenian font (DejaVu 2.37, see assets/fonts/dejavu/LICENSE) */
/* Subset to Armenian + basic Latin; referenced only by the :root[lang="hy"] stacks.
   DejaVu has no Semibold, so 500–600 map to Regular instead of falling back to
   the much heavier Bold; only 700+ uses Bold. */
@font-face {
  font-family: "DejaVu Sans";
  src: local("DejaVu Sans"), url("assets/fonts/dejavu/DejaVuSans-armenian-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0530-058F, U+2010-2027, U+2030-203A, U+20AC, U+2116, U+2122, U+FB13-FB17;
}
@font-face {
  font-family: "DejaVu Sans";
  src: local("DejaVu Sans Bold"), local("DejaVuSans-Bold"), url("assets/fonts/dejavu/DejaVuSans-Bold-armenian-latin.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+0530-058F, U+2010-2027, U+2030-203A, U+20AC, U+2116, U+2122, U+FB13-FB17;
}

/* ---------- Design tokens ------------------------------------------------ */
:root {
  color-scheme: light;

  /* Type */
  --font-display: "Source Sans 3", "Noto Sans Armenian", Arial, sans-serif;
  --font-body: "Source Sans 3", "Noto Sans Armenian", Arial, sans-serif;

  /* Warm brand hues (shared) */
  --brass: #b59357;
  --brass-bright: #b59357;
  --walnut: #2e3e44;
  --olive: #2e3e44;

  /* Official SALMAST identity palette from the approved brand guidelines. */
  --brand-blue: #2e3e44;
  --brand-blue-deep: #2e3e44;
  --brand-blue-raised: #2e3e44;
  --brand-beige: #fdf4e3;
  --brand-blue-on: #fdf4e3;
  --brand-blue-on-soft: rgba(253, 244, 227, 0.72);
  --brand-gold: #b59357;
  --brand-gold-readable: #b59357;
  --brand-gold-ink: #2e3e44;

  /* Day palette (default) */
  --bg: #fdf4e3;
  --bg-2: rgba(253, 244, 227, 0.84);
  --surface: #ffffff;
  --surface-2: rgba(255, 255, 255, 0.72);
  --contrast-bg: #2e3e44;
  --contrast-surface: #2e3e44;

  --ink: #2e3e44;
  --ink-soft: rgba(46, 62, 68, 0.72);
  --ink-faint: rgba(46, 62, 68, 0.52);
  --on-contrast: #fdf4e3;
  --on-contrast-soft: rgba(253, 244, 227, 0.72);

  --line: rgba(46, 62, 68, 0.14);
  --line-strong: rgba(46, 62, 68, 0.28);
  --line-contrast: rgba(253, 244, 227, 0.18);

  --accent: #b59357;
  --accent-ink: #2e3e44;
  --accent-on: #2e3e44;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.16);
  --shadow-contrast: 0 40px 90px rgba(0, 0, 0, 0.45);

  /* Structure */
  --radius: 4px;
  --radius-lg: 10px;
  --content-max: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 9vw, 148px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --brand-mark: url("assets/brand/salmast-logo-mark.svg");
}

:root[lang="hy"] {
  --font-display: "DejaVu Sans", "Noto Sans Armenian", "Source Sans 3", Arial, sans-serif;
  --font-body: "DejaVu Sans", "Noto Sans Armenian", "Source Sans 3", Arial, sans-serif;
}

/* ---------- Reset / base ------------------------------------------------- */
* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

main { overflow: clip; }

@supports not (overflow: clip) {
  main { overflow: hidden; }
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  overflow-wrap: break-word;
  text-wrap: balance;
  hyphens: none;
}

p { margin: 0; overflow-wrap: break-word; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

button:disabled { cursor: not-allowed; opacity: 0.55; }

button, a { -webkit-tap-highlight-color: transparent; }

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

::selection { background: var(--accent); color: var(--accent-on); }

/* ---------- Shared layout ------------------------------------------------ */
.shell,
main > section > .section-inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main > section {
  padding-block: var(--section-y);
  position: relative;
}

.section-inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Editorial eyebrow / kicker */
.eyebrow,
.hero-kicker,
.modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--accent);
}

/* Section heading block */
.section-heading {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

.section-heading h2 {
  font-size: clamp(32px, 5.2vw, 58px);
  margin-top: 18px;
}

.section-heading p {
  margin-top: 20px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Section index number (uses data-section) */
main > section[data-section] > .section-inner > .section-heading {
  position: relative;
}

main > section[data-section]::before {
  content: attr(data-section);
  position: absolute;
  top: clamp(28px, 4vw, 56px);
  right: var(--gutter);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  opacity: 0.7;
}

/* ---------- Buttons ------------------------------------------------------ */
.primary-btn,
.secondary-btn,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease),
    color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}

.primary-btn {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--accent-ink);
  color: var(--accent-on);
}

.secondary-btn {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.secondary-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.primary-btn.full,
.secondary-btn.full { width: 100%; }

/* Text link with underline sweep */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.text-link::after { content: "→"; transition: transform 0.3s var(--ease); }
.text-link:hover { border-color: var(--accent); }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Header ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(140px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
  min-height: 78px;
  padding: 12px clamp(20px, 3.4vw, 48px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.brand { display: inline-flex; align-items: center; min-width: 0; }

.brand-logo {
  width: clamp(150px, 13vw, 194px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  gap: clamp(16px, 2.2vw, 36px);
}

.main-nav > a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.main-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.main-nav > a:hover { color: var(--ink); }
.main-nav > a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  min-width: 0;
  gap: clamp(8px, 1vw, 14px);
}

.header-contact { display: none; }

@media (min-width: 1201px) {
  .header-contact {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
    color: var(--ink);
    white-space: nowrap;
    margin-right: 8px;
  }
  .header-contact strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.02em;
  }
  .header-contact > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ink-soft);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.25s var(--ease);
  }
  .header-contact svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
  }
  .header-contact:hover > span { color: var(--accent-ink); }
}

@media (min-width: 1201px) and (max-width: 1320px) {
  .site-header { padding-inline: 24px; gap: 14px; }
  .brand-logo { width: 145px; }
  .main-nav { gap: 16px; }
  .main-nav > a { font-size: 13px; }
  .header-actions { gap: 8px; }
}

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  padding: 5px 11px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.lang-switch button.is-active {
  color: var(--accent-on);
  background: var(--ink);
}
.lang-switch button:not(.is-active):hover { color: var(--ink); }

.lang-dropdown {
  position: relative;
  flex-shrink: 0;
}

.lang-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 58px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.lang-dropdown__trigger:hover,
.lang-dropdown.is-open .lang-dropdown__trigger {
  color: var(--accent-ink);
  border-color: var(--accent);
  background: var(--surface);
}

.lang-dropdown__trigger svg {
  width: 10px;
  height: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.lang-dropdown.is-open .lang-dropdown__trigger svg { transform: rotate(180deg); }

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 20;
  width: 154px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform-origin: top right;
}

.lang-dropdown__menu:not([hidden]) { animation: language-menu-in 0.2s var(--ease) both; }

.lang-dropdown__menu button {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink-soft);
  text-align: left;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.lang-dropdown__menu button span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.lang-dropdown__menu button small { font-size: 12px; }

.lang-dropdown__menu button:hover,
.lang-dropdown__menu button:focus-visible { color: var(--ink); background: var(--bg-2); }
.lang-dropdown__menu button.is-active { color: var(--accent-ink); background: var(--bg-2); }

@keyframes language-menu-in {
  from { opacity: 0; transform: translateY(-5px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lang-dropdown__menu:not([hidden]) { animation: none; }
  .lang-dropdown__trigger svg { transition: none; }
}

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.5s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent-ink); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

.header-cta { padding: 12px 22px; }
.header-cta {
  background: var(--accent-ink);
  color: var(--accent-on);
}
.header-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  translate: -50% 0;
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav-tools { display: none; }

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px) var(--section-y);
}
.hero .section-inner,
.hero {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  grid-template-areas:
    "copy media"
    "facts facts";
  column-gap: clamp(36px, 5vw, 84px);
  row-gap: clamp(30px, 4vw, 46px);
  align-items: start;
}

.hero-copy { grid-area: copy; align-self: center; max-width: 620px; }

.hero-copy h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.06;
  margin-top: 22px;
  letter-spacing: -0.02em;
}
.hero-copy h1 .accent { color: var(--accent-ink); font-style: italic; }

.hero-lead {
  margin-top: 26px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Hero trust line */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.hero-trust:hover { color: var(--ink); }
.hero-trust__rating {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
}
.hero-trust__text {
  position: relative;
  padding-left: 13px;
}
.hero-trust__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 13px;
  background: var(--line-strong);
  translate: 0 -50%;
}

/* Hero media collage */
.hero-media {
  grid-area: media;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  align-self: stretch;
}
.hero-main {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--contrast-bg);
}
.hero-small {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero-small-b { aspect-ratio: 3 / 4; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 64px;
  height: 64px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0.5;
  pointer-events: none;
}

/* Hero facts strip */
.hero-facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
  margin: 8px 0 0;
  padding-top: 18px;
  counter-reset: hero-fact;
}
.hero-facts > div {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 148px;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2vw, 28px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  counter-increment: hero-fact;
}
.hero-facts > div::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 58px;
  height: 3px;
  background: var(--accent);
}
.hero-facts > div::after {
  content: "0" counter(hero-fact);
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  opacity: 0.62;
}
.hero-facts dt {
  max-width: calc(100% - 34px);
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-facts .hero-fact__title {
  max-width: 13ch;
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.06;
}
.hero-facts dd {
  margin: auto 0 0;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.35;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- Section CTA -------------------------------------------------- */
.section-cta {
  margin-top: clamp(36px, 4vw, 58px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.section-cta p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 48ch;
  flex: 1 1 320px;
}
.section-cta .primary-btn,
.section-cta .secondary-btn { flex-shrink: 0; }

/* ---------- Furniture styles -------------------------------------------- */
.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.style-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.style-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.style-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.style-card:hover > img { transform: scale(1.04); }
.style-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2vw, 28px);
  flex: 1;
}
.style-card__body h3 {
  font-size: clamp(22px, 2vw, 28px);
}
.style-card__body p {
  font-size: 15px;
  color: var(--ink-soft);
  flex: 1;
}
.style-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.style-card__tag::after { content: "→"; transition: transform 0.3s var(--ease); }
.style-card:hover .style-card__tag::after { transform: translateX(4px); }

/* ---------- Featured ----------------------------------------------------- */
.featured-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
}
.featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.featured-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.featured-card--large img { aspect-ratio: 3 / 3.4; }
.featured-card > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2vw, 30px);
  flex: 1;
}
.featured-card span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.featured-card h3 { font-size: clamp(20px, 1.7vw, 26px); }
.featured-card p { font-size: 15px; color: var(--ink-soft); flex: 1; }
.featured-card a {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  gap: 8px;
}
.featured-card a::after { content: "→"; transition: transform 0.3s var(--ease); }
.featured-card:hover a::after { transform: translateX(4px); }

/* ---------- Materials ---------------------------------------------------- */
.materials-layout {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.materials-copy { display: flex; flex-direction: column; }
.materials-copy article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.materials-copy article:last-child { border-bottom: 1px solid var(--line); }
.materials-copy article span {
  grid-row: span 2;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--accent-ink);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.materials-copy h3 { font-size: clamp(19px, 1.5vw, 24px); }
.materials-copy p { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
.materials-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.materials-media img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.materials-media img:first-child { aspect-ratio: 3 / 4; grid-row: span 2; }
.materials-media img:last-child { aspect-ratio: 4 / 3; margin-top: 40px; }

/* ---------- Process journey -------------------------------------------- */
.process-section { background: var(--bg); }
.process-heading {
  margin-inline: auto;
  text-align: center;
}
.process-heading .eyebrow { justify-content: center; }
.process-heading .eyebrow::before { display: none; }
.process-heading > p:last-child { margin-inline: auto; }
.process-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}
.process-card { min-width: 0; text-align: center; }
.process-card__media {
  position: relative;
  margin-top: 23px;
}
.process-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.03;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.process-card__media span {
  position: absolute;
  left: 50%;
  top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  translate: -50% -50%;
  background: var(--accent);
  color: var(--accent-on);
  border: 5px solid var(--bg);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.process-card h3 {
  margin-top: 24px;
  font-size: clamp(19px, 1.55vw, 23px);
}
.process-card p {
  max-width: 29ch;
  margin: 10px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.process-cta { justify-content: center; }

/* ---------- Brief -------------------------------------------------------- */
.brief-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.brief-photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.brief-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.brief-photo figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(18px, 2vw, 26px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  color: #fdf4e3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brief-photo figcaption strong { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.brief-photo figcaption span { font-size: 14px; color: rgba(253, 244, 227, 0.82); }
.brief-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 40px;
}
.brief-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.brief-list article > span {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
}
.brief-list h3 { font-size: 19px; }
.brief-list p { margin-top: 8px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Portfolio ---------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-bar button {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.filter-bar button:hover { border-color: var(--accent); color: var(--ink); }
.filter-bar button.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-item { display: flex; position: relative; }
.portfolio-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.portfolio-card__media { position: relative; }
.portfolio-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.portfolio-card__count {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fdf4e3;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  pointer-events: none;
}
.portfolio-card__zoom {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fdf4e3;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.portfolio-item:hover .portfolio-card__zoom,
.portfolio-item:focus-within .portfolio-card__zoom {
  opacity: 1;
  transform: none;
}
.portfolio-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
}
.portfolio-card__body h3 { font-size: 21px; }
.portfolio-card__body > p {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
  text-transform: uppercase;
  font-weight: 600;
}

/* Hover rail: extra photos pop out beside the card (desktop pointers only).
   The card itself never moves; an elevated panel (::before) grows around it
   and the thumb rail lives in the panel's overhang. */
.portfolio-card__rail { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 721px) {
  .portfolio-item.has-rail::before {
    content: "";
    position: absolute;
    inset: -14px -14px -14px -88px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: calc(var(--radius-lg) + 6px);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease);
  }
  .portfolio-item.has-rail.rail-right::before { inset: -14px -88px -14px -14px; }
  .portfolio-item.has-rail:hover,
  .portfolio-item.has-rail:focus-within { z-index: 30; }
  /* When active, the panel becomes a solid pointer surface that bridges the
     card and its overhanging rail — so travelling from the card to a thumb
     never crosses onto the neighbour underneath and steals the hover. */
  .portfolio-item.has-rail:hover::before,
  .portfolio-item.has-rail:focus-within::before { opacity: 1; pointer-events: auto; }
  .portfolio-item.has-rail .portfolio-card { position: relative; z-index: 1; }
  .portfolio-item.has-rail:hover .portfolio-card,
  .portfolio-item.has-rail:focus-within .portfolio-card {
    transform: none;
    box-shadow: none;
    border-color: transparent;
  }

  .portfolio-card__rail {
    position: absolute;
    top: 0;
    left: -74px;
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  }
  .portfolio-item.rail-right .portfolio-card__rail {
    left: auto;
    right: -74px;
    transform: translateX(-8px);
  }
  .portfolio-item:hover .portfolio-card__rail,
  .portfolio-item:focus-within .portfolio-card__rail {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .portfolio-card__rail button {
    position: relative;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    transition: border-color 0.2s var(--ease);
  }
  .portfolio-card__rail button img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }
  .portfolio-card__rail button:hover { border-color: var(--accent); }
  .portfolio-card__rail button.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
  }
  .portfolio-card__more {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fdf4e3;
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
  }
}

.portfolio-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }

/* ---------- Calculator --------------------------------------------------- */
.calculator-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.calculator-section > .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.calculator-copy {
  grid-column: 1;
  grid-row: 1;
}
.calculator-form {
  grid-column: 1;
  grid-row: 2;
}
.calculator-copy h2 { font-size: clamp(28px, 4vw, 46px); }
.calculator-copy > p { margin-top: 18px; color: var(--ink-soft); max-width: 72ch; }
.zigzag-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--zigzag-ink);
}
.zigzag-brand svg { width: 48px; height: 48px; flex: 0 0 auto; }
.zigzag-brand span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.calculator-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(24px, 3vw, 38px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.calculator-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.calculator-form label.full,
.calculator-form .full { grid-column: 1 / -1; }
.form-field-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  line-height: 1.25;
}
.form-heading-icon {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--accent-ink);
  background: currentColor;
  -webkit-mask: var(--form-heading-icon) center / contain no-repeat;
  mask: var(--form-heading-icon) center / contain no-repeat;
  opacity: 0.82;
}
.form-heading-icon--name { --form-heading-icon: url("assets/icons/lucide/user-round.svg"); }
.form-heading-icon--zone { --form-heading-icon: url("assets/icons/lucide/map-pin.svg"); }
.form-heading-icon--style { --form-heading-icon: url("assets/icons/lucide/palette.svg"); }
.form-heading-icon--phone { --form-heading-icon: url("assets/icons/lucide/phone.svg"); }
.form-heading-icon--extras { --form-heading-icon: url("assets/icons/lucide/sparkles.svg"); }
.form-heading-icon--comment { --form-heading-icon: url("assets/icons/lucide/message-square-text.svg"); }
.form-heading-icon--attachment { --form-heading-icon: url("assets/icons/lucide/paperclip.svg"); }
.calculator-form input[type="text"],
.calculator-form input[type="tel"],
.calculator-form textarea,
.calculator-form select {
  padding: 13px 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.calculator-form input:focus,
.calculator-form textarea:focus,
.calculator-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 147, 87, .22);
}
.calculator-form textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.5;
}
.style-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.style-options legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.style-options__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.calculator-form .style-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}
.style-option input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.style-option__card {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 8px 5px 8px 22px;
  overflow: hidden;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.2;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.style-option__card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(181, 147, 87, .12);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.28s var(--ease);
}
.style-option__card::after {
  content: "✓";
  position: absolute;
  left: 8px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: transparent;
  font-size: 11px;
  line-height: 1;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  transform: translateY(-50%);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.22s var(--ease);
}
.style-option input:checked + .style-option__card {
  color: var(--ink);
  border-color: var(--accent);
}
.style-option input:checked + .style-option__card::before { transform: scaleX(1); }
.style-option input:checked + .style-option__card::after {
  color: var(--accent-on);
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-50%) scale(1.05);
}
.style-option input:focus-visible + .style-option__card {
  box-shadow: 0 0 0 3px rgba(181, 147, 87, .22);
}
.style-option:active .style-option__card { transform: scale(0.98); }
.dimension-sliders {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.dimension-sliders legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.dimension-sliders__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.dimension-slider {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px !important;
}
.dimension-slider + .dimension-slider { margin-top: 0; }
.dimension-slider output {
  min-width: 48px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.dimension-slider input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.dimension-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0 var(--range-progress), var(--line-strong) var(--range-progress) 100%);
}
.dimension-slider input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
}
.dimension-slider input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}
.dimension-slider input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  appearance: none;
  border: 3px solid var(--surface-2);
  border-radius: 50%;
  background: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent);
}
.dimension-slider input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 3px solid var(--surface-2);
  border-radius: 50%;
  background: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent);
}
.dimension-slider input[type="range"]:focus-visible { outline: none; }
.dimension-slider input[type="range"]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px rgba(181, 147, 87, .22);
}
.dimension-slider input[type="range"]:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px rgba(181, 147, 87, .22);
}
.dimension-slider:focus-within output { transform: translateY(-2px); color: var(--accent-ink); }
.dimension-slider output { transition: color 0.2s var(--ease), transform 0.2s var(--ease); }
.dimension-slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.dimension-slider input[type="range"]:active::-moz-range-thumb { transform: scale(1.12); }
.furniture-items__picker[open] .furniture-items__options {
  animation: picker-in 0.24s var(--ease) both;
}
@keyframes picker-in {
  from { opacity: 0; transform: translateY(-6px); }
}
.form-status:not(:empty) { animation: form-status-in 0.35s var(--ease) both; }
@keyframes form-status-in {
  from { opacity: 0; transform: translateY(6px); }
}
.furniture-items {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.furniture-items legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.furniture-items__picker {
  position: relative;
}
.furniture-items__picker summary {
  min-height: 48px;
  padding: 13px 44px 13px 15px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
  position: relative;
}
.furniture-items__picker summary::-webkit-details-marker { display: none; }
.furniture-items__picker summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
}
.furniture-items__picker[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.furniture-items__picker summary:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 147, 87, .22);
}
.furniture-items__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
  max-height: 270px;
  overflow-y: auto;
  margin-top: 8px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.furniture-items__options label {
  min-width: 0;
  min-height: 40px;
  padding: 8px;
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
}
.furniture-items__options label:hover { background: var(--surface-2); }
.furniture-items__options input { flex: 0 0 auto; margin-top: 1px; }
.furniture-items > p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-faint);
}
@media (max-width: 767px) {
  .furniture-items__options { grid-template-columns: 1fr; }
}
.option-group {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.option-group legend {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 6px;
}
.option-group label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink);
}
.calculator-form input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-ink);
}
.attachment-field {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
}
.attachment-field__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.attachment-field__control {
  min-width: 0;
  min-height: 48px;
  padding: 7px;
  flex-direction: row !important;
  align-items: center;
  gap: 12px !important;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.attachment-field__control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181, 147, 87, .22);
}
.attachment-field__control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.attachment-field__button {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: var(--accent-on);
  background: var(--accent-ink);
  border-radius: calc(var(--radius) - 4px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.attachment-field__name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-field small {
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.4;
}
.privacy-consent {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-weight: 500;
  color: var(--ink-soft);
}
.privacy-consent a { color: var(--accent-ink); border-bottom: 1px solid var(--line-strong); }
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.form-status { font-size: 14px; color: var(--ink-soft); min-height: 1em; }
.form-status.is-error { color: #b59357; }
.form-status.is-success { color: var(--olive); }
.form-result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.form-result strong { font-family: var(--font-display); font-size: 20px; }

/* ---------- About -------------------------------------------------------- */
.about-section > .section-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about-section h2 { font-size: clamp(28px, 4vw, 48px); }
.about-section > .section-inner > div:first-child p { margin-top: 18px; color: var(--ink-soft); }
.process-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.process-list > div {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 24px;
  background: var(--surface);
}
.process-list span {
  font-family: var(--font-body);
  font-size: 26px;
  color: var(--accent-ink);
}
.process-list p { font-size: 15.5px; font-weight: 500; }

/* ---------- FAQ ---------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 23px);
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 300;
  color: var(--accent-ink);
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 4px 26px;
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 74ch;
}

/* ---------- Reviews / social proof -------------------------------------- */
.reviews-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.review-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.review-stat strong {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.review-stat__star { color: var(--accent-ink); margin-left: 3px; }
.review-stat > span { font-size: 14px; color: var(--ink-soft); }

.testimonials-grid {
  columns: 320px 3;
  column-gap: 18px;
}
.testimonial-card {
  break-inside: avoid;
  margin: 0 0 18px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.testimonial-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.testimonial-card::before {
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 0.6;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 10px;
}
.testimonial-card__quote {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink);
}
.testimonial-card__meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.testimonial-card__name { font-weight: 600; font-size: 15px; color: var(--ink); }
.testimonial-card__src {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.reviews-platforms {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.reviews-platforms__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.reviews-platforms a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.reviews-platforms a:hover { color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- CTA (contrast band) ----------------------------------------- */
.cta-section {
  background: var(--contrast-bg);
  color: var(--on-contrast);
  overflow: hidden;
}
.cta-section > .section-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-mark) no-repeat right -60px center / 380px;
  opacity: 0.05;
  filter: none;
  pointer-events: none;
}
.cta-section h2 {
  color: var(--on-contrast);
  font-size: clamp(30px, 4.5vw, 56px);
  max-width: 18ch;
}
.cta-section p { margin-top: 16px; color: var(--on-contrast-soft); max-width: 42ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; position: relative; }
.cta-section .primary-btn { background: var(--brass-bright); color: #000000; }
.cta-section .primary-btn:hover { background: #fff; }
.cta-section .secondary-btn { color: var(--on-contrast); border-color: var(--line-contrast); }
.cta-section .secondary-btn:hover { border-color: var(--brass-bright); color: var(--brass-bright); }

/* ---------- Contacts ----------------------------------------------------- */
.contact-section > .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px) clamp(36px, 6vw, 72px);
  align-items: start;
}
.contact-section > .section-inner > * { min-width: 0; }
.contact-section h2 { font-size: clamp(28px, 4vw, 46px); margin-top: 18px; }
.contact-invite {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 44ch;
}
.contact-address {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.contact-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.contact-photo :is(img, video) {
  width: 100%;
  aspect-ratio: 4 / 3.3;
  object-fit: cover;
}
.working-hours {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.working-hours strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.working-hours span { color: var(--ink-soft); }
.contact-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}
.contact-action--text,
.contact-social {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.contact-action--text {
  padding: 15px 18px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
}
.contact-socials {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-social {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-social svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}
.contact-social--pending { cursor: default; }
.contact-action--text:hover,
.contact-social:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-2px);
}
.contact-social--pending:hover {
  border-color: var(--line);
  color: inherit;
  transform: none;
}
.contact-map {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.contact-map iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 340px;
  border: 0;
  filter: none;
}

/* ---------- Footer ------------------------------------------------------- */
.site-footer {
  background: var(--contrast-bg);
  color: var(--on-contrast);
  padding-block: clamp(56px, 7vw, 92px) 40px;
  overflow-x: hidden;
}
.site-footer__inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px clamp(30px, 5vw, 70px);
}
.site-footer__inner > * { min-width: 0; }
.site-footer__brand { max-width: 320px; }
.site-footer .brand-logo {
  width: clamp(190px, 17vw, 260px);
  max-height: none;
  filter: none;
  opacity: 0.94;
}
.site-footer__brand p { margin-top: 18px; color: var(--on-contrast-soft); font-size: 14.5px; }
.site-footer__nav { display: flex; flex-direction: column; gap: 12px; }
.site-footer__nav a { color: var(--on-contrast-soft); font-size: 15px; transition: color 0.25s var(--ease); }
.site-footer__nav a:hover { color: var(--brass-bright); }
.site-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.site-footer__contact a,
.site-footer__contact span {
  color: var(--on-contrast-soft);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.site-footer__contact a:hover { color: var(--brass-bright); }
.site-footer__legal {
  grid-column: 1 / -1;
  margin-top: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--line-contrast);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--on-contrast-soft);
}
.site-footer__legal a {
  color: var(--brass-bright);
  border-bottom: 1px solid rgba(181, 147, 87, 0.45);
}

/* ---------- Mobile sticky CTA ------------------------------------------- */
.mobile-cta {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  z-index: 55;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.mobile-cta a:first-child { border: 1px solid var(--line-strong); color: var(--ink); }
.mobile-cta a:last-child { background: var(--accent-ink); color: var(--accent-on); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Media modal -------------------------------------------------- */

body.modal-open { overflow: hidden; }
body.modal-open .mobile-cta,
body.modal-open .contact-widget { visibility: hidden; pointer-events: none; }
.media-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px 20px;
}
.media-modal[hidden] { display: none; }
.media-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}
.media-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
  width: min(1480px, calc(100vw - 40px));
  height: min(900px, calc(100dvh - 32px));
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--contrast-bg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-contrast);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.modal-close:hover { background: var(--accent-ink); }
.modal-close svg,
.modal-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.media-modal__gallery {
  min-width: 0;
  min-height: 0;
  padding: 34px 28px 26px;
  background: var(--contrast-bg);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
}
.media-modal__image-wrap {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: grid;
  place-items: center;
  touch-action: pan-y;
}
.media-modal__image-wrap img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  cursor: zoom-in;
}
.media-modal__image-error {
  max-width: 28ch;
  padding: 24px;
  text-align: center;
  color: var(--on-contrast-soft);
}
.modal-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-contrast);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.modal-nav:hover { background: var(--accent-ink); }
.modal-nav--prev { left: 18px; }
.modal-nav--next { right: 18px; }
.media-modal__counter {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 60px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--on-contrast);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(10px);
}
.media-thumbs {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(82px, 9vw, 118px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  padding: 2px 2px 6px;
}
.media-thumbs button {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: var(--contrast-surface);
  opacity: 0.62;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.media-thumbs button:hover { opacity: 0.88; }
.media-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.media-thumbs button.is-active {
  border-color: var(--brass-bright);
  opacity: 1;
}
.media-modal__content {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--surface);
}
.media-modal__scroll {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(34px, 4vw, 64px) clamp(26px, 3vw, 48px) 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.media-modal__header { padding-right: 34px; }
.media-modal__header h2 {
  margin-top: 8px;
  font-size: clamp(34px, 3.2vw, 56px);
  line-height: 0.98;
}
.media-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.media-modal__tags:empty { display: none; }
.media-modal__tag {
  padding: 7px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.media-modal__draft {
  width: fit-content;
  margin-top: 12px;
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.media-modal__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 0;
}
.media-modal__facts > div { display: grid; gap: 2px; }
.media-modal__facts dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.media-modal__facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.media-modal__description {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.media-modal__description h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.media-modal__description p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.media-modal__info-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.project-info-card {
  min-width: 0;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.project-info-card summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.project-info-card summary::-webkit-details-marker { display: none; }
.project-info-card__chevron {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: 45deg;
  transition: rotate 0.2s var(--ease);
}
.project-info-card[open] .project-info-card__chevron { rotate: 225deg; }
.project-info-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}
.project-info-card p {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}
.media-modal__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 10px;
  padding: 18px clamp(26px, 3vw, 48px) calc(18px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.media-modal__actions .primary-btn,
.media-modal__actions .secondary-btn {
  min-width: 0;
  min-height: 54px;
  padding: 14px 16px;
  font-size: 12px;
}
.media-modal__actions .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.media-modal__actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 768px) {
  .project-info-card { display: block; }
  .project-info-card summary { pointer-events: none; }
  .project-info-card__chevron { display: none; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .media-modal__panel { grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr); }
  .media-modal__gallery { padding: 26px 20px 20px; }
  .media-modal__info-grid { grid-template-columns: 1fr; }
  .media-modal__actions { grid-template-columns: 1fr; }
  .media-modal__actions .primary-btn,
  .media-modal__actions .secondary-btn { min-height: 48px; }
}

@media (max-width: 767px) {
  .media-modal { padding: 0; place-items: stretch; }
  .media-modal__backdrop { display: none; }
  .media-modal__panel {
    display: block;
    width: 100%;
    height: 100dvh;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
  }
  .modal-close {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    right: 12px;
    width: 46px;
    height: 46px;
  }
  .media-modal__gallery {
    padding: 0 0 14px;
    display: grid;
    grid-template-rows: auto auto;
    gap: 12px;
  }
  .media-modal__image-wrap {
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: 0;
  }
  .modal-nav { display: none; }
  .media-modal__counter { right: 12px; bottom: 12px; }
  .media-thumbs {
    grid-auto-columns: 96px;
    gap: 8px;
    padding: 0 12px 4px;
  }
  .media-modal__content { display: block; }
  .media-modal__scroll {
    overflow: visible;
    padding: 26px 18px 24px;
  }
  .media-modal__header { padding-right: 0; }
  .media-modal__header h2 {
    margin-top: 6px;
    font-size: clamp(34px, 11vw, 48px);
  }
  .media-modal__tags { margin-top: 18px; }
  .media-modal__facts { gap: 10px 18px; margin-top: 20px; }
  .media-modal__description { margin-top: 22px; padding-top: 20px; }
  .media-modal__info-grid { grid-template-columns: 1fr; gap: 6px; margin-top: 20px; }
  .project-info-card { padding: 0; border-radius: 8px; }
  .project-info-card summary { min-height: 50px; padding: 13px 16px; }
  .project-info-card ul,
  .project-info-card p { margin: 0; padding: 0 34px 16px 34px; }
  .project-info-card ul { padding-left: 48px; }
  .media-modal__actions {
    position: sticky;
    z-index: 4;
    bottom: 0;
    grid-template-columns: minmax(0, 1fr) 54px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  }
  .media-modal__actions .primary-btn { font-size: 11px; }
  .media-modal__actions .secondary-btn {
    width: 54px;
    padding: 0;
  }
  .media-modal__actions .secondary-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .media-modal__actions .secondary-btn svg { width: 22px; height: 22px; }
}

/* ---------- Full-screen image viewer ------------------------------------ */
.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 180;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.97);
  color: #fdf4e3;
  touch-action: none;
  user-select: none;
}
.image-viewer[hidden] { display: none; }
.image-viewer__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.image-viewer__stage img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 40px);
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  transform: translate3d(var(--viewer-x, 0px), var(--viewer-y, 0px), 0) scale(var(--viewer-scale, 1));
  transform-origin: center;
  will-change: transform;
  cursor: zoom-in;
  -webkit-user-drag: none;
}
.image-viewer.is-zoomed .image-viewer__stage img { cursor: grab; }
.image-viewer.is-dragging .image-viewer__stage img { cursor: grabbing; }
.image-viewer__error {
  max-width: 30ch;
  padding: 24px;
  color: rgba(253, 244, 227, 0.7);
  text-align: center;
}
.image-viewer__close,
.image-viewer__nav,
.image-viewer__toolbar {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.76);
  color: #fdf4e3;
  backdrop-filter: blur(14px);
}
.image-viewer__close,
.image-viewer__nav,
.image-viewer__toolbar button {
  display: grid;
  place-items: center;
}
.image-viewer__close {
  top: calc(16px + env(safe-area-inset-top));
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
}
.image-viewer__nav {
  top: 50%;
  translate: 0 -50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
}
.image-viewer__nav--prev { left: 18px; }
.image-viewer__nav--next { right: 18px; }
.image-viewer__close:hover,
.image-viewer__nav:hover,
.image-viewer__toolbar button:hover { background: rgba(181, 147, 87, 0.28); }
.image-viewer__close svg,
.image-viewer__nav svg,
.image-viewer__toolbar svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.image-viewer__toolbar {
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  translate: -50% 0;
  display: grid;
  grid-template-columns: 48px minmax(68px, auto) 48px;
  overflow: hidden;
  border-radius: 999px;
}
.image-viewer__toolbar button {
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  color: inherit;
}
.image-viewer__toolbar button + button { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.image-viewer__zoom-value {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.image-viewer__counter {
  position: absolute;
  z-index: 3;
  top: calc(20px + env(safe-area-inset-top));
  left: 20px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.76);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(14px);
}

@media (max-width: 767px) {
  .image-viewer__stage img {
    max-width: 100vw;
    max-height: calc(100dvh - 104px);
  }
  .image-viewer__close {
    top: calc(10px + env(safe-area-inset-top));
    right: 10px;
    width: 46px;
    height: 46px;
  }
  .image-viewer__counter {
    top: calc(13px + env(safe-area-inset-top));
    left: 12px;
  }
  .image-viewer__nav {
    width: 44px;
    height: 44px;
  }
  .image-viewer__nav--prev { left: 8px; }
  .image-viewer__nav--next { right: 8px; }
  .image-viewer__toolbar { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* ---------- Legal / utility pages --------------------------------------- */
.legal-main,
.not-found-main {
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(52px, 8vw, 104px) var(--gutter) clamp(72px, 9vw, 128px);
}
.legal-main > section { margin-bottom: 22px; }
.legal-main h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 22px; }
.legal-main > section:first-child p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  font-size: 17px;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 16px;
}
.legal-card h2 { font-size: clamp(20px, 2vw, 26px); margin-bottom: 14px; }
.legal-card p { color: var(--ink-soft); margin-bottom: 12px; }
.legal-card p:last-child { margin-bottom: 0; }
.legal-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}
.legal-card a { color: var(--accent-ink); border-bottom: 1px solid var(--line-strong); }

.not-found-main {
  display: grid;
  place-items: center;
  min-height: 72vh;
  text-align: center;
}
.not-found-panel {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.not-found-code {
  font-family: var(--font-display);
  font-size: clamp(76px, 14vw, 150px);
  line-height: 1;
  color: var(--accent-ink);
}
.not-found-panel h1 { font-size: clamp(28px, 4vw, 44px); }
.not-found-panel p { color: var(--ink-soft); }
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
}

/* ---------- Motion system (scoped to JS via .reveal-ready) -------------- */

/* Reading progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), var(--brass-bright));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 80;
  pointer-events: none;
}

/* Anchor offset under sticky header */
main > section[id] { scroll-margin-top: 92px; }

/* Smart header: hide on scroll down, reveal on scroll up */
.site-header {
  transition: transform 0.45s var(--ease), background-color 0.5s var(--ease),
    border-color 0.5s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.header-hidden { transform: translateY(-100%); }
.site-header.header-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }

/* Tactile press on buttons */
.primary-btn:active,
.secondary-btn:active,
.header-cta:active { transform: translateY(0) scale(0.985); }

/* Base reveal: single blocks */
.reveal-ready [data-reveal]:not([data-stagger]) {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-ready [data-reveal]:not([data-stagger]).is-visible { opacity: 1; transform: none; }

/* Editorial reveal variants keep the page rhythm varied without splitting text. */
.reveal-ready [data-reveal="heading"] h2 {
  clip-path: inset(0 0 100% 0);
  transform: translateY(0.42em);
  transition: clip-path 0.9s var(--ease) 0.08s, transform 0.9s var(--ease) 0.08s;
}
.reveal-ready [data-reveal="heading"].is-visible h2 {
  clip-path: inset(-8% -2% -12% -2%);
  transform: none;
}
.reveal-ready [data-reveal="form"] {
  transform: translateX(34px);
}
.reveal-ready [data-reveal="form"].is-visible { transform: none; }
.reveal-ready [data-reveal="promo"] {
  clip-path: inset(0 0 22% 0 round var(--radius-lg));
  transform: translateY(22px);
}
.reveal-ready [data-reveal="promo"].is-visible {
  clip-path: inset(0 round var(--radius-lg));
  transform: none;
}
.reveal-ready [data-reveal="media"] {
  clip-path: inset(8% 7% 8% 7% round var(--radius-lg));
  transition: opacity 0.85s var(--ease), transform 1s var(--ease), clip-path 1.05s var(--ease);
}
.reveal-ready [data-reveal="media"].is-visible {
  clip-path: inset(0 round var(--radius-lg));
}

/* Staggered groups: children cascade in (--i set by JS) */
.reveal-ready [data-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 75ms);
}
.reveal-ready [data-stagger].is-visible > * { opacity: 1; transform: none; }
.reveal-ready [data-stagger="fan"] > *:nth-child(odd) { transform: translate(-22px, 22px) rotate(-0.7deg); }
.reveal-ready [data-stagger="fan"] > *:nth-child(even) { transform: translate(22px, 22px) rotate(0.7deg); }
.reveal-ready [data-stagger="fan"].is-visible > *,
.reveal-ready [data-stagger="steps"].is-visible > * { transform: none; }
.reveal-ready [data-stagger="steps"] > * { transform: translateX(24px); }

/* Hero copy: inner cascade */
.reveal-ready .hero-copy > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-ready .hero-copy.is-visible > * { opacity: 1; transform: none; }
.reveal-ready .hero-copy.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-ready .hero-copy.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-ready .hero-copy.is-visible > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-ready .hero-copy.is-visible > *:nth-child(4) { transition-delay: 0.34s; }
.reveal-ready .hero-copy.is-visible > *:nth-child(5) { transition-delay: 0.44s; }

/* Hero media: soft scale-in, main first then smalls */
.reveal-ready .hero-media :is(img, video) {
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.9s var(--ease), transform 1.25s var(--ease);
}
.reveal-ready .hero-media.is-visible :is(img, video) { opacity: 1; transform: none; }
.reveal-ready .hero-media.is-visible .hero-small-a { transition-delay: 0.18s; }
.reveal-ready .hero-media.is-visible .hero-small-b { transition-delay: 0.3s; }

/* Section media: gentle scale settle (brand rule: 2-4% max) */
.reveal-ready :is(.materials-media, .brief-photo, .contact-photo)[data-reveal] :is(img, video) {
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}
.reveal-ready :is(.materials-media, .brief-photo, .contact-photo)[data-reveal].is-visible :is(img, video) { transform: none; }
.reveal-ready .materials-media[data-reveal].is-visible img:nth-child(2) { transition-delay: 0.12s; }

/* Standalone reveal images (e.g. proof photo) */
.reveal-ready :is(img, video)[data-reveal] { transform: translateY(26px) scale(1.03); }
.reveal-ready :is(img, video)[data-reveal].is-visible { transform: none; }

/* Eyebrow rule draws in */
.reveal-ready [data-reveal] .eyebrow::before,
.reveal-ready .hero-copy .eyebrow::before {
  width: 0;
  transition: width 0.7s var(--ease) 0.35s;
}
.reveal-ready [data-reveal].is-visible .eyebrow::before,
.reveal-ready .hero-copy.is-visible .eyebrow::before { width: 30px; }

/* Portfolio cards: cascade on render / filter / load-more */
.reveal-ready .portfolio-item[data-reveal] {
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal-ready .portfolio-item[data-reveal] .portfolio-card__media {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.95s var(--ease) calc(var(--i, 0) * 55ms);
}
.reveal-ready .portfolio-item:nth-child(even)[data-reveal] .portfolio-card__media {
  clip-path: inset(0 0 0 100%);
}
.reveal-ready .portfolio-item[data-reveal].is-visible .portfolio-card__media { clip-path: inset(0); }
.reveal-ready .portfolio-item[data-reveal] .portfolio-card__media img {
  transform: scale(1.045);
  transition: transform 1.1s var(--ease) calc(var(--i, 0) * 55ms);
}
.reveal-ready .portfolio-item[data-reveal].is-visible .portfolio-card__media img { transform: scale(1); }

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .hero-media[data-motion-tilt].is-visible {
    transform: perspective(1200px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
    transition: opacity 0.8s var(--ease), transform 0.35s var(--ease);
    transform-style: preserve-3d;
  }
  .hero-media[data-motion-tilt].is-tilting { transition-duration: 0.12s; }
}

/* FAQ: answer slides in on open */
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
}
.faq-list details[open] p { animation: faq-in 0.5s var(--ease); }

/* Reduced motion: everything visible, no movement */
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal],
  .reveal-ready [data-stagger] > *,
  .reveal-ready .hero-copy > *,
  .reveal-ready .hero-media :is(img, video),
  .reveal-ready :is(.materials-media, .brief-photo, .contact-photo)[data-reveal] :is(img, video),
  .reveal-ready :is(img, video)[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal-ready [data-reveal] .eyebrow::before { width: 30px; transition: none; }
  .faq-list details[open] p { animation: none; }
  .style-option__card,
  .dimension-slider output,
  .furniture-items__options,
  .form-status,
  .portfolio-card__media,
  .portfolio-card__media img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .style-option__card::before,
  .style-option__card::after { transition: none !important; }
  .style-option__card::before { transform: scaleX(0) !important; }
  .style-option input:checked + .style-option__card::before { transform: scaleX(1) !important; }
  .style-option__card::after { transform: translateY(-50%) !important; }
  .style-option input:checked + .style-option__card::after { transform: translateY(-50%) scale(1.05) !important; }
  .reveal-ready [data-reveal="heading"] h2,
  .reveal-ready [data-reveal="promo"],
  .reveal-ready [data-reveal="media"] {
    clip-path: none !important;
    transform: none !important;
  }
  .scroll-progress { display: none; }
  .site-header { transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease); }
  .site-header.header-hidden { transform: none; }
  .rail-dash,
  .rail-label { transition: none; }
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1200px) and (min-width: 901px) {
  .site-header { padding-inline: 20px; gap: 14px; }
  .brand-logo { width: 140px; }
  .main-nav { gap: 16px; }
  .main-nav > a { font-size: 13px; }
  .header-actions { gap: 8px; }
  .header-cta { padding: 11px 16px; }
}

@media (min-width: 901px) {
  .site-header { padding-inline: clamp(16px, 1.5vw, 24px); }
  .header-cta {
    padding: 9px 16px;
    font-size: 12px;
  }
  .lang-dropdown__trigger {
    min-width: 54px;
    height: 36px;
    gap: 6px;
    padding-inline: 10px;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  .theme-toggle svg { width: 16px; height: 16px; }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "media" "facts";
    row-gap: clamp(28px, 5vw, 44px);
  }
  .hero-copy { max-width: none; }
  .hero-media { grid-template-columns: 1fr 1fr; }
  .featured-layout { grid-template-columns: 1fr 1fr; }
  .featured-card--large { grid-column: 1 / -1; flex-direction: row; }
  .featured-card--large img { width: 46%; aspect-ratio: auto; }
  .process-journey { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .styles-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-areas: "media" "copy" "facts";
    padding-block: 26px 22px;
    row-gap: 22px;
  }
  .hero-media {
    grid-template-columns: 1fr;
  }
  .hero-small {
    display: none;
  }
  .main-nav {
    position: fixed;
    top: 78px;
    inset-inline: 0;
    bottom: 0;
    height: calc(100dvh - 78px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 4px;
    padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--bg);
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s var(--ease);
    overflow-y: auto;
    z-index: 40;
  }
  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav > a {
    width: 100%;
    font-family: var(--font-body);
    font-size: 26px;
    color: var(--ink);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    width: 100%;
    margin-bottom: 20px;
  }
  .theme-toggle--mobile {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }
  .theme-toggle--mobile svg { width: 17px; height: 17px; }
  .nav-toggle { display: block; }
  .header-cta,
  .header-actions .theme-toggle--desktop { display: none; }
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 14px;
  }
  .header-actions { gap: 8px; }
  .header-actions .lang-dropdown {
    display: block;
    z-index: 50;
  }
  .header-actions .lang-dropdown__trigger {
    min-width: 54px;
    height: 44px;
    padding-inline: 10px;
  }
  .header-actions .lang-dropdown__menu {
    top: calc(100% + 8px);
    z-index: 60;
  }
  .calculator-section > .section-inner,
  .about-section > .section-inner,
  .contact-section > .section-inner,
  .materials-layout,
  .brief-layout { grid-template-columns: 1fr; }
  .calculator-copy,
  .calculator-form {
    grid-column: auto;
    grid-row: auto;
  }
  .calculator-copy { order: 1; }
  .calculator-form { order: 2; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 66px; }
}

@media (max-width: 720px) {
  :root { --section-y: 56px; }
  body { font-size: 16px; }
  main > section:not(.hero) { padding-block: var(--section-y); }
  .process-card { text-align: left; }
  .process-card__media img { aspect-ratio: 16 / 10; }
  .process-card__media span { left: 28px; }
  .process-card h3 { margin-top: 20px; }
  .process-card p { max-width: none; margin-inline: 0; }
  .hero-actions,
  .portfolio-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .hero-actions .primary-btn,
  .hero-actions .secondary-btn,
  .portfolio-actions .primary-btn,
  .portfolio-actions .secondary-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
    font-size: 11px;
    line-height: 1.15;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .hero-actions { margin-top: 26px; }
  .filter-bar {
    gap: 7px;
    margin-bottom: 24px;
  }
  .filter-bar button {
    padding: 7px 11px;
    font-size: 12px;
    line-height: 1.15;
    letter-spacing: 0.02em;
  }
  .portfolio-actions { margin-top: 30px; }
  .contact-map iframe { height: 280px; }
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .site-footer__contact {
    align-items: flex-start;
    justify-self: start;
    text-align: left;
  }
  .site-footer__legal {
    max-width: 100%;
  }
  .cta-section > .section-inner { flex-direction: column; align-items: flex-start; }
  .featured-layout { grid-template-columns: 1fr; }
  .featured-card--large { flex-direction: column; }
  .featured-card--large img { width: 100%; aspect-ratio: 4 / 3; }
  .portfolio-grid,
  .styles-grid,
  .brief-list,
  .process-list,
  .reviews-stats,
  .contact-actions { grid-template-columns: 1fr; }
  .calculator-form { grid-template-columns: 1fr; }
  .process-journey { grid-template-columns: 1fr; gap: 38px; }
  .hero-facts { grid-template-columns: 1fr; gap: 20px; }
  .materials-media img:last-child { margin-top: 0; }
  main > section[data-section]::before { display: none; }
}

@media (max-width: 767px) {
  .style-options__grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .style-option__card {
    min-height: 50px;
    padding: 10px 42px;
    overflow-wrap: normal;
  }
  .style-option__card::after { left: 14px; }
}

@media (max-width: 420px) {
  :root { --gutter: 18px; }
  .hero {
    padding-block: 20px 16px;
    row-gap: 18px;
  }
  .hero-facts {
    padding-top: 24px;
    gap: 12px;
  }
  .hero-facts > div {
    min-height: 122px;
    padding: 20px;
  }
  .hero-facts > div::after { top: 18px; right: 18px; }
  .mobile-cta {
    gap: 8px;
    padding-inline: 12px;
  }
  .mobile-cta a {
    min-width: 0;
    padding-inline: 8px;
    font-size: 13px;
  }
  .filter-bar {
    gap: 6px;
  }
  .filter-bar button {
    padding: 6px 9px;
    font-size: 11px;
  }
  .hero-actions .primary-btn,
  .hero-actions .secondary-btn,
  .portfolio-actions .primary-btn,
  .portfolio-actions .secondary-btn {
    padding-inline: 6px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }
  .hero-media { grid-template-columns: 1fr; }
  .hero-small-b { display: none; }
}

.hero-actions {
  flex-wrap: nowrap;
  align-items: stretch;
  width: min(100%, 540px);
  gap: 10px;
}

.hero-actions .primary-btn,
.hero-actions .secondary-btn {
  min-width: 0;
  justify-content: center;
  text-align: center;
  white-space: normal;
  padding-inline: clamp(10px, 1.4vw, 24px);
  font-size: clamp(11px, 0.92vw, 14px);
}
.hero-actions .primary-btn { flex: 1.42 1 0; }
.hero-actions .secondary-btn { flex: 1 1 0; }

@media (max-width: 720px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
  }

}

@media (max-width: 380px) {
  .hero-actions { gap: 6px; }
  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    padding-inline: 12px;
    font-size: 10.5px;
    letter-spacing: 0.025em;
    white-space: normal;
  }
}

@media (min-width: 961px) {
  :root { --section-y: clamp(62px, 5vw, 88px); }

  #reviews .section-heading {
    margin-bottom: 22px;
  }

  #reviews .section-heading h2 {
    font-size: clamp(42px, 4.4vw, 64px);
    letter-spacing: -0.035em;
  }

  #reviews .section-heading p {
    max-width: 58ch;
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.5;
  }

  .review-stats {
    gap: 12px;
    margin-bottom: 18px;
  }

  .review-stat {
    min-height: 0;
    padding: 18px 20px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 6px 14px;
  }

  .review-stat strong {
    font-size: clamp(34px, 3.6vw, 48px);
  }

  .review-stat > span {
    font-size: 13.5px;
    line-height: 1.35;
  }

  .testimonials-grid {
    columns: auto;
    column-gap: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .testimonial-card {
    margin: 0;
    padding: 18px 20px;
    border-radius: 22px;
  }

  .testimonial-card::before {
    font-size: 34px;
    margin-bottom: 4px;
  }

  .testimonial-card__quote {
    font-size: 14.5px;
    line-height: 1.5;
  }

  .testimonial-card__meta {
    margin-top: 12px;
    padding-top: 12px;
  }

  .testimonial-card__name { font-size: 14px; }

  .testimonial-card__src {
    font-size: 11px;
  }
}

/* ---------- SALMAST official blue surfaces ------------------------------- */
.site-header,
.hero-facts,
.reviews-stats,
.testimonials-grid,
.process-journey,
.portfolio-section,
.site-footer {
  --bg: var(--brand-blue);
  --bg-2: var(--brand-blue-deep);
  --surface: var(--brand-blue-deep);
  --surface-2: var(--brand-blue-raised);
  --contrast-bg: var(--brand-blue);
  --contrast-surface: var(--brand-blue-deep);
  --ink: var(--brand-blue-on);
  --ink-soft: var(--brand-blue-on-soft);
  --ink-faint: rgba(253, 244, 227, 0.72);
  --on-contrast: var(--brand-blue-on);
  --on-contrast-soft: var(--brand-blue-on-soft);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --line-contrast: rgba(255, 255, 255, 0.18);
  --accent: var(--brand-gold);
  --accent-ink: var(--brand-gold-readable);
  --accent-on: var(--brand-gold-ink);
  --brass-bright: var(--brand-gold-readable);
}

/* 01 — header */
.site-header {
  background: rgba(46, 62, 68, .94);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}
.site-header .brand-logo {
  content: url("assets/brand/salmast-logo-beige.svg");
  filter: none;
  opacity: 0.96;
}
.site-header .header-cta {
  background: var(--brand-gold);
  color: var(--brand-gold-ink);
  border-color: var(--brand-gold);
}
.site-header .header-cta:hover { background: var(--brand-gold-readable); }
.site-header .lang-dropdown__trigger,
.site-header .theme-toggle,
.site-header .nav-toggle {
  background: rgba(255, 255, 255, 0.04);
}

/* 02 — hero facts */
.hero-facts {
  padding: 12px;
  background: var(--brand-blue);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--radius-lg) + 8px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
}
.hero-facts > div {
  background: linear-gradient(145deg, var(--brand-blue-deep), var(--brand-blue-raised));
  border-color: rgba(255, 255, 255, 0.14);
}

/* 03–04 — review facts and testimonials */
.reviews-stats,
.testimonials-grid {
  padding: 12px;
  background: var(--brand-blue);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
}
.review-stat,
.testimonial-card {
  background: var(--brand-blue-deep);
  border-color: rgba(255, 255, 255, 0.16);
}
.testimonial-card:hover { border-color: rgba(255, 255, 255, 0.3); }
.testimonial-card::before {
  color: var(--brand-gold-readable);
  opacity: 1;
}

/* 05 — portfolio */
.portfolio-section {
  background: var(--brand-blue);
  border-block: 1px solid rgba(255, 255, 255, 0.12);
}
.portfolio-section .portfolio-card {
  background: var(--brand-blue-deep);
  border-color: rgba(255, 255, 255, 0.16);
}
.portfolio-section .portfolio-card:hover { border-color: rgba(255, 255, 255, 0.3); }
.portfolio-section .portfolio-card__count,
.portfolio-section .portfolio-card__zoom,
.portfolio-section .portfolio-card__more {
  background: rgba(46, 62, 68, 0.84);
}
.portfolio-section .primary-btn {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* 06 — process journey */
.process-journey {
  padding: clamp(24px, 3.5vw, 44px);
  background: var(--brand-blue);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
}
.process-journey .process-card__media span {
  background: var(--brand-gold);
  color: var(--brand-gold-ink);
  border-color: var(--brand-blue);
}

/* 07 — calculator form: blue shell with light, high-contrast controls */
.calculator-form {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --ink: var(--brand-gold-ink);
  --ink-soft: #2e3e44;
  --ink-faint: #b59357;
  --line: rgba(46, 62, 68, 0.14);
  --line-strong: rgba(46, 62, 68, 0.28);
  --accent: var(--brand-gold);
  --accent-ink: var(--brand-gold-readable);
  --accent-on: var(--brand-gold-ink);
  background: linear-gradient(145deg, var(--brand-blue), var(--brand-blue-deep));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.22);
}
.calculator-form > label,
.calculator-form .style-options > legend,
.calculator-form .dimension-sliders > legend,
.calculator-form .furniture-items > legend,
.calculator-form .option-group > legend,
.calculator-form .attachment-field,
.calculator-form .privacy-consent,
.calculator-form .form-status {
  color: var(--brand-blue-on-soft);
}
.calculator-form .option-group {
  border-color: rgba(255, 255, 255, 0.2);
}
.calculator-form .option-group label,
.calculator-form .dimension-slider output {
  color: var(--brand-blue-on);
}
.calculator-form input[type="text"]::placeholder,
.calculator-form input[type="tel"]::placeholder,
.calculator-form textarea::placeholder {
  color: #b59357;
  opacity: 1;
}
.calculator-form .privacy-consent a {
  color: var(--brand-gold-readable);
  border-bottom-color: rgba(181, 147, 87, 0.52);
}
.calculator-form > .primary-btn {
  background: var(--brand-gold);
  color: var(--brand-gold-ink);
  border-color: var(--brand-gold);
}
.calculator-form > .primary-btn:hover {
  background: var(--brand-gold-readable);
  color: var(--brand-gold-ink);
}
.calculator-form .form-status.is-error { color: #fdf4e3; }
.calculator-form .form-status.is-success { color: #fdf4e3; }

.zigzag-brand { color: var(--brand-blue-on); }
.zigzag-brand svg { color: var(--brand-blue-deep); }

/* 10 — footer */
.site-footer {
  background: var(--brand-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer__nav a:hover,
.site-footer__contact a:hover,
.site-footer__legal a {
  color: var(--brand-gold-readable);
}
.site-footer__legal a { border-bottom-color: rgba(181, 147, 87, 0.52); }

@media (max-width: 720px) {
  .hero-facts,
  .reviews-stats,
  .testimonials-grid { padding: 9px; }
  .process-journey { padding: 22px; }
}

/* ---------- Interaction language from the approved reference set -------- */
.primary-btn {
  position: relative;
  isolation: isolate;
  min-height: 50px;
  padding-inline: 52px;
  overflow: hidden;
}
.primary-btn::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%) scale(0.62);
  transition: opacity 0.35s var(--ease), transform 0.42s var(--ease);
}
.primary-btn::after {
  content: "→";
  position: absolute;
  right: 17px;
  top: 50%;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  transform: translate(-8px, -50%);
  transition: opacity 0.3s var(--ease), transform 0.42s var(--ease);
}
.primary-btn:focus-visible::before,
.primary-btn:focus-visible::after {
  opacity: 0.9;
  transform: translate(0, -50%) scale(1);
}
@media (hover: hover) and (pointer: fine) {
  .primary-btn:hover::before {
    opacity: 0.9;
    transform: translateY(-50%) scale(1);
  }
  .primary-btn:hover::after {
    opacity: 0.9;
    transform: translate(0, -50%);
  }
}

.header-cta {
  position: relative;
  min-height: 44px;
  padding-right: 38px;
}
.header-cta::after {
  content: "↗";
  position: absolute;
  right: 15px;
  top: 50%;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.35s var(--ease);
}
.header-cta:hover::after,
.header-cta:focus-visible::after { transform: translate(3px, calc(-50% - 3px)); }
.main-nav > a { min-height: 44px; display: inline-flex; align-items: center; }
.site-header .lang-dropdown__trigger,
.site-header .theme-toggle,
.site-header .nav-toggle { min-width: 44px; height: 44px; }

/* Feadship-inspired progress path, adapted to SALMAST's four real stages. */
.process-journey {
  position: relative;
  isolation: isolate;
}
.process-journey__path {
  position: absolute;
  z-index: 0;
  top: 12px;
  left: clamp(24px, 3.5vw, 44px);
  width: calc(100% - (clamp(24px, 3.5vw, 44px) * 2));
  height: 120px;
  overflow: visible;
  pointer-events: none;
}
.process-journey__path-track,
.process-journey__path-progress {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-width: 1.5;
}
.process-journey__path-track {
  stroke: rgba(253, 244, 227, 0.2);
  stroke-dasharray: 0.012 0.016;
}
.process-journey__path-progress {
  stroke: var(--brand-gold-readable);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.18s linear;
}
.process-card { position: relative; z-index: 1; }
.process-card__media img {
  filter: none;
  transition: filter 0.65s var(--ease), transform 0.65s var(--ease), box-shadow 0.65s var(--ease);
}
.process-card__media span {
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.process-card.is-passed .process-card__media img {
  filter: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}
.process-card.is-active .process-card__media span {
  transform: scale(1.1);
  box-shadow: 0 0 0 7px rgba(181, 147, 87, 0.18);
}
.reveal-ready .process-journey[data-stagger] > .process-journey__path {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (max-width: 1080px) {
  .process-journey__path { display: none; }
  .process-card__media img { filter: none; }
}

/* Footer sitemap and real contact channels. */
.site-footer__inner {
  position: relative;
  padding-top: 38px;
}
.site-footer__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, var(--brand-gold), rgba(181, 147, 87, 0.16) 40%, rgba(181, 147, 87, 0.04));
}
.site-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.site-footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--brand-blue-on);
  border: 1px solid rgba(253, 244, 227, 0.24);
  border-radius: 50%;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.site-footer__social svg { width: 19px; height: 19px; fill: currentColor; }
.site-footer__social a:hover,
.site-footer__social a:focus-visible {
  color: var(--brand-gold-ink);
  background: var(--brand-gold-readable);
  border-color: var(--brand-gold-readable);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .primary-btn::before,
  .primary-btn::after,
  .header-cta::after,
  .process-journey__path-progress,
  .process-card__media img,
  .process-card__media span,
  .site-footer__social a { transition: none !important; }
  .process-journey__path-progress { stroke-dashoffset: 0 !important; }
  .process-card__media img { filter: none !important; }
}

@media (max-width: 720px) {
  .primary-btn { min-height: 52px; padding-inline: 46px; }
  .primary-btn::before { left: 12px; }
  .primary-btn::after { right: 14px; }
  .site-footer__inner { padding-top: 28px; }
}
