/* Digital Marketing — v9. Framed, responsive sections + true media-frame clipping. */
:root {
  --bg: #f5f7fb;
  --surface: #fff;
  --surface-2: #eef4fb;
  --ink: #0d1b2a;
  --ink-soft: #4c5b70;
  --line: #d9e2ee;
  --primary: #0b63f6;
  --primary-deep: #0b4fd1;
  --accent: #f2b94b;
  --dark: #071a2f;
  --success: #0d8b5f;
  --danger: #c03a2b;
  --shadow: 0 14px 38px rgba(13, 27, 42, .08);
  --edge: clamp(16px, 1.65vw, 32px);
  --space: clamp(48px, 5vw, 88px);
  --header-height: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; width: 100%; font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.65; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
h1, h2, h3, h4 { margin: 0 0 1rem; font-family: 'Manrope', 'Inter', sans-serif; font-weight: 800; line-height: 1.18; color: var(--ink); overflow-wrap: anywhere; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: rgba(11, 99, 246, .12); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
main section[id], #enquiry { scroll-margin-top: calc(var(--header-height) + 16px); }
.container-wide { width: 100%; max-width: none; margin: 0; padding: 0; }
.section-pad { padding-block: var(--space); }
.hero-shell > *, .split-shell > *, .stats-grid > *, .service-cards-grid > *, .process-grid > *, .why-shell > *, .why-grid > *, .faq-shell > *, .contact-shell > *, .form-grid > *, .contact-direct > *, .footer-top > *, .footer-links > *, .legal-grid > * { min-width: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 12px 16px; color: #fff; background: var(--dark); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Navigation spans the viewport, with one consistent inset for controls. */
.utility-bar { color: rgba(255,255,255,.92); background: var(--dark); font-size: .875rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 8px var(--edge); gap: 16px; }
.utility-right { display: flex; align-items: center; gap: 20px; }
.utility-note { color: rgba(255,255,255,.7); }
.utility-phone { font-weight: 600; white-space: nowrap; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(16px); border-bottom: 1px solid rgba(13,27,42,.08); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(13,27,42,.07); }
.site-header .navbar { min-height: var(--header-height); padding: 12px var(--edge); gap: 20px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.text-brand { flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-text-main { font-family: 'Manrope', 'Inter', sans-serif; font-size: 1.75rem; font-weight: 800; letter-spacing: .02em; color: var(--dark); }
.brand-text-sub { font-size: .9rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #a76b08; margin-top: 6px; }
.navbar-nav .nav-link { padding: .75rem 1rem; color: var(--ink-soft); font-weight: 600; border-radius: 999px; transition: background .2s ease, color .2s ease; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary-deep); background: rgba(11,99,246,.08); }
.menu-toggle { display: grid; place-content: center; gap: 6px; width: 48px; height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.header-cta { margin-left: 16px; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; max-width: 100%; padding: 13px 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; line-height: 1.45; white-space: normal; text-align: center; transition: background .2s ease, box-shadow .2s ease; }
.btn-primary-custom, .btn-ink { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); box-shadow: 0 8px 22px rgba(11,99,246,.2); }
.btn-primary-custom:hover, .btn-ink:hover { color: #fff; background: var(--primary-deep); }
.btn-outline-custom { border-color: #cad5e4; background: #fff; color: var(--ink); }
.btn-outline-custom:hover { color: var(--ink); background: var(--surface-2); }
.btn-gold { color: var(--dark); background: linear-gradient(135deg, #f2b94b, #de9c1b); }
.btn-gold:hover { color: var(--dark); background: #f2b94b; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary-deep); font-weight: 700; }

/* Full-bleed hero: no outer card, inset border or fixed-width wrapper. */
.hero { padding: 0; background: linear-gradient(130deg, #f7fbff, #edf4ff 60%, #fcf6eb); }
.hero-shell { display: grid; grid-template-columns: 1.04fr .96fr; align-items: stretch; gap: 0; }
.hero-copy { padding: clamp(40px, 4.2vw, 80px) var(--edge); }
.hero-copy h1 { max-width: 25ch; margin-bottom: 22px; font-size: clamp(2.25rem, 3.35vw, 4.75rem); line-height: 1.12; letter-spacing: -.035em; }
.hero-copy h1 span { color: var(--primary); }
.hero-copy p { max-width: 65ch; font-size: clamp(1rem, 1.1vw, 1.125rem); }
.hero-actions, .split-actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.hero-actions { margin: 28px 0 24px; }
.hero-points { display: grid; gap: 8px; }
.hero-points span { display: flex; align-items: baseline; gap: 10px; font-size: .95rem; font-weight: 600; }
.hero-points span::before { content: '•'; flex: 0 0 auto; color: #a76b08; }
.hero-media, .split-media, .contact-media { position: relative; min-height: 0; overflow: hidden; }
.hero-media img, .split-media img, .contact-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; min-height: 0; border-radius: 0; object-fit: cover; }
.hero-media img { object-position: 52% center; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stats-grid article { padding: 24px var(--edge); background: #fff; }
.stats-grid strong { display: block; margin-bottom: 4px; font-size: clamp(1.55rem, 2vw, 2rem); font-weight: 800; }
.stats-grid span { display: block; color: var(--ink-soft); font-size: .94rem; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; color: var(--primary-deep); line-height: 1.6; }
.eyebrow::before { content: ''; flex: 0 0 28px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { padding-inline: var(--edge); margin-bottom: 32px; }
.section-head h2 { max-width: 26ch; }
.section-head p { max-width: 70ch; margin-bottom: 0; }
.section-head h2, .split-copy h2, .why-copy h2, .faq-intro h2, .legal-hero h1 { font-size: clamp(1.9rem, 2.9vw, 3.5rem); letter-spacing: -.025em; }
.service-card-section { position: relative; background: radial-gradient(circle at 5% 10%, rgba(43,129,255,.16), transparent 30%), linear-gradient(135deg, #06182c, #0c3561); }
.service-card-section .section-head h2 { color: #fff; }
.service-card-section .section-head p { color: rgba(255,255,255,.76); }
.service-card-section .eyebrow { color: #9acaff; }
.service-cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: clamp(12px, 1.2vw, 24px); }
.mini-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: #fff; box-shadow: 0 14px 36px rgba(0,0,0,.14); }
.mini-card-media { position: relative; flex: 0 0 auto; overflow: hidden; }
.mini-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,26,47,.38), transparent 60%); pointer-events: none; }
.mini-card-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s ease; }
.service-number { position: absolute; left: 16px; bottom: 14px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(7,26,47,.78); color: #fff; font-size: .8rem; font-weight: 800; }
.mini-card-body { display: flex; flex: 1; flex-direction: column; padding: clamp(18px, 1.45vw, 28px); }
.mini-card h3 { min-height: 2.5em; font-size: clamp(1.1rem, 1.1vw, 1.3rem); line-height: 1.25; margin-bottom: 12px; }
.mini-card p { margin-bottom: 20px; font-size: .94rem; line-height: 1.65; }
.mini-card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid #e5edf6; }
.mini-card-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: .88rem; font-weight: 700; color: var(--primary-deep); }
.mini-card-actions a:last-child { padding: 8px 14px; border-radius: 999px; background: #eef5ff; }

/* Alternating service panels; images stay inside the framed section instead of touching the viewport. */
.split-section { padding: 0; background: #fff; border-bottom: 1px solid var(--line); }
.split-section.is-reverse { background: #f0f5fc; }
.split-shell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 0; }
.split-section.is-reverse .split-media { order: 2; }
.split-section.is-reverse .split-copy { order: 1; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 3.5vw, 68px) var(--edge); }
.split-copy h2 { max-width: 26ch; }
.split-copy > p { max-width: 70ch; font-size: 1rem; }
.check-list { display: grid; gap: 10px; margin-top: 8px; }
.check-list li { position: relative; padding: 10px 14px 10px 36px; border: 1px solid #dfe8f4; border-radius: 10px; background: #f4f8fd; font-size: .95rem; }
.check-list li::before { content: '✓'; position: absolute; left: 13px; top: 10px; color: var(--success); font-weight: 800; }
.split-actions { margin-top: 24px; }
.split-actions .btn { font-size: .94rem; }

.process-section { background: linear-gradient(180deg, #f8fafc, #edf3fb); }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.process-card { padding: 28px var(--edge); border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.process-card > span { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%; background: #eaf3ff; color: var(--primary-deep); font-weight: 800; }
.process-card:nth-child(2) > span { background: #fff4dd; color: #925f03; }
.process-card:nth-child(3) > span { background: #edf9f4; color: #08764f; }
.process-card:nth-child(4) > span { background: #f2ecff; color: #7048d8; }
.process-card h3 { font-size: 1.2rem; }
.process-card p { margin: 0; }
.why-band { padding-block: var(--space); color: #fff; background: radial-gradient(circle at 10% 20%, rgba(11,99,246,.22), transparent 30%), linear-gradient(135deg, #06182c, #0a2b50); }
.why-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.why-copy { padding-inline: var(--edge); }
.why-copy h2 { max-width: 24ch; color: #fff; }
.why-copy p { max-width: 65ch; margin-bottom: 0; color: rgba(255,255,255,.78); }
.why-band .eyebrow { color: #9acaff; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why-grid article { padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.08); }
.why-grid strong { display: block; margin-bottom: 8px; font-size: 1.08rem; }
.why-grid span { color: rgba(255,255,255,.78); }
.faq-section { background: #f5f8fc; }
.faq-shell { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 32px; }
.faq-intro { padding-inline: var(--edge); }
.faq-intro p { max-width: 55ch; margin-bottom: 0; }
.custom-accordion .accordion-item { overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.custom-accordion .accordion-item:last-child { margin-bottom: 0; }
.custom-accordion .accordion-header { margin: 0; }
.custom-accordion .accordion-button { gap: 16px; padding: 22px var(--edge); background: #fff; color: var(--ink); font: 700 1rem/1.5 'Inter', sans-serif; box-shadow: none; }
.custom-accordion .accordion-button::after { flex-shrink: 0; }
.custom-accordion .accordion-button:not(.collapsed) { background: #edf4ff; color: var(--primary-deep); }
.custom-accordion .accordion-button:focus-visible { outline-offset: -4px; }
.custom-accordion .accordion-body { padding: 20px var(--edge); color: var(--ink-soft); }

/* Contact panel keeps matched heights while staying inset from the section frame. */
.contact-section { padding: 0; background: #edf4fc; }
.contact-shell { display: grid; grid-template-columns: .88fr 1.12fr; gap: 0; align-items: stretch; }
.contact-media img { object-position: 48% center; }
.contact-form-wrap { padding: clamp(28px, 3vw, 52px) var(--edge); background: #fff; }
.contact-form-wrap h2 { max-width: 28ch; margin-bottom: 12px; font-size: clamp(1.8rem, 2.4vw, 2.8rem); letter-spacing: -.025em; }
.contact-form-wrap > p { max-width: 75ch; font-size: .95rem; }
.lead-form { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.full-span { grid-column: 1 / -1; }
label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 700; }
input, select, textarea { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; transition: border-color .2s ease, box-shadow .2s ease; }
select { text-overflow: ellipsis; padding-right: 24px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,99,246,.14); }
textarea { min-height: 106px; resize: vertical; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding-block: 6px; color: var(--ink-soft); font-weight: 500; }
.consent-check input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; padding: 0; margin-top: 3px; accent-color: var(--primary); }
.form-actions { margin-top: 18px; }
.contact-direct { display: grid; grid-template-columns: 1fr 1.35fr 1.65fr; gap: 10px; margin-top: 24px; }
.contact-direct a { padding: 14px 12px; border: 1px solid #e1eaf6; border-radius: 12px; background: var(--surface-2); }
.contact-direct strong { display: block; margin-bottom: 5px; font-size: .875rem; }
.contact-direct span { display: block; color: var(--ink-soft); font-size: .8rem; line-height: 1.55; overflow-wrap: anywhere; }
.honeypot { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; pointer-events: none !important; }
.flash { padding: 14px 16px; border-radius: 12px; margin-top: 18px; font-weight: 600; }
.flash-success { background: #e5f5ee; color: #086343; }
.flash-error { background: #fff0ee; color: #a22b20; }

.site-footer { padding-block: 48px 24px; background: var(--dark); color: rgba(255,255,255,.82); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 var(--edge) 32px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand { margin-bottom: 20px; }
.footer-brand .brand-text-main { color: #fff; }
.footer-brand .brand-text-sub { color: #9acaff; }
.footer-copy { max-width: 52ch; margin: 0; color: rgba(255,255,255,.72); }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-title { display: block; margin-bottom: 8px; font-weight: 800; color: #fff; }
.footer-links a { display: flex; align-items: center; min-height: 44px; padding-block: 6px; color: rgba(255,255,255,.76); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 24px var(--edge) 0; font-size: .875rem; }
.footer-bottom a { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.back-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: var(--primary-deep); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.back-top.is-visible { opacity: 1; visibility: visible; }

/* Content stays visible if JavaScript is unavailable or cannot finish loading. */
.reveal { opacity: 1; }
@keyframes enter-section { from { opacity: 0; } to { opacity: 1; } }
.reveal.in-view { animation: enter-section .6s ease both; }
.delay-1.in-view { animation-delay: .08s; }
.delay-2.in-view { animation-delay: .16s; }
.delay-3.in-view { animation-delay: .24s; }

/* Legal documents share the same width, header and readable text spacing. */
.legal-hero { padding: var(--space) var(--edge) 40px; background: linear-gradient(130deg, #eef6ff, #f5f7fb); }
.legal-hero p { max-width: 80ch; }
.legal-back, .legal-updated, .legal-kicker { display: block; margin-bottom: 16px; color: var(--primary-deep); font-weight: 700; overflow-wrap: anywhere; }
.legal-back { width: fit-content; min-height: 44px; }
.legal-kicker, .legal-updated { font-size: .875rem; }
.legal-body { padding-block: 32px 48px; }
.legal-grid { display: grid; grid-template-columns: minmax(240px, .65fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.legal-sidebar { position: sticky; top: calc(var(--header-height) + 24px); padding: 24px var(--edge); border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.legal-sidebar-title, .legal-section-index { display: block; margin-bottom: 12px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; color: var(--primary-deep); }
.legal-sidebar nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.legal-help { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-help p { margin-block: 8px; }
.legal-article { display: grid; gap: 16px; }
.legal-section { padding: 28px var(--edge); border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.legal-section h2 { font-size: 1.4rem; }
.legal-section p { max-width: 85ch; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-related { background: #0b2949; }
.legal-related-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px var(--edge); color: #fff; }
.legal-related-inner h2 { margin: 8px 0 0; font-size: 1.75rem; color: #fff; }
.legal-related-inner a { display: flex; align-items: center; min-height: 44px; font-weight: 700; }
.legal-footer-main { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-inline: var(--edge); }
.legal-footer-main .footer-brand { margin-bottom: 0; }

@media (hover: hover) and (pointer: fine) {
  .mini-card:hover .mini-card-media img { transform: scale(1.04); }
  .footer-links a:hover, .footer-bottom a:hover { color: #9acaff; }
}
@media (max-width: 1199.98px) {
  .service-cards-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-direct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-direct a:last-child { grid-column: 1 / -1; }
  .contact-shell { grid-template-columns: .8fr 1.2fr; }
}
@media (max-width: 991.98px) {
  :root { --header-height: 76px; }
  .utility-note { display: none; }
  .brand-text-main { font-size: 1.5rem; }
  .brand-text-sub { font-size: .8rem; }
  .site-header .navbar { gap: 0; }
  .site-header .navbar-collapse { flex-basis: 100%; max-height: calc(100dvh - var(--header-height) - 32px); overflow-y: auto; background: #fff; }
  .navbar-collapse .navbar-nav { padding-top: 16px; gap: 4px; }
  .header-cta { margin: 12px 0 8px; }
  .hero-shell, .split-shell, .contact-shell, .why-shell, .faq-shell, .footer-top, .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy h1 { max-width: 26ch; font-size: clamp(2.25rem, 5.2vw, 3.4rem); }
  .hero-media, .split-media, .contact-media { aspect-ratio: 16 / 9; }
  .split-section.is-reverse .split-media, .split-section.is-reverse .split-copy { order: initial; }
  .split-copy h2 { max-width: 30ch; }
  .why-shell, .faq-shell { gap: 32px; }
  .why-copy h2 { max-width: 30ch; }
  .contact-form-wrap h2 { max-width: 30ch; }
  .contact-direct { grid-template-columns: 1fr 1.3fr 1.7fr; }
  .contact-direct a:last-child { grid-column: auto; }
  .legal-sidebar { position: static; }
}
@media (max-width: 767.98px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid article { padding-block: 20px; }
  .stats-grid span { font-size: .85rem; }
  .footer-links { gap: 16px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-bottom > span:last-child { padding-right: 48px; }
  .contact-direct { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-direct a:last-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  :root { --space: 44px; --header-height: 72px; }
  .utility-inner { gap: 8px; font-size: .75rem; }
  .brand-text-main { font-size: 1.4rem; }
  .brand-text-sub { font-size: .75rem; }
  .hero-copy { padding-block: 32px; }
  .hero-copy h1 { font-size: clamp(2rem, 7.5vw, 2.7rem); }
  .hero-copy p { font-size: 1rem; }
  .eyebrow { font-size: .7rem; letter-spacing: .1em; gap: 9px; }
  .eyebrow::before { flex-basis: 20px; }
  .hero-actions, .split-actions, .form-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .hero-actions .btn, .split-actions .btn, .form-actions .btn { width: 100%; }
  .split-actions .text-link, .form-actions .text-link { justify-content: center; }
  .service-cards-grid, .process-grid, .why-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .service-cards-grid { grid-auto-rows: auto; gap: 18px; }
  .mini-card { border-radius: 0; }
  .mini-card h3 { min-height: 0; font-size: 1.25rem; }
  .mini-card-body { padding: 22px var(--edge); }
  .split-copy { padding-block: 32px; }
  .split-copy h2, .section-head h2, .why-copy h2, .faq-intro h2, .legal-hero h1 { font-size: clamp(1.8rem, 6vw, 2.25rem); }
  .process-card, .why-grid article, .custom-accordion .accordion-item { border-radius: 0; }
  .why-grid article { padding-inline: var(--edge); }
  .contact-form-wrap { padding-block: 32px; }
  .contact-form-wrap h2 { font-size: 1.85rem; }
  .contact-direct { grid-template-columns: minmax(0, 1fr); }
  .contact-direct a:last-child { grid-column: auto; }
  .contact-direct a { padding: 14px 16px; }
  .contact-direct span { font-size: .875rem; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-links > div:last-child { grid-column: 1 / -1; }
  .legal-related-inner { align-items: flex-start; flex-direction: column; }
  .legal-section, .legal-sidebar { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v7: section framing, viewport gutters and per-section visual styling. */
:root {
  --page-gutter: clamp(12px, 2.2vw, 36px);
  --frame-radius: clamp(20px, 2.1vw, 34px);
  --frame-gap: clamp(16px, 1.65vw, 28px);
  --section-inset: clamp(18px, 2.35vw, 38px);
  --panel-radius: clamp(16px, 1.7vw, 26px);
}

/* The main canvas now exposes a visible gutter on both sides at every breakpoint. */
#main:not(.legal-main) {
  width: 100%;
  padding: var(--frame-gap) var(--page-gutter) calc(var(--frame-gap) * 1.2);
  background:
    radial-gradient(circle at 7% 4%, rgba(11, 99, 246, .055), transparent 22%),
    radial-gradient(circle at 94% 35%, rgba(242, 185, 75, .055), transparent 18%),
    var(--bg);
}
#main:not(.legal-main) > section {
  position: relative;
  isolation: isolate;
  width: min(100%, 1600px);
  margin: 0 auto var(--frame-gap);
  border: 1px solid rgba(18, 54, 91, .10);
  border-radius: var(--frame-radius);
  overflow: hidden;
  overflow: clip;
  box-shadow: 0 16px 42px rgba(7, 26, 47, .075);
}
#main:not(.legal-main) > section:last-child { margin-bottom: 0; }
#main:not(.legal-main) > section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: inherit;
  pointer-events: none;
}

/* HERO — soft premium frame with floating media treatment. */
#main > .hero {
  background:
    radial-gradient(circle at 92% 9%, rgba(242, 185, 75, .22), transparent 23%),
    radial-gradient(circle at 4% 85%, rgba(11, 99, 246, .12), transparent 24%),
    linear-gradient(130deg, #f9fcff 0%, #edf5ff 58%, #fff9ee 100%);
}
.hero > .container-wide { padding: var(--section-inset); }
.hero-shell {
  overflow: hidden;
  border: 1px solid rgba(11, 79, 209, .10);
  border-radius: var(--panel-radius);
  background: rgba(255,255,255,.62);
  box-shadow: 0 10px 30px rgba(13,27,42,.045);
}
.hero-copy { padding-inline: clamp(24px, 3vw, 54px); }
.hero-media { min-height: clamp(380px, 41vw, 650px); }
.hero-media img { object-position: 52% center; }
.hero-media::after,
.split-media::after,
.contact-media::after {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: calc(var(--panel-radius) - 6px);
  box-shadow: 0 0 0 1px rgba(7,26,47,.035);
  pointer-events: none;
}
.stats-grid {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(18,54,91,.10);
  border-radius: var(--panel-radius);
  background: rgba(18,54,91,.10);
}
.stats-grid article { transition: transform .22s ease, background .22s ease; }

/* SERVICES OVERVIEW — dark framed section with inset card grid. */
#main > .service-card-section {
  background:
    radial-gradient(circle at 6% 4%, rgba(57, 142, 255, .24), transparent 26%),
    radial-gradient(circle at 92% 88%, rgba(242,185,75,.12), transparent 22%),
    linear-gradient(145deg, #06172b 0%, #0a2c51 52%, #0b3b69 100%);
  border-color: rgba(115,178,255,.20);
}
.service-card-section .container-wide { padding-inline: var(--section-inset); }
.service-card-section .section-head { padding-inline: 0; }
.service-cards-grid { gap: clamp(16px, 1.35vw, 24px); }
.mini-card {
  border-color: rgba(255,255,255,.14);
  border-radius: var(--panel-radius);
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.mini-card-body { position: relative; }
.mini-card-actions a:last-child { border: 1px solid #dce9fa; }

/* INDIVIDUAL SERVICE SECTIONS — each section receives its own accent style. */
.split-section {
  --service-accent: #0b63f6;
  --service-tint: #eef5ff;
  --service-line: rgba(11,99,246,.18);
  --service-glow: rgba(11,99,246,.07);
  padding: var(--section-inset);
  border-bottom: 0;
  background: linear-gradient(145deg, #ffffff, #f8fbff);
}
.split-section.service-style-1 {
  --service-accent: #0b63f6;
  --service-tint: #edf5ff;
  --service-line: rgba(11,99,246,.20);
  --service-glow: rgba(11,99,246,.075);
  background: linear-gradient(145deg, #ffffff, #f1f7ff);
}
.split-section.service-style-2 {
  --service-accent: #b97808;
  --service-tint: #fff7e7;
  --service-line: rgba(185,120,8,.20);
  --service-glow: rgba(185,120,8,.075);
  background: linear-gradient(145deg, #fffdf8, #fff6e5);
}
.split-section.service-style-3 {
  --service-accent: #08765a;
  --service-tint: #edf9f5;
  --service-line: rgba(8,118,90,.18);
  --service-glow: rgba(8,118,90,.07);
  background: linear-gradient(145deg, #fbfffd, #edf9f5);
}
.split-section.service-style-4 {
  --service-accent: #7048d8;
  --service-tint: #f4f0ff;
  --service-line: rgba(112,72,216,.18);
  --service-glow: rgba(112,72,216,.07);
  background: linear-gradient(145deg, #fefcff, #f4f0ff);
}
.split-shell {
  overflow: hidden;
  min-height: clamp(480px, 40vw, 650px);
  border: 1px solid var(--service-line);
  border-radius: var(--panel-radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(7,26,47,.055);
}
.split-copy {
  position: relative;
  padding: clamp(34px, 4vw, 72px) clamp(24px, 3.2vw, 58px);
  background:
    radial-gradient(circle at 92% 12%, var(--service-glow), transparent 25%),
    #fff;
}
.split-copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--service-accent), transparent 82%);
  opacity: .72;
}
.split-section.is-reverse .split-copy::before { left: auto; right: 0; }
.split-section .eyebrow { color: var(--service-accent); }
.check-list li {
  border: 1px solid var(--service-line);
  border-left: 4px solid var(--service-accent);
  border-radius: 12px;
  background: var(--service-tint);
}
.check-list li::before { color: var(--service-accent); }
.split-media { min-height: 100%; }

/* PROCESS — elevated timeline-style cards. */
#main > .process-section {
  background:
    radial-gradient(circle at 82% 18%, rgba(11,99,246,.07), transparent 22%),
    linear-gradient(180deg, #fbfdff, #edf3fb);
}
.process-section .container-wide { padding-inline: var(--section-inset); }
.process-section .section-head { padding-inline: 0; }
.process-grid { gap: clamp(14px, 1.4vw, 22px); }
.process-card {
  position: relative;
  overflow: hidden;
  padding: 30px clamp(20px, 2vw, 32px);
  border-radius: var(--panel-radius);
  box-shadow: 0 10px 28px rgba(7,26,47,.055);
  transition: transform .22s ease, box-shadow .22s ease;
}
.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
}
.process-card:nth-child(2)::before { background: #d99a27; }
.process-card:nth-child(3)::before { background: #0d8b5f; }
.process-card:nth-child(4)::before { background: #7048d8; }

/* WHY US — dark premium band with glass cards kept away from outer edges. */
#main > .why-band {
  padding: var(--space) var(--section-inset);
  background:
    radial-gradient(circle at 10% 20%, rgba(11,99,246,.26), transparent 30%),
    radial-gradient(circle at 86% 72%, rgba(154,202,255,.11), transparent 26%),
    linear-gradient(135deg, #05172a, #0a2b50 58%, #0b355e);
  border-color: rgba(143,193,255,.24);
}
.why-copy { padding-inline: 0; }
.why-grid article {
  border-radius: var(--panel-radius);
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .22s ease, background .22s ease;
}

/* FAQ — light framed cards with clearer active state. */
#main > .faq-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(112,72,216,.06), transparent 22%),
    linear-gradient(145deg, #f8faff, #f2f6fb);
}
.faq-section .container-wide { padding-inline: var(--section-inset); }
.faq-intro { padding-inline: 0; }
.custom-accordion .accordion-item {
  border-radius: 16px;
  box-shadow: 0 7px 18px rgba(7,26,47,.035);
}
.custom-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #edf4ff, #f6f9ff);
}

/* CONTACT — inset image/form card rather than a flush edge-to-edge split. */
#main > .contact-section {
  padding: var(--section-inset);
  background:
    radial-gradient(circle at 7% 88%, rgba(11,99,246,.08), transparent 22%),
    linear-gradient(145deg, #eaf2fb, #f7fbff);
}
.contact-shell {
  overflow: hidden;
  border: 1px solid rgba(11,79,209,.12);
  border-radius: var(--panel-radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(7,26,47,.06);
}
.contact-form-wrap { padding-inline: clamp(24px, 3vw, 52px); }
.contact-direct a {
  border-top: 3px solid rgba(11,99,246,.24);
  box-shadow: 0 4px 14px rgba(7,26,47,.035);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

/* Footer keeps the page-wide dark close while its content follows the same visual inset. */
.site-footer .container-wide { padding-inline: max(var(--edge), var(--page-gutter)); }
.footer-top { padding-top: 0; }

@media (hover: hover) and (pointer: fine) {
  .stats-grid article:hover { transform: translateY(-2px); background: #fbfdff; }
  .mini-card:hover { transform: translateY(-5px); border-color: rgba(154,202,255,.45); box-shadow: 0 20px 42px rgba(0,0,0,.22); }
  .process-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(7,26,47,.09); }
  .why-grid article:hover { transform: translateY(-3px); background: rgba(255,255,255,.12); }
  .contact-direct a:hover { transform: translateY(-2px); border-top-color: var(--primary); background: #f7fbff; }
}

@media (max-width: 991.98px) {
  :root {
    --page-gutter: clamp(10px, 2.5vw, 22px);
    --section-inset: clamp(14px, 2.8vw, 24px);
  }
  .hero-media { min-height: 0; }
  .split-shell { min-height: 0; }
  .split-copy::before,
  .split-section.is-reverse .split-copy::before {
    top: 0;
    left: 0;
    right: auto;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--service-accent), transparent 82%);
  }
  .why-shell { gap: 28px; }
}

@media (max-width: 575.98px) {
  :root {
    --page-gutter: 10px;
    --frame-gap: 12px;
    --frame-radius: 20px;
    --section-inset: 12px;
    --panel-radius: 16px;
  }
  #main:not(.legal-main) { padding-top: 12px; }
  #main:not(.legal-main) > section { box-shadow: 0 10px 24px rgba(7,26,47,.06); }
  .hero > .container-wide { padding: 12px; }
  .hero-shell,
  .stats-grid,
  .mini-card,
  .split-shell,
  .process-card,
  .why-grid article,
  .custom-accordion .accordion-item,
  .contact-shell { border-radius: 16px; }
  .hero-copy { padding: 28px 18px; }
  .hero-media::after,
  .split-media::after,
  .contact-media::after { inset: 8px; border-radius: 12px; }
  .service-card-section .container-wide,
  .process-section .container-wide,
  .faq-section .container-wide { padding-inline: 12px; }
  .split-section,
  #main > .contact-section { padding: 12px; }
  .split-copy { padding: 30px 18px; }
  #main > .why-band { padding: 42px 16px; }
  .why-grid article { padding: 20px 18px; }
  .contact-form-wrap { padding: 30px 18px; }
  .footer-top,
  .footer-bottom { padding-inline: 10px; }
}

/* v8: clip every framed full-size image to the visible inner image frame. */
:root {
  --media-frame-inset: 12px;
  --media-frame-radius: calc(var(--panel-radius) - 6px);
}

/*
 * v7 drew a decorative inner border above a full-bleed image. That made the
 * picture remain visible outside the border. v8 makes the border the real
 * image boundary: the image itself is inset and clipped to the same radius.
 */
.hero-media,
.split-media,
.contact-media {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.88), rgba(231,239,249,.82));
}

.hero-media img,
.split-media img,
.contact-media img {
  position: absolute;
  top: var(--media-frame-inset);
  right: var(--media-frame-inset);
  bottom: var(--media-frame-inset);
  left: var(--media-frame-inset);
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border-radius: var(--media-frame-radius);
  object-fit: cover;
  overflow: hidden;
  clip-path: inset(0 round var(--media-frame-radius));
  transform: translateZ(0);
}

.hero-media::after,
.split-media::after,
.contact-media::after {
  inset: var(--media-frame-inset);
  border-radius: var(--media-frame-radius);
  box-shadow:
    0 0 0 1px rgba(7,26,47,.04),
    0 10px 28px rgba(7,26,47,.08);
}

/* Service overview thumbnails already sit inside cards; enforce hard clipping
   so hover zoom can never bleed past their own media area. */
.mini-card-media {
  overflow: hidden;
  isolation: isolate;
}
.mini-card-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  clip-path: inset(0);
}

@media (max-width: 575.98px) {
  :root {
    --media-frame-inset: 8px;
    --media-frame-radius: 12px;
  }
}

/* ================================================================
   v9 — TRUE MEDIA FRAME CLIPPING
   The visible white rounded frame is now a real DOM clipping wrapper.
   Images cannot paint outside it, regardless of intrinsic image size.
   ================================================================ */
:root {
  --media-frame-inset: 12px;
  --media-frame-radius: calc(var(--panel-radius) - 6px);
}

.hero-media,
.split-media,
.contact-media {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(231,239,249,.88));
}

/* Disable the old decorative overlay border. The real frame below owns
   both the border and the clipping boundary. */
.hero-media::after,
.split-media::after,
.contact-media::after {
  content: none !important;
  display: none !important;
}

.media-frame {
  position: absolute;
  inset: var(--media-frame-inset);
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: var(--media-frame-radius);
  background: #eef3f8;
  box-shadow:
    0 0 0 1px rgba(7,26,47,.055),
    0 10px 28px rgba(7,26,47,.10);
  clip-path: inset(0 round var(--media-frame-radius));
  transform: translateZ(0);
  contain: paint;
}

/* Critical override: reset every old absolute image rule. The image fills
   ONLY the real .media-frame wrapper, never the parent media panel. */
.hero-media .media-frame > img,
.split-media .media-frame > img,
.contact-media .media-frame > img {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  overflow: hidden;
  clip-path: none !important;
  transform: none !important;
}

.hero-media .media-frame > img { object-position: 52% center; }

/* Thumbnails: their existing media wrapper is the real clip boundary. */
.mini-card-media {
  position: relative;
  overflow: hidden !important;
  isolation: isolate;
  border-radius: 0;
  contain: paint;
}
.mini-card-media > img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0;
  border-radius: 0 !important;
}

@media (max-width: 575.98px) {
  :root {
    --media-frame-inset: 8px;
    --media-frame-radius: 12px;
  }
}
