:root {
    --paper: #f6f0e4;
    --paper-strong: #ece2d2;
    --card: rgba(255, 252, 247, 0.72);
    --ink: #1d2c2a;
    --muted: #5a6b68;
    --line: rgba(29, 44, 42, 0.14);
    --accent: #bf5f36;
    --accent-soft: rgba(191, 95, 54, 0.12);
    --shadow: 0 20px 45px rgba(24, 37, 35, 0.08);
    --content-width: min(1160px, calc(100vw - 3rem));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.7), transparent 24%),
        linear-gradient(180deg, #faf6ef 0%, var(--paper) 52%, #f4ebdf 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    line-height: 1.6;
}

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

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 0.14em;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1.4rem 0 0;
    backdrop-filter: none;
    background: transparent;
}

.site-nav {
    width: var(--content-width);
    margin: 0 auto;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-mark,
.site-nav a,
.section-label,
.story-kicker,
h1,
h2,
h3,
.entry-meta {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

.site-mark {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.25rem 2rem;
}

.site-nav a {
    font-size: 0.95rem;
}

.page-shell {
    width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 0 6rem;
}

.hero-section,
.content-section {
    scroll-margin-top: 6rem;
}

.hero-section {
    padding: 5rem 0 6rem;
}

.hero-layout {
    display: block;
}

.hero-copy {
    width: min(44rem, 100%);
    margin: 0 auto;
    padding: 3rem 0 0;
}

.section-label,
.story-kicker {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.hero-summary {
    max-width: 40rem;
    margin-top: 2rem;
    font-size: clamp(1.05rem, 1.7vw, 1.15rem);
    line-height: 1.55;
}

.hero-figure {
    width: min(620px, calc(100vw - 4rem));
    margin: 2.75rem auto 0;
}

.hero-image {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(29, 44, 42, 0.08);
}

.hero-note {
    margin-top: 1rem;
    color: var(--muted);
    font-style: italic;
    text-align: center;
}

.contact-list {
    width: min(40rem, 100%);
    margin: 2.75rem auto 0;
    padding-top: 0;
    display: grid;
    gap: 0.9rem;
}

.contact-row {
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
}

.contact-row span {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
}

.contact-icon {
    max-width: 13.5rem;
    width: 100%;
    height: auto;
}

.content-section {
    padding: 2rem 0 4rem;
}

.content-section + .content-section {
    border-top: 1px solid var(--line);
}

.section-heading {
    padding-bottom: 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
    gap: 2rem;
    align-items: end;
}

h2 {
    margin-top: 0.6rem;
    font-size: clamp(2rem, 5vw, 3.1rem);
    letter-spacing: -0.08em;
}

.section-intro {
    max-width: 28rem;
    color: var(--muted);
    font-size: 1rem;
}

.entry-list,
.project-list {
    margin-top: 1.5rem;
}

.experience-entry,
.project-entry {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
}

.experience-entry {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: center;
}

.experience-entry img {
    width: 120px;
    height: 74px;
    padding: 0.75rem;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #ffffff;
}

.entry-copy p,
.project-description,
.project-features {
    font-size: 1.04rem;
}

.entry-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.project-title-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

h3 {
    font-size: 1.1rem;
    letter-spacing: -0.04em;
}

.entry-meta {
    color: var(--muted);
    font-size: 0.82rem;
}

.project-entry:first-child,
.story-grid {
    margin-top: 1.5rem;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-description {
    max-width: 44rem;
    margin-top: 0.85rem;
}

.project-features {
    margin-top: 0.95rem;
    margin-left: 1.25rem;
    display: grid;
    gap: 0.45rem;
    color: var(--muted);
}

.project-images {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.project-video {
    margin-top: 1.25rem;
    width: min(520px, 100%);
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 10px 25px rgba(47, 79, 77, 0.08);
}

.project-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.thumbnail {
    width: 150px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(47, 79, 77, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(47, 79, 77, 0.14);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.story-panel {
    grid-column: span 6;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 1.6rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4)),
        var(--card);
    box-shadow: var(--shadow);
}

.story-panel-family,
.story-panel-ski {
    grid-column: span 7;
}

.story-panel-wakesurf,
.story-panel-golf {
    grid-column: span 5;
}

.story-copy {
    margin-bottom: 0.9rem;
}

.story-copy h3 {
    margin-top: 0.45rem;
    font-size: 1.02rem;
}

.story-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.story-media-grid-duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.story-shot,
.story-video {
    width: 100%;
    border-radius: 1.2rem;
    object-fit: cover;
    background: #d9d0c3;
}

.story-shot {
    height: 280px;
}

.story-video {
    height: 420px;
}

.story-ski-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 0.8rem;
}

.story-video-compact,
.story-ski-grid .story-shot {
    height: 360px;
}

.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(19, 30, 29, 0.84);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.overlay.show {
    visibility: visible;
    opacity: 1;
}

.overlay img {
    max-width: min(900px, 92vw);
    max-height: 88vh;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

@media (max-width: 980px) {
    .section-heading,
    .experience-entry,
    .story-grid,
    .story-ski-grid {
        grid-template-columns: 1fr;
    }

    .story-panel,
    .story-panel-family,
    .story-panel-golf,
    .story-panel-wakesurf,
    .story-panel-ski {
        grid-column: span 1;
    }

    .site-nav {
        display: grid;
        gap: 1rem;
    }

    .site-nav ul {
        justify-content: flex-start;
    }

}

@media (max-width: 720px) {
    .story-media-grid,
    .story-media-grid-duo {
        grid-template-columns: 1fr;
    }

    .story-shot,
    .story-video,
    .story-video-compact,
    .story-ski-grid .story-shot {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .story-video {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 640px) {
    :root {
        --content-width: min(1160px, calc(100vw - 1.5rem));
    }

    .site-header {
        padding-top: 0.75rem;
    }

    .site-nav {
        gap: 0.75rem;
        padding-bottom: 0.85rem;
    }

    .hero-section {
        padding-top: 3rem;
    }

    .hero-copy {
        padding: 1rem 0 0;
    }

    .story-panel {
        padding: 1rem;
    }

    .hero-summary,
    .entry-copy p,
    .project-description,
    .project-features {
        font-size: 0.98rem;
    }

    .hero-figure {
        width: min(100%, calc(100vw - 2rem));
        margin-top: 2rem;
    }

    .contact-list {
        margin-top: 2.5rem;
    }

    .thumbnail {
        width: 120px;
    }
}
