/* Homepage redesign */
.hm-hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: #0b0b0b; color: #f4f4f4; }
.hm-hero__media { position: absolute; inset: 0; }
.hm-hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.92) 0%, rgba(8,8,8,.72) 45%, rgba(8,8,8,.25) 100%), linear-gradient(0deg, rgba(8,8,8,.85) 0%, rgba(8,8,8,0) 40%); }
.hm-hero__inner { position: relative; padding-block: clamp(7rem, 14vh, 10rem) clamp(3rem, 8vh, 5rem); }
.hm-kicker { font-size: var(--text-sm); color: #d8d8d8; font-weight: 500; margin-bottom: var(--space-4); }
.hm-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 17ch; color: #fff; }
.hm-lede { margin-top: var(--space-5); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; color: #cfcfcf; max-width: 54ch; }
.hm-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hm-btn-light { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(0,0,0,.2); }
.hm-btn-light:hover { color: #fff; border-color: #fff; }
.hm-trust { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: var(--text-sm); color: #bdbdbd; }
.hm-trust li { display: flex; align-items: center; gap: var(--space-2); }
.hm-trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }

.hm-logos { padding-block: var(--space-10); border-bottom: 1px solid var(--color-divider); }
.hm-logos__label { text-align: center; font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.hm-logos .logo-carousel { margin-top: 0; }

.hm-alt { background: var(--color-surface); border-block: 1px solid var(--color-divider); }
.hm-head { max-width: 640px; margin-bottom: var(--space-10); }
.section-pad h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: -0.015em; }
.hm-body { font-size: var(--text-base); line-height: 1.65; color: var(--color-text-muted); margin-top: var(--space-4); max-width: 60ch; }
.hm-split .text-link { display: inline-block; margin-top: var(--space-6); }

.hm-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hm-split--narrow { grid-template-columns: 1.1fr .9fr; }
.hm-photo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface-2); }
.hm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-photo--tall { aspect-ratio: 4 / 5; max-height: 620px; }

.hm-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.hm-svc { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-8) var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg); color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.hm-svc:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.hm-svc h3 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; color: var(--color-text); }
.hm-svc p { font-size: var(--text-sm); line-height: 1.6; color: var(--color-text-muted); flex: 1; }
.hm-svc__more { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); }
.hm-svc__more svg { width: 16px; height: 16px; }
.hm-svc-photo { min-height: 220px; }

.hm-who { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.hm-who__card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; background: #111; }
.hm-who__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-who__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,6,6,.92) 0%, rgba(6,6,6,.4) 45%, rgba(6,6,6,0) 70%); }
.hm-who__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--space-8); color: #fff; }
.hm-who__body h3 { font-family: var(--font-display); font-size: 1.7rem; color: #fff; }
.hm-who__body p { margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.6; color: #d4d4d4; max-width: 46ch; }

.hm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.hm-stat { padding-top: var(--space-6); border-top: 2px solid var(--color-primary); }
.hm-stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1; color: var(--color-text); }
.hm-stat span { display: block; margin-top: var(--space-3); font-size: var(--text-sm); line-height: 1.6; color: var(--color-text-muted); max-width: 34ch; }
.hm-alt .google-reviews-embed { margin-top: var(--space-12); }
.hm-alt .google-reviews-embed:empty, .hm-alt .google-reviews-embed:not(:has(iframe, [class*="eapps"])) { margin-top: 0; }

.hm-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); counter-reset: step; }
.hm-steps li { counter-increment: step; }
.hm-steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; margin-bottom: var(--space-5); }
.hm-steps h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-text); }
.hm-steps p { margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.65; color: var(--color-text-muted); }

.hm-quote { padding: var(--space-8); border-left: 3px solid var(--color-primary); background: var(--color-surface); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.hm-quote p { font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.35; color: var(--color-text); }
.hm-quote span { display: block; margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }

@media (prefers-reduced-motion: reduce) { .hm-hero__video { display: none; } .hm-hero__media { background: url(./assets/home/hero2.webp) center / cover; } }
@media (max-width: 980px) {
  .hm-svc-grid { grid-template-columns: 1fr 1fr; }
  .hm-split, .hm-split--narrow, .hm-who { grid-template-columns: 1fr; }
  .hm-photo--tall { aspect-ratio: 16 / 11; }
}
@media (max-width: 640px) {
  .hm-hero { min-height: auto; }
  .hm-hero__media::after { background: linear-gradient(0deg, rgba(8,8,8,.95) 0%, rgba(8,8,8,.7) 60%, rgba(8,8,8,.45) 100%); }
  .hm-svc-grid, .hm-stats, .hm-steps { grid-template-columns: 1fr; }
  .hm-svc-photo { display: none; }
  .hm-who__card { aspect-ratio: 4 / 4.4; }
  .hm-actions .btn { width: 100%; text-align: center; }
}
.hm-who-group + .hm-who-group { margin-top: var(--space-12); }
.hm-who-label { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.hm-who-label span { display: inline-block; padding: 4px 10px; border: 1px solid var(--color-primary); border-radius: 999px; color: var(--color-text); font-weight: 700; letter-spacing: .04em; font-size: var(--text-xs); }
.hm-founder { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-6); align-items: center; }
.hm-founder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); display: block; }
@media (max-width: 640px) { .hm-founder { grid-template-columns: 1fr; } .hm-founder img { max-width: 220px; } }
.hm-split--narrow { grid-template-columns: .85fr 1.15fr; }
.hm-founder { grid-template-columns: 180px 1fr; }
.hm-founder .hm-quote p { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
@media (max-width: 980px) { .hm-split--narrow { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hm-founder { grid-template-columns: 1fr; } .hm-founder img { max-width: 200px; } }

/* ===== Site-wide refresh (inner pages) ===== */
main .eyebrow, .service-block__tag, .principle__num, .phase, .trajectory__step .phase { display: none !important; }
.principle { grid-template-columns: 1fr !important; }
.page-header--img { position: relative; overflow: hidden; padding-block: clamp(7rem, 16vh, 10rem) clamp(3.5rem, 8vh, 5rem); background: #0b0b0b var(--pg-img) center / cover no-repeat; color: #f4f4f4; border-bottom: 0; }
.page-header--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,8,8,.93) 0%, rgba(8,8,8,.78) 50%, rgba(8,8,8,.45) 100%), linear-gradient(0deg, rgba(8,8,8,.8) 0%, rgba(8,8,8,0) 50%); }
.page-header--img .page-header__inner { max-width: 760px; }
.page-header--img h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.02em; color: #fff; margin: 0; }
.page-header--img p { margin-top: var(--space-5); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.6; color: #cfcfcf !important; max-width: 58ch; }
.page-header--img .breadcrumb { color: #a8a8a8; }

.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.svc-row--rev .svc-row__img { order: 2; }
.svc-row__img { aspect-ratio: 4 / 3; }
.svc-tag { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); margin-bottom: var(--space-3); }
.svc-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-6); }
.svc-list li { position: relative; padding-left: 22px; font-size: var(--text-sm); line-height: 1.5; color: var(--color-text); }
.svc-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.svc-row .addon-card { margin-top: var(--space-8) !important; }
@media (max-width: 980px) { .svc-row { grid-template-columns: 1fr; } .svc-row--rev .svc-row__img { order: 0; } }
@media (max-width: 640px) { .svc-list { grid-template-columns: 1fr; } .page-header--img::before { background: rgba(8,8,8,.78); } }
.page-header--img .page-header__inner { max-width: var(--content-wide); }
.page-header--img .page-header__inner > * { max-width: 760px; }
.page-header--img .hm-actions { max-width: none; }

/* ===== Grouped nav ===== */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-group__label::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .7; }
.nav-group.is-current > .nav-group__label { color: var(--color-text); }
.nav-group__menu { position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 10px; margin-top: 10px; background: #121212; border: 1px solid var(--color-divider); border-radius: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.45); display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 50; }
.nav-group__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-group:hover .nav-group__menu, .nav-group:focus-within .nav-group__menu { opacity: 1; visibility: visible; transform: none; }
.nav-group__menu a { padding: 9px 12px !important; border-radius: 6px; white-space: nowrap; font-size: var(--text-sm); }
.nav-group__menu a::after { display: none !important; }
.nav-group__menu a:hover { background: rgba(255,255,255,.06); }
.nav-group__all { border-top: 1px solid var(--color-divider); margin-top: 6px; border-radius: 0 !important; color: var(--color-text-muted) !important; }
@media (max-width: 900px) {
  .nav-group { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-group__label::after { display: none; }
  .nav-group__menu { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 0 16px; margin: 0; min-width: 0; }
  .nav-group__menu a { padding: 12px 0 !important; font-size: var(--text-sm) !important; color: var(--color-text-muted); }
  .nav-group__all { display: none; }
}

/* ===== Service pages ===== */
.svc-who { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-top: var(--space-8); }
.svc-proof { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-8); align-items: center; }
.svc-proof strong { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: #fff; font-weight: 500; }
.svc-proof p { font-size: var(--text-base); color: var(--color-text-muted); max-width: 46ch; margin: 0; }
.svc-faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 6vw, 5rem); }
.svc-faq { border-bottom: 1px solid var(--color-divider); padding: var(--space-5) 0; }
.svc-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.svc-faq summary::after { content: "+"; color: var(--color-primary); font-size: 1.3em; line-height: 1; }
.svc-faq[open] summary::after { content: "–"; }
.svc-faq p { margin-top: var(--space-3); color: var(--color-text-muted); max-width: 62ch; }
@media (max-width: 760px) { .svc-who, .svc-faq-wrap, .svc-proof { grid-template-columns: 1fr; gap: var(--space-5); } }
.svc-who .hm-who__card { min-height: 0 !important; aspect-ratio: auto !important; padding: var(--space-8); background: var(--color-surface, #111); border: 1px solid var(--color-divider); border-radius: 12px; }
.svc-who .hm-who__card::before, .svc-who .hm-who__card::after { display: none !important; }
.svc-who .hm-who__card h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: var(--space-3); color: #fff; }
.svc-who .hm-who__card p { color: var(--color-text-muted); }
.svc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); margin-top: var(--space-8); }
.svc-card { padding: var(--space-6); border: 1px solid var(--color-divider); border-radius: 12px; background: rgba(255,255,255,.02); }
.svc-card h3 { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin-bottom: var(--space-3); }
.svc-card p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.6; }
.svc-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.svc-list--one { grid-template-columns: 1fr; }
.svc-steps { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); counter-reset: st; }
.svc-steps li { counter-increment: st; border-top: 2px solid var(--color-primary); padding-top: var(--space-5); }
.svc-steps li::before { content: counter(st); font-family: var(--font-display); font-size: 1.1rem; color: var(--color-primary); display: block; margin-bottom: var(--space-2); }
.svc-steps h3 { font-size: 1.15rem; color: #fff; margin-bottom: var(--space-2); }
.svc-steps p { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.6; }
.svc-who + .svc-proof { margin-top: var(--space-10); padding-top: var(--space-8); border-top: 1px solid var(--color-divider); }
@media (max-width: 1000px) { .svc-cards, .svc-steps { grid-template-columns: 1fr 1fr; } .svc-split { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .svc-cards, .svc-steps { grid-template-columns: 1fr; } }
.faq-groups { display: grid; gap: var(--space-12); max-width: 860px; }
.faq-group h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: var(--space-3); }
.page-header--plain { background: radial-gradient(ellipse at 80% 0%, rgba(220,30,30,.18), transparent 55%), #0b0b0b; }
.guide-meta { font-size: var(--text-sm) !important; color: #a8a8a8 !important; }
.guide-meta a { color: #fff; }
.guide-wrap { max-width: 760px; }
.guide-body h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: var(--space-10) 0 var(--space-4); }
.guide-body h2:first-child { margin-top: 0; }
.guide-body p, .guide-body li { font-size: 1.05rem; line-height: 1.75; color: var(--color-text-muted); }
.guide-body p + p { margin-top: var(--space-4); }
.guide-body ul, .guide-body ol { padding-left: 1.3em; display: grid; gap: var(--space-3); }
.guide-body strong { color: var(--color-text); }
.guide-cta { margin-top: var(--space-12); padding: var(--space-8); border: 1px solid var(--color-divider); border-radius: 12px; background: rgba(255,255,255,.02); }
.guide-cta h3 { font-family: var(--font-display); font-size: 1.6rem; color: #fff; margin-bottom: var(--space-3); }
.guide-grid { grid-template-columns: repeat(3, 1fr); }
.guide-card { display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; transition: border-color .2s; }
.guide-card:hover { border-color: var(--color-primary); }
.guide-card .text-link { margin-top: auto; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-wrap, .faq-groups { max-width: var(--content-wide); }
.guide-body, .faq-group { max-width: 760px; }

/* ===== Mobile menu fix ===== */
@media (max-width: 900px) {
  .nav__links { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; height: calc(100dvh - 60px); bottom: auto; padding-bottom: calc(var(--space-12) + env(safe-area-inset-bottom)); }
  html.nav-is-open, html.nav-is-open body { overflow: hidden; }
  html.nav-is-open .header { position: fixed !important; top: 0; left: 0; right: 0; z-index: 100; transform: none !important; background: var(--color-bg); }
  html.nav-is-open .sticky-cta { display: none !important; }
}
