@font-face {
    font-family: "Geist";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("https://cdn.jsdelivr.net/npm/@fontsource-variable/geist@5.2.9/files/geist-latin-wght-normal.woff2") format("woff2-variations");
}

@font-face {
    font-family: "Geist Mono";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("https://cdn.jsdelivr.net/npm/@fontsource-variable/geist-mono@5.2.8/files/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
    --editorial-canvas: #fbfaf6;
    --editorial-surface: #f7f6ef;
    --editorial-ink: #090909;
    --editorial-muted: #6f6d69;
    --editorial-faint: #a9a69e;
    --editorial-rule: #dad9d2;
    --editorial-rule-strong: #b3b0a9;
    --editorial-accent: #4b3bff;
    --editorial-accent-dark: #3021e8;
    --editorial-accent-soft: #efefff;
    --editorial-positive: #67ae00;
    --editorial-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --editorial-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
}

html {
    background: var(--editorial-canvas);
    overflow-x: clip;
    scroll-behavior: smooth;
}

body.editorial-site {
    min-width: 320px;
    margin: 0;
    overflow-x: clip;
    background: var(--editorial-canvas);
    color: var(--editorial-ink);
    font-family: var(--editorial-sans);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

body.editorial-site *,
body.editorial-site *::before,
body.editorial-site *::after {
    box-sizing: border-box;
}

body.editorial-site ::selection {
    background: var(--editorial-accent);
    color: #fff;
}

body.editorial-site :focus-visible {
    outline: 2px solid var(--editorial-accent);
    outline-offset: 4px;
}

body.editorial-site .orb-container,
body.editorial-site .page-glow,
body.editorial-site .custom-tooltip {
    display: none !important;
}

body.editorial-site a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

body.editorial-site > .container,
body.editorial-site > main.container,
body.editorial-site > div.container {
    width: min(100%, 1440px);
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(24px, 4vw, 64px);
}

body.editorial-site header,
body.editorial-site .site-header {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 0;
    border-bottom: 0;
    color: var(--editorial-muted);
    font-family: var(--editorial-mono);
    font-size: 8px;
    font-weight: 450;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

body.editorial-site header .logo,
body.editorial-site header .logo a,
body.editorial-site .site-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--editorial-ink);
    font-family: var(--editorial-sans);
    font-size: 13px;
    font-weight: 560;
    letter-spacing: -0.025em;
    text-decoration: none;
    text-transform: none;
}

body.editorial-site header .logo::before,
body.editorial-site .site-header .logo::before {
    display: none;
}

body.editorial-site header nav,
body.editorial-site .site-header nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 38px);
}

body.editorial-site header nav a,
body.editorial-site .site-header nav a {
    margin: 0;
    color: var(--editorial-muted);
    font-family: var(--editorial-sans);
    font-size: 13px;
    font-weight: 450;
    letter-spacing: -0.01em;
    text-decoration: none;
    text-transform: none;
    transition: color 150ms ease;
}

body.editorial-site header nav a:hover,
body.editorial-site .site-header nav a:hover {
    color: var(--editorial-accent);
    opacity: 1;
}

body.editorial-site footer,
body.editorial-site .footer {
    min-height: 132px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 32px 0;
    border-top: 1px solid var(--editorial-rule);
    color: var(--editorial-muted);
    font-family: var(--editorial-mono);
    font-size: 10px;
}

body.editorial-site footer a,
body.editorial-site .footer a {
    color: inherit;
}

body.editorial-site .social-links {
    display: flex;
    gap: 8px;
}

body.editorial-site .icon-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--editorial-rule);
    border-radius: 0;
    background: transparent;
    color: var(--editorial-ink);
}

body.editorial-site .icon-button:hover {
    border-color: var(--editorial-accent);
    background: var(--editorial-accent-soft);
    color: var(--editorial-accent);
}

/* Homepage */
body.site-home main {
    padding: 0;
}

body.site-home .hero {
    min-height: min(680px, calc(100vh - 66px));
    max-width: none;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-content: center;
    column-gap: clamp(14px, 2.1vw, 32px);
    row-gap: 18px;
    padding: clamp(64px, 8vw, 112px) 0;
    border-bottom: 1px solid var(--editorial-ink);
}

body.site-home .hero .subtitle {
    grid-column: 1 / 4;
    grid-row: 1;
    align-self: start;
    margin: 11px 0 0;
    color: var(--editorial-accent);
    font-family: var(--editorial-mono);
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
}

body.site-home .hero h1 {
    grid-column: 1 / 10;
    grid-row: 1;
    max-width: 1040px;
    margin: 0 0 clamp(26px, 3vw, 42px);
    background: none;
    color: var(--editorial-ink);
    -webkit-text-fill-color: currentColor;
    font-size: clamp(32px, 4.2vw, 65px);
    font-weight: 420;
    letter-spacing: -0.065em;
    line-height: 0.91;
}

body.site-home .hero .bio {
    grid-column: 1 / 7;
    max-width: 720px;
    margin: 0;
    color: var(--editorial-muted);
    font-size: clamp(15px, 1.35vw, 18px);
    line-height: 1.5;
}

body.site-home .hero .bio:first-of-type {
    color: var(--editorial-ink);
}

body.site-home .hero .bio span {
    color: inherit;
}

body.site-home .hero .bio a,
body.site-home .job-details a {
    color: var(--editorial-accent);
}

body.site-home main > section {
    margin: 0;
    padding: clamp(60px, 7vw, 96px) 0;
    border-bottom: 1px solid var(--editorial-rule-strong);
}

body.site-home .section-header {
    min-height: 72px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    margin: 0 0 clamp(36px, 5vw, 68px);
    padding: 0;
}

body.site-home .section-header h2 {
    grid-column: 1 / 7;
    margin: 0;
    color: var(--editorial-ink);
    font-size: clamp(34px, 4.4vw, 62px);
    font-weight: 430;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

body.site-home .app-showcase {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: 0;
}

body.site-home .app-showcase .section-header {
    width: min(100% - 48px, 1312px);
    max-width: 1312px;
    margin-inline: auto;
}

body.site-home .showcase-rail {
    gap: 47px;
    padding: 8px max(24px, calc((100vw - 1312px) / 2)) 20px;
}

body.site-home .showcase-card {
    flex-basis: min(483px, calc(100vw - 48px));
    height: 753px;
    min-height: 753px;
    border: 1px solid var(--editorial-rule-strong);
    border-radius: 0;
    box-shadow: none;
}

body.site-home .showcase-card--wide {
    flex-basis: min(1046px, calc(100vw - 48px));
}

body.site-home .showcase-card::before {
    transform: none;
}

body.site-home .showcase-card:hover::before,
body.site-home .showcase-card:focus-visible::before {
    transform: scale(1.015);
}

body.site-home .showcase-card[data-app="berm"]::before,
body.site-home .showcase-card[data-app="traverse"]::before,
body.site-home .showcase-card[data-app="slab"]::before {
    background-position: center;
    background-size: 100% 100%;
    transform: none;
}

body.site-home .showcase-card[data-app="berm"]::before {
    background-image: url("/static/images/app-showcase/berm-figma-bg.png");
}

body.site-home .showcase-card[data-app="traverse"]::before {
    background-image: url("/static/images/app-showcase/traverse-figma-bg.png");
}

body.site-home .showcase-card[data-app="slab"]::before {
    background-image: url("/static/images/app-showcase/slab-figma-bg.png");
}

body.site-home .showcase-card[data-app="berm"]:hover::before,
body.site-home .showcase-card[data-app="berm"]:focus-visible::before,
body.site-home .showcase-card[data-app="traverse"]:hover::before,
body.site-home .showcase-card[data-app="traverse"]:focus-visible::before,
body.site-home .showcase-card[data-app="slab"]:hover::before,
body.site-home .showcase-card[data-app="slab"]:focus-visible::before {
    transform: none;
}

body.site-home .showcase-card[data-app="berm"]::after,
body.site-home .showcase-card[data-app="slab"]::after {
    background: none;
}

body.site-home .showcase-card[data-app="traverse"]::after {
    top: -27px;
    bottom: auto;
    height: 539px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, #000000 76.442%);
}

body.site-home .showcase-card--image {
    background: var(--editorial-canvas);
    color: var(--editorial-ink);
}

body.site-home .showcase-card--image::before,
body.site-home .showcase-card--image::after {
    display: none;
}

body.site-home .showcase-project-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.site-home .showcase-heading {
    text-shadow: none;
}

body.site-home .showcase-heading span {
    display: none;
}

body.site-home .showcase-card[data-app="berm"] .showcase-heading,
body.site-home .showcase-card[data-app="traverse"] .showcase-heading,
body.site-home .showcase-card[data-app="slab"] .showcase-heading {
    right: auto;
    z-index: 3;
    margin: 0;
}

body.site-home .showcase-card[data-app="berm"] .showcase-heading {
    top: 10.89%;
    left: 23.60%;
    width: 55.28%;
    height: 6.24%;
}

body.site-home .showcase-card[data-app="traverse"] .showcase-heading {
    top: 10.17%;
    left: 22.01%;
    width: 54.39%;
    height: 5.85%;
}

body.site-home .showcase-card[data-app="slab"] .showcase-heading {
    top: 7.95%;
    left: 30.85%;
    width: 38.51%;
    height: 7.93%;
}

body.site-home .showcase-card[data-app="berm"] .showcase-logo,
body.site-home .showcase-card[data-app="traverse"] .showcase-logo,
body.site-home .showcase-card[data-app="slab"] .showcase-logo {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: fill;
    transform: none;
}

body.site-home .showcase-card--wide .wide-logo-text,
body.site-home .showcase-card--rtd .wide-logo-text {
    color: var(--editorial-ink);
    text-shadow: none;
}

body.site-home .showcase-card--rtd .showcase-heading span {
    color: var(--editorial-muted);
}

body.site-home .showcase-info {
    background: var(--editorial-canvas);
    border-top-color: var(--editorial-rule);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateY(0);
    opacity: 1;
}

body.site-home .showcase-card:hover .showcase-info,
body.site-home .showcase-card:focus-visible .showcase-info {
    background: var(--editorial-canvas);
}

body.site-home .showcase-copy,
body.site-home .showcase-copy strong,
body.site-home .showcase-info--text .showcase-copy {
    color: var(--editorial-ink);
    text-shadow: none;
}

body.site-home .showcase-cta {
    border: 1px solid var(--editorial-accent);
    border-radius: 0;
    background: transparent;
    color: var(--editorial-accent);
}

body.site-home .device-shell {
    top: 21.38%;
    right: auto;
    bottom: auto;
    left: 14.29%;
    width: 71.55%;
    aspect-ratio: 345.6 / 708.8;
    transform: none;
    overflow: hidden;
    border: 0;
    border-radius: 60px;
    background: #050505;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.18));
}

body.site-home .device-media {
    left: 4.34%;
    top: 1.55%;
    width: 91.15%;
    height: 96.64%;
    border-radius: 40px;
}

body.site-home .device-media video,
body.site-home .device-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.site-home .phone-frame {
    display: none;
}

body.site-home .device-island {
    top: 3.39%;
    z-index: 3;
    width: 28.70%;
    height: 4.06%;
    border-radius: 15px;
}

body.site-home .device-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 5.6px solid #3b4c64;
    border-radius: 54.4px;
    box-shadow: inset 0 0 2.4px 0.8px rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

body.site-home .showcase-card[data-app="traverse"] .device-media {
    left: 4.63%;
    top: 1.83%;
    width: 90.28%;
    height: 95.66%;
}

body.site-home .showcase-card[data-app="slab"] .device-media {
    left: 3.47%;
    top: 1.69%;
    width: 92.01%;
    height: 97.63%;
}

body.site-home .showcase-info,
body.site-home .showcase-heading {
    border-radius: 0;
}

@media (hover: hover) and (pointer: fine) {
    body.site-home .showcase-info {
        transform: translateY(100%);
        opacity: 0;
    }

    body.site-home .showcase-card:hover .showcase-info,
    body.site-home .showcase-card:focus-visible .showcase-info {
        transform: translateY(0);
        opacity: 1;
    }
}

body.site-home #writing .experience-list,
body.site-home #experience .experience-list {
    gap: 0;
}

body.site-home .job-item {
    display: grid;
    grid-template-columns: minmax(130px, 2fr) minmax(0, 7fr) minmax(0, 3fr);
    column-gap: clamp(20px, 3vw, 48px);
    padding: 28px 0;
    border-top: 1px solid var(--editorial-rule);
    border-bottom: 0;
}

body.site-home .job-item:last-child {
    border-bottom: 1px solid var(--editorial-rule);
}

body.site-home .job-dates {
    padding: 4px 0 0;
    color: var(--editorial-muted);
    font-family: var(--editorial-mono);
    font-size: 10px;
    line-height: 1.45;
}

body.site-home .job-details h3 {
    margin: 0;
    color: var(--editorial-ink);
    font-size: clamp(17px, 1.45vw, 21px);
    font-weight: 470;
    letter-spacing: -0.03em;
    line-height: 1.18;
}

body.site-home .job-company {
    color: var(--editorial-muted);
    font-weight: inherit;
}

body.site-home .job-desc {
    max-width: 720px;
    margin-top: 10px;
    color: var(--editorial-muted);
    font-size: 12px;
    line-height: 1.55;
}

body.site-home .writing-group {
    gap: 0;
}

body.site-home .writing-group > div + div {
    border-top: 1px solid var(--editorial-rule);
}

body.site-home .writing-link {
    padding: 0 0 26px;
    color: inherit;
    text-decoration: none;
    transition: transform 150ms ease;
    will-change: transform;
}

body.site-home .writing-group > div + div .writing-link {
    padding-top: 26px;
}

body.site-home .writing-link:hover,
body.site-home .writing-link:focus-visible {
    transform: translateX(12px);
    color: inherit;
    opacity: 1;
}

body.site-home .writing-link:hover .job-desc,
body.site-home .writing-link:focus-visible .job-desc {
    color: var(--editorial-muted);
}

body.site-home .section-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    margin-top: 36px;
    padding: 0 18px;
    border: 1px solid var(--editorial-accent);
    border-radius: 0;
    color: var(--editorial-accent);
    font-family: var(--editorial-mono);
    font-size: 11px;
    text-decoration: none;
}

body.site-home .section-link:hover {
    background: var(--editorial-accent);
    color: #fff;
}

body.site-home .job-mini-card {
    border: 1px solid var(--editorial-rule);
    border-radius: 0;
    box-shadow: none;
}

body.site-home #experience .job-card-stack {
    position: relative;
    left: auto;
    bottom: auto;
    grid-column: 2 / 4;
    grid-row: 2;
    width: min(520px, 100%);
    height: 96px;
    margin-top: 18px;
}

body.site-home #experience .job-item + .job-item {
    position: relative;
    z-index: 1;
    margin-top: -104px;
}

body.site-home #experience .job-item:not(:last-child) {
    clip-path: inset(0 0 104px 0);
}

/* Writing archive */
body.writing-index main {
    padding: 0 0 clamp(80px, 10vw, 144px);
}

body.writing-index .hero {
    min-height: 420px;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(140px, 2fr) minmax(0, 10fr);
    align-content: center;
    column-gap: clamp(24px, 4vw, 64px);
    margin: 0;
    padding: clamp(64px, 7vw, 104px) 0;
    border-bottom: 1px solid var(--editorial-ink);
}

body.writing-index .hero .back-link {
    grid-column: 1;
    align-self: start;
    margin: 11px 0 0;
}

body.writing-index .hero h1,
body.writing-index .hero .subtitle {
    grid-column: 2;
}

body.writing-index .hero h1 {
    margin: 0;
    background: none;
    color: var(--editorial-ink);
    -webkit-text-fill-color: currentColor;
    font-size: clamp(38px, 5.4vw, 74px);
    font-weight: 410;
    letter-spacing: -0.07em;
    line-height: 0.86;
}

body.writing-index .hero .subtitle {
    max-width: 680px;
    margin: 42px 0 0;
    color: var(--editorial-muted);
    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.45;
}

body.writing-index .back-link,
body.article-page .back-link {
    color: var(--editorial-accent);
    font-family: var(--editorial-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
}

body.writing-index main > section:not(.hero) {
    margin: 0;
    padding: clamp(72px, 8vw, 112px) 0 0;
}

body.writing-index .section-header {
    margin-bottom: 42px;
}

body.writing-index .section-header h2 {
    margin: 0;
    color: var(--editorial-muted);
    font-family: var(--editorial-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.writing-index .experience-list {
    gap: 0;
}

body.writing-index .job-item {
    display: grid;
    grid-template-columns: minmax(130px, 2fr) minmax(0, 10fr);
    column-gap: clamp(24px, 4vw, 64px);
    padding: 0;
    border-top: 1px solid var(--editorial-rule);
    border-bottom: 0;
}

body.writing-index .job-item:last-child {
    border-bottom: 1px solid var(--editorial-rule);
}

body.writing-index .job-dates {
    padding: 30px 0;
    color: var(--editorial-accent);
    font-family: var(--editorial-mono);
    font-size: 11px;
}

body.writing-index .writing-group {
    gap: 0;
}

body.writing-index .writing-group > div + div,
body.writing-index .job-details > .writing-link + .writing-link {
    border-top: 1px solid var(--editorial-rule);
}

body.writing-index .writing-link {
    position: relative;
    display: block;
    padding: 27px 64px 28px 0;
    color: inherit;
    text-decoration: none;
    transition: transform 150ms ease;
    will-change: transform;
}

body.writing-index .writing-link::after {
    position: absolute;
    top: 30px;
    right: 4px;
    color: var(--editorial-muted);
    content: "↗";
    font-family: var(--editorial-mono);
    font-size: 15px;
}

body.writing-index .writing-link:hover,
body.writing-index .writing-link:focus-visible {
    transform: translateX(12px);
    color: inherit;
    opacity: 1;
}

body.writing-index .job-details h3 {
    margin: 0;
    color: inherit;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 440;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

body.writing-index .job-desc {
    max-width: 760px;
    margin-top: 12px;
    color: var(--editorial-muted);
    font-size: 12px;
    line-height: 1.55;
}

/* Long-form articles */
body.article-page {
    --article-width: 720px;
}

body.article-page > .container,
body.article-page > main.container,
body.article-page > div.container {
    width: min(100%, 1440px);
}

body.article-page .article-shell {
    width: min(100%, var(--article-width));
    max-width: var(--article-width);
    margin-inline: auto;
    padding: clamp(54px, 6vw, 84px) 0 clamp(64px, 8vw, 112px);
}

body.article-page main.container {
    padding-top: 0;
    padding-bottom: clamp(80px, 10vw, 144px);
}

body.article-page main.container > .article-shell {
    margin-inline: auto;
}

body.article-page .back-link {
    display: inline-flex;
    align-items: center;
    margin: 0 0 clamp(48px, 6vw, 82px);
}

body.article-page .back-link::before {
    margin-right: 8px;
    content: "←";
}

body.article-page .eyebrow {
    margin: 0 0 22px;
    color: var(--editorial-accent);
    font-family: var(--editorial-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 1.45;
    text-transform: uppercase;
}

body.article-page h1 {
    max-width: 980px;
    margin: 0 0 22px;
    background: none;
    color: var(--editorial-ink);
    -webkit-text-fill-color: currentColor;
    font-size: clamp(26px, 3.18vw, 43px);
    font-weight: 410;
    letter-spacing: -0.062em;
    line-height: 0.98;
}

body.article-page .dek {
    max-width: 720px;
    margin: 0 0 clamp(44px, 5vw, 68px);
    color: var(--editorial-muted);
    font-size: clamp(17px, 1.65vw, 22px);
    font-weight: 400;
    letter-spacing: -0.018em;
    line-height: 1.42;
}

body.article-page article {
    color: var(--editorial-ink);
    font-family: var(--editorial-sans);
    font-size: clamp(16px, 1.2vw, 17.5px);
    line-height: 1.68;
}

body.article-page article p {
    margin: 0 0 1.45em;
}

body.article-page article h2,
body.article-page .article-shell h2 {
    margin: 3.1em 0 0.72em;
    color: var(--editorial-ink);
    font-family: var(--editorial-sans);
    font-size: clamp(29px, 3.5vw, 44px);
    font-weight: 430;
    letter-spacing: -0.052em;
    line-height: 1.02;
}

body.article-page article h3,
body.article-page .article-shell h3 {
    margin: 2.4em 0 0.7em;
    color: var(--editorial-ink);
    font-family: var(--editorial-sans);
    font-size: clamp(20px, 1.9vw, 25px);
    font-weight: 470;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

body.article-page article h4,
body.article-page .article-shell h4 {
    margin: 2.2em 0 0.65em;
    font-family: var(--editorial-mono);
    font-size: 10px;
    font-weight: 550;
    letter-spacing: 0.03em;
    line-height: 1.35;
    text-transform: uppercase;
}

body.article-page article ul,
body.article-page article ol {
    margin: 0 0 1.7em;
    padding-left: 1.35em;
}

body.article-page article li {
    margin-bottom: 0.6em;
    padding-left: 0.2em;
}

body.article-page article a {
    color: var(--editorial-accent);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--editorial-accent) 45%, transparent);
}

body.article-page article a:hover {
    color: var(--editorial-accent-dark);
    opacity: 1;
    text-decoration-color: currentColor;
}

body.article-page code,
body.article-page kbd {
    border: 1px solid var(--editorial-rule);
    border-radius: 0;
    background: var(--editorial-accent-soft);
    color: var(--editorial-ink);
    font-family: var(--editorial-mono);
    font-size: 0.78em;
}

body.article-page code {
    padding: 0.12em 0.35em;
}

body.article-page pre code {
    display: block;
    padding: 20px;
    overflow-x: auto;
}

body.article-page blockquote {
    margin: 2.2em 0;
    padding: 0 0 0 24px;
    border-left: 2px solid var(--editorial-accent);
    color: var(--editorial-muted);
}

body.article-page figure {
    border-radius: 0;
    box-shadow: none;
}

body.article-page .hero-figure,
body.article-page .map-hero,
body.article-page .hero-console,
body.article-page .hero-shot,
body.article-page .tap-demo,
body.article-page .datavis-figure,
body.article-page .product-shot,
body.article-page .architecture-figure,
body.article-page .comparison-figure,
body.article-page .system-figure {
    position: relative;
    left: 50%;
    width: min(calc(100vw - 48px), 1120px);
    max-width: 1120px;
    margin: clamp(56px, 7vw, 92px) 0;
    overflow: clip;
    border: 1px solid var(--editorial-rule);
    border-radius: 0;
    background: var(--editorial-surface);
    box-shadow: none;
    transform: translateX(-50%);
}

body.article-page figure img {
    max-width: 100%;
}

body.article-page figcaption {
    padding: 14px 18px;
    border-top: 1px solid var(--editorial-rule);
    color: var(--editorial-muted);
    font-family: var(--editorial-mono);
    font-size: 10px;
    line-height: 1.5;
}

body.article-page .browser-frame,
body.article-page .demo-window,
body.article-page .glacier-map-card,
body.article-page .datavis,
body.article-page .chart-panel,
body.article-page .pipeline-step,
body.article-page .mock-stat,
body.article-page .prompt-row,
body.article-page .flow-step,
body.article-page .metric,
body.article-page .app-window,
body.article-page .trace-panel,
body.article-page .architecture-card {
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.article-page .signature {
    margin-top: 4em;
    padding-top: 20px;
    border-top: 1px solid var(--editorial-rule);
    color: var(--editorial-muted);
    font-family: var(--editorial-mono);
    font-size: 11px;
}

body.article-page .read-progress {
    display: none;
}

body.article-page .leaflet-container,
body.article-page #chamonix-map,
body.article-page #glacierHeroMap {
    contain: paint;
    overflow: hidden;
}

.editorial-progress {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 1000;
    width: var(--editorial-progress, 0%);
    height: 2px;
    background: var(--editorial-accent);
    pointer-events: none;
}

.editorial-toc {
    position: fixed;
    top: 138px;
    right: clamp(14px, 1.4vw, 24px);
    z-index: 12;
    width: 214px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding: 0 0 20px 20px;
    border-left: 1px solid var(--editorial-rule);
    scrollbar-width: thin;
}

.editorial-toc-label {
    margin-bottom: 14px;
    color: var(--editorial-muted);
    font: 500 9px/1 var(--editorial-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.editorial-toc ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.editorial-toc a {
    display: block;
    color: var(--editorial-muted);
    font: 400 10px/1.35 var(--editorial-mono);
    text-decoration: none;
    transition: color 140ms ease;
}

.editorial-toc a:hover,
.editorial-toc a[aria-current="location"] {
    color: var(--editorial-accent);
}

@media (min-width: 1341px) {
    body.article-page .hero-figure,
    body.article-page .map-hero,
    body.article-page .hero-console,
    body.article-page .hero-shot,
    body.article-page .tap-demo,
    body.article-page .datavis-figure,
    body.article-page .product-shot,
    body.article-page .architecture-figure,
    body.article-page .comparison-figure,
    body.article-page .system-figure {
        left: calc(50% - 52px);
        width: min(calc(100vw - 360px), 1040px);
    }
}

@media (max-width: 1340px) {
    .editorial-toc {
        display: none;
    }
}

@media (max-width: 820px) {
    body.editorial-site > .container,
    body.editorial-site > main.container,
    body.editorial-site > div.container {
        padding-inline: 20px;
    }

    body.editorial-site header,
    body.editorial-site .site-header {
        min-height: 58px;
        flex-direction: row;
        gap: 16px;
    }

    body.editorial-site header nav,
    body.editorial-site .site-header nav {
        gap: 14px;
    }

    body.editorial-site header nav a,
    body.editorial-site .site-header nav a {
        font-size: 13px;
    }

    body.site-home .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 64px 0 72px;
    }

    body.site-home .hero .subtitle,
    body.site-home .hero h1,
    body.site-home .hero .bio {
        grid-column: 1;
        grid-row: auto;
    }

    body.site-home .hero .subtitle {
        margin: 0 0 26px;
    }

    body.site-home .hero h1 {
        margin-bottom: 26px;
        font-size: clamp(29px, 8.4vw, 38px);
    }

    body.site-home .section-header {
        display: block;
        min-height: 0;
    }

    body.site-home .section-header h2 {
        font-size: 40px;
    }

    body.site-home .showcase-rail {
        gap: 24px;
    }

    body.site-home .showcase-card,
    body.site-home .showcase-card--wide {
        flex-basis: min(342px, calc(100vw - 48px));
        height: auto;
        min-height: 0;
        aspect-ratio: 483 / 753;
    }

    body.site-home .device-shell {
        top: 21.38%;
        bottom: auto;
        left: 14.29%;
        width: 71.55%;
    }

    body.site-home .job-item {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.site-home #experience .job-card-stack {
        position: relative;
        left: auto;
        bottom: auto;
        grid-column: 1;
        grid-row: auto;
        width: min(390px, 100%);
        margin-top: 8px;
    }

    body.site-home #experience .job-item + .job-item {
        margin-top: -86px;
    }

    body.site-home #experience .job-item:not(:last-child) {
        clip-path: inset(0 0 86px 0);
    }

    body.writing-index .hero {
        min-height: 360px;
        display: block;
        padding: 60px 0 68px;
    }

    body.writing-index .hero .back-link {
        margin: 0 0 56px;
    }

    body.writing-index .hero h1 {
        font-size: clamp(36px, 12vw, 53px);
    }

    body.writing-index .hero .subtitle {
        margin-top: 32px;
    }

    body.writing-index .job-item {
        grid-template-columns: 1fr;
    }

    body.writing-index .job-dates {
        padding: 22px 0 0;
    }

    body.article-page .article-shell {
        padding-top: 44px;
    }

    body.article-page .back-link {
        margin-bottom: 52px;
    }

    body.article-page h1 {
        font-size: clamp(24px, 7.2vw, 34px);
    }

    body.article-page .hero-figure,
    body.article-page .map-hero,
    body.article-page .hero-console,
    body.article-page .hero-shot,
    body.article-page .tap-demo,
    body.article-page .datavis-figure,
    body.article-page .product-shot,
    body.article-page .architecture-figure,
    body.article-page .comparison-figure,
    body.article-page .system-figure {
        left: auto;
        width: 100%;
        margin: 48px 0;
        transform: none;
    }
}

@media (max-width: 560px) {
    body.editorial-site header .logo,
    body.editorial-site header .logo a,
    body.editorial-site .site-header .logo {
        font-size: 13px;
    }

    body.editorial-site header .logo::before,
    body.editorial-site .site-header .logo::before {
        width: 9px;
        height: 9px;
    }

    body.editorial-site header nav,
    body.editorial-site .site-header nav {
        gap: 11px;
    }

    body.editorial-site header nav a:nth-child(n + 3),
    body.editorial-site .site-header nav a:nth-child(n + 3) {
        display: none;
    }

    body.site-home main > section {
        padding: 58px 0;
    }

    body.site-home .showcase-card {
        height: auto;
        min-height: 0;
    }

    body.site-home .job-details h3 {
        font-size: 19px;
    }

    body.writing-index .writing-link {
        padding-right: 36px;
    }

    body.writing-index .job-details h3 {
        font-size: 24px;
    }

    body.article-page .dek {
        font-size: 17px;
    }

    body.article-page article {
        font-size: 16px;
    }

    body.editorial-site footer,
    body.editorial-site .footer {
        min-height: 120px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}

/* PeakHut: one map, one explanation, then the request trace at full width. */
body.article-peakhut .tap-demo .tap-stage {
    display: grid;
    grid-template-areas:
        "map head"
        "trace trace"
        "output output";
    grid-template-columns: minmax(0, 1.58fr) minmax(300px, 0.82fr);
}

body.article-peakhut .tap-demo .map-panel {
    grid-area: map;
    min-height: 500px;
    padding: 18px;
}

body.article-peakhut .tap-demo .flow-panel {
    display: contents;
}

body.article-peakhut .tap-demo .flow-head {
    align-content: flex-start;
    background: #fbfcfd;
    display: grid;
    grid-area: head;
    grid-template-rows: auto auto 1fr;
    margin: 0;
    padding: 34px 30px;
}

body.article-peakhut .tap-demo .flow-head > div {
    align-self: start;
}

body.article-peakhut .tap-demo .flow-summary {
    align-self: stretch;
    border-bottom: 1px solid var(--divider);
    border-top: 1px solid var(--divider);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 24px 0;
    width: 100%;
}

body.article-peakhut .tap-demo .flow-summary > div {
    min-width: 0;
    padding: 12px 0;
}

body.article-peakhut .tap-demo .flow-summary > div:nth-child(odd) {
    padding-right: 12px;
}

body.article-peakhut .tap-demo .flow-summary > div:nth-child(even) {
    border-left: 1px solid var(--divider);
    padding-left: 12px;
}

body.article-peakhut .tap-demo .flow-summary > div:nth-child(n + 3) {
    border-top: 1px solid var(--divider);
}

body.article-peakhut .tap-demo .flow-summary span {
    color: #98a2b3;
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

body.article-peakhut .tap-demo .flow-summary strong,
body.article-peakhut .tap-demo .flow-summary code {
    background: transparent;
    color: #344054;
    display: block;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    padding: 0;
}

body.article-peakhut .tap-demo .replay-btn {
    align-self: end;
    justify-self: start;
}

body.article-peakhut .tap-demo .trace-flow {
    background: #fbfcfd;
    border-top: 1px solid var(--divider);
    display: grid;
    gap: 12px;
    grid-area: trace;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 24px;
}

body.article-peakhut .tap-demo .trace-flow::before,
body.article-peakhut .tap-demo .trace-cols {
    display: none;
}

body.article-peakhut .tap-demo .trace-row {
    align-content: start;
    background: #fff;
    border: 1px solid var(--divider);
    display: grid;
    gap: 10px 12px;
    grid-template-areas:
        "number component"
        "description description"
        "status status";
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 172px;
    padding: 14px;
}

body.article-peakhut .tap-demo .trace-row--response {
    grid-column: span 2;
}

body.article-peakhut .tap-demo .trace-num {
    grid-area: number;
    height: 38px;
    width: 38px;
}

body.article-peakhut .tap-demo .trace-comp {
    align-self: center;
    grid-area: component;
}

body.article-peakhut .tap-demo .trace-comp::after {
    display: none;
}

body.article-peakhut .tap-demo .comp-box {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: 38px;
    padding: 0;
}

body.article-peakhut .tap-demo .trace-row.is-active .comp-box,
body.article-peakhut .tap-demo .trace-row.is-done .comp-box {
    background: transparent;
    border: 0;
    box-shadow: none;
}

body.article-peakhut .tap-demo .trace-resp {
    align-self: start;
    font-size: 12px;
    grid-area: description;
    line-height: 1.45;
}

body.article-peakhut .tap-demo .trace-stat {
    align-self: end;
    grid-area: status;
    justify-content: flex-start;
}

body.article-peakhut .tap-demo .provider-branch {
    background: #fff;
    border: 1px solid var(--divider);
    grid-column: 1 / -1;
    padding: 18px;
}

body.article-peakhut .tap-demo .provider-chips {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: none;
}

body.article-peakhut .tap-demo .provider-chips::before,
body.article-peakhut .tap-demo .provider-chips::after,
body.article-peakhut .tap-demo .prov-chip::before {
    display: none;
}

body.article-peakhut .tap-demo .trace-output {
    grid-area: output;
    margin: 0 24px 24px;
}

@media (max-width: 1024px) {
    body.article-peakhut .tap-demo .tap-stage {
        grid-template-areas:
            "map"
            "head"
            "trace"
            "output";
        grid-template-columns: minmax(0, 1fr);
    }

    body.article-peakhut .tap-demo .map-panel {
        border-bottom: 1px solid var(--divider);
        border-right: 0;
    }

    body.article-peakhut .tap-demo .flow-head {
        gap: 18px;
        padding: 26px 24px;
    }

    body.article-peakhut .tap-demo .trace-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body.article-peakhut .tap-demo .map-panel {
        padding: 8px;
    }

    body.article-peakhut .tap-demo .flow-head {
        padding: 22px 18px;
    }

    body.article-peakhut .tap-demo .flow-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    body.article-peakhut .tap-demo .flow-summary > div:nth-child(odd) {
        padding-right: 0;
    }

    body.article-peakhut .tap-demo .flow-summary > div:nth-child(even) {
        border-left: 0;
        padding-left: 0;
    }

    body.article-peakhut .tap-demo .flow-summary > div:nth-child(n + 2) {
        border-top: 1px solid var(--divider);
    }

    body.article-peakhut .tap-demo .trace-flow {
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(0, 1fr);
        padding: 14px;
    }

    body.article-peakhut .tap-demo .trace-row--response {
        grid-column: auto;
    }

    body.article-peakhut .tap-demo .trace-row {
        min-height: 0;
    }

    body.article-peakhut .tap-demo .provider-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.article-peakhut .tap-demo .trace-output {
        margin: 0 14px 14px;
    }
}

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

    body.editorial-site *,
    body.editorial-site *::before,
    body.editorial-site *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
