@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --ink: #172026;
    --muted: #61707b;
    --paper: rgba(255, 252, 247, 0.92);
    --paper-solid: #fffaf1;
    --teal: #0d7683;
    --teal-dark: #07545f;
    --coral: #f27662;
    --lilac: #b7a3ff;
    --gold: #f6c863;
    --line: rgba(23, 32, 38, 0.14);
    --shadow: 0 24px 70px rgba(9, 27, 32, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: "Inter", Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 15%, rgba(246, 200, 99, 0.36), transparent 28rem),
        radial-gradient(circle at 88% 10%, rgba(183, 163, 255, 0.32), transparent 24rem),
        radial-gradient(circle at 75% 82%, rgba(242, 118, 98, 0.28), transparent 28rem),
        linear-gradient(145deg, #d7f1eb 0%, #f9e8d8 45%, #ccd9ff 100%);
    background-attachment: fixed;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(23, 32, 38, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 32, 38, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 88%);
}

a {
    color: inherit;
}

.site-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 24px;
}

.site-nav {
    position: sticky;
    top: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.78);
    box-shadow: 0 16px 40px rgba(23, 32, 38, 0.12);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0;
}

.brand img {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(13, 118, 131, 0.28);
    border-radius: 50%;
    background: #fff;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--teal-dark);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #fff;
    background: var(--teal-dark);
}

.hero,
.panel {
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 34px;
    align-items: center;
    margin-top: 28px;
    padding: clamp(28px, 5vw, 64px);
    overflow: hidden;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    line-height: 1.02;
}

h1 {
    max-width: 12ch;
    font-size: clamp(4.2rem, 13vw, 9rem);
}

h2 {
    color: var(--teal-dark);
    font-size: clamp(2rem, 5vw, 4rem);
}

h3 {
    color: var(--ink);
    font-size: 1.25rem;
}

.lead {
    max-width: 680px;
    margin: 18px 0 0;
    color: #33414a;
    font-size: clamp(1.04rem, 2vw, 1.28rem);
    line-height: 1.7;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--teal-dark);
    border-radius: 999px;
    color: #fff;
    background: var(--teal-dark);
    font-weight: 800;
    text-decoration: none;
}

.button.secondary {
    color: var(--teal-dark);
    background: transparent;
}

.button.disabled {
    border-color: rgba(97, 112, 123, 0.28);
    color: rgba(97, 112, 123, 0.76);
    background: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
}

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

.hero-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
}

.hero-media::before {
    position: absolute;
    width: min(92%, 420px);
    aspect-ratio: 1;
    border-radius: 28% 72% 58% 42% / 48% 34% 66% 52%;
    content: "";
    background: linear-gradient(145deg, rgba(13, 118, 131, 0.26), rgba(242, 118, 98, 0.3));
}

.portrait {
    position: relative;
    width: min(74%, 330px);
    border: 10px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 20px 50px rgba(23, 32, 38, 0.2);
}

.badge-stack {
    position: absolute;
    right: 0;
    bottom: 18px;
    display: grid;
    gap: 10px;
}

.badge {
    width: max-content;
    max-width: min(250px, 52vw);
    padding: 10px 14px;
    border: 1px solid rgba(23, 32, 38, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 28px rgba(23, 32, 38, 0.13);
    font-size: 0.9rem;
    font-weight: 800;
}

.section {
    margin-top: 26px;
}

.panel {
    padding: clamp(24px, 4vw, 42px);
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.section-header p {
    max-width: 510px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

.card,
.work-card,
.term-block {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.48);
}

.card {
    padding: 20px;
}

.card p,
.work-card p,
.term-block p,
.term-block li {
    color: #42515a;
    line-height: 1.65;
}

.card p,
.term-block p {
    margin: 12px 0 0;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.pill-list li,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(13, 118, 131, 0.2);
    border-radius: 999px;
    color: var(--teal-dark);
    background: rgba(215, 241, 235, 0.62);
    font-size: 0.84rem;
    font-weight: 800;
}

.work-card {
    overflow: hidden;
}

.work-card img,
.work-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #10191d;
}

.work-card.square img {
    aspect-ratio: 1;
}

.media-frame {
    position: relative;
    overflow: hidden;
    background: #10191d;
}

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

.video-frame {
    display: grid;
    place-items: center;
}

.video-frame video {
    max-height: 300px;
}

.video-frame.vertical video {
    width: auto;
    max-width: 100%;
    aspect-ratio: 9 / 16;
}

.work-body {
    padding: 18px;
}

.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 28px;
    align-items: start;
}

.fact-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
}

.fact {
    padding: 16px;
    border-left: 4px solid var(--coral);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.52);
}

.fact strong {
    display: block;
    margin-bottom: 4px;
    color: var(--teal-dark);
}

.term-block {
    padding: 22px;
}

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

.term-block ul {
    padding-left: 22px;
}

.notice {
    border-color: rgba(242, 118, 98, 0.38);
    background: rgba(242, 118, 98, 0.1);
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 4px 8px;
    color: #34444d;
    font-size: 0.92rem;
}

.site-footer a {
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 820px) {
    .site-nav {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .hero,
    .split {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 280px;
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cards,
    .work-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-frame video {
        max-height: 360px;
    }
}

@media (max-width: 520px) {
    .site-shell {
        width: min(100% - 20px, 1120px);
        padding-top: 10px;
    }

    .nav-links a {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.76rem;
    }

    h1 {
        font-size: clamp(3.5rem, 20vw, 5rem);
    }

    .hero,
    .panel {
        padding: 22px;
    }
}
