:root {
    --paper: #F4F6FB;
    --ink: #16213A;
    --muted: #55607A;
    --blue: #3E58A8;
    --blue-d: #2D4285;
    --copper: #B5652B;
    --line: #D5DAE8;
    --card: #fff;
    --code: #111B33
}

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

html {
    scroll-behavior: smooth
}

body {
    font: 17px/1.65 "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink)
}

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

a {
    color: var(--blue-d)
}

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

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #fff;
    padding: 8px 14px;
    z-index: 99
}

.skip:focus {
    left: 8px
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px
}

.narrow {
    max-width: 820px
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -.015em
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 22px
}

h3 {
    font-size: 1.2rem;
    font-weight: 600
}

/* header */
header.site {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(244, 246, 251, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line)
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: .04em
}

.brand img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--blue);
    box-shadow: 8px -6px 0 -3px var(--copper)
}

nav {
    display: flex;
    gap: 6px
}

nav a {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: .97rem
}

nav a:hover {
    background: #E6EAF5
}

nav a[aria-current=page] {
    color: var(--blue-d);
    box-shadow: inset 0 -2px 0 var(--copper);
    border-radius: 0
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    transition: .2s
}

/* hero */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-bottom: 1px solid var(--line);
    background: #dfe6f6
}

.hero-slides {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity .9s ease, transform 1.2s ease, visibility .9s ease
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1)
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04)
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(244, 246, 251, .9) 0%, rgba(244, 246, 251, .73) 35%, rgba(244, 246, 251, .25) 100%);
    z-index: 1
}

.hero-in {
    position: relative;
    z-index: 2;
    padding-top: clamp(80px, 14vw, 150px);
    padding-bottom: clamp(80px, 14vw, 150px)
}

.hero h1 {
    font-size: clamp(3rem, 9vw, 6.4rem);
    letter-spacing: -.04em
}

.lead {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    max-width: 30ch;
    color: var(--muted);
    margin: 18px 0 30px
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--blue);
    cursor: pointer;
    font: inherit;
    font-weight: 600
}

.btn:hover {
    background: var(--blue-d);
    border-color: var(--blue-d)
}

.btn.ghost {
    background: transparent;
    color: var(--blue-d);
    margin-left: 10px
}

.btn.ghost:hover {
    background: #E6EAF5
}

.cta .btn.ghost {
    margin-left: 10px
}

/* sections */
.sec {
    padding: clamp(56px, 8vw, 96px) 0
}

.alt {
    background: #fff;
    border-block: 1px solid var(--line)
}

.split {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
    align-items: center
}

.big {
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 16px
}

.more {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--copper)
}

.portrait {
    aspect-ratio: 4/5;
    border-radius: 6px;
    background: var(--blue);
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center
}

.portrait::before {
    content: attr(data-initials);
    color: #fff;
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: .05em
}

.portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.portrait.noimg img {
    display: none
}

.page-head {
    padding: 56px 0 8px;
    border-bottom: 1px solid var(--line);
    background: #fff
}

.page-head .wrap {
    padding-bottom: 36px
}

.page-head p {
    color: var(--muted);
    margin-top: 10px
}

.crumb {
    font-size: .9rem
}

/* rows */
.rows {
    display: grid
}

.row {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    align-items: center
}

.row:first-child {
    border-top: 1px solid var(--line)
}

.thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px;
    background: #E6EAF5;
    display: block
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.row h3 a {
    color: var(--ink);
    text-decoration: none
}

.row h3 a:hover {
    color: var(--blue-d)
}

.row p {
    color: var(--muted);
    margin: 6px 0 10px;
    max-width: 60ch
}

/* gallery */
.masonry {
    columns: 3 230px;
    column-gap: 14px
}

.shot {
    display: block;
    margin-bottom: 14px;
    break-inside: avoid;
    border-radius: 4px;
    overflow: hidden;
    background: #E6EAF5
}

.shot img {
    width: 100%;
    transition: transform .3s
}

.shot:hover img {
    transform: scale(1.03)
}

.lb {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 32, .92);
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px
}

.lb img {
    max-height: 88vh;
    max-width: 92vw;
    object-fit: contain
}

.lb button {
    position: absolute;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 14px
}

.lb .x {
    top: 6px;
    right: 10px
}

.lb .p {
    left: 6px
}

.lb .n {
    right: 6px
}

/* video */
.video {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 6px;
    overflow: hidden
}

.video button,
.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: none
}

.video img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    margin: -38px;
    border-radius: 50%;
    background: var(--copper)
}

.play::after {
    content: "";
    position: absolute;
    left: 30px;
    top: 22px;
    border-left: 25px solid #fff;
    border-block: 16px solid transparent
}

.cap {
    color: var(--muted);
    font-size: .9rem;
    margin-top: 10px
}

/* article */
.read {
    max-width: 820px
}

.cover {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 36px;
    max-height: 460px;
    object-fit: cover
}

.prose {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.78
}

.prose h2 {
    font-family: "Bricolage Grotesque", sans-serif;
    margin: 40px 0 14px
}

.prose p,
.prose ul,
.prose ol,
.prose pre,
.prose object {
    margin-bottom: 1.1em
}

.prose ul,
.prose ol {
    padding-left: 1.4em
}

.prose li {
    margin-bottom: .4em
}

.refs {
    font-size: .95rem
}

.prose code {
    font-size: .9em
}

pre {
    background: var(--code);
    color: #E7ECFA;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: .88rem;
    line-height: 1.55
}

.pdf {
    width: 100%;
    height: 600px;
    border: 1px solid var(--line);
    border-radius: 6px
}

.more-list {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line)
}

.more-list ul {
    margin: 12px 0 16px;
    padding-left: 1.2em
}

/* contact */
form {
    display: grid;
    gap: 18px
}

label {
    display: grid;
    gap: 6px;
    font-weight: 600
}

input,
textarea {
    font: inherit;
    padding: 12px 14px;
    border: 1.5px solid #B9C1D8;
    border-radius: 8px;
    background: #fff;
    color: var(--ink)
}

input:focus,
textarea:focus {
    outline: 3px solid #C7D2F2;
    border-color: var(--blue)
}

.note {
    min-height: 1.5em;
    color: var(--blue-d);
    font-weight: 600
}

.info p {
    margin-top: 14px
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap
}

.cta-band h2 {
    margin: 0
}

footer.site {
    background: var(--ink);
    color: #C9D1E8;
    padding: 44px 0 28px
}

.foot {
    display: grid;
    gap: 18px
}

.foot strong {
    color: #fff;
    font-size: 1.1rem
}

.foot-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    transition: transform .2s ease, background .2s ease, border-color .2s ease
}

.social-link:hover,
.social-link:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .25)
}

.social-link svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor
}

.info .social-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px
}

.info .social-link {
    background: #fff;
    border-color: var(--line);
    color: var(--ink)
}

.foot a {
    color: #fff
}

.copy {
    font-size: .88rem;
    opacity: .75
}

@media(max-width:800px) {
    .menu-btn {
        display: block
    }

    nav {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 8px 24px 16px;
        display: none
    }

    nav.open {
        display: flex
    }

    .split {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .portrait {
        max-width: 300px
    }

    .row {
        grid-template-columns: 110px 1fr;
        gap: 16px
    }

    .hero::after {
        background: linear-gradient(180deg, var(--paper) 40%, transparent)
    }
}

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

    .trace path {
        animation: none;
        stroke-dashoffset: 0
    }

    .trace .led {
        animation: none;
        opacity: 1
    }

    .shot img {
        transition: none
    }
}