/* =================================================================
   ImranAhmedKhanNiazi.pk — Editorial Design System
   Palette:  deep emerald + warm ivory + brass gold + subtle crimson
   Type:     Playfair Display (serif, display) + Inter (sans, body)
   Feel:     hardcover biography / statesman editorial
================================================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Greens */
    --green-deep: #0B3D2E;
    --green-forest: #14532D;
    --green-emerald: #047857;
    --green-bright: #10B981;
    --green-mist: #ECFDF5;

    /* Warm neutrals (paper feel) */
    --ivory: #FBF8F1;
    --cream: #F5EFE3;
    --parchment: #EEE7D3;
    --white: #FFFFFF;

    /* Gold / brass accent */
    --gold: #B8893B;
    --gold-bright: #D4A84B;
    --gold-soft: #F5E8C7;
    --gold-line: rgba(184, 137, 59, 0.35);

    /* Subtle warm accent (used sparingly, like a wax seal) */
    --crimson: #8A1C2B;
    --crimson-soft: #F5E3E5;

    /* Ink / text */
    --ink: #0F1B15;
    --ink-soft: #1F2A23;
    --slate: #3E4A44;
    --slate-soft: #6B766F;
    --slate-muted: #9AA39D;

    /* Borders / lines */
    --border: #E7E1CF;
    --border-strong: #CFC7AE;

    /* Shadows (warm, not blue-gray) */
    --shadow-xs: 0 1px 2px rgba(43, 32, 8, 0.06);
    --shadow-sm: 0 2px 6px rgba(43, 32, 8, 0.08);
    --shadow: 0 6px 18px rgba(43, 32, 8, 0.10);
    --shadow-md: 0 12px 32px rgba(43, 32, 8, 0.12);
    --shadow-lg: 0 24px 60px rgba(43, 32, 8, 0.18);

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    /* Type scale */
    --font-serif: 'Playfair Display', 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

    /* Layout */
    --container: 1200px;
    --container-narrow: 880px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Subtle paper texture via tiny gradient */
    background-image:
        radial-gradient(circle at 20% 10%, rgba(184, 137, 59, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(11, 61, 46, 0.04) 0%, transparent 40%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--green-deep);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

a:hover {
    color: var(--green-emerald);
}

::selection {
    background: var(--gold-soft);
    color: var(--ink);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.15;
}

p {
    font-family: var(--font-sans);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.rule {
    display: block;
    width: 80px;
    height: 2px;
    background: var(--gold);
    margin: 1.5rem auto;
    border: none;
}

/* ---------- Layout ---------- */

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    position: relative;
}

/* =================================================================
   NAVIGATION — editorial masthead style
================================================================= */

.navbar {
    background: rgba(251, 248, 241, 0.92);
    backdrop-filter: saturate(1.5) blur(12px);
    -webkit-backdrop-filter: saturate(1.5) blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(43, 32, 8, 0.06);
    padding: 0.75rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-deep);
    letter-spacing: -0.015em;
    line-height: 1;
    white-space: nowrap;
}

.logo a {
    color: inherit;
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-mark {
    color: var(--gold);
    font-size: 0.9em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links a:hover {
    color: var(--green-deep);
}

.nav-links a.active {
    color: var(--green-deep);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    width: 42px;
    height: 42px;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--green-deep);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

/* =================================================================
   BUTTONS
================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green-deep);
    color: var(--ivory);
    border-color: var(--green-deep);
}

.btn-primary:hover {
    background: var(--green-forest);
    color: var(--ivory);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: var(--gold-bright);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--ivory);
    border-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ivory);
    color: var(--ivory);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--green-deep);
    border-color: var(--green-deep);
}

.btn-ghost:hover {
    background: var(--green-deep);
    color: var(--ivory);
}

/* =================================================================
   HERO (home)
================================================================= */

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(11, 27, 21, 0.78) 0%, rgba(11, 61, 46, 0.55) 55%, rgba(15, 27, 21, 0.72) 100%),
        url('../images/PM.jpeg') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(184, 137, 59, 0.15) 0%, transparent 50%),
        linear-gradient(to bottom, transparent 60%, rgba(11, 27, 21, 0.4) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    color: var(--ivory);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold-bright);
    margin-bottom: 2rem;
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold-bright);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--ivory);
    max-width: 18ch;
}

.hero-title em {
    font-style: italic;
    color: var(--gold-bright);
    font-weight: 500;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.6;
    color: rgba(251, 248, 241, 0.88);
    max-width: 46ch;
    margin-bottom: 2.75rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--ivory);
    opacity: 0.6;
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: bob 2.5s ease-in-out infinite;
}

.hero-scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold-bright), transparent);
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

/* =================================================================
   STATS STRIP
================================================================= */

.stats-strip {
    background: var(--green-deep);
    color: var(--ivory);
    padding: 3.5rem 0;
    position: relative;
}

.stats-strip::before,
.stats-strip::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-line);
}

.stats-strip::before { top: 0; }
.stats-strip::after { bottom: 0; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 0 1rem;
    border-right: 1px solid rgba(184, 137, 59, 0.25);
}

.stat-item:last-child {
    border-right: none;
}

.stat-value {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(251, 248, 241, 0.75);
}

/* =================================================================
   CARDS — editorial feature tiles
================================================================= */

.content-cards {
    padding: 7rem 0;
    background: var(--ivory);
}

.section-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.section-intro h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--ink);
    margin-bottom: 1rem;
}

.section-intro p {
    color: var(--slate);
    font-size: 1.08rem;
    line-height: 1.7;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    transition: all 0.45s var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-deep), var(--gold), var(--green-deep));
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: 3;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--cream);
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 27, 21, 0.25) 0%, transparent 50%);
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.card:hover .card-image img {
    transform: scale(1.06);
}

.card-content {
    padding: 2rem 2rem 2.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
    color: var(--ink);
    font-weight: 700;
}

.card-content p {
    color: var(--slate);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.65;
    font-size: 1rem;
}

.card-link {
    color: var(--green-deep);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s var(--ease);
}

.card-link::after {
    content: '→';
    transition: transform 0.3s var(--ease);
}

.card-link:hover {
    color: var(--gold);
}

.card-link:hover::after {
    transform: translateX(6px);
}

/* =================================================================
   PAGE HEADER (subpages)
================================================================= */

.page-header {
    background:
        linear-gradient(135deg, rgba(11, 27, 21, 0.72) 0%, rgba(11, 61, 46, 0.62) 100%),
        var(--green-deep);
    color: var(--ivory);
    padding: 7rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(184, 137, 59, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.page-header > * {
    position: relative;
    z-index: 1;
}

.page-header .eyebrow {
    color: var(--gold-bright);
    justify-content: center;
}

.page-header .eyebrow::before {
    background: var(--gold-bright);
}

.page-header h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--ivory);
    letter-spacing: -0.02em;
}

.page-header h1 em {
    font-style: italic;
    color: var(--gold-bright);
    font-weight: 500;
}

.page-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    font-weight: 400;
    opacity: 0.92;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.65;
    color: rgba(251, 248, 241, 0.92);
}

/* =================================================================
   PAGE CONTENT  — editorial long-form
================================================================= */

.page-content {
    padding: 6rem 0;
    background: var(--ivory);
}

.content-section {
    margin-bottom: 5.5rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Ensure chapter in-page links land below sticky navbar */
.content-section[id^="ch"] {
    scroll-margin-top: 7.5rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.content-grid.reverse > .content-text,
.content-grid.reverse > .biography-text {
    order: 2;
}

.content-grid.reverse > .content-image,
.content-grid.reverse > .biography-image {
    order: 1;
}

.content-text h2,
.content-text-full h2 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    color: var(--ink);
    margin-bottom: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    position: relative;
}

.content-text h2::before,
.content-text-full h2::before {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 1.25rem;
}

.content-text-full h2::before {
    margin-left: 0;
}

.content-text p,
.content-text-full p {
    color: var(--slate);
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 1.4rem;
    font-family: var(--font-sans);
}

.content-text p:last-child,
.content-text-full p:last-child {
    margin-bottom: 0;
}

.content-text-full {
    max-width: 820px;
    margin: 0 auto;
}

.content-image {
    position: relative;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: transform 0.5s var(--ease);
}

.content-image::after {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: -1rem;
    bottom: -1rem;
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.5;
    transition: all 0.4s var(--ease);
}

.content-image:hover::after {
    top: 1.25rem;
    left: 1.25rem;
    right: -0.75rem;
    bottom: -0.75rem;
    opacity: 0.8;
}

.image-caption {
    margin-top: 1rem;
    color: var(--slate-soft);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    font-family: var(--font-serif);
}

/* =================================================================
   BIOGRAPHY (used on index + biography page)
================================================================= */

.section {
    padding: 6.5rem 0;
    background: var(--cream);
    position: relative;
}

.section-title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    color: var(--ink);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.biography-section {
    margin-bottom: 5rem;
}

.biography-section:last-child {
    margin-bottom: 0;
}

.biography-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.biography-grid.reverse > .biography-text {
    order: 2;
}

.biography-grid.reverse > .biography-image {
    order: 1;
}

.biography-text h3,
.biography-text-full h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    color: var(--ink);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.biography-text h3::before,
.biography-text-full h3::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-bottom: 1rem;
}

.biography-text p,
.biography-text-full p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--slate);
    margin-bottom: 1.4rem;
    font-family: var(--font-sans);
}

.biography-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.biography-text-full {
    max-width: 820px;
    margin: 0 auto;
}

/* =================================================================
   QUOTE BLOCK
================================================================= */

.quote-block {
    background: var(--cream);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quote-block::before,
.quote-block::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 800px;
    height: 1px;
    background: var(--gold-line);
}

.quote-block::before { top: 2rem; }
.quote-block::after { bottom: 2rem; }

.quote-mark {
    font-family: var(--font-serif);
    font-size: 6rem;
    color: var(--gold);
    line-height: 0.5;
    margin-bottom: 1.25rem;
    opacity: 0.55;
}

.quote-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.75vw, 2.25rem);
    font-style: italic;
    color: var(--ink);
    line-height: 1.35;
    max-width: 880px;
    margin: 0 auto 1.75rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.quote-attribution {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

/* =================================================================
   GALLERY
================================================================= */

.image-gallery {
    margin: 5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease);
    background: var(--white);
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 0 var(--gold);
    transition: box-shadow 0.3s var(--ease);
    pointer-events: none;
    border-radius: var(--radius-md);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-item:hover::after {
    box-shadow: inset 0 0 0 3px var(--gold);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* =================================================================
   VIDEO SECTION (single embedded video on page)
================================================================= */

.video-section {
    margin: 6rem 0 3rem;
    text-align: center;
}

.video-section h2 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    color: var(--ink);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.video-section h2::before {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 1.25rem;
}

.video-subtitle {
    color: var(--slate);
    font-size: 1.08rem;
    margin-bottom: 2.5rem;
    font-family: var(--font-sans);
}

.video-wrapper {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: var(--ink);
    border: 1px solid var(--border-strong);
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =================================================================
   FEATURED VIDEOS TEASER (home page)
================================================================= */

.video-teaser {
    padding: 7rem 0;
    background:
        linear-gradient(135deg, #0a2e22 0%, #102b22 55%, #0a2e22 100%);
    color: var(--ivory);
    position: relative;
    overflow: hidden;
}

.video-teaser::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(184, 137, 59, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.10) 0%, transparent 45%);
    pointer-events: none;
}

.video-teaser > .container {
    position: relative;
    z-index: 1;
}

.video-teaser .eyebrow {
    color: var(--gold-bright);
    justify-content: center;
    display: flex;
}

.video-teaser .eyebrow::before {
    background: var(--gold-bright);
}

.video-teaser-inner {
    text-align: center;
}

.video-teaser h2 {
    font-size: clamp(2rem, 3.5vw, 2.85rem);
    color: var(--ivory);
    margin-bottom: 1.25rem;
    max-width: 24ch;
    margin-left: auto;
    margin-right: auto;
}

.video-teaser h2 em {
    font-style: italic;
    color: var(--gold-bright);
    font-weight: 500;
}

.video-teaser-lead {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(251, 248, 241, 0.82);
    max-width: 60ch;
    margin: 0 auto 3rem;
}

.video-teaser-meta-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin: 2.5rem auto 3rem;
    max-width: 780px;
    padding: 2rem;
    border-top: 1px solid rgba(184, 137, 59, 0.25);
    border-bottom: 1px solid rgba(184, 137, 59, 0.25);
}

.video-teaser-meta {
    text-align: center;
}

.video-teaser-meta strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1;
    margin-bottom: 0.35rem;
    font-variant-numeric: tabular-nums;
}

.video-teaser-meta span {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(251, 248, 241, 0.72);
}

/* =================================================================
   JOURNEY CTA BAND (biography / cross-page)
================================================================= */

.journey-cta {
    background: var(--cream);
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.journey-cta::before,
.journey-cta::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-line);
}

.journey-cta::before { top: 0; }
.journey-cta::after { bottom: 0; }

.journey-cta .eyebrow {
    justify-content: center;
    display: flex;
}

.journey-cta h2 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    color: var(--ink);
    margin-bottom: 1.25rem;
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
}

.journey-cta-lead {
    font-family: var(--font-sans);
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--slate);
    max-width: 58ch;
    margin: 0 auto 2.5rem;
}

/* Chapter cards (used on biography/home) */
.chapter-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.chapter-nav-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: left;
    text-decoration: none;
    color: var(--ink);
    transition: all 0.35s var(--ease);
    position: relative;
    overflow: hidden;
}

.chapter-nav-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.chapter-nav-card .chapter-num {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.chapter-nav-card .chapter-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.75rem;
    line-height: 1.25;
    display: block;
}

.chapter-nav-card .chapter-arrow {
    color: var(--green-deep);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s var(--ease);
    margin-top: 0.25rem;
}

.chapter-nav-card:hover .chapter-arrow {
    gap: 0.65rem;
    color: var(--gold);
}

/* =================================================================
   PORTRAIT + QUOTE (home page upgrade)
================================================================= */

.portrait-quote {
    padding: 6rem 2rem;
    background: var(--cream);
    position: relative;
}

.portrait-quote::before,
.portrait-quote::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-line);
}

.portrait-quote::before { top: 0; }
.portrait-quote::after { bottom: 0; }

.portrait-quote-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
}

.portrait-quote-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 5;
    position: relative;
}

.portrait-quote-img::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(184, 137, 59, 0.15);
    border-radius: var(--radius-md);
    pointer-events: none;
}

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

.portrait-quote-body .eyebrow {
    margin-bottom: 1.25rem;
}

.portrait-quote-body blockquote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 1.75rem;
    padding: 0;
    border: none;
    position: relative;
}

.portrait-quote-body blockquote::before {
    content: '\201C';
    position: absolute;
    top: -2.5rem;
    left: -0.5rem;
    font-size: 5rem;
    color: var(--gold);
    font-family: var(--font-serif);
    line-height: 1;
    opacity: 0.35;
    font-style: normal;
}

.portrait-quote-body cite {
    display: block;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    color: var(--slate);
    text-transform: uppercase;
    padding-top: 1rem;
    border-top: 1px solid var(--gold-line);
    max-width: 380px;
}

/* =================================================================
   VIDEO DUO (two videos side-by-side, e.g. jalsa singing)
================================================================= */

.video-duo-section {
    padding: 6rem 2rem;
    background: var(--ivory);
    text-align: center;
}

.video-duo-intro {
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.video-duo-intro .eyebrow {
    justify-content: center;
    display: flex;
    margin-bottom: 1rem;
}

.video-duo-intro h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.video-duo-intro p {
    color: var(--slate);
    font-size: 1.05rem;
    line-height: 1.65;
    font-family: var(--font-sans);
}

.video-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.video-duo-item {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.video-duo-item video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border-radius: var(--radius);
    background: var(--ink);
    box-shadow: var(--shadow);
}

.video-duo-caption {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.98rem;
    color: var(--slate);
    text-align: center;
    margin-top: 1.15rem;
    line-height: 1.55;
    padding: 0 0.5rem;
}

/* =================================================================
   LEDGER (On the Record — accomplishments infographic)
================================================================= */

.ledger-section {
    padding: 7rem 2rem 5rem;
    background: var(--ivory);
}

.ledger-intro {
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.ledger-intro .eyebrow {
    justify-content: center;
    display: flex;
    margin-bottom: 1.25rem;
}

.ledger-intro h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.ledger-intro h2 em {
    font-style: italic;
    color: var(--green-deep);
}

.ledger-intro p {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--slate);
    margin: 0;
}

.ledger-figure {
    margin: 0 auto;
    max-width: 640px;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.ledger-figure:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ledger-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.ledger-figure figcaption {
    margin-top: 1rem;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--slate-soft);
}

@media (max-width: 640px) {
    .ledger-section {
        padding: 5rem 1.25rem 3.5rem;
    }
    .ledger-figure {
        padding: 0.85rem;
    }
}

/* =================================================================
   POSTSCRIPT (The Chapter Still Being Written — leadership close)
================================================================= */

.postscript {
    padding: 7rem 2rem 6rem;
    background:
        linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.postscript-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.postscript-rule {
    width: 64px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 2.25rem;
}

.postscript-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    color: var(--ink);
    margin-bottom: 2.75rem;
    line-height: 1.25;
    font-style: italic;
    font-weight: 500;
}

.postscript-image {
    margin: 0 auto 1rem;
    max-width: 680px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    filter: saturate(0.88);
}

.postscript-image img {
    display: block;
    width: 100%;
    height: auto;
}

.postscript-image-caption {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--slate-soft);
    text-align: center;
    margin-bottom: 3rem;
}

.postscript-body {
    max-width: 640px;
    margin: 0 auto;
}

.postscript-body p {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 1.5rem;
}

.postscript-body p:last-child {
    margin-bottom: 0;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--ink);
    font-size: 1.22rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gold-line);
    line-height: 1.5;
}

/* =================================================================
   PAGE HEADER — with background image variant (leadership etc.)
================================================================= */

.page-header.page-header--image {
    min-height: 62vh;
    padding: 8rem 2rem 6rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-header.page-header--image::before {
    background:
        linear-gradient(135deg, rgba(11, 27, 21, 0.55) 0%, rgba(11, 27, 21, 0.75) 100%),
        radial-gradient(circle at 20% 30%, rgba(184, 137, 59, 0.15) 0%, transparent 45%);
}

/* =================================================================
   CAREER STATS PANEL (cricket page)
================================================================= */

.stats-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 3rem 2.5rem 2.75rem;
    margin: 4.5rem auto;
    max-width: 980px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.stats-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 3rem;
    right: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--green-deep), var(--gold), var(--green-deep));
    border-radius: 0 0 3px 3px;
}

.stats-panel-title {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2.25rem;
}

.stats-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 2rem 1.5rem;
    text-align: center;
}

.stats-panel-item strong {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    color: var(--green-deep);
    line-height: 1;
    margin-bottom: 0.4rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.stats-panel-item span {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--slate);
}

/* =================================================================
   REVERSE-SWING LINEAGE (cricket page)
================================================================= */

.lineage {
    margin: 5rem auto;
    max-width: 1020px;
}

.lineage-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.lineage-intro .eyebrow {
    justify-content: center;
    display: flex;
}

.lineage-intro h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.lineage-intro p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--slate);
    font-size: 1.02rem;
    line-height: 1.65;
    font-family: var(--font-sans);
}

.lineage-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: stretch;
}

.lineage-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: all 0.35s var(--ease);
}

.lineage-card--primary {
    border-color: var(--gold);
    border-width: 2px;
    background: var(--white);
    position: relative;
}

.lineage-card--primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--gold) 0%, transparent 40%, transparent 60%, var(--gold) 100%);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0.4;
}

.lineage-arrow {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lineage-label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.lineage-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.lineage-era {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--slate);
}

/* =================================================================
   INITIATIVES GRID (leadership page)
================================================================= */

.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.initiative-card {
    background: var(--white);
    padding: 2.25rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.35s var(--ease);
    position: relative;
}

.initiative-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.initiative-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--green-deep);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    line-height: 1.2;
}

.initiative-card h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.initiative-card p {
    color: var(--slate);
    line-height: 1.65;
    font-size: 0.98rem;
    font-family: var(--font-sans);
    margin: 0;
}

/* =================================================================
   VISION LIST (leadership page bullet list)
================================================================= */

.vision-list {
    max-width: 820px;
    margin: 2.5rem auto 0;
    list-style: none;
    padding: 0;
}

.vision-list li {
    font-family: var(--font-sans);
    color: var(--slate);
    font-size: 1.05rem;
    line-height: 1.7;
    padding: 1rem 0 1rem 2.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.vision-list li:last-child {
    border-bottom: none;
}

.vision-list li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 1.6rem;
    width: 1.5rem;
    height: 2px;
    background: var(--gold);
}

/* =================================================================
   TIMELINE BAND (leadership: 1996 → 2018)
================================================================= */

.timeline-band {
    padding: 6rem 0;
    background: var(--cream);
    position: relative;
}

.timeline-band::before,
.timeline-band::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-line);
}

.timeline-band::before { top: 0; }
.timeline-band::after { bottom: 0; }

.timeline-track {
    max-width: 980px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    position: relative;
}

.timeline-item {
    background: var(--white);
    padding: 1.5rem 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: all 0.3s var(--ease);
}

.timeline-item:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.timeline-year {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.4rem;
    font-variant-numeric: tabular-nums;
}

.timeline-label {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--slate);
    line-height: 1.45;
}

/* =================================================================
   DROP CAP (biography opener)
================================================================= */

.drop-cap::first-letter {
    font-family: var(--font-serif);
    font-weight: 700;
    float: left;
    font-size: 4.25rem;
    line-height: 0.9;
    padding: 0.35rem 0.75rem 0 0;
    color: var(--green-deep);
}

/* =================================================================
   FOOTER
================================================================= */

.footer {
    background: var(--ink);
    color: rgba(251, 248, 241, 0.72);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(184, 137, 59, 0.18);
}

.footer-brand h4 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ivory);
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(251, 248, 241, 0.7);
    max-width: 40ch;
    font-family: var(--font-sans);
}

.footer-col h5 {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold-bright);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-col a {
    color: rgba(251, 248, 241, 0.75);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.25s var(--ease);
    font-family: var(--font-sans);
}

.footer-col a:hover {
    color: var(--gold-bright);
}

.footer-bottom {
    text-align: center;
    font-size: 0.88rem;
    color: rgba(251, 248, 241, 0.55);
    letter-spacing: 0.02em;
    font-family: var(--font-sans);
}

.footer-bottom p {
    margin: 0;
}

/* =================================================================
   ANIMATIONS / UTILITIES
================================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.9s var(--ease-out) both;
}

/* =================================================================
   RESPONSIVE
================================================================= */

@media (max-width: 1024px) {
    .content-grid,
    .biography-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .content-grid.reverse > .content-text,
    .content-grid.reverse > .content-image,
    .content-grid.reverse > .biography-text,
    .content-grid.reverse > .biography-image,
    .biography-grid.reverse > .biography-text,
    .biography-grid.reverse > .biography-image {
        order: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container,
    .container-narrow {
        padding: 0 1.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 68px;
        flex-direction: column;
        background: var(--ivory);
        border-top: 1px solid var(--border);
        width: 100%;
        text-align: center;
        transition: left 0.35s var(--ease);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1.25rem;
    }

    .nav-links.active {
        left: 0;
    }

    .hero {
        min-height: 82vh;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 4rem 1.5rem 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .content-cards {
        padding: 4.5rem 0;
    }

    .section,
    .page-content {
        padding: 4.5rem 0;
    }

    .page-header {
        padding: 5rem 1.5rem 4rem;
    }

    .stats-strip {
        padding: 2.5rem 0;
    }

    .stat-item {
        border-right: none !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 260px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col ul {
        align-items: center;
    }

    .quote-block {
        padding: 4rem 1.5rem;
    }

    .content-image::after {
        display: none;
    }

    .video-teaser {
        padding: 4.5rem 0;
    }

    .video-teaser-meta-row {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .chapter-nav {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .journey-cta {
        padding: 4rem 0;
    }

    .drop-cap::first-letter {
        font-size: 3.25rem;
    }

    .stats-panel {
        padding: 2rem 1.5rem;
        margin: 3rem auto;
    }

    .lineage-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lineage-arrow {
        transform: rotate(90deg);
    }

    .initiatives-grid {
        grid-template-columns: 1fr;
    }

    .timeline-band {
        padding: 4rem 0;
    }

    .timeline-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header.page-header--image {
        min-height: 50vh;
        padding: 5rem 1.5rem 4rem;
    }

    .portrait-quote {
        padding: 4rem 1.5rem;
    }

    .portrait-quote-inner {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        max-width: 500px;
    }

    .portrait-quote-body blockquote::before {
        top: -1.75rem;
        font-size: 3.5rem;
    }

    .video-duo-section {
        padding: 4rem 1.5rem;
    }

    .video-duo {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .postscript {
        padding: 4.5rem 1.5rem 4rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* =================================================================
   VIDEO CATALOG (videos.html)
   ================================================================= */

.catalog-stats {
    background: var(--ivory);
    border-bottom: 1px solid var(--border);
    padding: 1.4rem 2rem;
}

.catalog-stats-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate-soft);
}

.catalog-stats-inner span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.catalog-stats-inner span strong {
    color: var(--green-deep);
    font-weight: 700;
    font-family: var(--font-serif);
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
}

.catalog-stats-dot {
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Featured Tributes Strip --------------------------------------- */

.featured-strip {
    padding: 6rem 2rem 5rem;
    background:
        linear-gradient(135deg, #08251c 0%, #0c2c22 50%, #08251c 100%);
    color: var(--ivory);
    position: relative;
    overflow: hidden;
}

.featured-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(184, 137, 59, 0.14) 0%, transparent 48%),
        radial-gradient(circle at 88% 82%, rgba(16, 185, 129, 0.10) 0%, transparent 48%);
    pointer-events: none;
}

.featured-strip > .container {
    position: relative;
    z-index: 1;
}

.featured-strip-intro {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.featured-strip-intro .eyebrow {
    color: var(--gold-bright);
    justify-content: center;
    display: flex;
}

.featured-strip-intro .eyebrow::before {
    background: var(--gold-bright);
}

.featured-strip-intro h2 {
    font-size: clamp(2rem, 3.6vw, 3rem);
    color: var(--ivory);
    margin: 0.4rem 0 1.2rem;
    line-height: 1.1;
}

.featured-strip-intro h2 em {
    font-style: italic;
    color: var(--gold-bright);
    font-weight: 500;
}

.featured-strip-intro p {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(251, 248, 241, 0.78);
    max-width: 60ch;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

/* Featured cards = larger, premium treatment */
.featured-grid .video-card {
    background: rgba(15, 35, 27, 0.55);
    border: 1px solid rgba(184, 137, 59, 0.22);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.featured-grid .video-card:hover {
    border-color: var(--gold-bright);
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.featured-grid .video-card-body {
    padding: 1.1rem 1.25rem 1.35rem;
}

.featured-grid .video-card-tag {
    background: var(--gold-bright);
    color: var(--ink);
}

.featured-grid .video-card-title {
    color: var(--ivory);
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.25;
}

.featured-grid .video-card-source {
    color: rgba(251, 248, 241, 0.62);
}

/* Catalog Section ----------------------------------------------- */

.catalog {
    padding: 6rem 2rem 7rem;
    background: var(--ivory);
}

.catalog-controls {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-controls .eyebrow {
    justify-content: center;
    display: flex;
}

.catalog-controls h2 {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    color: var(--ink);
    margin: 0.4rem 0 1rem;
    line-height: 1.15;
}

.catalog-controls h2 em {
    font-style: italic;
    color: var(--green-deep);
    font-weight: 500;
}

.catalog-controls p {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--slate);
    margin: 0 0 2rem;
}

.filter-pills {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}

.filter-pill {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--slate);
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}

.filter-pill:hover {
    color: var(--green-deep);
    background: var(--green-mist);
}

.filter-pill.active {
    background: var(--green-deep);
    color: var(--ivory);
    box-shadow: 0 4px 12px rgba(11, 61, 46, 0.25);
}

.filter-pill .pill-count {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.72rem;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Section sub-headings inside the catalog */
.catalog-section-heading {
    grid-column: 1 / -1;
    margin: 1.5rem 0 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.catalog-section-heading:first-child {
    margin-top: 0;
}

.catalog-section-heading h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--green-deep);
    margin: 0;
    letter-spacing: -0.01em;
}

.catalog-section-heading span {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--slate-soft);
    font-weight: 600;
}

/* Video Card (base) --------------------------------------------- */

.video-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    box-shadow: var(--shadow-xs);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.video-card-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a1f17;
}

.video-card-thumb-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.55) saturate(1.1);
    transform: scale(1.2);
    z-index: 0;
}

.video-card-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s var(--ease);
}

.video-card:hover .video-card-thumb-img {
    transform: scale(1.05);
}

/* Portrait videos: contain + blurred backdrop */
.video-card[data-orientation="portrait"] .video-card-thumb-img {
    object-fit: contain;
}

/* Square videos: contain so we keep the full square visible (with light letterbox) */
.video-card[data-orientation="square"] .video-card-thumb-img {
    object-fit: contain;
}

/* Square + Portrait both want the blurred backdrop */
.video-card[data-orientation="landscape"] .video-card-thumb-bg {
    display: none;
}

/* Play icon overlay */
.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(11, 61, 46, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

.video-card-play::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 14px;
    border-color: transparent transparent transparent var(--ivory);
    margin-left: 4px;
}

.video-card:hover .video-card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Duration badge */
.video-card-duration {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.78);
    color: var(--ivory);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    padding: 0.22rem 0.5rem;
    border-radius: 4px;
    line-height: 1;
}

/* Orientation badge (top-left) */
.video-card-orient {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    line-height: 1;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.video-card-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.video-card-tag {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-soft);
    padding: 0.28rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.2rem;
}

.video-card-title {
    font-family: var(--font-serif);
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.005em;
}

.video-card-source {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--slate-soft);
    margin: 0;
    line-height: 1.4;
}

/* No-results state */
.catalog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--slate-soft);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

/* Lightbox player ----------------------------------------------- */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(8, 18, 14, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

.lightbox-inner {
    position: relative;
    width: 100%;
    max-width: 1100px;
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    /* No transform here: a transformed ancestor breaks native <video controls>
       hit-testing (scrub bar / forward seek) in several browsers. */
}

.lightbox-stage {
    position: relative;
    width: 100%;
    max-height: calc(100vh - 12rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-stage video {
    max-width: 100%;
    max-height: calc(100vh - 12rem);
    width: auto;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    background: #000;
    outline: none;
    display: block;
}

/* Portrait videos in lightbox should not get too tall */
.lightbox.is-portrait .lightbox-stage video {
    max-height: calc(100vh - 12rem);
    width: auto;
}

/* HUD toast — YouTube-style on-screen feedback for keyboard shortcuts */
.lightbox-hud {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    pointer-events: none;
    background: rgba(8, 12, 10, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
    max-width: 60%;
    white-space: nowrap;
}

.lightbox-hud.visible {
    opacity: 1;
    transform: translateY(0);
}

.lightbox-meta {
    width: 100%;
    max-width: 880px;
    text-align: center;
    color: var(--ivory);
    padding: 0.5rem 1rem;
}

.lightbox-meta-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-bright);
    background: rgba(184, 137, 59, 0.18);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    margin-bottom: 0.85rem;
}

.lightbox-meta h3 {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 600;
    color: var(--ivory);
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.lightbox-meta p {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: rgba(251, 248, 241, 0.7);
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    appearance: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--ivory);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
    z-index: 3;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: rotate(90deg);
}

/* Lock body scroll when lightbox open */
body.lightbox-open {
    overflow: hidden;
}

/* Featured ribbon (homepage replacement) ------------------------ */

.featured-videos {
    padding: 7rem 0;
    background:
        linear-gradient(135deg, #08251c 0%, #0c2c22 55%, #08251c 100%);
    color: var(--ivory);
    position: relative;
    overflow: hidden;
}

.featured-videos::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 18%, rgba(184, 137, 59, 0.14) 0%, transparent 48%),
        radial-gradient(circle at 88% 82%, rgba(16, 185, 129, 0.10) 0%, transparent 48%);
    pointer-events: none;
}

.featured-videos > .container {
    position: relative;
    z-index: 1;
}

.featured-videos-intro {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.featured-videos-intro .eyebrow {
    color: var(--gold-bright);
    justify-content: center;
    display: flex;
}

.featured-videos-intro .eyebrow::before {
    background: var(--gold-bright);
}

.featured-videos-intro h2 {
    font-size: clamp(2rem, 3.5vw, 2.85rem);
    color: var(--ivory);
    margin: 0.4rem 0 1.2rem;
    line-height: 1.1;
}

.featured-videos-intro h2 em {
    font-style: italic;
    color: var(--gold-bright);
    font-weight: 500;
}

.featured-videos-intro p {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(251, 248, 241, 0.78);
}

.featured-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.featured-videos-grid .video-card {
    background: rgba(15, 35, 27, 0.55);
    border: 1px solid rgba(184, 137, 59, 0.22);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.featured-videos-grid .video-card:hover {
    border-color: var(--gold-bright);
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.featured-videos-grid .video-card-tag {
    background: var(--gold-bright);
    color: var(--ink);
}

.featured-videos-grid .video-card-title {
    color: var(--ivory);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.25;
}

.featured-videos-grid .video-card-source {
    color: rgba(251, 248, 241, 0.62);
}

.featured-videos-cta {
    text-align: center;
}

.featured-videos-cta .btn {
    margin-top: 0.5rem;
}

/* Mobile Responsive --------------------------------------------- */

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .featured-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-strip,
    .catalog,
    .featured-videos {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .featured-strip {
        padding-top: 4.5rem;
        padding-bottom: 4rem;
    }

    .catalog {
        padding-top: 4.5rem;
        padding-bottom: 5rem;
    }

    .featured-videos {
        padding: 5rem 0;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }

    .featured-videos-grid {
        grid-template-columns: 1fr;
    }

    .filter-pills {
        padding: 0.4rem;
        max-width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-pills::-webkit-scrollbar {
        display: none;
    }

    .filter-pill {
        padding: 0.55rem 1rem;
        font-size: 0.78rem;
    }

    .video-card-title {
        font-size: 0.98rem;
    }

    .video-card-body {
        padding: 0.85rem 0.95rem 1rem;
    }

    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: -2.3rem;
        width: 34px;
        height: 34px;
    }

    .catalog-stats-inner {
        gap: 1rem;
        font-size: 0.7rem;
    }
}

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

    .video-card-body {
        padding: 0.7rem 0.8rem 0.85rem;
        gap: 0.3rem;
    }

    .video-card-title {
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .video-card-source {
        font-size: 0.72rem;
    }

    .video-card-tag {
        font-size: 0.55rem;
        padding: 0.22rem 0.45rem;
    }

    .video-card-duration {
        font-size: 0.65rem;
        padding: 0.18rem 0.4rem;
    }

    .video-card-orient {
        font-size: 0.55rem;
    }

    .catalog-section-heading h3 {
        font-size: 1.15rem;
    }
}
