/* Shared cinematic page heroes + section polish */
:root {
    --ph-ink: #0b1c33;
    --ph-navy: #14365c;
    --ph-accent: #c9a227;
    --ph-accent-soft: #f3e6b5;
    --ph-white: #ffffff;
    --ph-muted: #5b6b7c;
    --ph-paper: #f4f7fb;
    --ph-line: rgba(20, 54, 92, .12);
    --ph-display: "Fraunces", Georgia, "Times New Roman", serif;
    --ph-ui: "Sora", "Segoe UI", sans-serif;
}

.ph-hero {
    position: relative;
    min-height: clamp(320px, 52vh, 560px);
    display: flex;
    align-items: flex-end;
    color: var(--ph-white);
    overflow: hidden;
    background: linear-gradient(135deg, #0b1c33 0%, #14365c 55%, #1e4a78 100%);
    padding: 0;
    font-family: var(--ph-ui);
}
.ph-hero--compact {
    min-height: clamp(240px, 36vh, 380px);
}
.ph-hero--media {
    background: #0b1c33;
}
.ph-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ph-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.04);
    animation: phKen 18s ease-out forwards;
}
@keyframes phKen {
    from { transform: scale(1.08); }
    to { transform: scale(1.02); }
}
.ph-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(8, 18, 34, .9) 0%, rgba(8, 18, 34, .58) 48%, rgba(8, 18, 34, .32) 100%),
        linear-gradient(0deg, rgba(8, 18, 34, .78) 0%, transparent 46%);
}
.ph-hero-inner {
    position: relative;
    z-index: 1;
    padding: 72px 0 52px;
    max-width: 1180px;
}
.ph-hero--compact .ph-hero-inner {
    padding: 52px 0 36px;
}
.ph-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .82;
    margin-bottom: 18px;
}
.ph-crumb a,
.ph-hero .breadcrumb a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.ph-crumb a:hover,
.ph-hero .breadcrumb a:hover {
    border-bottom-color: rgba(255,255,255,.5);
}
.ph-crumb span,
.ph-hero .breadcrumb span {
    color: rgba(255,255,255,.55);
}
.ph-brand {
    font-family: var(--ph-display);
    font-size: clamp(1.2rem, 2.4vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 0 0 8px;
    color: var(--ph-accent-soft);
    text-shadow: 0 2px 18px rgba(0,0,0,.35);
    animation: phRise .75s ease both;
}
.ph-tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}
.ph-tag-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    color: var(--ph-accent-soft);
    font-size: 1.05rem;
}
.ph-tag {
    margin: 0;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(243, 230, 181, .95);
    animation: phRise .8s .05s ease both;
}
.ph-title,
.ph-hero h1 {
    font-family: var(--ph-display);
    font-size: clamp(2rem, 5vw, 3.35rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0 0 12px;
    color: #fff;
    max-width: 18ch;
    animation: phRise .85s .08s ease both;
}
.ph-hero--compact .ph-title,
.ph-hero--compact h1 {
    font-size: clamp(1.55rem, 3.5vw, 2.25rem);
    max-width: 22ch;
}
.ph-lead,
.ph-hero .lead,
.ph-hero > .container > p,
.ph-hero .ph-lead {
    font-size: clamp(1rem, 1.8vw, 1.18rem);
    line-height: 1.55;
    max-width: 40ch;
    margin: 0 0 22px;
    color: rgba(255,255,255,.92);
    animation: phRise .95s .12s ease both;
}
.ph-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: phRise 1s .16s ease both;
}
.ph-actions .btn-outline,
.ph-hero .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,.5);
}
.ph-actions .btn-outline:hover,
.ph-hero .btn-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
}
.ph-actions .btn-primary {
    background: var(--ph-accent);
    border-color: var(--ph-accent);
    color: #0b1c33;
    font-weight: 700;
}
.ph-actions .btn-primary:hover {
    background: #d4ad2f;
    border-color: #d4ad2f;
    color: #0b1c33;
}

@keyframes phRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section polish used on hub pages */
.ph-shell {
    font-family: var(--ph-ui);
    color: var(--ph-ink);
    background:
        radial-gradient(1100px 420px at 8% -8%, rgba(42, 79, 120, .07), transparent 60%),
        radial-gradient(900px 380px at 100% 12%, rgba(201, 162, 39, .05), transparent 55%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f8 50%, #f7f9fc 100%);
}
.ph-shell .section-tag,
.ph-shell .eyebrow {
    color: var(--ph-navy);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
}
.ph-shell .section-header h2,
.ph-shell .section h2,
.ph-shell .ph-sec-title {
    font-family: var(--ph-display);
    letter-spacing: -.015em;
}
.ph-feature-band {
    padding: 28px 0;
    background: linear-gradient(90deg, #0b1c33, #14365c);
    color: #fff;
}
.ph-feature-band .ph-feature-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.ph-feature {
    text-align: center;
    padding: 8px 10px;
}
.ph-feature strong {
    display: block;
    font-size: 1.15rem;
    font-family: var(--ph-display);
    color: var(--ph-accent-soft);
    margin-bottom: 4px;
}
.ph-feature span {
    font-size: .88rem;
    color: rgba(255,255,255,.78);
}
.ph-split {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
}
.ph-split figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(11, 28, 51, .14);
}
.ph-split figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}
.ph-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.ph-pillar {
    padding: 22px 20px;
    border-top: 3px solid var(--ph-accent);
    background: rgba(255,255,255,.72);
    border-radius: 0 0 14px 14px;
}
.ph-pillar i {
    color: var(--ph-navy);
    font-size: 1.35rem;
    margin-bottom: 10px;
}
.ph-pillar h3 {
    font-family: var(--ph-display);
    font-size: 1.2rem;
    margin: 0 0 8px;
}
.ph-pillar p {
    margin: 0;
    color: var(--ph-muted);
    line-height: 1.55;
    font-size: .95rem;
}

@media (max-width: 900px) {
    .ph-feature-band .ph-feature-row,
    .ph-pillars,
    .ph-split {
        grid-template-columns: 1fr;
    }
    .ph-hero-inner {
        padding: 56px 0 40px;
    }
    .ph-title,
    .ph-hero h1 {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ph-hero-media img,
    .ph-brand,
    .ph-tag,
    .ph-title,
    .ph-lead,
    .ph-actions {
        animation: none !important;
        transform: none !important;
    }
}

/* Theme-safe hero text */
html[data-site-theme] .ph-hero,
html[data-site-theme] .ph-hero h1,
html[data-site-theme] .ph-hero .ph-title,
html[data-site-theme] .ph-hero .ph-lead,
html[data-site-theme] .ph-hero .lead,
html[data-site-theme] .ph-hero .breadcrumb,
html[data-site-theme] .ph-hero .breadcrumb a,
html[data-site-theme] .ph-hero .breadcrumb span {
    color: #fff;
}
html[data-site-theme] .ph-hero .ph-lead,
html[data-site-theme] .ph-hero .lead {
    color: rgba(255,255,255,.92) !important;
}
html[data-site-theme] .ph-brand {
    color: var(--ph-accent-soft);
}
