:root {
    --ink: #14312e;
    --ink-soft: #5e716d;
    --teal-950: #082f2b;
    --teal-900: #0c3b36;
    --teal-800: #125149;
    --teal-700: #17685e;
    --teal-100: #dcebe6;
    --teal-50: #edf5f2;
    --gold: #c5a45e;
    --gold-soft: #e8d7a9;
    --cream: #f6f2e8;
    --paper: #fbfaf6;
    --white: #ffffff;
    --line: rgba(12, 59, 54, .14);
    --shadow: 0 26px 70px rgba(8, 47, 43, .13);
    --shadow-soft: 0 14px 40px rgba(8, 47, 43, .09);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shell: min(1180px, calc(100% - 48px));
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Inter, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--cream);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(197, 164, 94, .65);
    outline-offset: 3px;
}

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

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 1000;
    opacity: .022;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 25% 25%, #000 0 1px, transparent 1px),
        radial-gradient(circle at 75% 60%, #000 0 .8px, transparent 1px);
    background-size: 9px 9px, 13px 13px;
    mix-blend-mode: multiply;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--gold-soft);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow--dark {
    color: var(--teal-700);
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 700;
    transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: var(--white);
    background: var(--teal-900);
    box-shadow: 0 12px 28px rgba(8, 47, 43, .18);
}

.button--primary:hover {
    background: var(--teal-800);
}

.button--gold {
    color: var(--teal-950);
    background: var(--gold);
    box-shadow: 0 14px 34px rgba(197, 164, 94, .22);
}

.button--gold:hover {
    background: #d4b66f;
}

.button--glass {
    color: var(--white);
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(12px);
}

.button--glass:hover {
    background: rgba(255, 255, 255, .17);
}

.premium-contact-icon {
    position: relative;
    width: 18px;
    height: 14px;
    display: inline-block;
    flex: none;
    border: 1.8px solid currentColor;
    border-radius: 7px;
}

.premium-contact-icon::before {
    position: absolute;
    bottom: -4px;
    left: 3px;
    width: 6px;
    height: 6px;
    border-bottom: 1.8px solid currentColor;
    border-left: 1.8px solid currentColor;
    background: inherit;
    content: "";
    transform: skewY(-35deg) rotate(-8deg);
}

.premium-contact-icon::after {
    position: absolute;
    top: 5px;
    left: 4px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 -3px 0 -0.5px currentColor;
    content: "";
}

.premium-arrow-icon {
    position: relative;
    width: 16px;
    height: 16px;
    display: block;
    color: var(--gold);
}

.premium-arrow-icon::before {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 7px;
    height: 7px;
    border-top: 1.7px solid currentColor;
    border-right: 1.7px solid currentColor;
    content: "";
}

.premium-arrow-icon::after {
    position: absolute;
    top: 7px;
    left: 2px;
    width: 13px;
    height: 1.7px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: rotate(-45deg);
    transform-origin: center;
}

.button--full {
    width: 100%;
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .74);
}

.lang-button {
    min-width: 36px;
    min-height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: var(--ink-soft);
    background: transparent;
    cursor: pointer;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.lang-button.is-active {
    color: var(--white);
    background: var(--teal-900);
}

/* Access gate */
.access-shell {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
    background: var(--paper);
}

.access-visual {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: url("/assets/hero.jpg") center / cover no-repeat;
}

.access-visual__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 32, 29, .12), rgba(5, 32, 29, .72)),
        linear-gradient(90deg, rgba(5, 32, 29, .08), rgba(5, 32, 29, .22));
}

.access-quote {
    position: absolute;
    left: clamp(36px, 6vw, 90px);
    right: 40px;
    bottom: 56px;
    color: var(--white);
}

.access-quote p {
    max-width: 640px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 4.25rem);
    font-style: italic;
    line-height: 1.08;
}

.access-panel {
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: 54px 48px;
}

.language-switch--gate {
    position: absolute;
    top: 28px;
    right: 28px;
}

.access-card {
    width: min(100%, 430px);
}

.access-avatar {
    width: 82px;
    height: 82px;
    margin-bottom: 20px;
    object-fit: cover;
    object-position: center 10%;
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
}

.professional-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--teal-700);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.professional-badge::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38a77a;
    box-shadow: 0 0 0 5px rgba(56, 167, 122, .12);
    content: "";
}

.access-card h1 {
    margin: 15px 0 6px;
    color: var(--teal-950);
    font-family: var(--serif);
    font-size: clamp(2.25rem, 4vw, 3.45rem);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: .98;
}

.access-role {
    margin: 0;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.18rem;
    font-style: italic;
}

.access-divider {
    width: 100%;
    height: 1px;
    margin: 34px 0 28px;
    background: linear-gradient(90deg, var(--gold), var(--line));
}

.access-card h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.access-copy {
    margin: 0 0 25px;
    color: var(--ink-soft);
    font-size: .92rem;
    line-height: 1.65;
}

.access-form label {
    display: block;
    margin: 0 0 9px;
    color: var(--ink);
    font-size: .77rem;
    font-weight: 700;
}

.password-field {
    position: relative;
    margin-bottom: 14px;
}

.password-field input {
    width: 100%;
    height: 54px;
    padding: 0 66px 0 18px;
    border: 1px solid rgba(12, 59, 54, .18);
    border-radius: 14px;
    color: var(--ink);
    background: var(--white);
    font-size: 1.2rem;
    letter-spacing: .22em;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.password-field input:focus {
    border-color: var(--teal-700);
    box-shadow: 0 0 0 4px rgba(23, 104, 94, .1);
    outline: none;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 8px;
    border: 0;
    color: var(--teal-700);
    background: transparent;
    cursor: pointer;
    font-size: .72rem;
    font-weight: 800;
    transform: translateY(-50%);
}

.form-error {
    margin: -3px 0 12px;
    color: #a63f3f;
    font-size: .79rem;
    line-height: 1.45;
}

.access-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px 0 0;
    color: #7b8a87;
    font-size: .72rem;
}

.access-note > span:first-child {
    color: #38a77a;
    font-size: .55rem;
}

/* App header */
.site-header {
    position: fixed;
    z-index: 50;
    top: 18px;
    left: 50%;
    width: min(1220px, calc(100% - 32px));
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 10px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px;
    background: rgba(250, 249, 244, .91);
    box-shadow: 0 14px 44px rgba(8, 47, 43, .12);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    flex: none;
    place-items: center;
    border-radius: 14px;
    color: var(--gold-soft);
    background: var(--teal-900);
    font-family: var(--serif);
    font-size: .92rem;
    font-style: italic;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-family: var(--serif);
    font-size: .96rem;
    font-weight: 600;
}

.brand-copy small {
    color: var(--ink-soft);
    font-size: .65rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
}

.desktop-nav a,
.logout-link {
    position: relative;
    color: #405651;
    font-size: .76rem;
    font-weight: 700;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logout-link {
    padding: 8px 10px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    color: var(--white);
    background: var(--teal-950);
}

.hero-media {
    position: absolute;
    inset: 0;
    background: url("/assets/hero.jpg") center / cover no-repeat;
    transform: scale(1.015);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 34, 31, .92) 0%, rgba(5, 34, 31, .82) 35%, rgba(5, 34, 31, .2) 72%, rgba(5, 34, 31, .08) 100%),
        linear-gradient(0deg, rgba(5, 34, 31, .55), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: var(--shell);
    min-height: 100svh;
    display: flex;
    align-items: center;
    margin: 0 auto;
    padding: 140px 0 80px;
}

.hero-copy {
    width: min(680px, 58%);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    font-size: .72rem;
    font-weight: 700;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #65d09f;
    box-shadow: 0 0 0 5px rgba(101, 208, 159, .14);
}

.hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(3.3rem, 6.4vw, 6.8rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .84;
}

.hero h1 em {
    color: var(--gold-soft);
    font-weight: 400;
}

.hero-role {
    margin: 30px 0 16px;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    font-style: italic;
}

.hero-lead {
    max-width: 570px;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(.98rem, 1.5vw, 1.15rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.hero-facts div {
    display: grid;
    gap: 5px;
}

.hero-facts span {
    color: rgba(255, 255, 255, .53);
    font-size: .67rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-facts strong {
    font-size: .82rem;
}

.scroll-cue {
    position: absolute;
    z-index: 4;
    right: 42px;
    bottom: 34px;
    width: 42px;
    height: 66px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
}

.scroll-cue span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
    0%, 100% { transform: translateY(-10px); opacity: .4; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* Core sections */
.section {
    position: relative;
    padding: clamp(88px, 10vw, 140px) 0;
}

.section-shell {
    width: var(--shell);
    margin: 0 auto;
}

.section--intro {
    background: var(--paper);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
    gap: clamp(56px, 8vw, 110px);
    align-items: center;
}

.profile-portrait {
    position: relative;
}

.portrait-frame {
    position: relative;
    width: min(100%, 450px);
    aspect-ratio: 4 / 5.1;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 190px 190px 30px 30px;
    background: var(--teal-50);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 175px 175px 22px 22px;
}

.portrait-corner {
    position: absolute;
    width: 42px;
    height: 42px;
    border-color: var(--gold);
}

.portrait-corner--one {
    top: -8px;
    left: -8px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
}

.portrait-corner--two {
    right: -8px;
    bottom: -8px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}

.portrait-caption {
    position: absolute;
    right: -34px;
    bottom: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.mini-seal {
    width: 38px;
    height: 38px;
    display: grid;
    flex: none;
    place-items: center;
    border-radius: 50%;
    color: var(--gold);
    background: var(--teal-900);
}

.portrait-caption div {
    display: grid;
    gap: 3px;
}

.portrait-caption strong {
    font-size: .78rem;
}

.portrait-caption span:last-child {
    color: var(--ink-soft);
    font-size: .68rem;
}

.profile-copy h2,
.section-heading h2,
.contact-copy h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.25rem, 4.6vw, 4.6rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.01;
}

.profile-copy .lead {
    margin: 30px 0 18px;
    color: var(--ink);
    font-size: 1.08rem;
    line-height: 1.8;
}

.profile-copy > p:not(.eyebrow, .lead) {
    color: var(--ink-soft);
    line-height: 1.75;
}

.profile-copy blockquote {
    margin: 30px 0;
    padding: 18px 0 18px 24px;
    border-left: 2px solid var(--gold);
    color: var(--teal-800);
    font-family: var(--serif);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.55;
}

.signature-block {
    display: grid;
    width: max-content;
    gap: 5px;
    margin-top: 32px;
}

.signature {
    position: relative;
    color: var(--teal-900);
    font-family: "Segoe Script", "Brush Script MT", var(--serif);
    font-size: 2rem;
    font-style: italic;
}

.signature::after {
    display: block;
    width: 110%;
    height: 1px;
    margin-top: -2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    content: "";
}

.signature-block > span:last-child {
    color: var(--ink-soft);
    font-size: .67rem;
}

.section--credentials {
    padding: 0;
    background: var(--teal-900);
}

.credential-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.credential-card {
    position: relative;
    min-height: 170px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    padding: 38px 34px;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, .12);
}

.credential-card:last-child {
    border-right: 0;
}

.credential-index {
    position: absolute;
    top: 20px;
    right: 24px;
    color: rgba(255, 255, 255, .14);
    font-family: var(--serif);
    font-size: 2.3rem;
}

.credential-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(197, 164, 94, .6);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.1rem;
}

.credential-card div {
    display: grid;
    gap: 6px;
}

.credential-card strong {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
}

.credential-card p {
    margin: 0;
    color: rgba(255, 255, 255, .58);
    font-size: .78rem;
}

.section--dark {
    color: var(--white);
    background:
        radial-gradient(circle at 90% 10%, rgba(197, 164, 94, .12), transparent 28%),
        var(--teal-950);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
    gap: 60px;
    align-items: end;
    margin-bottom: 66px;
}

.section-heading > p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.75;
}

.section-heading--light > p {
    color: rgba(255, 255, 255, .58);
}

.timeline {
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 34px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.timeline-marker {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(197, 164, 94, .55);
    border-radius: 50%;
    color: var(--gold);
    font-family: var(--serif);
    font-style: italic;
}

.timeline-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr);
    gap: 14px 48px;
}

.timeline-tag {
    grid-column: 1 / -1;
    color: var(--gold);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.timeline-content h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    font-weight: 500;
}

.timeline-place {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .6);
    font-size: .86rem;
}

.timeline-content > p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, .64);
    line-height: 1.75;
}

.timeline-content ul {
    grid-column: 2;
    grid-row: 2 / span 2;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-content li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 18px;
    color: rgba(255, 255, 255, .69);
    font-size: .88rem;
    line-height: 1.5;
}

.timeline-content li::before {
    position: absolute;
    top: .65em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
    content: "";
}

.skills-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    gap: 26px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.skill-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, border-color .25s ease;
}

.skill-card:hover {
    border-color: rgba(197, 164, 94, .55);
    transform: translateY(-5px);
}

.skill-card > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: auto;
    border-radius: 50%;
    color: var(--teal-700);
    background: var(--teal-100);
    font-family: var(--serif);
    font-size: .78rem;
    font-style: italic;
}

.skill-card h3 {
    margin: 22px 0 8px;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
}

.skill-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .83rem;
    line-height: 1.55;
}

.training-card {
    padding: 36px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background:
        linear-gradient(145deg, rgba(197, 164, 94, .14), transparent 42%),
        var(--teal-900);
    box-shadow: var(--shadow);
}

.training-card h3 {
    margin: 0 0 28px;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.15;
}

.training-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.training-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.training-list li > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(197, 164, 94, .45);
    border-radius: 50%;
    color: var(--gold-soft);
    font-family: var(--serif);
    font-size: .76rem;
}

.training-list div {
    display: grid;
    gap: 4px;
}

.training-list strong {
    font-size: .88rem;
}

.training-list small {
    color: rgba(255, 255, 255, .52);
    line-height: 1.4;
}

.language-panel {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 30px;
    align-items: center;
    margin-top: 26px;
    padding: 32px 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--teal-50);
}

.language-panel h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 500;
}

.language-level {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
}

.language-level > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--teal-900);
    font-size: .7rem;
    font-weight: 800;
}

.language-level div {
    display: grid;
    gap: 2px;
}

.language-level strong {
    font-size: .86rem;
}

.language-level small {
    color: var(--ink-soft);
}

.language-level i {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 54px;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(12, 59, 54, .1);
}

.language-level i::after {
    display: block;
    width: var(--level);
    height: 100%;
    border-radius: inherit;
    background: var(--gold);
    content: "";
}

.language-level.level-100 { --level: 100%; }
.language-level.level-92 { --level: 92%; }
.language-level.level-86 { --level: 86%; }

/* Documents */
.section--documents {
    background: var(--paper);
}

.document-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: var(--white);
    cursor: pointer;
    font-size: .75rem;
    font-weight: 700;
}

.filter-button.is-active {
    color: var(--white);
    border-color: var(--teal-900);
    background: var(--teal-900);
}

.privacy-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-700);
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.privacy-chip > span:first-child {
    color: #38a77a;
    font-size: .5rem;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.document-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: opacity .25s ease, transform .25s ease;
}

.document-card.is-hidden {
    display: none;
}

.document-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1.48;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: var(--teal-50);
    cursor: pointer;
}

.document-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease, filter .4s ease;
}

.document-preview::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 34, 31, .62));
    content: "";
    opacity: 0;
    transition: opacity .3s ease;
}

.preview-action {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 14px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    font-size: .72rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
}

.document-preview:hover img {
    filter: saturate(.85);
    transform: scale(1.035);
}

.document-preview:hover::after,
.document-preview:hover .preview-action {
    opacity: 1;
}

.document-preview:hover .preview-action {
    transform: translateY(0);
}

.document-body {
    padding: 21px 22px 23px;
}

.document-type {
    display: inline-flex;
    margin-bottom: 11px;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--teal-700);
    background: var(--teal-100);
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.document-body h3 {
    min-height: 2.7em;
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: 1.16rem;
    font-weight: 600;
    line-height: 1.25;
}

.document-body p {
    min-height: 3em;
    margin: 0 0 17px;
    color: var(--ink-soft);
    font-size: .78rem;
    line-height: 1.5;
}

.document-body a {
    color: var(--teal-700);
    font-size: .73rem;
    font-weight: 800;
}

.document-body a::after {
    margin-left: 8px;
    content: "↓";
}

.download-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-top: 34px;
    padding: 38px;
    border-radius: var(--radius-xl);
    color: var(--white);
    background:
        radial-gradient(circle at 10% 20%, rgba(197, 164, 94, .22), transparent 25%),
        var(--teal-950);
}

.download-panel__icon {
    width: 72px;
    height: 86px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(197, 164, 94, .5);
    border-radius: 12px 22px 12px 12px;
    color: var(--gold);
    font-family: var(--serif);
    font-size: .9rem;
}

.download-panel h3 {
    margin: 0 0 8px;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.6vw, 2.2rem);
    font-weight: 500;
}

.download-panel p:last-child {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, .58);
    font-size: .82rem;
    line-height: 1.6;
}

.download-panel__actions {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.text-link {
    font-size: .72rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-link--light {
    color: rgba(255, 255, 255, .62);
}

/* Contact and footer */
.section--contact {
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 50%, rgba(197, 164, 94, .14), transparent 32%),
        var(--teal-100);
}

.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr);
    gap: 70px;
    align-items: center;
}

.contact-copy > p:not(.eyebrow) {
    max-width: 660px;
    margin: 24px 0 0;
    color: var(--ink-soft);
    line-height: 1.75;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 34px;
}

.contact-links a {
    min-height: 82px;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .62);
    transition: background .2s ease, transform .2s ease;
}

.contact-links a:last-child {
    grid-column: 1 / -1;
}

.contact-links a:hover {
    background: var(--white);
    transform: translateY(-3px);
}

.contact-links a > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--teal-900);
    font-size: .69rem;
    font-weight: 800;
}

.contact-links div {
    display: grid;
    gap: 3px;
}

.contact-links small {
    color: var(--ink-soft);
    font-size: .65rem;
}

.contact-links strong {
    font-size: .83rem;
}

.contact-links b {
    color: var(--gold);
}

.contact-card {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: end;
    padding: 36px;
    border-radius: 220px 220px 34px 34px;
    color: var(--white);
    background: var(--teal-950);
    box-shadow: var(--shadow);
}

.contact-card::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(5, 34, 31, .96) 82%);
    content: "";
}

.contact-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    opacity: .9;
}

.contact-card > div {
    position: relative;
    z-index: 2;
    width: 100%;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, .68);
    font-size: .68rem;
    font-weight: 700;
}

.status-line i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #65d09f;
}

.contact-card h3 {
    margin: 13px 0 8px;
    font-family: var(--serif);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: .95;
}

.contact-card p {
    margin: 0;
    color: var(--gold-soft);
    font-family: var(--serif);
    font-style: italic;
}

.signature--card {
    margin-top: 20px;
    color: var(--white);
    font-size: 1.45rem;
    opacity: .8;
}

.site-footer {
    padding: 42px 0 110px;
    color: rgba(255, 255, 255, .7);
    background: var(--teal-950);
}

.site-footer .section-shell {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 30px;
    align-items: end;
}

.site-footer div > div {
    display: grid;
    gap: 5px;
}

.site-footer strong {
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 500;
}

.site-footer span,
.site-footer p {
    margin: 0;
    font-size: .7rem;
}

.mobile-nav {
    display: none;
}

/* Modal */
.document-modal {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.document-modal.is-open {
    display: flex;
}

.document-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 24, 22, .82);
    backdrop-filter: blur(8px);
}

.document-modal__panel {
    position: relative;
    z-index: 2;
    width: min(1080px, 100%);
    height: min(840px, calc(100svh - 48px));
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .38);
}

.document-modal__header,
.document-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.document-modal__footer {
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.document-modal__header > div {
    display: grid;
    gap: 4px;
}

.document-modal__header span {
    color: var(--ink-soft);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.document-modal__header h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
}

.modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: var(--teal-900);
    cursor: pointer;
    font-size: 1.4rem;
}

.document-modal__viewer {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 18px;
    background: #dfe9e6;
}

.document-modal__viewer iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    background: var(--white);
}

.document-modal__viewer img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(8, 47, 43, .18);
}

/* Reveal motion */
body.js-ready .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .72s ease, transform .72s ease;
}

body.js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1060px) {
    .access-shell {
        grid-template-columns: .9fr 1.1fr;
    }

    .desktop-nav {
        display: none;
    }

    .hero-copy {
        width: 66%;
    }

    .profile-grid,
    .contact-shell {
        gap: 50px;
    }

    .skills-layout {
        grid-template-columns: 1fr;
    }

    .language-panel {
        grid-template-columns: 1fr repeat(3, .9fr);
    }

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

    .download-panel {
        grid-template-columns: auto 1fr;
    }

    .download-panel__actions {
        grid-column: 1 / -1;
        justify-self: stretch;
    }
}

@media (max-width: 820px) {
    :root {
        --shell: min(100% - 30px, 680px);
    }

    .access-shell {
        display: block;
        background:
            linear-gradient(180deg, rgba(5, 34, 31, .28), rgba(5, 34, 31, .82)),
            url("/assets/hero.jpg") center / cover no-repeat;
    }

    .access-visual {
        display: none;
    }

    .access-panel {
        min-height: 100svh;
        padding: 80px 18px 28px;
    }

    .language-switch--gate {
        top: 18px;
        right: 18px;
    }

    .access-card {
        padding: 28px;
        border: 1px solid rgba(255, 255, 255, .35);
        border-radius: 28px;
        background: rgba(251, 250, 246, .95);
        box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
        backdrop-filter: blur(18px);
    }

    .site-header {
        top: 10px;
        width: calc(100% - 20px);
        min-height: 62px;
        border-radius: 18px;
    }

    .brand-copy small,
    .logout-link {
        display: none;
    }

    .site-header .language-switch {
        transform: scale(.92);
        transform-origin: right;
    }

    .hero {
        min-height: 920px;
    }

    .hero-media {
        background-position: 61% center;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(5, 34, 31, .22) 0%, rgba(5, 34, 31, .62) 39%, rgba(5, 34, 31, .98) 77%),
            linear-gradient(90deg, rgba(5, 34, 31, .25), rgba(5, 34, 31, .05));
    }

    .hero-content {
        min-height: 920px;
        align-items: end;
        padding: 180px 0 82px;
    }

    .hero-copy {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(3.3rem, 14vw, 5.9rem);
    }

    .hero-facts {
        gap: 12px;
    }

    .scroll-cue {
        display: none;
    }

    .profile-grid,
    .contact-shell {
        grid-template-columns: 1fr;
    }

    .profile-portrait {
        width: min(88%, 460px);
        margin: 0 auto;
    }

    .portrait-caption {
        right: -20px;
    }

    .credential-strip {
        grid-template-columns: 1fr;
    }

    .credential-card {
        min-height: 126px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 45px;
    }

    .timeline-item {
        grid-template-columns: 62px 1fr;
        gap: 20px;
    }

    .timeline-content {
        grid-template-columns: 1fr;
    }

    .timeline-content ul {
        grid-column: 1;
        grid-row: auto;
        margin-top: 12px;
    }

    .language-panel {
        grid-template-columns: 1fr;
    }

    .document-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .download-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-panel__icon {
        margin: 0 auto;
    }

    .contact-card {
        width: min(100%, 480px);
        min-height: 610px;
        margin: 0 auto;
    }

    .site-footer {
        padding-bottom: 118px;
    }

    .site-footer .section-shell {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mobile-nav {
        position: fixed;
        z-index: 45;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        left: 12px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 7px;
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 20px;
        background: rgba(8, 47, 43, .94);
        box-shadow: 0 18px 50px rgba(5, 34, 31, .3);
        backdrop-filter: blur(16px);
    }

    .mobile-nav a {
        min-height: 54px;
        display: grid;
        place-items: center;
        gap: 2px;
        color: rgba(255, 255, 255, .68);
    }

    .mobile-nav span {
        color: var(--gold);
        font-size: .95rem;
    }

    .mobile-nav small {
        font-size: .59rem;
        font-weight: 700;
    }
}

@media (max-width: 580px) {
    :root {
        --shell: calc(100% - 24px);
    }

    .brand-copy strong {
        font-size: .83rem;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .header-actions {
        gap: 2px;
    }

    .hero {
        min-height: 860px;
    }

    .hero-content {
        min-height: 860px;
        padding-bottom: 74px;
    }

    .hero-kicker {
        font-size: .62rem;
    }

    .hero h1 {
        line-height: .88;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-facts {
        grid-template-columns: 1fr 1fr;
    }

    .hero-facts div:last-child {
        grid-column: 1 / -1;
    }

    .section {
        padding: 78px 0;
    }

    .profile-portrait {
        width: 92%;
    }

    .portrait-caption {
        right: -12px;
        bottom: 28px;
        min-width: 190px;
    }

    .profile-copy h2,
    .section-heading h2,
    .contact-copy h2 {
        font-size: clamp(2.2rem, 11vw, 3.2rem);
    }

    .skills-grid,
    .documents-grid,
    .contact-links {
        grid-template-columns: 1fr;
    }

    .contact-links a:last-child {
        grid-column: auto;
    }

    .training-card {
        padding: 28px 22px;
    }

    .filter-group {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

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

    .filter-button {
        flex: none;
    }

    .document-body h3,
    .document-body p {
        min-height: 0;
    }

    .download-panel {
        padding: 28px 20px;
    }

    .download-panel__actions .button {
        width: 100%;
    }

    .contact-card {
        min-height: 520px;
        padding: 28px;
    }

    .document-modal {
        align-items: stretch;
        padding: 0;
    }

    .document-modal__panel {
        height: 100svh;
        border-radius: 0;
    }

    .document-modal__header,
    .document-modal__footer {
        padding: 14px;
    }

    .document-modal__footer .privacy-chip {
        display: none;
    }

    .document-modal__footer .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
