/* ==========================================================================
   Masterworkx Media — site.css
   Design system + components. Layout is flexbox only (no CSS grid) so every
   section maps to Elementor flex Containers. See ELEMENTOR-HANDOFF.md.
   ========================================================================== */

/* ---------- 1. Fonts (Termina loads from the Adobe Fonts kit in <head>) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- 2. Tokens (map to Elementor Global Colors / Fonts) ---------- */
:root {
  --ink: #05121b;
  --navy: #0a2332;
  --navy-2: #12324a;
  --navy-3: #2b5675;
  --glacier: #aaceee;
  --glacier-2: #cfe3f5;
  --mist: #dce9f5;
  --paper: #f7f7f6;
  --stone: #ece8e1;
  --stone-2: #e2ddd4;
  --brass: #c8a46b;
  --white: #ffffff;
  --black: #000000;

  --font-display: "termina", "Archivo Expanded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --fs-display: clamp(1.6rem, 0.6rem + 3.6vw, 4rem);
  --fs-h1: clamp(1.55rem, 0.6rem + 3vw, 3.4rem);
  --fs-h2: clamp(1.35rem, 0.75rem + 1.9vw, 2.6rem);
  --fs-h3: clamp(0.98rem, 0.9rem + 0.3vw, 1.18rem);
  --fs-h4: 0.95rem;
  --fs-lead: clamp(1.06rem, 0.98rem + 0.32vw, 1.28rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-quote: clamp(1.75rem, 1rem + 2.6vw, 3.3rem);

  --container: 1360px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --gap: clamp(1.25rem, 2.4vw, 2rem);
  --gap-lg: clamp(2rem, 5vw, 5rem);
  --section-y: clamp(5rem, 10vw, 9.5rem);
  --header-h: 84px;

  --radius: 6px;
  --radius-lg: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-lg: 0 30px 80px -30px rgba(5, 18, 27, 0.55);
  --shadow-md: 0 18px 40px -22px rgba(5, 18, 27, 0.45);

  /* theme defaults (paper) */
  --bg: var(--paper);
  --fg: var(--navy);
  --fg-muted: #4a5d6b;
  --line: rgba(10, 35, 50, 0.14);
  --line-strong: rgba(10, 35, 50, 0.32);
  --accent: var(--navy-3);
  --card: var(--white);
}

/* ---------- 3. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--glacier); outline-offset: 3px; border-radius: 2px; }
.theme-paper :focus-visible, .theme-stone :focus-visible { outline-color: var(--navy-3); }
::selection { background: var(--glacier); color: var(--navy); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 10001; padding: 0.75rem 1.1rem;
  background: var(--glacier); color: var(--navy); font-weight: 600; border-radius: 999px;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
main { display: block; }

/* ---------- 4. Layout primitives (Elementor Containers) ---------- */
.section {
  position: relative;
  padding-block: var(--section-y);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
}
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--flush-top { padding-top: 0; }
.container {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.container--narrow { max-width: 960px; }
.container--wide { max-width: 1560px; }
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.stack--sm { gap: 0.75rem; }
.stack--lg { gap: 2rem; }
.row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.row--center { align-items: center; }
.row--end { align-items: flex-end; }
.row--between { justify-content: space-between; }
.row--gap-lg { gap: var(--gap-lg); }
.col { flex: 1 1 0; min-width: 0; }
.col-1-2 { flex: 1 1 calc((100% - var(--gap)) / 2); min-width: 0; }
.col-1-3 { flex: 1 1 calc((100% - 2 * var(--gap)) / 3); min-width: 0; }
.col-2-3 { flex: 2 1 calc((100% - var(--gap)) * 2 / 3); min-width: 0; }
.col-1-4 { flex: 1 1 calc((100% - 3 * var(--gap)) / 4); min-width: 0; }
.col-5-12 { flex: 5 1 0; min-width: 0; }
.col-7-12 { flex: 7 1 0; min-width: 0; }
.row--gap-lg > .col-5-12, .row--gap-lg > .col-7-12 { flex-basis: 0; }

/* section header pattern */
.section-head { display: flex; flex-wrap: wrap; gap: 1.5rem var(--gap-lg); align-items: flex-end; justify-content: space-between; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head__main { flex: 1 1 520px; display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.section-head__aside { flex: 0 1 440px; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; min-width: 0; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center .section-head__main { align-items: center; flex-basis: 100%; max-width: 900px; }

/* ---------- 5. Typography ---------- */
.display, .h1, .h2, .h3, .h4,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: inherit;
}
.display { font-size: var(--fs-display); line-height: 1.04; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1.08; }
h1, h2, h3, .display, .h1, .h2, .h3 { overflow-wrap: break-word; }
h2, .h2 { font-size: var(--fs-h2); line-height: 1.09; }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: 0.01em; }
h4, .h4 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 600; letter-spacing: 0.02em; }
.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--accent);
  font-size: 1.14em;
  line-height: 0.9;
  padding-right: 0.04em;
}
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--fg-muted); max-width: 40rem; }
.text-muted { color: var(--fg-muted); }
.small { font-size: var(--fs-small); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; flex: 0 0 auto; width: 28px; height: 1px; background: currentColor; opacity: 0.8; }
.eyebrow--plain::before { display: none; }
.eyebrow__index { font-variant-numeric: tabular-nums; opacity: 0.6; margin-right: -0.35rem; }
.prose { max-width: 46rem; color: var(--fg-muted); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); color: var(--fg); margin-top: 2.2em; }
.prose h3 { font-size: 1.05rem; color: var(--fg); margin-top: 1.8em; }
.prose a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4em; }
.prose strong { color: var(--fg); }

/* ---------- 6. Themes & textures ---------- */
.theme-ink { --bg: var(--ink); --fg: var(--paper); --fg-muted: rgba(247, 247, 246, 0.68); --line: rgba(170, 206, 238, 0.14); --line-strong: rgba(170, 206, 238, 0.34); --accent: var(--glacier); --card: rgba(170, 206, 238, 0.05); }
.theme-navy { --bg: var(--navy); --fg: var(--paper); --fg-muted: rgba(247, 247, 246, 0.7); --line: rgba(170, 206, 238, 0.16); --line-strong: rgba(170, 206, 238, 0.36); --accent: var(--glacier); --card: rgba(170, 206, 238, 0.06); }
.theme-paper { --bg: var(--paper); --fg: var(--navy); --fg-muted: #4a5d6b; --line: rgba(10, 35, 50, 0.13); --line-strong: rgba(10, 35, 50, 0.3); --accent: var(--navy-3); --card: var(--white); }
.theme-stone { --bg: var(--stone); --fg: var(--navy); --fg-muted: #51606a; --line: rgba(10, 35, 50, 0.14); --line-strong: rgba(10, 35, 50, 0.32); --accent: var(--navy-3); --card: var(--paper); }
.theme-ink, .theme-navy, .theme-paper, .theme-stone { background-color: var(--bg); color: var(--fg); }

.has-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/grain.png");
  background-size: 128px 128px;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.theme-paper.has-grain::after, .theme-stone.has-grain::after { opacity: 0.16; mix-blend-mode: multiply; }
.has-topo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/topo-lines-light.svg") center / cover no-repeat;
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}
.theme-paper.has-topo::before, .theme-stone.has-topo::before { background-image: url("../img/topo-lines-dark.svg"); }
.has-blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(170, 206, 238, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 206, 238, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(170, 206, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(170, 206, 238, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}
.section > .container { z-index: 2; }

/* thin drafting rule with ticks */
.rule {
  position: relative;
  height: 1px;
  width: 100%;
  background: var(--line-strong);
}
.rule::before, .rule::after { content: ""; position: absolute; top: -4px; width: 1px; height: 9px; background: var(--line-strong); }
.rule::before { left: 0; }
.rule::after { right: 0; }

/* ---------- 7. Buttons & links ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  background: var(--glacier);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--white);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(0.98); }
.btn__icon { width: 15px; height: 15px; flex: 0 0 auto; transition: transform 0.45s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--bg); box-shadow: inset 0 0 0 1px var(--fg); }
.btn--dark { background: var(--navy); color: var(--paper); }
.btn--dark::before { background: var(--navy-3); }
.btn--sm { min-height: 42px; padding: 0.7rem 1.2rem; font-size: 0.75rem; }
.btn--lg { min-height: 60px; padding: 1.15rem 2rem; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg);
  padding-bottom: 0.3rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease), gap 0.4s var(--ease);
}
.link-arrow:hover { background-size: 30% 1px; gap: 0.9rem; }
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- 8. Header & navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  color: var(--paper);
  transition: background-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease), transform 0.5s var(--ease), box-shadow 0.45s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(5, 18, 27, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(170, 206, 238, 0.12);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  height: 100%;
  max-width: 1560px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-header__logo { flex: 0 0 auto; display: flex; align-items: center; }
.site-header__logo img { width: clamp(200px, 17vw, 268px); height: auto; }
.site-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.site-nav__list { display: flex; align-items: center; gap: clamp(0.25rem, 1.2vw, 1.25rem); }
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.7rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 247, 246, 0.86);
  transition: color 0.3s var(--ease);
}
.site-nav__link:hover, .site-nav__link[aria-expanded="true"], .site-nav__link[aria-current="page"] { color: var(--white); }
.site-nav__link[aria-current="page"]::after, .site-nav__item.is-current > .site-nav__link::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.2rem; height: 1px; background: var(--glacier);
}
.site-nav__caret { width: 10px; height: 10px; transition: transform 0.35s var(--ease); }
.site-nav__link[aria-expanded="true"] .site-nav__caret { transform: rotate(180deg); }
.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(720px, 80vw);
  padding: 1.25rem;
  display: flex;
  gap: 1.25rem;
  background: rgba(10, 35, 50, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(170, 206, 238, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.35s;
}
.site-nav__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.site-nav__item.is-open > .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s;
}
.dropdown__links { flex: 1 1 60%; display: flex; flex-direction: column; gap: 0.15rem; }
.dropdown__link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius);
  transition: background-color 0.3s var(--ease);
}
.dropdown__link:hover, .dropdown__link:focus-visible { background: rgba(170, 206, 238, 0.08); }
.dropdown__title { font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); }
.dropdown__desc { font-size: 0.8125rem; line-height: 1.45; color: rgba(247, 247, 246, 0.62); }
.dropdown__feature {
  position: relative;
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  min-height: 240px;
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}
.dropdown__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease); }
.dropdown__feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 18, 27, 0.1), rgba(5, 18, 27, 0.92)); }
.dropdown__feature:hover img { transform: scale(1.05); }
.dropdown__feature-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; line-height: 1.25; }
.dropdown__feature-text { font-size: 0.8125rem; line-height: 1.45; color: rgba(247, 247, 246, 0.75); }

.site-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 1.1rem; }
.site-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(247, 247, 246, 0.86);
  transition: color 0.3s var(--ease);
}
.site-header__phone:hover { color: var(--white); }
.site-header__phone svg { width: 15px; height: 15px; color: var(--glacier); }
.site-header__burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(170, 206, 238, 0.3);
  position: relative;
}
.site-header__burger span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.site-header__burger span:nth-child(1) { top: 19px; }
.site-header__burger span:nth-child(2) { top: 26px; }
.site-header__burger[aria-expanded="true"] span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 0.7s var(--ease-in-out), visibility 0s; }
.mobile-menu::before { content: ""; position: absolute; inset: 0; background: url("../img/topo-lines-light.svg") center / cover; opacity: 0.6; pointer-events: none; }
.mobile-menu__nav { position: relative; display: flex; flex-direction: column; border-top: 1px solid rgba(170, 206, 238, 0.14); }
.mobile-menu__group { border-bottom: 1px solid rgba(170, 206, 238, 0.14); }
.mobile-menu__link, .mobile-menu__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 5vw, 1.6rem);
  font-weight: 600;
  text-transform: uppercase;
  text-align: left;
}
.mobile-menu__toggle svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.mobile-menu__toggle[aria-expanded="true"] svg { transform: rotate(45deg); }
.mobile-menu__sub { display: flex; flex-direction: column; gap: 0.15rem; padding: 0 0 1.1rem; }
.mobile-menu__sub[hidden] { display: none; }
.mobile-menu__sub a { padding: 0.55rem 0; font-size: 1rem; color: rgba(247, 247, 246, 0.75); }
.mobile-menu__foot { position: relative; margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu__phone { font-size: 1rem; color: rgba(247, 247, 246, 0.8); }
body.menu-open { overflow: hidden; }

/* ---------- 9. Page transition curtain (Elementor: Site Settings > Page Transitions) ---------- */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  pointer-events: none;
  animation: curtain-out 0.9s var(--ease-in-out) 0.15s both;
}
.page-curtain__mark { width: 120px; opacity: 0.9; animation: curtain-mark 0.9s var(--ease) both; }
.page-curtain.is-leaving { animation: curtain-in 0.55s var(--ease-in-out) both; pointer-events: all; }
.page-curtain.is-leaving .page-curtain__mark { animation: none; opacity: 0.9; }
@keyframes curtain-out { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes curtain-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes curtain-mark { from { opacity: 0.9; transform: translateY(0); } to { opacity: 0; transform: translateY(-24px); } }

/* ---------- 10. Heroes ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 3rem) 0 0;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__video, .hero__poster { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 18, 27, 0.94) 0%, rgba(5, 18, 27, 0.72) 42%, rgba(5, 18, 27, 0.3) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(5, 18, 27, 0) 38%),
    linear-gradient(180deg, rgba(5, 18, 27, 0.6) 0%, rgba(5, 18, 27, 0) 22%);
}
.hero__content { z-index: 2; gap: 1.6rem; padding-bottom: clamp(3rem, 7vh, 5.5rem); }
.hero__headline { max-width: 17em; }
.hero__lead { font-size: var(--fs-lead); color: rgba(247, 247, 246, 0.8); max-width: 38rem; }
.hero__actions { margin-top: 0.5rem; }
.hero__meta {
  position: absolute;
  right: var(--gutter);
  top: calc(var(--header-h) + 2.5rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 247, 246, 0.5);
}
.hero__meta-line { width: 1px; height: 64px; background: linear-gradient(rgba(170, 206, 238, 0.6), transparent); margin: 0.4rem 0; }
.hero__badges { z-index: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; padding-block: 1.6rem 2rem; border-top: 1px solid rgba(170, 206, 238, 0.14); }
.hero__badges-label { flex: 0 0 auto; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(247, 247, 246, 0.55); }
.badge-row { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.badge-row__item img { height: 62px; width: auto; opacity: 0.88; transition: opacity 0.3s var(--ease); }
.badge-row__item img:hover { opacity: 1; }

.page-hero {
  position: relative;
  min-height: clamp(560px, 78vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 4rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.page-hero--short { min-height: clamp(420px, 56vh, 600px); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img, .page-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.page-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 18, 27, 0.95) 0%, rgba(5, 18, 27, 0.78) 45%, rgba(5, 18, 27, 0.35) 100%), linear-gradient(0deg, rgba(5, 18, 27, 0.85) 0%, rgba(5, 18, 27, 0) 45%); }
.page-hero__inner { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2.5rem var(--gap-lg); }
.page-hero__copy { flex: 1 1 560px; display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.page-hero__title { max-width: 19em; }
.page-hero__lead { font-size: var(--fs-lead); color: rgba(247, 247, 246, 0.8); max-width: 40rem; }
.page-hero__spec {
  flex: 0 1 320px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(170, 206, 238, 0.18);
  border-radius: var(--radius);
  background: rgba(5, 18, 27, 0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.page-hero__spec-title { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--glacier); margin-bottom: 0.6rem; }
.page-hero__spec-item { display: flex; align-items: center; gap: 0.65rem; padding: 0.45rem 0; border-top: 1px solid rgba(170, 206, 238, 0.1); font-size: 0.9375rem; color: rgba(247, 247, 246, 0.86); }
.page-hero__spec-item::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--glacier); transform: rotate(45deg); flex: 0 0 auto; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247, 247, 246, 0.55); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb__sep { opacity: 0.5; }

/* ---------- 11. Stats ---------- */
.stats { padding-block: clamp(3rem, 6vw, 5rem); }
.stats__list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0; justify-content: space-between; }
.stat {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.5rem clamp(0.75rem, 1.6vw, 1.5rem);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value { font-family: var(--font-display); font-size: clamp(1.4rem, 0.8rem + 1.3vw, 2rem); font-weight: 600; line-height: 1; color: var(--fg); white-space: nowrap; }
.stat__value .stat__star { color: var(--brass); font-size: 0.7em; vertical-align: 0.12em; margin-left: 0.15em; }
.stat__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); line-height: 1.4; }

/* ---------- 12. Logo marquee (Elementor: Image Carousel, autoplay, equal image size) ---------- */
.logos__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.marquee + .marquee { margin-top: clamp(0.5rem, 1.5vw, 1.25rem); }
.marquee__track {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
  animation: marquee var(--marquee-duration, 70s) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: 0 0 auto; }
.marquee__item img { width: clamp(160px, 14vw, 225px); height: auto; opacity: 0.78; transition: opacity 0.35s var(--ease); }
.marquee__item img:hover { opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- 13. Metrics & cards ---------- */
.metric { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 1.1rem; border-top: 1px solid var(--line-strong); }
.metric__value { font-family: var(--font-display); font-size: clamp(1.4rem, 0.9rem + 1.2vw, 2.1rem); font-weight: 600; line-height: 1; color: var(--fg); }
.metric__label { font-size: 0.8125rem; line-height: 1.45; color: var(--fg-muted); }
.metric-list { display: flex; flex-wrap: wrap; gap: 1.75rem var(--gap); }
.metric-list > .metric { flex: 1 1 calc((100% - var(--gap)) / 2); min-width: 160px; }

.feature-case__inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--gap-lg); }
.feature-case__copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.feature-case__title { max-width: 14em; }
.feature-case__text { color: var(--fg-muted); max-width: 36rem; }
.feature-case__media { flex: 1.15 1 520px; position: relative; min-width: 0; }
.feature-case__frame { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.1; }
.feature-case__img { width: 100%; height: 100%; object-fit: cover; scale: 1.12; }
.feature-case__tag {
  position: absolute;
  z-index: 2;
  left: clamp(-2rem, -2.4vw, -0.75rem);
  bottom: clamp(1.25rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1.5rem;
  background: var(--glacier);
  color: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.feature-case__tag-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.feature-case__tag-value { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.1vw, 2rem); font-weight: 600; line-height: 1; }
.file-tab { display: inline-flex; align-self: flex-start; align-items: center; gap: 0.6rem; padding: 0.45rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted); }
.file-tab__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--glacier); box-shadow: 0 0 0 4px rgba(170, 206, 238, 0.18); }

.card-row { display: flex; flex-wrap: wrap; gap: var(--gap); }
.case-card {
  flex: 1 1 calc((100% - 3 * var(--gap)) / 4);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.case-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.case-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.case-card:hover .case-card__img { transform: scale(1.06); }
.case-card__tag { position: absolute; left: 1rem; top: 1rem; padding: 0.4rem 0.7rem; border-radius: 999px; background: rgba(5, 18, 27, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--paper); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.case-card__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.85rem; padding: 1.5rem; }
.case-card__metric { font-family: var(--font-display); font-size: clamp(1.02rem, 0.9rem + 0.45vw, 1.25rem); font-weight: 600; line-height: 1.12; text-transform: uppercase; color: var(--fg); }
.case-card__text { font-size: 0.9375rem; color: var(--fg-muted); line-height: 1.55; flex: 1 1 auto; }
.case-card__services { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* ---------- 14. Video facade & testimonials (Elementor: Video widget w/ image overlay, Testimonial) ---------- */
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
  cursor: pointer;
}
.video-facade__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.6s var(--ease); filter: saturate(0.9); }
.video-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 18, 27, 0) 40%, rgba(5, 18, 27, 0.7) 100%); z-index: 1; }
.video-facade:hover .video-facade__poster { transform: scale(1.04); filter: saturate(1.05); }
.video-facade__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(247, 247, 246, 0.94);
  color: var(--navy);
  box-shadow: 0 0 0 0 rgba(170, 206, 238, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.6s var(--ease);
}
.video-facade:hover .video-facade__play { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(170, 206, 238, 0.18); }
.video-facade__play svg { width: 22px; height: 22px; margin-left: 4px; }
.video-facade__duration { position: absolute; right: 0.9rem; bottom: 0.8rem; z-index: 2; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--paper); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

.carousel { position: relative; display: flex; flex-direction: column; gap: 1.75rem; }
.carousel__track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__controls { display: flex; gap: 0.6rem; }
.carousel__btn {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--fg);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.carousel__btn:hover { background: var(--fg); color: var(--bg); }
.carousel__btn svg { width: 16px; height: 16px; }
.carousel__btn:disabled { opacity: 0.35; pointer-events: none; }

.testimonial {
  flex: 0 0 clamp(290px, 34vw, 470px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.testimonial__quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.35; color: var(--fg); }
.testimonial__meta { display: flex; flex-direction: column; gap: 0.15rem; }
.testimonial__name { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg); }
.testimonial__role { font-size: 0.8125rem; color: var(--fg-muted); }
.stars { display: inline-flex; gap: 2px; color: var(--brass); }
.stars svg { width: 15px; height: 15px; }

.quote-card {
  flex: 1 1 calc((100% - var(--gap)) / 2);
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote-card__text { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.45; color: var(--fg); flex: 1 1 auto; }
.quote-card__meta { display: flex; align-items: center; gap: 0.9rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote-card__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote-card__name { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--fg); }
.quote-card__role { font-size: 0.8125rem; color: var(--fg-muted); }

/* ---------- 15. Founder quote ---------- */
.founder__inner { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--gap-lg); }
.founder__media { flex: 0 1 400px; position: relative; min-width: 0; }
.founder__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); filter: saturate(0.92) contrast(1.02); }
.founder__frame { position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--line-strong); border-radius: var(--radius); z-index: -1; }
.founder__copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
.founder__mark { font-family: var(--font-serif); font-size: 7rem; line-height: 0.6; color: var(--glacier); height: 3.2rem; }
.founder__quote { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-quote); line-height: 1.18; color: var(--fg); max-width: 22ch; }
.founder__name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.founder__role { font-size: 0.875rem; color: var(--fg-muted); }
.founder__note { color: var(--fg-muted); max-width: 34rem; }

/* ---------- 16. SHOWPIECE A — Under One Roof ---------- */
.roof { padding-block: 0; }
.roof__pin { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 0.5rem) 1.5rem; }
.roof__head { align-items: center; text-align: center; gap: 0.9rem; margin-bottom: clamp(0.75rem, 2vh, 1.75rem); }
.roof__headline { max-width: 22em; }
.roof__sub { color: var(--fg-muted); max-width: 40rem; }
.roof__stage { position: relative; width: 100%; min-height: clamp(320px, 43vh, 470px); }
.roof__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.roof__lines path, .roof__lines line { fill: none; stroke: var(--glacier); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.roof__lines .roof__ground { stroke: rgba(170, 206, 238, 0.35); stroke-dasharray: 4 6; }
.roof__lines .roof__beam { stroke: rgba(170, 206, 238, 0.5); stroke-width: 1; }
.roof__vendors, .roof__pillars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  padding: 0 clamp(0rem, 4vw, 4rem) 2.5rem;
}
.roof__vendors { align-items: center; padding-bottom: 0; z-index: 2; }
.roof__vendor {
  flex: 1 1 0;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.3rem;
  border: 1px dashed rgba(170, 206, 238, 0.42);
  border-radius: var(--radius);
  background: rgba(10, 35, 50, 0.72);
}
.roof__vendor-role { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: var(--paper); }
.roof__vendor-flaw { font-size: 0.875rem; line-height: 1.45; color: rgba(247, 247, 246, 0.66); }
.roof__vendor-x { width: 22px; height: 22px; color: #e8907a; }
.roof__pillars { z-index: 2; }
.roof__pillar {
  flex: 1 1 0;
  max-width: 250px;
  min-height: clamp(180px, 25vh, 280px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(170, 206, 238, 0.4);
  border-bottom-width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(170, 206, 238, 0.12), rgba(170, 206, 238, 0.03));
  transform-origin: bottom center;
}
.roof__pillar-index { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; color: var(--glacier); }
.roof__pillar-title { font-family: var(--font-display); font-size: clamp(0.95rem, 0.8rem + 0.5vw, 1.25rem); font-weight: 600; text-transform: uppercase; color: var(--white); }
.roof__pillar-text { font-size: 0.8125rem; line-height: 1.5; color: rgba(247, 247, 246, 0.7); }
.roof__cap {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  white-space: nowrap;
}
.roof__cap-title { font-family: var(--font-display); font-size: clamp(0.9rem, 0.75rem + 0.5vw, 1.15rem); font-weight: 600; text-transform: uppercase; color: var(--glacier); }
.roof__cap-text { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247, 247, 246, 0.7); }
.roof__caption { margin-top: clamp(0.75rem, 2vh, 1.75rem); text-align: center; color: var(--fg-muted); font-size: var(--fs-lead); max-width: 46rem; margin-inline: auto; }
.roof__caption strong { color: var(--paper); font-weight: 600; }
.roof__note { text-align: center; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); color: var(--glacier); margin-top: 0.75rem; }
/* static (no-JS / mobile / reduced motion) layout */
.roof.is-static .roof__stage { min-height: 0; display: flex; flex-direction: column; gap: 2rem; }
.roof.is-static .roof__lines { display: none; }
.roof.is-static .roof__vendors, .roof.is-static .roof__pillars, .roof.is-static .roof__cap { position: relative; inset: auto; transform: none; padding: 0; flex-wrap: wrap; }
.roof.is-static .roof__vendor, .roof.is-static .roof__pillar { flex: 1 1 220px; max-width: none; min-height: 0; }
.roof.is-static .roof__vendors { order: 1; }
.roof.is-static .roof__pillars { order: 3; }
.roof.is-static .roof__cap { order: 2; align-self: center; white-space: normal; padding: 1rem 1.5rem; border: 1px solid rgba(170, 206, 238, 0.4); border-radius: var(--radius); }

/* ---------- 17. Service tiles, icon boxes, lists ---------- */
.svc-grid { display: flex; flex-wrap: wrap; gap: var(--gap); }
.svc-tile {
  position: relative;
  flex: 1 1 calc((100% - 2 * var(--gap)) / 3);
  min-width: 280px;
  min-height: clamp(380px, 34vw, 470px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  background: var(--navy);
}
.svc-tile--lg { flex-basis: calc((100% - var(--gap)) / 2); }
.svc-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.svc-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 18, 27, 0.15) 0%, rgba(5, 18, 27, 0.55) 45%, rgba(5, 18, 27, 0.94) 100%); transition: background-color 0.6s var(--ease); }
.svc-tile:hover .svc-tile__img { transform: scale(1.06); }
.svc-tile__index { position: absolute; top: clamp(1.4rem, 2.5vw, 2rem); left: clamp(1.4rem, 2.5vw, 2rem); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; color: var(--glacier); }
.svc-tile__arrow { position: absolute; top: clamp(1.1rem, 2vw, 1.6rem); right: clamp(1.1rem, 2vw, 1.6rem); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(247, 247, 246, 0.4); transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease); }
.svc-tile__arrow svg { width: 16px; height: 16px; transform: rotate(-45deg); transition: transform 0.5s var(--ease); }
.svc-tile:hover .svc-tile__arrow { background: var(--glacier); color: var(--navy); box-shadow: none; }
.svc-tile:hover .svc-tile__arrow svg { transform: rotate(0); }
.svc-tile__title { font-size: clamp(1rem, 0.88rem + 0.5vw, 1.35rem); color: var(--white); }
.svc-tile__text { font-size: 0.9375rem; line-height: 1.55; color: rgba(247, 247, 246, 0.78); max-width: 32rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { display: inline-flex; align-items: center; padding: 0.38rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; border: 1px solid var(--line-strong); color: var(--fg); background: transparent; }
.svc-tile .chip { border-color: rgba(247, 247, 246, 0.28); color: rgba(247, 247, 246, 0.88); }

.icon-box-row { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.icon-box {
  flex: 1 1 calc(100% / 3);
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease);
}
.icon-box:hover { background: var(--card); }
.icon-box__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); }
.icon-box__icon svg { width: 20px; height: 20px; }
.icon-box__title { font-size: 1rem; line-height: 1.3; color: var(--fg); }
.icon-box__text { font-size: 0.9375rem; line-height: 1.6; color: var(--fg-muted); }
.icon-box-row--4 .icon-box { flex-basis: 25%; min-width: 230px; }

.check-list { display: flex; flex-direction: column; gap: 0.85rem; }
.check-list__item { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--fg-muted); line-height: 1.55; }
.check-list__item svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.check-list__item strong { color: var(--fg); font-weight: 600; }
.x-list .check-list__item svg { color: #c46b57; }

.pain-list { display: flex; flex-wrap: wrap; gap: var(--gap); }
.pain {
  flex: 1 1 calc((100% - 2 * var(--gap)) / 3);
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line-strong);
}
.pain__index { font-family: var(--font-serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: var(--accent); }
.pain__title { font-size: 1.05rem; color: var(--fg); }
.pain__text { color: var(--fg-muted); font-size: 0.9375rem; }

/* ---------- 18. Process timeline ---------- */
.process { position: relative; display: flex; flex-wrap: wrap; gap: var(--gap); padding-top: 2.5rem; }
.process__track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); }
.process__progress { position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--progress, 0) * 100%); background: var(--navy); transform-origin: left; }
.theme-ink .process__progress, .theme-navy .process__progress { background: var(--glacier); }
.process__step { position: relative; flex: 1 1 calc((100% - 4 * var(--gap)) / 5); min-width: 190px; display: flex; flex-direction: column; gap: 0.7rem; }
.process__step::before { content: ""; position: absolute; top: calc(-2.5rem - 5px); left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--fg); }
.process__num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; color: var(--fg); opacity: 0.18; }
.process__when { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.process__title { font-size: 0.98rem; line-height: 1.3; color: var(--fg); }
.process__text { font-size: 0.9rem; line-height: 1.55; color: var(--fg-muted); }

/* ---------- 19. Industry cards, trades ---------- */
.industry-layout { display: flex; flex-wrap: wrap; gap: var(--gap); }
.industry-layout__primary { flex: 7 1 520px; display: flex; min-width: 0; }
.industry-layout__secondary { flex: 5 1 380px; display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.industry-card {
  position: relative;
  flex: 1 1 auto;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.85rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}
.industry-card--primary { min-height: clamp(520px, 50vw, 680px); }
.industry-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.industry-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 18, 27, 0.05) 20%, rgba(5, 18, 27, 0.9) 100%); }
.industry-card:hover .industry-card__img { transform: scale(1.05); }
.industry-card__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--glacier); }
.industry-card__title { font-size: clamp(1.05rem, 0.9rem + 0.65vw, 1.55rem); color: var(--white); max-width: 20em; }
.industry-card__text { color: rgba(247, 247, 246, 0.8); max-width: 34rem; font-size: 0.9375rem; }

.trade-grid { display: flex; flex-wrap: wrap; gap: var(--gap); }
.trade {
  position: relative;
  flex: 1 1 calc((100% - 2 * var(--gap)) / 3);
  min-width: 240px;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}
.trade__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.trade::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 18, 27, 0) 45%, rgba(5, 18, 27, 0.88) 100%); }
.trade:hover .trade__img { transform: scale(1.05); }
.trade__title { font-size: 1rem; color: var(--white); }
.trade__text { font-size: 0.875rem; color: rgba(247, 247, 246, 0.78); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-cloud .chip { padding: 0.55rem 1rem; font-size: 0.875rem; }

/* ---------- 20. CTA band ---------- */
.cta-band { position: relative; padding-block: clamp(6rem, 12vw, 10rem); color: var(--paper); background: var(--ink); overflow: hidden; isolation: isolate; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media video, .cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 40%, rgba(10, 35, 50, 0.5) 0%, rgba(5, 18, 27, 0.86) 75%); }
.cta-band__inner { align-items: flex-start; gap: 1.6rem; }
.cta-band__title { max-width: 20em; }
.cta-band__text { font-size: var(--fs-lead); color: rgba(247, 247, 246, 0.8); max-width: 44rem; }
.cta-band__steps { display: flex; flex-wrap: wrap; gap: var(--gap); width: 100%; margin-block: 1rem; }
.cta-step { flex: 1 1 calc((100% - 2 * var(--gap)) / 3); min-width: 220px; display: flex; flex-direction: column; gap: 0.55rem; padding-top: 1.1rem; border-top: 1px solid rgba(170, 206, 238, 0.3); }
.cta-step__num { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; color: var(--glacier); }
.cta-step__title { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; text-transform: uppercase; color: var(--white); }
.cta-step__text { font-size: 0.9rem; color: rgba(247, 247, 246, 0.7); }
.cta-band__fine { font-size: 0.8125rem; color: rgba(247, 247, 246, 0.6); letter-spacing: 0.02em; }
.pill-tag { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.85rem; border-radius: 999px; background: rgba(200, 164, 107, 0.16); color: #e6c48c; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.pill-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 196, 140, 0.55); } 60% { box-shadow: 0 0 0 7px rgba(230, 196, 140, 0); } }

/* ---------- 21. FAQ accordion (Elementor: Accordion widget) ---------- */
.faq-layout { display: flex; flex-wrap: wrap; gap: var(--gap-lg); }
.faq-layout__intro { flex: 1 1 320px; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; min-width: 0; }
.faq-layout__list { flex: 1.6 1 520px; min-width: 0; }
.accordion { border-top: 1px solid var(--line-strong); }
.accordion__item { border-bottom: 1px solid var(--line-strong); }
.accordion__summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__icon { position: relative; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color 0.35s var(--ease); }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: var(--fg); transition: transform 0.45s var(--ease); }
.accordion__icon::after { transform: rotate(90deg); }
.accordion__item[open] .accordion__icon { background: var(--fg); }
.accordion__item[open] .accordion__icon::before, .accordion__item[open] .accordion__icon::after { background: var(--bg); }
.accordion__item[open] .accordion__icon::after { transform: rotate(0); }
.accordion__content { overflow: hidden; }
.accordion__body { padding: 0 3.5rem 1.6rem 0; color: var(--fg-muted); line-height: 1.7; }
.accordion__body p + p { margin-top: 0.8em; }

/* ---------- 22. Footer ---------- */
.site-footer { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0 2rem; background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url("../img/topo-lines-light.svg") center / cover; opacity: 0.55; z-index: -1; }
.footer__top { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--gap-lg) var(--gap); justify-content: space-between; }
.footer__brand { flex: 1.4 1 300px; display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; min-width: 0; }
.footer__logo { width: 210px; }
.footer__pitch { color: rgba(247, 247, 246, 0.68); max-width: 26rem; font-size: 0.9375rem; }
.footer__contact { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9375rem; }
.footer__contact a:hover { color: var(--glacier); }
.footer__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.footer__heading { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--glacier); }
.footer__links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__links a { font-size: 0.9375rem; color: rgba(247, 247, 246, 0.78); transition: color 0.3s var(--ease); }
.footer__links a:hover { color: var(--white); }
.footer__badges { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 2.25rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; border-top: 1px solid rgba(170, 206, 238, 0.14); }
.footer__badges img { height: 52px; width: auto; opacity: 0.75; }
.footer__wordmark { margin-top: clamp(2.5rem, 6vw, 4rem); width: 100%; opacity: 0.08; }
.footer__bottom { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; font-size: 0.8125rem; color: rgba(247, 247, 246, 0.55); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__legal a:hover { color: var(--white); }
.social { display: flex; gap: 0.6rem; }
.social__link { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(170, 206, 238, 0.25); color: rgba(247, 247, 246, 0.8); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.social__link:hover { background: var(--glacier); color: var(--navy); box-shadow: none; }
.social__link svg { width: 16px; height: 16px; }

/* ---------- 23. SHOWPIECE B — Before/after compare ---------- */
.compare { display: flex; flex-direction: column; gap: 1rem; }
.compare__frame {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}
.compare__after, .compare__before { display: block; width: 100%; height: auto; pointer-events: none; }
.compare__before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__before-wrap .compare__before { width: 100%; height: 100%; object-fit: cover; }
.compare__divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--glacier); box-shadow: 0 0 24px rgba(170, 206, 238, 0.6); pointer-events: none; }
.compare__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 50%;
  background: var(--glacier);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(5, 18, 27, 0.45);
  cursor: ew-resize;
  transition: transform 0.3s var(--ease);
}
.compare__handle:hover, .compare.is-dragging .compare__handle { transform: scale(1.08); }
.compare__handle svg { width: 12px; height: 12px; }
.compare__label {
  position: absolute;
  top: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
}
.compare__label--before { left: 1rem; background: rgba(5, 18, 27, 0.78); color: var(--paper); }
.compare__label--after { right: 1rem; background: var(--glacier); color: var(--navy); }
.compare__caption { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.55; }
.compare__caption strong { color: var(--fg); }
.compare--phone { max-width: 400px; margin-inline: auto; }
.compare--phone .compare__frame { border-radius: 30px; border: 8px solid #0e1a22; }
.compare-row { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: flex-start; }
.compare-row > .compare { flex: 1 1 360px; min-width: 0; }
.illustrative-note { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; color: var(--fg-muted); }
.illustrative-note::before { content: "i"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor; font-size: 0.625rem; font-weight: 700; font-family: var(--font-serif); }

/* ---------- 24. SHOWPIECE C — Audit qualifier ---------- */
.qualifier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--paper);
  border: 1px solid rgba(170, 206, 238, 0.16);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  isolation: isolate;
}
.qualifier::before { content: ""; position: absolute; inset: 0; background: url("../img/topo-lines-light.svg") center / cover; opacity: 0.45; z-index: -1; }
.qualifier__progress { display: flex; flex-direction: column; gap: 0.75rem; }
.qualifier__progress-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(247, 247, 246, 0.6); }
.qualifier__progress-bar { position: relative; height: 3px; border-radius: 3px; background: rgba(170, 206, 238, 0.16); overflow: hidden; }
.qualifier__progress-fill { position: absolute; inset: 0 auto 0 0; width: var(--q-progress, 25%); background: var(--glacier); border-radius: inherit; transition: width 0.7s var(--ease); }
.qualifier__steps { position: relative; }
.qualifier__step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.qualifier__step[hidden] { display: none; }
.qualifier__step.is-entering { animation: q-in 0.6s var(--ease) both; }
@keyframes q-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.qualifier__question { padding: 0; font-family: var(--font-display); font-size: clamp(0.98rem, 0.88rem + 0.45vw, 1.28rem); font-weight: 600; line-height: 1.25; text-transform: uppercase; color: var(--white); }
.qualifier__hint { margin-top: -0.6rem; font-size: 0.9375rem; color: rgba(247, 247, 246, 0.65); }
.qualifier__sub { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: rgba(247, 247, 246, 0.92); margin-top: 0.4rem; }
.qualifier__options { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.qualifier__option { position: relative; flex: 1 1 200px; min-width: 0; cursor: pointer; }
.qualifier__option--compact { flex: 0 1 auto; }
.qualifier__option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.qualifier__option-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(170, 206, 238, 0.25);
  background: rgba(5, 18, 27, 0.35);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.qualifier__option--compact .qualifier__option-box { padding: 0.65rem 1rem; border-radius: 999px; }
.qualifier__option-label { font-weight: 600; font-size: 0.9375rem; color: var(--white); }
.qualifier__option-text { font-size: 0.8125rem; line-height: 1.45; color: rgba(247, 247, 246, 0.6); }
.qualifier__option:hover .qualifier__option-box { border-color: rgba(170, 206, 238, 0.6); }
.qualifier__option input:checked + .qualifier__option-box { border-color: var(--glacier); background: rgba(170, 206, 238, 0.14); box-shadow: inset 0 0 0 1px var(--glacier); }
.qualifier__option input:focus-visible + .qualifier__option-box { outline: 2px solid var(--glacier); outline-offset: 2px; }
.qualifier__reveal[hidden] { display: none; }
.qualifier__reveal { display: flex; flex-direction: column; gap: 1rem; animation: q-in 0.5s var(--ease) both; }
.qualifier__fields { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; }
.qualifier__field { flex: 1 1 240px; display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.qualifier__field--full { flex-basis: 100%; }
.qualifier__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247, 247, 246, 0.7); }
.qualifier__input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(170, 206, 238, 0.25);
  background: rgba(5, 18, 27, 0.45);
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.qualifier__input::placeholder { color: rgba(247, 247, 246, 0.35); }
.qualifier__input:focus { outline: none; border-color: var(--glacier); background: rgba(5, 18, 27, 0.65); }
.qualifier__input[aria-invalid="true"] { border-color: #e8907a; }
.qualifier__error { min-height: 1.2em; font-size: 0.8125rem; color: #f0a896; }
.qualifier__consent { display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.8125rem; line-height: 1.5; color: rgba(247, 247, 246, 0.62); }
.qualifier__consent input { margin-top: 0.2rem; width: 18px; height: 18px; accent-color: var(--glacier); flex: 0 0 auto; }
.qualifier__consent a { text-decoration: underline; text-underline-offset: 2px; color: rgba(247, 247, 246, 0.85); }
.qualifier__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid rgba(170, 206, 238, 0.14); }
.qualifier__nav-right { display: flex; gap: 0.75rem; margin-left: auto; }
.qualifier__back[hidden], .qualifier__next[hidden], .qualifier__submit[hidden] { display: none; }
.qualifier__privacy { font-size: 0.75rem; color: rgba(247, 247, 246, 0.5); }
.qualifier__done { display: flex; flex-direction: column; gap: 1.25rem; }
.qualifier__done[hidden] { display: none; }
.qualifier__done-title { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); font-weight: 600; text-transform: uppercase; color: var(--white); }
.qualifier__done-text { color: rgba(247, 247, 246, 0.75); }
.qualifier__calendar { width: 100%; min-height: 680px; border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.qualifier__calendar iframe { width: 100%; min-height: 680px; border: 0; display: block; }
.qualifier.is-complete .qualifier__progress, .qualifier.is-complete .qualifier__steps, .qualifier.is-complete .qualifier__nav { display: none; }

/* audit scorecard sample */
.scorecard { display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.scorecard__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.scorecard__title { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--fg); }
.scorecard__meta { font-size: 0.75rem; color: var(--fg-muted); }
.scorecard__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--line); }
.scorecard__row:last-child { border-bottom: 0; }
.scorecard__pillar { flex: 0 0 120px; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; color: var(--fg); }
.scorecard__area { flex: 1 1 200px; font-size: 0.9rem; color: var(--fg-muted); }
.status { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; padding: 0.32rem 0.7rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; }
.status--strong { background: rgba(70, 150, 110, 0.14); color: #2f7d58; }
.status--gaps { background: rgba(200, 164, 107, 0.2); color: #8a6526; }
.status--missing { background: rgba(10, 35, 50, 0.08); color: #4a5d6b; }
.status--wasted { background: rgba(196, 107, 87, 0.15); color: #a4472f; }

/* ---------- 25. Galleries ---------- */
.portfolio-grid { display: flex; flex-wrap: wrap; gap: var(--gap); }
.site-card {
  flex: 1 1 calc((100% - 2 * var(--gap)) / 3);
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.site-card__frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.site-card__bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #eef0f2; border-bottom: 1px solid rgba(10, 35, 50, 0.08); }
.site-card__bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(10, 35, 50, 0.18); }
.site-card__url { margin-left: 10px; font-size: 0.6875rem; color: rgba(10, 35, 50, 0.5); letter-spacing: 0.02em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.site-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.site-card:hover .site-card__frame { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.site-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.site-card__name { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: var(--fg); }
.site-card__trade { font-size: 0.8125rem; color: var(--fg-muted); }
.site-card__visit { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }

.ad-gallery { display: flex; flex-wrap: wrap; gap: var(--gap); align-items: flex-end; justify-content: center; }
.phone {
  position: relative;
  flex: 0 1 240px;
  min-width: 190px;
  aspect-ratio: 9 / 19;
  padding: 10px;
  border-radius: 34px;
  background: #0d171e;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #000; }
.phone__screen video, .phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__notch { position: absolute; top: 18px; left: 50%; z-index: 2; width: 76px; height: 20px; margin-left: -38px; border-radius: 12px; background: #0d171e; }
.phone__label { position: absolute; left: 50%; bottom: -2.2rem; transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-muted); }
.static-ads { display: flex; flex-wrap: wrap; gap: var(--gap); }
.static-ad { flex: 1 1 calc((100% - 4 * var(--gap)) / 5); min-width: 170px; display: flex; flex-direction: column; gap: 0.6rem; }
.static-ad__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.static-ad__label { font-size: 0.75rem; color: var(--fg-muted); }

.photo-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.photo-grid__item { position: relative; flex: 1 1 calc((100% - 2 * 0.75rem) / 3); min-width: 220px; overflow: hidden; border-radius: var(--radius); }
.photo-grid__item--wide { flex-basis: calc((100% - 0.75rem) * 2 / 3); }
.photo-grid__img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo-grid__item:hover .photo-grid__img { transform: scale(1.04); }

.social-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.social-grid__item { flex: 1 1 calc((100% - 3 * 0.75rem) / 4); min-width: 160px; }
.social-grid__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---------- 26. Case-study chapters ---------- */
.case-index { position: sticky; top: calc(var(--header-h) + 0.75rem); z-index: 20; display: flex; justify-content: center; padding: 0.75rem var(--gutter); pointer-events: none; }
.case-index__list { pointer-events: auto; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.4rem; border-radius: 999px; background: rgba(10, 35, 50, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(170, 206, 238, 0.16); box-shadow: var(--shadow-md); }
.case-index__link { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.95rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(247, 247, 246, 0.75); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.case-index__link span { opacity: 0.55; font-variant-numeric: tabular-nums; }
.case-index__link:hover, .case-index__link.is-active { background: var(--glacier); color: var(--navy); }
.case-chapter__divider { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding-bottom: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line-strong); }
.case-chapter__num { font-family: var(--font-display); font-size: clamp(4rem, 2rem + 8vw, 9rem); font-weight: 600; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.case-chapter__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: flex-end; }
.case-chapter__title { max-width: 22em; }
.case-chapter__body { display: flex; flex-wrap: wrap; gap: var(--gap-lg); }
.case-chapter__story { flex: 1 1 460px; display: flex; flex-direction: column; gap: 1.6rem; min-width: 0; }
.case-chapter__side { flex: 1 1 420px; display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.case-chapter__h { font-size: 0.75rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.2em; color: var(--accent); }
.case-chapter__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.steps-list { display: flex; flex-direction: column; counter-reset: step; border-top: 1px solid var(--line); }
.steps-list__item { position: relative; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.15rem 0 1.15rem 3rem; border-bottom: 1px solid var(--line); }
.steps-list__item::before { counter-increment: step; content: "0" counter(step); position: absolute; left: 0; top: 1.15rem; font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.steps-list__title { font-size: 0.95rem; color: var(--fg); }
.steps-list__text { font-size: 0.9375rem; color: var(--fg-muted); line-height: 1.55; }
.results-wall { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.results-wall__item { flex: 1 1 calc((100% - 2px) / 3); min-width: 170px; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem 1.3rem; background: var(--bg); }
.results-wall__value { font-family: var(--font-display); font-size: clamp(1.25rem, 0.9rem + 1vw, 1.85rem); font-weight: 600; line-height: 1; color: var(--fg); }
.results-wall__label { font-size: 0.8125rem; line-height: 1.4; color: var(--fg-muted); }
.pull-quote { display: flex; flex-direction: column; gap: 0.9rem; padding-left: 1.5rem; border-left: 2px solid var(--glacier); }
.pull-quote__text { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.35; color: var(--fg); }
.pull-quote__cite { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); font-style: normal; }

/* ---------- 27. Team & values ---------- */
.team-grid { display: flex; flex-wrap: wrap; gap: var(--gap); }
.team-card { flex: 0 1 calc((100% - 4 * var(--gap)) / 5); min-width: 150px; display: flex; flex-direction: column; gap: 0.7rem; }
.team-card__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); filter: grayscale(0.25); transition: filter 0.6s var(--ease); }
.team-card:hover .team-card__img { filter: grayscale(0); }
.team-card__name { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--fg); }
.team-card__role { font-size: 0.8125rem; color: var(--fg-muted); margin-top: -0.4rem; }
.value-list { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.value { flex: 1 1 calc(100% / 3); min-width: 260px; display: flex; flex-direction: column; gap: 0.7rem; padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); }
.value__num { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--accent); line-height: 1; }
.value__title { font-size: 1rem; color: var(--fg); }
.value__text { font-size: 0.9375rem; color: var(--fg-muted); }

/* contact */
.contact-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.contact-item__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.contact-item__value { font-family: var(--font-body); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); font-weight: 600; color: var(--fg); }
.contact-item__value a:hover { color: var(--accent); }

/* stage chart (service stack by revenue) */
.stage-list { display: flex; flex-wrap: wrap; gap: var(--gap); }
.stage { flex: 1 1 calc((100% - 2 * var(--gap)) / 3); min-width: 260px; display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.stage__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.stage__title { font-size: 1.05rem; color: var(--fg); }
.stage__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.stage__bar-fill { display: block; height: 100%; width: var(--fill, 33%); background: linear-gradient(90deg, var(--navy-3), var(--glacier)); border-radius: inherit; }
.stage__text { font-size: 0.9375rem; color: var(--fg-muted); }

/* ---------- 28. Reveal animation states (Elementor: Motion Effects / Entrance animations) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(8% 8% 8% 8% round 6px); transition: clip-path 1.4s var(--ease); }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0 round 6px); }
.js [data-split] .split-line { display: block; overflow: hidden; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.js [data-split] .split-line__inner { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--line-index, 0) * 0.09s + var(--reveal-delay, 0s)); }
.js [data-split].is-visible .split-line__inner { transform: none; }
.js [data-split] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js [data-split] .split-line__inner { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
  .page-curtain { display: none; }
}

/* ---------- 29. Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav, .site-header__phone { display: none; }
  .site-header__burger { display: inline-flex; }
  .case-card { flex-basis: calc((100% - var(--gap)) / 2); }
  .team-card { flex-basis: calc((100% - 2 * var(--gap)) / 3); }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .hero__meta { display: none; }
  .svc-tile, .svc-tile--lg { flex-basis: 100%; min-height: 380px; }
  .stat { flex-basis: 45%; border-left: 0; padding-left: 0; padding-block: 1rem; border-top: 1px solid var(--line); }
  .stats__list { gap: 0 var(--gap); }
  .feature-case__tag { left: 1rem; }
  .process { padding-top: 0; padding-left: 2rem; flex-direction: column; gap: 2rem; }
  .process__track { left: 0; top: 0; bottom: 0; right: auto; width: 1px; height: auto; }
  .process__progress { width: 2px; height: calc(var(--progress, 0) * 100%); }
  .process__step::before { top: 0.35rem; left: calc(-2rem - 5px); }
  .roof__pin { min-height: 0; padding-block: var(--section-y); }
  .value { padding-right: 0; }
  .accordion__body { padding-right: 0; }
}
@media (max-width: 640px) {
  .site-header__actions .btn { display: none; }
  .hero { min-height: max(100svh, 640px); }
  .hero__badges { gap: 0.75rem; }
  .badge-row { justify-content: flex-start; gap: 0.9rem 1.5rem; }
  .badge-row__item img { height: 46px; }
  .btn-row .btn { width: 100%; }
  .stat { flex-basis: 100%; }
  .case-card { flex-basis: 100%; }
  .team-card { flex-basis: calc((100% - var(--gap)) / 2); }
  .static-ad { flex-basis: calc((100% - var(--gap)) / 2); }
  .phone { flex-basis: 70%; }
  .case-index { display: none; }
  .qualifier__nav .btn { flex: 1 1 auto; }
  .compare__handle { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
}
.testimonial__summary { font-size: 1rem; line-height: 1.55; color: var(--fg-muted); }

/* ---------- 30. Additions ---------- */
.page-hero__media img[data-parallax] { scale: 1.12; }
.page-hero__media video { width: 100%; height: 100%; object-fit: cover; }
.site-card { flex-basis: calc((100% - 3 * var(--gap)) / 4); min-width: 240px; }
.case-chapter { scroll-margin-top: calc(var(--header-h) + 70px); }
.qualifier__input:is(textarea) { resize: vertical; min-height: 130px; }
.page-legal .page-hero__title { max-width: none; }
.stat__value span { white-space: nowrap; }
@media (max-width: 1180px) { .site-card { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 900px) { .site-card { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 560px) { .site-card { flex-basis: 100%; } .trade { flex-basis: 100%; } }
.hero, .page-hero, .cta-band { --bg: var(--ink); --fg: var(--paper); --fg-muted: rgba(247, 247, 246, 0.72); --line: rgba(170, 206, 238, 0.14); --line-strong: rgba(170, 206, 238, 0.4); --accent: var(--glacier); }
.qualifier.is-complete .qualifier__privacy { display: none; }
@media (max-width: 900px) {
  .col-5-12, .col-7-12, .col-2-3, .col-1-3, .row--gap-lg > .col-5-12, .row--gap-lg > .col-7-12 { flex: 1 1 100%; }
  .case-chapter__story, .case-chapter__side { flex-basis: 100%; }
}
@media (max-width: 560px) {
  .col-1-2, .col-1-4 { flex: 1 1 100%; }
  .qualifier { padding: 1.4rem 1.1rem; }
  .qualifier__option { flex-basis: 100%; }
  .qualifier__option--compact { flex: 1 1 auto; }
  .results-wall__item { flex-basis: calc((100% - 1px) / 2); min-width: 0; }
}

/* ---------- 31. Revision 2 (Nov 2026) ---------- */
/* larger header logo; the phone number steps aside where the nav gets tight */
.site-header__logo img { width: clamp(230px, 23vw, 330px); }
/* six nav items (Investment added Nov 2026): labels never wrap; the phone steps aside below 1501px and spacing tightens on smaller laptops */
.site-nav__link { white-space: nowrap; }
@media (min-width: 1181px) and (max-width: 1500px) { .site-header__phone { display: none; } }
@media (min-width: 1181px) and (max-width: 1560px) {
  .site-nav__link { padding-inline: 0.6rem; }
  .site-nav__list { gap: clamp(0.25rem, 0.6vw, 0.6rem); }
  .site-nav__link[aria-current="page"]::after, .site-nav__item.is-current > .site-nav__link::after { left: 0.6rem; right: 0.6rem; }
}
@media (min-width: 1181px) and (max-width: 1300px) {
  .site-header__inner { gap: 1rem; }
  .site-nav__link { padding-inline: 0.5rem; }
  .site-nav__list { gap: 0.3rem; }
  .site-nav__link[aria-current="page"]::after, .site-nav__item.is-current > .site-nav__link::after { left: 0.5rem; right: 0.5rem; }
}
@media (max-width: 600px) { .site-header__logo img { width: min(250px, 62vw); } }

/* case testimonial: owner video directly under a case study (Elementor: Video widget + Text in a 2-col Container) */
.case-voice { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(1.75rem, 3.5vw, 3.5rem); margin-top: clamp(2.75rem, 5vw, 4.5rem); padding-top: clamp(2.25rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.case-voice__video { flex: 1.2 1 440px; min-width: 0; }
.case-voice__copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.case-voice__text { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 1rem + 0.9vw, 1.85rem); line-height: 1.3; color: var(--fg); max-width: 26rem; }

/* brand before/after (Elementor: two Image widgets with an Icon between, in a flex row) */
.brand-ba { display: flex; align-items: center; gap: clamp(0.85rem, 2vw, 1.75rem); }
.brand-ba__card { position: relative; flex: 1 1 0; min-width: 0; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.brand-ba__card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; }
.brand-ba__label { position: absolute; top: 1rem; left: 1rem; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; background: rgba(5, 18, 27, 0.78); color: var(--paper); }
.brand-ba__card--after .brand-ba__label { background: var(--glacier); color: var(--navy); }
.brand-ba__arrow { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--glacier); }
.brand-ba__arrow svg { width: 18px; height: 18px; }
.brand-apps { display: flex; flex-wrap: wrap; gap: var(--gap); margin-top: var(--gap); }
.brand-app { flex: 1 1 calc((100% - 3 * var(--gap)) / 4); min-width: 220px; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.brand-app img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.brand-app figcaption { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
@media (max-width: 760px) {
  .brand-ba { flex-direction: column; }
  .brand-ba__card { width: 100%; }
  .brand-ba__arrow { transform: rotate(90deg); }
  .brand-app { flex-basis: calc((100% - var(--gap)) / 2); min-width: 0; }
}

/* map-pack geo-grid compare (square) */
.compare--square { width: 100%; max-width: 640px; margin-inline: auto; }
/* phone screenshot frame (Elementor: Image widget with these classes) */
.phone-shot { margin: 0 auto; width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 0.9rem; }
.phone-shot img { display: block; width: 100%; height: auto; border-radius: 44px; border: 10px solid #0d171e; background: #fff; box-shadow: 0 48px 90px -36px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(170, 206, 238, 0.22); }
.phone-shot__note { font-size: 0.75rem; line-height: 1.5; color: var(--fg-muted); text-align: center; }
/* mini case (Elementor: Container with Text + 2 Counters) */
.mini-case { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid var(--line-strong); border-radius: var(--radius); background: rgba(170, 206, 238, 0.05); }
.mini-case__tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.mini-case__text { font-size: 1.05rem; line-height: 1.6; color: var(--fg); }
.mini-case__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); }
.mini-case__stat { display: flex; flex-direction: column; gap: 0.3rem; }
.mini-case__value { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.5rem); font-weight: 600; line-height: 1; color: var(--fg); }
.mini-case__label { font-size: 0.8125rem; color: var(--fg-muted); }

/* static ads keep their own shape (1:1 and 4:5), aligned to the top */
.static-ads { align-items: flex-start; }
.static-ad__img { aspect-ratio: auto; height: auto; }

/* icon boxes, two per row */
.icon-box-row--2 .icon-box { flex-basis: 50%; min-width: 280px; }

/* masonry gallery with filter bar (Elementor Pro: Gallery widget, Masonry layout, "Multiple" with filter bar) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.filter-bar__btn { padding: 0.6rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg-muted); font: inherit; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease); }
.filter-bar__btn:hover { color: var(--fg); border-color: var(--fg-muted); }
.filter-bar__btn[aria-pressed="true"] { background: var(--glacier); border-color: var(--glacier); color: var(--navy); }
.masonry { column-count: 3; column-gap: var(--gap); }
.masonry__item { position: relative; display: block; margin: 0 0 var(--gap); break-inside: avoid; border-radius: var(--radius); overflow: hidden; background: var(--navy-2); }
.masonry__item[hidden] { display: none; }
.masonry__item img { display: block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.masonry__item:hover img { transform: scale(1.04); }
.masonry__cap { position: absolute; left: 0.75rem; bottom: 0.75rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(5, 18, 27, 0.72); color: var(--paper); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); pointer-events: none; }
.masonry__item:hover .masonry__cap, .masonry__item:focus-within .masonry__cap { opacity: 1; transform: none; }
@media (hover: none) { .masonry__cap { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

/* organic social: residential vs commercial (Elementor: 2 Containers with Icon, Heading, Icon List) */
.audience-split { display: flex; flex-wrap: wrap; gap: var(--gap); }
.audience-card { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.6rem, 3.2vw, 2.6rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.audience-card__icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); }
.audience-card__icon svg { width: 22px; height: 22px; }
.audience-card__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.audience-card__title { font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem); color: var(--fg); }
.audience-note { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); max-width: 46rem; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); line-height: 1.4; color: var(--fg); }

/* client feeds (Elementor: Image widgets in Containers; the reel is a self-hosted Video widget) */
.feed-feature { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.feed-feature__desktop { flex: 1 1 560px; min-width: 0; max-width: 860px; }
.feed-feature__phone { flex: 0 0 auto; display: flex; justify-content: center; padding-bottom: 2.4rem; }
.phone--reel { flex: 0 0 auto; width: 270px; }
.phone--reel video { background: #000; }
.browser-frame { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-lg); border: 1px solid rgba(170, 206, 238, 0.18); }
.browser-frame__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef0f2; border-bottom: 1px solid rgba(10, 35, 50, 0.08); }
.browser-frame__bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(10, 35, 50, 0.18); }
.browser-frame__bar .browser-frame__url { width: auto; height: auto; border-radius: 6px; background: var(--white); margin-left: 12px; padding: 2px 10px; font-size: 0.6875rem; color: rgba(10, 35, 50, 0.55); }
.browser-frame img { display: block; width: 100%; height: auto; }
.feed-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 1.5rem; }
.feed-meta--featured { margin: clamp(1.5rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 4.5rem); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.feed-meta__name { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; color: var(--fg); }
.feed-meta__type { font-size: 0.8125rem; color: var(--fg-muted); }
.feed-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.feed-links a { display: inline-flex; padding: 0.4rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--fg); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.feed-links a:hover { background: var(--glacier); border-color: var(--glacier); color: var(--navy); }
.feed-cards { display: flex; flex-wrap: wrap; gap: var(--gap-lg, 3rem) var(--gap); }
.feed-card { flex: 1 1 calc((100% - 2 * var(--gap)) / 3); min-width: 260px; display: flex; flex-direction: column; gap: 1.25rem; }
.feed-card .phone-shot { max-width: 290px; }
.feed-card .feed-meta { flex-direction: column; align-items: flex-start; }
.feed-note { margin-top: clamp(2rem, 4vw, 3rem); font-size: 0.75rem; color: var(--fg-muted); text-align: center; }

/* six ad phones fit one row on desktop, three per row on tablets */
.ad-gallery { gap: clamp(1rem, 2vw, 1.75rem); }
.ad-gallery .phone { flex: 0 1 196px; min-width: 160px; }

/* ---------- 32. Responsive balance: rows never end on a stray or stretched item ---------- */
/* video ad phones: 6 across, then 3 + 3, then 2 + 2 + 2 */
.ad-gallery { --ad-gap: clamp(1rem, 2vw, 1.75rem); gap: 3.5rem var(--ad-gap); }
.ad-gallery .phone { flex: 0 0 calc((100% - 5 * var(--ad-gap)) / 6); min-width: 0; max-width: 240px; }
@media (max-width: 1239px) { .ad-gallery .phone { flex-basis: calc((100% - 2 * var(--ad-gap)) / 3); } }
@media (max-width: 599px) { .ad-gallery .phone { flex-basis: calc((100% - var(--ad-gap)) / 2); } }
/* static ads: 5 + 5 on desktop, a swipeable strip below */
.static-ad { flex: 0 0 calc((100% - 4 * var(--gap)) / 5); min-width: 0; }
@media (max-width: 979px) {
  .static-ads { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.75rem; scrollbar-width: thin; }
  .static-ad { flex: 0 0 38%; scroll-snap-align: start; }
}
@media (max-width: 599px) { .static-ad { flex-basis: 64%; } }
/* five-step process stays one row until it stacks */
@media (min-width: 901px) { .process__step { min-width: 0; } }
/* five stats: one row down to 701px, then a single column */
@media (max-width: 900px) and (min-width: 701px) {
  .stat { flex: 1 1 0; min-width: 0; border-top: 0; border-left: 1px solid var(--line); padding: 0.5rem 0.7rem; }
  .stat:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 700px) { .stat { flex-basis: 100%; } }
/* partner badges: centered, and 3 + 2 when five don't fit */
.badge-row { justify-content: center; }
@media (max-width: 960px) {
  .badge-row__item { flex: 0 0 calc((100% - 3rem) / 3); display: flex; justify-content: center; }
  .badge-row__item img { height: auto; width: 100%; max-width: 150px; }
}
.page-about .badge-row__item, .page-investment .badge-row__item { flex: 0 0 calc((100% - 3rem) / 3); display: flex; justify-content: center; }
.page-about .badge-row__item img, .page-investment .badge-row__item img { height: auto; width: 100%; max-width: 150px; }
.footer__badges { justify-content: center; }
@media (max-width: 900px) {
  .footer__badges > li { flex: 0 0 calc((100% - 4.5rem) / 3); display: flex; justify-content: center; }
  .footer__badges img { height: auto; width: 100%; max-width: 130px; }
}
/* footer: brand on its own row, then three equal link columns, then a single column on phones */
@media (max-width: 960px) {
  .footer__brand { flex-basis: 100%; }
  .footer__col { flex: 1 1 0; }
}
@media (max-width: 520px) { .footer__col { flex-basis: 100%; } }
/* "Under One Roof" stacked layout: 2 + 2 */
.roof.is-static .roof__vendor, .roof.is-static .roof__pillar { flex: 0 0 calc((100% - clamp(0.75rem, 2vw, 1.75rem)) / 2); }
@media (max-width: 559px) { .roof.is-static .roof__vendor, .roof.is-static .roof__pillar { flex-basis: 100%; } }
/* three-up rows: pains, stages, results, client feeds, audit CTA steps */
@media (min-width: 700px) {
  .pain, .stage, .feed-card, .cta-step { flex: 1 1 0; min-width: 0; }
  .results-wall__item { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 699px) {
  .pain, .stage, .feed-card, .cta-step { flex: 1 1 100%; }
}
@media (max-width: 559px) { .results-wall__item { flex-basis: 100%; } }
/* four-up rows: service boxes, brand tiles; 16 portfolio sites */
.icon-box-row--4 .icon-box { flex: 0 0 25%; min-width: 0; }
@media (max-width: 999px) { .icon-box-row--4 .icon-box { flex-basis: 50%; } }
@media (max-width: 559px) { .icon-box-row--4 .icon-box { flex-basis: 100%; } }
.brand-app { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); min-width: 0; }
@media (max-width: 999px) { .brand-app { flex-basis: calc((100% - var(--gap)) / 2); } }
.site-card { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); min-width: 0; }
@media (max-width: 1099px) { .site-card { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 559px) { .site-card { flex-basis: 100%; } }
/* team: five across, then centered rows */
.team-grid { justify-content: center; }
/* case-study index pill only where it fits on one line */
@media (max-width: 999px) { .case-index { display: none; } }
/* audit form: a three-option question sits three across */
@media (min-width: 641px) { .qualifier__options:has(> .qualifier__option:nth-child(3):last-child) > .qualifier__option { flex: 1 1 0; min-width: 0; } }
.scorecard__area { flex: 1 1 150px; }
@media (max-width: 960px) { .badge-row { column-gap: 1.5rem; } }
.page-about .badge-row, .page-investment .badge-row { column-gap: 1.5rem; }
@media (max-width: 900px) { .footer__bottom { flex-direction: column; align-items: center; text-align: center; } .footer__legal { justify-content: center; } }

/* ---------- 33. Investment page (Nov 2026) ---------- */
/* typical ranges: navy price card + three stacked figures (Elementor: 2-col Container; left Container with Heading, Text, Progress Bar; right Counter widgets) */
.price-range { display: flex; flex-wrap: wrap; gap: var(--gap-lg); align-items: stretch; }
.price-range__main {
  flex: 1.35 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border-radius: var(--radius);
  background: radial-gradient(120% 140% at 100% 0%, rgba(170, 206, 238, 0.16) 0%, rgba(170, 206, 238, 0) 55%), var(--navy);
  color: var(--paper);
  box-shadow: var(--shadow-lg);
}
.price-range__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--glacier); }
.price-range__value { font-family: var(--font-display); font-size: clamp(1.7rem, 0.6rem + 2.4vw, 2.6rem); font-weight: 600; line-height: 1.1; color: var(--white); }
.price-range__num { white-space: nowrap; }
.price-range__unit { font-size: 0.45em; margin-left: 0.15em; color: rgba(247, 247, 246, 0.7); }
.price-range__scale { position: relative; height: 6px; margin-top: 0.75rem; border-radius: 6px; background: rgba(170, 206, 238, 0.16); }
.price-range__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--navy-3), var(--glacier)); }
.price-range__ends { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.75rem; line-height: 1.4; letter-spacing: 0.04em; color: rgba(247, 247, 246, 0.66); }
.price-range__ends span:last-child { text-align: right; }
.price-range__text { max-width: 34rem; color: rgba(247, 247, 246, 0.8); }
.price-range__side { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem; }
.price-range__side .metric__label { font-size: 0.9375rem; line-height: 1.55; }
@media (max-width: 999px) {
  .price-range { gap: 2.5rem; }
  .price-range__main, .price-range__side { flex: 1 1 100%; }
  .price-range__side { flex-direction: row; }
  .price-range__side .metric { flex: 1 1 0; min-width: 0; }
}
@media (max-width: 699px) { .price-range__side { flex-direction: column; } }
