:root {
    --ink: #1f2a37;
    --muted: #5b6b7b;
    --line: #d7e0e8;
    --soft: #eef3f7;
    --panel: #fbfdff;
    --brand: #0f5c7a;
    --brand-deep: #12384f;
    --accent: #d8a24c;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background-color: #001a33;
    background:
        radial-gradient(circle at top left, rgba(216, 162, 76, 0.14), transparent 28%),
        linear-gradient(180deg, #edf3f8 0%, #f8fbfd 100%);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

.site-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px;
}

.site-header {
    position: sticky;
    top: max(0px, env(safe-area-inset-top));
    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 0 -24px 28px;
    width: 100%;
    padding: 10px 20px;
    gap: 20px;
    background: rgba(248, 251, 253, 0.92);
    border-bottom: 1px solid rgba(215, 224, 232, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
        opacity 320ms ease,
        transform 320ms ease,
        visibility 320ms ease;
    will-change: opacity, transform;
}

.navbar-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    visibility: hidden;
}

.navbar-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
}

.header-quote {
    font-size: 14px;
    line-height: 1.6;
    color: var(--brand-deep);
    max-width: 360px;
    flex: 0 1 360px;
}

.header-quote strong {
    display: block;
    font-weight: 600;
}

.header-quote span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.header-tools {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.site-nav {
    display: flex;
    gap: 18px;
    font-size: 14px;
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.lang-switch a {
    border: 0;
    background: transparent;
    padding: 8px 12px;
    font: inherit;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
}

.lang-switch a + a {
    border-left: 1px solid var(--line);
}

.lang-switch .is-active {
    color: var(--brand-deep);
    background: rgba(15, 92, 122, 0.08);
}

.hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: stretch;
    padding: 44px 0 56px;
    border-top: 1px solid var(--line);
}

.hero-copy-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--brand);
    font-size: 14px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: 62px;
    line-height: 1.02;
    color: var(--brand-deep);
}

.hero-summary {
    max-width: 640px;
    margin: 24px 0 0;
    font-size: 19px;
    color: var(--muted);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 15px;
}

.hero-meta span::before {
    content: "•";
    margin-right: 8px;
    color: var(--accent);
}

.hero-meta span:first-child::before { content: ""; margin: 0; }

.hero-aside {
    background: linear-gradient(180deg, rgba(15, 92, 122, 0.06), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(15, 92, 122, 0.12);
    padding: 24px;
    min-height: 100%;
}

.hero-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid rgba(15, 92, 122, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-deep);
    font-size: 13px;
    letter-spacing: 0.4px;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-bottom: 18px;
}

.photo-caption {
    font-size: 14px;
    color: var(--muted);
}

.section-band {
    padding: 36px 0;
    border-top: 1px solid var(--line);
}

.welcome-panel {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 20px;
    margin-top: 28px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 251, 0.95));
    border: 1px solid var(--line);
}

.welcome-panel h3 {
    margin: 0 0 8px;
    font-size: 24px;
    color: var(--brand-deep);
}

.welcome-panel p {
    margin: 0;
    color: var(--muted);
}

.welcome-side {
    padding-left: 18px;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.welcome-side strong {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand);
}

.welcome-side span {
    color: var(--muted);
    font-size: 15px;
}

.section-header {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
}

.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--brand);
}

.section-body p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.focus-card {
    padding: 22px 0 0;
    border-top: 2px solid var(--brand-deep);
}

.focus-card h3,
.info-column h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--ink);
}

.focus-card p,
.info-column p {
    margin: 0;
    color: var(--muted);
}

.focus-card:hover {
    transform: translateY(-2px);
    transition: transform 180ms ease;
}

.two-column {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    margin-top: 10px;
}

.info-column ul {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--muted);
}

.info-column li { margin-bottom: 8px; }

.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    margin-top: 14px;
}

.contact-item {
    font-size: 16px;
    color: var(--muted);
}

.quote-footer {
    padding: 40px 0 20px;
    border-top: 1px solid var(--line);
    font-style: italic;
    color: #355d58;
}

.quote-footer p {
    margin: 0;
    max-width: 760px;
}

.quote-footer small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-style: normal;
}

#hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background-color: #001a33;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    isolation: isolate;
    z-index: 0;
}

#hero-section .hero-bg-placeholder,
#hero-section .hero-bg,
#hero-section .hero-overlay {
    position: absolute;
    inset: 0;
}

#hero-section .hero-bg-placeholder {
    z-index: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(32, 78, 128, 0.35), transparent 42%),
        linear-gradient(180deg, #001a33 0%, #001427 100%);
}

#hero-section .hero-bg {
    z-index: 1;
    background-color: #001a33;
    background-image: url("images/first_page_background.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    animation: heroKenBurns 20s ease-in-out infinite alternate;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

#hero-section .hero-overlay {
    z-index: 2;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(0, 26, 51, 0.18) 30%,
            rgba(0, 12, 28, 0.56) 68%,
            rgba(0, 8, 20, 0.84) 100%
        );
}

#hero-section .hero-inner {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(24px, env(safe-area-inset-top))
        24px
        max(36px, env(safe-area-inset-bottom))
        24px;
}

#hero-section .hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    width: min(1100px, 100%);
    margin: 0 auto;
}

#hero-section .hero-initials {
    color: #ffffff;
    font-family: "Arial Black", "Segoe UI", "Helvetica Neue", sans-serif;
    font-style: normal;
    font-weight: 900;
    font-size: clamp(42px, 8vw, 112px);
    line-height: 0.95;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

#hero-section .hero-divider {
    width: 5px;
    height: clamp(96px, 18vw, 180px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.62));
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

#hero-section .hero-copy-block {
    text-align: left;
    max-width: 720px;
}

#hero-section .hero-title {
    margin: 0;
    color: #ffffff;
    font-family: "Arial Black", "Segoe UI", "Helvetica Neue", sans-serif;
    font-style: italic;
    font-weight: 800;
    font-size: clamp(38px, 5.6vw, 86px);
    line-height: 1.02;
    letter-spacing: 0.02em;
    text-wrap: balance;
    -webkit-font-smoothing: antialiased;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

#hero-section .hero-author {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(14px, 1.5vw, 18px);
    font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-align: right;
    -webkit-font-smoothing: antialiased;
}

#hero-section .hero-author::before {
    content: "— ";
}

#hero-section .scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 4;
    border: 0;
    background: transparent;
    padding: 12px;
    cursor: pointer;
}

#hero-section .image-credit {
    position: absolute;
    right: 15px;
    bottom: 15px;
    z-index: 10;
    max-width: min(520px, calc(100% - 30px));
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 300;
    line-height: 1.5;
    text-align: right;
    transition: opacity 0.3s ease;
}

#hero-section .image-credit:hover {
    opacity: 0.9;
}

#hero-section .scroll-arrow {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    animation: scrollBounce 1.8s ease-in-out infinite;
}

#formal-content {
    position: relative;
    z-index: 5;
    background: linear-gradient(180deg, #edf3f8 0%, #f8fbfd 100%);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding-top: 0;
    transition: padding-top 240ms ease;
}

@keyframes heroKenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.85;
    }
    50% {
        transform: rotate(45deg) translateY(8px);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .hero,
    .section-header,
    .two-column,
    .focus-grid,
    .welcome-panel {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 46px; }
    .site-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .header-tools {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .welcome-side {
        padding-left: 0;
        border-left: 0;
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 768px) {
    .site-shell {
        padding: 0 14px 20px;
    }

    #formal-content {
        padding-top: 0;
    }

    .site-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0;
        width: 100%;
        padding: 8px 15px;
        min-height: 60px;
        height: 60px;
        align-items: center;
        overflow: hidden;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: nowrap;
        background: rgba(244, 245, 246, 0.94);
        border-bottom: 1px solid rgba(215, 224, 232, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .site-header.is-collapsed {
        min-height: 60px;
        height: 60px;
    }

    .site-header .header-quote,
    .site-header .site-nav {
        display: none !important;
    }

    .header-tools {
        width: max-content;
        min-width: 0;
        display: inline-flex;
        flex-direction: row !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0 auto;
    }

    .header-tools::before {
        content: "B.R.";
        display: block;
        flex: 0 0 auto;
        font-family: "Arial Black", "Segoe UI", sans-serif;
        font-size: 16px;
        font-weight: 900;
        line-height: 1;
        color: var(--brand-deep);
        white-space: nowrap;
        margin-right: 8px;
    }

    .lang-switch {
        flex: 0 0 auto;
        display: inline-flex;
        flex-wrap: nowrap;
        white-space: nowrap;
        max-width: 100%;
        overflow: hidden;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.82);
    }

    .lang-switch a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        height: 32px;
        padding: 0 7px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 640px) {
    .site-shell { padding: 16px; }
    .hero { padding: 28px 0 34px; gap: 20px; }
    h1 { font-size: 38px; }
    .hero-summary { font-size: 17px; }
    .site-nav { flex-wrap: wrap; gap: 10px 14px; }
    #hero-section .hero-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
    #hero-section .hero-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
    #hero-section .hero-divider {
        width: 84px;
        height: 4px;
    }
    #hero-section .hero-title {
        font-size: clamp(30px, 9vw, 54px);
    }
    #hero-section .image-credit {
        right: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #hero-section .hero-bg,
    #hero-section .scroll-arrow {
        animation: none;
    }
}
