@font-face {
    font-family: "ManropeLocal";
    src: url("assets/Manrope/Manrope-VariableFont_wght.ttf") format("truetype");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SpaceGroteskLocal";
    src: url("assets/Space_Grotesk/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --bg: #f3efe7;
    --bg-soft: #fbf8f2;
    --surface: rgba(255, 252, 246, 0.82);
    --surface-strong: #fffdf8;
    --text: #1c1d21;
    --muted: #55575f;
    --line: rgba(28, 29, 33, 0.1);
    --accent: #0d7c66;
    --accent-strong: #064e40;
    --highlight: #f2b544;
    --shadow: 0 24px 70px rgba(37, 32, 24, 0.12);
    --hero-grad-1: rgba(255, 253, 248, 0.98);
    --hero-grad-2: rgba(245, 241, 233, 0.92);
    --hero-border: rgba(255, 255, 255, 0.7);
    --hero-glow: radial-gradient(circle, rgba(13, 124, 102, 0.18), transparent 65%);
    --hero-panel-bg: linear-gradient(180deg, rgba(8, 64, 53, 0.96), rgba(6, 78, 64, 0.92));
    --hero-panel-text: #effcf8;
    --hero-panel-muted: rgba(239, 252, 248, 0.82);
    --hero-panel-shadow: 0 22px 36px rgba(6, 78, 64, 0.22);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1180px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d1518;
    --bg-soft: #111c20;
    --surface: rgba(14, 23, 27, 0.82);
    --surface-strong: #162328;
    --text: #edf5f3;
    --muted: #a8bbb7;
    --line: rgba(237, 245, 243, 0.12);
    --accent: #59c7af;
    --accent-strong: #9ce6d6;
    --highlight: #ffc86b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --hero-grad-1: rgba(19, 30, 35, 0.97);
    --hero-grad-2: rgba(12, 20, 24, 0.96);
    --hero-border: rgba(255, 255, 255, 0.08);
    --hero-glow: radial-gradient(circle, rgba(89, 199, 175, 0.12), transparent 68%);
    --hero-panel-bg: linear-gradient(180deg, rgba(17, 35, 40, 0.98), rgba(10, 24, 28, 0.98));
    --hero-panel-text: #dff5ef;
    --hero-panel-muted: rgba(223, 245, 239, 0.8);
    --hero-panel-shadow: 0 22px 36px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "ManropeLocal", "Segoe UI", sans-serif;
    color: var(--text);
    background:
    radial-gradient(circle at top left, rgba(13, 124, 102, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(242, 181, 68, 0.2), transparent 22%),
    linear-gradient(180deg, #f7f3ea 0%, #f1ecdf 100%);
    transition: background 220ms ease, color 220ms ease;
}

html[data-theme="dark"] body {
    background:
    radial-gradient(circle at top left, rgba(89, 199, 175, 0.18), transparent 28%),
    radial-gradient(circle at right 20%, rgba(255, 200, 107, 0.18), transparent 22%),
    linear-gradient(180deg, #081013 0%, #0f191d 100%);
}

a {
    color: inherit;
}

.page-shell {
    width: min(calc(100% - 32px), var(--max-width));
    margin: 24px auto 40px;
}

.header-block {
    padding: 20px 0 28px;
    position: relative;
    z-index: 60;
    display: grid;
    gap: 14px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 104px;
    height: 104px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 16px 30px rgba(6, 78, 64, 0.24);
    border-radius: 14px;
    overflow: hidden;
    flex: 0 0 auto;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section h2,
.hero-copy h1,
.stat strong,
.value-card h3,
.evidence-card h3,
.download-card h3,
.contact-card h2,
.timeline-item h3 {
    font-family: "SpaceGroteskLocal", sans-serif;
}

.brand-text strong { 
    font-size: 1.5rem; 
    font-family: "SpaceGroteskLocal", sans-serif;
}

.brand-text span {
    display: block;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1.4;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.nav a,
.button,
.button-secondary {
    text-decoration: none;
    border-radius: 999px;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav a {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.95rem;
}

.nav a:hover,
.button:hover,
.button-secondary:hover {
    transform: translateY(-2px);
}

.theme-toggle-wrap {
    font-size: 0.35rem;
    flex: 0 0 auto;
    margin-left: 0;
}

.btn {
    background-color: #fff;
    width: 15em;
    height: 8em;
    border-radius: 10em;
    padding: 0 0.5em;
    box-shadow: inset 0 8px 60px rgba(0,0,0, .1),
                inset 0 8px 8px rgba(0,0,0, .1),
                inset 0 -4px 4px rgba(0,0,0, .1);
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid var(--line);
}

.btn__indicator {
    background-color: #fff;
    width: 7em;
    height: 7em;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 8px 40px rgba(0,0,0, .2);
    transition: transform .3s ease;
}

.btn__icon-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn__icon {
    color: #FFDE59;
    font-size: 3rem;
}

.btn__icon.animated {
    animation: spin 0.5s;
}

@keyframes spin {
    to {
    transform: rotate(360deg);
    }
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

body.darkmode .btn {
    box-shadow: inset 0 8px 60px rgba(0,0,0, .3),
                inset 8px 0 8px rgba(0,0,0, .3),
                inset 0 -4px 4px rgba(0,0,0, .3);
    background-color: #2b2b2b;
    border-color: rgba(255,255,255,0.2);
}

body.darkmode .btn__indicator {
    transform: translateX(7em);
    background-color: #2b2b2b;
    box-shadow: 0 8px 40px rgba(0,0,0, .3);
}

body.darkmode .btn__icon {
    color: #fff;
}

html[data-theme="dark"] .nav a {
    background: rgba(255, 255, 255, 0.06);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 40px;
    border-radius: var(--radius-xl);
    background:
    linear-gradient(145deg, var(--hero-grad-1), var(--hero-grad-2)),
    var(--surface-strong);
    box-shadow: var(--shadow);
    border: 1px solid var(--hero-border);
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--hero-glow);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(13, 124, 102, 0.1);
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
    gap: 28px;
    align-items: start;
}

.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 22px;
    max-width: 720px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.button {
    padding: 14px 22px;
    background: var(--accent);
    color: #f6fff9;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(13, 124, 102, 0.25);
}

.button-secondary {
    padding: 14px 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.65);
    color: var(--text);
    font-weight: 700;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stat {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(28, 29, 33, 0.08);
}

.stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.stat span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-panel {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--hero-panel-bg);
    color: var(--hero-panel-text);
    box-shadow: var(--hero-panel-shadow);
    transform: translateY(12px);
}

.hero-panel p,
.hero-panel li {
    color: var(--hero-panel-muted);
    line-height: 1.65;
}

.hero-panel ul {
    margin: 16px 0 0;
    padding-left: 18px;
}

.hero-panel li + li {
    margin-top: 10px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 24px;
    margin-top: 24px;
}

.stack {
    display: grid;
    gap: 24px;
}

.section,
.contact-card {
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow);
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.section h2,
.contact-card h2 {
    margin: 0 0 18px;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
}

.section-intro {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.7;
}

.value-grid,
.evidence-grid,
.download-grid {
    display: grid;
    gap: 16px;
}

.value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.evidence-grid,
.download-grid {
    grid-template-columns: 1fr;
}

.value-card,
.evidence-card,
.download-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    transition: background 220ms ease, border-color 220ms ease;
}

.value-card h3,
.evidence-card h3,
.download-card h3,
.timeline-item h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.value-card p,
.evidence-card p,
.download-card p,
.timeline-item p,
.contact-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.skill-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(13, 124, 102, 0.1);
    color: var(--accent-strong);
    font-weight: 700;
    font-size: 0.92rem;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    position: relative;
    padding: 20px 20px 20px 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    transition: background 220ms ease, border-color 220ms ease;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--highlight));
}

.timeline-meta {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 700;
}

.download-card {
    display: grid;
    gap: 16px;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-link {
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(13, 124, 102, 0.1);
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 700;
}

.download-link.alt {
    background: rgba(28, 29, 33, 0.06);
    color: var(--text);
}

html[data-theme="dark"] .value-card,
html[data-theme="dark"] .evidence-card,
html[data-theme="dark"] .download-card,
html[data-theme="dark"] .timeline-item,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .button-secondary {
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .download-link.alt {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .note {
    background: rgba(255, 200, 107, 0.14);
    color: #ffe6b4;
}

.contact-card {
    position: sticky;
    top: 18px;
    overflow: hidden;
}

.contact-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 181, 68, 0.2), transparent 68%);
    pointer-events: none;
}

.contact-list {
    display: grid;
    gap: 14px;
    margin: 18px 0 24px;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.contact-item a {
    color: var(--accent-strong);
    text-decoration: none;
    font-weight: 700;
}

.note {
    margin-top: 50px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(242, 181, 68, 0.14);
    color: #5f4513;
    line-height: 1.6;
}

.site-footer {
    margin-top: 24px;
    padding: 14px 10px 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer a {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.site-footer a:hover {
    transform: translateY(-2px);
    color: var(--text);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    animation: rise 700ms ease forwards;
}

.reveal.delay-1 { animation-delay: 120ms; }
.reveal.delay-2 { animation-delay: 240ms; }
.reveal.delay-3 { animation-delay: 360ms; }

@keyframes rise {
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .hero-grid,
    .content-grid,
    .value-grid,
    .stats {
    grid-template-columns: 1fr;
    }

    .topbar {
    align-items: center;
    }

    .brand-mark {
    width: 82px;
    height: 82px;
    }

    .brand-text strong {
    font-size: 1.2rem;
    }

    .brand-text span {
    font-size: 0.95rem;
    }

    .hero,
    .section,
    .contact-card {
    padding: 24px;
    }

    .hero-panel {
    transform: none;
    }

    .contact-card {
    position: static;
    }
}

@media (max-width: 620px) {
    .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    margin-top: 12px;
    }

    .hero-copy h1 {
    font-size: clamp(2.1rem, 13vw, 3rem);
    }

    .nav {
    width: 100%;
    justify-content: center;
    }

    .theme-toggle-wrap {
    margin-right: 0;
    }

    .nav a {
    flex: 1 1 calc(50% - 10px);
    text-align: center;
    }

    .hero-actions,
    .download-links {
    flex-direction: column;
    }

    .button,
    .button-secondary,
    .download-link {
    text-align: center;
    }
}
