/* ==========================================================================
   Heart & Soul Consulting — Homepage
   Royal blue (trust) · Burgundy (warmth, devotion) · Gold (accent)
   ========================================================================== */

:root {
    /* Royal blue */
    --royal-950: #0A1333;
    --royal-900: #0E1A44;
    --royal-800: #142660;
    --royal-700: #1C3584;
    --royal-600: #2443A6;
    --royal-500: #3558C8;
    --royal-100: #E7ECFA;

    /* Burgundy */
    --burgundy-900: #3D0A1B;
    --burgundy-800: #5A1228;
    --burgundy-700: #7A1D3A;
    --burgundy-600: #93284A;
    --burgundy-100: #F7E9ED;

    /* Gold & neutrals */
    --gold: #C9A45C;
    --gold-light: #E6CF9C;
    --gold-dark: #A6823E;
    --ivory: #FBF8F2;
    --paper: #F4EEE4;
    --sand: #E8DFD1;
    --ink: #161A2E;
    --ink-soft: #4A4F66;
    --white: #FFFFFF;

    /* Type */
    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Layout */
    --container: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(80px, 11vw, 150px);
    --radius: 20px;
    --radius-sm: 12px;
    --header-h: 84px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --shadow-lg: 0 30px 80px -30px rgba(14, 26, 68, .45);
    --shadow-md: 0 18px 40px -20px rgba(14, 26, 68, .35);

    color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--royal-900); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 980px; }
.section { padding-block: var(--section-y); position: relative; }
.center { text-align: center; }
.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: fixed; top: 12px; left: 12px; z-index: 1000;
    padding: 10px 18px; border-radius: 999px;
    background: var(--gold); color: var(--royal-900); font-weight: 700;
    transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Typography ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: var(--burgundy-700);
    margin-bottom: 22px;
}
.eyebrow-line { width: 36px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow-gold { color: var(--gold); }

.display-title, .section-title, .hero-title, .footer-cta-title {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.015em;
}
.display-title em, .section-title em, .hero-title em, .footer-cta-title em {
    font-style: italic; font-weight: 400;
}
.section-title { font-size: clamp(40px, 5.4vw, 72px); }
.section-title em { color: var(--burgundy-700); }
.section-dark .section-title em, .book .section-title em { color: var(--gold-light); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--ink); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 15px; letter-spacing: .02em;
    color: var(--royal-700);
    padding-bottom: 4px;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
    transition: background-size .5s var(--ease), gap .4s var(--ease);
}
.link-arrow:hover { gap: 16px; background-size: 40% 1px; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--royal-700);
    --btn-fg: var(--white);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 28px;
    border-radius: 999px;
    font-weight: 700; font-size: 15px; letter-spacing: .02em;
    background: var(--btn-bg); color: var(--btn-fg);
    border: 1px solid transparent;
    transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--btn-hover, var(--royal-900));
    transform: translateY(101%); border-radius: inherit;
    transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn .icon { transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-gold { --btn-bg: var(--gold); --btn-fg: var(--royal-950); --btn-hover: var(--gold-light); }
.btn-burgundy { --btn-bg: var(--burgundy-700); --btn-hover: var(--burgundy-900); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--white); --btn-hover: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .35); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--royal-800); --btn-hover: var(--royal-100); border-color: var(--royal-700); }
.btn-outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-hover: var(--gold); border-color: rgba(230, 207, 156, .55); }
.btn-outline-light:hover { color: var(--royal-950); }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--burgundy-600), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    height: var(--header-h);
    color: var(--white);
    transition: transform .6s var(--ease), background-color .4s, color .4s, height .4s var(--ease), box-shadow .4s;
}
.site-header.is-scrolled {
    --header-h: 72px;
    background: rgba(251, 248, 242, .88);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    color: var(--royal-900);
    box-shadow: 0 1px 0 rgba(14, 26, 68, .08);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }

/* Logo — default colours suit dark backgrounds (hero, footer, mobile menu) */
.logo {
    --logo-s1: #4D78FF; --logo-s2: #2A4FD6;      /* S ribbon */
    --logo-h1: #E0468A; --logo-h2: #A3285F;      /* heart */
    --logo-gap: var(--royal-900);                /* matches the background */
    --logo-heart: #A9BCFF; --logo-amp: var(--white); --logo-soul: #EE9DC0; --logo-tag: rgba(255, 255, 255, .72);
    display: inline-flex; align-items: center; gap: 14px;
}
.site-header.is-scrolled .logo {
    --logo-s1: #1149EE; --logo-s2: #132E8C;
    --logo-h1: #D42E7F; --logo-h2: #5C1A3A;
    --logo-gap: var(--ivory);
    --logo-heart: #1B37A6; --logo-amp: var(--ink); --logo-soul: #7A1D4A; --logo-tag: var(--ink);
}
.menu-open .site-header .logo { --logo-gap: var(--royal-950); --logo-s1: #4D78FF; --logo-s2: #2A4FD6; --logo-h1: #E0468A; --logo-h2: #A3285F; --logo-heart: #A9BCFF; --logo-amp: var(--white); --logo-soul: #EE9DC0; --logo-tag: rgba(255, 255, 255, .72); }
.site-footer .logo { --logo-gap: var(--royal-950); }
.logo-mark { width: auto; height: 50px; overflow: visible; }
.logo-gap { stroke: var(--logo-gap); }
.logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1; font-family: "Jost", var(--font-body); }
.logo-name { font-size: 17px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; margin-right: -.3em; }
.logo-name b { font-weight: 400; color: var(--logo-heart); }
.logo-name i { font-style: normal; color: var(--logo-amp); }
.logo-name em { font-style: normal; color: var(--logo-soul); }
/* Supplied logo image: light version over dark backgrounds, full-colour once the header turns ivory */
.logo-image img { height: 52px; width: auto; max-width: 220px; object-fit: contain; }
.logo-image .logo-light-bg { display: none; }
.site-header.is-scrolled .logo-image .logo-dark-bg { display: none; }
.site-header.is-scrolled .logo-image .logo-light-bg { display: block; }
.menu-open .site-header .logo-image .logo-dark-bg { display: block; }
.menu-open .site-header .logo-image .logo-light-bg { display: none; }
.site-header.is-scrolled .logo-image img { height: 44px; }
.logo-sub { font-size: 9px; font-weight: 400; letter-spacing: .62em; text-transform: uppercase; margin-top: 7px; margin-right: -.62em; color: var(--logo-tag); }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav a {
    position: relative; display: block; padding: 8px 12px;
    font-size: 14.5px; font-weight: 600; opacity: .88;
    transition: opacity .3s;
}
.primary-nav a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 1px;
    background: var(--gold); transform: scaleX(0); transform-origin: right;
    transition: transform .45s var(--ease);
}
.primary-nav a:hover, .primary-nav a.is-active { opacity: 1; }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; border: 1px solid currentColor; }
.menu-toggle-bar { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.menu-toggle-bar:nth-of-type(2) { top: 19px; }
.menu-toggle-bar:nth-of-type(3) { top: 25px; }
.menu-open .menu-toggle-bar:nth-of-type(2) { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-toggle-bar:nth-of-type(3) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 90;
    display: flex; flex-direction: column; justify-content: center; gap: 36px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background: var(--royal-950); color: var(--white);
    clip-path: circle(0% at calc(100% - 44px) 42px);
    visibility: hidden;
    transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; transition: clip-path .8s var(--ease); }
.menu-open .site-header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; transform: none; }
.mobile-menu a:not(.btn) {
    display: flex; align-items: baseline; gap: 16px;
    font-family: var(--font-display); font-size: clamp(34px, 9vw, 52px); line-height: 1.25;
}
.mobile-menu a span { font-family: var(--font-body); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.mobile-menu .btn { align-self: flex-start; }
.mobile-menu-foot { font-size: 14px; opacity: .6; line-height: 1.8; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 40px) 0 110px;
    color: var(--white);
    background: linear-gradient(160deg, var(--royal-950) 0%, var(--royal-900) 45%, var(--royal-800) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.hero-glow-1 { width: 620px; height: 620px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(147, 40, 74, .7), transparent 70%); }
.hero-glow-2 { width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(circle, rgba(53, 88, 200, .55), transparent 70%); }
.hero-lines { position: absolute; width: 900px; right: -220px; top: 50%; margin-top: -450px; fill: none; stroke: rgba(201, 164, 92, .14); stroke-width: 1; }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(40px, 6vw, 90px); }
.hero-title { font-size: clamp(50px, 6.8vw, 104px); margin-bottom: 28px; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero-title .line > * { display: inline-block; }
.hero-title em { color: var(--gold-light); }
.hero-lede { max-width: 540px; font-size: clamp(17px, 1.4vw, 19px); color: rgba(255, 255, 255, .78); margin-bottom: 38px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--gold); }

.hero-visual { position: relative; justify-self: end; width: min(100%, 480px); }
.arch { position: relative; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); }
.arch img { width: 100%; height: 118%; object-fit: cover; position: relative; top: -9%; }
.hero-arch { aspect-ratio: 4 / 5.2; box-shadow: var(--shadow-lg); }
.hero-arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 26, 68, .45)); }
.arch-outline {
    position: absolute; inset: -18px 18px 18px -18px; z-index: -1;
    border: 1px solid rgba(201, 164, 92, .55);
    border-radius: 999px 999px var(--radius) var(--radius);
}

.float-card {
    position: absolute;
    background: rgba(251, 248, 242, .96);
    color: var(--ink);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}
.float-score { left: -64px; bottom: 74px; width: 210px; padding: 18px 20px 14px; }
.float-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.float-value { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 46px; font-weight: 600; line-height: 1.1; color: var(--royal-800); }
.float-value small { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: #1B7F55; background: #E3F4EC; padding: 2px 8px; border-radius: 999px; }
.score-line { width: 100%; height: 48px; margin-top: 6px; overflow: visible; }
.score-line path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.float-note { font-size: 10.5px; color: var(--ink-soft); opacity: .75; margin-top: 4px; }
.float-badge { right: -28px; top: 64px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; }
.float-badge-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--burgundy-100); color: var(--burgundy-700); }
.float-badge strong { display: block; font-size: 14px; line-height: 1.3; }
.float-badge small { font-size: 12.5px; color: var(--ink-soft); }

.scroll-cue {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.scroll-cue i { width: 1px; height: 46px; background: rgba(255, 255, 255, .2); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ==========================================================================
   Philosophy
   ========================================================================== */
.philosophy { text-align: center; }
.philosophy .eyebrow { justify-content: center; }
.display-title { font-size: clamp(44px, 6.4vw, 92px); color: var(--royal-900); margin-bottom: 44px; }
.display-title em { color: var(--burgundy-700); }
.statement {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.1vw, 42px);
    line-height: 1.35;
    color: var(--royal-900);
}
.statement .word, .verse .word { display: inline-block; white-space: pre; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { overflow: hidden; background: var(--burgundy-800); color: var(--gold-light); padding: 26px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee span { font-family: var(--font-display); font-style: italic; font-size: clamp(30px, 4vw, 52px); line-height: 1; color: var(--ivory); }
.marquee i { font-style: normal; color: var(--gold); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.about-visual { position: relative; max-width: 470px; }
.about-arch { aspect-ratio: 4 / 5.3; box-shadow: var(--shadow-lg); }
.about-frame {
    position: absolute; inset: 28px -28px -28px 28px;
    border-radius: 999px 999px var(--radius) var(--radius);
    background: linear-gradient(160deg, var(--royal-700), var(--burgundy-700));
    opacity: .14;
}
.about-seal {
    position: absolute; right: -40px; bottom: 60px;
    width: 128px; height: 128px; border-radius: 50%;
    background: var(--royal-900); color: var(--gold-light);
    display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.about-seal svg { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); animation: spin 26s linear infinite; }
.about-seal text { fill: currentColor; font-size: 10.6px; font-weight: 700; letter-spacing: .2em; font-family: var(--font-body); }
.about-seal span { font-size: 22px; color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

.about-copy .section-title { color: var(--royal-900); margin-bottom: 28px; }
.about-copy > p:not(.eyebrow) { color: var(--ink-soft); margin-bottom: 18px; }
.about-copy .lead { color: var(--ink); }
.about-quote {
    margin: 34px 0;
    padding-left: 26px; border-left: 2px solid var(--gold);
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(24px, 2.4vw, 30px); line-height: 1.35; color: var(--burgundy-700);
}
.about-quote cite { display: block; margin-top: 10px; font-family: var(--font-body); font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 28px 0; margin-bottom: 30px; border-block: 1px solid var(--sand); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-family: var(--font-display); font-size: clamp(40px, 4.4vw, 58px); font-weight: 500; line-height: 1; color: var(--royal-800); }
.stats dt { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* ==========================================================================
   Services
   ========================================================================== */
.section-dark { background: var(--royal-900); color: var(--white); }
.services { overflow: hidden; }
.services::before {
    content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: -450px; margin-left: -450px;
    background: radial-gradient(circle, rgba(122, 29, 58, .45), transparent 65%); pointer-events: none;
}
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(48px, 6vw, 80px); position: relative; }
.section-head > div { max-width: 720px; }
.section-intro { max-width: 380px; color: var(--ink-soft); }
.section-dark .section-intro { color: rgba(255, 255, 255, .7); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; position: relative; }
.service-card {
    --mx: 50%; --my: 50%;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    padding: 38px 32px 32px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .09);
    transition: border-color .5s, transform .6s var(--ease), background-color .5s;
}
.service-card::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
    background: radial-gradient(380px circle at var(--mx) var(--my), rgba(201, 164, 92, .16), transparent 60%);
    transition: opacity .5s;
}
.service-card:hover { border-color: rgba(201, 164, 92, .5); transform: translateY(-6px); background: rgba(255, 255, 255, .055); }
.service-card:hover::before { opacity: 1; }
.service-num { position: absolute; top: 28px; right: 30px; font-family: var(--font-display); font-size: 20px; color: rgba(255, 255, 255, .3); }
.service-icon {
    display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 30px;
    border-radius: 50%; border: 1px solid rgba(201, 164, 92, .45); color: var(--gold-light);
    transition: background-color .5s, color .5s;
}
.service-icon .icon { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--gold); color: var(--royal-950); }
.service-card h3 { font-family: var(--font-display); font-size: 30px; font-weight: 500; line-height: 1.15; margin-bottom: 14px; }
.service-card p { color: rgba(255, 255, 255, .68); font-size: 15.5px; margin-bottom: 26px; }
.service-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gold-light); }
.service-link .icon { transition: transform .4s var(--ease); }
.service-card:hover .service-link .icon { transform: translateX(5px); }
.service-link::after { content: ""; position: absolute; inset: 0; }

/* ==========================================================================
   How it works (horizontal pin on desktop)
   ========================================================================== */
.how { position: relative; background: var(--ivory); overflow: hidden; }
.how-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 48px; height: 1px; background: var(--sand); z-index: 2; }
.how-progress span { display: block; height: 100%; background: var(--burgundy-700); transform-origin: 0 50%; transform: scaleX(0); }
.how-track {
    display: flex; align-items: center; gap: 28px;
    width: max-content; height: 100vh; min-height: 640px;
    padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}
.how-intro { width: min(520px, 80vw); flex: none; padding-right: 60px; }
.how-intro .section-title { color: var(--royal-900); margin-bottom: 24px; }
.how-intro p { color: var(--ink-soft); max-width: 400px; }
.how-hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--burgundy-700); }
.how-hint .icon { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }

.step-card {
    position: relative; flex: none;
    width: 380px; height: 460px;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 40px 36px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--sand);
    box-shadow: 0 20px 50px -35px rgba(14, 26, 68, .35);
    transition: background-color .6s, color .6s, border-color .6s;
}
.step-card:nth-of-type(even) { transform: translateY(40px); }
.step-num { font-family: var(--font-display); font-size: 120px; line-height: .8; font-weight: 400; color: var(--royal-100); -webkit-text-stroke: 1px var(--royal-600); transition: color .6s; }
.step-card h3 { font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1.1; color: var(--royal-900); margin-bottom: 14px; transition: color .6s; }
.step-card p { color: var(--ink-soft); font-size: 15.5px; transition: color .6s; }
.step-dot { position: absolute; top: 40px; right: 36px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--gold); }
.step-card:hover, .step-card.is-active { background: var(--royal-900); border-color: var(--royal-900); }
.step-card:hover .step-num, .step-card.is-active .step-num { color: transparent; -webkit-text-stroke-color: var(--gold); }
.step-card:hover h3, .step-card.is-active h3 { color: var(--white); }
.step-card:hover p, .step-card.is-active p { color: rgba(255, 255, 255, .72); }
.step-card:hover .step-dot, .step-card.is-active .step-dot { background: var(--gold); }

.how-end { flex: none; width: 340px; padding-left: 40px; }
.how-end p { font-family: var(--font-display); font-size: 36px; line-height: 1.15; color: var(--royal-900); margin-bottom: 24px; }

/* ==========================================================================
   Scripture parallax band
   ========================================================================== */
.verse { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(120px, 16vw, 220px); color: var(--white); text-align: center; }
.verse-media { position: absolute; inset: 0; z-index: -2; }
.verse-media img { width: 100%; height: 130%; object-fit: cover; position: relative; top: -15%; }
.verse::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 26, 68, .82), rgba(61, 10, 27, .78)); }
.verse-mark { display: block; color: var(--gold); font-size: 26px; margin-bottom: 26px; }
.verse blockquote p { font-family: var(--font-display); font-style: italic; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.2; }
.verse cite { display: inline-block; margin-top: 30px; font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); }

/* ==========================================================================
   Education
   ========================================================================== */
.education .section-title { color: var(--royal-900); }
.edu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.edu-card a { display: flex; flex-direction: column; height: 100%; }
.edu-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3.3; border-radius: var(--radius); margin-bottom: 20px; }
.edu-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.edu-media::after { content: ""; position: absolute; inset: 0; background: var(--royal-900); opacity: 0; transition: opacity .6s; }
.edu-card a:hover img { transform: scale(1.06); }
.edu-card a:hover .edu-media::after { opacity: .15; }
.edu-meta { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.edu-meta span { padding: 3px 10px; border-radius: 999px; background: var(--burgundy-100); color: var(--burgundy-700); font-weight: 700; }
.edu-card h3 { font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.18; color: var(--royal-900); transition: color .4s; }
.edu-card a:hover h3 { color: var(--burgundy-700); }

.guide-card {
    display: flex; flex-direction: column;
    padding: 34px 30px; border-radius: var(--radius);
    background: linear-gradient(160deg, var(--burgundy-700), var(--burgundy-900));
    color: var(--white);
    position: relative; overflow: hidden;
}
.guide-card::after { content: "✦"; position: absolute; right: -10px; bottom: -40px; font-size: 200px; line-height: 1; color: rgba(201, 164, 92, .12); }
.guide-card h3 { font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: 1.12; margin-bottom: 14px; }
.guide-card p:not(.eyebrow) { color: rgba(255, 255, 255, .75); font-size: 15px; margin-bottom: 26px; }
.guide-form { margin-top: auto; display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.guide-form input {
    min-height: 48px; padding: 0 18px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: var(--white);
}
.guide-form input::placeholder { color: rgba(255, 255, 255, .6); }
.guide-form input:focus { outline: none; border-color: var(--gold); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { background: var(--paper); text-align: center; overflow: hidden; }
.testimonials-head .eyebrow { justify-content: center; }
.testimonials .section-title { color: var(--royal-900); margin-bottom: 20px; }
.permission-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 999px; margin-bottom: 56px;
    background: var(--white); border: 1px solid var(--sand);
    font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.permission-badge .icon { color: #1B7F55; }

.slider { position: relative; }
.slider-quote-mark { display: block; font-family: var(--font-display); font-size: 160px; line-height: .5; height: 70px; color: var(--gold); }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide blockquote { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 42px); line-height: 1.32; color: var(--royal-900); margin-bottom: 40px; }
.slide figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--royal-800); color: var(--gold-light); font-family: var(--font-display); font-size: 24px; }
.slide strong { display: block; font-size: 16px; }
.slide small { font-size: 13.5px; color: var(--ink-soft); }
.slider-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 48px; }
.slider-btn { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--royal-700); color: var(--royal-800); transition: background-color .4s, color .4s; }
.slider-btn:hover { background: var(--royal-800); color: var(--white); }
.slider-dots { display: flex; gap: 10px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 999px; background: var(--sand); transition: width .5s var(--ease), background-color .4s; }
.slider-dots button[aria-selected="true"] { width: 34px; background: var(--burgundy-700); }

/* ==========================================================================
   Book a consultation
   ========================================================================== */
.book { position: relative; overflow: hidden; isolation: isolate; color: var(--white); background: var(--royal-900); }
.book-bg { position: absolute; inset: 0; z-index: -2; }
.book-bg img { width: 100%; height: 125%; object-fit: cover; position: relative; top: -12%; opacity: .5; }
.book::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(10, 19, 51, .97) 25%, rgba(20, 38, 96, .88) 60%, rgba(90, 18, 40, .82)); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.book-copy .section-title { margin-bottom: 26px; }
.book-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, .75); max-width: 480px; margin-bottom: 30px; }
.expect-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.expect-list .icon { color: var(--gold); width: 20px; height: 20px; }

.book-card { background: var(--ivory); color: var(--ink); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-lg); }
.book-form { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { position: relative; display: flex; flex-direction: column; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 58px; padding: 24px 16px 8px;
    border-radius: var(--radius-sm); border: 1px solid var(--sand); background: var(--white);
    transition: border-color .3s, box-shadow .3s;
    appearance: none;
}
.field textarea { resize: vertical; min-height: 104px; }
.field label {
    position: absolute; left: 17px; top: 18px;
    font-size: 15px; color: var(--ink-soft); pointer-events: none;
    transform-origin: 0 0; transition: transform .3s var(--ease), color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--royal-600); box-shadow: 0 0 0 4px rgba(53, 88, 200, .12); }
.field input:not(:placeholder-shown) + label,
.field input:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field-select label { transform: translateY(-10px) scale(.78); color: var(--royal-700); font-weight: 600; }
.field-select::after { content: ""; position: absolute; right: 18px; top: 26px; width: 8px; height: 8px; border-right: 1.5px solid var(--ink-soft); border-bottom: 1.5px solid var(--ink-soft); transform: rotate(45deg); pointer-events: none; }
.field-error { min-height: 20px; font-size: 12.5px; color: var(--burgundy-600); padding: 3px 4px 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--burgundy-600); }
.form-error { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--burgundy-100); color: var(--burgundy-800); font-size: 14px; margin-bottom: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); line-height: 1.5; cursor: pointer; margin-top: 4px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--burgundy-700); flex: none; }
.book-form .btn { margin-top: 10px; }
.book-form .btn[disabled] { opacity: .7; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: 30px 10px; }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: var(--royal-100); color: var(--royal-700); }
.success-icon .icon { width: 32px; height: 32px; }
.form-success h3 { font-family: var(--font-display); font-size: 38px; font-weight: 500; color: var(--royal-900); margin-bottom: 10px; }
.form-success p { color: var(--ink-soft); margin-bottom: 26px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--royal-950); color: rgba(255, 255, 255, .72); padding-top: var(--section-y); }
.footer-cta { padding-bottom: clamp(56px, 7vw, 90px); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-cta-title { font-size: clamp(44px, 6.6vw, 96px); color: var(--white); margin-bottom: 44px; max-width: 900px; }
.footer-cta-title em { color: var(--gold-light); }
.footer-contact-cards { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .1); color: var(--white); font-weight: 600; transition: border-color .4s, background-color .4s; }
a.contact-card:hover { border-color: var(--gold); background: rgba(255, 255, 255, .04); }
.contact-card .icon { width: 24px; height: 24px; color: var(--gold); }
.contact-card small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.contact-card span { overflow-wrap: break-word; min-width: 0; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 40px; padding-block: clamp(56px, 7vw, 80px); }
.footer-brand .brand { color: var(--white); display: inline-block; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; font-size: 15px; margin-bottom: 24px; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .15); transition: background-color .4s, color .4s, border-color .4s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--royal-950); }
.footer-heading { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { font-size: 15px; transition: color .3s; }
.footer-links a:hover { color: var(--white); }
.footer-text { font-size: 15px; margin-bottom: 20px; }
.footer-verse { font-family: var(--font-display); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--white); }
.footer-verse span { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; padding-block: 28px 36px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.footer-disclaimer { flex: 1 1 380px; opacity: .6; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Floating UI ---------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 80;
    display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
    background: var(--burgundy-700); color: var(--white); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .4s, transform .4s var(--ease), visibility .4s, background-color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--royal-800); }
.toast {
    position: fixed; left: 50%; bottom: 26px; z-index: 300;
    max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 999px;
    background: var(--royal-900); color: var(--white); font-size: 14.5px; box-shadow: var(--shadow-lg);
    transform: translate(-50%, calc(100% + 40px)); visibility: hidden;
    transition: transform .6s var(--ease), visibility 0s .6s;
}
.toast.is-visible { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }

/* ---------- Motion pre-states (removed if JS/GSAP fail) ---------- */
.js-motion [data-hero-reveal],
.js-motion [data-hero-float],
.js-motion [data-reveal] { visibility: hidden; }
.js-motion [data-hero-line] { transform: translateY(110%); }
.js-motion [data-hero-arch] { clip-path: inset(100% 0 0 0 round 999px 999px var(--radius) var(--radius)); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
    .primary-nav, .header-cta { display: none; }
    .menu-toggle { display: block; margin-left: auto; }
    .edu-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .hero-grid, .about-grid, .book-grid { grid-template-columns: 1fr; }
    .hero { padding-bottom: 120px; }
    .hero-visual { justify-self: center; width: min(100%, 420px); margin-top: 20px; }
    .float-score { left: -16px; }
    .float-badge { right: -10px; }
    .about-visual { margin-inline: auto; width: min(100%, 420px); }
    .about-seal { right: -12px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .section-head { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-contact-cards { grid-template-columns: 1fr; }

    /* How it works stacks vertically */
    .how { padding-block: var(--section-y); }
    .how-progress { display: none; }
    .how-track { flex-direction: column; align-items: stretch; width: auto; height: auto; min-height: 0; padding-inline: var(--gutter); gap: 18px; }
    .how-intro { width: auto; padding: 0 0 20px; }
    .step-card, .step-card:nth-of-type(even) { width: 100%; height: auto; transform: none; gap: 40px; }
    .step-num { font-size: 84px; }
    .how-end { width: auto; padding: 24px 0 0; }
    .how-hint { display: none; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    :root { --header-h: 72px; }
    .logo-mark { height: 42px; }
    .logo-name { font-size: 14px; letter-spacing: .24em; margin-right: -.24em; }
    .logo-sub { font-size: 8px; letter-spacing: .5em; margin-right: -.5em; }
    .hero-actions .btn { width: 100%; }
    .hero-trust { flex-direction: column; gap: 10px; }
    .float-score { width: 180px; padding: 14px 16px 10px; bottom: 30px; left: -6px; }
    .float-value { font-size: 38px; }
    .float-badge { top: 24px; right: -6px; }
    .arch-outline { inset: -10px 10px 10px -10px; }
    .about-frame { inset: 16px -12px -16px 16px; }
    .about-seal { width: 104px; height: 104px; bottom: 30px; right: -6px; }
    .about-seal text { font-size: 12.6px; }
    .stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
    .stats dt { font-size: 12px; }
    .service-grid, .edu-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .slider-controls { gap: 14px; }
    .to-top { right: 16px; bottom: 16px; }
}

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