:root {
    --ink: #eaf2ff;
    --muted: #9eb0c8;
    --subtle: #71839c;
    --navy-950: #040914;
    --navy-900: #07111f;
    --navy-850: #0a1728;
    --navy-800: #0d1c30;
    --line: rgba(150, 181, 218, 0.18);
    --line-strong: rgba(104, 236, 217, 0.38);
    --teal: #68ecd9;
    --teal-dark: #153f42;
    --violet: #a99cff;
    --warm: #ffd69a;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --max-width: 1180px;
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    isolation: isolate;
    background:
        radial-gradient(circle at 10% -5%, rgba(104, 236, 217, 0.12), transparent 32rem),
        radial-gradient(circle at 90% 12%, rgba(169, 156, 255, 0.11), transparent 34rem),
        var(--navy-950);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.site-network {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: 0.48;
    filter: drop-shadow(0 0 5px rgba(104, 236, 217, 0.12));
}

body > header,
body > main,
body > footer {
    position: relative;
    z-index: 1;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

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

::selection {
    background: var(--teal);
    color: var(--navy-950);
}

:focus-visible {
    outline: 3px solid var(--warm);
    outline-offset: 4px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--navy-950);
    border-radius: 8px;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.section-shell,
.nav-shell {
    width: min(calc(100% - 2.5rem), var(--max-width));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(4, 9, 20, 0.86);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 760;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.wordmark-mark {
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--teal);
    background: rgba(104, 236, 217, 0.06);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.7rem);
}

.nav-links a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--ink);
}

.nav-links .nav-cta {
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--teal);
}

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    padding-block: clamp(5rem, 10vw, 9rem);
}

.hero-copy h1,
.page-hero h1 {
    max-width: 13ch;
    margin: 0.7rem 0 1.5rem;
    font-size: clamp(3rem, 7vw, 6.35rem);
    line-height: 0.98;
    letter-spacing: -0.062em;
    text-wrap: balance;
}

.hero-lede {
    max-width: 66ch;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.eyebrow,
.project-kicker,
.signal-label {
    margin: 0;
    color: var(--teal);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.status-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(104, 236, 217, 0.08), 0 0 18px rgba(104, 236, 217, 0.55);
}

.button-row,
.contact-actions,
.resume-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.button-row {
    margin-top: 2.1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.78rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
    background: var(--teal);
    color: #031310;
}

.button-featured {
    border-color: rgba(255, 214, 154, 0.82);
    background: linear-gradient(135deg, #ffd69a, #ffad72);
    color: #271308;
    box-shadow: 0 14px 34px rgba(255, 173, 114, 0.18);
}

.button-featured:hover {
    border-color: #fff0d4;
    box-shadow: 0 18px 42px rgba(255, 173, 114, 0.27);
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--ink);
}

.button-light {
    background: var(--ink);
    color: var(--navy-950);
}

.credential-row,
.tag-list,
.clean-list {
    list-style: none;
    padding: 0;
}

.credential-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.4rem;
    margin: 2rem 0 0;
    color: var(--subtle);
    font-size: 0.82rem;
}

.credential-row li::before {
    content: "//";
    margin-right: 0.45rem;
    color: var(--violet);
    font-family: "SFMono-Regular", Consolas, monospace;
}

.device-stage {
    --pointer-x: 50%;
    --pointer-y: 50%;
    position: relative;
    min-height: 730px;
    display: grid;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    border-radius: 64px;
    background:
        radial-gradient(circle at 50% 42%, rgba(104, 236, 217, 0.075), transparent 34%),
        radial-gradient(circle at 72% 28%, rgba(169, 156, 255, 0.08), transparent 31%);
    perspective: 1200px;
}

.device-stage::before {
    content: "";
    position: absolute;
    inset: 2%;
    z-index: 0;
    background-image:
        radial-gradient(circle, rgba(104, 236, 217, 0.48) 0 1px, transparent 1.45px),
        radial-gradient(circle, rgba(169, 156, 255, 0.28) 0 1px, transparent 1.4px);
    background-size: 25px 25px;
    background-position: 0 0, 12px 12px;
    opacity: 0.31;
    -webkit-mask-image: radial-gradient(circle at center, black 28%, transparent 88%);
    mask-image: radial-gradient(circle at center, black 28%, transparent 88%);
}

.device-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(circle 150px at var(--pointer-x) var(--pointer-y), rgba(104, 236, 217, 0.14), transparent 72%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.connection-field {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.96;
    -webkit-mask-image: radial-gradient(ellipse at center, black 54%, transparent 96%);
    mask-image: radial-gradient(ellipse at center, black 54%, transparent 96%);
}

.network-caption {
    position: absolute;
    right: 1.5rem;
    bottom: 1.25rem;
    z-index: 2;
    color: rgba(158, 176, 200, 0.62);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.58;
    transition: color 180ms ease, opacity 180ms ease;
}

.iphone-device {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --phone-lift: 0px;
    position: relative;
    z-index: 3;
    width: min(calc(100% - 2.5rem), 380px);
    padding: 8px;
    border: 1px solid rgba(222, 232, 244, 0.38);
    border-radius: 59px;
    background: linear-gradient(145deg, #aeb8c5 0%, #384454 10%, #0b1019 28%, #101824 72%, #798493 92%, #cad1da 100%);
    box-shadow:
        0 42px 100px rgba(0, 0, 0, 0.52),
        0 12px 34px rgba(2, 8, 18, 0.65),
        inset 0 0 0 1px rgba(255, 255, 255, 0.18),
        inset 0 0 0 3px rgba(4, 9, 20, 0.78);
    transform: translateY(var(--phone-lift)) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transform-style: preserve-3d;
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 260ms ease;
}

.iphone-device::before {
    content: "";
    position: absolute;
    inset: 3px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 55px;
    pointer-events: none;
}

.iphone-device.is-tracking {
    will-change: transform;
    transition-duration: 70ms;
}

.iphone-button {
    position: absolute;
    z-index: -1;
    width: 4px;
    border: 1px solid rgba(214, 224, 235, 0.28);
    border-radius: 4px;
    background: linear-gradient(90deg, #222c39, #84909e 60%, #303b49);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.48);
}

.iphone-button-silent {
    left: -5px;
    top: 116px;
    height: 28px;
}

.iphone-button-volume-up,
.iphone-button-volume-down {
    left: -5px;
    height: 54px;
}

.iphone-button-volume-up {
    top: 164px;
}

.iphone-button-volume-down {
    top: 230px;
}

.iphone-button-power {
    right: -5px;
    top: 178px;
    height: 84px;
}

.signal-card {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    padding: 4.85rem 1.65rem 2.55rem;
    border: 1px solid rgba(104, 236, 217, 0.28);
    border-radius: 51px;
    background:
        radial-gradient(circle at 88% 2%, rgba(169, 156, 255, 0.17), transparent 29%),
        linear-gradient(160deg, rgba(12, 29, 49, 0.99), rgba(5, 13, 25, 0.99));
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, 0.7),
        inset 0 0 42px rgba(104, 236, 217, 0.035);
}

.signal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 100% 5px;
    opacity: 0.5;
}

.signal-card::after {
    content: "";
    position: absolute;
    width: 13rem;
    height: 32rem;
    right: -8rem;
    top: -14rem;
    z-index: 1;
    border-radius: 50%;
    pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.09), transparent 58%);
    filter: blur(3px);
    transform: rotate(-24deg);
}

.iphone-screen > :not(.iphone-statusbar):not(.dynamic-island):not(.home-indicator) {
    position: relative;
    z-index: 2;
}

.iphone-statusbar {
    position: absolute;
    top: 1.1rem;
    left: 1.65rem;
    right: 1.45rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(234, 242, 255, 0.88);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.iphone-statusbar svg {
    width: 4.3rem;
    height: 0.8rem;
    fill: currentColor;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.25;
}

.iphone-statusbar .battery-level {
    fill: var(--teal);
    stroke: none;
}

.dynamic-island {
    position: absolute;
    top: 0.95rem;
    left: 50%;
    z-index: 6;
    width: 6.65rem;
    height: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.34rem;
    padding-right: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 999px;
    background: #010204;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 10px rgba(0, 0, 0, 0.4);
    transform: translateX(-50%) translateZ(16px);
}

.island-activity {
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 9px rgba(104, 236, 217, 0.8);
}

.camera-lens {
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #44568d, #10182b 44%, #020308 72%);
    box-shadow: inset 0 0 0 1px rgba(169, 156, 255, 0.18);
}

.home-indicator {
    position: absolute;
    left: 50%;
    bottom: 0.78rem;
    z-index: 5;
    width: 6.8rem;
    height: 0.28rem;
    border-radius: 999px;
    background: rgba(234, 242, 255, 0.84);
    transform: translateX(-50%);
}

.signal-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.signal-live {
    color: var(--warm);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.signal-title {
    margin: 1.7rem 0 0.65rem;
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 760;
    letter-spacing: -0.025em;
}

.signal-card > p:not(.signal-title) {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.62;
}

.signal-list {
    margin: auto 0 0;
    padding-top: 1.3rem;
}

.signal-list div {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
}

.signal-list dt {
    color: var(--subtle);
    font-size: 0.82rem;
}

.signal-list dd {
    margin: 0;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 650;
    text-align: right;
}

@media (hover: hover) and (pointer: fine) {
    .device-stage:hover::after {
        opacity: 1;
    }

    .device-stage:hover .iphone-device {
        --phone-lift: -6px;
        box-shadow:
            0 52px 115px rgba(0, 0, 0, 0.56),
            0 18px 40px rgba(2, 8, 18, 0.68),
            inset 0 0 0 1px rgba(255, 255, 255, 0.18),
            inset 0 0 0 3px rgba(4, 9, 20, 0.78);
    }

    .device-stage:hover .network-caption {
        color: var(--teal);
        opacity: 0.92;
    }
}

.content-section {
    padding-block: clamp(5rem, 10vw, 9rem);
    border-top: 1px solid var(--line);
}

.section-heading {
    max-width: 760px;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading h2,
.contact-band h2,
.resume-section h2 {
    margin: 0.8rem 0 0;
    font-size: clamp(2.15rem, 4.4vw, 4.1rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.section-intro {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.split-heading {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.split-heading > div {
    max-width: 760px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--teal);
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.text-link:hover span {
    transform: translateX(3px);
}

.text-link span {
    transition: transform 160ms ease;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 7vw, 7rem);
}

.prose-block {
    color: var(--muted);
    font-size: 1.08rem;
}

.prose-block p:first-child {
    margin-top: 0;
    color: var(--ink);
}

.principle-grid {
    display: grid;
    gap: 1rem;
}

.mini-card,
.interest-card,
.project-note,
.resume-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(13, 28, 48, 0.48);
}

.mini-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    padding: 1.35rem;
}

.mini-number {
    grid-row: 1 / span 2;
    color: var(--violet);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.76rem;
}

.mini-card h3,
.interest-card h3,
.project-note h3,
.project-copy h3 {
    margin: 0;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.mini-card p,
.interest-card p,
.project-note p:not(.project-kicker) {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.featured-project {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--navy-850);
    box-shadow: var(--shadow);
}

.project-visual {
    display: grid;
    place-items: center;
    min-height: 430px;
    padding: clamp(1.5rem, 4vw, 4rem);
    border-right: 1px solid var(--line);
    background:
        linear-gradient(rgba(104, 236, 217, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(104, 236, 217, 0.035) 1px, transparent 1px),
        linear-gradient(155deg, #0c2030, #091323);
    background-size: 32px 32px, 32px 32px, auto;
}

.chart-shell {
    width: min(100%, 470px);
    padding: 1.25rem;
    border: 1px solid rgba(104, 236, 217, 0.28);
    border-radius: 16px;
    background: rgba(4, 9, 20, 0.78);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.put-chart-shell {
    width: min(100%, 500px);
    padding: 1.25rem;
    border: 1px solid rgba(255, 214, 154, 0.34);
    border-radius: 18px;
    background: rgba(4, 9, 20, 0.82);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.put-chart-topline,
.put-chart-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--subtle);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
}

.put-chart-topline span:last-child {
    color: var(--warm);
}

.put-chart-shell svg {
    width: 100%;
    margin-block: 1rem 0.75rem;
}

.put-grid line {
    stroke: rgba(150, 181, 218, 0.13);
    stroke-width: 1;
}

.put-underlying,
.put-protected {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.put-underlying {
    stroke: var(--violet);
    opacity: 0.66;
}

.put-protected {
    stroke: var(--warm);
    filter: drop-shadow(0 0 6px rgba(255, 214, 154, 0.34));
}

.put-floor {
    stroke: rgba(104, 236, 217, 0.54);
    stroke-width: 1.5;
    stroke-dasharray: 6 7;
}

.put-chart-legend {
    justify-content: flex-start;
    letter-spacing: 0.06em;
}

.put-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.put-chart-legend i {
    width: 1.15rem;
    height: 2px;
    background: var(--warm);
}

.put-chart-legend span:last-child i {
    background: var(--violet);
}

.chart-topline,
.chart-axis {
    display: flex;
    justify-content: space-between;
    color: var(--subtle);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
}

.bar-chart {
    height: 210px;
    display: flex;
    align-items: end;
    gap: clamp(0.6rem, 2vw, 1.15rem);
    margin: 1.5rem 0 0.8rem;
    padding-top: 1rem;
    border-bottom: 1px solid var(--line);
}

.bar-chart span {
    flex: 1;
    height: var(--bar);
    min-width: 8px;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(to top, var(--teal-dark), var(--teal));
}

.bar-chart span:nth-child(even) {
    background: linear-gradient(to top, #29284f, var(--violet));
}

.project-copy {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.2rem);
}

.project-copy h3 {
    margin-top: 0.7rem;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
}

.project-copy > p:not(.project-kicker) {
    color: var(--muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.5rem 0 1.7rem;
}

.tag-list li {
    padding: 0.42rem 0.68rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.74rem;
}

.project-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.project-note {
    padding: 1.5rem;
}

.project-note h3 {
    margin-top: 0.65rem;
}

.project-note .text-link {
    display: inline-flex;
    margin-top: 1rem;
}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.interest-card {
    min-height: 260px;
    padding: 1.5rem;
}

.interest-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    margin-bottom: 3.6rem;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    color: var(--teal);
    background: rgba(104, 236, 217, 0.05);
    font-family: Georgia, serif;
    font-size: 1.35rem;
}

.contact-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
    align-items: end;
    margin-block: clamp(5rem, 10vw, 9rem);
    padding: clamp(2rem, 6vw, 4.5rem);
    border-radius: var(--radius-lg);
    background: var(--teal);
    color: #061512;
}

.contact-band .eyebrow {
    color: #24524c;
}

.contact-band h2 {
    max-width: 17ch;
    font-size: clamp(2rem, 4vw, 3.8rem);
}

.contact-band p:not(.eyebrow) {
    max-width: 60ch;
    margin-bottom: 0;
    color: #214b46;
}

.text-link-light {
    color: #0a2521;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 2.2rem;
    border-top: 1px solid var(--line);
    color: var(--subtle);
    font-size: 0.82rem;
}

/* Inner pages */
.page-hero {
    padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 7vw, 5rem);
}

.page-hero h1 {
    max-width: 16ch;
    font-size: clamp(2.8rem, 6.5vw, 5.7rem);
}

.page-lede {
    max-width: 70ch;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.6rem;
}

.page-meta span {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
}

.resume-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: clamp(2.5rem, 6vw, 6rem);
    padding-bottom: clamp(5rem, 10vw, 9rem);
}

.resume-main,
.resume-aside {
    display: grid;
    align-content: start;
    gap: 3rem;
}

.resume-section h2 {
    margin-bottom: 1.5rem;
    font-size: 1.9rem;
}

.timeline {
    display: grid;
    gap: 1.25rem;
}

.timeline-item {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 1.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(13, 28, 48, 0.42);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 1.6rem;
    bottom: 1.6rem;
    width: 3px;
    border-radius: 99px;
    background: var(--teal);
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.timeline-top h3 {
    margin: 0;
    font-size: 1.18rem;
}

.timeline-org {
    margin: 0.2rem 0 0;
    color: var(--teal);
    font-size: 0.9rem;
    font-weight: 700;
}

.timeline-date {
    color: var(--subtle);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.75rem;
    white-space: nowrap;
}

.timeline-item ul {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.timeline-item li + li {
    margin-top: 0.55rem;
}

.resume-card {
    padding: 1.35rem;
}

.resume-card h2,
.resume-card h3 {
    margin: 0 0 0.9rem;
    font-size: 1rem;
}

.resume-card p,
.resume-card li {
    color: var(--muted);
    font-size: 0.9rem;
}

.resume-card .clean-list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
}

.resume-card .clean-list strong {
    display: block;
    color: var(--ink);
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.skill-cloud span {
    padding: 0.38rem 0.58rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.76rem;
}

.disclosure {
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--warm);
    background: rgba(255, 214, 154, 0.06);
    color: var(--muted);
    font-size: 0.86rem;
}

/* Private résumé request */
.request-hero {
    padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.request-hero h1 {
    max-width: 13ch;
}

.request-section {
    padding-bottom: clamp(5rem, 10vw, 9rem);
}

.request-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: clamp(1.25rem, 4vw, 3.5rem);
    align-items: start;
}

.request-card,
.privacy-card,
.direct-note {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(13, 28, 48, 0.52);
    box-shadow: var(--shadow);
}

.request-card {
    padding: clamp(1.4rem, 4vw, 2.8rem);
}

.request-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
}

.lock-mark {
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(104, 236, 217, 0.07);
    color: var(--teal);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 1.5rem;
}

.lock-mark svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.request-card-heading h2,
.privacy-card h2 {
    margin: 0.6rem 0 0;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.request-form {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-field {
    display: grid;
    gap: 0.55rem;
}

.form-field label,
.form-confirmation {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 720;
}

.label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.label-row span {
    color: var(--subtle);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
}

.request-form input[type="email"],
.request-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(4, 9, 20, 0.76);
    color: var(--ink);
    font: inherit;
    line-height: 1.5;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.request-form input[type="email"] {
    min-height: 50px;
    padding: 0.78rem 0.9rem;
}

.request-form textarea {
    min-height: 150px;
    padding: 0.9rem;
    resize: vertical;
}

.request-form input::placeholder,
.request-form textarea::placeholder {
    color: #6f829c;
}

.request-form input:focus-visible,
.request-form textarea:focus-visible {
    border-color: var(--teal);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(104, 236, 217, 0.1);
}

.field-help,
.form-status,
.noscript-note {
    margin: 0;
    color: var(--subtle);
    font-size: 0.82rem;
}

.form-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--muted);
    font-weight: 550;
    line-height: 1.45;
}

.form-confirmation input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0.18rem 0 0;
    accent-color: var(--teal);
}

.request-form .button {
    width: fit-content;
    font-family: inherit;
}

.request-aside {
    display: grid;
    gap: 1rem;
}

.privacy-card {
    padding: clamp(1.4rem, 3vw, 2rem);
}

.request-steps {
    display: grid;
    gap: 0;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}

.request-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
}

.request-steps span {
    color: var(--teal);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.72rem;
    font-weight: 700;
}

.request-steps p,
.direct-note p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.direct-note {
    padding: 1.2rem 1.35rem;
    border-radius: var(--radius-md);
    box-shadow: none;
}

.direct-note a,
.noscript-note a {
    color: var(--teal);
}

@media (max-width: 980px) {
    .hero,
    .about-grid,
    .featured-project,
    .resume-layout,
    .request-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .device-stage {
        width: 100%;
        max-width: 680px;
        min-height: 700px;
        margin-inline: auto;
    }

    .project-visual {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

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

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

@media (max-width: 720px) {
    .section-shell,
    .nav-shell {
        width: min(calc(100% - 1.5rem), var(--max-width));
    }

    .nav-shell {
        min-height: 68px;
    }

    .wordmark > span:last-child {
        display: none;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a[href="#about"],
    .nav-links a[href="index.html#about"],
    .request-page .nav-links a[href="index.html"] {
        display: none;
    }

    .nav-links a {
        font-size: 0.79rem;
    }

    .nav-links .nav-cta {
        padding: 0.5rem 0.7rem;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: clamp(2.75rem, 13vw, 4.5rem);
    }

    .split-heading,
    .contact-band,
    .timeline-top {
        align-items: start;
        flex-direction: column;
    }

    .split-heading,
    .contact-band {
        display: flex;
    }

    .project-note-grid,
    .interest-grid,
    .resume-aside {
        grid-template-columns: 1fr;
    }

    .interest-card {
        min-height: auto;
    }

    .interest-icon {
        margin-bottom: 2rem;
    }

    .contact-actions {
        align-items: flex-start;
    }

    .request-card-heading {
        flex-direction: column;
    }

    .request-form .button {
        width: 100%;
    }

    .device-stage {
        min-height: 660px;
        border-radius: 42px;
    }

    .iphone-device {
        width: min(calc(100% - 1.35rem), 355px);
        padding: 7px;
        border-radius: 54px;
    }

    .iphone-device::before {
        border-radius: 50px;
    }

    .signal-card {
        min-height: 602px;
        padding: 4.55rem 1.35rem 2.35rem;
        border-radius: 47px;
    }

    .signal-title {
        font-size: 1.35rem;
    }

    .signal-card > p:not(.signal-title) {
        font-size: 0.9rem;
        line-height: 1.55;
    }

    .network-caption {
        display: none;
    }

    .site-footer {
        display: block;
    }
}

@media (max-width: 370px) {
    .nav-links a[href="finance.html"] {
        display: none;
    }

    .nav-links {
        gap: 0.65rem;
    }
}

@media (hover: none), (pointer: coarse) {
    .iphone-device {
        --phone-lift: 0px !important;
        --tilt-x: 0deg !important;
        --tilt-y: 0deg !important;
        transform: none !important;
    }

    .connection-field {
        opacity: 0.52;
    }

    .site-network {
        opacity: 0.32;
    }

    .device-stage::after,
    .network-caption {
        display: none;
    }
}

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

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

    .iphone-device {
        --phone-lift: 0px !important;
        --tilt-x: 0deg !important;
        --tilt-y: 0deg !important;
        transform: none !important;
    }

    .connection-field {
        opacity: 0.4;
    }

    .site-network {
        opacity: 0.28;
    }
}

@media print {
    :root {
        color-scheme: light;
    }

    body {
        background: white;
        color: #172033;
        font-size: 10.5pt;
    }

    .site-header,
    .site-footer,
    .no-print,
    .resume-actions,
    .skip-link,
    .site-network,
    .connection-field,
    .network-caption {
        display: none !important;
    }

    .iphone-device {
        transform: none !important;
        box-shadow: none;
    }

    .section-shell {
        width: 100%;
    }

    .page-hero {
        padding: 0 0 1.25rem;
    }

    .page-hero h1 {
        color: #07111f;
        font-size: 31pt;
    }

    .page-lede,
    .timeline-item li,
    .resume-card p,
    .resume-card li,
    .disclosure {
        color: #3f4b5f;
    }

    .eyebrow,
    .timeline-org {
        color: #0b6f68;
    }

    .resume-layout {
        grid-template-columns: 1fr 240px;
        gap: 24pt;
        padding: 0;
    }

    .resume-main,
    .resume-aside {
        gap: 16pt;
    }

    .timeline-item,
    .resume-card,
    .disclosure {
        break-inside: avoid;
        border-color: #cbd5e1;
        background: white;
        box-shadow: none;
    }

    .timeline-item {
        padding: 10pt 12pt 10pt 14pt;
    }

    .skill-cloud span {
        border-color: #cbd5e1;
        color: #3f4b5f;
    }

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