/* Marwells Construction: site styles */

:root {
  /* Brand blues taken from the original home page */
  --navy-950: #0c1a2e;
  --navy-900: #13253f;
  --navy: #1d365c;
  --steel: #206886;
  --steel-600: #1a5670;
  --sky: #6ec1e4;
  --sky-100: #e6f4fa;

  --ink: #17212e;
  --text: #2f3b48;
  --muted: #566372;
  --line: #e1e6ec;
  --surface: #f4f6f9;
  --white: #ffffff;
  --danger: #b42318;
  --success: #1f7a4d;

  --font-display: "Marcellus", "Times New Roman", Georgia, serif;
  --font-head: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 56, 0.06), 0 1px 3px rgba(16, 32, 56, 0.08);
  --shadow: 0 10px 30px -12px rgba(16, 32, 56, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(16, 32, 56, 0.35);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 76px;
  --section-y: clamp(64px, 9vw, 112px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--steel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
  font-weight: 400;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--sky); }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; line-height: 1.2;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.2s var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--steel); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-outline:hover { border-color: var(--steel); color: var(--steel); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy-950); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.95rem; font-weight: 600;
  color: var(--steel); text-decoration: none;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.2s var(--ease-out); }
a:hover > .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand > span { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 34px; height: auto; }
.brand-word { width: 140px; height: auto; }
.brand-light { display: none !important; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  color: var(--ink); text-decoration: none; transition: color 0.2s, background-color 0.2s;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li > a[aria-current="page"] { color: var(--steel); }
.main-nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--steel); border-radius: 0; }
.menu-toggle {
  display: grid; place-items: center; width: 28px; height: 28px; margin-left: -10px;
  background: none; border: 0; border-radius: 4px; color: var(--ink);
}
.menu-toggle .icon { width: 16px; height: 16px; transition: transform 0.2s; }
.has-menu.is-open .menu-toggle .icon { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: -12px; padding-top: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s var(--ease-out), visibility 0.2s;
}
.has-menu:hover .dropdown, .has-menu.is-open .dropdown, .has-menu:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown ul {
  list-style: none; margin: 0; padding: 8px; width: 340px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.dropdown a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 0.92rem; }
.dropdown a .icon { width: 20px; height: 20px; color: var(--steel); }
.dropdown a:hover { background: var(--surface); color: var(--steel); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.header-phone .icon { width: 18px; height: 18px; color: var(--steel); }
.header-phone:hover { color: var(--steel); }

.nav-burger {
  display: none; width: 46px; height: 46px; place-items: center;
  background: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--ink);
}
.nav-burger .icon-close { display: none; }
.nav-burger[aria-expanded="true"] .icon-open { display: none; }
.nav-burger[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: #fff; overflow-y: auto; padding: 16px var(--gutter) 32px;
  border-top: 1px solid var(--line);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > nav > ul > li { border-bottom: 1px solid var(--line); }
.mobile-nav ul a { display: block; padding: 14px 4px; font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-sub { padding: 0 0 10px 12px !important; }
.mobile-nav .mobile-sub a { padding: 8px 4px; font-size: 0.98rem; font-weight: 400; color: var(--muted); }
.mobile-cta { display: grid; gap: 12px; margin-top: 24px; }
body.nav-open { overflow: hidden; }

/* Home: header sits on top of the hero until the page scrolls */
.page-home .site-header { position: fixed; left: 0; right: 0; }
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) {
  background: linear-gradient(to bottom, rgba(12, 26, 46, 0.55), rgba(12, 26, 46, 0));
  border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .brand-dark { display: none; }
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .brand-light { display: flex !important; }
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .main-nav > ul > li > a,
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .menu-toggle,
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .header-phone { color: #fff; }
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .main-nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sky); }
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .header-phone .icon { color: var(--sky); }
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .btn-primary { background: #fff; color: var(--navy); }
.page-home .site-header:not(.is-scrolled):not(.is-menu-open) .nav-burger { color: #fff; border-color: rgba(255, 255, 255, 0.45); }

/* ---------- Hero slider (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(660px, 100svh);
  display: grid; grid-template-rows: 1fr auto; grid-template-columns: 100%;
  color: #fff; background: var(--navy-950);
}
.hero-slide {
  grid-row: 1 / -1; grid-column: 1;
  display: grid; grid-template-rows: subgrid;
  position: relative; isolation: isolate;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.9s var(--ease-out), visibility 0s; z-index: 1; }
.hero-media, .page-hero-media, .cta-media { position: absolute; inset: 0; z-index: -2; }
.hero-media picture, .page-hero-media picture, .cta-media picture { height: 100%; }
.cover { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 26, 46, 0.86) 0%, rgba(19, 37, 63, 0.62) 46%, rgba(19, 37, 63, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 26, 46, 0.92) 0%, rgba(12, 26, 46, 0) 45%);
}
.hero-inner { grid-row: 1; align-self: end; padding-top: calc(var(--header-h) + 56px); padding-bottom: 40px; }
.hero-title { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4.4rem); max-width: 900px; line-height: 1.12; margin-bottom: 20px; }
.rotator { position: relative; display: block; height: 1.2em; overflow: hidden; color: var(--sky); }
.rotator-word { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(100%); }
.rotator-word.is-current { opacity: 1; transform: none; }
.no-js .rotator-word:not(.is-current) { display: none; }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 620px; color: rgba(255, 255, 255, 0.88); margin-bottom: 32px; }

.hero-pillars { grid-row: 2; grid-column: 1; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding-bottom: 40px; }
.pillar {
  position: relative; overflow: hidden; display: block; text-align: left;
  padding: 22px 24px; border: 0; color: #fff;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18);
  transition: background-color 0.3s;
}
.pillar:hover { background: rgba(255, 255, 255, 0.13); }
.pillar.is-active { background: rgba(255, 255, 255, 0.16); }
.pillar:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pillar:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.pillar-progress { position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--sky); }
.pillar.is-active .pillar-progress { width: 100%; }
.hero.is-autoplay .pillar.is-active .pillar-progress { width: 0; animation: pillar-progress var(--slide-time, 8s) linear forwards; }
.hero.is-paused .pillar.is-active .pillar-progress { animation-play-state: paused; }
@keyframes pillar-progress { from { width: 0; } to { width: 100%; } }
.pillar-label { display: block; font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 6px; transition: color 0.3s; }
.pillar.is-active .pillar-label, .pillar:hover .pillar-label { color: var(--sky); }
.pillar-text { display: block; color: rgba(255, 255, 255, 0.88); font-size: 1rem; line-height: 1.5; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--navy); color: #fff; padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(1000px 400px at 85% 0%, rgba(110, 193, 228, 0.22), transparent 60%);
}
.page-hero.has-image::before { background: linear-gradient(90deg, rgba(12, 26, 46, 0.92) 0%, rgba(19, 37, 63, 0.72) 55%, rgba(19, 37, 63, 0.35) 100%); }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: rgba(255, 255, 255, 0.86); margin: 0; }
.page-hero .eyebrow { color: var(--sky); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 0.9rem; }
.crumbs li { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.7); }
.crumbs li + li::before { content: "/"; color: rgba(255, 255, 255, 0.4); }
.crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Section headings ---------- */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.section-head-split h2 { margin-bottom: 0; }
.section-head-split > p { max-width: 460px; }

/* ---------- Intro ---------- */
.intro-section { padding-bottom: 0; }
.intro-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px 64px; align-items: end; }
.intro-text { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.55; color: var(--ink); margin: 0; max-width: 820px; }
.intro-text strong { color: var(--navy); }

/* ---------- Vision & Mission ---------- */
.vision-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; }
.vision-media { border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; }
.vision-media picture, .vision-media img { height: 100%; }
.vision-cards { display: grid; gap: 24px; }
.vision-card { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); }
.vision-card h2 { font-size: 1.4rem; margin-bottom: 10px; }
.vision-card p { margin: 0; color: var(--muted); }
.vision-card-dark { background: var(--navy); }
.vision-card-dark h2 { color: #fff; }
.vision-card-dark p { color: rgba(255, 255, 255, 0.82); }
.vision-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--steel); margin-bottom: 20px; }
.vision-card-dark .vision-icon { background: rgba(110, 193, 228, 0.16); color: var(--sky); }
.vision-icon .icon { width: 24px; height: 24px; }

/* ---------- Services ---------- */
.services-section { background: var(--surface); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 24px; background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--line); text-decoration: none; color: var(--text);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.service-card::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px;
  background: var(--steel); border-radius: 3px 3px 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--text); }
.service-card:hover::after { transform: scaleX(1); }
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.98rem; flex: 1; }
.service-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
  border-radius: 12px; background: var(--sky-100); color: var(--steel);
  transition: background-color 0.3s, color 0.3s;
}
.service-icon .icon { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--steel); color: #fff; }
.service-card-cta { background: var(--navy); border-color: var(--navy); }
.service-card-cta h3 { color: #fff; }
.service-card-cta p { color: rgba(255, 255, 255, 0.8); }
.service-card-cta .service-icon { background: rgba(110, 193, 228, 0.16); color: var(--sky); }
.service-card-cta .link-arrow { color: var(--sky); }
.service-card-cta:hover { color: #fff; }
.service-card-cta:hover .service-icon { background: var(--sky); color: var(--navy); }
.service-card-cta::after { background: var(--sky); }

/* ---------- Engineering band ---------- */
.engineering-section { background: var(--navy-900); color: rgba(255, 255, 255, 0.84); position: relative; overflow: hidden; }
.engineering-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(110, 193, 228, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 193, 228, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 30%, #000 0%, transparent 70%);
}
.engineering-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; align-items: center; }
.engineering-copy h2 { color: #fff; }
.check-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; }
.check-list .icon { width: 22px; height: 22px; padding: 3px; margin-top: 2px; border-radius: 50%; background: var(--sky-100); color: var(--steel); }
.check-list-light li { color: #fff; }
.check-list-light .icon { background: rgba(110, 193, 228, 0.18); color: var(--sky); }
.discipline-list { display: grid; gap: 16px; }
.discipline {
  display: flex; gap: 20px; padding: 24px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s, border-color 0.3s;
}
.discipline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(110, 193, 228, 0.4); }
.discipline h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.discipline p { margin: 0; font-size: 0.98rem; }
.discipline-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--steel); color: #fff; }
.discipline-icon .icon { width: 26px; height: 26px; }

/* ---------- Process ---------- */
.process-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.process-step { position: relative; padding-top: 28px; }
.process-step::before { content: ""; position: absolute; top: 21px; left: 56px; right: -20px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.process-step:last-child::before { display: none; }
.process-num {
  position: absolute; top: 0; left: 0; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2px solid var(--steel); color: var(--steel);
  font-family: var(--font-head); font-weight: 600;
}
.process-step h3 { margin-top: 40px; font-size: 1.08rem; }
.process-step p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials-section { background: var(--surface); }
.testimonial-viewport {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 24px; margin: -4px; scrollbar-width: none;
}
.testimonial-viewport::-webkit-scrollbar { display: none; }
.testimonial {
  scroll-snap-align: start; margin: 0; display: flex; flex-direction: column;
  padding: 32px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.quote-mark { width: 34px; height: 34px; color: var(--sky); margin-bottom: 18px; }
.testimonial blockquote { margin: 0 0 24px; flex: 1; }
.testimonial blockquote p { margin: 0; color: var(--ink); font-size: 1.05rem; }
.testimonial figcaption { padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial figcaption strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.testimonial figcaption span { font-size: 0.9rem; color: var(--muted); }
.slider-controls { display: flex; gap: 10px; margin-top: 16px; }
.slider-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line); color: var(--navy); transition: all 0.2s;
}
.slider-btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; }
.slider-btn:disabled { opacity: 0.4; cursor: default; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px 80px; align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-intro p:not(.eyebrow) { color: var(--muted); margin-bottom: 28px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-size: inherit; }
.faq-q {
  display: flex; align-items: flex-start; gap: 18px; width: 100%;
  padding: 22px 0; background: none; border: 0; text-align: left;
  font-family: var(--font-head); font-size: 1.08rem; font-weight: 600; color: var(--ink);
}
.faq-q:hover .faq-text { color: var(--steel); }
.faq-num { font-size: 0.85rem; color: var(--steel); padding-top: 3px; min-width: 22px; font-variant-numeric: tabular-nums; }
.faq-text { flex: 1; transition: color 0.2s; }
.faq-sign {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-top: -3px;
  border-radius: 50%; border: 1.5px solid var(--line); color: var(--navy);
  transition: transform 0.3s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.faq-sign .icon { width: 16px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-sign { transform: rotate(45deg); background: var(--steel); border-color: var(--steel); color: #fff; }
.faq-a { overflow: hidden; }
.faq-a-inner { padding: 0 50px 24px 40px; color: var(--muted); }
.faq-a-inner p { margin: 0; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); transition: box-shadow 0.3s, transform 0.3s var(--ease-out); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.post-card-media picture, .post-card-media img { height: 100%; }
.post-card-media img { transition: transform 0.6s var(--ease-out); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-card time { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.post-card h3 { font-size: 1.2rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--steel); }
.post-card p { color: var(--muted); flex: 1; font-size: 0.98rem; }
.post-grid-single { grid-template-columns: 1fr; }
.post-grid-single .post-card { display: grid; grid-template-columns: 1.1fr 1fr; }
.post-grid-single .post-card-media { aspect-ratio: auto; min-height: 320px; }
.post-grid-single .post-card-body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.post-grid-single .post-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 10vw, 120px) 0; color: #fff; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(19, 37, 63, 0.95) 0%, rgba(29, 54, 92, 0.85) 50%, rgba(32, 104, 134, 0.72) 100%); }
.cta-inner { max-width: 860px; text-align: center; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255, 255, 255, 0.86); font-size: 1.15rem; margin-bottom: 32px; }
.cta-inner .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.72); padding-top: 72px; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 0.8fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 150px; margin-bottom: 20px; }
.footer-brand p { max-width: 300px; }
.footer-title { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--sky); }
.footer-hours { margin: 20px 0 0; display: grid; gap: 4px; }
.footer-hours div { display: flex; justify-content: space-between; gap: 16px; max-width: 260px; }
.footer-hours dt { color: rgba(255, 255, 255, 0.6); }
.footer-hours dd { margin: 0; color: #fff; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); transition: all 0.2s; }
.social a:hover { background: var(--sky); border-color: var(--sky); color: var(--navy-950); }
.social .icon { width: 19px; height: 19px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; }
.footer-bottom p { margin: 0; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--steel); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--navy); color: #fff; }
.icon-up { transform: rotate(-90deg); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px 80px; align-items: start; }
.about-copy p { font-size: 1.1rem; }
.about-copy p:first-of-type { font-size: 1.3rem; color: var(--ink); line-height: 1.5; }
.about-media { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
.about-media .frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.about-media .frame picture, .about-media .frame img { height: 100%; }
.founder-section { background: var(--surface); }
.founder-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px 80px; align-items: center; }
.founder-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; }
.founder-media picture, .founder-media img { height: 100%; }
.founder-badge {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: rgba(255, 255, 255, 0.95); border-radius: var(--radius); box-shadow: var(--shadow);
}
.founder-badge .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--steel); color: #fff; }
.founder-badge strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 0.98rem; }
.founder-badge span { font-size: 0.9rem; color: var(--muted); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.value-card .service-icon { margin-bottom: 18px; }
.value-card h3 { font-size: 1.12rem; }
.value-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Service detail ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px 64px; align-items: start; }
.service-intro { font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.prose { font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--steel); color: var(--ink); font-size: 1.15rem; }
.prose a:not(.btn) { color: var(--steel); }
.service-feature { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; margin: 0 0 36px; }
.service-feature picture, .service-feature img { height: 100%; }
.includes { margin: 40px 0; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); }
.includes h2 { font-size: 1.4rem; margin-top: 0; }
.includes .check-list { grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin-top: 20px; }
.includes .check-list li { color: var(--ink); }
.disciplines-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.disciplines-inline .value-card { padding: 22px; }

.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.side-card h2 { font-size: 1.2rem; margin-bottom: 12px; }
.side-card-dark { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, 0.85); }
.side-card-dark h2 { color: #fff; }
.side-card-dark .btn { width: 100%; margin-top: 8px; }
.side-contact { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 10px; }
.side-contact a { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.side-contact a:hover { color: var(--sky); }
.side-contact .icon { width: 18px; height: 18px; color: var(--sky); }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; color: var(--ink); text-decoration: none; font-size: 0.98rem; }
.side-links a .icon { width: 16px; height: 16px; color: var(--muted); transition: transform 0.2s, color 0.2s; }
.side-links a:hover { color: var(--steel); }
.side-links a:hover .icon { transform: translateX(3px); color: var(--steel); }
.side-links a[aria-current="page"] { color: var(--steel); font-weight: 600; }

/* ---------- Article ---------- */
.article-hero { padding-bottom: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; margin-top: 18px; }
.article-cover { max-width: 1000px; margin: -1px auto 0; padding: 0 var(--gutter); position: relative; }
.article-cover::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; background: var(--navy); z-index: -1; }
.article-cover-frame { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8.5; box-shadow: var(--shadow-lg); }
.article-cover-frame picture, .article-cover-frame img { height: 100%; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-share { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pagination [aria-current] { background: var(--steel); border-color: var(--steel); color: #fff; }

/* ---------- Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px 64px; align-items: start; }
.info-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.info-item .service-icon { width: 46px; height: 46px; margin: 0; }
.info-item .service-icon .icon { width: 22px; height: 22px; }
.info-item h2 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 2px 0 4px; }
.info-item p, .info-item a { margin: 0; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.info-item a:hover { color: var(--steel); }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours-table th, .hours-table td { padding: 4px 0; text-align: left; }
.hours-table th { font-weight: 400; color: var(--muted); }
.hours-table td { color: var(--ink); text-align: right; font-family: var(--font-head); }

.form-card { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; }
.form-card > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--danger); }
.field .optional { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #cfd7e0; border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.textarea { min-height: 150px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566372' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.input:hover, .select:hover, .textarea:hover { border-color: #aab6c3; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 4px rgba(32, 104, 134, 0.15); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--danger); margin: 0; }
.field-hint { font-size: 0.88rem; color: var(--muted); margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: var(--text); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--steel); flex: none; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: 0.98rem; }
.alert-error { background: #fdf0ef; color: #7a1d14; border: 1px solid #f4c7c2; }
.alert-success { background: #ecf7f1; color: #14532d; border: 1px solid #bfe3cf; }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.btn[aria-busy="true"] { opacity: 0.75; pointer-events: none; }

/* ---------- Simple pages ---------- */
.narrow { max-width: 820px; }
.status-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 96px 0; background: radial-gradient(800px 380px at 50% 0%, var(--sky-100), transparent 70%); }
.status-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 400; line-height: 1; color: var(--navy); letter-spacing: -0.04em; margin: 0 0 8px; }
.status-code span { color: var(--sky); }
.status-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.status-page p { color: var(--muted); max-width: 520px; margin-left: auto; margin-right: auto; }
.status-page .btn-row { justify-content: center; margin-top: 28px; }
.status-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 36px 0 0; padding: 0; }
.success-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; background: var(--steel); color: #fff; }
.success-icon .icon { width: 36px; height: 36px; }

/* ---------- Reveal animation start states (only with JS + motion allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* 0.01, not 0: looks the same, but the browser still counts the text as painted, so
     PageSpeed/Lighthouse can measure the Largest Contentful Paint (opacity 0 gave NO_LCP). */
  .js [data-reveal], .js [data-reveal-item], .js [data-hero-item], .js [data-hero-pillar] { opacity: 0.01; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .process-list { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process-step:nth-child(3)::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  .main-nav, .header-phone { display: none; }
  .nav-burger { display: grid; }
  .header-actions { margin-left: auto; }
  .vision-grid, .engineering-grid, .faq-grid, .about-grid, .founder-grid, .service-layout, .contact-grid { grid-template-columns: 1fr; }
  .vision-cards { grid-template-columns: 1fr 1fr; }
  .vision-media { min-height: 320px; }
  .faq-intro, .about-media, .sidebar { position: static; }
  .testimonial-viewport { grid-auto-columns: calc((100% - 24px) / 2); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-grid-single .post-card { grid-template-columns: 1fr; }
  .post-grid-single .post-card-media { min-height: 0; aspect-ratio: 16 / 9; }
  .values-grid, .disciplines-inline { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .header-actions .btn { display: none; }
  .brand-word { width: 120px; }
  .brand-icon { width: 30px; }
  .hero { min-height: max(620px, 100svh); }
  .hero-inner { padding-top: calc(var(--header-h) + 40px); padding-bottom: 28px; }
  .hero-pillars { gap: 6px; padding-bottom: 24px; }
  .pillar, .pillar:first-child, .pillar:last-child { border-radius: var(--radius-sm); padding: 14px 12px; }
  .pillar-label { font-size: 0.72rem; letter-spacing: 0.1em; margin: 0; }
  .pillar-text { display: none; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .service-grid, .post-grid, .vision-cards, .form-grid, .includes .check-list { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; gap: 28px; }
  .process-step { padding: 0 0 0 64px; }
  .process-step::before { top: 46px; left: 21px; right: auto; bottom: -28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); display: block !important; }
  .process-step:last-child::before { display: none !important; }
  .process-step h3 { margin-top: 8px; }
  .testimonial-viewport { grid-auto-columns: 88%; }
  .faq-a-inner { padding: 0 0 22px 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { margin-bottom: 32px; }
  .includes, .side-card { padding: 24px; }
  .cta-inner .btn-row .btn { flex: 1 1 100%; }
}

/* Vertical steps (quote page and small screens) */
.process-list-vertical { grid-template-columns: 1fr !important; gap: 28px; margin: 28px 0 36px; }
.process-list-vertical .process-step { padding: 0 0 0 64px; }
.process-list-vertical .process-step::before { top: 46px; left: 21px; right: auto; bottom: -28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); display: block; }
.process-list-vertical .process-step:last-child::before { display: none; }
.process-list-vertical .process-step h3 { margin-top: 8px; }
.form-grid { align-items: start; }

/* Photo credit for licensed stock images */
.vision-media { position: relative; margin: 0; }
.photo-credit {
  position: absolute; right: 12px; bottom: 10px; z-index: 1;
  padding: 3px 8px; border-radius: 4px; font-size: 0.72rem; line-height: 1.3;
  background: rgba(12, 26, 46, 0.55); color: rgba(255, 255, 255, 0.8);
}
.photo-credit a { color: inherit; text-decoration: none; }
.photo-credit a:hover { color: #fff; text-decoration: underline; }

/* ---------- Animated process line: a light travels between steps ---------- */
.process-animated .process-step::before { display: none !important; }
.process-num { z-index: 1; transition: background-color 0.4s, color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out); }
.process-step h3 { transition: color 0.4s; }
.process-step.is-lit .process-num { background: var(--steel); color: #fff; box-shadow: 0 0 0 6px rgba(110, 193, 228, 0.25); }
.process-step.is-lit h3 { color: var(--steel); }

.process-line {
  --p: 0;
  position: absolute; top: 21px; left: 56px; right: -8px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.process-fill {
  position: absolute; inset: 0; background: linear-gradient(90deg, var(--steel), var(--sky));
  transform-origin: left center; transform: scaleX(var(--p));
}
.process-dot {
  position: absolute; top: 50%; left: calc(var(--p) * 100%);
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 0 4px rgba(110, 193, 228, 0.3), 0 0 14px 2px rgba(110, 193, 228, 0.8);
  opacity: 0;
}
.process-line.is-moving .process-dot { opacity: 1; }

/* Without animation everything is shown as complete */
.no-motion .process-step .process-num { background: var(--steel); color: #fff; }
.no-motion .process-fill { transform: scaleX(1); }

@media (max-width: 1180px) {
  .process-step:nth-child(3) .process-line { display: none; }
}
@media (max-width: 720px) {
  .process-step:nth-child(3) .process-line { display: block; }
  .process-line { top: 46px; left: 21px; right: auto; bottom: -28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .process-fill { background: linear-gradient(180deg, var(--steel), var(--sky)); transform-origin: center top; transform: scaleY(var(--p)); }
  .no-motion .process-fill { transform: scaleY(1); }
  .process-dot { top: calc(var(--p) * 100%); left: 50%; margin: -5px 0 0 -5px; }
}
.post-grid-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .post-grid-two { grid-template-columns: 1fr; } }

/* Founder section without a photo */
.founder-grid { align-items: start; grid-template-columns: 1fr 1fr; }
.founder-lead { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.4; color: var(--ink); }
.founder-facts { display: grid; gap: 12px; margin-top: 28px; }
.founder-fact { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.founder-fact .icon { width: 44px; height: 44px; padding: 11px; border-radius: 10px; background: var(--steel); color: #fff; }
.founder-fact strong { display: block; color: var(--ink); font-size: 1.05rem; }
.founder-fact span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 1023px) { .founder-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky call / quote buttons ---------- */
.float-cta {
  position: fixed; right: 80px; bottom: 20px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s, background-color 0.2s;
}
.float-cta .icon { width: 18px; height: 18px; color: var(--sky); }
.float-cta.is-visible { opacity: 1; visibility: visible; transform: none; }
.float-cta:hover { background: var(--steel); color: #fff; }
.float-cta:hover .icon { color: #fff; }

.mobile-bar { display: none; }

@media (max-width: 1023px) {
  .float-cta { display: none; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(16, 32, 56, 0.25);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform 0.35s var(--ease-out);
  }
  .mobile-bar.is-single { grid-template-columns: 1fr; }
  .mobile-bar.is-visible { transform: none; }
  body.nav-open .mobile-bar { transform: translateY(110%); }
  .mobile-bar-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border-radius: var(--radius-sm); text-decoration: none;
    font-family: var(--font-head); font-weight: 600; font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-bar-btn .icon { width: 18px; height: 18px; }
  .mobile-bar-call { border: 1.5px solid var(--steel); color: var(--steel); background: #fff; }
  .mobile-bar-quote { background: var(--steel); color: #fff; }
  .mobile-bar-btn:active { transform: scale(0.98); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .back-to-top { bottom: calc(84px + env(safe-area-inset-bottom)); right: 14px; }
}

/* Hero size on phones: tall enough to feel like a hero, short enough to hint at the next section */
@media (max-width: 720px) {
  .hero { min-height: 74svh; }
  .hero-inner { padding-top: calc(var(--header-h) + 32px); padding-bottom: 22px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero-title { font-size: clamp(2.1rem, 9.6vw, 2.6rem); margin-bottom: 16px; }
  .hero-lead { font-size: 1.05rem; line-height: 1.6; margin-bottom: 26px; }
  .hero .btn-row { flex-wrap: nowrap; gap: 10px; }
  .hero .btn-row .btn { flex: 1 1 0; min-height: 48px; padding: 10px 12px; font-size: 0.95rem; }
  .hero .btn-row .btn .icon { display: none; }
  .hero-pillars { padding-bottom: 22px; }
}

/* ---------- Projects ---------- */
.projects-section { background: var(--surface); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--text); }
.project-card.is-filtered-out { display: none; }
.project-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.project-card-media picture, .project-card-media img { height: 100%; }
.project-card-media img { transition: transform 0.7s var(--ease-out); }
.project-card:hover .project-card-media img { transform: scale(1.05); }
.project-card-placeholder { display: grid; place-items: center; height: 100%; color: var(--steel); }
.project-card-placeholder .icon { width: 48px; height: 48px; }
.project-tag {
  position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px;
  background: rgba(12, 26, 46, 0.78); color: #fff; font-size: 0.82rem; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.project-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 16px; color: var(--muted); font-size: 0.94rem; flex: 1; }
.project-meta span { display: inline-flex; align-items: center; gap: 6px; }
.project-meta .icon { width: 16px; height: 16px; color: var(--steel); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.filter-chip:hover { border-color: var(--steel); color: var(--steel); }
.filter-chip[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 0.8rem; }
.filter-chip[aria-current="true"] .filter-count { background: rgba(255, 255, 255, 0.18); color: #fff; }

.empty-state { max-width: 680px; margin: 0 auto; text-align: center; padding: 24px 0; }
.empty-state p { color: var(--muted); font-size: 1.08rem; }
.empty-state .btn-row { justify-content: center; margin-top: 28px; }
.empty-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 20px; background: var(--sky-100); color: var(--steel); }
.empty-icon .icon { width: 36px; height: 36px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 36px; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--surface); }
.gallery-item.is-large { grid-column: 1 / -1; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.gallery-item picture, .gallery-item img { height: 100%; }
.gallery-item img { transition: transform 0.6s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-zoom {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--navy);
  opacity: 0; transform: scale(0.8); transition: opacity 0.25s, transform 0.25s var(--ease-out);
}
.gallery-item:hover .gallery-zoom, .gallery-item:focus-visible .gallery-zoom { opacity: 1; transform: none; }
.project-facts { margin: 0; display: grid; gap: 14px; }
.project-facts div { display: grid; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.project-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.project-facts dt { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.project-facts dd { margin: 0; color: var(--ink); font-weight: 600; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 24px; background: rgba(8, 16, 30, 0.94);
}
.lightbox[hidden] { display: none; }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 12px; max-height: 100%; }
.lightbox-figure img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: var(--radius); object-fit: contain; }
.lightbox-figure figcaption { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; text-align: center; }
.lightbox-close, .lightbox-nav {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.12); color: #fff; transition: background-color 0.2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
.lightbox-nav[hidden] { visibility: hidden; display: grid; }

@media (max-width: 1023px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lightbox { grid-template-columns: 1fr; padding: 64px 12px 24px; }
  .lightbox-nav { position: absolute; bottom: 20px; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}
.projects-section-plain { background: #fff; }

/* ---------- Coming Soon page ---------- */
.page-soon { padding-bottom: 0 !important; background: var(--navy-950); }
.soon { position: relative; isolation: isolate; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; color: #fff; overflow: hidden; }
.soon-media { position: absolute; inset: 0; z-index: -1; }
.soon-media picture { height: 100%; }
.soon-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(19, 37, 63, 0.72) 0%, rgba(12, 26, 46, 0.92) 70%), linear-gradient(0deg, rgba(12, 26, 46, 0.9), rgba(12, 26, 46, 0.2) 50%);
}
.soon-inner { align-self: center; justify-self: center; width: 100%; max-width: 760px; padding: 56px var(--gutter) 32px; text-align: center; }
.soon-logo { width: 170px; height: auto; margin: 0 auto 40px; }
.soon-eyebrow { justify-content: center; }
.soon-eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.soon-title { color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.12; margin-bottom: 22px; }
.soon-line { display: block; width: 120px; height: 2px; margin: 0 auto 26px; background: linear-gradient(90deg, transparent, var(--sky), transparent); transform-origin: center; }
.js .soon-line { transform: scaleX(0); }
.soon-text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; color: rgba(255, 255, 255, 0.86); max-width: 620px; margin: 0 auto 34px; }
.soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.soon-actions .btn .icon { width: 18px; height: 18px; }
.soon-note { margin: 26px 0 0; color: rgba(255, 255, 255, 0.75); }
.soon-note a { color: var(--sky); font-weight: 600; }
.soon-note a:hover { color: #fff; }
.soon-social { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.soon-social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; transition: all 0.2s; }
.soon-social a:hover { background: var(--sky); border-color: var(--sky); color: var(--navy-950); }
.soon-social .icon { width: 19px; height: 19px; }
.soon-foot { text-align: center; padding: 18px var(--gutter) 24px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); }
.soon-foot p { margin: 0; }
@media (prefers-reduced-motion: no-preference) { .js [data-soon-item] { opacity: 0; } }
@media (max-width: 720px) {
  .soon-logo { width: 130px; margin-bottom: 28px; }
  .soon-actions .btn { flex: 1 1 100%; }
}
.footer-office { display: block; }
.footer-bottom { align-items: center; }
.footer-credit { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.6) !important; font-size: 0.85rem; }
.footer-credit img { width: 96px; height: auto; opacity: 0.85; transition: opacity 0.2s; }
.footer-credit:hover img { opacity: 1; }
.preview-bar { position: sticky; top: 0; z-index: 120; padding: 10px var(--gutter); text-align: center; background: #e2a227; color: #2b1d00; font-weight: 600; font-size: 0.95rem; }
body.at-page-end .float-cta,
body.at-page-end .back-to-top { opacity: 0; visibility: hidden; transform: translateY(12px); }

/* ---------- Fixes from the mobile, front end and SEO review ---------- */
.mobile-nav { z-index: 99; }
.testimonial-viewport { align-items: start; }
.footer-links a, .footer-contact a { display: inline-block; padding: 8px 0; }
.footer-links, .footer-contact { gap: 2px; }
.footer-credit { padding: 8px 0; }
.crumbs a { display: inline-block; padding: 8px 0; }
.link-arrow { min-height: 44px; }
@media (max-width: 1023px) {
  .back-to-top { display: none; }
  .header-actions .btn { display: none; }
  .menu-toggle { width: 44px; height: 44px; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .menu-toggle { width: 40px; height: 40px; margin-left: -12px; }
}
@media (max-width: 360px) {
  .hero-pillars { gap: 4px; }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 12px 4px; text-align: center; }
  .pillar-label { letter-spacing: 0.02em; font-size: 0.68rem; }
}

/* ---------- Our Process page ---------- */
.process-intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px 64px; align-items: start; }
.process-intro p:first-child { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.start-card { padding: 32px; border-radius: var(--radius-lg); background: var(--navy); color: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-lg); }
.start-card h2 { color: #fff; font-size: 1.5rem; }
.start-card .btn { width: 100%; margin-top: 8px; }
.start-link { display: inline-block; margin-top: 14px; color: var(--sky); font-weight: 600; padding: 6px 0; }
.start-link:hover { color: #fff; }
.start-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(110, 193, 228, 0.16); color: var(--sky); margin-bottom: 18px; }
.start-icon .icon { width: 26px; height: 26px; }
.diagram-note { font-size: 0.9rem; color: var(--muted); margin: 16px 0 0; }

.journey-section { background: var(--surface); }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: j; }
.journey-step { position: relative; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.journey-step::after {
  content: ""; position: absolute; top: 50%; right: -24px; width: 20px; height: 2px; background: var(--steel);
  -webkit-mask: linear-gradient(90deg, #000 70%, transparent 70%) 0 0 / 7px 2px repeat-x; mask: linear-gradient(90deg, #000 70%, transparent 70%) 0 0 / 7px 2px repeat-x;
}
.journey-step:nth-child(3n)::after, .journey-step:last-child::after { display: none; }
.journey-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--steel); color: #fff; font-weight: 700; margin-bottom: 14px; }
.journey-step:first-child { background: var(--navy); border-color: var(--navy); }
.journey-step:first-child h3 { color: #fff; }
.journey-step:first-child p { color: rgba(255, 255, 255, 0.82); }
.journey-step:first-child .journey-num { background: var(--sky); color: var(--navy-950); }
.journey-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.journey-step p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.stage-layout { max-width: 900px; display: grid; gap: 64px; }
.stage-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.stage-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.stage-num { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 14px; background: var(--sky-100); color: var(--steel); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.info-box { margin-top: 24px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); }
.info-box h3 { font-size: 1.2rem; }
.info-box .check-list { margin-top: 12px; }
.pack { margin: 24px 0; }
.pack h3 { font-size: 1.2rem; }
.pack-grid { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pack-grid div { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 4px solid var(--steel); background: #fff; }
.pack-grid dt { font-family: var(--font-head); font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pack-grid dd { margin: 0; color: var(--muted); font-size: 0.97rem; }

.report-card { margin: 28px 0 0; padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.report-card > figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.report-card > figcaption strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.example-badge { padding: 4px 12px; border-radius: 999px; background: #fbf1e3; color: #8a5300; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.report-rows { list-style: none; margin: 0; padding: 0; }
.report-rows li { display: grid; grid-template-columns: 34px 190px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.report-rows li:nth-child(odd) { background: linear-gradient(90deg, var(--surface), transparent); }
.report-num { color: var(--steel); font-weight: 700; font-size: 0.9rem; }
.report-rows strong { color: var(--ink); }
.report-rows span:last-child { color: var(--muted); }

.quality-section { background: var(--surface); }
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; align-items: start; margin-bottom: 48px; }
.cycle { margin: 0; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 24px); }
.cycle-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cycle-steps li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); }
.cycle-steps li::after { content: ""; position: absolute; left: 33px; bottom: -14px; width: 2px; height: 14px; background: var(--steel); }
.cycle-steps span { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--steel); color: #fff; font-weight: 700; }
.cycle-steps strong { color: var(--ink); }
.cycle-steps em, .cycle-branch em { font-style: normal; color: var(--muted); font-size: 0.93rem; }
.cycle-decision { margin: 14px auto; width: fit-content; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--steel); color: var(--steel); background: #fff; }
.cycle-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cycle-branch { position: relative; display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); }
.cycle-branch.is-yes { background: #fbf1e3; }
.cycle-branch.is-no { background: #e6f5ec; }
.cycle-branch strong { color: var(--ink); }
.branch-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

.table-title { font-size: 1.4rem; }
.checks-table { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.checks-row { display: grid; grid-template-columns: 0.8fr 1.4fr 1.2fr; gap: 20px; padding: 16px 22px; border-top: 1px solid var(--line); }
.checks-row:first-child { border-top: 0; }
.checks-head { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; }
.checks-row strong { color: var(--ink); }
.checks-row span { color: var(--text); }

.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: start; }
.flow { margin: 0; padding: 28px; border-radius: var(--radius-lg); background: var(--navy-900); color: rgba(255, 255, 255, 0.8); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.flow-steps li { position: relative; display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.flow-steps li::after { content: ""; position: absolute; left: 50%; bottom: -15px; width: 2px; height: 14px; background: var(--sky); }
.flow-steps li:last-child::after { display: none; }
.flow-steps li.is-shared { border-color: var(--sky); background: rgba(110, 193, 228, 0.12); }
.flow-steps strong { color: #fff; font-size: 1.05rem; }
.flow-tag { color: var(--sky); font-weight: 700; font-size: 0.85rem; }
.flow-steps em { font-style: normal; font-size: 0.93rem; }
.flow-return { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border: 1px dashed rgba(110, 193, 228, 0.6); border-radius: var(--radius); color: var(--sky); font-size: 0.92rem; }
.flow-return .icon { width: 16px; height: 16px; }
.flow .diagram-note { color: rgba(255, 255, 255, 0.6); }

.shell-section { background: var(--surface); }
.milestones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.milestone { position: relative; display: grid; gap: 6px; align-content: start; padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.milestone::after { content: ""; position: absolute; top: 50%; right: -24px; width: 20px; height: 2px; background: var(--steel); }
.milestone:last-child::after { display: none; }
.milestone strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.milestone em { font-style: normal; color: var(--muted); }
.milestone.is-key { background: var(--navy); border-color: var(--navy); }
.milestone.is-key strong { color: #fff; }
.milestone.is-key em { color: rgba(255, 255, 255, 0.82); }
.milestone-time { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--sky); line-height: 1.1; }
.shell-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 56px; margin-top: 40px; align-items: start; }
.shell-grid .info-box { margin-top: 0; background: #fff; border: 1px solid var(--line); }

.handover { margin: 0; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.handover > figcaption { display: grid; gap: 4px; margin-bottom: 20px; }
.handover > figcaption strong { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; color: var(--ink); }
.handover > figcaption span { color: var(--muted); }
.handover-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.handover-grid li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.handover-grid .tick { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 6px; border: 2px solid var(--steel); color: var(--steel); }
.handover-grid .tick .icon { width: 16px; height: 16px; }
.handover-grid strong { display: block; color: var(--ink); }
.handover-grid em { font-style: normal; color: var(--muted); font-size: 0.95rem; }

.privacy-note-section { padding-top: 0; }
.privacy-note { display: flex; gap: 20px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); }
.privacy-note .start-icon { background: var(--sky-100); color: var(--steel); margin: 0; flex: none; }
.privacy-note h2 { font-size: 1.3rem; }
.privacy-note p { margin: 0; color: var(--muted); }
.official { margin-top: 16px; font-size: 0.92rem; color: var(--muted); }

@media (max-width: 1023px) {
  .process-intro-grid, .quality-grid, .share-grid, .shell-grid { grid-template-columns: 1fr; }
  .cycle { position: static; }
  .journey { grid-template-columns: 1fr 1fr; }
  .journey-step::after { display: none; }
}
@media (max-width: 720px) {
  .journey, .milestones, .pack-grid, .handover-grid, .cycle-branches { grid-template-columns: 1fr; }
  .milestone::after { display: none; }
  .report-rows li { grid-template-columns: 30px 1fr; }
  .report-rows li span:last-child { grid-column: 2; }
  .checks-head { display: none; }
  .checks-row { grid-template-columns: 1fr; gap: 6px; }
  .checks-row span::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
  .privacy-note { flex-direction: column; }
  .stage-head h2 { font-size: 1.35rem; }
}

/* ---------- Our Process: animated journey ---------- */
.journey-step::after { display: none !important; }        /* replaced by the animated line */
.journey-step { transition: background-color 0.5s, border-color 0.5s, box-shadow 0.5s, transform 0.5s var(--ease-out); }
.journey-step h3, .journey-step p { transition: color 0.5s; }
.journey-num { transition: background-color 0.5s, color 0.5s, box-shadow 0.5s; background: var(--sky-100); color: var(--steel); }
/* the old static "first card is dark" look is now the moving "current" state */
.journey-step:first-child { background: #fff; border-color: var(--line); }
.journey-step:first-child h3 { color: var(--ink); }
.journey-step:first-child p { color: var(--muted); }
.journey-step:first-child .journey-num { background: var(--sky-100); color: var(--steel); }
.journey-step.is-lit { border-color: var(--steel); }
.journey-step.is-lit .journey-num { background: var(--steel); color: #fff; }
.journey-step.is-current { background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.journey-step.is-current h3 { color: #fff; }
.journey-step.is-current p { color: rgba(255, 255, 255, 0.82); }
.journey-step.is-current .journey-num { background: var(--sky); color: var(--navy-950); box-shadow: 0 0 0 6px rgba(110, 193, 228, 0.25); }

.journey-line { --p: 0; position: absolute; top: 50%; right: -28px; width: 28px; height: 2px; z-index: 1; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.journey-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--steel), var(--sky)); transform-origin: left center; transform: scaleX(var(--p)); }
.journey-dot { position: absolute; top: 50%; left: calc(var(--p) * 100%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px rgba(110, 193, 228, 0.3), 0 0 14px 2px rgba(110, 193, 228, 0.8); opacity: 0; }
.journey-line.is-moving .journey-dot { opacity: 1; }
.journey-step:nth-child(3n) .journey-line { display: none; }   /* end of a row on desktop */
.no-motion .journey-step { border-color: var(--steel); }
.no-motion .journey-num { background: var(--steel); color: #fff; }
.no-motion .journey-fill { transform: scaleX(1); }

@media (max-width: 1023px) {
  .journey-step:nth-child(3n) .journey-line { display: block; }
  .journey-step:nth-child(2n) .journey-line { display: none; } /* two per row on tablets */
}
@media (max-width: 720px) {
  .journey { gap: 28px; }
  .journey-step:nth-child(2n) .journey-line { display: block; }
  .journey-line { top: auto; bottom: -28px; left: 43px; right: auto; width: 2px; height: 28px; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 10px); }
  .journey-fill { background: linear-gradient(180deg, var(--steel), var(--sky)); transform-origin: center top; transform: scaleY(var(--p)); }
  .no-motion .journey-fill { transform: scaleY(1); }
  .journey-dot { top: calc(var(--p) * 100%); left: 50%; }
}
