/* ==========================================================================
   ProjectWealth Advisors — Site Stylesheet
   Dark cinematic v2 with brand navy + orange
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
    --bg-primary: #0E0F12;
    --bg-secondary: #15171B;
    --bg-tertiary: #1B1E23;
    --border-subtle: #25282E;
    --border-strong: #3A3E45;

    --text-primary: #E8E4D8;
    --text-secondary: #B5B0A2;
    --text-tertiary: #7C7869;
    --text-muted: #5A5750;

    /* Brand palette — sampled from the logo */
    --brand-navy: #355882;
    --brand-navy-bright: #4A73A8;
    --brand-navy-deep: #233E5E;
    --brand-orange: #FD8950;
    --brand-orange-soft: #E57441;
    --brand-orange-glow: rgba(253, 137, 80, 0.18);
    --brand-gray: #515151;

    /* Aliases used through the stylesheet */
    --accent-navy: var(--brand-navy);
    --accent-navy-bright: var(--brand-navy-bright);
    --accent-orange: var(--brand-orange);
    --accent-orange-soft: var(--brand-orange-soft);

    --font-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
    --font-condensed: 'Barlow Condensed', 'Oswald', 'Helvetica Neue', sans-serif;
    --font-body: 'Source Serif Pro', Georgia, serif;
    --font-mono: 'DM Mono', 'JetBrains Mono', ui-monospace, monospace;

    --max-width: 1240px;
    --max-width-narrow: 880px;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-xxl: 9rem;
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; line-height: 1.3; }

.eyebrow {
    font-family: var(--font-condensed);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin: 0 0 var(--space-sm);
    display: block;
}

.eyebrow-muted { color: var(--text-tertiary); }

.italic-accent { font-style: italic; color: var(--accent-orange); }

p { margin: 0 0 1.25em; color: var(--text-secondary); }
p.lede {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-primary);
    max-width: 640px;
}

/* --- Layout containers --------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section { padding: var(--space-xl) 0; }
section.tight { padding: var(--space-lg) 0; }
section.spacious { padding: var(--space-xxl) 0; }

/* --- Header / Navigation ------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 15, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 1px 0 0 var(--brand-navy-deep);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem clamp(1.25rem, 4vw, 2.5rem);
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-logo img {
    height: 56px;
    width: auto;
    display: block;
    transition: opacity 0.2s ease;
}

.nav-logo:hover img { opacity: 0.85; }

@media (max-width: 880px) {
    .nav-logo img { height: 44px; }
}

@media (max-width: 560px) {
    .nav-logo img { height: 36px; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    font-family: var(--font-condensed);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
    padding: 0.25rem 0;
    position: relative;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a.active {
    color: var(--accent-orange);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: var(--accent-orange);
}

.nav-cta {
    font-family: var(--font-condensed);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text-primary);
    position: relative;
}

.nav-toggle-bar::before, .nav-toggle-bar::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 1px;
    background: var(--text-primary);
    left: 0;
}

.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

@media (max-width: 880px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-subtle);
        padding: 1rem 1.5rem 1.5rem;
    }
    .nav-links.is-open { display: flex; }
    .nav-links a, .nav-links .nav-cta {
        width: 100%;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border-subtle);
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        text-align: left;
    }
    .nav-toggle { display: flex; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
    position: relative;
    overflow: hidden;
    background: #0B0C0F;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-lg);
    align-items: end;
}

@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

.hero h1 {
    margin-bottom: var(--space-md);
    max-width: 12ch;
}

.hero-meta {
    border-left: 2px solid var(--brand-navy-bright);
    padding-left: var(--space-md);
    color: var(--text-tertiary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.hero-meta strong {
    display: block;
    color: var(--text-primary);
    font-weight: 400;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-rule {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-orange) 0%, var(--brand-orange) 50%, var(--brand-navy-bright) 50%, var(--brand-navy-bright) 100%);
    margin: 0 0 var(--space-md);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 500px at 80% 25%, rgba(74, 115, 168, 0.32) 0%, rgba(74, 115, 168, 0) 65%),
        radial-gradient(ellipse 700px 380px at 15% 85%, rgba(253, 137, 80, 0.18) 0%, rgba(253, 137, 80, 0) 70%),
        radial-gradient(ellipse 1200px 600px at 50% 100%, rgba(35, 62, 94, 0.4) 0%, rgba(35, 62, 94, 0) 60%);
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(232, 228, 216, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.hero-compass {
    position: absolute;
    top: 50%;
    right: -180px;
    transform: translateY(-50%);
    width: 700px;
    height: 700px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
            mask-image: radial-gradient(circle at center, black 30%, transparent 75%);
}

.hero-compass img {
    width: 100%;
    height: 100%;
    display: block;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-compass {
        animation: heroSpin 240s linear infinite;
    }
}

@keyframes heroSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.hero > .container { position: relative; z-index: 2; }

@media (max-width: 880px) {
    .hero-compass {
        width: 480px;
        height: 480px;
        right: -220px;
        opacity: 0.4;
    }
}

/* --- Section heads ------------------------------------------------------- */
.section-head {
    margin-bottom: var(--space-lg);
    max-width: 720px;
}

.section-head.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-head h2 {
    margin-bottom: var(--space-sm);
}

/* --- ProjectWealth Cycle ------------------------------------------------- */
.cycle-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.cycle-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 300px at 100% 0%, rgba(74, 115, 168, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 500px 250px at 0% 100%, rgba(253, 137, 80, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

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

.cycle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    margin-top: var(--space-md);
}

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

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

.cycle-stage {
    background: var(--bg-secondary);
    padding: var(--space-md) clamp(1.25rem, 2.5vw, 2rem);
    transition: background 0.3s ease;
    position: relative;
}

.cycle-stage:hover { background: var(--bg-tertiary); }

.cycle-stage-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--brand-navy-bright);
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}

.cycle-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--brand-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.cycle-stage:hover::before { transform: scaleX(1); }

.cycle-stage h3 {
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
    line-height: 1.15;
}

.cycle-stage p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* --- Audience cards ------------------------------------------------------ */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: var(--space-md);
}

.audience-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 720px) {
    .audience-grid,
    .audience-grid-3 { grid-template-columns: 1fr; }
}

.audience-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    transition: border-color 0.3s ease,
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.3s ease,
                box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-navy-bright) 0%, var(--brand-orange) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.audience-card:hover::before { transform: scaleX(1); }

.audience-card:hover {
    border-color: var(--brand-orange-soft);
    transform: translateY(-5px);
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.audience-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.audience-card-icon img,
.audience-card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.4s ease;
}
.audience-card:hover .audience-card-icon {
    transform: translateY(-4px);
}
.audience-card:hover .audience-card-icon img {
    transform: scale(1.05);
}
/* Legacy SVG style fallback for any remaining inline svg */
.audience-card-icon svg:not([viewBox="0 0 80 80"]) {
    stroke: var(--accent-orange);
}

.audience-card:hover .audience-card-icon svg { stroke: var(--accent-orange); }

.audience-card:hover .audience-card-icon svg {
    stroke: var(--brand-orange);
}

.audience-card-tag {
    display: inline-block;
    font-family: var(--font-condensed);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin-bottom: 0.6rem;
}

.audience-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
}

.audience-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.audience-card-stakes {
    margin-top: 1.25rem !important;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-display);
    font-size: 1rem !important;
    line-height: 1.4 !important;
    color: var(--text-primary) !important;
    font-style: italic;
}

.audience-card-stakes em {
    color: var(--brand-orange);
    font-style: italic;
}

/* CPA note (single-line below the audience grid) */
.audience-cpa-note {
    margin-top: 2.5rem;
    padding: 1.5rem clamp(1.5rem, 3vw, 2rem);
    background: rgba(74, 115, 168, 0.06);
    border-left: 2px solid var(--brand-navy-bright);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.audience-cpa-note-eyebrow {
    font-family: var(--font-condensed);
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--brand-orange);
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .audience-card,
    .audience-card-icon {
        transition: none;
    }
    .audience-card:hover {
        transform: none;
        box-shadow: none;
    }
    .audience-card:hover .audience-card-icon {
        transform: none;
    }
}

/* --- Generic content blocks ---------------------------------------------- */
.prose {
    max-width: 720px;
}

.prose p {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.4em;
}

.prose h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.prose h3:first-child { margin-top: 0; }

.prose ul {
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.prose ul li { margin-bottom: 0.75rem; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    align-items: start;
}

@media (max-width: 880px) {
    .two-col { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* --- CTA blocks ---------------------------------------------------------- */
.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: var(--space-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-condensed);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-orange-soft);
    transform: translateY(-1px);
}

.btn-secondary {
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

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

.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* --- Schedule embed area ------------------------------------------------- */
.schedule-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.schedule-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(74, 115, 168, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.schedule-section > .container,
.schedule-section > .container-narrow { position: relative; z-index: 1; }

.schedule-wrap {
    max-width: 920px;
    margin: var(--space-md) auto 0;
    background: #FFFFFF;
    padding: 1rem;
    border-radius: 4px;
}

.schedule-wrap > div { width: 100%; }

/* --- Portal cards -------------------------------------------------------- */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: var(--space-md);
}

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

.portal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: clamp(2rem, 4vw, 2.75rem);
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease;
}

.portal-card:hover { border-color: var(--accent-orange-soft); }

.portal-card-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.portal-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.85rem;
}

.portal-card p {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.portal-card .btn {
    align-self: flex-start;
    margin-top: 1rem;
}

.portal-help {
    margin-top: var(--space-md);
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-left: 2px solid var(--accent-orange);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.portal-help strong {
    color: var(--text-primary);
    font-weight: 400;
    font-family: var(--font-display);
    font-size: 1.15rem;
    display: block;
    margin-bottom: 0.35rem;
}

/* --- Contact ------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-lg);
    align-items: start;
}

@media (max-width: 880px) {
    .contact-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

.contact-info dl {
    margin: 0;
}

.contact-info dt {
    font-family: var(--font-condensed);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.contact-info dt:first-child { margin-top: 0; }

.contact-info dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.contact-info dd a:hover { color: var(--accent-orange); }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
    background: #08090B;
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-lg);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (max-width: 880px) {
    .footer-top { grid-template-columns: 1fr; gap: var(--space-md); }
}

.footer-brand img {
    height: 64px;
    width: auto;
    display: block;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    max-width: 300px;
    margin: 0;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 540px) {
    .footer-nav { grid-template-columns: 1fr 1fr; }
}

.footer-nav h4 {
    font-family: var(--font-condensed);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0 1rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.6rem;
}

.footer-nav a {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
}

.footer-nav a:hover { color: var(--accent-orange); }

.disclaimer {
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-md);
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 1000px;
}

.disclaimer p { margin: 0 0 0.85em; color: var(--text-muted); font-size: 0.78rem; }
.disclaimer a { color: var(--text-tertiary); text-decoration: underline; text-decoration-color: var(--text-muted); }
.disclaimer a:hover { color: var(--accent-orange); text-decoration-color: var(--accent-orange); }

.copyright {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-condensed);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* --- Page hero (smaller variant) ---------------------------------------- */
.page-hero {
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 400px at 85% 30%, rgba(74, 115, 168, 0.18) 0%, transparent 65%),
        radial-gradient(ellipse 500px 300px at 10% 100%, rgba(253, 137, 80, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.page-hero > .container { position: relative; z-index: 1; }

.page-hero h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    max-width: 18ch;
    margin-bottom: var(--space-sm);
}

.page-hero p.lede {
    color: var(--text-secondary);
}

/* --- Insights placeholder ------------------------------------------------ */
.insight-card {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-md) 0;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-md);
    align-items: start;
}

@media (max-width: 720px) {
    .insight-card { grid-template-columns: 1fr; gap: 0.85rem; }
}

.insight-card-meta {
    font-family: var(--font-condensed);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding-top: 0.4rem;
}

.insight-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.insight-card p {
    color: var(--text-secondary);
    margin: 0;
}

.coming-soon {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-left: 2px solid var(--accent-orange);
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.coming-soon h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* --- Home cycle (mini visual cycle) ---------------------------------- */
.home-cycle {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 1;
    margin: var(--space-md) auto 0;
}

.home-cycle-orbit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.home-cycle-node {
    position: absolute;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--text-primary);
    text-decoration: none;
    min-width: 140px;
    line-height: 1.2;
    z-index: 2;
}

.home-cycle-node:hover {
    border-color: var(--brand-orange);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 0 0 4px rgba(253, 137, 80, 0.08);
}

.home-cycle-node-1 { top: 8%; left: 50%; transform: translate(-50%, -50%); }
.home-cycle-node-2 { top: 50%; left: 92%; transform: translate(-50%, -50%); }
.home-cycle-node-3 { top: 92%; left: 50%; transform: translate(-50%, -50%); }
.home-cycle-node-4 { top: 50%; left: 8%; transform: translate(-50%, -50%); }

.home-cycle-node-1:hover { transform: translate(-50%, -50%) scale(1.05); }
.home-cycle-node-2:hover { transform: translate(-50%, -50%) scale(1.05); }
.home-cycle-node-3:hover { transform: translate(-50%, -50%) scale(1.05); }
.home-cycle-node-4:hover { transform: translate(-50%, -50%) scale(1.05); }

.home-cycle-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--brand-orange);
    letter-spacing: 0.18em;
    margin-bottom: 4px;
}

.home-cycle-label {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    line-height: 1.15;
    color: var(--text-primary);
}

.home-cycle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(35, 62, 94, 0.6) 0%, rgba(11, 12, 15, 0.95) 75%);
    border: 1px solid rgba(74, 115, 168, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-shadow: 0 0 0 6px rgba(74, 115, 168, 0.06);
}

.home-cycle-center::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    border: 1px dashed rgba(74, 115, 168, 0.25);
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .home-cycle-center::before {
        animation: pwCycleSpin 60s linear infinite;
    }
}

@keyframes pwCycleSpin {
    to { transform: rotate(360deg); }
}

.home-cycle-center-eyebrow {
    font-family: var(--font-condensed);
    font-size: 10px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--brand-orange);
    margin-bottom: 6px;
}

.home-cycle-center-name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.3rem, 2.8vw, 1.85rem);
    line-height: 1;
    color: var(--text-primary);
}

.home-cycle-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
}

@media (max-width: 600px) {
    .home-cycle { max-width: 380px; }
    .home-cycle-node { min-width: 100px; padding: 0.5rem 0.7rem; }
    .home-cycle-label { font-size: 0.95rem; }
    .home-cycle-num { font-size: 9px; }
}

/* --- Team grid (About page) ----------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: var(--space-md);
}

.team-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: clamp(1.75rem, 3vw, 2.25rem);
    transition: border-color 0.25s ease;
    position: relative;
}

.team-card:hover {
    border-color: var(--brand-orange-soft);
}

.team-portrait {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 0 1.5rem;
    background: linear-gradient(135deg, var(--brand-navy-deep) 0%, var(--brand-navy) 100%);
    border: 1px solid var(--border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-portrait-initials {
    font-family: var(--font-display);
    font-size: 2.25rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.team-card-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--brand-orange);
    opacity: 0.92;
}

.team-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.team-card .team-card-role {
    font-family: var(--font-condensed);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-navy-bright);
    margin-bottom: 1rem;
    display: block;
}

.team-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.team-card p + p { margin-top: 0.85rem; }

/* --- CPA collaboration callout (Who We Serve) ----------------------- */
.collab-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: clamp(1.75rem, 3vw, 2.5rem);
    margin-top: var(--space-md);
}

.collab-block h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.collab-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.collab-block p:last-child { margin-bottom: 0; }

/* --- Utility ------------------------------------------------------------- */
.divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-lg) 0;
    border: 0;
}

.text-center { text-align: center; }

/* --- Animations ---------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(12px);
        animation: fadeUp 0.7s ease forwards;
    }
    .fade-in.delay-1 { animation-delay: 0.08s; }
    .fade-in.delay-2 { animation-delay: 0.16s; }
    .fade-in.delay-3 { animation-delay: 0.24s; }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll-reveal animations ---------------------------------------- */
/* Elements with .reveal start hidden, fade up when they enter the viewport */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for grouped reveals (cards, lists, etc) */
.reveal.delay-1 { transition-delay: 0.08s; }
.reveal.delay-2 { transition-delay: 0.16s; }
.reveal.delay-3 { transition-delay: 0.24s; }
.reveal.delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Hero text word reveal ------------------------------------------- */
.hero-headline-anim .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-headline-anim.is-revealed .word {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .hero-headline-anim .word {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* --- Team card micro-interactions ------------------------------------ */
.team-card {
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover {
    transform: translateY(-3px);
}

.team-portrait {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover .team-portrait {
    transform: scale(1.04);
    box-shadow: 0 0 0 4px rgba(253, 137, 80, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .audience-card,
    .team-card,
    .team-portrait,
    .audience-card-icon {
        transition: none;
        transform: none !important;
    }
}

/* --- Signature hero arc graphic -------------------------------------- */
/* A flowing line representing the long arc of a financial life */

.hero-arc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s ease 0.8s;
}

.hero-arc.is-revealed { opacity: 1; }

.hero-arc svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-arc-path {
    fill: none;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.hero-arc.is-revealed .hero-arc-path {
    animation: drawArc 4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.6s;
}

.hero-arc.is-revealed .hero-arc-path-shadow {
    animation: drawArc 4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.4s;
}

.hero-arc-dot {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-arc.is-revealed .hero-arc-dot-1 { animation: fadeInDot 0.6s ease forwards 1.6s; }
.hero-arc.is-revealed .hero-arc-dot-2 { animation: fadeInDot 0.6s ease forwards 2.4s; }
.hero-arc.is-revealed .hero-arc-dot-3 { animation: fadeInDot 0.6s ease forwards 3.4s; }

@keyframes drawArc {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeInDot {
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-arc {
        opacity: 1;
    }
    .hero-arc-path {
        stroke-dashoffset: 0;
        animation: none;
    }
    .hero-arc-dot {
        opacity: 1;
    }
}

/* --- Mobile and touch optimizations ---------------------------------- */
/* Active states give immediate tap feedback on touch devices */

.btn:active {
    transform: translateY(1px);
}

.audience-card:active,
.team-card:active,
.portal-card:active {
    transform: translateY(-2px) scale(0.99);
    transition-duration: 0.1s;
}

.nav-links a:active,
.nav-cta:active {
    background: rgba(253, 137, 80, 0.05);
}

.home-cycle-node:active {
    transform: translate(-50%, -50%) scale(0.97);
    transition-duration: 0.1s;
}

/* Manipulation: improves touch responsiveness — no double-tap zoom delay */
.btn,
.nav-links a,
.nav-cta,
.nav-toggle,
.audience-card,
.team-card,
.portal-card,
.home-cycle-node,
.pw-cycle-node {
    touch-action: manipulation;
}

/* Ensure tap targets meet 44x44 minimum on touch */
@media (max-width: 720px) {
    .nav-links a,
    .nav-links .nav-cta {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .home-cycle-node,
    .pw-cycle-node {
        min-height: 48px;
    }

    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Disable hover-only effects on touch devices (no hover capability)
   This prevents "stuck hover" states that can occur after tap on iOS */
@media (hover: none) {
    .audience-card:hover,
    .team-card:hover,
    .portal-card:hover {
        transform: none;
        box-shadow: none;
        background: var(--bg-secondary);
    }

    .audience-card:hover .audience-card-icon {
        transform: none;
        box-shadow: none;
        background: radial-gradient(circle, rgba(35, 62, 94, 0.5) 0%, rgba(11, 12, 15, 0.3) 100%);
        border-color: rgba(74, 115, 168, 0.35);
    }

    .audience-card:hover .audience-card-icon svg {
        stroke: var(--brand-navy-bright);
    }

    .audience-card:hover::before {
        transform: scaleX(0);
    }
}

/* Prevent horizontal overflow at any width */
html, body {
    overflow-x: hidden;
}

/* Hero compass — hide entirely on smallest screens to prevent overflow */
@media (max-width: 480px) {
    .hero-compass {
        opacity: 0.25;
        right: -260px;
    }
}

/* Tighter mobile sizing for the home cycle */
@media (max-width: 420px) {
    .home-cycle {
        max-width: 320px;
    }
    .home-cycle-node {
        min-width: 90px;
        padding: 0.45rem 0.6rem;
    }
    .home-cycle-label {
        font-size: 0.85rem;
    }
    .home-cycle-num {
        font-size: 8px;
    }
    .home-cycle-center {
        width: 32%;
    }
    .home-cycle-center-name {
        font-size: 1.1rem;
    }
}

/* Tighter mobile sizing for the Approach Cycle */
@media (max-width: 420px) {
    .pw-cycle-wheel {
        max-width: 320px;
    }
    .pw-cycle-node {
        min-width: 96px;
        max-width: 110px;
        padding: 0.4rem 0.55rem;
    }
}

/* ScheduleOnce iframe — let it breathe on mobile */
@media (max-width: 720px) {
    #SOIDIV_meewithprojectwealth iframe {
        height: 600px !important;
    }
    .schedule-wrap {
        padding: 0;
    }
}

/* Ensure iframes never cause horizontal scroll */
.schedule-wrap iframe {
    max-width: 100%;
    width: 100%;
}

/* Header padding tighter on mobile for more screen real estate */
@media (max-width: 720px) {
    .nav {
        padding: 0.75rem 1rem;
    }
}

/* Section padding tighter on mobile */
@media (max-width: 560px) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* ================================================================
   Editorial illustrations + animations (ported from Project 2)
   Adapted for dark cinematic palette
   ================================================================ */

/* --- Audience block: illustration sits next to H2, animated underline --- */
.audience-block-illustration {
    margin-top: 2rem;
    width: 140px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.2s ease 0.6s,
                transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}

.audience-block-illustration img {
    width: 100%;
    height: auto;
    display: block;
    animation: gentleFloat 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Stagger so they don't all breathe in sync */
.audience-block:nth-child(1) .audience-block-illustration img { animation-delay: 0s; }
.audience-block:nth-child(3) .audience-block-illustration img { animation-delay: 1.5s; }
.audience-block:nth-child(5) .audience-block-illustration img { animation-delay: 3s; }
.audience-block:nth-child(7) .audience-block-illustration img { animation-delay: 4.5s; }

.audience-block.is-visible .audience-block-illustration,
.audience-block.reveal.is-visible .audience-block-illustration {
    opacity: 0.95;
    transform: translateY(0);
}

/* Animated underline beneath H2 */
.audience-block h2 {
    position: relative;
    padding-bottom: 0.85rem;
}
.audience-block h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-orange);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.audience-block.is-visible h2::after,
.audience-block.reveal.is-visible h2::after {
    width: 60px;
}

/* Animated underline beneath eyebrow */
.audience-block .eyebrow {
    position: relative;
    display: inline-block;
}
.audience-block .eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 1px;
    width: 0;
    background: var(--brand-orange);
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}
.audience-block.is-visible .eyebrow::before {
    width: 32px;
}

/* --- Hover focus effect: when one block is hovered, others fade --- */
.audience-blocks-group:hover .audience-block,
.audience-blocks-group:hover .ornament-divider {
    opacity: 0.45;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.audience-blocks-group:hover .ornament-divider {
    transform: none;
}

.audience-blocks-group .audience-block:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.015);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.audience-blocks-group:hover .audience-block:hover .audience-block-illustration img {
    animation-play-state: paused;
}

.audience-blocks-group .audience-block:hover .audience-block-illustration {
    transform: translateY(-3px) scale(1.04);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.audience-blocks-group .audience-block:hover h2::after {
    width: 100px;
    background: var(--brand-orange);
}

.audience-blocks-group .audience-block:hover .eyebrow::before {
    width: 56px;
    background: var(--brand-orange);
}

/* --- Ornament divider --- */
.ornament-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: clamp(2rem, 5vw, 4rem) 0;
    opacity: 0.85;
}

.ornament-divider img {
    width: 200px;
    height: 24px;
    display: block;
}

/* --- Mobile + accessibility: pause animations, disable hover-fade --- */
@media (max-width: 720px) {
    .audience-block-illustration {
        width: 100px;
        margin-top: 1rem;
        margin-bottom: 1rem;
        opacity: 0.95;
        transform: none;
    }
    .audience-block-illustration img {
        animation: none;
    }
    .ornament-divider {
        margin: 2rem 0;
    }
    .ornament-divider img {
        width: 140px;
    }
}

@media (hover: none) {
    .audience-blocks-group:hover .audience-block,
    .audience-blocks-group:hover .ornament-divider,
    .audience-blocks-group .audience-block:hover {
        opacity: 1;
        transform: none;
    }
    .audience-blocks-group .audience-block:hover .audience-block-illustration {
        transform: none;
    }
    .audience-blocks-group .audience-block:hover h2::after { width: 60px; }
    .audience-blocks-group .audience-block:hover .eyebrow::before { width: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .audience-block-illustration,
    .audience-block-illustration img,
    .audience-block h2::after,
    .audience-block .eyebrow::before {
        transition: none;
        animation: none;
    }
    .audience-block-illustration {
        opacity: 0.95;
        transform: none;
    }
    .audience-block.is-visible h2::after { width: 60px; }
    .audience-block.is-visible .eyebrow::before { width: 32px; }
}

/* Team section: full-width intro with illustration inline, then grid below */
.team-section-block {
    margin-bottom: 0;
}
.team-intro {
    position: relative;
    margin-bottom: 3rem;
    max-width: 720px;
}
.team-section-illustration {
    margin-top: 1.5rem;
    width: 110px;
}
@media (max-width: 720px) {
    .team-intro { margin-bottom: 2rem; }
    .team-section-illustration { width: 80px; margin-top: 1rem; }
}

/* Cycle detail panel: illustration that swaps with each stage */
.pw-cycle-detail-illustration {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.9;
}
.pw-cycle-detail-illustration img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.18s ease;
}
.pw-cycle-detail.is-fading .pw-cycle-detail-illustration img {
    opacity: 0;
}
@media (max-width: 720px) {
    .pw-cycle-detail-illustration {
        width: 64px;
        height: 64px;
    }
}

/* Client Portals: illustration in each card with hover effect */
.portal-card {
    position: relative;
    transition: border-color 0.25s ease,
                transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s ease;
}
.portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(253, 137, 80, 0.08);
}
.portal-card-illustration {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.portal-card-illustration img {
    width: 100%;
    height: auto;
    display: block;
    animation: gentleFloat 6s ease-in-out infinite;
}
.portal-card:nth-child(2) .portal-card-illustration img {
    animation-delay: 2s;
}
.portal-card:hover .portal-card-illustration {
    transform: scale(1.05);
}
.portal-card:hover .portal-card-illustration img {
    animation-play-state: paused;
}

@media (max-width: 720px) {
    .portal-card-illustration {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }
    .portal-card-illustration img { animation: none; }
}
@media (hover: none) {
    .portal-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Schedule a Call: ornament above heading */
.schedule-ornament {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    opacity: 0.85;
}
.schedule-ornament img {
    width: 200px;
    height: 24px;
    display: block;
}

/* Home cycle center: gentle pulse to draw attention */
@media (prefers-reduced-motion: no-preference) {
    .home-cycle-center::after {
        content: '';
        position: absolute;
        inset: -20px;
        border-radius: 50%;
        border: 1px solid rgba(253, 137, 80, 0.25);
        animation: cyclePulse 4s ease-in-out infinite;
        pointer-events: none;
    }
}

@keyframes cyclePulse {
    0%, 100% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Schedule section ornament — reveals on scroll */
.schedule-section .schedule-ornament.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.schedule-section .schedule-ornament.reveal.is-visible {
    opacity: 0.85;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .home-cycle-center::after { animation: none; opacity: 0; }
    .schedule-section .schedule-ornament.reveal {
        opacity: 0.85;
        transform: none;
        transition: none;
    }
}

@media (max-width: 720px) {
    .schedule-ornament img { width: 140px; }
}

/* ================================================================
   Project 1 — Mobile optimization + Compact persistent header
   ================================================================ */

/* --- Logo: target both <img> and inline <svg> robustly ----------------- */
.nav-logo img,
.nav-logo svg {
    height: 56px;
    width: auto;
    display: block;
}

@media (max-width: 880px) {
    .nav-logo img,
    .nav-logo svg { height: 44px; }
}
@media (max-width: 560px) {
    .nav-logo img,
    .nav-logo svg { height: 36px; }
}

.footer-brand img,
.footer-brand svg {
    height: 64px;
    width: auto;
    display: block;
    margin-bottom: 1.25rem;
}

/* --- Compact persistent header — shrinks past 60px scroll ------------- */
.site-header {
    transition: background 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease,
                backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(11, 12, 15, 0.78);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    box-shadow: 0 1px 0 rgba(253, 137, 80, 0.15),
                0 4px 20px rgba(0, 0, 0, 0.25);
}

.site-header .nav {
    transition: padding 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header.is-scrolled .nav {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.site-header .nav-logo img,
.site-header .nav-logo svg {
    transition: height 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header.is-scrolled .nav-logo img,
.site-header.is-scrolled .nav-logo svg {
    height: 44px;
}

@media (max-width: 880px) {
    .site-header.is-scrolled .nav-logo img,
    .site-header.is-scrolled .nav-logo svg {
        height: 36px;
    }
    .site-header.is-scrolled .nav {
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }
}

@media (max-width: 560px) {
    .site-header.is-scrolled .nav-logo img,
    .site-header.is-scrolled .nav-logo svg {
        height: 30px;
    }
    .site-header.is-scrolled .nav {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }
}

.site-header.is-scrolled .nav-cta {
    padding-top: 0.55rem !important;
    padding-bottom: 0.55rem !important;
    transition: padding 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .site-header,
    .site-header .nav,
    .site-header .nav-logo img,
    .site-header .nav-logo svg,
    .site-header .nav-cta {
        transition: none;
    }
}

/* --- Mobile-specific scrolled header — transparent + shrunk ----------- */
/* On mobile, when scrolled, the header floats with a much more transparent
   background and tightens up further so it stays out of the way without
   ever leaving the screen. Always at the top, just visually quieter. */
@media (max-width: 768px) {
    .site-header {
        background: rgba(14, 15, 18, 0.85);
    }

    .site-header.is-scrolled {
        background: rgba(14, 15, 18, 0.45);
        backdrop-filter: blur(20px) saturate(1.2);
        -webkit-backdrop-filter: blur(20px) saturate(1.2);
        border-bottom-color: rgba(74, 115, 168, 0.10);
        box-shadow: 0 1px 0 rgba(253, 137, 80, 0.08),
                    0 6px 22px rgba(0, 0, 0, 0.18);
    }

    .site-header.is-scrolled .nav {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .site-header.is-scrolled .nav-logo img,
    .site-header.is-scrolled .nav-logo svg {
        height: 28px;
    }

    /* Mobile menu toggle button shrinks too */
    .site-header.is-scrolled .nav-toggle {
        transform: scale(0.9);
        transform-origin: center right;
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

@media (max-width: 480px) {
    .site-header.is-scrolled {
        background: rgba(14, 15, 18, 0.4);
    }

    .site-header.is-scrolled .nav {
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .site-header.is-scrolled .nav-logo img,
    .site-header.is-scrolled .nav-logo svg {
        height: 26px;
    }
}

/* When mobile menu is open, restore solid background even if scrolled
   so links stay readable */
@media (max-width: 768px) {
    .site-header.is-scrolled .nav-links.is-open,
    .site-header.is-scrolled:has(.nav-links.is-open) {
        background: rgba(14, 15, 18, 0.95);
    }
}

/* --- Cycle wheel: tighter sizing at narrow widths ---------------------- */
@media (max-width: 480px) {
    .pw-cycle-wheel {
        max-width: 320px;
    }
    .pw-cycle-node {
        min-width: 96px;
        max-width: 110px;
        padding: 0.45rem 0.55rem;
    }
    .pw-cycle-label {
        font-size: 0.78rem;
        line-height: 1.1;
    }
    .pw-cycle-num {
        font-size: 8.5px;
        margin-bottom: 2px;
    }
    .pw-cycle-center {
        width: 36%;
    }
    .pw-cycle-center-eyebrow {
        font-size: 8.5px;
        margin-bottom: 3px;
    }
    .pw-cycle-center-name {
        font-size: 1.05rem;
    }
}

@media (max-width: 360px) {
    .pw-cycle-wheel {
        max-width: 290px;
    }
    .pw-cycle-node {
        min-width: 88px;
        max-width: 100px;
        padding: 0.4rem 0.5rem;
    }
    .pw-cycle-label {
        font-size: 0.72rem;
    }
}

/* --- Long stage names that might wrap awkwardly on cycle nodes -------- */
.pw-cycle-label {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* --- Audience card icon: ensure 80px size sticks on mobile ------------- */
@media (max-width: 720px) {
    .audience-card-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1rem;
    }
}

/* --- Fix: ensure overflow-x doesn't break sticky positioning ----------- */
html { overflow-x: clip; }
body { overflow-x: clip; }

@supports not (overflow-x: clip) {
    body { overflow-x: hidden; }
}

/* --- Position relative on .nav so absolute mobile menu anchors -------- */
.nav { position: relative; }

/* --- CTA buttons stack vertically on smallest screens ----------------- */
@media (max-width: 380px) {
    .cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .cta-row .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Section padding tighter on small mobile -------------------------- */
@media (max-width: 480px) {
    main section {
        padding: 2.5rem 0;
    }
    .hero {
        padding: 4rem 0 3rem;
    }
}

/* --- Footer stacks on small screens ----------------------------------- */
@media (max-width: 480px) {
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --- Hero illustration tighter in landscape orientation --------------- */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        padding: 4rem 0 3rem;
    }
}
