:root {
    --bg: #f7f1e7;
    --paper: rgba(255, 251, 244, 0.9);
    --ink: #18211d;
    --muted: #5d635f;
    --line: rgba(24, 33, 29, 0.12);
    --accent: #245946;
    --accent-soft: #d6e6db;
    --wine: #7d4e3f;
    --gold: #ba9157;
    --shadow: 0 18px 60px rgba(30, 37, 33, 0.12);
    --font-body: "Manrope", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: "Noto Serif SC", "Songti SC", serif;
    --font-display: "Cormorant Garamond", "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(186, 145, 87, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(36, 89, 70, 0.14), transparent 26%),
        linear-gradient(180deg, #f6f0e7 0%, #efe4d2 100%);
}

a {
    color: inherit;
}

.page-shell {
    width: min(1220px, calc(100% - 40px));
    margin: 24px auto 48px;
}

.hero,
.story-card,
.closing,
.metric-card {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 420px);
    gap: 28px;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255, 250, 243, 0.9), rgba(246, 238, 226, 0.82)),
        radial-gradient(circle at 10% 10%, rgba(186, 145, 87, 0.12), transparent 25%);
    box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero::before {
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(36, 89, 70, 0.16), transparent 66%);
}

.hero::after {
    left: 42px;
    bottom: 26px;
    width: 180px;
    height: 1px;
    background: linear-gradient(90deg, rgba(36, 89, 70, 0.55), transparent);
}

.eyebrow,
.panel-label,
.section-index,
.closing-label {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    color: var(--wine);
}

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

.hero-title {
    margin: 22px 0 18px;
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5.6rem);
    line-height: 0.95;
    font-weight: 700;
}

.hero-title span {
    display: block;
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    letter-spacing: 0.05em;
    color: var(--accent);
}

.hero-summary {
    max-width: 720px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.95;
    color: rgba(24, 33, 29, 0.86);
}

.hero-tags,
.role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-tags span,
.role-chips span {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(36, 89, 70, 0.14);
    background: rgba(255, 255, 255, 0.5);
    color: var(--accent);
    font-size: 0.95rem;
}

.hero-panel {
    position: relative;
    z-index: 1;
    align-self: start;
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(24, 33, 29, 0.08);
    background: rgba(20, 32, 27, 0.92);
    color: #f7f1e7;
}

.panel-name {
    margin-top: 12px;
    font-size: 2rem;
    line-height: 1;
    font-family: var(--font-display);
    letter-spacing: 0.08em;
}

.panel-list {
    margin: 24px 0 0;
    padding-left: 18px;
    color: rgba(247, 241, 231, 0.82);
}

.panel-list li + li {
    margin-top: 10px;
}

.panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.panel-button,
.closing-button,
.project-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
    cursor: pointer;
    font: inherit;
}

.panel-button:hover,
.closing-button:hover,
.project-card a:hover {
    transform: translateY(-2px);
}

.panel-button-primary,
.closing-button-primary {
    background: linear-gradient(135deg, #2b6c56, #183c31);
    color: #fff9f0;
    box-shadow: 0 12px 28px rgba(24, 60, 49, 0.24);
}

.panel-button:not(.panel-button-primary),
.closing-button:not(.closing-button-primary) {
    border-color: rgba(247, 241, 231, 0.18);
    color: #f7f1e7;
    background: rgba(255, 255, 255, 0.06);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 0;
}

.metric-card {
    padding: 22px 24px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    background: rgba(255, 251, 244, 0.74);
    box-shadow: 0 12px 38px rgba(52, 52, 52, 0.06);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent);
}

.metric-label {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.7;
}

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

.story-card {
    padding: 34px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: var(--paper);
    box-shadow: 0 10px 34px rgba(36, 34, 30, 0.06);
}

.story-card-wide {
    grid-column: 1 / -1;
}

.section-heading {
    display: flex;
    gap: 16px;
    align-items: baseline;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 2vw, 2.4rem);
}

.value-grid,
.project-grid,
.practice-list {
    display: grid;
    gap: 16px;
}

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

.value-item,
.practice-list article {
    padding: 20px 20px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(24, 33, 29, 0.06);
}

.value-item h3,
.practice-list h3,
.project-card h3,
.timeline-body h3 {
    margin: 0 0 10px;
    font-size: 1.16rem;
}

.value-item p,
.practice-list p,
.narrative-block p,
.timeline-body p,
.project-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
}

.narrative-block p + p {
    margin-top: 16px;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(24, 33, 29, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 242, 235, 0.9));
}

.project-meta {
    color: var(--wine);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.project-block {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(24, 33, 29, 0.06);
}

.project-block-highlight {
    background: linear-gradient(180deg, rgba(214, 230, 219, 0.52), rgba(255, 250, 243, 0.76));
    border-color: rgba(36, 89, 70, 0.14);
}

.project-block h4 {
    margin: 0 0 10px;
    font-size: 0.98rem;
    color: var(--wine);
    letter-spacing: 0.06em;
}

.achievement-list li {
    color: var(--accent);
}

.project-card a {
    align-self: flex-start;
    margin-top: auto;
    border-color: rgba(36, 89, 70, 0.14);
    background: rgba(214, 230, 219, 0.42);
    color: var(--accent);
}

.timeline {
    position: relative;
    display: grid;
    gap: 18px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 166px;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: linear-gradient(180deg, rgba(36, 89, 70, 0.4), rgba(36, 89, 70, 0.08));
}

.timeline-item {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.timeline-date {
    position: relative;
    padding-top: 10px;
    font-size: 0.9rem;
    color: var(--wine);
    line-height: 1.35;
}

.timeline-date::after {
    content: "";
    position: absolute;
    right: -35px;
    top: 13px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(36, 89, 70, 0.12);
}

.timeline-body {
    padding: 24px 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(24, 33, 29, 0.06);
}

.closing {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
    padding: 38px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background:
        linear-gradient(135deg, rgba(25, 41, 34, 0.95), rgba(49, 68, 57, 0.94)),
        radial-gradient(circle at top left, rgba(186, 145, 87, 0.18), transparent 36%);
    color: #f9f3ea;
    box-shadow: var(--shadow);
}

.closing-copy h2 {
    margin: 14px 0 14px;
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.closing-copy p {
    max-width: 720px;
    margin: 0;
    color: rgba(249, 243, 234, 0.78);
    line-height: 1.9;
}

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

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1200;
    min-width: 220px;
    max-width: min(90vw, 420px);
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(20, 32, 27, 0.94);
    color: #f9f3ea;
    text-align: center;
    box-shadow: 0 18px 36px rgba(20, 32, 27, 0.2);
    transform: translate(-50%, 18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 1100px) {
    .hero,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .metrics,
    .project-grid,
    .value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .page-shell {
        width: min(100% - 24px, 100%);
        margin: 12px auto 24px;
    }

    .hero,
    .story-card,
    .closing {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .hero-summary,
    .value-item p,
    .practice-list p,
    .narrative-block p,
    .timeline-body p,
    .project-card p,
    .project-card ul {
        line-height: 1.75;
    }

    .metrics,
    .project-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-left: 28px;
    }

    .timeline-date::after {
        left: -34px;
        right: auto;
    }

    .closing-actions,
    .panel-actions {
        width: 100%;
    }

    .panel-button,
    .closing-button {
        width: 100%;
    }
}
