/* how-it-works.css - "How It Works" page (pages/PageHowItWorks.php) */

/* ── Unified Section Header Component ───────────────────────────────── */
.section-header-wrap {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary, #1e3a2f);
    background: linear-gradient(135deg, rgba(30, 58, 47, 0.08) 0%, rgba(201, 168, 76, 0.16) 100%);
    border: 1px solid rgba(201, 168, 76, 0.35);
    padding: 4px 14px;
    border-radius: var(--radius-pill, 9999px);
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(30, 58, 47, 0.04);
}

.section-header-wrap .contact-section-heading {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--color-heading, #111827);
    margin: 0 0 6px;
    line-height: 1.25;
    position: relative;
    text-align: center;
}

/* Centered gold accent underline */
.section-header-wrap .contact-section-heading::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent, #c9a84c) 0%, var(--color-accent-light, #e6c97a) 100%);
    border-radius: 2px;
    margin: 8px auto 0;
}

/* Subheading under heading */
.section-subheading,
.hiw-process-sub {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--color-text-muted, #4b5563);
    margin: 10px auto 0;
    max-width: 600px;
    text-align: center;
    display: block;
}

@media (max-width: 768px) {
    .section-header-wrap { margin-bottom: 16px; }
    .section-header-wrap .contact-section-heading { font-size: 1.40rem; }
    .section-subheading,
    .hiw-process-sub { font-size: 0.88rem; margin: 8px auto 0; }
}

/* ── Standalone Buyer Commitment Notice Callout ──────────────────────── */
.hiw-commitment-notice-section {
    position: relative;
    z-index: 3;
    padding: 18px 0 10px;
    background: transparent;
}

.hiw-commitment-notice-section .container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px;
}

.hiw-process-commitment-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 242, 0.94) 100%);
    border: 1.5px solid rgba(201, 168, 76, 0.45);
    border-radius: 16px;
    padding: 16px 22px;
    box-shadow: 0 10px 28px -6px rgba(30, 58, 47, 0.10), 0 0 0 1px rgba(255, 255, 255, 0.9) inset, 0 4px 16px rgba(201, 168, 76, 0.12);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.hiw-process-commitment-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 168, 76, 0.75);
    box-shadow: 0 14px 34px -6px rgba(30, 58, 47, 0.16), 0 0 0 1px rgba(255, 255, 255, 1) inset, 0 8px 24px rgba(201, 168, 76, 0.22);
}

/* Ambient animated background glows & SVG glyph watermarks */
.hiw-pcb-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hiw-pcb-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hiw-pcb-orb--1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -40px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.28) 0%, rgba(201, 168, 76, 0) 70%);
    filter: blur(18px);
    animation: hiwPcbPulse 4s ease-in-out infinite alternate;
}

.hiw-pcb-orb--2 {
    width: 150px;
    height: 150px;
    bottom: -60px;
    left: 8%;
    background: radial-gradient(circle, rgba(30, 58, 47, 0.16) 0%, rgba(30, 58, 47, 0) 70%);
    filter: blur(14px);
    animation: hiwPcbPulse 5s ease-in-out infinite alternate-reverse;
}

/* Shimmer light sweep sheen */
.hiw-pcb-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, rgba(201, 168, 76, 0.18) 75%, transparent 100%);
    transform: skewX(-25deg);
    animation: hiwPcbShimmer 7s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Watermark Animated SVG Glyphs */
.hiw-pcb-glyph {
    position: absolute;
    pointer-events: none;
}

.hiw-pcb-glyph--target {
    right: -12px;
    top: -12px;
    width: 105px;
    height: 105px;
    color: rgba(201, 168, 76, 0.24);
    animation: hiwPcbRotate 28s linear infinite;
}

.hiw-pcb-glyph--key {
    left: 10px;
    bottom: -16px;
    width: 70px;
    height: 70px;
    color: rgba(30, 58, 47, 0.12);
    animation: hiwPcbFloat 4.5s ease-in-out infinite;
}

/* Content Layout */
.hiw-pcb-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* High-Contrast Luxury Pill Badge */
.hiw-pcb-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #132b20 0%, #1e3a2f 60%, #294e40 100%);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 7px 15px;
    border-radius: var(--radius-pill, 9999px);
    border: 1px solid rgba(201, 168, 76, 0.65);
    box-shadow: 0 4px 14px rgba(19, 43, 32, 0.28), 0 0 12px rgba(201, 168, 76, 0.22);
    white-space: nowrap;
    flex-shrink: 0;
}

.hiw-pcb-badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #e6c97a;
    border-radius: 50%;
    box-shadow: 0 0 8px #e6c97a;
    animation: hiwDotPulse 1.8s infinite ease-in-out;
}

.hiw-pcb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e6c97a;
    font-size: 0.88rem;
}

.hiw-pcb-badge-text {
    font-weight: 700;
    line-height: 1;
}

/* Text Styling */
.hiw-pcb-text-wrap {
    flex: 1;
    min-width: 0;
}

.hiw-pcb-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #1e293b;
    margin: 0;
    font-weight: 450;
}

/* Highlight for <b> / <strong> tags in commitment text */
.hiw-pcb-text b,
.hiw-pcb-text strong {
    color: #0f172a;
    font-weight: 750;
    background: linear-gradient(180deg, transparent 60%, rgba(201, 168, 76, 0.32) 60%);
    padding: 0 4px;
    border-radius: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Animations */
@keyframes hiwPcbRotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes hiwPcbFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-5px) rotate(4deg); }
}

@keyframes hiwPcbPulse {
    0%   { transform: scale(0.92); opacity: 0.65; }
    100% { transform: scale(1.18); opacity: 1; }
}

@keyframes hiwPcbShimmer {
    0%       { left: -100%; opacity: 0; }
    15%      { opacity: 1; }
    40%, 100%{ left: 160%; opacity: 0; }
}

@keyframes hiwDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%      { transform: scale(1.4); opacity: 1; box-shadow: 0 0 12px #e6c97a; }
}

@media (max-width: 768px) {
    .hiw-commitment-notice-section {
        padding: 14px 0 6px;
    }
    .hiw-process-commitment-banner {
        padding: 14px 16px;
        border-radius: 14px;
    }
    .hiw-pcb-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .hiw-pcb-text {
        font-size: 0.88rem;
        line-height: 1.5;
    }
    .hiw-pcb-glyph--target {
        width: 80px;
        height: 80px;
        right: -10px;
        top: -10px;
    }
    .hiw-pcb-glyph--key {
        width: 55px;
        height: 55px;
        left: auto;
        right: 40px;
        bottom: -12px;
    }
}

/* ── Process timeline section background & animations ──────────────── */
.hiw-process-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfaf8 0%, #f7f6f2 50%, #fbfaf8 100%);
    padding: 24px 0 26px;
}

.hiw-process-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    clip-path: inset(0 0 0 0); /* Scopes fixed viewport background strictly to process section */
}

/* ── Fixed Looping Video/GIF Background Track ─────────────────── */
.hiw-process-video-track {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-process-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: saturate(1.18) brightness(1.03);
    transform: scale(1.02);
}

/* Fallback for browsers without clip-path scoping */
@supports not (clip-path: inset(0 0 0 0)) {
    .hiw-process-video-track {
        position: absolute;
        height: 100%;
    }
}

/* Luxury Frosted Ambient Base Overlay */
.hiw-process-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(251, 250, 248, 0.75) 0%, rgba(247, 246, 242, 0.65) 50%, rgba(251, 250, 248, 0.78) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

/* Subtle dot-matrix grid pattern with low opacity */
.hiw-pbg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(30, 58, 47, 0.08) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 100%);
    animation: hiw-grid-breathe 14s ease-in-out infinite alternate;
    z-index: 2;
}

@keyframes hiw-grid-breathe {
    0%   { opacity: 0.20; transform: scale(1); }
    100% { opacity: 0.45; transform: scale(1.02); }
}

/* Floating animated ambient light orbs */
.hiw-pbg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    will-change: transform, opacity;
    z-index: 2;
}

.hiw-pbg-orb--1 {
    width: 480px;
    height: 480px;
    top: -80px;
    left: -120px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, rgba(201, 168, 76, 0.03) 60%, transparent 80%);
    animation: hiw-orb-float-left 18s ease-in-out infinite alternate;
}

.hiw-pbg-orb--2 {
    width: 520px;
    height: 520px;
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(30, 58, 47, 0.09) 0%, rgba(30, 58, 47, 0.02) 60%, transparent 80%);
    animation: hiw-orb-float-right 22s ease-in-out infinite alternate;
}

@keyframes hiw-orb-float-left {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50%  { transform: translate(60px, 50px) scale(1.15); opacity: 0.9; }
    100% { transform: translate(-30px, 80px) scale(0.95); opacity: 0.7; }
}

@keyframes hiw-orb-float-right {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50%  { transform: translate(-70px, -40px) scale(1.2); opacity: 0.85; }
    100% { transform: translate(40px, -60px) scale(0.9); opacity: 0.65; }
}

/* Container sits above the decorative background */
.hiw-process-section > .container {
    position: relative;
    z-index: 1;
}

.hiw-process-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 14px;
}

.hiw-process-header .contact-section-heading {
    margin-bottom: 4px;
}

.hiw-process-sub {
    color: var(--color-text-muted, #5a6270);
    font-size: 0.93rem;
    margin: 10px auto 0;
    text-align: center;
}

/* ── Standalone Commitment Notice Section (Preceding Process) ───────── */
.hiw-commitment-notice-section {
    padding: 20px 0 18px;
    background: linear-gradient(180deg, #f9f8f5 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.22);
    position: relative;
    z-index: 3;
}

.hiw-commitment-notice-section .hiw-process-commitment-banner {
    margin: 0 auto;
}

.hiw-process-commitment-banner {
    position: relative;
    overflow: hidden;
    max-width: 780px;
    margin: 0 auto;
    padding: 12px 22px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(254, 251, 240, 0.85) 50%, rgba(255, 255, 255, 0.94) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(201, 168, 76, 0.55);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.12), 0 2px 6px rgba(30, 58, 47, 0.05), inset 0 1px 2px rgba(255, 255, 255, 1);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.hiw-process-commitment-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 168, 76, 0.75);
    box-shadow: 0 12px 32px rgba(201, 168, 76, 0.18), 0 4px 10px rgba(30, 58, 47, 0.08);
}

/* Ambient animated background glyphs & orbs */
.hiw-pcb-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hiw-pcb-orb {
    position: absolute;
    width: 260px;
    height: 120px;
    top: -20px;
    right: -40px;
    background: radial-gradient(ellipse, rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0.04) 60%, transparent 80%);
    filter: blur(20px);
    animation: hiw-pcb-orb-glow 6s ease-in-out infinite alternate;
}

@keyframes hiw-pcb-orb-glow {
    0%   { opacity: 0.5; transform: scale(0.9) translate(0, 0); }
    100% { opacity: 0.9; transform: scale(1.1) translate(-20px, 10px); }
}

.hiw-pcb-glyph {
    position: absolute;
    color: var(--color-primary, #1e3a2f);
    opacity: 0.06;
}

.hiw-pcb-glyph--target {
    width: 84px;
    height: 84px;
    top: -12px;
    left: 10px;
    animation: hiw-pcb-target-rotate 28s linear infinite;
}

.hiw-pcb-glyph--key {
    width: 70px;
    height: 70px;
    bottom: -15px;
    right: 24px;
    color: var(--color-accent, #c9a84c);
    opacity: 0.09;
    animation: hiw-pcb-key-drift 16s ease-in-out infinite alternate;
}

@keyframes hiw-pcb-target-rotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes hiw-pcb-key-drift {
    0%   { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-8px, -6px) rotate(4deg); }
}

/* Light sweep shimmer on banner */
.hiw-process-commitment-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), rgba(201, 168, 76, 0.2), transparent);
    transform: skewX(-25deg);
    animation: hiw-pcb-sheen 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hiw-pcb-sheen {
    0%, 75% { left: -120%; }
    100%    { left: 220%; }
}

.hiw-pcb-content {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.hiw-pcb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--color-primary, #1e3a2f) 0%, #2b5540 100%);
    color: var(--color-white, #fff);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-pill, 9999px);
    box-shadow: 0 3px 8px rgba(30, 58, 47, 0.25);
    border: 1px solid rgba(201, 168, 76, 0.65);
    flex-shrink: 0;
}

.hiw-pcb-icon {
    font-size: 0.74rem;
    color: var(--color-accent-light, #e6c97a);
    display: inline-flex;
}

.hiw-pcb-text {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--color-dark, #1f2937);
    margin: 0;
    font-weight: 500;
}

.hiw-pcb-text b,
.hiw-pcb-text strong {
    color: var(--color-primary, #1e3a2f);
    font-weight: 700;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.20) 0%, rgba(201, 168, 76, 0.10) 100%);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 76, 0.35);
}

@media (max-width: 768px) {
    .hiw-commitment-notice-section {
        padding: 14px 0 12px;
    }

    .hiw-process-commitment-banner {
        padding: 10px 14px;
        border-radius: 14px;
    }

    .hiw-pcb-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hiw-pcb-badge {
        font-size: 0.62rem;
        padding: 3px 9px;
    }

    .hiw-pcb-text {
        font-size: 0.78rem;
        line-height: 1.38;
    }
}

.hiw-timeline {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Centre connecting line (desktop) */
.hiw-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: repeating-linear-gradient(
        to bottom,
        var(--color-accent, #c9a84c) 0,
        var(--color-accent, #c9a84c) 8px,
        transparent 8px,
        transparent 16px
    );
    z-index: 0;
}

/* Dynamic glowing laser stream flowing down the timeline */
.hiw-timeline::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 140px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        transparent 0%,
        var(--color-accent-light, #e6c97a) 50%,
        var(--color-accent, #c9a84c) 85%,
        transparent 100%
    );
    border-radius: 9999px;
    box-shadow: 0 0 12px 2px rgba(201, 168, 76, 0.65);
    animation: hiw-beam-stream 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hiw-beam-stream {
    0%   { top: -80px; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { top: calc(100% + 80px); opacity: 0; }
}

.hiw-step {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

/* Pin both children to row 1 explicitly */
.hiw-step-node,
.hiw-step-card {
    grid-row: 1;
}

/* Alternate the card left/right of the centre line - left-aligned text on both */
.hiw-step--left .hiw-step-card  { grid-column: 1; text-align: left; }
.hiw-step--left .hiw-step-node  { grid-column: 2; }
.hiw-step--right .hiw-step-card { grid-column: 3; text-align: left; }
.hiw-step--right .hiw-step-node { grid-column: 2; }

.hiw-step-node {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary, #1e3a2f) 0%, var(--color-primary-light, #2d5a44) 100%);
    box-shadow: 0 4px 12px rgba(30, 58, 47, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    cursor: default;
}

/* Rotating gold dashed orbit ring around every node */
.hiw-step-node::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px dashed rgba(201, 168, 76, 0.45);
    animation: hiw-orbit-spin 14s linear infinite;
    pointer-events: none;
}

@keyframes hiw-orbit-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Beacon wave pulse on highlighted start step */
.hiw-step-node--highlight::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--color-accent, #c9a84c);
    animation: hiw-beacon-pulse 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    pointer-events: none;
}

@keyframes hiw-beacon-pulse {
    0%   { transform: scale(0.85); opacity: 0.95; }
    70%  { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* Ambient node hover glow & scale */
.hiw-step:hover .hiw-step-node,
.hiw-step-node:hover {
    transform: scale(1.10);
    box-shadow: 0 0 0 5px rgba(201, 168, 76, 0.25), 0 0 0 12px rgba(201, 168, 76, 0.10), 0 8px 22px rgba(30, 58, 47, 0.25);
}

.hiw-step-icon {
    font-size: 1.15rem;
    color: var(--color-white, #fff) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
    animation: hiw-icon-continuous 5s ease-in-out infinite;
}

.hiw-step-icon i,
.hiw-step-icon .ah-ico,
.hiw-step-icon [class*="fa-"]::before {
    color: var(--color-white, #fff) !important;
}

/* Continuous 3D Gyro-Float on Step Icons */
@keyframes hiw-icon-continuous {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 2px rgba(230, 201, 122, 0.3));
    }
    25% {
        transform: translateY(-3px) scale(1.06) rotate(4deg);
        filter: drop-shadow(0 0 6px rgba(230, 201, 122, 0.7));
    }
    50% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: drop-shadow(0 0 2px rgba(230, 201, 122, 0.3));
    }
    75% {
        transform: translateY(-2px) scale(1.04) rotate(-4deg);
        filter: drop-shadow(0 0 6px rgba(230, 201, 122, 0.7));
    }
}

/* 3D Spin & Transform on Step Hover */
.hiw-step:hover .hiw-step-icon {
    transform: rotate(360deg) scale(1.20);
    filter: drop-shadow(0 0 10px rgba(230, 201, 122, 0.9));
}

.hiw-step-num {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--color-accent, #c9a84c);
    color: var(--color-dark, #1a2332);
    font-size: 0.60rem;
    font-weight: 800;
    line-height: 1;
    padding: 2px 5px;
    border-radius: var(--radius-pill, 9999px);
    border: 2px solid var(--color-bg, #f9fafb);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
    z-index: 2;
}

.hiw-step:hover .hiw-step-num {
    transform: scale(1.12) translate(1px, 1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.hiw-step-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.54) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(30, 58, 47, 0.07), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(201, 168, 76, 0.22);
    padding: 16px 18px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.hiw-step-card--highlight {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88) 0%, rgba(254, 251, 240, 0.70) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(201, 168, 76, 0.70);
    box-shadow: 0 10px 36px 0 rgba(201, 168, 76, 0.18), inset 0 1px 2px 0 rgba(255, 255, 255, 1), 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.hiw-step-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary, #1e3a2f);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.22) 0%, rgba(201, 168, 76, 0.10) 100%);
    border: 1px solid rgba(201, 168, 76, 0.45);
    border-radius: var(--radius-pill, 9999px);
    padding: 3px 9px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(201, 168, 76, 0.15);
}

.hiw-step-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Luxury angled light sweep shimmer on card hover */
.hiw-step-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), rgba(201, 168, 76, 0.25), transparent);
    transform: skewX(-25deg);
    transition: left 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 1;
}

.hiw-step-card:hover::before {
    left: 220%;
}

.hiw-step-card:hover {
    transform: translateY(-4px) scale(1.008);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.74) 100%);
    box-shadow: 0 16px 40px rgba(30, 58, 47, 0.14), inset 0 1px 2px rgba(255, 255, 255, 1), 0 0 0 1.5px rgba(201, 168, 76, 0.60);
    border-color: rgba(201, 168, 76, 0.75);
}

.hiw-step-card h3 {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-heading, #111827);
    margin: 0 0 4px;
    line-height: 1.25;
}

.hiw-step-card p {
    font-size: 0.85rem;
    line-height: 1.48;
    color: var(--color-text-muted, #4b5563);
    margin: 0;
}

/* Expandable mini-cards list (4a, 4b, 4c, 4d stacked rows) inside step card */
.hiw-step-mini-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(201, 168, 76, 0.35);
    text-align: left;
    width: 100%;
}

.hiw-step-mini-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84) 0%, rgba(253, 251, 247, 0.62) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(30, 58, 47, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    animation: hiw-minicard-pop 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: var(--mc-delay, 0ms);
}

@keyframes hiw-minicard-pop {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hiw-step-mini-card:hover {
    transform: translateX(3px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 251, 247, 0.85) 100%);
    border-color: rgba(201, 168, 76, 0.70);
    box-shadow: 0 6px 18px rgba(30, 58, 47, 0.09), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.hiw-step-mini-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(30, 58, 47, 0.08) 0%, rgba(201, 168, 76, 0.18) 100%);
    color: var(--color-primary, #1e3a2f);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    border: 1px solid rgba(201, 168, 76, 0.35);
    flex-shrink: 0;
}

.hiw-step-mini-content {
    min-width: 0;
    flex: 1;
}

.hiw-step-mini-title {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--color-heading, #111827);
    margin: 0 0 2px;
    line-height: 1.25;
}

.hiw-step-mini-text {
    font-size: 0.76rem;
    line-height: 1.40;
    color: var(--color-text-muted, #4b5563);
    margin: 0;
}

/* Fallback simple points */
.hiw-step-points {
    list-style: none;
    margin: 10px 0 0;
    padding: 10px 0 0;
    border-top: 1px dashed var(--color-border, #e5e0d8);
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.hiw-step-points li {
    position: relative;
    padding-left: 22px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--color-text, #374151);
}

.hiw-step-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    font-weight: 800;
    font-size: 0.70rem;
    color: var(--color-primary, #1e3a2f);
    background: var(--color-tag-bg, #e8f0ec);
    border: 1px solid rgba(30, 58, 47, 0.15);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Action buttons row */
.hiw-step-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.hiw-step-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.80rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-sm, 8px);
    text-decoration: none;
    line-height: 1.25;
}

/* Expand Button */
.hiw-step-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--color-tag-bg, #e8f0ec);
    border: 1px solid rgba(30, 58, 47, 0.14);
    border-radius: var(--radius-pill, 9999px);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--color-primary, #1e3a2f);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hiw-step-expand-btn:hover {
    background: var(--color-primary, #1e3a2f);
    color: var(--color-white, #fff);
    border-color: var(--color-primary, #1e3a2f);
    box-shadow: 0 3px 10px rgba(30, 58, 47, 0.18);
}

.hiw-step-expand-icon {
    display: inline-flex;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 0.64rem;
}

.hiw-step-expand-btn[aria-expanded="true"] .hiw-step-expand-icon {
    transform: rotate(180deg);
}

.hiw-step-details {
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.hiw-step-details--expanded {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    margin-top: 10px;
}

/* A step card becomes a real link when its step has a `url` */
.hiw-step-card--link {
    display: block;
    position: relative;
    text-decoration: none;
}
.hiw-step-card--link:hover {
    border-color: var(--color-accent, #c9a84c);
}
.hiw-step-card-cta {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-accent, #c9a84c);
    transition: transform var(--transition, 0.2s ease);
}
.hiw-step-card--link:hover .hiw-step-card-cta {
    transform: translateX(4px);
}

/* Scroll-reveal support */
.adn-reveal .hiw-step {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.adn-reveal .hiw-step--left  { transform: translateX(-24px); }
.adn-reveal .hiw-step--right { transform: translateX(24px); }
.adn-reveal .hiw-step.adn-in {
    opacity: 1;
    transform: translateX(0);
}

/* ── Mobile: ultra-compact single column, maximized card width ────────── */
@media (max-width: 768px) {
    .hiw-process-section { 
        padding: 16px 0 20px; 
    }

    .hiw-process-commitment-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        border-radius: 12px;
        padding: 8px 12px;
        margin-bottom: 14px;
    }

    .hiw-pcb-badge {
        font-size: 0.62rem;
        padding: 2px 8px;
    }

    .hiw-pcb-text {
        font-size: 0.76rem;
        line-height: 1.35;
    }

    .hiw-timeline {
        gap: 9px;
    }

    .hiw-timeline::before {
        left: 17px;
        transform: none;
    }

    .hiw-timeline::after {
        left: 17px;
        transform: none;
        width: 2px;
        height: 100px;
    }

    .hiw-step,
    .hiw-step--left,
    .hiw-step--right {
        grid-template-columns: 36px 1fr;
        gap: 10px;
    }

    .hiw-step--left .hiw-step-card,
    .hiw-step--right .hiw-step-card {
        grid-column: 2;
        text-align: left;
    }
    .hiw-step--left .hiw-step-node,
    .hiw-step--right .hiw-step-node {
        grid-column: 1;
    }

    /* Compact 36px timeline milestone node */
    .hiw-step-node { 
        width: 36px; 
        height: 36px; 
    }

    .hiw-step-icon { 
        font-size: 0.88rem; 
    }

    .hiw-step-num {
        font-size: 0.52rem;
        padding: 1px 4px;
        bottom: -3px;
        right: -3px;
    }

    /* Space-efficient frosted glass cards */
    .hiw-step-card {
        padding: 10px 13px;
        border-radius: 14px;
    }

    .hiw-step-card h3 {
        font-size: 0.94rem;
        margin-bottom: 2px;
        line-height: 1.22;
    }

    .hiw-step-card p {
        font-size: 0.79rem;
        line-height: 1.38;
    }

    .hiw-step-card-badge {
        font-size: 0.58rem;
        padding: 2px 7px;
        margin-bottom: 5px;
    }

    .hiw-step-actions {
        margin-top: 7px;
        gap: 6px;
    }

    .hiw-step-cta {
        padding: 4px 12px;
        font-size: 0.72rem;
    }

    .hiw-step-expand-btn {
        padding: 3px 9px;
        font-size: 0.68rem;
    }

    /* Compact expandable mini-cards */
    .hiw-step-mini-grid {
        margin-top: 7px;
        padding-top: 7px;
        gap: 5px;
    }

    .hiw-step-mini-card {
        padding: 6px 8px;
        gap: 8px;
        border-radius: 8px;
    }

    .hiw-step-mini-icon {
        width: 24px;
        height: 24px;
        font-size: 0.68rem;
        border-radius: 6px;
    }

    .hiw-step-mini-title {
        font-size: 0.76rem;
        margin-bottom: 1px;
    }

    .hiw-step-mini-text {
        font-size: 0.70rem;
        line-height: 1.28;
    }

    /* Compact points */
    .hiw-step-points {
        margin-top: 7px;
        padding-top: 7px;
        gap: 4px;
    }

    .hiw-step-points li {
        font-size: 0.77rem;
        line-height: 1.34;
        padding-left: 19px;
    }

    .hiw-step-points li::before {
        width: 13px;
        height: 13px;
        font-size: 0.58rem;
        top: 2px;
    }

    .adn-reveal .hiw-step--left,
    .adn-reveal .hiw-step--right {
        transform: translateY(10px);
    }
}

/* ── Your Story - narrative version of the step timeline ───────────────── */
.story-section {
    position: relative;
    overflow: hidden;
    background: var(--color-white, #fff);
    padding: 24px 0 26px;
}

.story-section > .container {
    position: relative;
    z-index: 1;
}

/* Ambient, inert background: house/key/door/roof line-art drifting very
   slowly behind the timeline. Kept extremely subtle (low opacity, thin
   primary-green tint) so it reads as texture, not distraction. */
.story-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.story-bg-shape {
    position: absolute;
    color: var(--color-primary, #1e3a2f);
    opacity: 0.05;
}

.story-bg-shape--house {
    width: 220px;
    height: 220px;
    top: -40px;
    left: -50px;
    animation: story-bg-drift-a 22s ease-in-out infinite;
}
.story-bg-shape--key {
    width: 120px;
    height: 120px;
    top: 55%;
    right: 6%;
    color: var(--color-accent, #c9a84c);
    opacity: 0.07;
    animation: story-bg-drift-b 18s ease-in-out infinite;
}
.story-bg-shape--door {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: 8%;
    animation: story-bg-drift-a 26s ease-in-out infinite reverse;
}
.story-bg-shape--roof {
    width: 180px;
    height: 180px;
    top: 8%;
    right: -40px;
    animation: story-bg-drift-b 20s ease-in-out infinite;
}

@keyframes story-bg-drift-a {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(10px, -14px) rotate(3deg); }
}
@keyframes story-bg-drift-b {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%      { transform: translate(-12px, 12px) rotate(-3deg); }
}

@media (prefers-reduced-motion: reduce) {
    .story-bg-shape { animation: none; }
}

@media (max-width: 900px) {
    .story-bg-shape--house, .story-bg-shape--door, .story-bg-shape--roof { display: none; }
}

/* Node badge: same green gradient circle as the Process timeline: the SVG
   just needs to be sized/coloured to sit inside it. */
.story-visual {
    width: 32px;
    height: 32px;
    color: var(--color-white, #fff);
    overflow: visible;
}

/* 0: question bubble breathes, the "?" fades like a blinking cursor */
.sv-bubble {
    transform-origin: center;
    animation: sv-breathe 3.2s ease-in-out infinite;
}
.sv-mark {
    animation: sv-blink 1.6s steps(1) infinite;
}

/* 1: paper plane glides forward and drifts back, looping */
.sv-plane {
    transform-origin: center;
    animation: sv-fly 2.8s ease-in-out infinite;
}

/* 2: listening waves ripple outward, staggered */
.sv-wave {
    transform-origin: center;
    animation: sv-ripple 2.4s ease-out infinite;
}
.sv-wave-2 { animation-delay: 0.4s; }
.sv-wave-3 { animation-delay: 0.8s; }

/* 3: bulb glows, rays fade in/out around it */
.sv-bulb {
    transform-origin: center;
    animation: sv-glow 2.6s ease-in-out infinite;
}
.sv-rays {
    animation: sv-rays-pulse 2.6s ease-in-out infinite;
}

/* 4: door eases open and closed on its hinge */
.sv-door {
    transform-origin: 58px 50px;
    animation: sv-swing 3.4s ease-in-out infinite;
}

@keyframes sv-breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
@keyframes sv-blink {
    0%, 60%  { opacity: 1; }
    75%, 100% { opacity: 0.25; }
}
@keyframes sv-fly {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(4px, -4px); }
}
@keyframes sv-ripple {
    0%   { transform: scale(0.7); opacity: 0.9; }
    100% { transform: scale(1.15); opacity: 0; }
}
@keyframes sv-glow {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; filter: drop-shadow(0 0 4px currentColor); }
}
@keyframes sv-rays-pulse {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 1; }
}
@keyframes sv-swing {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(-8deg); }
}

@media (prefers-reduced-motion: reduce) {
    .sv-bubble, .sv-mark, .sv-plane, .sv-wave, .sv-bulb, .sv-rays, .sv-door {
        animation: none;
    }
}

.story-lede {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-heading, #111827);
    margin: 0 0 4px;
    line-height: 1.3;
}

.story-cta {
    margin-top: 10px;
}

@media (max-width: 600px) {
    .story-lede { font-size: 0.98rem; }
}

/* ── Icon feature grid ───────────────────────────────────────────────── */
.icon-grid-section {
    background: var(--color-white, #fff);
    border-top: 1px solid var(--color-border, #e5e0d8);
    padding: 24px 0 26px;
}

.icon-grid-section--light {
    background: var(--color-bg, #f9fafb);
    border-top: none;
}

.icon-grid-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 20px;
}

.icon-grid-header .contact-section-heading {
    margin-bottom: 0;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 1080px;
    margin: 0 auto;
}

.icon-grid-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 14px 16px;
    background: var(--color-surface, #f8f5f0);
    border: 1px solid var(--color-border, #e5e0d8);
    border-radius: 12px;
    transition: box-shadow 0.18s, transform 0.15s, border-color 0.18s;
}

.icon-grid-item:hover {
    box-shadow: 0 4px 16px rgba(45, 90, 68, 0.1);
    transform: translateY(-2px);
    border-color: rgba(45, 90, 68, 0.25);
}

.icon-grid-icon {
    font-size: 1.35rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(45, 90, 68, 0.09);
    border-radius: 50%;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.icon-grid-item h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-heading, #1a2332);
    margin-bottom: 6px;
    line-height: 1.25;
}

.icon-grid-item p {
    font-size: 0.78rem;
    color: var(--color-black, #6b7280);
    line-height: 1.48;
    margin: 0;
}

.adn-reveal .icon-grid-item {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.adn-reveal .icon-grid-item.adn-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .icon-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .icon-grid { grid-template-columns: 1fr; }
}

/* ── Stats strip (animated count-up, see assets/js/premium.js) ──────── */
.hiw-stats-section {
    background: var(--color-primary, #1e3a2f);
    padding: 14px 0;
}

.hiw-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 1080px;
    margin: 0 auto;
}

.hiw-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 2px 4px;
    position: relative;
}

/* Vertical divider between stats on desktop */
.hiw-stat:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.hiw-stat-num {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent-light, #e6c97a);
}

.hiw-stat-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-white, #fff);
    margin-top: 2px;
}

.hiw-stat-sub {
    font-size: 0.70rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

.adn-reveal .hiw-stat {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.adn-reveal .hiw-stat.adn-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .hiw-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px 8px; }
    .hiw-stat::before { display: none; }
}

/* ── Post-Buying & Moving Support (Reusable 4-Card Section) ─────────── */
.hiw-pbs-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f6f2 0%, #fbfaf8 50%, #f7f6f2 100%);
    padding: 24px 0 28px;
    border-top: 1px solid var(--color-border, #e5e0d8);
}

.hiw-pbs-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hiw-pbs-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(24px);
}

.hiw-pbs-orb--1 {
    width: 260px;
    height: 260px;
    top: -60px;
    right: 5%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.14) 0%, rgba(201, 168, 76, 0) 70%);
    animation: hiwCmpOrbPulseGold 8s ease-in-out infinite alternate;
}

.hiw-pbs-orb--2 {
    width: 280px;
    height: 280px;
    bottom: -80px;
    left: 8%;
    background: radial-gradient(circle, rgba(30, 58, 47, 0.10) 0%, rgba(30, 58, 47, 0) 70%);
    animation: hiwCmpOrbPulseEmerald 9s ease-in-out infinite alternate;
}

.hiw-pbs-glyph {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hiw-pbs-glyph--truck {
    right: 2%;
    bottom: -10px;
    width: 130px;
    height: 130px;
    color: rgba(30, 58, 47, 0.10);
    animation: hiwCmpShieldFloat 6s ease-in-out infinite;
}

.hiw-pbs-glyph--home {
    left: 2%;
    top: -15px;
    width: 120px;
    height: 120px;
    color: rgba(201, 168, 76, 0.12);
    animation: hiwCmpShieldFloat 7s ease-in-out infinite 1s;
}

.hiw-pbs-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}

.hiw-pbs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hiw-pbs-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 250, 245, 0.94) 100%);
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 14px;
    padding: 16px 16px 18px;
    box-shadow: 0 4px 16px rgba(30, 58, 47, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
}

.hiw-pbs-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 168, 76, 0.7);
    box-shadow: 0 10px 26px -4px rgba(30, 58, 47, 0.12), 0 0 16px rgba(201, 168, 76, 0.16);
}

.hiw-pbs-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hiw-pbs-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.hiw-pbs-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #132b20 0%, #1e3a2f 100%);
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: #e6c97a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    box-shadow: 0 3px 10px rgba(19, 43, 32, 0.22);
    flex-shrink: 0;
}

.hiw-pbs-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e3a2f;
    background: rgba(201, 168, 76, 0.18);
    border: 1px solid rgba(201, 168, 76, 0.45);
    padding: 3px 9px;
    border-radius: var(--radius-pill, 9999px);
    white-space: nowrap;
}

.hiw-pbs-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.3;
}

.hiw-pbs-text {
    font-size: 0.85rem;
    line-height: 1.48;
    color: #4b5563;
    margin: 0;
}

@media (max-width: 960px) {
    .hiw-pbs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 540px) {
    .hiw-pbs-grid {
        grid-template-columns: 1fr;
    }
    .hiw-pbs-section {
        padding: 20px 0 22px;
    }
    .hiw-pbs-card {
        padding: 14px 14px 16px;
    }
}

/* ── Going Solo vs. Other Services vs. With ADVAITH HOMES (3-Card Rounded Comparison) ────── */
.hiw-compare-section {
    background: var(--color-bg, #f9fafb);
    padding: 22px 0 24px;
    border-top: 1px solid var(--color-border, #e5e0d8);
    position: relative;
    overflow: hidden;
}

/* ── Ambient Animated Backdrop Layer ───────────────────────────────── */
.hiw-compare-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Glowing Multi-point Radiant Orbs */
.hiw-cmp-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(28px);
}

.hiw-cmp-orb--gold {
    width: 380px;
    height: 380px;
    top: -100px;
    right: 15%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0) 70%);
    animation: hiwCmpOrbPulseGold 8s ease-in-out infinite alternate;
}

.hiw-cmp-orb--emerald {
    width: 420px;
    height: 420px;
    bottom: -120px;
    left: 10%;
    background: radial-gradient(circle, rgba(30, 58, 47, 0.14) 0%, rgba(30, 58, 47, 0) 70%);
    animation: hiwCmpOrbPulseEmerald 10s ease-in-out infinite alternate;
}

.hiw-cmp-orb--pearl {
    width: 300px;
    height: 300px;
    top: 30%;
    left: 45%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(201, 168, 76, 0.08) 50%, transparent 70%);
    animation: hiwCmpOrbFloatPearl 12s ease-in-out infinite alternate;
}

/* Diagonal Ambient Light Sweep */
.hiw-cmp-light-sweep {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 45%, rgba(201, 168, 76, 0.15) 60%, transparent 100%);
    transform: skewX(-30deg);
    animation: hiwCmpLightSweep 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Watermark Animated SVG Glyphs */
.hiw-cmp-svg-glyph {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hiw-cmp-svg-glyph--ring {
    top: -30px;
    left: 2%;
    width: 180px;
    height: 180px;
    color: rgba(201, 168, 76, 0.28);
    animation: hiwCmpRingSpin 40s linear infinite;
}

.hiw-cmp-svg-glyph--shield {
    bottom: 10px;
    right: 3%;
    width: 150px;
    height: 150px;
    color: rgba(30, 58, 47, 0.20);
    animation: hiwCmpShieldFloat 6s ease-in-out infinite;
}

/* Subtle Dynamic Flow Waves at the base */
.hiw-cmp-svg-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 140px;
    pointer-events: none;
    z-index: 0;
}

.hiw-cmp-wave-1 {
    animation: hiwCmpWaveDrift1 14s ease-in-out infinite alternate;
}

.hiw-cmp-wave-2 {
    animation: hiwCmpWaveDrift2 18s ease-in-out infinite alternate;
}

/* Star Sparkle Particles */
.hiw-cmp-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #c9a84c;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(201, 168, 76, 0.8);
    pointer-events: none;
}

.hiw-cmp-sparkle--1 {
    top: 25%;
    left: 22%;
    animation: hiwCmpSparkle 4s ease-in-out infinite;
}

.hiw-cmp-sparkle--2 {
    top: 40%;
    right: 28%;
    animation: hiwCmpSparkle 5s ease-in-out infinite 1.5s;
}

.hiw-cmp-sparkle--3 {
    bottom: 25%;
    left: 50%;
    animation: hiwCmpSparkle 4.5s ease-in-out infinite 0.8s;
}

/* Keyframes */
@keyframes hiwCmpOrbPulseGold {
    0%   { transform: translate(0, 0) scale(0.95); opacity: 0.6; }
    100% { transform: translate(40px, 30px) scale(1.15); opacity: 1; }
}

@keyframes hiwCmpOrbPulseEmerald {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(-30px, -25px) scale(1.2); opacity: 0.9; }
}

@keyframes hiwCmpOrbFloatPearl {
    0%   { transform: translate(0, 0) scale(0.9); opacity: 0.4; }
    50%  { transform: translate(30px, -20px) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-20px, 20px) scale(0.95); opacity: 0.5; }
}

@keyframes hiwCmpRingSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes hiwCmpShieldFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-8px) rotate(3deg); }
}

@keyframes hiwCmpWaveDrift1 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-30px); }
}

@keyframes hiwCmpWaveDrift2 {
    0%   { transform: translateX(0); }
    100% { transform: translateX(35px); }
}

@keyframes hiwCmpLightSweep {
    0%       { left: -120%; opacity: 0; }
    15%      { opacity: 1; }
    35%, 100%{ left: 160%; opacity: 0; }
}

@keyframes hiwCmpSparkle {
    0%, 100% { transform: scale(0.6); opacity: 0.2; }
    50%      { transform: scale(1.6); opacity: 1; box-shadow: 0 0 14px 4px rgba(201, 168, 76, 0.9); }
}

.hiw-compare-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 14px;
    position: relative;
    z-index: 1;
}

.hiw-compare-grid {
    display: grid;
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hiw-compare-grid--two   { grid-template-columns: 1fr 1fr; }
.hiw-compare-grid--three { grid-template-columns: repeat(3, 1fr); }

.hiw-compare-col {
    position: relative;
    border-radius: 18px;
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.38s ease, border-color 0.35s ease, background 0.35s ease;
}

/* Solo & Other Agencies card styling (Soft Red Frosted Glass Theme) */
.hiw-compare-con,
.hiw-compare-neutral {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.90) 0%, rgba(254, 242, 242, 0.82) 45%, rgba(254, 226, 226, 0.65) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(239, 68, 68, 0.30);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.05), inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.hiw-compare-con:hover,
.hiw-compare-neutral:hover {
    transform: translateY(-7px) scale(1.015);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(254, 238, 238, 0.90) 45%, rgba(254, 226, 226, 0.78) 100%);
    border-color: rgba(239, 68, 68, 0.60);
    box-shadow: 0 16px 36px rgba(239, 68, 68, 0.16), 0 0 22px rgba(239, 68, 68, 0.10), inset 0 1px 2px rgba(255, 255, 255, 0.95);
}

/* Advaith Homes highlighted card styling (Emerald Green Luxury Glassmorphism) */
.hiw-compare-pro,
.hiw-compare-col--highlighted {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 253, 245, 0.88) 35%, rgba(209, 250, 229, 0.72) 75%, rgba(167, 243, 208, 0.52) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(201, 168, 76, 0.78);
    box-shadow: 0 10px 28px rgba(30, 58, 47, 0.09), 0 0 18px rgba(201, 168, 76, 0.22), inset 0 1px 2px rgba(255, 255, 255, 0.95);
    animation: hiw-glass-emerald-aura 5s ease-in-out infinite alternate;
}

@keyframes hiw-glass-emerald-aura {
    0%   { box-shadow: 0 10px 28px rgba(30, 58, 47, 0.08), 0 0 16px rgba(201, 168, 76, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.9); }
    100% { box-shadow: 0 14px 34px rgba(30, 58, 47, 0.14), 0 0 28px rgba(201, 168, 76, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.95); }
}

.hiw-compare-pro:hover,
.hiw-compare-col--highlighted:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(236, 253, 245, 0.92) 35%, rgba(209, 250, 229, 0.84) 75%, rgba(167, 243, 208, 0.68) 100%);
    border-color: #c9a84c;
    box-shadow: 0 20px 42px rgba(30, 58, 47, 0.20), 0 0 35px rgba(201, 168, 76, 0.42), inset 0 1px 2px rgba(255, 255, 255, 1);
}

.hiw-compare-badge {
    position: absolute;
    top: -11px;
    right: 16px;
    background: linear-gradient(135deg, var(--color-accent, #c9a84c) 0%, #ecd08c 100%);
    color: var(--color-dark, #1a2332);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill, 9999px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.14);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 5;
    overflow: hidden;
}

/* Moving light sheen on badge */
.hiw-compare-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    animation: hiw-badge-sheen 3.6s ease-in-out infinite;
}

@keyframes hiw-badge-sheen {
    0%, 60%  { left: -100%; }
    100%     { left: 200%; }
}

.hiw-compare-col-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hiw-compare-con .hiw-compare-col-header,
.hiw-compare-neutral .hiw-compare-col-header {
    border-bottom-color: rgba(239, 68, 68, 0.16);
}

.hiw-compare-pro .hiw-compare-col-header,
.hiw-compare-col--highlighted .hiw-compare-col-header {
    border-bottom-color: rgba(201, 168, 76, 0.28);
}

.hiw-compare-col-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s ease;
}

.hiw-compare-col:hover .hiw-compare-col-icon {
    transform: scale(1.10) rotate(-4deg);
}

.hiw-compare-con .hiw-compare-col-icon,
.hiw-compare-neutral .hiw-compare-col-icon {
    background: rgba(254, 226, 226, 0.90);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.25);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.12);
}

.hiw-compare-pro .hiw-compare-col-icon,
.hiw-compare-col--highlighted .hiw-compare-col-icon {
    background: linear-gradient(135deg, #1e3a2f 0%, #2b5644 100%);
    color: #e9c874;
    border: 1px solid rgba(201, 168, 76, 0.45);
    box-shadow: 0 4px 12px rgba(30, 58, 47, 0.25);
}

.hiw-compare-col-title-wrap {
    flex: 1;
}

.hiw-compare-label {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-heading, #111827);
    margin: 0;
    line-height: 1.25;
}

.hiw-compare-subtitle {
    font-size: 0.74rem;
    color: var(--color-text-muted, #6b7280);
    margin: 2px 0 0;
    line-height: 1.3;
}

.hiw-compare-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.hiw-compare-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.84rem;
    line-height: 1.40;
    color: var(--color-text, #2c3e50);
    transition: transform 0.25s ease, color 0.25s ease;
}

.hiw-compare-col:hover .hiw-compare-item {
    transform: translateX(3px);
}

.hiw-compare-item-icon {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.62rem;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}

.hiw-compare-col:hover .hiw-compare-item-icon {
    transform: scale(1.15);
}

.hiw-compare-list--cross .hiw-compare-item-icon {
    background: rgba(254, 226, 226, 0.90);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.hiw-compare-list--check .hiw-compare-item-icon {
    background: rgba(209, 250, 229, 0.92);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.28);
    font-weight: 900;
}

.hiw-compare-item-text {
    flex: 1;
}

@media (max-width: 900px) {
    .hiw-compare-grid--three { grid-template-columns: 1fr; }
    .hiw-compare-col--highlighted { transform: none; }
}



/* ── Luxury Centered CTA Banner on How It Works ─────────────────────── */
.hiw-cta-wrap {
    margin: 22px auto 20px;
    padding: 0;
    max-width: 920px;
}

.hiw-cta-wrap .cta-banner.hiw-cta-card {
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    background: linear-gradient(145deg, #152c23 0%, #1e3a2f 50%, #295342 100%);
    background-size: 200% 200%;
    animation: hiw-cta-grad-shift 12s ease infinite alternate;
    border: 1.5px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.14), 0 0 0 1px rgba(201, 168, 76, 0.18);
    position: relative;
    overflow: hidden;
}

@keyframes hiw-cta-grad-shift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.hiw-cta-wrap .cta-banner.hiw-cta-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.14), transparent);
    transform: skewX(-25deg);
    animation: hiw-banner-sheen 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hiw-banner-sheen {
    0%, 65% { left: -70%; }
    100%    { left: 200%; }
}

.hiw-cta-card .cta-banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    max-width: 720px;
}

.hiw-cta-card .cta-banner-eyebrow {
    display: inline-block;
    background: rgba(201, 168, 76, 0.18);
    color: var(--color-accent-light, #e6c97a);
    border: 1px solid rgba(201, 168, 76, 0.40);
    padding: 3px 12px;
    border-radius: var(--radius-pill, 9999px);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hiw-cta-card .cta-banner-heading {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--color-white, #ffffff) !important;
    margin: 0;
    line-height: 1.25;
}

.hiw-cta-card .cta-banner-body {
    font-size: 0.90rem;
    color: rgba(255, 255, 255, 0.86) !important;
    line-height: 1.5;
    margin: 0;
    max-width: 620px;
}

/* Trust highlight pills */
.cta-banner-trust-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 4px;
}

.cta-banner-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 4px 12px;
    border-radius: var(--radius-pill, 9999px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.cta-banner-trust-pill:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.cta-trust-pill-icon {
    color: var(--color-accent-light, #e6c97a);
    font-size: 0.74rem;
}

.hiw-cta-card .cta-banner-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
    width: auto;
}

.cta-btn-primary {
    background: linear-gradient(135deg, var(--color-accent, #c9a84c) 0%, #ecd08c 100%) !important;
    color: var(--color-dark, #1a2332) !important;
    font-weight: 800;
    font-size: 0.86rem;
    padding: 10px 24px;
    border-radius: var(--radius-pill, 9999px);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.cta-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(201, 168, 76, 0.50);
}

.cta-btn-arrow {
    transition: transform 0.25s ease;
}

.cta-btn-primary:hover .cta-btn-arrow {
    transform: translateX(4px);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.10) !important;
    color: var(--color-white, #ffffff) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 10px 22px;
    border-radius: var(--radius-pill, 9999px);
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .hiw-cta-wrap .cta-banner.hiw-cta-card {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .hiw-cta-card .cta-banner-heading {
        font-size: 1.35rem;
    }
    .hiw-cta-card .cta-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}





/* ═══════════════════════════════════════════════════════════════════════════
   STEP TIMELINE ADDITIONS (step_timeline.php)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Highlighted step card ─────────────────────────────────────────────── */
/* Applied when timeline.highlight_step matches the step index; uses only
   existing brand token --color-accent (gold) + --color-tag-bg (soft green
   tint) from variables.css — no new colours introduced. */
.hiw-step-card--highlight {
    border-color: var(--color-accent, #c9a84c);
    background: linear-gradient(
        135deg,
        var(--color-tag-bg, #e8f0ec) 0%,
        var(--color-white, #fff) 70%
    );
    box-shadow:
        0 0 0 2px rgba(201, 168, 76, 0.20),
        0 8px 28px rgba(30, 58, 47, 0.10);
}

/* Highlighted node: swap to accent-gold gradient so it stands out from the
   rest (which use the primary-green gradient). */
.hiw-step-node--highlight {
    background: linear-gradient(
        135deg,
        var(--color-accent, #c9a84c) 0%,
        var(--color-accent-light, #e6c97a) 100%
    );
}

/* Step-number badge on a highlighted node: dark text on light node */
.hiw-step-node--highlight .hiw-step-num {
    background: var(--color-primary, #1e3a2f);
    color: var(--color-white, #fff);
    border-color: var(--color-accent-light, #e6c97a);
}

/* Keyword badge inside the highlighted card ("Key Step") */
.hiw-step-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-accent, #c9a84c);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.30);
    border-radius: var(--radius-pill, 9999px);
    padding: 3px 10px 3px 8px;
    margin-bottom: 8px;
}

/* Pulse animation on the highlighted node to draw the eye gently */
@keyframes hiw-node-pulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(201, 168, 76, 0.35); }
    50%       { box-shadow: 0 0 0 10px rgba(201, 168, 76, 0); }
}
.hiw-step-node--highlight {
    animation: hiw-node-pulse 2.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .hiw-step-node--highlight { animation: none; }
}

/* ── Trust note below the step timeline ────────────────────────────────── */
/* ── Trust note below the step timeline ────────────────────────────────── */
.hiw-timeline-trust-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px auto 0;
    max-width: 560px;
    padding: 8px 18px;
    font-size: 0.82rem;
    color: var(--color-text-muted, #6b7280);
    background: var(--color-tag-bg, #e8f0ec);
    border-radius: var(--radius-pill, 9999px);
    text-align: center;
    line-height: 1.45;
}

.hiw-timeline-trust-icon {
    font-size: 0.95rem;
    color: var(--color-primary, #1e3a2f);
    flex-shrink: 0;
}

.adn-reveal .hiw-timeline-trust-note {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}
.adn-reveal .hiw-timeline-trust-note.adn-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 480px) {
    .hiw-timeline-trust-note { border-radius: var(--radius-md, 12px); font-size: 0.78rem; padding: 6px 14px; }
}




/* ═══════════════════════════════════════════════════════════════════════════
   TRUST CALLOUT SECTION (sections/trust_callout.php)
   "Why It's Safe to Start" — animated graphical info strip
   ═══════════════════════════════════════════════════════════════════════════ */

.tc-section {
    position: relative;
    overflow: hidden;
    background: var(--color-primary, #1e3a2f);
    padding: 24px 0 26px;
}

/* Ambient decorative background shapes (lock + leaf line-art) */
.tc-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.tc-bg-shape {
    position: absolute;
    color: var(--color-white, #fff);
    opacity: 0.04;
}
.tc-bg-shape--lock {
    width: 180px;
    height: 180px;
    top: -30px;
    left: -30px;
    animation: tc-bg-drift 24s ease-in-out infinite;
}
.tc-bg-shape--leaf {
    width: 240px;
    height: 240px;
    bottom: -50px;
    right: -40px;
    animation: tc-bg-drift 20s ease-in-out infinite reverse;
}
@keyframes tc-bg-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50%       { transform: translate(12px, -18px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
    .tc-bg-shape { animation: none; }
}
@media (max-width: 768px) {
    .tc-bg-shape { display: none; }
}

.tc-section > .container { position: relative; z-index: 1; }

/* Section header — centered, light text on dark bg */
.tc-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 16px;
}
.tc-header .section-eyebrow {
    background: rgba(201, 168, 76, 0.18);
    color: var(--color-accent-light, #e6c97a);
    border: 1px solid rgba(201, 168, 76, 0.30);
}
.tc-header .contact-section-heading {
    color: var(--color-white, #fff) !important;
    margin-bottom: 0;
}
.tc-header .contact-section-heading::after {
    margin-left: auto;
    margin-right: auto;
}

/* ── 2×2 responsive grid of cards ─────────────────────────────────────── */
.tc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) { .tc-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ── Card ──────────────────────────────────────────────────────────────── */
.tc-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 16px 14px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 14px;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    z-index: 1;
    opacity: 1 !important;
}

.tc-card:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(201, 168, 76, 0.45);
    transform: translateY(-3px);
}

/* Soft glowing orb in the background */
.tc-card-glow {
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(201, 168, 76, 0.18) 0%,
        transparent 70%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.tc-card:hover .tc-card-glow {
    opacity: 1.5;
}

/* ── Animated SVG visual (top-right corner of card) ───────────────────── */
.tc-card-visual {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 46px;
    height: 46px;
    opacity: 0.35;
    color: var(--color-accent-light, #e6c97a);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 0;
}
.tc-card:hover .tc-card-visual { opacity: 0.55; }

.tc-visual { width: 100%; height: 100%; overflow: visible; }

/* 0 — Shield: body breathes, check fades in */
.tc-shield-body {
    transform-origin: center;
    animation: tc-shield-breathe 3.2s ease-in-out infinite;
}
.tc-shield-check {
    animation: tc-shield-check-in 3.2s ease-in-out infinite;
}
@keyframes tc-shield-breathe {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.06); }
}
@keyframes tc-shield-check-in {
    0%, 30%  { opacity: 0.4; }
    60%, 100% { opacity: 1; }
}

/* 1 — Scales: arm rocks gently side to side */
.tc-scales-arm {
    transform-origin: 40px 14px;
    animation: tc-scales-rock 3s ease-in-out infinite;
}
@keyframes tc-scales-rock {
    0%, 100% { transform: rotate(0deg); }
    33%       { transform: rotate(-5deg); }
    66%       { transform: rotate(5deg); }
}

/* 2 — Handshake: left hand swings in from left, right from right */
.tc-hand-left {
    transform-origin: 8px 48px;
    animation: tc-hand-l 2.8s ease-in-out infinite;
}
.tc-hand-right {
    transform-origin: 72px 48px;
    animation: tc-hand-r 2.8s ease-in-out infinite;
}
.tc-clasp {
    animation: tc-clasp-fade 2.8s ease-in-out infinite;
}
@keyframes tc-hand-l {
    0%, 100% { transform: rotate(0deg); }
    50%       { transform: rotate(-6deg); }
}
@keyframes tc-hand-r {
    0%, 100% { transform: rotate(0deg); }
    50%       { transform: rotate(6deg); }
}
@keyframes tc-clasp-fade {
    0%, 40%  { opacity: 0.4; }
    60%, 100% { opacity: 1; }
}

/* 3 — People: side figures bloom outward on a staggered delay */
.tc-person--left  { animation: tc-person-bloom 3s ease-out infinite; }
.tc-person--right { animation: tc-person-bloom 3s ease-out infinite 0.5s; }
.tc-person--mid   { animation: tc-person-bloom 3s ease-out infinite 0.25s; }
@keyframes tc-person-bloom {
    0%   { opacity: 0.5; transform: scale(0.92); }
    50%  { opacity: 1;   transform: scale(1); }
    100% { opacity: 0.5; transform: scale(0.92); }
}

@media (prefers-reduced-motion: reduce) {
    .tc-shield-body, .tc-shield-check,
    .tc-scales-arm,
    .tc-hand-left, .tc-hand-right, .tc-clasp,
    .tc-person--left, .tc-person--right, .tc-person--mid {
        animation: none;
    }
}

/* ── Icon badge ─────────────────────────────────────────────────────────── */
.tc-card-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.18);
    border: 1px solid rgba(201, 168, 76, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tc-card-icon {
    font-size: 1.05rem;
    color: var(--color-accent-light, #e6c97a);
}

/* ── Text ───────────────────────────────────────────────────────────────── */
.tc-card-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-white, #fff);
    margin: 0;
    line-height: 1.25;
}
.tc-card-body {
    font-size: 0.84rem;
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

@media (max-width: 768px) {
    .tc-section { padding: 20px 0 24px; }
    .tc-card-visual { width: 36px; height: 36px; opacity: 0.18; }
    .tc-card { padding: 14px 14px 12px; }
    .tc-card-title { font-size: 0.92rem; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   CMS FAQ SECTION OVERRIDES on the How It Works page
   ═══════════════════════════════════════════════════════════════════════════ */

.hiw-faqs-section-wrap {
    background: var(--color-bg, #f9fafb);
    padding: 24px 0 28px;
    border-top: 1px solid var(--color-border, #e5e0d8);
}

.hiw-faqs-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 16px;
}
.hiw-faqs-header .contact-section-heading::after {
    margin-left: auto;
    margin-right: auto;
}

/* Constrain the FAQ list to a comfortable reading width */
.hiw-faqs-section-wrap .section-faqs {
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
}

/* Elevate individual FAQ items on this page: larger padding, softer radius */
.hiw-faqs-section-wrap .faq-item {
    border-radius: var(--radius-md, 12px);
    margin-bottom: 6px;
    border-color: var(--color-border, #e5e0d8);
}

.hiw-faqs-section-wrap .faq-item[open] {
    border-color: var(--color-primary, #1e3a2f);
    box-shadow: 0 4px 14px rgba(30, 58, 47, 0.06);
}

/* Summary row */
.hiw-faqs-section-wrap .section-faqs .faq-item summary {
    padding: 10px 16px;
}

.hiw-faqs-section-wrap .section-faqs .faq-q-text {
    font-size: 0.94rem;
}

/* Answer body */
.hiw-faqs-section-wrap .faq-a-body {
    padding-left: 0;
}
.hiw-faqs-section-wrap .faq-a-body p {
    padding: 8px 16px 12px;
    font-size: 0.88rem;
    line-height: 1.52;
}

/* Scroll-reveal on FAQ items */
.adn-reveal .hiw-faqs-section-wrap .faq-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.adn-reveal .hiw-faqs-section-wrap .faq-item.adn-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hiw-faqs-section-wrap { padding: 20px 0 24px; }
    .hiw-faqs-section-wrap .section-faqs .faq-item summary { padding: 10px 14px; }
    .hiw-faqs-section-wrap .faq-a-body p { padding: 8px 14px 10px; }
}



/* =============================================================================
   CINEMATIC STORY NARRATIVE v3 (components/sections/story_narrative.php)
   ============================================================================= */

/* -- Section shell ---------------------------------------------------------- */
.sn-section {
    position: relative;
    background: var(--color-white, #fff);
    padding: 24px 0 26px;
    overflow: hidden;
}
.sn-section > .container { position: relative; z-index: 1; }

/* -- Ambient drifting SVG line-art ----------------------------------------- */
.sn-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.sn-bg-shape {
    position: absolute;
    color: var(--color-primary, #1e3a2f);
    opacity: 0.04;
}
.sn-bg-shape--house {
    width: 280px; height: 280px;
    top: -60px; left: -70px;
    animation: sn-drift-a 32s ease-in-out infinite;
}
.sn-bg-shape--key {
    width: 160px; height: 160px;
    top: 36%; right: -40px;
    color: var(--color-accent, #c9a84c);
    opacity: 0.065;
    animation: sn-drift-b 24s ease-in-out infinite;
}
.sn-bg-shape--doc {
    width: 200px; height: 200px;
    bottom: -50px; left: 12%;
    animation: sn-drift-a 38s ease-in-out infinite reverse;
}

/* Ambient floating story background glyphs */
.sn-bg-glyph {
    position: absolute;
    font-size: 3.4rem;
    color: var(--color-accent, #c9a84c);
    opacity: 0.055;
    pointer-events: none;
    z-index: 0;
}
.sn-bg-glyph--compass {
    top: 14%;
    right: 6%;
    animation: sn-drift-b 28s ease-in-out infinite;
}
.sn-bg-glyph--shield {
    top: 58%;
    left: 4%;
    animation: sn-drift-a 34s ease-in-out infinite;
}
.sn-bg-glyph--star {
    bottom: 8%;
    right: 10%;
    color: var(--color-primary, #1e3a2f);
    animation: sn-drift-b 22s ease-in-out infinite reverse;
}

@keyframes sn-drift-a {
    0%,100% { transform: translate(0,0) rotate(0deg); }
    33%      { transform: translate(14px,-20px) rotate(2.8deg); }
    66%      { transform: translate(-9px,11px) rotate(-1.8deg); }
}
@keyframes sn-drift-b {
    0%,100% { transform: translate(0,0) rotate(0deg); }
    50%      { transform: translate(-16px,9px) rotate(-3.2deg); }
}
@media (prefers-reduced-motion: reduce) { .sn-bg-shape, .sn-bg-glyph { animation: none; } }
@media (max-width: 900px) { .sn-bg-shape--house, .sn-bg-shape--doc, .sn-bg-glyph { display: none; } }

/* Luxury story chapter badge */
.sn-chapter-badge {
    position: absolute;
    top: 10px;
    left: 12px;
    background: rgba(15, 29, 22, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-accent-light, #f0dfa8);
    border: 1px solid rgba(201, 168, 76, 0.40);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill, 9999px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.30);
    pointer-events: none;
}

.sn-chapter-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent, #c9a84c);
    box-shadow: 0 0 6px rgba(201, 168, 76, 0.8);
}

/* Luxury lighting sheen */
.sn-cine-flare {
    position: absolute;
    top: 50%;
    left: -100%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(230, 201, 122, 0.6) 50%, transparent 100%);
    box-shadow: 0 0 14px 2px rgba(201, 168, 76, 0.4);
    transform: translateY(-50%) rotate(-15deg);
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sn-chapter:hover .sn-cine-flare {
    opacity: 1;
    animation: sn-flare-sweep 1.2s ease-in-out forwards;
}

@keyframes sn-flare-sweep {
    0%   { left: -100%; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { left: 200%; opacity: 0; }
}

/* -- Section header --------------------------------------------------------- */
.sn-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 10px;
}
.sn-hdg { margin-bottom: 4px !important; }
.sn-subheading {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--color-text-muted, #6b7280);
    margin: 0 auto 0;
    max-width: 540px;
}



/* -- Chapter list ----------------------------------------------------------- */
.sn-chapters { display: flex; flex-direction: column; gap: 0; }

/* -- Chapter card ----------------------------------------------------------- */
.sn-chapter {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: 240px;
    background: var(--color-bg, #f8f7f4);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.sn-chapter:hover {
    box-shadow: 0 6px 24px rgba(30,58,47,0.10);
    transform: translateY(-2px);
}
.sn-chapter--last { margin-bottom: 0; }

/* Flip: image on right */
.sn-chapter--flip .sn-img-col  { order: 2; }
.sn-chapter--flip .sn-text-col { order: 1; }

/* Mood colour variants — subtle left-border accent */
.sn-chapter--mood-warm    { border-left: 4px solid var(--color-accent, #c9a84c); }
.sn-chapter--mood-muted   { border-left: 4px solid #94a3b8; }
.sn-chapter--mood-hopeful { border-left: 4px solid #4ade80; }
.sn-chapter--mood-relief  { border-left: 4px solid #38bdf8; }
.sn-chapter--mood-clarity { border-left: 4px solid #818cf8; }
.sn-chapter--mood-gold    { border-left: 4px solid var(--color-accent, #c9a84c); }

.sn-chapter--flip.sn-chapter--mood-warm,
.sn-chapter--flip.sn-chapter--mood-muted,
.sn-chapter--flip.sn-chapter--mood-hopeful,
.sn-chapter--flip.sn-chapter--mood-relief,
.sn-chapter--flip.sn-chapter--mood-clarity,
.sn-chapter--flip.sn-chapter--mood-gold {
    border-left: none;
    border-right: 4px solid;
}
.sn-chapter--flip.sn-chapter--mood-warm    { border-right-color: var(--color-accent, #c9a84c); }
.sn-chapter--flip.sn-chapter--mood-muted   { border-right-color: #94a3b8; }
.sn-chapter--flip.sn-chapter--mood-hopeful { border-right-color: #4ade80; }
.sn-chapter--flip.sn-chapter--mood-relief  { border-right-color: #38bdf8; }
.sn-chapter--flip.sn-chapter--mood-clarity { border-right-color: #818cf8; }
.sn-chapter--flip.sn-chapter--mood-gold    { border-right-color: var(--color-accent, #c9a84c); }

/* Scene number watermark */
.sn-num {
    position: absolute;
    top: 8px; left: 14px;
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--color-primary, #1e3a2f);
    opacity: 0.055;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    letter-spacing: -0.05em;
    line-height: 1;
}

/* -- Illustration column ---------------------------------------------------- */
.sn-img-col {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}
.sn-img-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 220px;
    overflow: hidden;
}
.sn-img-frame::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-25deg);
    transition: left 0.85s ease;
    pointer-events: none;
    z-index: 2;
}
.sn-chapter:hover .sn-img-frame::after {
    left: 220%;
}
.sn-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.0s cubic-bezier(0.25,0.46,0.45,0.94);
}
.sn-chapter:hover .sn-img { transform: scale(1.06); }

/* Vignette gradient */
.sn-img-vignette {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(20,40,30,0.22) 0%, transparent 60%);
    pointer-events: none;
}
.sn-chapter--flip .sn-img-vignette {
    background: linear-gradient(270deg, rgba(20,40,30,0.22) 0%, transparent 60%);
}

/* Cinematic letterbox bars */
.sn-bar {
    position: absolute; left: 0; right: 0;
    height: 4px;
    background: rgba(20,40,30,0.18);
    z-index: 2;
    pointer-events: none;
}
.sn-bar--top { top: 0; }
.sn-bar--bot { bottom: 0; }

/* Mood pip on image corner with glowing breathing pulse */
.sn-mood-pip {
    position: absolute;
    top: 12px; right: 12px;
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.75);
    z-index: 3;
    animation: sn-mood-pulse 3s ease-in-out infinite;
}
@keyframes sn-mood-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50%      { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(255,255,255,0); }
}
.sn-mood-pip--contemplative { background: var(--color-accent, #c9a84c); }
.sn-mood-pip--overwhelmed   { background: #94a3b8; }
.sn-mood-pip--hopeful       { background: #4ade80; }
.sn-mood-pip--relief        { background: #38bdf8; }
.sn-mood-pip--clarity       { background: #818cf8; }
.sn-mood-pip--achievement,
.sn-mood-pip--invitation    { background: var(--color-accent, #c9a84c); }

/* -- Text column ------------------------------------------------------------ */
.sn-text-col {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    position: relative;
    z-index: 1;
}
.sn-text-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 450px;
}

/* Step reference badge connecting story to roadmap steps */
.sn-step-ref {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary, #1e3a2f);
    background: linear-gradient(135deg, rgba(30, 58, 47, 0.06) 0%, rgba(201, 168, 76, 0.14) 100%);
    border: 1px solid rgba(201, 168, 76, 0.35);
    padding: 3px 10px;
    border-radius: var(--radius-pill, 9999px);
    width: fit-content;
    box-shadow: 0 2px 6px rgba(30, 58, 47, 0.04);
    margin-bottom: 2px;
}

.sn-step-ref-icon {
    color: var(--color-accent, #c9a84c);
    font-size: 0.75rem;
}

.sn-step-ref-text {
    font-weight: 700;
}

/* Chapter label with metallic gold shimmer */
.sn-chapter-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-accent, #c9a84c) 0%, #ecd08c 50%, var(--color-accent, #c9a84c) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sn-shimmer 6s linear infinite;
    margin-bottom: 1px;
}
@keyframes sn-shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Italic lede headline */
.sn-lede {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-style: italic;
    font-size: clamp(1.10rem, 2vw, 1.35rem);
    font-weight: 700;
    color: var(--color-heading, #111827);
    margin: 0;
    line-height: 1.25;
}

/* Body paragraph */
.sn-body {
    font-size: 0.88rem;
    line-height: 1.50;
    color: var(--color-text, #374151);
    margin: 0;
    max-width: 420px;
}

.sn-cta { align-self: flex-start; margin-top: 2px; }

.sn-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--color-text-muted, #6b7280);
    margin: 0;
}

/* -- Self-contained scroll reveal ------------------------------------------ */
.sn-js .sn-chapter {
    opacity: 0;
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.sn-js .sn-chapter:not(.sn-chapter--flip) { transform: translateX(-32px); }
.sn-js .sn-chapter--flip                  { transform: translateX(32px); }
.sn-js .sn-chapter.sn-in {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered reveal for interior elements once chapter is in view */
@keyframes sn-sweep-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sn-js .sn-chapter.sn-in .sn-chapter-label {
    animation: sn-sweep-up 0.55s cubic-bezier(0.22,1,0.36,1) both 0.10s;
}
.sn-js .sn-chapter.sn-in .sn-lede {
    animation: sn-sweep-up 0.65s cubic-bezier(0.22,1,0.36,1) both 0.20s;
}
.sn-js .sn-chapter.sn-in .sn-body {
    animation: sn-sweep-up 0.65s cubic-bezier(0.22,1,0.36,1) both 0.32s;
}
.sn-js .sn-chapter.sn-in .sn-cta {
    animation: sn-sweep-up 0.65s cubic-bezier(0.22,1,0.36,1) both 0.44s;
}

/* Image zoom-on-enter for the illustration */
.sn-js .sn-chapter .sn-img {
    transform: scale(1.06);
    transition: transform 1.2s cubic-bezier(0.25,0.46,0.45,0.94) 0.1s,
                opacity 0.6s ease 0s;
    opacity: 0.85;
}
.sn-js .sn-chapter.sn-in .sn-img {
    transform: scale(1);
    opacity: 1;
}
/* Hover overrides reveal scale */
.sn-js .sn-chapter.sn-in:hover .sn-img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
    .sn-js .sn-chapter,
    .sn-js .sn-chapter .sn-img,
    .sn-chapter-label, .sn-lede, .sn-body, .sn-cta { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* -- Responsive ------------------------------------------------------------- */
@media (max-width: 960px) {
    .sn-chapter {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .sn-chapter--flip .sn-img-col  { order: 1; }
    .sn-chapter--flip .sn-text-col { order: 2; }
    .sn-chapter--flip.sn-chapter--mood-warm,
    .sn-chapter--flip.sn-chapter--mood-muted,
    .sn-chapter--flip.sn-chapter--mood-hopeful,
    .sn-chapter--flip.sn-chapter--mood-relief,
    .sn-chapter--flip.sn-chapter--mood-clarity,
    .sn-chapter--flip.sn-chapter--mood-gold {
        border-right: none;
        border-left: 4px solid;
    }
    .sn-chapter--flip.sn-chapter--mood-warm    { border-left-color: var(--color-accent, #c9a84c); }
    .sn-chapter--flip.sn-chapter--mood-muted   { border-left-color: #94a3b8; }
    .sn-chapter--flip.sn-chapter--mood-hopeful { border-left-color: #4ade80; }
    .sn-chapter--flip.sn-chapter--mood-relief  { border-left-color: #38bdf8; }
    .sn-chapter--flip.sn-chapter--mood-clarity { border-left-color: #818cf8; }
    .sn-chapter--flip.sn-chapter--mood-gold    { border-left-color: var(--color-accent, #c9a84c); }

    .sn-img-col, .sn-img-frame { min-height: 200px; }
    .sn-text-col { padding: 18px 16px 20px; }
    .sn-text-inner { max-width: none; }
    .sn-lede { font-size: 1.15rem; }
    .sn-section { padding: 24px 0 28px; }
    .sn-num { font-size: 2.8rem; }
}

@media (max-width: 480px) {
    .sn-chapter { border-radius: 12px; margin-bottom: 12px; }
    .sn-img-col, .sn-img-frame { min-height: 175px; }
    .sn-text-col { padding: 14px 14px 16px; }
    .sn-lede { font-size: 1.05rem; }
    .sn-body { font-size: 0.84rem; }
}