/* ============================================================
   M Bintang Cahya Putra — personal site
   Identity: "operations record" — hairline rules, monospace
   metadata, iron-oxide accent, moss for live status.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
    color-scheme: light;

    --bg: #e9eae4;
    --surface: #f3f4ef;
    --surface-2: #dfe1d8;
    --text: #191c16;
    --muted: #5c6157;
    --rule: #cbcec2;
    --rule-strong: #b1b5a6;
    --accent: #a8481c;
    --accent-hover: #8d3b16;
    --accent-soft: rgba(168, 72, 28, .09);
    --on-accent: #fdfcf7;
    --live: #4c7439;
    --live-soft: rgba(76, 116, 57, .12);
    --shadow: 0 1px 2px rgba(25, 28, 22, .05), 0 12px 32px -20px rgba(25, 28, 22, .35);

    --font-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --wrap: 1160px;
    --gutter: clamp(20px, 5vw, 56px);
    --header-h: 66px;
    --radius: 3px;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        --bg: #14150f;
        --surface: #1c1e17;
        --surface-2: #262920;
        --text: #e8eae0;
        --muted: #9ba08f;
        --rule: #2e3128;
        --rule-strong: #454939;
        --accent: #e07a3c;
        --accent-hover: #ef8f55;
        --accent-soft: rgba(224, 122, 60, .12);
        --on-accent: #14150f;
        --live: #86ab63;
        --live-soft: rgba(134, 171, 99, .14);
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -24px rgba(0, 0, 0, .9);
    }
}

/* Manual override wins over the media query, in both directions. */
:root[data-theme="light"] {
    color-scheme: light;

    --bg: #e9eae4;
    --surface: #f3f4ef;
    --surface-2: #dfe1d8;
    --text: #191c16;
    --muted: #5c6157;
    --rule: #cbcec2;
    --rule-strong: #b1b5a6;
    --accent: #a8481c;
    --accent-hover: #8d3b16;
    --accent-soft: rgba(168, 72, 28, .09);
    --on-accent: #fdfcf7;
    --live: #4c7439;
    --live-soft: rgba(76, 116, 57, .12);
    --shadow: 0 1px 2px rgba(25, 28, 22, .05), 0 12px 32px -20px rgba(25, 28, 22, .35);
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #14150f;
    --surface: #1c1e17;
    --surface-2: #262920;
    --text: #e8eae0;
    --muted: #9ba08f;
    --rule: #2e3128;
    --rule-strong: #454939;
    --accent: #e07a3c;
    --accent-hover: #ef8f55;
    --accent-soft: rgba(224, 122, 60, .12);
    --on-accent: #14150f;
    --live: #86ab63;
    --live-soft: rgba(134, 171, 99, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -24px rgba(0, 0, 0, .9);
}

/* ── Reset & base ───────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.015em;
    text-wrap: balance;
    margin: 0;
}

p {
    margin: 0;
}

ul,
ol,
dl,
dd {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 1px;
}

::selection {
    background: var(--accent);
    color: var(--on-accent);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    transform: translateY(-200%);
    background: var(--accent);
    color: var(--on-accent);
    padding: 10px 16px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: .8125rem;
}

.skip-link:focus-visible {
    transform: none;
}

/* ── Shared type ────────────────────────────────────────── */
.eyebrow {
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}

.lede {
    font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
    line-height: 1.55;
    max-width: 39ch;
    color: var(--muted);
}

.arrow {
    display: inline-block;
    font-family: var(--font-mono);
    transition: transform .25s ease;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 13px 24px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.btn-solid {
    background: var(--accent);
    color: var(--on-accent);
}

.btn-solid:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    border-color: var(--rule-strong);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn:active {
    transform: translateY(1px);
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: none;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--muted);
    transition: color .2s ease, border-color .2s ease;
}

.icon-btn:hover {
    color: var(--text);
    border-color: var(--rule-strong);
}

.icon-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.i-moon {
    display: none;
}

:root[data-theme="dark"] .i-sun {
    display: none;
}

:root[data-theme="dark"] .i-moon {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .i-sun {
        display: none;
    }

    :root:not([data-theme="light"]) .i-moon {
        display: block;
    }
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease;
}

.site-header.is-stuck {
    border-bottom-color: var(--rule);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-right: auto;
}

.brand .mark {
    width: 21px;
    height: 28px;
    color: var(--accent);
    flex: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-mono);
    font-size: .6875rem;
    line-height: 1.35;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.brand-text b {
    font-weight: 500;
    color: var(--text);
}

.brand-text span {
    color: var(--muted);
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    display: block;
    position: relative;
    padding: 8px 12px;
    font-family: var(--font-display);
    font-size: .875rem;
    font-weight: 500;
    color: var(--muted);
    border-radius: var(--radius);
    transition: color .2s ease;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav a.is-current {
    color: var(--text);
}

.site-nav a.is-current::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--accent);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle {
    display: none;
}

.nav-toggle .bar {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle .bar+.bar {
    margin-top: 4px;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 860px) {
    .nav-toggle {
        display: grid;
    }

    .site-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--surface);
        border-block: 1px solid var(--rule);
        padding: 8px var(--gutter) 16px;
        display: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav a {
        padding: 13px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--rule);
    }

    .site-nav a.is-current::after {
        left: 0;
        right: auto;
        width: 14px;
        bottom: 8px;
    }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    padding-block: clamp(48px, 8vw, 104px) clamp(56px, 7vw, 88px);
    /* the topology motif is allowed to spill past the measure, never past
       the window — clip (not hidden) so sticky positioning still works */
    overflow-x: clip;
}

.hero-inner {
    display: grid;
    gap: clamp(40px, 6vw, 72px);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    }
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
}

.hero-title {
    font-size: clamp(2.75rem, 8vw, 5.25rem);
    font-weight: 700;
    line-height: .93;
    letter-spacing: -.035em;
    margin-block: 2px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--rule-strong);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .04em;
    color: var(--text);
}

.pulse {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    flex: none;
}

.pulse::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--live);
    animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
    0% {
        opacity: .9;
        transform: scale(.6);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

/* Portrait + topology motif */
.hero-portrait {
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.topology {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -54%;
    width: clamp(300px, 118%, 460px);
    max-width: none;
    height: auto;
    color: var(--rule-strong);
    z-index: -1;
}

@media (min-width: 900px) {
    .topology {
        width: clamp(400px, 152%, 700px);
    }
}

.topo-lines path {
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: draw 2.6s cubic-bezier(.2, .7, .2, 1) forwards .15s;
}

.topo-nodes circle {
    opacity: 0;
    animation: fade-in .8s ease forwards 1.1s;
}

.topo-nodes circle:nth-child(4) {
    fill: var(--accent);
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

.portrait-frame {
    position: relative;
    margin: 0;
    width: min(100%, 380px);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 9px;
}

.portrait-frame::before {
    content: "";
    position: absolute;
    inset: -13px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    opacity: .38;
    pointer-events: none;
}

.portrait-frame img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 1px;
    filter: saturate(.94);
}

/* Facts strip */
.facts {
    display: grid;
    gap: 1px;
    margin-top: clamp(48px, 7vw, 88px);
    background: var(--rule);
    border-block: 1px solid var(--rule);
}

.fact {
    background: var(--bg);
    padding: 22px 18px 24px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 620px) {
    .facts {
        grid-template-columns: 1fr 1fr;
    }

    .fact:nth-child(even) {
        padding-left: 24px;
    }
}

@media (min-width: 920px) {
    .facts {
        grid-template-columns: repeat(4, 1fr);
    }

    .fact:nth-child(even) {
        padding-left: 0;
    }

    .fact:not(:nth-child(4n+1)) {
        padding-left: 24px;
    }
}

.fact dt {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
}

.fact dd {
    margin: 0;
}

.fact-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
    color: var(--accent);
}

.fact p {
    font-size: .9375rem;
    color: var(--muted);
}

/* ── Section scaffolding ────────────────────────────────── */
.section {
    border-top: 1px solid var(--rule);
    padding-block: clamp(60px, 8vw, 116px);
}

.section-grid {
    display: grid;
    gap: clamp(28px, 4vw, 44px);
}

@media (min-width: 900px) {
    .section-grid {
        grid-template-columns: 19rem minmax(0, 1fr);
        gap: clamp(48px, 6vw, 96px);
    }

    .section-head {
        position: sticky;
        top: calc(var(--header-h) + 40px);
        align-self: start;
    }
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-title {
    font-size: clamp(1.75rem, 3.1vw, 2.375rem);
    letter-spacing: -.025em;
}

.section-note {
    font-size: .9375rem;
    color: var(--muted);
    max-width: 38ch;
}

/* ── Capabilities ───────────────────────────────────────── */
.cap-list {
    display: grid;
    gap: 1px;
    background: var(--rule);
    border-block: 1px solid var(--rule);
}

@media (min-width: 640px) {
    .cap-list {
        grid-template-columns: 1fr 1fr;
    }
}

.cap {
    background: var(--bg);
    padding: 26px clamp(18px, 3vw, 30px) 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background-color .25s ease;
}

.cap:hover {
    background: var(--surface);
}

.cap-glyph svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cap h3 {
    font-size: 1.0625rem;
    letter-spacing: -.005em;
}

.cap p {
    font-size: .9375rem;
    color: var(--muted);
    max-width: 42ch;
}

/* Stack list — what the services are actually built with */
.stack {
    margin-top: clamp(36px, 5vw, 56px);
}

.stack-title {
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.stack-list {
    display: grid;
    gap: 1px;
    background: var(--rule);
    border-block: 1px solid var(--rule);
}

@media (min-width: 620px) {
    .stack-list {
        grid-template-columns: 1fr 1fr;
    }

    .stack-list>div:nth-child(even) {
        padding-left: 24px;
    }
}

.stack-list>div {
    background: var(--bg);
    padding: 13px 0 15px;
}

.stack-list dt {
    margin-bottom: 3px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.stack-list dd {
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 500;
}

/* ── Work ───────────────────────────────────────────────── */
.work-list {
    border-top: 1px solid var(--rule);
}


.work {
    border-bottom: 1px solid var(--rule);
}

.work-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px 18px;
    align-items: center;
    padding: 20px 0;
    transition: background-color .25s ease, padding-inline .25s ease;
}

@media (min-width: 760px) {
    .work-row {
        grid-template-columns: 60px minmax(0, 1fr) 190px;
        gap: 24px;
        padding: 24px 0;
    }
}

a.work-row:hover {
    background: var(--surface);
    padding-inline: 14px;
}

a.work-row:hover .arrow {
    transform: translate(3px, -3px);
}

a.work-row:hover h3 {
    color: var(--accent);
}

/* Client logos are drawn for light backgrounds, so the chip stays light
   in both themes rather than inverting them into mud. */
.work-logo {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding: 7px;
    background: #f4f5f0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

@media (min-width: 760px) {
    .work-logo {
        width: 60px;
        height: 60px;
    }
}

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

/* Projects without a mark get a monogram chip instead of a broken image */
.work-logo.is-mono {
    background: var(--surface-2);
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
}

.work-main h3 {
    font-size: 1.125rem;
    transition: color .2s ease;
}

.work-main p {
    font-size: .9375rem;
    color: var(--muted);
    margin-top: 3px;
    max-width: 52ch;
}

.work-meta {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

@media (min-width: 760px) {
    .work-meta {
        grid-column: 3;
        justify-content: flex-end;
        margin-top: 0;
    }
}

.tag,
.status,
.kind {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid var(--rule-strong);
}

.status::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.status-live {
    color: var(--live);
    background: var(--live-soft);
    border-color: transparent;
}

.status-internal {
    color: var(--muted);
    background: var(--surface-2);
    border-color: transparent;
}

/* ── Experience ─────────────────────────────────────────── */
.roles {
    border-top: 1px solid var(--rule);
}

.role {
    display: grid;
    gap: 4px 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--rule);
}

@media (min-width: 720px) {
    .role {
        grid-template-columns: 11.5rem minmax(0, 1fr);
    }
}

.role-when {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .06em;
    color: var(--muted);
    padding-top: 3px;
    white-space: nowrap;
}

.role-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-main h3 {
    font-size: 1.0625rem;
}

.role-org {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.role-main p:not(.role-org) {
    font-size: .9375rem;
    color: var(--muted);
    max-width: 62ch;
    margin-top: 4px;
}

/* ── Credentials table ──────────────────────────────────── */
.table-scroll {
    overflow-x: auto;
    scrollbar-width: thin;
}

.records {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-family: var(--font-display);
    font-size: .9375rem;
}

.records th,
.records td {
    text-align: left;
    vertical-align: top;
    padding: 15px 20px 15px 0;
    border-bottom: 1px solid var(--rule);
}

.records thead th {
    font-family: var(--font-mono);
    font-size: .6875rem;
    font-weight: 400;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
    padding-block: 0 10px;
    border-bottom-color: var(--rule-strong);
}

.records tbody th {
    font-weight: 600;
    letter-spacing: -.005em;
    padding-right: 32px;
}

.records tbody td {
    color: var(--muted);
}

.records tbody tr {
    transition: background-color .2s ease;
}

.records tbody tr:hover {
    background: var(--surface);
}

.records .kind {
    display: block;
    margin-top: 5px;
    font-weight: 400;
}

.records .kind-mark {
    color: var(--accent);
}

.records .num {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    width: 1%;
}

.records .pdf {
    width: 1%;
    white-space: nowrap;
    padding-right: 0;
}

.records .pdf a {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.records .pdf a:hover {
    border-bottom-color: var(--accent);
}

.records .pdf a:hover .arrow {
    transform: translate(2px, -2px);
}

/* Narrow screens: the table restacks into records. Explicit ARIA roles in
   the markup keep the table semantics that display:block would drop. */
@media (max-width: 700px) {
    .records {
        min-width: 0;
    }

    .records thead {
        display: none;
    }

    .records,
    .records tbody,
    .records tr,
    .records th,
    .records td {
        display: block;
    }

    .records tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 14px;
        padding: 16px 0;
        border-bottom: 1px solid var(--rule);
    }

    .records tbody th,
    .records tbody td {
        border: 0;
        padding: 0;
        width: auto;
    }

    .records tbody th {
        grid-column: 1 / -1;
    }

    .records tbody td:nth-of-type(1) {
        grid-column: 1;
        grid-row: 2;
    }

    .records .num {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        width: auto;
    }

    .records .pdf {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 8px;
        width: auto;
    }
}

/* ── Testimonials ───────────────────────────────────────── */
.quotes {
    display: grid;
    gap: clamp(28px, 4vw, 40px);
}

@media (min-width: 820px) {
    .quotes {
        grid-template-columns: 1fr 1fr;
    }
}

.quote {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding-top: 26px;
    border-top: 2px solid var(--accent);
}

.quote blockquote {
    margin: 0;
}

.quote blockquote p {
    font-size: 1.0625rem;
    line-height: 1.6;
}

.quote blockquote p::before {
    content: "\201C";
}

.quote blockquote p::after {
    content: "\201D";
}

.quote figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.quote figcaption img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
    flex: none;
}

.quote figcaption b {
    display: block;
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 600;
}

.quote-role {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ── Profile ────────────────────────────────────────────── */
.profile {
    display: grid;
    gap: clamp(32px, 4vw, 48px);
}

.profile-prose {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 62ch;
}

.profile-prose em {
    font-style: italic;
    color: var(--text);
}

.spec {
    display: grid;
    gap: 1px;
    background: var(--rule);
    border-block: 1px solid var(--rule);
}

@media (min-width: 620px) {
    .spec {
        grid-template-columns: 1fr 1fr;
    }
}

.spec>div {
    background: var(--bg);
    padding: 16px clamp(0px, 2vw, 22px) 18px 0;
}

@media (min-width: 620px) {
    .spec>div:nth-child(even) {
        padding-left: 24px;
    }
}

.spec dt {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
}

.spec dd {
    font-family: var(--font-display);
    font-size: .9375rem;
    font-weight: 500;
}

/* ── Contact ────────────────────────────────────────────── */
.contact {
    display: grid;
    gap: clamp(36px, 5vw, 56px);
}

.channels {
    display: grid;
    gap: 1px;
    background: var(--rule);
    border-block: 1px solid var(--rule);
}

.channels li {
    background: var(--bg);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 20px;
    padding: 14px 0;
}

.channel-label {
    flex: none;
    width: 7.5rem;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 560px) {
    .channel-label {
        width: 100%;
    }
}

.channels a {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--rule-strong);
    transition: color .2s ease, border-color .2s ease;
}

.channels a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.channels a:hover .arrow {
    transform: translate(2px, -2px);
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
    max-width: 42rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
}

.field label {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
}

.field .optional {
    text-transform: none;
    letter-spacing: .04em;
    opacity: .7;
}

.field input,
.field textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: var(--font-display);
    font-size: 1rem;
    resize: vertical;
    transition: border-color .2s ease, background-color .2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted);
    opacity: .65;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg);
}

.field input:focus-visible,
.field textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.field.has-error input,
.field.has-error textarea {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.form-status {
    font-family: var(--font-mono);
    font-size: .8125rem;
    color: var(--accent);
    min-height: 1.2em;
}

.form-status:empty {
    display: none;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--rule);
    padding-block: clamp(40px, 5vw, 64px);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}

.footer-links a {
    font-family: var(--font-display);
    font-size: .875rem;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.footer-links a:hover {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.colophon {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 24px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--muted);
}

/* ── Motion ─────────────────────────────────────────────── */
.js .reveal {
    opacity: 0;
    transform: translateY(12px);
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .topo-lines path {
        stroke-dashoffset: 0;
    }

    .topo-nodes circle {
        opacity: 1;
    }
}
