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

* {
    margin: 0;
}

:root {
    --bg: #11110f;
    --bg-2: #191713;
    --bg-3: #242017;
    --paper: #f1e4c8;
    --paper-2: #d3c09b;
    --muted: #a99d86;
    --copper: #c26f3d;
    --gold: #d8a646;
    --teal: #4ca49a;
    --line: rgba(241, 228, 200, 0.16);
    --line-strong: rgba(216, 166, 70, 0.36);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius: 8px;
    --radius-sm: 4px;
    --max: 1180px;
    --header-h: 72px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    min-width: 320px;
    background:
        linear-gradient(90deg, rgba(241, 228, 200, 0.025) 1px, transparent 1px),
        linear-gradient(180deg, rgba(241, 228, 200, 0.018) 1px, transparent 1px),
        var(--bg);
    background-size: 64px 64px, 64px 64px, auto;
    color: var(--paper);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

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

img {
    height: auto;
}

a {
    color: inherit;
}

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

button {
    font: inherit;
}

h1,
h2,
h3 {
    font-family: "Cinzel", Georgia, serif;
    line-height: 1.08;
}

h1 {
    max-width: 760px;
    font-size: 5.6rem;
}

h2 {
    font-size: 3.1rem;
}

h3 {
    font-size: 1.22rem;
}

p {
    color: var(--paper-2);
}

.sr-only,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    top: 16px;
    left: 16px;
    z-index: 100;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--bg);
}

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 4px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px max(22px, calc((100vw - var(--max)) / 2));
    background: rgba(17, 17, 15, 0.72);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(17, 17, 15, 0.92);
    border-color: var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--paper);
    text-decoration: none;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(194, 111, 61, 0.28), rgba(76, 164, 154, 0.18));
    color: var(--gold);
    font-family: "Cinzel", Georgia, serif;
    font-size: 0.9rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    border-radius: var(--radius-sm);
    color: var(--paper-2);
    font-size: 0.93rem;
    font-weight: 700;
    padding: 10px 12px;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: rgba(216, 166, 70, 0.12);
    color: var(--paper);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(241, 228, 200, 0.06);
    color: var(--paper);
    cursor: pointer;
}

.menu-toggle__bar {
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease;
}

.menu-toggle__bar + .menu-toggle__bar {
    margin-top: 5px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
}

.share-dock {
    position: fixed;
    right: 18px;
    top: 50%;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translateY(-50%);
}

.share-action,
.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(17, 17, 15, 0.78);
    color: var(--paper);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.share-action {
    width: 42px;
    height: 42px;
    font-size: 0.85rem;
    backdrop-filter: blur(14px);
}

.share-action svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.share-action:hover,
.share-button:hover {
    border-color: var(--gold);
    background: rgba(216, 166, 70, 0.14);
    transform: translateY(-1px);
}

.share-status {
    position: absolute;
    right: 48px;
    top: 0;
    min-width: 92px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 92svh;
    display: grid;
    align-items: end;
    padding: 128px max(22px, calc((100vw - var(--max)) / 2)) 34px;
    isolation: isolate;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(17, 17, 15, 0.9) 0%, rgba(17, 17, 15, 0.68) 38%, rgba(17, 17, 15, 0.18) 78%),
        linear-gradient(180deg, rgba(17, 17, 15, 0.2) 0%, rgba(17, 17, 15, 0.82) 100%);
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

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

.hero__content {
    width: min(760px, 100%);
    padding: 58px 0 48px;
}

.hero h1 {
    color: var(--paper);
    text-wrap: balance;
}

.hero p {
    max-width: 670px;
    margin-top: 22px;
    color: #e8d8b7;
    font-size: 1.25rem;
}

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

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 13px 18px;
    border: 1px solid transparent;
    color: var(--paper);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button--primary {
    background: var(--copper);
    color: #170d08;
}

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

.button--secondary {
    background: rgba(241, 228, 200, 0.08);
    border-color: var(--line);
}

.button--secondary:hover {
    border-color: var(--gold);
    background: rgba(216, 166, 70, 0.14);
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    width: min(100%, 980px);
    border: 1px solid var(--line);
    background: var(--line);
}

.hero__facts span {
    display: flex;
    min-height: 80px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 16px;
    background: rgba(17, 17, 15, 0.76);
    color: var(--muted);
    font-size: 0.9rem;
}

.hero__facts strong {
    color: var(--gold);
    font-size: 0.98rem;
}

.section {
    padding: 104px max(22px, calc((100vw - var(--max)) / 2));
}

.section--warm {
    background:
        linear-gradient(180deg, rgba(194, 111, 61, 0.08), transparent 34%),
        var(--bg-2);
}

.section--deep {
    background:
        linear-gradient(180deg, rgba(76, 164, 154, 0.09), transparent 38%),
        #0c1110;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 58px;
    align-items: center;
}

.section-grid--intro,
.section-grid--media-left {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.section-grid--media-left .feature-image {
    order: -1;
}

.section-kicker {
    margin-bottom: 16px;
    color: var(--teal);
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section h2,
.section-heading h2 {
    color: var(--paper);
    text-wrap: balance;
}

.section-copy > p,
.section-heading > p:last-child,
.intro-copy p {
    margin-top: 20px;
    font-size: 1.06rem;
}

.intro {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #15130f;
}

.intro-copy {
    display: grid;
    gap: 18px;
    border-left: 1px solid var(--line);
    padding-left: 34px;
}

.artifact-pair {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 18px;
    align-items: start;
}

.artifact-card,
.feature-image,
.wide-artifact {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(241, 228, 200, 0.055);
    box-shadow: var(--shadow);
}

.artifact-card img,
.feature-image img,
.wide-artifact img {
    width: 100%;
    object-fit: cover;
    background: var(--bg-3);
    filter: saturate(0.96) contrast(1.03);
}

.artifact-card img {
    aspect-ratio: 4 / 5;
    height: auto;
}

.artifact-pair .artifact-card:nth-child(2) {
    margin-top: 54px;
}

.artifact-pair .artifact-card:nth-child(2) img {
    aspect-ratio: 5 / 4;
}

.feature-image img {
    aspect-ratio: 16 / 11;
}

.wide-artifact {
    margin-top: 42px;
}

.wide-artifact img {
    aspect-ratio: 16 / 8;
}

figcaption {
    padding: 13px 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
}

figcaption a {
    color: var(--gold);
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.timeline {
    display: grid;
    gap: 0;
    max-width: 980px;
    margin: 70px auto 0;
    padding: 0;
    list-style: none;
    border-block: 1px solid var(--line);
}

.timeline__item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.timeline__item:first-child {
    border-top: 0;
}

.timeline__date {
    color: var(--gold);
    font-family: "Cinzel", Georgia, serif;
    font-weight: 700;
}

.timeline h3 {
    margin-bottom: 8px;
    color: var(--paper);
}

.fact-list,
.bank-grid,
.future-grid {
    display: grid;
    gap: 14px;
}

.fact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 32px;
}

.fact-list article,
.panel,
.future-card,
.stacked-notes article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(241, 228, 200, 0.055);
}

.fact-list article {
    padding: 20px;
}

.fact-list h3,
.panel h3,
.future-card h3,
.stacked-notes h3 {
    margin-bottom: 10px;
    color: var(--paper);
}

.fact-list p,
.panel p,
.future-card p,
.stacked-notes p {
    font-size: 0.96rem;
}

.callout {
    max-width: 980px;
    margin: 58px auto 0;
    padding: 28px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(216, 166, 70, 0.16), rgba(76, 164, 154, 0.08));
}

.callout h3 {
    margin-bottom: 12px;
}

.section-heading {
    max-width: 860px;
    margin-bottom: 50px;
}

.split-cards {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 32px;
    align-items: stretch;
}

.split-cards .artifact-card img {
    height: 100%;
    min-height: 460px;
}

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

.panel {
    padding: 26px;
}

.panel span,
.future-card span {
    display: inline-flex;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 0.86rem;
    font-weight: 800;
}

.milestone-rail {
    display: grid;
    gap: 1px;
    margin-top: 32px;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    background: var(--line);
}

.milestone-rail li {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px;
    background: rgba(241, 228, 200, 0.055);
}

.milestone-rail strong {
    color: var(--gold);
    font-family: "Cinzel", Georgia, serif;
}

.milestone-rail span {
    color: var(--paper-2);
}

.stacked-notes {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.stacked-notes article {
    padding: 22px;
}

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

.future-card {
    min-height: 265px;
    padding: 26px;
}

.share-section {
    background: #16130e;
}

.share-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 42px;
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
    padding: 34px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(194, 111, 61, 0.17), rgba(76, 164, 154, 0.08)),
        rgba(241, 228, 200, 0.045);
}

.share-panel p {
    margin-top: 16px;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.share-button {
    min-height: 46px;
    padding: 10px 12px;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 40px max(22px, calc((100vw - var(--max)) / 2));
    border-top: 1px solid var(--line);
    background: #0b0b0a;
}

.footer strong {
    display: block;
    margin-bottom: 6px;
}

.footer p {
    font-size: 0.92rem;
}

.footer a {
    color: var(--gold);
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 520ms ease, transform 520ms ease;
}

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

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

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

@media (max-width: 1080px) {
    h1 {
        font-size: 4.6rem;
    }

    h2 {
        font-size: 2.55rem;
    }

    .section-grid,
    .section-grid--intro,
    .section-grid--media-left,
    .split-cards,
    .share-panel {
        grid-template-columns: 1fr;
    }

    .section-grid--media-left .feature-image {
        order: 0;
    }

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

@media (max-width: 820px) {
    :root {
        --header-h: 66px;
    }

    h1 {
        font-size: 3.35rem;
    }

    h2 {
        font-size: 2.18rem;
    }

    .site-header {
        padding: 10px 18px;
    }

    .brand span:last-child {
        max-width: 150px;
        line-height: 1.1;
    }

    .menu-toggle {
        display: grid;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        right: 14px;
        left: 14px;
        display: grid;
        gap: 4px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(17, 17, 15, 0.96);
        box-shadow: var(--shadow);
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .site-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav a {
        padding: 14px;
    }

    .hero {
        min-height: 92svh;
        padding: 100px 18px 22px;
    }

    .hero::after {
        background:
            linear-gradient(180deg, rgba(17, 17, 15, 0.72) 0%, rgba(17, 17, 15, 0.82) 54%, rgba(17, 17, 15, 0.95) 100%);
    }

    .hero__media img {
        object-position: 62% center;
    }

    .hero__content {
        padding: 130px 0 34px;
    }

    .hero p {
        font-size: 1.08rem;
    }

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

    .hero__facts span {
        min-height: 70px;
        padding: 13px;
    }

    .section {
        padding: 76px 18px;
    }

    .intro-copy {
        border-left: 0;
        padding-left: 0;
    }

    .artifact-pair,
    .fact-list,
    .bank-grid,
    .future-grid,
    .share-grid {
        grid-template-columns: 1fr;
    }

    .artifact-pair .artifact-card:nth-child(2) {
        margin-top: 0;
    }

    .timeline__item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .milestone-rail li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .split-cards .artifact-card img {
        min-height: 0;
    }

    .share-dock {
        display: none;
    }

    .footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.7rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .hero__actions,
    .button {
        width: 100%;
    }

    .button {
        justify-content: center;
    }

    .hero__facts {
        grid-template-columns: 1fr;
    }

    .share-panel {
        padding: 22px;
    }
}

.portfolio-footer {
    display: flex;
    width: min(100% - 40px, var(--max));
    margin: 0 auto;
    padding: 34px 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.portfolio-brand,
.portfolio-mail {
    color: var(--paper);
    text-decoration: none;
}

.portfolio-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.portfolio-brand > span:last-child span {
    color: var(--gold);
}

.portfolio-brand-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--bg);
    background: linear-gradient(135deg, var(--gold), var(--copper));
    font-size: 0.78rem;
    font-weight: 900;
}

.portfolio-mail {
    font-weight: 700;
}

.portfolio-footer p {
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 760px) {
    .portfolio-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
