/* ============================================
   Page Hero — inner pages
   A quieter echo of the home hero: navy ground, craft photograph,
   grain, brass hairlines. Left-aligned, editorial.
   ============================================ */

.page-hero {
    position: relative;
    min-height: 68vh;
    min-height: 68svh;
    padding: calc(96px + 3rem + 4rem) 0 5.5rem;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #012647;
    isolation: isolate;
}

/* ---------- Media layers ---------- */
.page-hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
.page-hero__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: pageHeroSettle 2.6s var(--ease-out) forwards;
    filter: saturate(0.9);
}
.page-hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 16, 28, 0.9) 0%, rgba(8, 16, 28, 0.72) 42%, rgba(8, 16, 28, 0.35) 100%),
        linear-gradient(180deg, rgba(8, 16, 28, 0.55) 0%, rgba(8, 16, 28, 0) 35%, rgba(1, 38, 71, 0.85) 100%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 169, 97, 0.14) 0%, transparent 55%);
}
.page-hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Brass hairline along the base, drawn in on load */
.page-hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, var(--c-brass) 0%, rgba(201, 169, 97, 0.35) 50%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    animation: pageHeroLine 1.8s var(--ease-out) 0.6s forwards;
}

/* Corner flourish — echoes the quote block on the home page */
.page-hero__corner {
    position: absolute;
    right: var(--gutter);
    bottom: 2rem;
    width: 56px;
    height: 56px;
    border-right: 1px solid var(--c-brass);
    border-bottom: 1px solid var(--c-brass);
    opacity: 0;
    animation: pageHeroFade 1.2s var(--ease-out) 1s forwards;
}

/* ---------- Content ---------- */
.page-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.page-hero__inner > * {
    opacity: 0;
    transform: translateY(24px);
    animation: pageHeroRise 1.2s var(--ease-out) forwards;
}
.page-hero__crumbs   { animation-delay: 0.15s !important; }
.page-hero__eyebrow  { animation-delay: 0.3s !important; }
.page-hero__title    { animation-delay: 0.45s !important; }
.page-hero__lede     { animation-delay: 0.65s !important; }
.page-hero__meta     { animation-delay: 0.8s !important; }

.page-hero__crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(244, 239, 230, 0.45);
}
.page-hero__crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.page-hero__crumbs li + li::before {
    content: '';
    width: 14px;
    flex-shrink: 0;
    height: 1px;
    background: rgba(201, 169, 97, 0.6);
}
.page-hero__crumbs a { transition: color 0.3s var(--ease-out); }
.page-hero__crumbs a:hover { color: var(--c-brass); }
.page-hero__crumbs li:last-child { min-width: 0; }
.page-hero__crumbs [aria-current] {
    color: rgba(244, 239, 230, 0.75);
    /* Long article titles truncate rather than wrap */
    max-width: 42ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-brass);
    margin-bottom: 1.75rem;
}
.page-hero__eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--c-brass);
}

.page-hero__title {
    font-family: var(--f-serif);
    font-weight: 300;
    font-size: clamp(2.125rem, 5vw, 4.25rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #f4efe6;
    max-width: 18ch;
    text-wrap: balance;
}
.page-hero__title em {
    font-style: italic;
    color: var(--c-brass);
}

.page-hero__lede {
    margin-top: 1.75rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(244, 239, 230, 0.72);
    max-width: 54ch;
    text-shadow: 0 1px 14px rgba(10, 18, 30, 0.6);
}

.page-hero__meta {
    margin-top: 1.5rem;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: rgba(244, 239, 230, 0.5);
}

/* ---------- Keyframes ---------- */
@keyframes pageHeroSettle { to { transform: scale(1); } }
@keyframes pageHeroRise   { to { opacity: 1; transform: translateY(0); } }
@keyframes pageHeroFade   { to { opacity: 0.7; } }
@keyframes pageHeroLine   { to { transform: scaleX(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .page-hero {
        min-height: 60vh;
        min-height: 60svh;
        padding: calc(96px + 2rem + 3rem) 0 4rem;
    }
    .page-hero__corner { display: none; }
}
@media (max-width: 540px) {
    .page-hero { padding-bottom: 3.5rem; }
    .page-hero__crumbs ol { margin-bottom: 1.75rem; flex-wrap: nowrap; }
    .page-hero__crumbs li { flex-shrink: 0; }
    .page-hero__crumbs li:last-child { flex-shrink: 1; }
    .page-hero__lede { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .page-hero__photo { transform: none; }
    .page-hero__inner > *,
    .page-hero__corner { opacity: 1; transform: none; }
    .page-hero::after { transform: scaleX(1); }
}
