:root,
html[data-theme="dark"] {
  --page: #0e0e0b;
  --surface: #161612;
  --surface-2: #1f1f19;
  --surface-card: rgba(244, 238, 226, 0.042);
  --line: rgba(208, 186, 148, 0.14);
  --line-strong: rgba(208, 186, 148, 0.28);
  --inset: clamp(6px, 0.85vw, 14px);
  --radius: clamp(14px, 1.25vw, 22px);
  --radius-sm: 14px;
  --ink: #f5f0e6;
  --ink-dim: rgba(245, 240, 230, 0.82);
  --ink-muted: rgba(222, 213, 196, 0.58);
  --accent: #c9a97c;
  --accent-brass: #c9a97c;
  --accent-dim: rgba(201, 169, 124, 0.16);
  --olive-surface: #22261d;
  --btn-primary-bg: #f3ede0;
  --btn-primary-fg: #151611;
  --glass: rgba(245, 240, 230, 0.22);
  --glass-strong: rgba(245, 240, 230, 0.12);
  --glass-line: rgba(208, 186, 148, 0.48);
  --glass-blur: blur(14px) saturate(130%) brightness(1.4);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 30px rgba(0, 0, 0, 0.24);
  --clear-glass: rgba(18, 19, 15, 0.52);
  --clear-glass-hover: rgba(245, 240, 230, 0.18);
  --clear-glass-blur: blur(12px) saturate(130%);
  --clear-glass-text-shadow: 0 1px 2px rgba(8, 10, 8, 0.5), 0 0 10px rgba(8, 10, 8, 0.32);
  --pad-x: clamp(16px, 2.4vw, 40px);
  --pad-top: clamp(14px, 1.7vw, 28px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-ui: "Inter", "Noto Sans Armenian", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Inter", "Noto Sans Armenian", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* Expensive Olive & Warm Cashmere-Beige Light Palette */
html[data-theme="light"] {
  --page: #f3ede2;
  --surface: #ebe3d5;
  --surface-2: #e1d7c5;
  --surface-card: rgba(74, 90, 60, 0.065);
  --line: rgba(62, 76, 48, 0.15);
  --line-strong: rgba(62, 76, 48, 0.28);
  --ink: #1e2419;
  --ink-dim: rgba(30, 36, 25, 0.82);
  --ink-muted: rgba(58, 69, 48, 0.64);
  --accent: #485839;
  --accent-brass: #8c6d43;
  --accent-dim: rgba(72, 88, 57, 0.13);
  --olive-surface: #dfe3d5;
  --btn-primary-bg: #3d4b30;
  --btn-primary-fg: #f7f3eb;
  --clear-glass: rgba(34, 41, 28, 0.66);
  --clear-glass-hover: rgba(247, 243, 235, 0.22);
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.landing,
.project-view {
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, h4, blockquote, figure, dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

/* Mode Switching between Landing and Full-Screen Project Walkthrough */
body.is-tour-open .landing {
  display: none !important;
}
body:not(.is-tour-open) .project-view {
  display: none !important;
}

.page {
  min-height: 100svh;
  padding: var(--inset);
}

.landing {
  padding: var(--inset);
}

.container {
  width: min(1440px, 100%);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 48px);
}

/* ---------- Top Navigation ---------- */

.brand:focus-visible,
.nav__link:focus-visible,
.cta:focus-visible,
.btn-primary:focus-visible,
.btn-glass:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.nav {
  position: absolute;
  z-index: 10;
  top: var(--pad-top);
  left: var(--pad-x);
  right: var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 0.6vw, 11px);
  min-height: 44px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 1.35vw, 22px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-shadow: 0 1px 10px rgba(8, 18, 30, 0.45);
}

.brand__mark {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  filter: drop-shadow(0 1px 3px rgba(8, 18, 30, 0.35));
}

.brand--back {
  gap: 12px;
}

.brand__back-pill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(12, 15, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s;
}

.brand--back:hover .brand__back-pill {
  background: #ffffff;
  color: #0d0f12;
  border-color: #ffffff;
}

.nav__links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  color: #ffffff;
  text-shadow: var(--clear-glass-text-shadow);
  background: var(--clear-glass);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: var(--clear-glass-blur);
  backdrop-filter: var(--clear-glass-blur);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: clamp(34px, 2.4vw, 38px);
  padding: 0 clamp(12px, 1vw, 17px);
  border-radius: 999px;
  font-size: clamp(13px, 0.9vw, 14.5px);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}

.nav__link:hover { background: var(--clear-glass-hover); }

.nav__link.is-active {
  background: #ffffff;
  color: #0d0f12;
  text-shadow: none;
}

.nav__link--story {
  background: rgba(229, 195, 145, 0.22);
  border: 1px solid rgba(229, 195, 145, 0.45);
}

.cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: calc(clamp(34px, 2.4vw, 38px) + 8px);
  padding: 0 5px 0 clamp(15px, 1.2vw, 20px);
  border-radius: 999px;
  background: #ffffff;
  color: #101418;
  font-size: clamp(13px, 0.9vw, 14.5px);
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(8, 18, 30, 0.22);
  transition: background-color 0.25s var(--ease-soft);
}

.cta:hover { background: #eef2f6; }

.cta__icon {
  display: grid;
  place-items: center;
  width: clamp(32px, 2.3vw, 36px);
  height: clamp(32px, 2.3vw, 36px);
  border-radius: 50%;
  background: #101418;
  color: #ffffff;
  transition: transform 0.35s var(--ease-out);
}

.cta__icon svg { width: 14px; height: 14px; }
.cta:hover .cta__icon { transform: rotate(45deg); }

/* ---------- Buttons ---------- */

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 999px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--btn-primary-bg, #f3ede0);
  color: var(--btn-primary-fg, #151611);
  border: 1px solid var(--btn-primary-bg, #f3ede0);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary:hover {
  background: var(--accent);
  color: #141510;
  border-color: var(--accent);
  border-radius: 999px;
  transform: translateY(-1px);
}
html[data-theme="light"] .btn-primary:hover {
  background: #334027;
  color: #f7f3eb !important;
  border-color: #334027;
}

.btn-primary svg {
  width: 15px;
  height: 15px;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero-stage .btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #f7f3eb;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-glass:hover {
  background: var(--accent);
  color: #141510;
  border-color: var(--accent);
  border-radius: 999px;
}
html[data-theme="light"] .btn-glass:hover {
  background: #485839;
  color: #f7f3eb !important;
  border-color: #485839;
}

.btn-full {
  width: 100%;
}

/* ---------- 1. HERO STAGE WITH FLY-THROUGH ---------- */

.hero-stage {
  position: relative;
  height: calc(100svh - 2 * var(--inset));
  min-height: 640px;
}

.hero-stage__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #141210;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad-top) var(--pad-x) clamp(24px, 3vw, 44px);
}

.hero-stage__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-stage__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 14, 11, 0.62) 0%, rgba(14, 14, 11, 0.14) 26%, rgba(14, 14, 11, 0.24) 55%, rgba(14, 14, 11, 0.88) 100%),
    radial-gradient(ellipse 80% 70% at 28% 62%, rgba(14, 14, 11, 0.45), transparent 70%);
}

.hero-stage__content {
  position: relative;
  z-index: 3;
  max-width: 880px;
  margin-bottom: clamp(22px, 3vw, 38px);
}

.hero-stage__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 15, 11, 0.64);
  border: 1px solid rgba(201, 169, 124, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: clamp(11px, 0.8vw, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #dfc39b;
  margin-bottom: 16px;
}

.hero-stage__title {
  font-family: var(--font-ui);
  font-weight: 200;
  font-size: clamp(2.4rem, 1.1rem + 4.8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.038em;
  text-transform: uppercase;
  color: #f7f3eb;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.hero-stage__lead {
  margin-top: 18px;
  max-width: 640px;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.55;
  color: rgba(247, 243, 235, 0.86);
}

.hero-stage__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stage__metrics {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 243, 235, 0.2);
}

.hero-metric__val {
  display: block;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #f7f3eb;
}

.hero-metric__lbl {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: rgba(247, 243, 235, 0.68);
}

/* ---------- Common Section Rhythm ---------- */

.section {
  padding-block: clamp(64px, 7vw, 112px);
  border-bottom: 1px solid var(--line);
}

.sec-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.sec-title {
  font-family: var(--font-ui);
  font-weight: 200;
  font-size: clamp(2rem, 0.9rem + 3vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-transform: uppercase;
  color: var(--ink);
}

.sec-desc {
  margin-top: 16px;
  max-width: 680px;
  font-size: clamp(15px, 1.05vw, 17.5px);
  line-height: 1.6;
  color: var(--ink-dim);
}

.sec-header {
  margin-bottom: clamp(36px, 4vw, 56px);
}

.sec-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* ---------- 2. DESIGNER SECTION (Organic Transition from Hero Fly-Through) ---------- */

.designer-sec {
  position: relative;
  z-index: 5;
  margin-top: clamp(-28px, -2.5vw, -16px);
  padding-top: clamp(44px, 5vw, 84px);
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--page) 180px);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -24px 64px rgba(0, 0, 0, 0.38);
}

.designer-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.designer-portrait-col,
.designer-bio-col {
  min-width: 0;
  max-width: 100%;
}

.designer-photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.designer-photo-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}

.designer-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.designer-photo-card__caption {
  padding: 18px 22px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.designer-photo-card__caption strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.designer-photo-card__caption span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

.designer-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.designer-stat {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  border: 1px solid var(--line);
}

.designer-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.designer-stat span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-dim);
}

.designer-quote {
  margin-top: 22px;
  padding: 22px 26px;
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: clamp(1.25rem, 1.7vw, 1.75rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.designer-prose {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.68;
  color: var(--ink-dim);
}

.approach-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  min-width: 0;
  max-width: 100%;
}

.approach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.approach-head .sec-eyebrow {
  margin-bottom: 0;
}

.approach-mobile-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.approach-cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.approach-card {
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  border: 1px solid var(--accent);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.approach-card.is-current {
  border-color: var(--accent);
}

.approach-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.approach-card__title {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.approach-card__text {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
}

/* ---------- 3. PORTFOLIO: 10 FLY-THROUGH CARDS (2 COLUMNS OR 2 ROWS) ---------- */

.portfolio-rotate-banner {
  display: none;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--accent-dim);
  border: 1px solid var(--line-strong);
}

.portfolio-rotate-banner__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.portfolio-rotate-banner__icon svg {
  width: 22px;
  height: 22px;
  animation: rotatePhoneBanner 2.6s ease-in-out infinite;
}

@keyframes rotatePhoneBanner {
  0%, 20% { transform: rotate(0deg); }
  55%, 82% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}

.portfolio-rotate-banner__body {
  display: grid;
  gap: 3px;
}

.portfolio-rotate-banner__body strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.portfolio-rotate-banner__body span {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-dim);
}

@media (max-width: 960px) {
  .portfolio-rotate-banner {
    display: flex;
  }
}

.portfolio-controls {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.grid-toggle {
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.grid-toggle.is-active {
  background: var(--btn-primary-bg, #f3ede0);
  color: var(--btn-primary-fg, #151611);
}

.portfolio-grid {
  display: grid;
  gap: clamp(16px, 1.8vw, 24px);
}

.portfolio-grid.is-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.portfolio-grid.is-rows-2 {
  grid-template-columns: repeat(5, 1fr);
}

.pcard {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #14161a;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), border-color 0.25s, box-shadow 0.35s;
}

.pcard:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.pcard__media {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
}

.portfolio-grid.is-rows-2 .pcard__media {
  aspect-ratio: 4 / 5;
}

.pcard__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.pcard:hover .pcard__video {
  transform: scale(1.04);
}

.pcard__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.65) 0%, rgba(10, 12, 16, 0) 32%, rgba(10, 12, 16, 0.15) 55%, rgba(10, 12, 16, 0.9) 100%);
}

.pcard__top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pcard__num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(14, 15, 12, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f7f3eb;
  backdrop-filter: blur(8px);
}

.pcard__tag {
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 22, 17, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f7f3eb;
  backdrop-filter: blur(8px);
}

.pcard__tag--accent {
  background: rgba(201, 169, 124, 0.28);
  border-color: rgba(201, 169, 124, 0.62);
  color: #f6dfc0;
}

.pcard__bottom {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pcard__info {
  min-width: 0;
  flex: 1 1 200px;
}

.pcard__title {
  font-size: clamp(1.2rem, 1.5vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #f7f3eb;
}

.pcard__sub {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(247, 243, 235, 0.82);
}

.pcard__actions {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.pcard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.pcard__btn--photos {
  background: rgba(15, 17, 13, 0.84);
  color: #f7f3eb;
  border: 1px solid rgba(201, 169, 124, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pcard__btn--photos:hover {
  background: #c9a97c;
  color: #141510;
  border-color: #c9a97c;
}

.pcard__btn--tour {
  background: #f5f0e6;
  color: #141510;
  border: 1px solid #f5f0e6;
}

.pcard__btn--tour:hover {
  background: #c9a97c;
  color: #141510;
  border-color: #c9a97c;
  transform: translateX(2px);
}

.portfolio-grid.is-rows-2 .pcard__sub {
  display: none;
}
.portfolio-grid.is-rows-2 .pcard__title {
  font-size: 1.05rem;
}
.portfolio-grid.is-rows-2 .pcard__btn {
  height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

/* ---------- 4. PROCESS: 8 STAGES (4x2 Desktop Grid, Sticky Horizontal Scroll on Mobile) ---------- */

.process-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.process-mobile-nav {
  display: none;
  align-items: center;
  gap: 8px;
}

.pricing-progress-bar__count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  min-width: 48px;
  text-align: center;
}

.process-progress-wrap {
  margin-top: 20px;
}

.process-progress-wrap .pricing-progress-bar__track {
  display: none;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--line-strong);
  overflow: hidden;
  margin-bottom: 12px;
}

.process-progress-wrap .pricing-progress-bar__fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--pricing-p, 0.125));
  transition: transform 0.22s var(--ease-out);
}

.stages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stage-card {
  padding: 26px 24px;
  border-radius: var(--radius-sm);
  background: var(--surface-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.stage-card.is-current {
  border-color: var(--accent);
}

.stage-card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.stage-card__title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.stage-card__text {
  margin-top: 12px;
  font-size: 13.8px;
  line-height: 1.62;
  color: var(--ink-dim);
}

.stages-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .process-pin-wrap {
    position: relative;
    height: auto;
  }
  .process-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    display: block;
    overflow: visible;
    padding-block: 0;
  }
  .process-sticky__inner {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .process-header {
    margin-bottom: 20px;
    align-items: center;
  }
  .process-mobile-nav {
    display: inline-flex;
  }
  .process-track-viewport {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }
  .stages-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 10px;
    scrollbar-width: none;
    transform: none !important;
  }
  .stages-grid::-webkit-scrollbar {
    display: none;
  }
  .stage-card {
    flex: 0 0 min(346px, 88vw);
    min-height: 228px;
    padding: 26px 22px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: 1px solid var(--accent);
  }
  .stage-card.is-current {
    border-color: var(--accent);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  }
  .stage-card__num {
    font-size: 13px;
  }
  .stage-card__title {
    margin-top: 10px;
    font-size: 19.5px;
    line-height: 1.25;
  }
  .stage-card__text {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.62;
  }
  .process-progress-wrap {
    margin-top: 12px;
  }
  .process-progress-wrap .pricing-progress-bar__track {
    display: block;
  }
  .stages-note {
    margin-top: 8px;
    font-size: 12.5px;
  }
}

/* ---------- 5. PRICING & TARIFFS (STICKY HORIZONTAL SCROLL-DRIVEN TRACK) ---------- */

.pricing-scroll-sec {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.pricing-pin-wrap {
  position: relative;
  height: 280svh;
}

.pricing-sticky {
  position: sticky;
  top: var(--inset);
  height: calc(100svh - 2 * var(--inset));
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-block: clamp(10px, 1.5vh, 18px);
}

.pricing-sticky__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(8px, 1.1vh, 14px);
}

.pricing-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-top-bar .sec-eyebrow {
  margin-bottom: 4px;
  font-size: 11px;
}

.pricing-sec-title {
  font-size: clamp(1.35rem, 0.8rem + 1.5vw, 2.1rem);
  line-height: 1;
}

.pricing-nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pricing-step-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 5px 6px;
  max-width: 100%;
  padding: 5px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  overflow: visible;
}

.pricing-step-pill {
  height: 29px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-card);
  color: var(--ink-dim);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pricing-step-pill:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.pricing-step-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #141510;
  font-weight: 600;
}
html[data-theme="light"] .pricing-step-pill.is-active {
  background: #485839;
  border-color: #485839;
  color: #f7f3eb !important;
}

.pricing-arrows {
  display: inline-flex;
  gap: 6px;
}

.pricing-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pricing-arrow-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #141510;
}
html[data-theme="light"] .pricing-arrow-btn:hover {
  color: #f7f3eb;
}

.pricing-track-viewport {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  overflow: visible;
}

.pricing-h-track {
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 1.5vw, 20px);
  will-change: transform;
  transition: transform 0.08s linear;
}

.tariff-card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(14px, 1.5vh, 18px) clamp(16px, 1.6vw, 22px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Desktop & Mobile: NO internal scrollbar inside tariff cards so CTA button is always 100% visible! */
.h-tariff-card {
  flex: 0 0 clamp(350px, 36vw, 480px);
  max-height: none;
  overflow: visible;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.h-tariff-card.is-current {
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.26);
}

.tariff-card--featured {
  background: linear-gradient(180deg, var(--accent-dim) 0%, var(--surface) 100%);
  border-color: var(--accent);
}

.tariff-card--investor {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

.tariff-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

.tariff-card__badge--gold {
  background: var(--accent);
  border-color: var(--accent);
  color: #141510;
  font-weight: 600;
}
html[data-theme="light"] .tariff-card__badge--gold {
  color: #f7f3eb;
}

.tariff-card__name {
  margin-top: 6px;
  font-size: clamp(18px, 1.35vw, 21px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tariff-card__price {
  margin-top: 3px;
  font-size: clamp(1.35rem, 1.75vw, 1.9rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
}

.tariff-card__price span {
  font-size: 13px;
  color: var(--ink-muted);
}

.tariff-card__term {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink-muted);
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.tariff-card__body {
  margin-block: 8px;
  display: grid;
  gap: 7px;
}

.tariff-group h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.tariff-group ul {
  display: grid;
  gap: 2px;
}

.tariff-group li {
  position: relative;
  padding-left: 12px;
  font-size: 11.6px;
  line-height: 1.32;
  color: var(--ink-dim);
}

.tariff-group li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--accent);
  font-weight: 700;
}

.tariff-card__foot {
  margin-top: auto;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
}

.tariff-card__foot .btn-glass,
.tariff-card__foot .btn-primary {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.8px;
  font-weight: 600;
}

.h-tariff-card.is-current .tariff-card__foot .btn-glass,
.tariff-card--featured .tariff-card__foot .btn-glass,
.tariff-card__foot .btn-glass:hover,
.tariff-card__foot .btn-primary:hover {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg) !important;
  border-color: var(--btn-primary-bg);
  border-radius: 999px;
}

.pricing-bottom-bar {
  display: grid;
  gap: 6px;
}

.pricing-progress-bar {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--line-strong);
  overflow: hidden;
}

.pricing-progress-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--pricing-p, 0.16));
  transition: transform 0.1s linear;
}

.pricing-bottom-bar__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

.pricing-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

/* When mobile phone is held horizontally in landscape on the landing page, unpin #pricing so tariffs are never squished */
@media (max-height: 620px) and (orientation: landscape) {
  .pricing-pin-wrap {
    height: auto !important;
  }
  .pricing-sticky {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding-block: 24px !important;
  }
  .pricing-track-viewport {
    overflow-x: auto !important;
    padding-bottom: 12px;
  }
  .pricing-h-track {
    transform: none !important;
  }
}

/* ---------- 6. INTERACTIVE CALCULATOR ---------- */

.calc-shell {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 28px;
  align-items: start;
}

.calc-controls {
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 26px;
}

.calc-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.calc-segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: var(--page);
  border: 1px solid var(--line);
}

.calc-seg-btn {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.calc-seg-btn.is-active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  border-radius: 999px;
  font-weight: 600;
}

.calc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-pill,
.calc-preset {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-dim);
  font-size: 13px;
  cursor: pointer;
}

.calc-pill.is-active,
.calc-preset.is-active {
  background: var(--accent);
  color: #141510;
  border-color: var(--accent);
  font-weight: 600;
}
html[data-theme="light"] .calc-pill.is-active,
html[data-theme="light"] .calc-preset.is-active {
  color: #f7f3eb;
}

.calc-range-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.calc-range-head .calc-label { margin-bottom: 0; }

.calc-area-out {
  font-size: 28px;
  font-weight: 400;
  color: var(--accent);
}

.calc-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.calc-presets {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-tariff-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.calc-tariff-options--2 {
  grid-template-columns: repeat(2, 1fr);
}

.calc-tariff-btn,
.calc-turnkey-btn {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.calc-tariff-btn strong,
.calc-turnkey-btn strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.calc-tariff-btn span,
.calc-turnkey-btn span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}

.calc-tariff-btn.is-active,
.calc-turnkey-btn.is-active {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.calc-checks {
  display: grid;
  gap: 10px;
}

.calc-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-dim);
  cursor: pointer;
}

.calc-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.calc-summary {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--accent);
}

.calc-summary__eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.calc-summary__total {
  margin-top: 10px;
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.calc-summary__meta {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-dim);
}

.calc-summary__divider {
  margin-block: 20px;
  height: 1px;
  background: var(--line);
}

.calc-summary__subhead {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.calc-summary__list {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.calc-summary__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}

.calc-summary__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.calc-summary__actions {
  display: grid;
  gap: 10px;
}

/* ---------- 7. FAQ & GEOGRAPHY ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: start;
}

.geo-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.geo-card__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.geo-card__cities {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 500;
}

.geo-card__note {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-dim);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 22px;
}

.faq-item summary {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 12px;
  font-size: 14.2px;
  line-height: 1.62;
  color: var(--ink-dim);
}

/* ---------- 8. CONTACTS & FOOTER ---------- */

.contacts-sec {
  border-bottom: 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 40px;
  align-items: start;
}

.contacts-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dim);
}

.contact-cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-card__lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.contact-card__val {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.lead-form {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.lead-form__title {
  font-size: 20px;
  font-weight: 500;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 13px;
  color: var(--ink-dim);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--page);
  color: var(--ink);
  font-size: 14.5px;
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.link-inline,
.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.lead-form__btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.site-footer-bar {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.site-footer-bar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Legal Modal */
.legal-dialog {
  max-width: 680px;
  width: calc(100% - 32px);
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 0;
}

.legal-dialog::backdrop {
  background: rgba(8, 10, 8, 0.78);
  backdrop-filter: blur(6px);
}

.legal-dialog__box { padding: 28px; }
.legal-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.legal-dialog__head h2 { font-size: 18px; }
.legal-dialog__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.legal-dialog__body {
  display: grid;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dim);
}

/* ---------- Theme Switcher Button (Dark Onyx-Brass <-> Light Olive-Beige) ---------- */

.theme-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(208, 186, 148, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f0e6;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}

.theme-switch-btn:hover {
  background: rgba(201, 169, 124, 0.25);
  border-color: #c9a97c;
}

.theme-switch-btn__dot,
.theme-switch-btn__swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, #485839 0%, #e1d7c5 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  flex: none;
}

html[data-theme="light"] .theme-switch-btn__dot,
html[data-theme="light"] .theme-switch-btn__swatch {
  background: linear-gradient(135deg, #0e0e0b 0%, #c9a97c 100%);
}

/* ---------- Mobile Return-to-Portrait Toast (After Exiting Portfolio) ---------- */

.return-portrait-toast {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  width: min(620px, calc(100vw - 24px));
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(18, 20, 15, 0.96);
  border: 1px solid rgba(201, 169, 124, 0.58);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #f5f0e6;
  animation: toastSlideDown 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.return-portrait-toast[hidden] {
  display: none !important;
}

.return-portrait-toast__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.return-portrait-toast__icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(201, 169, 124, 0.18);
  border: 1px solid rgba(201, 169, 124, 0.45);
  display: grid;
  place-items: center;
  color: #c9a97c;
  font-size: 15px;
}

.return-portrait-toast__text,
.return-portrait-toast__body {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 1px;
}

.return-portrait-toast__text strong,
.return-portrait-toast__body strong {
  font-size: 13px;
  font-weight: 600;
  color: #f7f3eb;
  display: block;
}

.return-portrait-toast__text span,
.return-portrait-toast__body span {
  font-size: 11.5px;
  line-height: 1.3;
  color: rgba(245, 240, 230, 0.78);
  display: block;
}

.return-portrait-toast__close {
  flex: none;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: #c9a97c;
  color: #141510;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Responsive (Tablet & Mobile) ---------- */

@media (max-width: 1080px) {
  .designer-grid,
  .supervision-box,
  .turnkey-box__header,
  .calc-shell,
  .faq-layout,
  .contacts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .tariffs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .portfolio-grid.is-rows-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 961px) and (max-width: 1080px) {
  .stages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .approach-mobile-nav {
    display: inline-flex;
  }
  .approach-cards {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .approach-cards::-webkit-scrollbar {
    display: none;
  }
  .approach-card {
    flex: 0 0 min(346px, 88vw);
    min-height: 228px;
    padding: 26px 22px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: 1px solid var(--accent);
  }
  .approach-card__num {
    font-size: 13px;
  }
  .approach-card__title {
    margin-top: 10px;
    font-size: 19.5px;
    line-height: 1.25;
  }
  .approach-card__text {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.62;
  }
  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 10px;
  }
  .brand {
    grid-row: 1;
    grid-column: 1;
    min-width: 0;
  }
  .cta {
    grid-row: 1;
    grid-column: 2;
  }
  .nav__links {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav__links::-webkit-scrollbar { display: none; }
}

@media (max-aspect-ratio: 9/10), (max-width: 760px) {
  :root {
    --inset: 6px;
    --radius: 16px;
    --pad-x: 14px;
    --pad-top: 12px;
  }
  .brand {
    min-height: 36px;
    font-size: 15.5px;
    gap: 7px;
  }
  .brand__back-pill {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }
  .cta {
    height: 36px;
    padding: 0 4px 0 12px;
    gap: 8px;
    font-size: 12.5px;
  }
  .cta__icon {
    width: 28px;
    height: 28px;
  }
  .cta__icon svg {
    width: 13px;
    height: 13px;
  }
  .nav__links {
    justify-content: flex-start;
    padding: 3px;
    background: rgba(16, 20, 26, 0.72);
  }
  .nav__link {
    height: 30px;
    padding: 0 11px;
    font-size: 12px;
    flex: 0 0 auto;
  }
  .hero-stage {
    height: calc(92svh - 2 * var(--inset));
    min-height: 560px;
    max-height: 780px;
  }
  .hero-stage__frame {
    padding: 54px 16px 36px;
  }
  .pcard__top {
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }
  .pcard__num,
  .pcard__tag {
    font-size: 9.5px;
    padding: 4px 8px;
  }
  .pcard__bottom {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }
  .pcard__btn {
    height: 31px;
    padding: 0 11px;
    font-size: 11px;
  }
  .portfolio-controls {
    display: none !important;
  }
  .h-tariff-card {
    flex: 0 0 min(312px, 84vw);
    padding: 14px;
  }
  .pricing-nav-controls {
    width: 100%;
    justify-content: space-between;
  }
  .pricing-step-pills {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
  }
  .pricing-step-pill {
    height: 30px;
    padding: 0 8px;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hero-stage__content {
    margin-bottom: 16px;
  }
  .hero-stage__eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 5px 11px;
    margin-bottom: 12px;
  }
  .hero-stage__title {
    font-size: clamp(1.85rem, 7.4vw, 2.55rem);
    line-height: 0.98;
  }
  .hero-stage__lead {
    margin-top: 12px;
    font-size: 13.8px;
    line-height: 1.48;
  }
  .hero-stage__actions {
    margin-top: 16px;
    gap: 8px;
  }
  .hero-stage__actions .btn-primary,
  .hero-stage__actions .btn-glass {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 13px;
  }
  .hero-stage__metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 14px;
  }
  .hero-metric__val {
    font-size: 16px;
  }
  .hero-metric__lbl {
    font-size: 11px;
  }
  .designer-sec {
    margin-top: -22px;
    padding-top: 32px;
  }
  .designer-photo-card img {
    aspect-ratio: 4 / 5;
    max-height: none;
    object-fit: cover;
    object-position: center top;
  }
  .supervision-box__cols,
  .turnkey-tables,
  .calc-tariff-options,
  .contact-cards,
  .lead-form__btns,
  .portfolio-grid.is-cols-2,
  .portfolio-grid.is-rows-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 4-Language Switcher (RU · TR · HY · KK) ---------- */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f7f3eb;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lang-switch__btn:hover,
.lang-switch.is-open .lang-switch__btn {
  background: rgba(201, 169, 124, 0.24);
  border-color: rgba(229, 195, 145, 0.65);
  color: #ffffff;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  min-width: 152px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(12, 14, 15, 0.96);
  border: 1px solid rgba(229, 195, 145, 0.36);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-switch__menu[hidden] {
  display: none !important;
}

.lang-switch__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 7px 11px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: rgba(247, 243, 235, 0.86);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.lang-switch__opt:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.lang-switch__opt.is-active {
  background: #c9a97c;
  color: #141510;
  font-weight: 600;
}

.lang-switch__code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.78;
}

@media (max-width: 480px) {
  .island-nav--project .theme-switch-btn--compact [data-theme-label] {
    display: none;
  }
  .island-nav--project .theme-switch-btn--compact {
    padding: 0 8px;
  }
  .island-nav--project .island-nav__back {
    padding: 0 10px;
    font-size: 11.5px;
  }
  .lang-switch__btn {
    padding: 0 8px;
    font-size: 10.5px;
  }
}

/* ---------- Footer Creator Copyright Link ---------- */
.site-footer-bar__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.site-footer-bar__creator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent, #c9a97c);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 124, 0.38);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}

.site-footer-bar__creator:hover {
  color: var(--ink, #171614);
  border-bottom-color: currentColor;
}

[data-theme="dark"] .site-footer-bar__creator {
  color: #dec094;
  border-bottom-color: rgba(222, 192, 148, 0.42);
}

[data-theme="dark"] .site-footer-bar__creator:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}
