/* ==========================================================================
   Hopeful Homes of Texas — Design System
   Pure HTML/CSS. No JavaScript required.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0A1128;
  --navy: #001F54;
  --navy-2: #0B2A63;
  --blue: #1282A2;
  --sky: #5CC3E4;
  --copper: #C58B5C;
  --sand: #F3EDE4;
  --sand-2: #E9E0D3;
  --cream: #FEFCFB;
  --white: #FFFFFF;
  --text: #1B2236;
  --muted: #5B6478;
  --line: rgba(10, 17, 40, .12);
  --line-light: rgba(255, 255, 255, .14);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 2px 8px rgba(10, 17, 40, .06);
  --shadow: 0 18px 50px -18px rgba(10, 17, 40, .28);
  --shadow-l: 0 40px 90px -30px rgba(10, 17, 40, .45);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 150px);
  --header-h: 78px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--white); color: var(--ink); padding: 10px 18px;
  border-radius: 999px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--section); position: relative; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.78); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
.section--dark :is(h1, h2, h3, h4) { color: var(--white); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--blue); font-variation-settings: "opsz" 144, "SOFT" 100; }
.section--dark h2 em, .hero h1 em { color: var(--sky); }

.display { font-size: clamp(2.75rem, 7vw, 6rem); }
.h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
.h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px; background: currentColor;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--sky); }

.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.section--dark .lead { color: rgba(255,255,255,.72); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-head .lead { margin-top: 22px; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split {
  max-width: none; display: grid; gap: 28px 64px;
  grid-template-columns: 1.1fr 1fr; align-items: end;
}
.section-head--split .lead { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: var(--white);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 14px 28px;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s, border-color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: inherit;
  transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(18,130,162,.6); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--light::before { background: var(--blue); }
.btn--light:hover { --fg: var(--white); color: var(--white); }

.btn--ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--ink); border-color: var(--white); box-shadow: none; }

.btn--outline { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--outline:hover { color: var(--white); }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .88rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ink);
  border-bottom: 1.5px solid currentColor; padding-bottom: 4px;
  transition: gap .3s var(--ease), color .3s;
}
.link-arrow:hover { gap: 16px; color: var(--blue); }

/* ---------- Logo (CSS-built, crisp at any size) ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--white); line-height: 1; }
.logo__mark {
  font-family: var(--font-body); font-weight: 800; font-size: 2.05rem;
  letter-spacing: -.02em; line-height: .8;
}
.logo__rule { width: 2.5px; align-self: stretch; background: var(--blue); border-radius: 2px; }
.logo__type {
  display: grid; gap: 3px;
  font-family: var(--font-body); font-weight: 600; font-size: .82rem;
  letter-spacing: .2em; text-transform: uppercase;
}
.logo--dark { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line-light);
  color: var(--white);
}
/* Blur lives on a pseudo-element so the header doesn't become a containing block
   for the fixed-position mobile menu. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 17, 40, .72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
.site-header .container {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav__list { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); list-style: none; padding: 0; }
.nav__list a {
  position: relative; font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.82);
  padding-block: 8px; transition: color .25s;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: var(--sky); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__list a:hover { color: var(--white); }
.nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__lang {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-light);
  color: rgba(255,255,255,.85); transition: background .25s, color .25s;
}
.nav__lang:hover { background: var(--white); color: var(--ink); }
.nav__phone { display: inline-flex; align-items: center; gap: 10px; }

.nav-open, .nav-close { display: none; }

/* Mobile nav — :target based, no JS. Following any link auto-closes it. */
@media (max-width: 1020px) {
  .nav-open {
    display: inline-grid; place-items: center; width: 48px; height: 48px;
    border-radius: 50%; border: 1px solid var(--line-light);
  }
  .nav-open span, .nav-open span::before, .nav-open span::after {
    display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; position: relative;
  }
  .nav-open span::before, .nav-open span::after { content: ""; position: absolute; left: 0; }
  .nav-open span::before { top: -6px; }
  .nav-open span::after { top: 6px; }

  .nav {
    position: fixed; inset: 0; z-index: 150;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 36px;
    padding: 100px var(--gutter) 40px;
    background: var(--ink);
    background-image: radial-gradient(120% 60% at 100% 0%, rgba(18,130,162,.35), transparent 60%);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .nav:target { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav__list a { font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3.2rem); color: var(--white); font-weight: 400; }
  .nav__list a::after { display: none; }
  .nav__lang { align-self: flex-start; }
  .nav__phone { align-self: flex-start; }
  .nav-close {
    display: inline-grid; place-items: center; position: absolute; top: 15px; right: var(--gutter);
    width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light);
    font-size: 1.6rem; line-height: 1;
  }
  body:has(.nav:target) { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--header-h));
  min-height: max(640px, calc(100svh - var(--header-h)));
  display: grid; align-items: center;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + 60px); padding-bottom: 150px;
  color: var(--white); background: var(--ink); overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  animation: heroFade 21s infinite;
}
.hero__slide img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 21s infinite;
}
.hero__slide:nth-child(1) { opacity: 1; }
.hero__slide:nth-child(2), .hero__slide:nth-child(2) img { animation-delay: 7s; }
.hero__slide:nth-child(3), .hero__slide:nth-child(3) img { animation-delay: 14s; }
@keyframes heroFade {
  0% { opacity: 0; } 5% { opacity: 1; } 33% { opacity: 1; } 40% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes kenburns {
  0% { transform: scale(1.12); } 40% { transform: scale(1); } 100% { transform: scale(1); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(10,17,40,.92) 0%, rgba(10,17,40,.55) 48%, rgba(10,17,40,.15) 100%),
    linear-gradient(0deg, rgba(10,17,40,.85) 0%, transparent 35%);
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  gap: clamp(32px, 6vw, 90px); align-items: end;
}
.hero h1 { color: var(--white); margin-bottom: 28px; max-width: 13ch; }
.hero__copy .lead { color: rgba(255,255,255,.8); margin-bottom: 40px; max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-l);
  padding: 30px;
  box-shadow: var(--shadow-l);
}
.hero__card-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--sky); }
.hero__card-phone {
  display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 2.6vw, 2.3rem);
  margin: 10px 0 18px; color: var(--white); letter-spacing: -.01em;
  transition: color .25s;
}
.hero__card-phone:hover { color: var(--sky); }
.hero__card ul { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.hero__card li { display: flex; gap: 12px; font-size: .95rem; color: rgba(255,255,255,.8); }
.hero__card li svg { flex: none; color: var(--sky); margin-top: 4px; }
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3DDC97;
  box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: pulse 2.2s infinite; margin-right: 8px; vertical-align: middle;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }

.hero__progress {
  position: absolute; left: 0; right: 0; bottom: 92px;
}
.hero__progress .container { display: flex; gap: 10px; }
.hero__progress span {
  position: relative; flex: 0 0 64px; height: 2px; background: rgba(255,255,255,.22); overflow: hidden; border-radius: 2px;
}
.hero__progress span::after {
  content: ""; position: absolute; inset: 0; background: var(--white);
  transform: scaleX(0); transform-origin: left; animation: bar 21s infinite linear;
}
.hero__progress span:nth-child(2)::after { animation-delay: 7s; }
.hero__progress span:nth-child(3)::after { animation-delay: 14s; }
@keyframes bar { 0% { transform: scaleX(0); } 33.33% { transform: scaleX(1); opacity: 1; } 33.34%, 100% { transform: scaleX(1); opacity: 0; } }

/* City marquee */
.marquee {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(10,17,40,.5); backdrop-filter: blur(10px);
  overflow: hidden; padding-block: 22px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__group { display: flex; flex: none; }
.marquee__group span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px;
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: rgba(255,255,255,.85); white-space: nowrap;
}
.marquee__group span::after { content: "✦"; font-style: normal; font-size: .7rem; color: var(--sky); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pillars / trust strip ---------- */
.pillars {
  position: relative; z-index: 2;
  margin-top: -1px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillar {
  padding: clamp(28px, 3.5vw, 44px) clamp(18px, 2.5vw, 36px);
  border-right: 1px solid var(--line);
  display: grid; gap: 8px; align-content: start;
}
.pillar:first-child { padding-left: 0; }
.pillar:last-child { border-right: 0; }
.pillar__value { font-family: var(--font-display); font-size: clamp(2.2rem, 3.5vw, 3rem); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.pillar__value small { font-size: .45em; color: var(--blue); margin-left: 4px; font-family: var(--font-body); font-weight: 700; letter-spacing: .05em; }
.pillar__label { font-weight: 700; color: var(--ink); font-size: .98rem; }
.pillar__desc { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 8vw, 120px); align-items: center;
}
.about__media { position: relative; padding: 0 12% 18% 0; }
.about__media-main {
  border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-l);
  aspect-ratio: 11 / 10;
}
.about__media-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__media:hover .about__media-main img { transform: scale(1.04); }
.about__media-sub {
  position: absolute; right: 0; bottom: 0; width: 52%;
  border-radius: var(--radius); overflow: hidden;
  border: 8px solid var(--cream); box-shadow: var(--shadow);
  aspect-ratio: 7 / 5;
}
.about__media-sub img { width: 100%; height: 100%; object-fit: cover; }
.about__badge {
  position: absolute; left: -22px; bottom: 26%;
  display: grid; place-items: center; text-align: center;
  width: 132px; aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); color: var(--white); box-shadow: var(--shadow);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.35;
}
.about__badge strong { display: block; font-family: var(--font-display); font-size: 2rem; letter-spacing: 0; font-weight: 400; text-transform: none; }
.about__copy .lead { margin-block: 26px 36px; }

.facets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 40px; }
.facet {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-s);
  background: var(--white); border: 1px solid var(--line);
  font-weight: 700; color: var(--ink);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.facet:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-s); }
.facet__icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(18,130,162,.1); color: var(--blue);
}

/* ---------- Services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 520px; padding: 36px;
  border-radius: var(--radius-l);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .5s;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, var(--navy) 0%, var(--ink) 100%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.service:hover, .service:focus-within { transform: translateY(-8px); box-shadow: var(--shadow-l); color: rgba(255,255,255,.78); }
.service:hover::before, .service:focus-within::before { opacity: 1; }
.service__num {
  font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--blue);
  display: flex; align-items: center; justify-content: space-between;
}
.service__icon {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px;
  background: var(--sand); color: var(--ink);
  transition: background .5s, color .5s, transform .5s var(--ease);
}
.service:hover .service__icon { background: var(--blue); color: var(--white); transform: rotate(-6deg); }
.service h3 { margin: 44px 0 14px; transition: color .5s; }
.service:hover h3, .service:focus-within h3 { color: var(--white); }
.service:hover .service__num { color: var(--sky); }
.service p { color: inherit; opacity: .9; }
.service__tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--copper); margin-bottom: 8px;
}
.service__detail {
  margin-top: auto; padding-top: 26px;
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.service__detail > div { overflow: hidden; }
.service:hover .service__detail, .service:focus-within .service__detail { grid-template-rows: 1fr; }
.service__detail p { padding-bottom: 22px; font-size: .95rem; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; }
.service__cta {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
  color: var(--ink); transition: color .5s, gap .3s;
}
.service:hover .service__cta, .service:focus-within .service__cta { color: var(--sky); }
.service__cta:hover { gap: 16px; }
.service__cta::after { content: ""; position: absolute; inset: 0; }

/* ---------- Process ---------- */
.process { overflow: hidden; }
.process::before {
  content: ""; position: absolute; width: 900px; aspect-ratio: 1; border-radius: 50%;
  right: -300px; top: -300px;
  background: radial-gradient(circle, rgba(18,130,162,.3), transparent 65%);
  pointer-events: none;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 28px 0 0; }
.step__marker {
  position: relative; display: flex; align-items: center; margin-bottom: 34px;
}
.step__marker::after {
  content: ""; flex: 1; height: 1px; margin-left: 16px;
  background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.06));
}
.step:last-child .step__marker::after { background: linear-gradient(90deg, rgba(255,255,255,.35), transparent); }
.step__num {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  font-family: var(--font-display); font-size: 1.3rem; color: var(--white);
  transition: background .4s, border-color .4s;
}
.step:hover .step__num { background: var(--blue); border-color: var(--blue); }
.step h3 { font-size: 1.55rem; margin-bottom: 12px; }
.step p { font-size: .97rem; color: rgba(255,255,255,.66); }
.process__foot {
  margin-top: clamp(56px, 7vw, 90px); padding-top: 40px; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.process__foot p { font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--white); max-width: 30ch; line-height: 1.25; }

/* ---------- Big Texas (property types) ---------- */
.bigtx { padding: 0; }
.bigtx__frame {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-l);
  min-height: 680px; display: grid; align-items: end;
  padding: clamp(32px, 5vw, 72px);
  color: var(--white);
}
.bigtx__frame > img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.bigtx__frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(10,17,40,.95) 0%, rgba(10,17,40,.6) 45%, rgba(10,17,40,.05) 80%);
}
.bigtx__content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 64px; align-items: end; }
.bigtx h2 { color: var(--white); }
.bigtx p { color: rgba(255,255,255,.8); margin-bottom: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px); font-weight: 600; font-size: .92rem;
  transition: background .3s, color .3s;
}
.chip:hover { background: var(--white); color: var(--ink); }
.chip svg { color: var(--sky); }
.chip:hover svg { color: var(--blue); }

/* ---------- Partners ---------- */
.partners__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.partner img {
  width: 58%; max-width: 170px; mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.05); opacity: .75;
  transition: filter .4s, opacity .4s, transform .4s var(--ease);
}
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.partner:hover img { filter: none; opacity: 1; transform: scale(1.05); }
.partners__note { margin-top: 28px; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- Areas ---------- */
.areas__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.areas__list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.area {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(1.25rem, 1.8vw, 1.6rem); color: var(--ink);
  transition: color .3s, padding .3s var(--ease);
}
.area:nth-child(odd) { margin-right: 24px; }
.area small { font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.area:hover { color: var(--blue); padding-left: 10px; }
.area--hq { color: var(--blue); }
.area--hq small { color: var(--copper); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.form-card {
  background: var(--white); border-radius: var(--radius-l); padding: clamp(28px, 4vw, 52px);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.form-card h3 { margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 32px; }

.intent { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0 0 26px; }
.intent legend { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.intent input { position: absolute; opacity: 0; pointer-events: none; }
.intent label {
  cursor: pointer; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 600; font-size: .92rem; transition: all .25s;
}
.intent label:hover { border-color: var(--ink); }
.intent input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--white); }
.intent input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; min-height: 62px;
  border-radius: var(--radius-s); border: 1.5px solid var(--line);
  background: var(--cream); outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; padding-top: 30px; }
.field label {
  position: absolute; left: 19px; top: 20px;
  font-size: 1rem; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform .25s var(--ease), color .25s;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(18,130,162,.12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-11px) scale(.76); color: var(--blue); font-weight: 600;
}
.field input:user-invalid { border-color: #D14343; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; }
.form-foot small { color: var(--muted); font-size: .85rem; max-width: 36ch; }

.office {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ink); color: rgba(255,255,255,.78); border-radius: var(--radius-l);
}
.office__map { position: relative; aspect-ratio: 16 / 10; background: var(--navy); }
.office__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.office__body { padding: clamp(26px, 3.5vw, 40px); display: grid; gap: 22px; }
.office__row { display: flex; gap: 16px; }
.office__row svg { flex: none; color: var(--sky); margin-top: 3px; }
.office__row strong { display: block; color: var(--white); font-weight: 700; margin-bottom: 2px; }
.office__row a { transition: color .25s; }
.office__row a:hover { color: var(--sky); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--blue); color: var(--white);
  padding-block: clamp(70px, 9vw, 120px);
}
.cta-band::before {
  content: "H"; position: absolute; z-index: -1; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-weight: 800; font-size: clamp(20rem, 40vw, 38rem); line-height: .8;
  color: rgba(255,255,255,.07);
}
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: var(--white); max-width: 16ch; }
.cta-band h2 em { color: var(--ink); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-band .btn--ghost:hover { color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.65); padding-top: clamp(64px, 8vw, 100px); font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 64px; }
.footer__brand p { margin-top: 22px; max-width: 34ch; }
.site-footer h4 {
  font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--white); margin-bottom: 20px;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a { transition: color .25s; }
.footer__links a:hover { color: var(--sky); }
.footer__eho { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: .82rem; }
.footer__eho img { width: 46px; border-radius: 6px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  padding-block: 26px; border-top: 1px solid var(--line-light); font-size: .82rem;
}
.footer__bottom a { color: var(--white); transition: color .25s; }
.footer__bottom a:hover { color: var(--sky); }

/* Floating call button (mobile) */
.fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; place-items: center;
  background: var(--blue); color: var(--white); box-shadow: 0 14px 30px -8px rgba(18,130,162,.7);
}

/* ---------- Legal / simple pages ---------- */
.page-hero { background: var(--ink); color: var(--white); padding: calc(var(--header-h) + 70px) 0 80px; margin-top: calc(-1 * var(--header-h)); }
.page-hero h1 { color: var(--white); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 14px; }
.prose ul { padding-left: 20px; }

.notfound { min-height: 80svh; display: grid; place-items: center; text-align: center; }
.notfound .display { font-size: clamp(6rem, 20vw, 14rem); color: var(--blue); }

/* ---------- Scroll reveal (CSS scroll-driven animations; graceful fallback) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }
    .reveal-stagger > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
    .reveal-stagger > *:nth-child(2) { animation-range: entry 6% cover 30%; }
    .reveal-stagger > *:nth-child(3) { animation-range: entry 12% cover 34%; }
    .reveal-stagger > *:nth-child(4) { animation-range: entry 18% cover 38%; }
    .parallax img { animation: parallax linear both; animation-timeline: view(); }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes parallax { from { transform: scale(1.18) translateY(-6%); } to { transform: scale(1.18) translateY(6%); } }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .hero__card { animation: rise 1s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .1s; }
  .hero__copy > :nth-child(3) { animation-delay: .2s; }
  .hero__copy > :nth-child(4) { animation-delay: .3s; }
  .hero__card { animation-delay: .45s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__slide { opacity: 0; } .hero__slide:nth-child(1) { opacity: 1; }
  .marquee__track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1020px) {
  .hero__inner, .about__grid, .bigtx__content, .areas__grid, .contact__grid, .section-head--split { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .services__grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service__detail { grid-template-rows: 1fr; }
  .service__detail p { border-top-color: var(--line); }
  .service:hover .service__detail p { border-top-color: rgba(255,255,255,.15); }
  .steps { grid-template-columns: 1fr 1fr; gap: 56px 0; }
  .pillars__grid { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pillar:nth-child(3) { padding-left: 0; }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .about__media { max-width: 620px; }
  .nav__desktop-only { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .logo__mark { font-size: 1.7rem; }
  .logo__type { font-size: .72rem; }
  .hero { padding-bottom: 130px; }
  .hero__progress { bottom: 84px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__card { padding: 24px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step { padding: 0; }
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(3) { padding-inline: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .pillar:last-child { border-bottom: 0; }
  .facets { grid-template-columns: 1fr; }
  .about__badge { width: 104px; left: -6px; font-size: .62rem; }
  .about__badge strong { font-size: 1.6rem; }
  .areas__list { grid-template-columns: 1fr; }
  .area:nth-child(odd) { margin-right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .bigtx .container { width: 100%; }
  .bigtx__frame { border-radius: 0; min-height: 600px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .fab { display: grid; }
  .cta-band__actions .btn { flex: 1 1 100%; }
}
