/* ==========================================================================
   Mihretu Tesema · Merit Properties — site styles
   One stylesheet for every page. Tokens first, then layout, then components.
   ========================================================================== */

:root {
  --ink: #0c0f14;
  --ink-2: #131820;
  --ink-3: #1b212b;
  --paper: #f7f3ec;
  --paper-2: #efe7da;
  --white: #ffffff;
  --gold: #c8a15a;
  --gold-2: #e3c58c;
  --gold-deep: #a07c3b;
  --text: #1a1d23;
  --muted: #646a74;
  --muted-on-dark: #a9aeb7;
  --line: rgba(12, 15, 20, 0.1);
  --line-on-dark: rgba(255, 255, 255, 0.1);
  --green: #25d366;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 72px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -28px rgba(12, 15, 20, 0.35);
  --shadow-lg: 0 40px 90px -40px rgba(12, 15, 20, 0.55);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 40px); margin-inline: auto; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--ink2 { background: var(--ink-2); color: var(--white); }
.section--white { background: var(--white); }
.section--sand { background: var(--paper-2); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .section--ink2 .eyebrow, .on-dark .eyebrow { color: var(--gold); }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.h2 { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.005em; }
.h3 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
.h4 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.accent { color: var(--gold); font-style: italic; font-weight: 600; }
.section:not(.section--dark):not(.section--ink2) .accent { color: var(--gold-deep); }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 62ch; }
.section--dark .lead, .section--ink2 .lead, .on-dark .lead { color: var(--muted-on-dark); }
.muted { color: var(--muted); }
.section--dark .muted, .section--ink2 .muted { color: var(--muted-on-dark); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head > div { max-width: 720px; }
.section-head .h2 { margin-top: 14px; }
.section-head .lead { margin-top: 16px; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }

.prose { font-size: 17px; color: #30343b; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 40px); margin-top: 1.8em; color: var(--text); }
.prose h3 { font-size: 20px; margin-top: 1.6em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose table { font-size: 15px; margin-top: 1.4em; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.table-wrap table { min-width: 560px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: 0 14px 30px -14px rgba(200, 161, 90, 0.8); }
.btn--gold:hover { box-shadow: 0 18px 38px -14px rgba(200, 161, 90, 0.95); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { border-color: rgba(12, 15, 20, 0.22); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.section--dark .btn--ghost, .section--ink2 .btn--ghost, .on-dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost, .cta-band .btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--white); }
.section--dark .btn--ghost:hover, .section--ink2 .btn--ghost:hover, .on-dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover, .cta-band .btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--whatsapp { background: var(--green); color: #062e14; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-deep); }
.section--dark .link-arrow, .section--ink2 .link-arrow { color: var(--gold); }
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--white);
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid,
body:not(.has-hero) .site-header {
  background: rgba(12, 15, 20, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: rgba(200, 161, 90, 0.22);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 27px; font-weight: 600; letter-spacing: 0.01em; }
.brand__name em { color: var(--gold); font-style: italic; }
.brand__sub { margin-top: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 8px 12px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.78);
  border-radius: 999px; transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: var(--gold-2); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); transform: translateX(-50%);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.header-phone svg { width: 16px; height: 16px; color: var(--gold); }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--ink); color: var(--white);
  padding: 28px 20px 40px; overflow-y: auto; display: none;
}
.menu-open .mobile-menu { display: block; animation: fadeIn 0.3s var(--ease); }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: 32px; font-weight: 600; padding: 10px 0;
  border-bottom: 1px solid var(--line-on-dark); display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu nav a::after { content: "→"; font-family: var(--font-body); font-size: 18px; color: var(--gold); }
.mobile-menu nav a[aria-current="page"] { color: var(--gold-2); }
.mobile-menu .btn-row { margin-top: 28px; }
.mobile-menu .btn { flex: 1; }
.menu-open { overflow: hidden; }
.menu-open .site-header { background: var(--ink); }

@media (max-width: 1180px) { .header-phone { display: none; } }
@media (max-width: 1060px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--white);
  padding: calc(var(--header-h) + clamp(36px, 6vw, 72px)) 0 clamp(48px, 7vw, 88px);
  min-height: min(100svh, 980px); display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(200, 161, 90, 0.22), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(200, 161, 90, 0.08), transparent 60%);
}
.hero__grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid rgba(200, 161, 90, 0.35); background: rgba(200, 161, 90, 0.08); font-size: 13px; font-weight: 600; color: var(--gold-2); }
.hero__kicker b { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 2px 9px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { margin-top: 22px; }
.hero__text { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted-on-dark); max-width: 56ch; }
.hero__text strong { color: var(--white); font-weight: 600; }
.hero .btn-row { margin-top: 34px; }
.hero__am { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, 0.62); }

.hero__visual { position: relative; justify-self: center; width: min(440px, 100%); }
.arch {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden;
  background: linear-gradient(180deg, #e9e4dc, #cfc6b8);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(200, 161, 90, 0.4);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 15, 20, 0.55)); }
.arch-ring { position: absolute; inset: -14px; border-radius: 999px 999px 40px 40px; border: 1px solid rgba(200, 161, 90, 0.35); pointer-events: none; }
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px;
  background: rgba(20, 24, 31, 0.72); border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.chip strong { font-family: var(--font-display); font-size: 30px; line-height: 1; color: var(--gold-2); }
.chip span { font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, 0.8); }
.chip--a { left: -38px; top: 22%; }
.chip--b { right: -30px; bottom: 16%; animation-delay: -3s; }
.hero__name { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; text-align: center; }
.hero__name b { display: block; font-family: var(--font-display); font-size: 26px; }
.hero__name span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); }

.hero-finder {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); max-width: 620px;
}
.hero-finder a {
  flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 14px;
  transition: background-color 0.2s;
}
.hero-finder a:hover { background: rgba(255, 255, 255, 0.07); }
.hero-finder small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero-finder span { font-size: 15px; font-weight: 600; }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero .container { grid-template-columns: 1fr; }
  .hero__visual { width: min(340px, 82%); order: -1; margin-top: 8px; }
  .chip--a { left: -26px; }
  .chip--b { right: -20px; bottom: 30%; }
  .chip strong { font-size: 24px; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--white);
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(56px, 8vw, 96px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 420px at 85% 0%, rgba(200, 161, 90, 0.18), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-top: 18px; max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }
.page-hero .btn-row { margin-top: 32px; }
.page-hero--image { min-height: min(86svh, 820px); display: flex; align-items: flex-end; }
.page-hero--image .page-hero__bg { position: absolute; inset: 0; }
.page-hero--image .page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image .page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 15, 20, 0.6) 0%, rgba(12, 15, 20, 0.25) 35%, rgba(12, 15, 20, 0.94) 100%),
              linear-gradient(90deg, rgba(12, 15, 20, 0.82), rgba(12, 15, 20, 0.2) 75%);
}
.page-hero--image .container { z-index: 1; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.crumbs a:hover { color: var(--gold-2); }
.crumbs li { list-style: none; display: flex; gap: 8px; }
.crumbs li + li::before { content: "/"; opacity: 0.5; }

.fact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.fact {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.fact svg { width: 16px; height: 16px; color: var(--gold); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--gold); color: var(--ink);
}
.badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0f7a3a; box-shadow: 0 0 0 3px rgba(15, 122, 58, 0.25); animation: pulse 1.8s infinite; }
.badge--soft { background: rgba(200, 161, 90, 0.14); color: var(--gold-deep); }
.badge--dark { background: rgba(12, 15, 20, 0.75); color: var(--white); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- Marquee ---------- */

.marquee { background: var(--gold); color: var(--ink); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 24px; font-weight: 600; font-style: italic; padding: 0 22px; white-space: nowrap; }
.marquee__track span::after { content: "✦"; font-style: normal; font-size: 14px; margin-left: 44px; vertical-align: middle; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Cards ---------- */

.card {
  position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__media .badge { position: absolute; left: 16px; top: 16px; }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.card__title { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.card__meta svg { width: 15px; height: 15px; color: var(--gold-deep); }
.card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-from { display: flex; flex-direction: column; line-height: 1.2; }
.price-from small { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.price-from b { font-size: 18px; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Big project card */
.project {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 520px; color: var(--white);
  background: var(--ink-3); isolation: isolate;
}
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.project::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 15, 20, 0.05) 20%, rgba(12, 15, 20, 0.92) 100%); }
.project:hover img { transform: scale(1.06); }
.project__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.project__body .card__title { font-size: 34px; margin-top: 12px; }
.project__body p { margin-top: 10px; color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.project__row { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.project__row .price-from small { color: rgba(255, 255, 255, 0.6); }
.project__go {
  width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--ink); font-size: 20px; transition: transform 0.35s var(--ease);
}
.project:hover .project__go { transform: rotate(-45deg); }
.project .badge { position: absolute; top: 20px; left: 20px; }
.projects-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: clamp(16px, 2vw, 24px); }
.projects-grid .project:first-child { grid-row: span 2; min-height: 680px; }
.projects-grid .project:not(:first-child) { min-height: 328px; }
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid .project:first-child, .projects-grid .project:not(:first-child) { min-height: 440px; grid-row: auto; }
}

/* Stat */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--white); padding: 28px 24px; }
.section--dark .stats, .section--ink2 .stats, .on-dark .stats { background: var(--line-on-dark); border-color: var(--line-on-dark); }
.section--dark .stats > div, .section--ink2 .stats > div, .on-dark .stats > div { background: var(--ink-2); }
.stat__value { font-family: var(--font-display); font-size: clamp(38px, 4vw, 54px); font-weight: 600; line-height: 1; color: var(--gold-deep); }
.section--dark .stat__value, .section--ink2 .stat__value, .on-dark .stat__value { color: var(--gold-2); }
.stat__label { margin-top: 8px; font-size: 14px; color: var(--muted); }
.section--dark .stat__label, .section--ink2 .stat__label, .on-dark .stat__label { color: var(--muted-on-dark); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Feature tile */
.tile { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); height: 100%; }
.section--dark .tile, .section--ink2 .tile { background: rgba(255, 255, 255, 0.03); border-color: var(--line-on-dark); }
.tile__icon { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: rgba(200, 161, 90, 0.14); color: var(--gold-deep); }
.section--dark .tile__icon, .section--ink2 .tile__icon { color: var(--gold-2); }
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { margin-top: 20px; font-size: 19px; font-weight: 700; }
.tile p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.section--dark .tile p, .section--ink2 .tile p { color: var(--muted-on-dark); }
.tile__num { font-family: var(--font-display); font-size: 44px; color: rgba(200, 161, 90, 0.5); line-height: 1; }

/* Check list */
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: rgba(200, 161, 90, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a07c3b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Spec table */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }
@media (max-width: 640px) { .specs { grid-template-columns: 1fr; } }

/* ---------- Tabs ---------- */

.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(12, 15, 20, 0.06); }
.section--dark .tabs, .section--ink2 .tabs, .tour .tabs { background: rgba(12, 15, 20, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tabs button {
  border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}
.section--dark .tabs button, .section--ink2 .tabs button, .tour .tabs button { color: rgba(255, 255, 255, 0.72); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.section--dark .tabs button[aria-selected="true"], .section--ink2 .tabs button[aria-selected="true"], .tour .tabs button[aria-selected="true"] { background: var(--gold); color: var(--ink); }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Price tables ---------- */

.pricebox { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
.pricebox__head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pricebox table { font-size: 15px; }
.pricebox th, .pricebox td { padding: 14px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.pricebox th { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: #fbf9f5; }
.pricebox td:last-child, .pricebox th:last-child { text-align: right; }
.pricebox tbody tr { transition: background-color 0.15s; }
.pricebox tbody tr:hover { background: #fbf8f2; }
.pricebox tr:last-child td { border-bottom: 0; }
.pricebox .num { font-variant-numeric: tabular-nums; font-weight: 700; }
.pricebox button.row-pick { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.pricebox button.row-pick:hover, .pricebox tr.is-picked button.row-pick { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pricebox tr.is-picked { background: #f8f1e3; }
.pricebox__note { padding: 14px 22px; font-size: 13px; color: var(--muted); background: #fbf9f5; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .pricebox th, .pricebox td { padding: 12px 14px; } }

/* Calculator */
.calc { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); position: sticky; top: calc(var(--header-h) + 20px); }
.calc h3 { font-family: var(--font-display); font-size: 30px; }
.calc__unit { margin-top: 6px; color: var(--gold-2); font-weight: 600; }
.calc__total { margin-top: 18px; font-family: var(--font-display); font-size: clamp(36px, 4vw, 48px); line-height: 1; }
.calc__total small { font-family: var(--font-body); font-size: 14px; color: var(--muted-on-dark); margin-left: 6px; }
.calc__save { margin-top: 6px; font-size: 14px; color: #8fe0a8; min-height: 1.4em; }
.calc__options { display: grid; gap: 8px; margin-top: 20px; }
.calc__options label {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-on-dark); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.calc__options label:has(input:checked) { border-color: var(--gold); background: rgba(200, 161, 90, 0.08); }
.calc__options input { accent-color: var(--gold); margin-top: 4px; }
.calc__options b { display: block; font-size: 15px; }
.calc__options span { font-size: 13px; color: var(--muted-on-dark); }
.calc__schedule { margin-top: 18px; display: grid; gap: 0; font-size: 14px; }
.calc__schedule div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line-on-dark); }
.calc__schedule div span:first-child { color: var(--muted-on-dark); }
.calc__schedule div span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.calc .btn { width: 100%; margin-top: 20px; }
.calc .tiny { margin-top: 12px; color: var(--muted-on-dark); }
.price-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .price-layout { grid-template-columns: 1fr; } .calc { position: static; } }

/* ---------- 3D tour ---------- */

.tour { position: relative; background: var(--ink); }
.tour__stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden; }
.tour__poster { position: absolute; inset: 0; transition: opacity 1s var(--ease); }
.tour.is-ready .tour__poster { opacity: 0; pointer-events: none; }
.tour__poster img { position: absolute; inset: 14% 12% 20%; width: 76%; height: 66%; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5)); border-radius: 12px; }
.tour__status { position: absolute; left: 0; right: 0; bottom: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 20px; text-align: center; color: var(--white); }
.tour__status p { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.tour__status p.is-plain { letter-spacing: 0; text-transform: none; font-size: 14px; font-weight: 500; }
.tour__bar { width: 160px; height: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; border-radius: 2px; }
.tour__bar::after { content: ""; display: block; width: 40%; height: 100%; background: var(--gold); animation: loadbar 1.4s ease-in-out infinite; }
.tour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; pointer-events: none; transition: opacity 0.8s var(--ease); }
.tour.is-ready iframe { opacity: 1; pointer-events: auto; }
.tour__switch { position: absolute; z-index: 3; top: 18px; left: 0; right: 0; display: flex; justify-content: center; padding: 0 16px; }
.tour__switch .tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
.tour__switch .tabs button { white-space: nowrap; }

/* ---------- Gallery ---------- */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery button { position: relative; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-2); }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.gallery button:nth-child(6n + 1) { grid-column: span 2; grid-row: span 2; }
.gallery button:nth-child(6n + 4) { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery button:nth-child(6n + 1) { grid-column: span 2; }
}
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8, 10, 14, 0.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.is-open { display: flex; animation: fadeIn 0.25s ease; }
.lightbox img { max-height: 100%; max-width: min(1400px, 100%); object-fit: contain; border-radius: 10px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.1); color: var(--white); width: 52px; height: 52px; border-radius: 50%; font-size: 22px; }
.lightbox button:hover { background: var(--gold); color: var(--ink); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 14px; }

/* Plan viewer */
.plan-view { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.plan-view img { width: 100%; border-radius: 12px; background: #f2ede4; }
.plan-view .tabs { margin-bottom: 16px; }

/* ---------- Embeds (click to load) ---------- */

.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed__cover { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; color: var(--white); }
.embed__cover img { width: 100%; height: 100%; object-fit: cover; }
.embed__cover::after { content: ""; position: absolute; inset: 0; background: rgba(12, 15, 20, 0.45); transition: background-color 0.3s; }
.embed__cover:hover::after { background: rgba(12, 15, 20, 0.3); }
.embed__play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 700; }
.embed__play i { width: 78px; height: 78px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 24px; box-shadow: 0 0 0 10px rgba(200, 161, 90, 0.25); transition: transform 0.3s var(--ease); }
.embed__cover:hover .embed__play i { transform: scale(1.08); }
.embed--map { aspect-ratio: 16 / 10; }
.video { border-radius: var(--radius); overflow: hidden; background: var(--ink-3); aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About / timeline ---------- */

.portrait-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.portrait-card img { width: 100%; height: 100%; object-fit: cover; }
.portrait-card__tag { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(12, 15, 20, 0.72); color: var(--white); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.portrait-card__tag b { font-family: var(--font-display); font-size: 24px; display: block; line-height: 1.1; }
.portrait-card__tag span { font-size: 13px; color: var(--gold-2); }

.timeline { list-style: none; display: grid; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline li:first-child { padding-top: 0; }
.timeline .when { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-deep); }
.timeline b { font-size: 18px; display: block; }
.timeline span { color: var(--muted); font-size: 15px; }

/* ---------- Testimonials ---------- */

.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(520px, 86%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
.quotes::-webkit-scrollbar { display: none; }
.quote { scroll-snap-align: start; padding: 34px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-on-dark); display: flex; flex-direction: column; gap: 22px; }
.quote__stars { color: var(--gold); letter-spacing: 3px; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.35; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.quote figcaption b { display: block; }
.quote figcaption span { font-size: 14px; color: var(--muted-on-dark); }
.slider-nav { display: flex; gap: 10px; }
.slider-nav button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: var(--white); font-size: 18px; transition: background-color 0.2s, color 0.2s; }
.slider-nav button:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 0 24px; transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(200, 161, 90, 0.6); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 18px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); display: flex; align-items: center; justify-content: center; font-weight: 500; transition: transform 0.3s var(--ease), background-color 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--gold); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- Forms ---------- */

.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(200, 161, 90, 0.16); }
.on-dark .field span { color: var(--muted-on-dark); }
.on-dark .field input, .on-dark .field select, .on-dark .field textarea { background: rgba(255, 255, 255, 0.04); border-color: var(--line-on-dark); color: var(--white); }
.on-dark .field select option { color: var(--text); }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.is-ok { color: #1c8a4a; }
.on-dark .form-status.is-ok { color: #8fe0a8; }

.contact-panel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-panel__side { background: var(--ink); color: var(--white); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 24px; }
.contact-panel__form { padding: clamp(28px, 4vw, 48px); }
@media (max-width: 900px) { .contact-panel { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; gap: 16px; }
.contact-list a, .contact-list div { display: flex; gap: 14px; align-items: center; }
.contact-list i { flex: none; width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(200, 161, 90, 0.14); color: var(--gold-2); font-style: normal; }
.contact-list i svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark); }
.contact-list b { font-weight: 600; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.18); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.socials svg { width: 18px; height: 18px; }

/* ---------- CTA band ---------- */

.cta-band { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); padding: clamp(36px, 6vw, 72px); background: var(--ink); color: var(--white); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 100% 0%, rgba(200, 161, 90, 0.3), transparent 60%); }
.cta-band .lead { margin-top: 12px; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding: clamp(64px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-on-dark); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }
.site-footer h3 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; font-weight: 700; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--gold-2); }
.footer-about p { margin-top: 16px; max-width: 42ch; }
.footer-about .socials { margin-top: 22px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ---------- Floating contact ---------- */

.fab { position: fixed; z-index: 90; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.fab a { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45); transition: transform 0.25s var(--ease); }
.fab a:hover { transform: scale(1.07); }
.fab svg { width: 26px; height: 26px; }
.fab__wa { background: var(--green); color: #fff; }
.fab__call { background: var(--ink); color: var(--gold-2); border: 1px solid rgba(200, 161, 90, 0.4); }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .fab { display: none; }
  .mobile-bar {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(12, 15, 20, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(200, 161, 90, 0.25);
  }
  .mobile-bar .btn { min-height: 46px; padding: 0 10px; font-size: 14px; }
  .mobile-bar .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.25); }
  body { padding-bottom: 72px; }
  #realtor-chatbot-root { bottom: 84px !important; }
}

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.hero .rise { opacity: 0; transform: translate3d(0, 24px, 0); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, 0s); }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes loadbar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .hero .rise { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- Utilities ---------- */

.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.pill-list li { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.section--dark .pill-list li, .section--ink2 .pill-list li { background: rgba(255, 255, 255, 0.04); border-color: var(--line-on-dark); }
.notice { padding: 16px 20px; border-radius: 14px; background: rgba(200, 161, 90, 0.12); border: 1px solid rgba(200, 161, 90, 0.35); font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.filters .field { flex: 1 1 170px; }
.filters .field select { padding: 12px 14px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Readability on photo and dark heroes */
.page-hero .eyebrow, .hero .eyebrow { color: var(--gold-2); }
.page-hero .lead { color: rgba(255, 255, 255, 0.82); }
.page-hero--image h1, .page-hero--image .lead, .page-hero--image .eyebrow { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
.gallery { grid-auto-flow: dense; }

.prose-link { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Old-site theme (dark + gold, Montserrat), applied to every page.
   The original header, hero and footer come from tailwind.css; these rules
   restyle the shared components to match them.
   ========================================================================== */

.old-theme {
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --text: #f3efe7;
  --muted: #a3a8b2;
  --muted-on-dark: #a3a8b2;
  --line: rgba(200, 161, 90, 0.18);
  --line-on-dark: rgba(200, 161, 90, 0.18);
  --paper: #0b0e13;
  --paper-2: #121821;
  --surface: #10151d;
  --gold-deep: #d4b17d;
  background: #0b0e13;
  color: #e9e6df;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 15px;
}

/* Sections: alternate the three near-blacks of the old site */
.old-theme .section, .old-theme .section--white { background: #0b0e13; }
.old-theme .section--sand, .old-theme .section--ink2 { background: #090c12; }
.old-theme .section--dark { background: #070a10; }
.old-theme .section { padding: clamp(64px, 8vw, 104px) 0; }
.old-theme .section--tight { padding: clamp(40px, 5vw, 64px) 0; }

/* Type: one simple sans, calmer sizes */
.old-theme .display { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
.old-theme .h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.015em; color: #fff; }
.old-theme .h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.25; }
.old-theme .h4, .old-theme .tile h3 { color: #fff; }
.old-theme .accent, .old-theme .section:not(.section--dark):not(.section--ink2) .accent { color: #d4b17d; font-style: normal; font-weight: inherit; }
.old-theme .eyebrow, .old-theme .card__kicker { color: #d4b17d; }
.old-theme .lead { color: #b7bcc5; font-size: clamp(15px, 1.3vw, 17px); }
.old-theme .muted { color: var(--muted); }
.old-theme .card__title { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: #fff; }
.old-theme .project__body .card__title { font-size: 26px; }
.old-theme .stat__value, .old-theme .section .stat__value { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); color: #e3c58c; }
.old-theme .tile__num { font-family: var(--font-display); font-weight: 700; font-size: 32px; }
.old-theme .section-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* Surfaces: dark cards with the old gold hairline */
.old-theme .card, .old-theme .tile, .old-theme .pricebox, .old-theme .faq details, .old-theme .plan-view,
.old-theme .filters, .old-theme .table-wrap, .old-theme .contact-panel {
  background: var(--surface);
  border-color: rgba(212, 177, 125, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.old-theme .card:hover { box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); border-color: rgba(212, 177, 125, 0.45); }
.old-theme .card__foot, .old-theme .specs div, .old-theme .pricebox th, .old-theme .pricebox td, .old-theme .timeline li { border-color: rgba(212, 177, 125, 0.14); }
.old-theme .pill-list li { background: rgba(255, 255, 255, 0.04); border-color: rgba(212, 177, 125, 0.22); color: #e7d9b5; }
.old-theme .stats { background: rgba(212, 177, 125, 0.18); border-color: rgba(212, 177, 125, 0.22); }
.old-theme .stats > div { background: var(--surface); }
.old-theme .stat__label { color: var(--muted); }
.old-theme .tile__icon { background: rgba(212, 177, 125, 0.12); color: #d4b17d; }
.old-theme .tile p, .old-theme .card .muted { color: var(--muted); }
.old-theme .timeline b { color: #fff; }
.old-theme .timeline .when { color: #d4b17d; }

/* Price tables and calculators */
.old-theme .pricebox th { background: #0d1219; color: #a3a8b2; }
.old-theme .pricebox tbody tr:hover { background: rgba(212, 177, 125, 0.05); }
.old-theme .pricebox tr.is-picked { background: rgba(212, 177, 125, 0.12); }
.old-theme .pricebox__note { background: #0d1219; color: var(--muted); border-color: rgba(212, 177, 125, 0.14); }
.old-theme .pricebox button.row-pick { border-color: rgba(212, 177, 125, 0.4); color: #e7d9b5; }
.old-theme .pricebox button.row-pick:hover, .old-theme .pricebox tr.is-picked button.row-pick { background: #d4b17d; color: #0b0e13; border-color: #d4b17d; }
.old-theme .calc { background: #070a10; border: 1px solid rgba(212, 177, 125, 0.35); }
.old-theme .calc h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.old-theme .calc__total { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3vw, 38px); }

/* Buttons and tabs, like the old gold buttons */
.old-theme .btn { border-radius: 6px; font-weight: 600; min-height: 46px; }
.old-theme .btn--gold { background: linear-gradient(180deg, #d4b17d, #b89655); color: #000; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.old-theme .btn--dark { background: transparent; color: #e7d9b5; border-color: rgba(212, 177, 125, 0.5); }
.old-theme .btn--dark:hover { border-color: #d4b17d; color: #d4b17d; }
.old-theme .btn--ghost { border-color: rgba(212, 177, 125, 0.45); color: #e7d9b5; background: rgba(255, 255, 255, 0.04); }
.old-theme .btn--ghost:hover { border-color: #d4b17d; color: #d4b17d; }
.old-theme .link-arrow { color: #d4b17d; }
.old-theme .tabs { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(212, 177, 125, 0.2); }
.old-theme .tabs button { color: #c9ccd2; }
.old-theme .tabs button[aria-selected="true"] { background: #d4b17d; color: #0b0e13; }

/* FAQ, forms, prose */
.old-theme .faq summary { color: #fff; font-weight: 600; font-size: 16px; }
.old-theme .faq summary::after { background: rgba(212, 177, 125, 0.12); color: #d4b17d; }
.old-theme .faq details[open] summary::after { background: #d4b17d; color: #0b0e13; }
.old-theme .field span { color: #a3a8b2; }
.old-theme .field input, .old-theme .field select, .old-theme .field textarea { background: rgba(255, 255, 255, 0.04); border-color: rgba(212, 177, 125, 0.25); color: #fff; }
.old-theme .field select option { color: #111; }
.old-theme .contact-panel__side { background: #070a10; }
.old-theme .prose { color: #c4c8cf; font-size: 16px; }
.old-theme .prose h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); color: #fff; }
.old-theme .prose h3, .old-theme .prose strong { color: #fff; }
.old-theme .prose a, .old-theme .prose-link { color: #d4b17d; }
.old-theme .prose th { color: #a3a8b2; }
.old-theme .prose th, .old-theme .prose td { border-color: rgba(212, 177, 125, 0.14); }
.old-theme .notice { background: rgba(212, 177, 125, 0.08); border-color: rgba(212, 177, 125, 0.35); color: #e9e6df; }
.old-theme .cta-band { background: #070a10; border: 1px solid rgba(212, 177, 125, 0.3); border-radius: 18px; }
.old-theme .badge--soft { background: rgba(212, 177, 125, 0.14); color: #d4b17d; }
.old-theme .empty { border-color: rgba(212, 177, 125, 0.3); color: var(--muted); }
.old-theme .embed, .old-theme .video { border: 1px solid rgba(212, 177, 125, 0.22); }
.old-theme .card__media, .old-theme .gallery button { background: #121821; }
.old-theme .checks li::before { background-color: rgba(212, 177, 125, 0.15); }

/* Inner page hero: below the old header (in the page flow on phones, fixed from 768px) */
.old-theme .page-hero { background: #070a10; padding: clamp(48px, 7vw, 80px) 0; border-bottom: 1px solid rgba(212, 177, 125, 0.18); }
@media (min-width: 768px) { .old-theme .page-hero { padding-top: calc(72px + clamp(48px, 7vw, 88px)); } }
.old-theme .page-hero h1 { max-width: 22ch; }
.old-theme .page-hero--image { min-height: min(72svh, 680px); }

/* Old header: trimmed logo at a smaller size; logo left and menu right on phones */
.hp2-logo { display: inline-flex; align-items: center; }
.hp2-logo img { display: block; height: 40px; width: auto; }
@media (min-width: 768px) { .hp2-logo img { height: 44px; } }
.hp2-logo--footer img { height: 52px; }
@media (max-width: 767px) {
  .hp2-bar { flex-direction: row !important; padding-top: 10px !important; padding-bottom: 10px !important; }
  .hp2-logo img { height: 36px; }
}
.hero-name { display: block; margin-bottom: 10px; font-family: "Montserrat", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.32em; color: #e7d9b5; font-size-adjust: none; line-height: 1.4; }

/* 3D tour under the auto-hiding old header: use the full screen */
.old-theme .tour__stage { top: 0; height: 100svh; }
.old-theme .tour__switch { top: 88px; }
.old-theme .tour-section .section-head { margin-bottom: 0; }

.old-theme .site-footer, .old-theme .fab, .old-theme .mobile-bar { display: none; }
@media (max-width: 760px) { .old-theme { padding-bottom: 0; } }

/* Popup: styles the old compiled Tailwind file never included */
#urgentProjectPopup a { padding: 14px 18px; border-radius: 12px; gap: 10px; }
#urgentProjectPopup h3 { font-size: 28px; font-size-adjust: none; font-weight: 700; }

/* Less congestion */
.old-theme .split .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.old-theme .specs.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; justify-content: initial; }
.old-theme .specs.facts dd { text-align: left !important; font-weight: 600; color: #fff; }
@media (max-width: 640px) { .old-theme .specs.facts div { grid-template-columns: 1fr; gap: 2px; } }
@media (max-width: 767px) {
  section[aria-label="Key highlights"] > div { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; padding-bottom: 8px !important; }
  section[aria-label="Key highlights"] > div > div { padding: 14px 6px !important; gap: 8px !important; }
  section[aria-label="Key highlights"] i { font-size: 20px !important; }
  section[aria-label="Key highlights"] span { font-size: 9.5px !important; letter-spacing: 0.08em !important; }
}

/* Hero promotion: Merit Piassa Shops discount */
.hero-promo {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(10, 12, 16, 0.72); border: 1px solid rgba(212, 177, 125, 0.55);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(212, 177, 125, 0.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #f1e6cf; font-size: 13px; font-weight: 500; line-height: 1.2;
  transition: border-color 0.2s, transform 0.2s;
}
.hero-promo:hover { border-color: #d4b17d; transform: translateY(-1px); }
.hero-promo__tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: linear-gradient(180deg, #d4b17d, #b89655); color: #000;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.hero-promo__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #0f7a3a; box-shadow: 0 0 0 3px rgba(15, 122, 58, 0.25); animation: pulse 1.8s infinite; }
.hero-promo__text b { color: #e3c58c; font-weight: 700; }
.hero-promo__go { color: #d4b17d; }
@media (max-width: 767px) {
  .hero-promo { margin-bottom: 16px; font-size: 12px; gap: 8px; padding-right: 12px; }
}

/* ---------- Blog: featured post card and article pages ---------- */
.post-feature { display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(16px, 2vw, 22px); border-radius: 20px; background: #10151d; border: 1px solid rgba(212, 177, 125, 0.25); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); transition: border-color .2s, transform .2s; }
.post-feature:hover { border-color: rgba(212, 177, 125, 0.6); transform: translateY(-2px); }
.post-feature__img img { display: block; width: 100%; height: auto; border-radius: 14px; }
.post-feature__body .card__title { font-size: clamp(24px, 3vw, 36px); line-height: 1.15; margin: 14px 0 12px; color: #fff; }
.post-feature__body p { color: #b7bcc5; font-size: 16px; line-height: 1.65; }
.post-meta { display: block; margin: 14px 0 18px; font-size: 13px; color: #8f96a1; }
@media (max-width: 860px) { .post-feature { grid-template-columns: 1fr; } }

.article { max-width: 760px; }
.article__byline { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid rgba(212, 177, 125, 0.18); }
.article__byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid rgba(212, 177, 125, 0.5); }
.article__byline b { color: #fff; font-size: 15px; }
.article__byline span { display: block; font-size: 13px; color: #8f96a1; margin-top: 2px; }
.article__figure { margin: 0 0 36px; }
.article__figure img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.old-theme .article__body { font-size: 17.5px; line-height: 1.8; color: #d0d3d9; }
.old-theme .article__body p { margin: 0 0 1.15em; }
.old-theme .article__body h2 { margin: 2.1em 0 0.7em; font-size: clamp(23px, 2.6vw, 30px); line-height: 1.2; padding-top: 1.1em; border-top: 1px solid rgba(212, 177, 125, 0.15); }
.old-theme .article__body em { color: #e7d9b5; font-style: normal; }
.pullquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid #d4b17d; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.4; font-weight: 600; color: #f1e6cf; }
.pill-list--prose { margin: 0 0 1.3em; padding: 0; }
.old-theme .pill-list--prose li { font-size: 14px; background: rgba(255, 255, 255, 0.04); border-color: rgba(212, 177, 125, 0.25); color: #e7d9b5; }
.question-list { counter-reset: q; list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.question-list li { counter-increment: q; position: relative; padding: 14px 18px 14px 62px; border-radius: 12px; background: #10151d; border: 1px solid rgba(212, 177, 125, 0.18); color: #fff; font-weight: 500; line-height: 1.5; }
.question-list li::before { content: counter(q, decimal-leading-zero); position: absolute; left: 18px; top: 13px; font-weight: 700; color: #d4b17d; }
.promise-table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 16px; }
.promise-table th { text-align: left; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #d4b17d; padding: 10px 14px; border-bottom: 2px solid rgba(212, 177, 125, 0.5); }
.promise-table td { padding: 13px 14px; border-bottom: 1px solid rgba(212, 177, 125, 0.14); }
.promise-table td:first-child { font-weight: 700; color: #fff; width: 32%; }
.article__body .notice { margin: 0 0 1.4em; font-size: 16.5px; line-height: 1.65; }
.closing { margin-top: 1.8em !important; padding: 26px 28px; border-radius: 16px; background: linear-gradient(135deg, rgba(212, 177, 125, 0.16), rgba(212, 177, 125, 0.04)); border: 1px solid rgba(212, 177, 125, 0.35); font-size: 19px; line-height: 1.6; font-weight: 600; color: #fff; }
.article__more { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(212, 177, 125, 0.18); display: grid; gap: 12px; }
.article__more a { display: block; padding: 16px 20px; border-radius: 12px; background: #10151d; border: 1px solid rgba(212, 177, 125, 0.18); transition: border-color .2s; }
.article__more a:hover { border-color: #d4b17d; }
.article__more a span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #d4b17d; }
.article__more a b { display: block; margin-top: 4px; color: #fff; font-size: 16px; }
@media (max-width: 640px) {
  .old-theme .article__body { font-size: 16.5px; }
  .question-list li { padding-left: 52px; }
  .closing { padding: 20px; font-size: 17.5px; }
}
.old-theme .article__body .pill-list--prose { padding-left: 0; margin-left: 0; }

/* ---------- Article reading surface: warm paper, dark ink, gold accents ---------- */
.old-theme .article-section { background: #f8f5ef; color: #2a2f37; }
.old-theme .article-section .article__byline { border-color: #e6ddcc; }
.old-theme .article-section .article__byline b { color: #12161d; }
.old-theme .article-section .article__byline span { color: #6b717c; }
.old-theme .article-section .article__figure img { box-shadow: 0 18px 40px rgba(18, 22, 29, 0.18); }
.old-theme .article-section .article__body { color: #2f343c; }
.old-theme .article-section .article__body h2 { color: #12161d; border-color: #e6ddcc; }
.old-theme .article-section .article__body strong, .old-theme .article-section .article__body b { color: #12161d; }
.old-theme .article-section .article__body em { color: #8a6a2f; font-style: italic; }
.old-theme .article-section .article__body a { color: #8a6a2f; text-decoration: underline; text-underline-offset: 3px; }
.old-theme .article-section .muted { color: #6b717c; }
.old-theme .article-section .pullquote { color: #12161d; border-color: #c8a15a; }
.old-theme .article-section .notice { background: #fff; border: 1px solid #e6ddcc; border-left: 4px solid #c8a15a; color: #2f343c; box-shadow: none; }
.old-theme .article-section .question-list li { background: #fff; border-color: #e6ddcc; color: #12161d; box-shadow: 0 2px 8px rgba(18, 22, 29, 0.04); }
.old-theme .article-section .question-list li::before { color: #a8833f; }
.old-theme .article-section .promise-table th { color: #8a6a2f; border-color: #c8a15a; }
.old-theme .article-section .promise-table td { border-color: #e6ddcc; color: #2f343c; }
.old-theme .article-section .promise-table td:first-child { color: #12161d; }
.old-theme .article-section .closing { background: #12161d; border: 0; color: #f3efe7; }
.old-theme .article-section .article__more { border-color: #e6ddcc; }
.old-theme .article-section .article__more a { background: #fff; border-color: #e6ddcc; }
.old-theme .article-section .article__more a:hover { border-color: #c8a15a; }
.old-theme .article-section .article__more a span { color: #8a6a2f; }
.old-theme .article-section .article__more a b { color: #12161d; }
.old-theme .article-section .eyebrow { color: #8a6a2f; }

/* ---------- Infographics ---------- */
.infographic { margin: 2em 0 2.2em; padding: clamp(18px, 3vw, 28px); background: #fff; border: 1px solid #e6ddcc; border-radius: 18px; box-shadow: 0 10px 30px rgba(18, 22, 29, 0.05); }
.infographic figcaption { margin-top: 16px; font-size: 14px; line-height: 1.55; color: #6b717c; }
.ig-label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #8a6a2f; margin-bottom: 14px; }
.old-theme .article-section .infographic p { margin: 0; }

.ig-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ig-panel { border-radius: 14px; padding: 16px; }
.ig-panel--bad { background: #f4f2ee; }
.ig-panel--good { background: #fbf6ec; border: 1px solid #ecd9b4; }
.ig-panel svg { display: block; width: 100%; height: auto; margin-bottom: 10px; }
.ig-panel p { font-size: 14.5px; line-height: 1.5; color: #4a505a; }
.ig-panel--bad .ig-label { color: #7d838d; }

.ig-track { display: grid; grid-template-columns: 6fr 4fr; gap: 14px; }
.ig-track__group { border-radius: 14px; padding: 16px 16px 6px; background: #fbf6ec; }
.ig-track__group + .ig-track__group { background: #12161d; }
.ig-track__title { display: block; font-size: 13px; font-weight: 700; color: #12161d; margin-bottom: 10px; }
.ig-track__group + .ig-track__group .ig-track__title { color: #e3c58c; }
.ig-track ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.ig-track ol[start="7"] { counter-reset: t 6; }
.ig-track li { counter-increment: t; position: relative; padding: 0 0 10px 34px; font-size: 14.5px; line-height: 1.45; color: #2f343c; font-weight: 500; }
.ig-track li::before { content: counter(t); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: #c8a15a; color: #12161d; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.ig-track li::after { content: ""; position: absolute; left: 10.5px; top: 22px; bottom: 2px; width: 1px; background: #d9c39a; }
.ig-track li:last-child::after { display: none; }
.ig-track__group + .ig-track__group li { color: #e9e6df; }
.ig-track__group + .ig-track__group li::after { background: rgba(200, 161, 90, 0.35); }

.ig-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.ig-flow__step { position: relative; padding: 14px 10px 14px; border-radius: 10px; background: #f4f2ee; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #2f343c; text-align: center; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.ig-flow__step b { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1.5px solid #c8a15a; color: #8a6a2f; font-size: 11.5px; display: grid; place-items: center; }
.ig-flow__step:not(:last-child)::after { content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; border-top: 2px solid #c8a15a; border-right: 2px solid #c8a15a; transform: translate(50%, -50%) rotate(45deg); background: transparent; z-index: 1; }
.ig-flow__step--key { background: #c8a15a; color: #12161d; }
.ig-flow__step--key b { background: #12161d; border-color: #12161d; color: #e3c58c; }
.ig-flow__step--last { background: #12161d; color: #f3efe7; }
.ig-flow__step--last b { background: transparent; color: #e3c58c; }

.ig-stairs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: end; height: 220px; }
.ig-stairs div { height: var(--h); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #e9d8b3, #d8bd86); display: flex; align-items: flex-end; justify-content: center; padding: 10px 6px; }
.ig-stairs div.is-top { background: linear-gradient(180deg, #c8a15a, #a8833f); }
.ig-stairs span { font-size: 13px; font-weight: 700; color: #12161d; text-align: center; line-height: 1.25; }
.ig-stairs div.is-top span { color: #fff; }

.ig-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.ig-vs__card { border-radius: 14px; padding: 18px; background: #f4f2ee; }
.ig-vs__card b { display: block; font-size: 26px; font-weight: 800; color: #12161d; margin-bottom: 6px; letter-spacing: -.01em; }
.ig-vs__card p { font-size: 15px; color: #4a505a; line-height: 1.5; }
.ig-vs__card--gold { background: #12161d; }
.ig-vs__card--gold .ig-label { color: #e3c58c; }
.ig-vs__card--gold b { color: #e3c58c; }
.old-theme .article-section .ig-vs__card--gold p, .old-theme .article-section .ig-vs__card--gold strong { color: #f3efe7; }
.ig-vs__arrow { align-self: center; font-size: 28px; color: #c8a15a; font-weight: 700; }

@media (max-width: 680px) {
  .ig-compare, .ig-track { grid-template-columns: 1fr; }
  .ig-flow { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ig-flow__step { min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px; }
  .ig-flow__step::after { display: none; }
  .ig-stairs { height: 200px; gap: 5px; }
  .ig-stairs span { font-size: 10.5px; }
  .ig-vs { grid-template-columns: 1fr; }
  .ig-vs__arrow { transform: rotate(90deg); justify-self: center; }
}
/* Infographic text colours win over the article's bold-text colour */
.old-theme .article-section .article__body .ig-flow__step b { color: #8a6a2f; }
.old-theme .article-section .article__body .ig-flow__step--key b { color: #e3c58c; }
.old-theme .article-section .article__body .ig-flow__step--last b { color: #e3c58c; }
.old-theme .article-section .article__body .ig-vs__card--gold b { color: #e3c58c; }
.old-theme .article-section .article__body .ig-vs__card--gold strong { color: #fff; }
/* Article pages: the header scrolls away with the page so nothing covers the text */
@media (min-width: 768px) {
  body:has(.article-section) header[data-scroll-nav] { position: relative !important; opacity: 1 !important; transform: none !important; }
  body:has(.article-section) .page-hero { padding-top: clamp(48px, 7vw, 88px); }
}
/* Article pages: header is part of the page, never fixed or hidden */
body.is-article header[data-scroll-nav] { position: relative !important; opacity: 1 !important; transform: none !important; }
@media (min-width: 768px) { body.is-article .page-hero { padding-top: clamp(48px, 7vw, 88px); } }
/* Compare graphic: stronger contrast */
.ig-panel--bad { background: #ece8e0; }
.ig-panel--good { background: #fbf2df; border: 1.5px solid #dcbf86; }
.ig-panel p { color: #2f343c; }
.ig-panel--bad .ig-label { color: #4a505a; }
.ig-panel--good .ig-label { color: #7a5a22; }
.ig-label { color: #7a5a22; }
.infographic figcaption { color: #4a505a; }
.ig-flow__step { background: #ece8e0; color: #12161d; }
.ig-vs__card { background: #ece8e0; }
.ig-vs__card p { color: #2f343c; }
.ig-vs__card.ig-vs__card--gold { background: #12161d; }
.ig-flow__step.ig-flow__step--key { background: #c8a15a; }
.ig-flow__step.ig-flow__step--last { background: #12161d; color: #f3efe7; }

/* ---------- Infographic hover effects (off for reduce-motion users) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .infographic { transition: box-shadow .35s ease, transform .35s ease; }
  .infographic:hover { box-shadow: 0 18px 44px rgba(18, 22, 29, 0.10); transform: translateY(-2px); }

  /* 1. Compare: the confused brand shakes, the clear brand's line glows */
  .ig-panel { transition: transform .3s ease, box-shadow .3s ease; }
  .ig-panel:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18, 22, 29, 0.10); }
  .ig-panel svg rect, .ig-panel svg circle, .ig-panel svg line, .ig-panel svg text { transition: transform .3s ease, opacity .3s ease, stroke-width .3s ease; transform-box: fill-box; transform-origin: center; }
  .ig-panel--bad:hover svg circle { animation: ig-shake .5s ease-in-out 2; }
  .ig-panel--bad:hover svg g:first-of-type { animation: ig-dash 1s linear infinite; }
  .ig-panel--good:hover svg line { stroke-width: 6; }
  .ig-panel--good:hover svg circle { transform: scale(1.08); }
  .ig-panel--good:hover svg g rect, .ig-panel--good:hover svg g text { opacity: .45; }

  /* 2. Touchpoints: each step lights up */
  .ig-track__group { transition: transform .3s ease; }
  .ig-track__group:hover { transform: translateY(-2px); }
  .ig-track li { transition: transform .2s ease, color .2s ease; cursor: default; }
  .ig-track li::before { transition: transform .2s ease, box-shadow .2s ease; }
  .ig-track li:hover { transform: translateX(4px); color: #8a6a2f; }
  .ig-track__group + .ig-track__group li:hover { color: #e3c58c; }
  .ig-track li:hover::before { transform: scale(1.18); box-shadow: 0 0 0 4px rgba(200, 161, 90, 0.25); }

  /* 3. Flow: steps lift; hovering the graphic runs a gold pulse along the arrows */
  .ig-flow__step { transition: transform .25s ease, box-shadow .25s ease; }
  .ig-flow__step:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(18, 22, 29, 0.14); z-index: 2; }
  .ig-flow:hover .ig-flow__step:not(:last-child)::after { animation: ig-nudge .9s ease-in-out infinite; }

  /* 4. Stairs: bars rise in sequence, the hovered bar glows */
  .ig-stairs div { transition: transform .3s ease, filter .3s ease, box-shadow .3s ease; transform-origin: bottom; }
  .infographic:hover .ig-stairs div { animation: ig-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
  .infographic:hover .ig-stairs div:nth-child(2) { animation-delay: .08s; }
  .infographic:hover .ig-stairs div:nth-child(3) { animation-delay: .16s; }
  .infographic:hover .ig-stairs div:nth-child(4) { animation-delay: .24s; }
  .infographic:hover .ig-stairs div:nth-child(5) { animation-delay: .32s; }
  .ig-stairs div:hover { filter: brightness(1.06); box-shadow: 0 10px 24px rgba(168, 131, 63, 0.35); }

  /* 5. Awareness vs meaning: arrow slides, meaning card glows */
  .ig-vs__card { transition: transform .3s ease, box-shadow .3s ease; }
  .ig-vs__card:hover { transform: translateY(-3px); }
  .ig-vs__card--gold:hover { box-shadow: 0 14px 32px rgba(18, 22, 29, 0.25), 0 0 0 2px #c8a15a; }
  .ig-vs:hover .ig-vs__arrow { animation: ig-slide 1s ease-in-out infinite; }

  @keyframes ig-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
  @keyframes ig-dash { to { stroke-dashoffset: -20; } }
  @keyframes ig-nudge { 0%, 100% { transform: translate(50%, -50%) rotate(45deg); } 50% { transform: translate(110%, -50%) rotate(45deg); } }
  @keyframes ig-rise { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
  @keyframes ig-slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
  @media (max-width: 680px) { .ig-vs:hover .ig-vs__arrow { animation: none; } }
}

/* ---------- Article: differentiation graphics ---------- */
.title-kicker { display: block; margin-top: .35em; font-size: .56em; line-height: 1.2; }
.old-theme .article-section .article__body .lede { font-size: 1.12em; line-height: 1.7; color: #12161d; }
.h2-num { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: .5em; border-radius: 50%; background: #c8a15a; color: #12161d; font-size: .72em; vertical-align: .12em; }

/* Same promises: identical grey speech bubbles */
.ig-claims { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 12px; }
.ig-claims li { position: relative; padding: 14px 12px; border-radius: 12px; background: #3a3f48; color: #f3efe7; font-size: 14.5px; font-weight: 600; text-align: center; }
.ig-claims li::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #3a3f48; transform: translateX(-50%) rotate(45deg); }

/* Four tests */
.ig-tests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ig-tests div { padding: 16px 14px; border-radius: 12px; background: #fbf2df; border: 1px solid #e6cf9f; font-size: 15px; font-weight: 700; color: #12161d; line-height: 1.3; }
.ig-tests b { display: block; margin-bottom: 8px; font-size: 12px; color: #8a6a2f; letter-spacing: .1em; }
.ig-tests div:last-child { background: #12161d; border-color: #12161d; color: #f3efe7; }
.ig-tests div:last-child b { color: #e3c58c; }

/* Six options */
.ig-options { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ig-options li { position: relative; padding: 14px 16px 14px 46px; border-radius: 12px; background: #fff; border: 1px solid #e6ddcc; font-size: 15.5px; line-height: 1.45; color: #2f343c; }
.ig-options li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%; background: #c8a15a; box-shadow: inset 0 0 0 5px #fbf2df; }

/* Chips */
.ig-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ig-chips li { padding: 9px 15px; border-radius: 999px; background: #fbf2df; border: 1px solid #e6cf9f; font-size: 14px; font-weight: 600; color: #12161d; }

/* Four reflections */
.ig-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ig-four div { padding: 20px 12px; border-radius: 12px; background: #12161d; text-align: center; }
.old-theme .article-section .article__body .ig-four b { color: #e3c58c; font-size: 15px; }

/* Pressure */
.ig-pressure { display: grid; grid-template-columns: 1fr 48px 1.6fr; align-items: center; gap: 10px; }
.ig-pressure__src { padding: 22px 16px; border-radius: 12px; background: #12161d; color: #e3c58c; font-weight: 700; text-align: center; font-size: 16px; }
.ig-pressure__arrow { height: 3px; background: #c8a15a; position: relative; }
.ig-pressure__arrow::after { content: ""; position: absolute; right: -2px; top: 50%; width: 12px; height: 12px; border-top: 3px solid #c8a15a; border-right: 3px solid #c8a15a; transform: translateY(-50%) rotate(45deg); }
.ig-pressure__list { display: grid; gap: 8px; }
.ig-pressure__list span { padding: 10px 14px; border-radius: 10px; background: #fbeee9; border-left: 4px solid #c2643f; color: #12161d; font-weight: 600; font-size: 14.5px; }

/* Says vs experiences lists inside the comparison cards */
.ig-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ig-mini li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.4; color: #2f343c; }
.ig-mini li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: #9c927f; }
.ig-vs__card--gold .ig-mini li { color: #f3efe7; }
.ig-vs__card--gold .ig-mini li::before { background: #c8a15a; }

/* Pillars */
.ig-pillars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-items: stretch; }
.ig-pillars div { position: relative; padding: 46px 10px 16px; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, #fbf2df, #ecd6a8); border-bottom: 4px solid #a8833f; font-size: 14px; font-weight: 700; color: #12161d; text-align: center; line-height: 1.3; }
.ig-pillars div::before { content: ""; position: absolute; top: 16px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: #c8a15a; transform: translateX(-50%); box-shadow: 0 0 0 5px rgba(200, 161, 90, .2); }
.ig-pillars div:last-child { background: linear-gradient(180deg, #2a3039, #12161d); color: #e3c58c; border-bottom-color: #c8a15a; }

@media (max-width: 680px) {
  .ig-claims { grid-template-columns: 1fr 1fr; }
  .ig-tests, .ig-four { grid-template-columns: 1fr 1fr; }
  .ig-options { grid-template-columns: 1fr; }
  .ig-pressure { grid-template-columns: 1fr; }
  .ig-pressure__arrow { width: 3px; height: 34px; justify-self: center; }
  .ig-pressure__arrow::after { right: auto; top: auto; bottom: -2px; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .ig-pillars { grid-template-columns: 1fr; }
  .ig-pillars div { padding: 14px 14px 14px 48px; text-align: left; border-radius: 10px; }
  .ig-pillars div::before { top: 50%; left: 16px; transform: translateY(-50%); }
}

@media (prefers-reduced-motion: no-preference) {
  .ig-claims li, .ig-tests div, .ig-options li, .ig-chips li, .ig-four div, .ig-pressure__list span, .ig-pillars div { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, opacity .25s ease; }
  .ig-claims:hover li { opacity: .55; }
  .ig-claims li:hover { opacity: 1; transform: translateY(-3px); }
  .ig-tests div:hover, .ig-four div:hover, .ig-pillars div:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(18, 22, 29, .14); }
  .ig-options li:hover { transform: translateX(4px); border-color: #c8a15a; }
  .ig-chips li:hover { transform: translateY(-2px); background: #c8a15a; }
  .ig-pressure:hover .ig-pressure__list span { animation: ig-press .5s ease both; }
  .ig-pressure:hover .ig-pressure__list span:nth-child(2) { animation-delay: .08s; }
  .ig-pressure:hover .ig-pressure__list span:nth-child(3) { animation-delay: .16s; }
  .ig-pressure:hover .ig-pressure__list span:nth-child(4) { animation-delay: .24s; }
  .infographic:hover .ig-pillars div { animation: ig-rise .55s cubic-bezier(.2, .8, .2, 1) both; transform-origin: bottom; }
  .infographic:hover .ig-pillars div:nth-child(2) { animation-delay: .06s; }
  .infographic:hover .ig-pillars div:nth-child(3) { animation-delay: .12s; }
  .infographic:hover .ig-pillars div:nth-child(4) { animation-delay: .18s; }
  .infographic:hover .ig-pillars div:nth-child(5) { animation-delay: .24s; }
  @keyframes ig-press { 0% { transform: translateX(0); } 40% { transform: translateX(6px); background: #f6d9cd; } 100% { transform: translateX(0); } }
}
/* Graphic lists sit flush with the text, not indented like normal lists */
.old-theme .article-section .article__body ul.ig-claims, .old-theme .article-section .article__body ul.ig-options, .old-theme .article-section .article__body ul.ig-chips,
.old-theme .article-section .article__body ul.ig-mini, .old-theme .article-section .article__body ol.question-list { padding-left: 0; margin-left: 0; }
.old-theme .article-section .article__body .ig-claims li, .old-theme .article-section .article__body .ig-options li, .old-theme .article-section .article__body .ig-chips li,
.old-theme .article-section .article__body .question-list li { margin: 0; }
.old-theme .article-section .article__body .ig-tests div:last-child b { color: #e3c58c; }
.old-theme .article-section .article__body .ig-tests b { color: #8a6a2f; }

/* ---------- Article: relationship marketing graphics ---------- */
.ig-flow.ig-flow--4 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ig-flow.ig-flow--7 { grid-template-columns: repeat(7, 1fr); gap: 10px; }
.ig-flow--7 .ig-flow__step { font-size: 12.5px; padding: 12px 6px; }
.ig-four.ig-four--3 { grid-template-columns: repeat(3, 1fr); }
.ig-pillars.ig-pillars--4 { grid-template-columns: repeat(4, 1fr); }

/* Before / after signing */
.ig-split { display: grid; grid-template-columns: 1fr auto 1.5fr; align-items: stretch; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid #e6ddcc; }
.ig-split__before { padding: 20px 18px; background: #ece8e0; display: flex; flex-direction: column; gap: 8px; }
.ig-split__after { padding: 20px 20px; background: #12161d; display: flex; flex-direction: column; gap: 10px; }
.ig-split__tag { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b6255; }
.ig-split__after .ig-split__tag { color: #e3c58c; }
.ig-split__text { font-size: 15px; font-weight: 600; line-height: 1.4; color: #2f343c; }
.ig-split__after .ig-mini li { color: #f3efe7; }
.ig-split__after .ig-mini li::before { background: #c8a15a; }
.ig-split__pin { position: relative; display: grid; place-items: center; width: 108px; background: linear-gradient(90deg, #ece8e0 50%, #12161d 50%); }
.ig-split__pin span { position: relative; z-index: 1; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #c8a15a; color: #12161d; font-size: 12.5px; font-weight: 800; line-height: 1.2; text-align: center; padding: 10px; box-shadow: 0 0 0 6px rgba(200, 161, 90, .25); }

/* Cause and effect */
.ig-effect { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ig-effect__card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px; border-radius: 14px; text-align: center; }
.ig-effect__card--good { background: #12161d; }
.ig-effect__card--bad { background: #fbeee9; border: 1px solid #efc9b9; }
.ig-effect__cause { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.ig-effect__card--good .ig-effect__cause { color: #f3efe7; }
.ig-effect__card--bad .ig-effect__cause { color: #12161d; }
.ig-effect__arrow { font-size: 22px; line-height: 1; }
.ig-effect__card--good .ig-effect__arrow { color: #c8a15a; }
.ig-effect__card--bad .ig-effect__arrow { color: #c2643f; }
.ig-effect__result { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.ig-effect__card--good .ig-effect__result { background: #c8a15a; color: #12161d; }
.ig-effect__card--bad .ig-effect__result { background: #c2643f; color: #fff; }

/* Three relationship levels */
.old-theme .article-section .article__body ul.ig-levels { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ig-levels li { position: relative; margin: 0; padding: 54px 18px 20px; border-radius: 14px; background: #fff; border: 1px solid #e6ddcc; border-top: 4px solid #c8a15a; font-size: 15px; line-height: 1.55; color: #2f343c; }
.ig-levels li::before, .ig-levels li::marker { content: none; }
.ig-levels__n { position: absolute; top: 16px; left: 18px; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: #a8833f; }
.old-theme .article-section .article__body .ig-levels strong { display: block; margin-bottom: 6px; font-size: 16.5px; color: #12161d; }
.ig-levels li:nth-child(3) { background: #12161d; border-color: #12161d; border-top-color: #c8a15a; color: #dcd6cb; }
.old-theme .article-section .article__body .ig-levels li:nth-child(3) strong { color: #e3c58c; }
.ig-levels li:nth-child(3) .ig-levels__n { color: #e3c58c; }

/* Ecosystem */
.ig-eco { display: grid; justify-items: center; gap: 0; }
.ig-eco__hub { position: relative; padding: 14px 26px; border-radius: 999px; background: #12161d; color: #e3c58c; font-weight: 800; font-size: 15px; letter-spacing: .02em; }
.ig-eco__hub::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 22px; background: #c8a15a; }
.ig-eco__ring { margin-top: 22px; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 18px; border-top: 2px solid #c8a15a; }
.ig-eco__ring span { padding: 14px 10px; border-radius: 12px; background: #fbf2df; border: 1px solid #e6cf9f; text-align: center; font-size: 14.5px; font-weight: 700; color: #12161d; }
.ig-eco__ring span:first-child { background: #c8a15a; border-color: #c8a15a; }
.ig-eco__base { margin-top: 14px; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 14px; border-radius: 12px; background: #ece8e0; }
.ig-eco__base span { padding: 7px 13px; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 600; color: #12161d; }
.ig-eco__base .ig-eco__base-label { background: transparent; padding: 0 4px 0 0; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b6255; }

@media (max-width: 680px) {
  .ig-flow.ig-flow--4, .ig-flow.ig-flow--7 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ig-flow--7 .ig-flow__step { font-size: 13.5px; padding: 12px; }
  .ig-four.ig-four--3 { grid-template-columns: 1fr; }
  .ig-pillars.ig-pillars--4 { grid-template-columns: 1fr; }
  .ig-split { grid-template-columns: 1fr; }
  .ig-split__pin { width: auto; padding: 14px 0; background: linear-gradient(180deg, #ece8e0 50%, #12161d 50%); }
  .ig-effect { grid-template-columns: 1fr; }
  .old-theme .article-section .article__body ul.ig-levels { grid-template-columns: 1fr; }
  .ig-eco__ring { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: no-preference) {
  .ig-split__pin span, .ig-effect__card, .ig-levels li, .ig-eco__ring span, .ig-eco__hub { transition: transform .25s ease, box-shadow .25s ease; }
  .ig-split:hover .ig-split__pin span { animation: ig-pulse 1.4s ease-in-out infinite; }
  .ig-split:hover .ig-split__after .ig-mini li { animation: ig-fadein .45s ease both; }
  .ig-split:hover .ig-split__after .ig-mini li:nth-child(2) { animation-delay: .08s; }
  .ig-split:hover .ig-split__after .ig-mini li:nth-child(3) { animation-delay: .16s; }
  .ig-split:hover .ig-split__after .ig-mini li:nth-child(4) { animation-delay: .24s; }
  .ig-effect__card:hover, .ig-levels li:hover, .ig-eco__ring span:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(18, 22, 29, .14); }
  .ig-effect__card:hover .ig-effect__arrow { animation: ig-drop .8s ease-in-out infinite; }
  .ig-eco:hover .ig-eco__hub { box-shadow: 0 0 0 6px rgba(200, 161, 90, .3); }
  .ig-eco:hover .ig-eco__ring span { animation: ig-fadein .4s ease both; }
  .ig-eco:hover .ig-eco__ring span:nth-child(2) { animation-delay: .05s; }
  .ig-eco:hover .ig-eco__ring span:nth-child(3) { animation-delay: .1s; }
  .ig-eco:hover .ig-eco__ring span:nth-child(4) { animation-delay: .15s; }
  .ig-eco:hover .ig-eco__ring span:nth-child(5) { animation-delay: .2s; }
  .ig-eco:hover .ig-eco__ring span:nth-child(6) { animation-delay: .25s; }
  @keyframes ig-pulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(200, 161, 90, .25); } 50% { box-shadow: 0 0 0 14px rgba(200, 161, 90, .08); } }
  @keyframes ig-fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes ig-drop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
}
.old-theme .article-section .article__body ul.ig-levels > li { margin: 0; align-self: stretch; }

/* ---------- Article layout: text column + sidebar on wide screens ---------- */
.article-layout { display: block; }
.article-layout .article { margin-inline: auto; }
.article-side { display: none; }
@media (min-width: 1100px) {
  .article-layout { display: grid; grid-template-columns: minmax(0, 780px) 300px; justify-content: space-between; gap: 56px; align-items: start; }
  .article-layout .article { max-width: 780px; margin: 0; }
  .article-side { display: block; align-self: stretch; }
  .article-side__inner { position: sticky; top: 28px; display: grid; gap: 16px; }
}
.side-card { padding: 20px; border-radius: 16px; background: #fff; border: 1px solid #e6ddcc; box-shadow: 0 10px 30px rgba(18, 22, 29, 0.05); }
.side-card__label { display: block; margin-bottom: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8a6a2f; }
.side-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: calc(100vh - 420px); min-height: 120px; overflow-y: auto; }
.side-toc a { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 9px; font-size: 13.5px; line-height: 1.35; color: #3a3f48; transition: background .2s, color .2s; }
.side-toc a i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f1ead9; color: #8a6a2f; font-style: normal; font-size: 11px; font-weight: 800; }
.side-toc a:hover { background: #f8f5ef; color: #12161d; }
.side-toc a.is-active { background: #12161d; color: #f3efe7; }
.side-toc a.is-active i { background: #c8a15a; color: #12161d; }
.side-author { display: grid; justify-items: center; text-align: center; gap: 4px; }
.side-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid #c8a15a; margin-bottom: 6px; }
.side-author b { font-size: 15.5px; color: #12161d; }
.side-author span { font-size: 12.5px; line-height: 1.4; color: #6b717c; margin-bottom: 10px; }
.side-author .btn { width: 100%; justify-content: center; }
.side-author__call { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: #12161d; }
.side-author__call svg, .side-share svg { width: 16px; height: 16px; }
.side-share div { display: flex; gap: 8px; }
.side-share a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #f8f5ef; border: 1px solid #e6ddcc; color: #12161d; transition: background .2s, transform .2s, color .2s; }
.side-share a:hover { background: #c8a15a; border-color: #c8a15a; transform: translateY(-2px); }
.old-theme .article__body h2[id] { scroll-margin-top: 24px; }

/* Table of contents follows the reader */
.side-toc ol { position: relative; padding: 10px 4px 10px 0; scrollbar-width: thin; scrollbar-color: #d9c49a transparent; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%); }
.side-toc ol::-webkit-scrollbar { width: 4px; }
.side-toc ol::-webkit-scrollbar-thumb { background: #d9c49a; border-radius: 4px; }
.side-toc ol::-webkit-scrollbar-track { background: transparent; }
.side-toc a.is-done { color: #8a8f98; }
.side-toc a.is-done i { background: #c8a15a; color: #fff; }
