/* ---------- Tokens ---------- */

:root {
    --accent: #FF69B4;
    --accent-2: #6C7BFF;
    /* electric blue, borrowed from the photo's lighting */
    --live: #3DDC84;
    --ink: #0A0A0A;
    --surface: #121212;
    --surface-2: #1A1A1A;
    --text: #F2F2F2;
    --text-2: #D4D4D4;
    --muted: #A3A3A3;
    --line: #262626;
    --sans: 'Archivo', 'Helvetica Neue', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --pad: 16px;
    /* side gutter — grows on larger screens */
    --gap: 12px;
    /* space between blocks */
    --panel-pad: 18px;
    --r-xl: 24px;
    --r-lg: 18px;
    --r-md: 12px;
    --header-h: 72px;
}

@media (min-width:640px) {
    :root {
        --pad: 32px;
        --gap: 16px;
        --panel-pad: clamp(28px, 4vw, 48px);
        --r-xl: 32px;
        --r-lg: 22px;
        --r-md: 14px;
        --header-h: 84px
    }
}

/* ---------- Base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent
}

/* soft neon glow behind everything */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(60vmax 50vmax at 0% 0%, rgba(255, 105, 180, .12), transparent 60%), radial-gradient(50vmax 40vmax at 100% 35%, rgba(108, 123, 255, .10), transparent 60%)
}

h1,
h2,
h3,
p,
ul {
    margin: 0
}

ul {
    padding: 0;
    list-style: none
}

a {
    color: var(--accent)
}

a:hover {
    color: #fff
}

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

.on-accent a:focus-visible,
a.on-accent:focus-visible {
    outline-color: var(--ink)
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(var(--pad), env(safe-area-inset-left));
    padding-right: max(var(--pad), env(safe-area-inset-right))
}

.mono {
    font-family: var(--mono)
}

svg {
    flex-shrink: 0
}

/* ---------- Shared blocks ---------- */

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: var(--panel-pad);
    display: flex;
    flex-direction: column;
    gap: 24px
}

.card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg)
}

/* pointer-following glow; JS sets --mx/--my */
.spot {
    --mx: -999px;
    --my: -999px;
    background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255, 105, 180, .12), transparent 70%), var(--surface-2)
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 10, 10, .55);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-2);
    white-space: nowrap
}

.pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent)
}

.pill.live .dot {
    background: var(--live);
    animation: pulse 2s infinite
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(61, 220, 132, .55)
    }
    70% {
        box-shadow: 0 0 0 8px rgba(61, 220, 132, 0)
    }
    100% {
        box-shadow: 0 0 0 0 rgba(61, 220, 132, 0)
    }
}

.kicker {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700
}

.chips span {
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    padding: 6px 12px
}

.chips.dark {
    font-weight: 400;
    color: var(--text-2)
}

.chips.dark span {
    border: 1px solid #333;
    background: var(--ink)
}

.bullets {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2)
}

.bullets li {
    display: flex;
    gap: 12px
}

.bullets li::before {
    content: "→";
    color: var(--accent);
    font-family: var(--mono);
    flex-shrink: 0
}

@media (min-width:640px) {
    .pill,
    .kicker {
        font-size: 13px
    }
    .chips {
        font-size: 13px
    }
    .bullets {
        font-size: 17px;
        gap: 16px
    }
    .bullets li {
        gap: 16px
    }
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding-top: max(10px, env(safe-area-inset-top))
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(18, 18, 18, .78);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text)
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -.5px
}

.brand-name {
    display: none;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 500
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    font-family: var(--mono);
    font-size: 13px
}

.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    padding: 0 12px;
    min-height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    white-space: nowrap
}

.nav-links a:hover {
    color: #fff;
    background: var(--surface-2)
}

.nav-links .num {
    display: none;
    color: var(--muted)
}

.nav-links .cta {
    color: var(--ink);
    background: var(--accent);
    font-weight: 700;
    padding: 0 16px;
    margin-left: 4px
}

.nav-links .cta:hover {
    color: var(--ink);
    background: #fff
}

@media (min-width:640px) {
    .nav {
        padding: 8px
    }
    .brand-mark {
        width: 44px;
        height: 44px;
        font-size: 16px
    }
    .brand-name {
        display: inline
    }
    .nav-links {
        font-size: 14px;
        gap: 4px
    }
    .nav-links a {
        padding: 0 16px;
        min-height: 44px
    }
    .nav-links .num {
        display: inline
    }
    .nav-links .cta {
        padding: 0 20px
    }
}

/* ---------- Hero (bento) ---------- */

.hero {
    padding-top: 16px;
    display: grid;
    gap: var(--gap)
}

.hero-main {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 100% 0%, rgba(255, 105, 180, .18), transparent 45%), radial-gradient(circle at 0% 100%, rgba(108, 123, 255, .12), transparent 45%), var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 24px var(--panel-pad) var(--panel-pad);
    display: flex;
    flex-direction: column;
    gap: 28px
}

/* dotted grid that fades out away from the top-right corner */
.hero-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(circle at 85% 10%, #000, transparent 60%);
    mask-image: radial-gradient(circle at 85% 10%, #000, transparent 60%)
}

.hero-main>* {
    position: relative
}

.hero-top {
    display: grid;
    gap: 28px
}

.hero-head {
    display: flex;
    flex-direction: column;
    gap: 28px
}

/* generative P2P mesh; only where there's room beside the name */
.hero-art {
    display: none
}

@media (min-width:640px) {
    .hero-head {
        gap: 40px
    }
}

@media (min-width:1000px) {
    .hero-top {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center
    }
    .hero-art {
        display: block;
        width: 100%;
        max-width: 440px;
        aspect-ratio: 1;
        justify-self: center
    }
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.hero h1 {
    font-weight: 900;
    font-size: clamp(40px, 12.5vw, 140px);
    line-height: .9;
    letter-spacing: -.04em;
    text-transform: uppercase;
    overflow-wrap: anywhere
}

.hero h1 span {
    color: var(--accent)
}

/* sized in em so the photo scales with the name and never widens the line */
.hero h1 .avatar {
    display: inline-block;
    width: .9em;
    height: .9em;
    margin-left: .14em;
    vertical-align: -.06em;
    border-radius: 50%;
    object-fit: cover;
    border: max(2px, .03em) solid var(--accent);
    background: #1c1c1c
}

.hero-grid {
    display: grid;
    gap: 24px;
    align-items: end
}

.hero p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-2);
    max-width: 620px
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: background .2s, color .2s, transform .2s
}

.btn:hover {
    transform: translateY(-2px)
}

.btn-primary {
    background: var(--accent);
    color: var(--ink)
}

.btn-primary:hover {
    background: #fff;
    color: var(--ink)
}

.btn-ghost {
    border: 1.5px solid #4a4a4a;
    color: var(--text)
}

.btn-ghost:hover {
    background: var(--text);
    border-color: var(--text);
    color: var(--ink)
}

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

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px
}

.stat.hot {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink)
}

.stat b {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1
}

.stat span {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.35;
    color: var(--muted)
}

.stat.hot span {
    color: var(--ink)
}

@media (min-width:640px) {
    .hero {
        padding-top: 24px
    }
    .hero-main {
        padding-top: var(--panel-pad);
        gap: 40px
    }
    .hero p {
        font-size: 21px
    }
    .hero-actions {
        flex-direction: row;
        flex-wrap: wrap
    }
    .stat {
        padding: 28px
    }
    .stat b {
        font-size: 56px
    }
    .stat span {
        font-size: 13px
    }
}

@media (min-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px
    }
    .stats {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }
}

/* ---------- Parts (Work / Portfolio) ---------- */

.part {
    padding-top: clamp(72px, 10vw, 128px);
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px
}

.part-label {
    color: var(--accent);
    border-color: rgba(255, 105, 180, .45);
    font-weight: 700;
    text-transform: uppercase
}

.part h2 {
    font-size: clamp(52px, 15vw, 136px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: .9;
    text-transform: uppercase;
    color: var(--text)
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .part h2 {
        background: linear-gradient(90deg, var(--text) 35%, var(--accent));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent
    }
}

.part p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-2);
    max-width: 640px
}

@media (min-width:640px) {
    .part p {
        font-size: 20px
    }
}

/* ---------- Section blocks ---------- */

.section {
    margin-top: var(--gap)
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px
}

.section-head .idx {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    border: 1px solid rgba(255, 105, 180, .45);
    border-radius: 999px;
    padding: 4px 10px
}

.section-head h2 {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 900;
    letter-spacing: -.03em;
    text-transform: uppercase;
    line-height: 1
}

.section-head .desc {
    flex-basis: 100%;
    font-size: 15px;
    color: var(--muted)
}

@media (min-width:640px) {
    .panel {
        gap: 36px
    }
    .section-head .idx {
        font-size: 13px
    }
    .section-head .desc {
        font-size: 17px
    }
}

/* ---------- Featured (pink) blocks ---------- */

.featured {
    background: var(--accent);
    color: var(--ink);
    border-radius: var(--r-lg);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.featured-top {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.featured h3 {
    font-size: clamp(30px, 7vw, 56px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1;
    margin-top: 8px
}

.featured p {
    font-size: 17px;
    line-height: 1.55;
    max-width: 760px;
    font-weight: 500
}

.btn-dark {
    background: var(--ink);
    color: #fff;
    align-self: flex-start;
    font-size: 15px;
    font-weight: 700;
    min-height: 48px;
    padding: 0 22px
}

.btn-dark:hover {
    background: #fff;
    color: var(--ink)
}

.layers {
    display: grid;
    gap: 10px
}

.layer {
    background: var(--ink);
    color: var(--text);
    border-radius: var(--r-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.layer .mono {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent)
}

.layer span:last-child {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-2)
}

.layer b {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    overflow-wrap: anywhere
}

a.layer {
    text-decoration: none;
    transition: transform .2s, box-shadow .2s
}

a.layer:hover {
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(10, 10, 10, .35)
}

/* external-link badge in the corner so the tiles read as links */
a.layer {
    position: relative
}

a.layer b svg {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    padding: 7px;
    border: 1.5px solid rgba(255, 105, 180, .55);
    border-radius: 50%;
    color: var(--accent);
    transition: background .2s, color .2s
}

a.layer:hover b svg {
    background: var(--accent);
    color: var(--ink)
}

.featured-media {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--ink);
    border: 2px solid var(--ink);
    border-radius: var(--r-md)
}

.featured-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top
}

.owned {
    display: flex;
    flex-direction: column;
    gap: 10px
}

/* erasure-coding story; tall on phones, wide on larger screens */
.storage-art {
    display: block;
    width: 100%;
    aspect-ratio: 4/5;
    border: 2px solid var(--ink);
    border-radius: var(--r-md);
    background-color: var(--ink);
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 18px 18px
}

@media (min-width:640px) {
    .storage-art {
        aspect-ratio: 16/9
    }
}

@media (min-width:1024px) {
    .storage-art {
        aspect-ratio: 16/7
    }
}

.pipeline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700
}

.pipeline span {
    background: var(--ink);
    color: var(--accent);
    border-radius: 999px;
    padding: 7px 14px
}

.pipeline i {
    font-style: normal
}

@media (min-width:560px) {
    .layers {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (min-width:640px) {
    .featured {
        padding: clamp(28px, 4vw, 48px);
        gap: 28px
    }
    .featured-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px
    }
    .featured p {
        font-size: 19px
    }
    .layer {
        padding: 22px
    }
    .layer span:last-child {
        font-size: 16px
    }
    .pipeline {
        font-size: 13px
    }
}

@media (min-width:1024px) {
    .layers {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }
    /* keep domains like explorer.cubane.space on one line in four columns */
    .layer b {
        font-size: 15px
    }
}

/* ---------- Websites ---------- */

.sites {
    display: grid;
    gap: var(--gap)
}

.site {
    color: var(--text);
    text-decoration: none;
    padding: 10px 10px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .2s, transform .2s
}

.site:hover {
    color: var(--text);
    border-color: rgba(255, 105, 180, .5);
    transform: translateY(-3px)
}

.site>:not(.site-media) {
    margin: 0 8px
}

.site .kicker {
    color: var(--muted)
}

.site h3 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.05
}

.site p {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-2)
}

.site-url {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    overflow-wrap: anywhere
}

.site:hover .site-url {
    color: #fff
}

.site-media {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0f0f0f;
    border-radius: calc(var(--r-lg) - 6px);
    margin-bottom: 8px
}

.site-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform .4s ease
}

.site:hover .site-media video {
    transform: scale(1.03)
}

@media (min-width:640px) {
    .sites {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .site {
        padding: 12px 12px 28px
    }
    .site>:not(.site-media) {
        margin: 0 16px
    }
    .site h3 {
        font-size: 30px
    }
    .site p {
        font-size: 17px
    }
}

/* ---------- Experience ---------- */

.jobs {
    display: grid;
    gap: var(--gap)
}

.job {
    padding: 20px;
    display: grid;
    gap: 18px
}

.job.current {
    border-color: rgba(255, 105, 180, .45)
}

.job-meta {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.tag {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    align-self: flex-start;
    border: 1px solid var(--accent);
    color: var(--accent)
}

.tag.solid {
    background: var(--accent);
    color: var(--ink)
}

.job h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15
}

.job .org {
    font-size: 16px;
    color: var(--text-2)
}

.job .loc {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted)
}

@media (min-width:640px) {
    .job {
        padding: 32px
    }
    .job h3 {
        font-size: 28px
    }
    .job .org {
        font-size: 18px
    }
    .tag,
    .job .loc {
        font-size: 13px
    }
}

@media (min-width:900px) {
    .job {
        grid-template-columns: 1fr 2fr;
        gap: 48px
    }
}

/* ---------- Projects ---------- */

.projects {
    display: grid;
    gap: var(--gap)
}

.side-project {
    padding: 22px 20px;
    display: grid;
    gap: 24px
}

.side-project .kicker {
    color: var(--accent)
}

.side-project h3 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.02em;
    line-height: 1.05;
    margin: 10px 0 16px
}

.side-project .copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2)
}

/* marketplace story under the title and chips */
.agent-art {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin-top: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background-color: var(--ink);
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 18px 18px
}

@media (min-width:640px) {
    .agent-art {
        aspect-ratio: 4/3;
        margin-top: 28px
    }
}

@media (min-width:640px) {
    .side-project {
        padding: clamp(28px, 4vw, 48px)
    }
    .side-project h3 {
        font-size: 36px
    }
    .side-project .copy {
        font-size: 17px
    }
}

@media (min-width:900px) {
    .side-project {
        grid-template-columns: 1fr 1fr;
        gap: 56px
    }
}

/* ---------- Stack ---------- */

.stack {
    display: grid;
    gap: 10px
}

.stack>div {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.stack .mono {
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase
}

.stack .hobby {
    background: linear-gradient(135deg, rgba(108, 123, 255, .22), rgba(255, 105, 180, .14)), var(--surface-2);
    border-color: rgba(108, 123, 255, .35)
}

.stack .hobby .mono {
    color: #fff
}

.stack .hobby p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-2)
}

@media (min-width:560px) {
    .stack {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (min-width:640px) {
    .stack>div {
        padding: 24px
    }
    .stack .mono {
        font-size: 13px
    }
}

@media (min-width:1024px) {
    .stack {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }
}

/* ---------- Education & certs ---------- */

.edu {
    display: grid;
    gap: var(--gap)
}

.edu-card {
    display: flex;
    align-items: center;
    gap: 18px
}

/* white badge keeps the navy seal legible in both themes */
.edu-logo {
    flex: none;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    padding: 9px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08)
}

.edu-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

.edu-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px
}

.edu-item .mono {
    font-size: 12px;
    color: var(--accent)
}

.edu-item b {
    font-size: 19px;
    font-weight: 800
}

.edu-item span:last-child {
    font-size: 15px;
    color: var(--muted)
}

.certs {
    display: flex;
    flex-direction: column;
    gap: 8px
}

.certs li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: var(--r-md)
}

.certs li>span:first-child {
    font-size: 16px;
    font-weight: 600
}

.certs .mono {
    font-size: 12px;
    color: var(--muted)
}

.certs em {
    font-style: normal;
    color: var(--accent)
}

@media (min-width:640px) {
    .edu-item .mono,
    .certs .mono {
        font-size: 13px
    }
    .edu-item b {
        font-size: 22px
    }
    .edu-logo {
        width: 88px;
        height: 88px;
        padding: 11px
    }
    .edu-item span:last-child {
        font-size: 16px
    }
    .certs li {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: baseline;
        gap: 8px 16px;
        padding: 16px 20px
    }
    .certs li>span:first-child {
        font-size: 17px
    }
}

@media (min-width:900px) {
    .edu {
        grid-template-columns: 1fr 1fr
    }
}

/* ---------- Contact ---------- */

.contact-wrap {
    padding-top: clamp(72px, 10vw, 128px);
    padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom))
}

.contact {
    position: relative;
    overflow: hidden;
    background: var(--accent);
    color: var(--ink);
    border-radius: var(--r-xl);
    padding: 28px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px
}

.contact::after {
    content: "";
    position: absolute;
    right: -12%;
    top: -40%;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .35), transparent 65%);
    pointer-events: none
}

.contact>* {
    position: relative
}

.contact h2 {
    font-size: clamp(40px, 11vw, 112px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: .92;
    text-transform: uppercase;
    margin-top: 14px
}

.contact-grid {
    display: grid;
    gap: 10px
}

.contact-grid a {
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    border-radius: var(--r-md);
    padding: 18px 20px;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    transition: transform .2s
}

.contact-grid a:hover {
    transform: translateY(-3px)
}

.contact-grid .mono {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700
}

.contact-grid b {
    font-size: 16px;
    overflow-wrap: anywhere
}

.legal {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1.5px solid rgba(10, 10, 10, .35);
    padding-top: 18px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700
}

@media (min-width:560px) {
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .contact-grid a:last-child:nth-child(odd) {
        grid-column: 1 / -1
    }
}

@media (min-width:640px) {
    .contact {
        padding: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 56px) 28px;
        gap: 48px
    }
    .contact-grid {
        gap: 14px
    }
    .contact-grid a {
        padding: 24px
    }
    .contact-grid .mono {
        font-size: 12px
    }
    .contact-grid b {
        font-size: 17px
    }
    .legal {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        font-size: 13px;
        padding-top: 22px
    }
}

@media (min-width:1024px) {
    /* widths follow content so the email and LinkedIn handle stay on one line */
    .contact-grid {
        grid-template-columns: 1.5fr 1fr 1.6fr .7fr
    }
}

/* ---------- Motion ---------- */

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(28px)
    }
    to {
        opacity: 1;
        transform: none
    }
}

@media (prefers-reduced-motion:no-preference) {
    @supports (animation-timeline: view()) {
        .reveal {
            animation: rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 35%
        }
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }
    .pill.live .dot {
        animation: none
    }
    .btn,
    .site,
    a.layer,
    .contact-grid a,
    .site-media video {
        transition: none
    }
    .btn:hover,
    .site:hover,
    a.layer:hover,
    .contact-grid a:hover,
    .site:hover .site-media video {
        transform: none
    }
}

/* ---------- Services (home) ---------- */

.services {
    display: grid;
    gap: var(--gap)
}

.service-card {
    color: var(--text);
    text-decoration: none;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color .2s, transform .2s
}

.service-card:hover {
    color: var(--text);
    border-color: rgba(255, 105, 180, .5);
    transform: translateY(-3px)
}

.service-card .kicker {
    color: var(--accent)
}

.service-card h3 {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 900;
    letter-spacing: -.03em;
    line-height: 1.02
}

.service-card p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2)
}

.service-card .chips {
    flex: 1;
    align-content: flex-start
}

.more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none
}

.service-card:hover .more,
a.more:hover {
    color: #fff
}

/* on pink blocks the link is ink */
.featured .more {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    align-self: flex-start
}

.featured .more:hover {
    color: #fff
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    font-size: 16px;
    color: var(--text-2)
}

@media (min-width:640px) {
    .services {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .service-card {
        padding: 32px
    }
    .service-card p {
        font-size: 17px
    }
}

/* ---------- Inner pages ---------- */

.page-hero {
    padding-top: clamp(40px, 7vw, 88px);
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted)
}

.crumbs a {
    color: var(--text-2);
    text-decoration: none
}

.crumbs a:hover {
    color: #fff
}

.page-hero h1 {
    font-size: clamp(38px, 8.5vw, 92px);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: .95;
    text-transform: uppercase;
    max-width: 16ch;
    overflow-wrap: anywhere
}

.page-hero h1 span {
    color: var(--accent)
}

.lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-2);
    max-width: 720px
}

.page-hero .hero-actions {
    margin-top: 6px
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.offers {
    display: grid;
    gap: var(--gap)
}

.offer {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px
}

.offer h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15
}

.offer p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2)
}

.steps {
    display: grid;
    gap: var(--gap);
    counter-reset: step
}

.step {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.step::before {
    counter-increment: step;
    content: "0" counter(step);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent)
}

.step h3 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em
}

.step p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-2)
}

.prose {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-2);
    max-width: 780px;
    min-width: 0
}

.prose h3 {
    margin-top: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--text)
}

.prose strong {
    color: var(--text)
}

.prose a {
    color: var(--accent);
    text-underline-offset: 3px
}

.prose ul,
.prose ol {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 1.3em;
    margin: 0
}

.prose ul {
    list-style: disc
}

.prose ol {
    list-style: decimal
}

.prose li::marker {
    color: var(--accent)
}

.prose pre {
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 18px;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 13.5px;
    tab-size: 4;
    line-height: 1.6;
    color: var(--text);
    max-width: 100%;
    min-width: 0
}

.prose pre code {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: inherit
}

.prose code {
    font-family: var(--mono);
    font-size: .88em;
    color: var(--accent);
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1px 6px
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 10px
}

.faq details {
    padding: 18px 20px
}

.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4
}

.faq summary::-webkit-details-marker {
    display: none
}

.faq summary::after {
    content: "+";
    font-family: var(--mono);
    color: var(--accent)
}

.faq details[open] summary::after {
    content: "−"
}

.faq details p {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-2)
}

.page-media {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: top;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: var(--ink)
}

@media (min-width:640px) {
    .crumbs {
        font-size: 13px
    }
    .lede {
        font-size: 21px
    }
    .offers {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .offer,
    .step {
        padding: 28px
    }
    .offer h3 {
        font-size: 24px
    }
    .offer p {
        font-size: 17px
    }
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
    .faq details {
        padding: 20px 24px
    }
    .faq summary {
        font-size: 18px
    }
}

@media (min-width:1024px) {
    .steps {
        grid-template-columns: repeat(4, minmax(0, 1fr))
    }
}

/* ---------- Footer site links & narrow nav ---------- */

.site-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700
}

.site-links a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px
}

.site-links a:hover {
    color: #fff
}

@media (min-width:640px) {
    .site-links {
        font-size: 13px
    }
}

/* the Blog link only fits in the header on wide screens; the footer always links it */
@media (max-width:959px) {
    .nav-links .opt-wide {
        display: none
    }
}

/* very narrow phones: drop the optional nav link so the pill never overflows */
@media (max-width:439px) {
    .nav-links .opt {
        display: none
    }
}

.site-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top
}

@media (min-width:1024px) {
    .services.three {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }
}
