/* ===== Tokens ===== */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3.25rem, 0.5rem + 8vw, 8.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --radius-sm: 0.5rem; --radius-md: 0.875rem; --radius-lg: 1.375rem; --radius-xl: 2rem; --radius-full: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 200ms var(--ease);

  --content-narrow: 760px;
  --content-wide: 1200px;

  --font-body: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'General Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Brand constants (from logo) */
  --navy-900: #050a24;
  --navy-800: #0a1238;
  --navy-700: #141d55;
  --royal-500: #2a5bc4;
  --royal-400: #4a7be0;
  --silver-300: #c9cdd6;
  --silver-100: #eceef2;
}

:root, [data-theme='light'] {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-soft: #f4f5f8;
  --color-border: #dfe2e9;
  --color-divider: #e8eaef;
  --color-text: #0b1233;
  --color-text-muted: #545b72;
  --color-text-faint: #8b91a5;
  --color-primary: #2557c7;
  --color-primary-hover: #1b459f;
  --color-tile-dark: #0a1238;
  --nav-bg: rgb(255 255 255 / 0.78);
  --shadow-md: 0 8px 24px rgb(10 18 56 / 0.08);
  --shadow-lg: 0 24px 60px rgb(10 18 56 / 0.14);
}

[data-theme='dark'] {
  --color-bg: #04060f;
  --color-surface: #0b0f1f;
  --color-surface-soft: #090d1b;
  --color-border: #1f2640;
  --color-divider: #161c33;
  --color-text: #eef0f6;
  --color-text-muted: #a2a9bf;
  --color-text-faint: #6c738c;
  --color-primary: #5788f0;
  --color-primary-hover: #7aa2f5;
  --color-tile-dark: #0d1532;
  --nav-bg: rgb(4 6 15 / 0.72);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 24px 60px rgb(0 0 0 / 0.5);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}
body {
  min-height: 100dvh; line-height: 1.6; font-family: var(--font-body);
  font-size: var(--text-base); color: var(--color-text); background: var(--color-bg);
  overflow-x: hidden;
  transition: background-color 400ms var(--ease), color 400ms var(--ease);
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; line-height: 1.08; font-family: var(--font-display); }
p, li { text-wrap: pretty; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
a, button, input, textarea { transition: color var(--transition-interactive), background var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: rgb(42 91 196 / 0.25); }
.skip { position: absolute; left: -999px; top: var(--space-2); z-index: 100; background: var(--color-primary); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); }
.skip:focus { left: var(--space-2); }

.container { width: min(100% - 2 * var(--space-6), var(--content-wide)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--space-6), var(--content-narrow)); }
.section { padding-block: clamp(var(--space-20), 11vw, 10rem); position: relative; }
.section--soft { background: var(--color-surface-soft); }

.eyebrow { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); letter-spacing: 0.01em; margin-bottom: var(--space-4); }
.eyebrow--light { color: #a9c2ff; }
.hero .eyebrow--light { color: #fff; opacity: 0.85; }
.section-head { margin-bottom: clamp(var(--space-10), 6vw, var(--space-20)); max-width: 820px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-title { font-size: var(--text-2xl); font-weight: 600; letter-spacing: -0.03em; }
.section-title--light { color: #fff; }
.lead { font-size: var(--text-lg); line-height: 1.5; color: var(--color-text-muted); margin-top: var(--space-6); max-width: 56ch; }
.lead--light { color: #b9c1d9; }
.grad {
  background: linear-gradient(100deg, var(--royal-500) 0%, #6f8fd8 45%, #9aa3b8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme='dark'] .grad { background-image: linear-gradient(100deg, #6d98ff 0%, #a9bcf0 50%, #d4d8e2 100%); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6); white-space: nowrap;
}
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--block { width: 100%; }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--primary:active { transform: scale(0.98); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--space-1); font-weight: 500; color: var(--color-primary); font-size: var(--text-base); }
.link-arrow span { transition: transform var(--transition-interactive); font-size: 1.3em; line-height: 1; }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow--light { color: #9dbbff; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-full); color: var(--color-text); }
.icon-btn:hover { background: color-mix(in oklab, var(--color-text) 8%, transparent); }

/* ===== Nav ===== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid transparent; transition: background 300ms var(--ease), border-color 300ms var(--ease); }
.nav.is-hero { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav.is-hero .nav__links a, .nav.is-hero .nav__name, .nav.is-hero .icon-btn { color: #fff; }
.nav.is-scrolled { border-bottom-color: var(--color-divider); }
.nav__inner { width: min(100% - 2 * var(--space-6), var(--content-wide)); margin-inline: auto; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.nav__brand { display: flex; align-items: center; gap: var(--space-3); flex: none; min-width: 0; }
.nav__brand img { width: 76px; height: auto; flex: none; filter: drop-shadow(0 2px 6px rgb(5 10 36 / 0.25)); }
.nav__name { font-size: clamp(0.875rem, 0.8rem + 0.3vw, 1.0625rem); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.nav__links { display: flex; gap: var(--space-6); white-space: nowrap; }
.nav__links a { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; }
.nav__links a:hover { color: var(--color-text); }
.nav.is-hero .nav__links a:hover { color: #fff; opacity: 0.8; }
.nav__actions { display: flex; align-items: center; gap: var(--space-2); }
.nav__menu { display: none; }
.mobile-menu { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-6) var(--space-6); background: var(--color-bg); border-bottom: 1px solid var(--color-divider); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: var(--space-3) 0; font-size: var(--text-lg); font-weight: 600; border-bottom: 1px solid var(--color-divider); }
.mobile-menu .btn { margin-top: var(--space-4); }

@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__menu { display: grid; }
}
@media (max-width: 640px) { .nav__actions .btn { display: none; } }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--navy-900); color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.08); animation: heroIn 2.4s var(--ease) forwards; will-change: transform; }
@keyframes heroIn { to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgb(5 10 36 / 0.55) 0%, rgb(5 10 36 / 0.05) 30%, rgb(5 10 36 / 0.2) 55%, rgb(5 10 36 / 0.92) 100%); }
.hero__content { width: min(100% - 2 * var(--space-6), var(--content-wide)); margin-inline: auto; padding-bottom: clamp(var(--space-16), 12vh, var(--space-32)); padding-top: 120px; }
.hero__title { font-size: var(--text-hero); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; margin-bottom: var(--space-6); }
.hero__sub { font-size: var(--text-lg); line-height: 1.45; max-width: 40ch; color: #d3d9ea; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin-top: var(--space-10); }
.hero__scroll { position: absolute; left: 50%; bottom: var(--space-6); width: 22px; height: 36px; border: 1.5px solid rgb(255 255 255 / 0.4); border-radius: 12px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; background: #fff; border-radius: 2px; transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* ===== Trust ===== */
.trust { background: var(--navy-900); color: #fff; border-top: 1px solid rgb(255 255 255 / 0.08); }
.trust__list { width: min(100% - 2 * var(--space-6), var(--content-wide)); margin-inline: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__list li { padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-1); border-left: 1px solid rgb(255 255 255 / 0.08); }
.trust__list li:first-child { border-left: 0; padding-left: 0; }
.trust__list strong { font-size: var(--text-sm); font-weight: 600; }
.trust__list span { font-size: var(--text-xs); color: #96a0bd; }
@media (max-width: 860px) {
  .trust__list { grid-template-columns: 1fr 1fr; }
  .trust__list li { padding: var(--space-6) var(--space-4); border-left: 0; border-top: 1px solid rgb(255 255 255 / 0.08); }
  .trust__list li:nth-child(-n+2) { border-top: 0; }
  .trust__list li:first-child { padding-left: var(--space-4); }
}

/* ===== Statement / EPC ===== */
.statement__title { font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; max-width: 18ch; }
.epc { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); margin-top: clamp(var(--space-16), 8vw, var(--space-24)); }
.epc__item { border-top: 1px solid var(--color-border); padding-top: var(--space-8); }
.epc__letter { display: block; font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-bottom: var(--space-6);
  background: linear-gradient(180deg, #4a7be0 0%, #2557c7 48%, #142c75 52%, #4a7be0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme='dark'] .epc__letter { background-image: linear-gradient(180deg, #f1f3f7 0%, #a3aabb 48%, #626a7d 52%, #cfd3dc 100%); }
.epc__item h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-3); letter-spacing: -0.01em; }
.epc__item p { color: var(--color-text-muted); }
@media (max-width: 760px) { .epc { grid-template-columns: 1fr; gap: var(--space-10); } }

/* ===== Full-bleed ===== */
.bleed { position: relative; height: min(92vh, 880px); overflow: hidden; color: #fff; background: var(--navy-900); }
.bleed__figure { position: absolute; inset: -12% 0; }
.bleed__figure img { width: 100%; height: 100%; object-fit: cover; }
.bleed::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(5 10 36 / 0.85) 0%, rgb(5 10 36 / 0.1) 55%); }
.bleed__caption { position: absolute; left: 0; right: 0; bottom: clamp(var(--space-12), 8vw, var(--space-24)); z-index: 1; }
.bleed__caption h2 { font-size: var(--text-3xl); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.bleed__caption p { margin-top: var(--space-6); font-size: var(--text-lg); color: #d3d9ea; max-width: 46ch; line-height: 1.45; }

/* ===== Bento ===== */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.tile { position: relative; background: var(--color-surface); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-md); }
[data-theme='dark'] .tile { border: 1px solid var(--color-border); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile__text { padding: clamp(var(--space-6), 4vw, var(--space-12)); display: flex; flex-direction: column; gap: var(--space-3); }
.tile__text p:not(.tile__kicker) { color: var(--color-text-muted); max-width: 46ch; }
.tile__kicker { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); }
.tile__title { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.025em; }
.tile .link-arrow { margin-top: var(--space-3); }
.tile--wide { grid-column: span 2; flex-direction: row; align-items: stretch; }
.tile--wide .tile__text { flex: 1 1 45%; justify-content: center; }
.tile--wide img { flex: 1 1 55%; width: 55%; min-width: 0; aspect-ratio: auto; height: clamp(400px, 38vw, 540px); object-position: center 40%; }
.tile--reverse { flex-direction: row-reverse; }
.tile--dark { background: var(--color-tile-dark); color: #fff; }
.tile--dark .tile__text p:not(.tile__kicker) { color: #b9c1d9; }
.tile--dark .tile__kicker { color: #8fb0ff; }
.tile--dark .tile__title { font-size: var(--text-2xl); letter-spacing: -0.035em; }
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .tile--wide, .tile--reverse { grid-column: auto; flex-direction: column; }
  .tile--wide img { width: 100%; height: auto; aspect-ratio: 4 / 3; order: -1; }
}

/* ===== Service ===== */
.service__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(var(--space-12), 7vw, var(--space-24)); align-items: start; }
.service__grid .btn { margin-top: var(--space-8); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8) var(--space-6); }
.checklist li { display: flex; gap: var(--space-4); align-items: flex-start; }
.checklist strong { display: block; font-weight: 600; margin-bottom: var(--space-1); }
.checklist p { color: var(--color-text-muted); font-size: var(--text-sm); }
.check { flex: none; width: 26px; height: 26px; border-radius: var(--radius-full); background: color-mix(in oklab, var(--color-primary) 14%, transparent); position: relative; margin-top: 2px; }
.check::after { content: ''; position: absolute; left: 9px; top: 6px; width: 7px; height: 12px; border: solid var(--color-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 900px) { .service__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .checklist { grid-template-columns: 1fr; } }

/* ===== Brands ===== */
.brands { background: var(--navy-900); color: #fff; overflow: hidden; isolation: isolate; }
.brands__bg { position: absolute; inset: 0; z-index: -1; }
.brands__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.brands__bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgb(5 10 36 / 0.45), rgb(5 10 36 / 0.92) 70%); }
.brands__inner { text-align: center; }
.brands__inner .lead { margin-inline: auto; }
.brands .section-title { max-width: 20ch; margin-inline: auto; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: clamp(var(--space-12), 6vw, var(--space-20)); }
.brand-grid li { display: grid; place-items: center; gap: var(--space-2); padding: var(--space-10) var(--space-4); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.02)); border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.brand-name { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #d6dae3 50%, #9ea6b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { font-size: var(--text-xs); font-weight: 500; color: #8fb0ff; text-transform: uppercase; letter-spacing: 0.12em; }
@media (min-width: 861px) {
  .brand-grid { grid-template-columns: repeat(12, 1fr); }
  .brand-grid li { grid-column: span 3; }
  .brand-grid li:nth-child(n+5) { grid-column: span 4; }
}
@media (max-width: 860px) { .brand-grid { grid-template-columns: 1fr 1fr; } .brand-grid li:last-child { grid-column: span 2; } }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-6); counter-reset: s; }
.steps li { padding-top: var(--space-6); border-top: 2px solid var(--color-border); position: relative; }
.steps li::before { content: ''; position: absolute; top: -2px; left: 0; height: 2px; width: 0; background: var(--color-primary); transition: width 1.2s var(--ease); }
.steps li.is-in::before { width: 100%; }
.steps__n { font-size: var(--text-xs); font-weight: 600; color: var(--color-primary); letter-spacing: 0.08em; }
.steps h3 { font-size: var(--text-lg); font-weight: 600; margin: var(--space-3) 0 var(--space-2); letter-spacing: -0.01em; }
.steps p { color: var(--color-text-muted); font-size: var(--text-sm); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; gap: var(--space-10) var(--space-6); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { list-style: none; cursor: pointer; padding: var(--space-6) 0; font-size: var(--text-lg); font-weight: 600; display: flex; justify-content: space-between; gap: var(--space-6); align-items: center; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.6em; font-weight: 400; line-height: 1; color: var(--color-primary); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--space-6); color: var(--color-text-muted); max-width: 64ch; }
.faq summary:hover { color: var(--color-primary); }

/* ===== Estimate ===== */
.estimate { background: radial-gradient(ellipse at 15% 0%, #1a2a78 0%, var(--navy-800) 45%, var(--navy-900) 100%); color: #fff; }
.estimate__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(var(--space-12), 7vw, var(--space-24)); align-items: start; }
.estimate__logo { width: 160px; margin-bottom: var(--space-8); filter: drop-shadow(0 12px 30px rgb(42 91 196 / 0.45)); }
.estimate__facts { margin-top: var(--space-10); display: grid; gap: var(--space-3); }
.estimate__facts li { font-size: var(--text-sm); color: #c5cce0; padding-left: var(--space-6); position: relative; }
.estimate__facts li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--royal-400); }
.estimate__facts a { color: #fff; font-weight: 600; }
.form { background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-10)); display: grid; gap: var(--space-5); backdrop-filter: blur(16px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form label { display: grid; gap: var(--space-2); font-size: var(--text-xs); font-weight: 500; color: #c5cce0; }
.form input[type='text'], .form input[type='tel'], .form input[type='email'], .form textarea {
  width: 100%; font-size: var(--text-base); color: #fff; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
.form textarea { resize: vertical; min-height: 110px; }
.form ::placeholder { color: #7f88a3; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--royal-400); box-shadow: 0 0 0 4px rgb(74 123 224 / 0.25); }
.form input[aria-invalid='true'] { border-color: #ff8a8a; }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips legend { font-size: var(--text-xs); font-weight: 500; color: #c5cce0; margin-bottom: var(--space-3); }
.chips label { display: inline-flex; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); border: 1px solid rgb(255 255 255 / 0.2); font-size: var(--text-sm); color: #e3e7f2; cursor: pointer; transition: all var(--transition-interactive); user-select: none; }
.chips span:hover { border-color: rgb(255 255 255 / 0.45); }
.chips input:checked + span { background: var(--royal-500); border-color: var(--royal-500); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid #8fb0ff; outline-offset: 2px; }
.form .btn--primary { background: #fff; color: var(--navy-800); margin-top: var(--space-2); }
.form .btn--primary:hover { background: var(--silver-100); }
.form__status { font-size: var(--text-sm); color: #b9c1d9; min-height: 1.5em; text-align: center; }
.form__status.is-error { color: #ffb3b3; }
.form__status.is-ok { color: #a9d8a0; }
@media (max-width: 900px) { .estimate__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.footer { background: var(--color-surface-soft); border-top: 1px solid var(--color-divider); padding-block: var(--space-12); font-size: var(--text-xs); color: var(--color-text-muted); }
.footer__inner { display: grid; gap: var(--space-8); }
.footer__brand { display: flex; align-items: center; gap: var(--space-4); }
.footer__brand img { width: 80px; flex: none; }
.footer__brand strong { display: block; white-space: nowrap; color: var(--color-text); font-size: var(--text-sm); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); padding-block: var(--space-6); border-block: 1px solid var(--color-divider); }
.footer__links a:hover { color: var(--color-text); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }

/* ===== Reveal motion ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: 1.4s; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ===== Nav phone ===== */
.nav__phone { font-size: var(--text-xs); font-weight: 600; color: var(--color-text); padding-inline: var(--space-2); white-space: nowrap; }
.nav.is-hero .nav__phone { color: #fff; }
.nav__phone:hover { color: var(--color-primary); }
@media (max-width: 1340px) { .nav__phone { display: none; } }
@media (max-width: 560px) { .nav__inner { gap: var(--space-2); } .nav__brand { gap: var(--space-2); } .nav__actions { gap: 0; } }

.footer__brand span { display: block; }
.footer__brand a:hover, .estimate__facts a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ===== At a glance ===== */
.glance__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(var(--space-12), 7vw, var(--space-24)); align-items: start; }
.facts { border-top: 1px solid var(--color-border); }
.facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: var(--space-4); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); }
.facts dt { font-size: var(--text-sm); color: var(--color-text-muted); }
.facts dd { font-size: var(--text-sm); font-weight: 500; }
.facts a { color: var(--color-primary); }
.facts a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .glance__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: var(--space-1); } }

/* ===== Small-screen nav fit: name always on one line ===== */
@media (max-width: 480px) {
  .nav__inner { width: calc(100% - 2 * var(--space-4)); }
  .nav__brand img { width: clamp(50px, 16vw, 64px); }
  .nav__name { font-size: clamp(0.75rem, 3.55vw, 1rem); letter-spacing: -0.015em; }
  .icon-btn { width: 32px; height: 32px; }
}
@media (max-width: 340px) { .nav__brand img { width: 46px; } .nav__brand { gap: 6px; } }
@media (max-width: 420px) { .footer__brand { gap: var(--space-3); } .footer__brand img { width: 60px; } .footer__brand strong { font-size: clamp(0.8125rem, 4.1vw, 1rem); } }

/* ===== Responsive images & mobile polish ===== */
.hero__media picture, .bleed__figure picture { display: block; width: 100%; height: 100%; }
.mobile-menu .theme-row { display: none; }
@media (max-width: 640px) {
  .nav__actions [data-theme-toggle] { display: none; }
  .mobile-menu .theme-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; font-size: var(--text-lg); font-weight: 600; border-bottom: 1px solid var(--color-divider); width: 100%; text-align: left; color: var(--color-text); }
}
@media (max-width: 700px) {
  .hero { align-items: end; }
  .hero__img { object-position: center 30%; }
  .hero__shade { background: linear-gradient(180deg, rgb(5 10 36 / 0.55) 0%, rgb(5 10 36 / 0) 18%, rgb(5 10 36 / 0) 45%, rgb(5 10 36 / 0.75) 62%, rgb(5 10 36 / 0.96) 100%); }
  .hero__content { padding-bottom: var(--space-12); }
  .hero__title { font-size: clamp(3rem, 14vw, 4.25rem); margin-bottom: var(--space-4); }
  .hero__sub { font-size: var(--text-base); }
  .hero__ctas { margin-top: var(--space-8); gap: var(--space-5); }
  .hero__ctas .btn { width: 100%; }
  .bleed { height: auto; min-height: 0; aspect-ratio: 9 / 15; max-height: 880px; }
  .bleed__figure { inset: 0; transform: none !important; }
  .bleed__figure img { object-position: center top; }
  .bleed::after { background: linear-gradient(0deg, rgb(5 10 36 / 0.95) 0%, rgb(5 10 36 / 0.6) 32%, rgb(5 10 36 / 0) 55%); }
  .bleed__caption h2 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .bleed__caption p { font-size: var(--text-base); }
  .tile img { aspect-ratio: 16 / 11; }
  .tile--wide img { aspect-ratio: 16 / 11; }
  .tile--dark .tile__title { font-size: var(--text-xl); }
  .section { padding-block: var(--space-20); }
  .statement__title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .epc { margin-top: var(--space-12); }
}

/* ===== Mobile-only condensing ===== */
.mm-toggle { display: none; }
@media (max-width: 700px) {
  .mm-collapsed > .mm-extra { display: none; }
  .mm-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    width: 100%; margin-top: var(--space-5); padding: var(--space-3) var(--space-5);
    border: 1px solid var(--color-border); border-radius: var(--radius-full);
    font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); background: var(--color-surface);
  }
  .mm-toggle svg { transition: transform 300ms var(--ease); }
  .mm-toggle[aria-expanded='true'] svg { transform: rotate(180deg); }
  .mm-toggle:active { transform: scale(0.98); }

  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 2.25rem 1fr; align-items: baseline; column-gap: var(--space-2); padding: 0; border-top: 1px solid var(--color-border); }
  .steps li:last-child { border-bottom: 1px solid var(--color-border); }
  .steps li::before { display: none; }
  .steps__n { grid-column: 1; }
  .steps h3 { grid-column: 2; margin: 0; padding: var(--space-4) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); cursor: pointer; font-size: var(--text-base); }
  .steps h3::after { content: '+'; font-size: 1.5em; font-weight: 400; line-height: 1; color: var(--color-primary); transition: transform 300ms var(--ease); }
  .steps li.is-open h3::after { transform: rotate(45deg); }
  .steps p { grid-column: 2; display: none; padding-bottom: var(--space-4); }
  .steps li.is-open p { display: block; }

  .faq summary { font-size: var(--text-base); padding: var(--space-4) 0; }
  .section-head { margin-bottom: var(--space-8); }
  .glance .lead { font-size: var(--text-base); }
  .facts > div { padding: var(--space-3) 0; }
}

/* ===== Form success ===== */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.form__status a { color: #fff; font-weight: 600; text-decoration: underline; }
.form__done { background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--radius-xl); padding: clamp(var(--space-8), 5vw, var(--space-12)); display: grid; gap: var(--space-4); justify-items: start; outline: none; animation: doneIn 600ms var(--ease); }
.form__done-icon { width: 56px; height: 56px; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--royal-500); color: #fff; }
.form__done h3 { font-size: var(--text-xl); font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.form__done p { color: #c5cce0; }
.form__done-alt a { color: #fff; font-weight: 600; }
@keyframes doneIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
