/* ============================================
   Geoff Simpson FRHistS
   Modern Heritage Design — Dark Atmospheric Theme
   ============================================ */

/* --- Cascade Layers --- */
@layer reset, base, layout, components, utilities, animations;

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Reset --- */
@layer reset {
    *, *::before, *::after {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html {
        -moz-text-size-adjust: none;
        -webkit-text-size-adjust: none;
        text-size-adjust: none;
        scroll-behavior: smooth;
    }

    body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol {
        margin: 0;
    }

    ul, ol { list-style: none; }
    img, picture, svg { max-width: 100%; display: block; }
    input, button, textarea, select { font: inherit; }
    a { color: inherit; text-decoration: none; }
}

/* --- Custom Properties --- */
:root {
    /* Palette */
    --midnight:       #0a0f1e;
    --navy:           #111827;
    --navy-light:     #1a2332;
    --slate:          #1e293b;
    --raf-blue:       #1B3A5C;
    --blue-mid:       #2a5580;
    --gold:           #C5A55A;
    --gold-light:     #E8D5A0;
    --gold-dim:       rgba(197, 165, 90, 0.3);
    --maroon:         #8B1A1A;
    --cream:          #FAF8F0;
    --cream-muted:    rgba(250, 248, 240, 0.6);
    --cream-faint:    rgba(250, 248, 240, 0.08);
    --white:          #FFFFFF;
    --border:         rgba(197, 165, 90, 0.15);
    --border-hover:   rgba(197, 165, 90, 0.35);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Fluid type scale */
    --text-xs:    clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm:    clamp(0.8rem, 0.76rem + 0.2vw, 0.9375rem);
    --text-base:  clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
    --text-lg:    clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
    --text-xl:    clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
    --text-2xl:   clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
    --text-3xl:   clamp(1.7rem, 1.3rem + 1.8vw, 2.8rem);
    --text-hero:  clamp(2.5rem, 1.8rem + 3vw, 5rem);

    /* Spacing */
    --space-xs:   clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm:   clamp(0.75rem, 0.6rem + 0.7vw, 1.25rem);
    --space-md:   clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-lg:   clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
    --space-xl:   clamp(4rem, 3rem + 4vw, 7rem);

    /* Layout */
    --max-width: 1140px;
    --max-width-narrow: 780px;

    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Base --- */
@layer base {
    body {
        font-family: var(--font-body);
        font-size: var(--text-base);
        color: var(--cream);
        background-color: var(--midnight);
        line-height: 1.75;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        overflow-x: hidden;
    }

    h1, h2, h3, h4 {
        font-family: var(--font-heading);
        font-weight: 700;
        line-height: 1.2;
        color: var(--cream);
        text-wrap: balance;
    }

    h1 { font-size: var(--text-hero); letter-spacing: -0.01em; }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
    h4 { font-size: var(--text-xl); }

    p {
        margin-bottom: 1.1em;
        text-wrap: pretty;
        color: var(--cream-muted);
    }

    a {
        color: var(--gold);
        transition: color 0.3s var(--ease-out);
    }

    a:hover { color: var(--gold-light); }

    ::selection {
        background: rgba(197, 165, 90, 0.3);
        color: var(--cream);
    }

    :focus-visible {
        outline: 2px solid var(--gold);
        outline-offset: 3px;
    }
}

/* --- View Transitions --- */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: fade-out 0.25s ease;
}

::view-transition-new(root) {
    animation: fade-in 0.25s ease;
}

/* --- Layout --- */
@layer layout {
    .container {
        max-width: var(--max-width);
        margin-inline: auto;
        padding-inline: clamp(1.25rem, 4vw, 3rem);
    }

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

    .section {
        padding-block: var(--space-xl);
    }

    .section--dark {
        background-color: var(--navy);
    }

    .section--darker {
        background-color: var(--midnight);
    }

    .grid-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

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

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 200;
    pointer-events: none;
}

@supports (animation-timeline: scroll()) {
    @keyframes scrollProgress {
        from { transform: scaleX(0); }
        to   { transform: scaleX(1); }
    }
    .scroll-progress {
        animation: scrollProgress linear;
        animation-timeline: scroll();
    }
}

/* --- Header --- */
@layer components {

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s var(--ease-out),
                box-shadow 0.4s var(--ease-out);
}

.site-header.scrolled {
    background: rgba(10, 15, 30, 0.92);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    display: flex;
    flex-direction: column;
    view-transition-name: site-logo;
}

.site-logo a {
    text-decoration: none;
    color: var(--cream);
    transition: color 0.3s var(--ease-out);
}

.site-logo a:hover { color: var(--gold); }

.site-logo .name {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.site-logo .credential {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--gold);
    letter-spacing: 0.12em;
    font-weight: 500;
    line-height: 1.3;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.main-nav a {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--cream-muted);
    border-radius: 6px;
    transition: color 0.3s var(--ease-out),
                background-color 0.3s var(--ease-out);
    letter-spacing: 0.01em;
}

.main-nav a:hover {
    color: var(--cream);
    background: var(--cream-faint);
}

.main-nav a.active {
    color: var(--gold);
    background: rgba(197, 165, 90, 0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: border-color 0.3s var(--ease-out);
}

.menu-toggle:hover {
    border-color: var(--gold-dim);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--cream);
    border-radius: 1px;
    transition: transform 0.3s var(--ease-out),
                opacity 0.3s var(--ease-out);
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 15, 30, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        padding: 0.75rem 0;
    }

    .main-nav.open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
        border-radius: 0;
        font-size: var(--text-base);
    }
}

/* ========================
   HERO — Home Page
   ======================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 72px;
}

/* Atmospheric gradient background */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 50% 20%,
            rgba(27, 58, 92, 0.5) 0%,
            transparent 60%),
        radial-gradient(ellipse 100% 60% at 30% 80%,
            rgba(139, 26, 26, 0.15) 0%,
            transparent 50%),
        radial-gradient(ellipse 80% 50% at 80% 70%,
            rgba(197, 165, 90, 0.08) 0%,
            transparent 50%),
        linear-gradient(180deg,
            #060a14 0%,
            #0d1526 30%,
            #12203a 55%,
            #0d1526 80%,
            #060a14 100%);
    z-index: 0;
}

/* Subtle grain texture overlay */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* Vignette */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(6, 10, 20, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-lg) clamp(1.25rem, 4vw, 3rem);
    max-width: 850px;
}

.hero-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: block;
}

.hero h1 {
    margin-bottom: 0.2em;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.4;
}

.gold-rule {
    border: none;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold-dim) 15%,
        var(--gold) 50%,
        var(--gold-dim) 85%,
        transparent 100%);
    max-width: 160px;
    margin: var(--space-md) auto;
}

.gold-rule--wide {
    max-width: 300px;
}

.gold-rule--left {
    margin-left: 0;
    max-width: 80px;
}

.hero-intro {
    font-size: var(--text-lg);
    color: var(--cream-muted);
    max-width: 640px;
    margin-inline: auto;
    line-height: 1.8;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-dim);
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: gentleBounce 2.5s ease-in-out infinite;
}

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

@keyframes gentleBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ========================
   PAGE HEADER — Inner Pages
   ======================== */
.page-hero {
    position: relative;
    padding: calc(72px + var(--space-xl)) 0 var(--space-lg);
    text-align: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 70% at 50% 30%,
            rgba(27, 58, 92, 0.4) 0%,
            transparent 60%),
        linear-gradient(180deg,
            #060a14 0%,
            #0d1526 50%,
            var(--navy) 100%);
    z-index: 0;
}

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

.page-hero h1 {
    margin-bottom: 0.3em;
}

.page-hero .lead {
    font-size: var(--text-lg);
    color: var(--cream-muted);
    max-width: 600px;
    margin-inline: auto;
}

/* ========================
   STATS BAR
   ======================== */
.stats-bar {
    background: var(--navy);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-block: var(--space-md);
}

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

.stat-item {
    padding: var(--space-xs);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
    margin-bottom: 0.2em;
    display: block;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--cream-muted);
    line-height: 1.4;
    font-weight: 400;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
}

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

/* ========================
   INTRO / TEXT SECTIONS
   ======================== */
.intro-text {
    max-width: var(--max-width-narrow);
    margin-inline: auto;
    text-align: center;
    font-size: var(--text-lg);
    line-height: 1.85;
}

.intro-text p {
    color: var(--cream-muted);
}

.section-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    display: block;
}

.section-heading {
    margin-bottom: var(--space-md);
}

/* ========================
   FEATURED BOOK (Home)
   ======================== */
.featured-book-card {
    background: linear-gradient(135deg,
        rgba(17, 24, 39, 0.8),
        rgba(26, 35, 50, 0.8));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-md);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-md);
    align-items: start;
    max-width: 850px;
    margin-inline: auto;
    transition: border-color 0.4s var(--ease-out),
                box-shadow 0.4s var(--ease-out);
}

.featured-book-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .featured-book-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

/* ========================
   BOOK CARDS
   ======================== */
.book-cover {
    width: 180px;
    height: 260px;
    background: linear-gradient(145deg, var(--navy-light), var(--slate));
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--gold);
    text-align: center;
    padding: 1.5rem;
    line-height: 1.4;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out),
                box-shadow 0.5s var(--ease-out);
}

/* When a real image is used */
.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    border-radius: 3px;
}

.book-cover--has-image {
    padding: 0;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold-dim), transparent);
}

.book-cover--has-image::before {
    display: none;
}

/* ========================
   PORTRAIT PHOTO
   ======================== */
.portrait {
    width: clamp(140px, 20vw, 200px);
    height: clamp(140px, 20vw, 200px);
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--gold-dim);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    margin: 0 auto var(--space-md);
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

/* Bio page portrait — left-floated for wider screens */
.bio-portrait {
    float: right;
    margin: 0 0 var(--space-md) var(--space-md);
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--gold-dim);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    shape-outside: inset(0 round 12px);
}

.bio-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

@media (max-width: 500px) {
    .bio-portrait {
        float: none;
        margin: 0 auto var(--space-md);
    }
}

.book-info h3,
.book-info h2 {
    margin-bottom: 0.25em;
}

.book-meta {
    font-size: var(--text-sm);
    color: var(--gold);
    font-style: italic;
    margin-bottom: 0.8em;
    font-family: var(--font-heading);
}

.book-description {
    margin-bottom: 1.2em;
}

.book-description p:last-child {
    margin-bottom: 0;
}

.book-card {
    background: linear-gradient(135deg,
        rgba(17, 24, 39, 0.6),
        rgba(26, 35, 50, 0.6));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-md);
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: var(--space-md);
    align-items: start;
    transition: transform 0.4s var(--ease-out),
                border-color 0.4s var(--ease-out),
                box-shadow 0.4s var(--ease-out);
}

.book-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.book-card:hover .book-cover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.books-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

@media (max-width: 600px) {
    .book-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .book-cover {
        width: 150px;
        height: 220px;
    }
}

/* ========================
   BUTTONS
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--midnight);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 165, 90, 0.3);
    color: var(--midnight);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-dim);
}

.btn-outline:hover {
    background: rgba(197, 165, 90, 0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: var(--text-xs);
}

/* Arrow for links */
.btn .arrow {
    transition: transform 0.3s var(--ease-out);
}

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

/* ========================
   CONTENT CARDS / BLOCKS
   ======================== */
.content-card {
    background: linear-gradient(135deg,
        rgba(17, 24, 39, 0.6),
        rgba(26, 35, 50, 0.6));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-md);
    transition: border-color 0.4s var(--ease-out),
                box-shadow 0.4s var(--ease-out);
}

.content-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.content-card h2,
.content-card h3 {
    margin-bottom: 0.6em;
}

.content-card h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-top: 0.5em;
}

.content-card ul {
    padding: 0;
}

.content-card ul li {
    padding: 0.55em 0 0.55em 1.4em;
    position: relative;
    color: var(--cream-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.content-card ul li:last-child {
    border-bottom: none;
}

.content-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1em;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

/* ========================
   CREDENTIALS BAR (Home)
   ======================== */
.credentials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 900px;
    margin-inline: auto;
}

.credential-item {
    text-align: center;
    padding: var(--space-sm);
}

.credential-item h4 {
    font-size: var(--text-lg);
    margin-bottom: 0.3em;
    color: var(--gold);
}

.credential-item p {
    font-size: var(--text-sm);
    color: var(--cream-muted);
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .credentials {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
}

/* ========================
   CONSULTING EDITOR NOTE
   ======================== */
.callout-box {
    max-width: 750px;
    margin-inline: auto;
    padding: var(--space-md);
    background: linear-gradient(135deg,
        rgba(27, 58, 92, 0.2),
        rgba(17, 24, 39, 0.4));
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 4px 12px 12px 4px;
    text-align: center;
}

.callout-box p {
    font-size: var(--text-lg);
    color: var(--cream-muted);
    margin-bottom: 0;
}

/* ========================
   BIOGRAPHY
   ======================== */
.bio-content {
    max-width: var(--max-width-narrow);
    margin-inline: auto;
}

.bio-content > p {
    font-size: var(--text-lg);
    line-height: 1.85;
    margin-bottom: 1.5em;
}

.bio-highlight {
    background: linear-gradient(135deg,
        rgba(27, 58, 92, 0.2),
        rgba(17, 24, 39, 0.4));
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: 4px 12px 12px 4px;
    padding: var(--space-md);
    margin-block: var(--space-md);
}

.bio-highlight h3 {
    font-size: var(--text-xl);
    color: var(--gold);
    margin-bottom: 0.5em;
}

.bio-highlight p {
    margin-bottom: 0.6em;
    font-size: var(--text-base);
}

.bio-highlight p:last-child {
    margin-bottom: 0;
}

/* Milestones */
.milestones {
    max-width: var(--max-width-narrow);
    margin-inline: auto;
    padding-block: var(--space-md);
}

.milestone {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-sm);
    padding-block: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: baseline;
}

.milestone:last-child { border-bottom: none; }

.milestone-year {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gold);
    line-height: 1.3;
}

.milestone-text {
    font-size: var(--text-base);
    color: var(--cream-muted);
    line-height: 1.6;
}

@media (max-width: 500px) {
    .milestone {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* ========================
   CONTACT
   ======================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

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

.contact-item {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item:last-of-type { border-bottom: none; }

.contact-item .label {
    font-weight: 600;
    color: var(--gold);
    font-size: var(--text-sm);
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-item a {
    color: var(--cream-muted);
    transition: color 0.3s var(--ease-out);
}

.contact-item a:hover {
    color: var(--gold-light);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(197, 165, 90, 0.08);
    border: 1px solid var(--gold-dim);
    border-radius: 8px;
    color: var(--gold);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.3s var(--ease-out);
}

.social-link:hover {
    background: rgba(197, 165, 90, 0.15);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* Contact Form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gold);
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--cream);
    font-size: var(--text-base);
    transition: border-color 0.3s var(--ease-out),
                box-shadow 0.3s var(--ease-out);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 165, 90, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(250, 248, 240, 0.25);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================
   QUOTE / BLOCKQUOTE
   ======================== */
.pull-quote {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
    padding: var(--space-md);
}

.pull-quote blockquote {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--cream);
    line-height: 1.5;
    margin-bottom: 0.8em;
}

.pull-quote cite {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--gold);
    font-style: normal;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ========================
   FOOTER
   ======================== */
.site-footer {
    background: var(--midnight);
    border-top: 1px solid var(--border);
    padding-block: var(--space-md);
    text-align: center;
}

.site-footer p {
    font-size: var(--text-sm);
    color: var(--cream-muted);
    margin-bottom: 0.3em;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: var(--space-xs);
    flex-wrap: wrap;
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--cream-muted);
    transition: color 0.3s var(--ease-out);
}

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

} /* end @layer components */

/* ========================
   SCROLL REVEAL ANIMATIONS
   ======================== */
@layer animations {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--ease-out),
                    transform 0.7s var(--ease-out);
    }

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

    /* Stagger children */
    .reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
    .reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }

    /* Hero entrance */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

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

    @keyframes fade-out {
        to { opacity: 0; }
    }

    @keyframes fade-in {
        from { opacity: 0; }
    }

    .hero-content .hero-label {
        animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
    }

    .hero-content h1 {
        animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
    }

    .hero-content .gold-rule {
        animation: fadeIn 1s var(--ease-out) 0.7s both;
    }

    .hero-content .hero-subtitle {
        animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
    }

    .hero-content .hero-intro {
        animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
    }

    .scroll-indicator {
        animation: fadeIn 1s var(--ease-out) 1.5s both,
                   gentleBounce 2.5s ease-in-out 2s infinite;
    }

    /* Respect reduced motion */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }

        .reveal {
            opacity: 1;
            transform: none;
        }
    }
}
