@charset "UTF-8";

:root {
    --ink: #050a08;
    --ink-soft: #0d1712;
    --paper: #080d0a;
    --paper-bright: #fbfdf8;
    --surface: #101713;
    --line: rgba(228, 235, 229, 0.17);
    --lime: #35b956;
    --sky: #369eb2;
    --coral: #ce5b45;
    --text: #e4ebe5;
    --muted: #96a59b;
    --serif: "Space Grotesk", "Helvetica Neue", sans-serif;
    --sans: "Space Grotesk", "Helvetica Neue", sans-serif;
    --mono: "IBM Plex Mono", monospace;
    --page-gutter: clamp(1.25rem, 5vw, 5rem);
    --content-width: 90rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    letter-spacing: 0;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font: inherit;
}

p,
h1,
h2,
h3,
ol,
ul {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: 0;
}

h1,
h2 {
    font-family: var(--serif);
}

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

::selection {
    color: var(--ink);
    background: var(--lime);
}

.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;
    z-index: 200;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    color: var(--ink);
    background: var(--lime);
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

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

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    padding: 0 var(--page-gutter);
    color: var(--paper-bright);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
    color: var(--text);
    background: rgba(8, 13, 10, 0.96);
    border-color: var(--line);
    backdrop-filter: blur(18px);
}

.wordmark {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid currentColor;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.1rem, 2.5vw, 2.5rem);
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
}

.site-nav > a:not(.nav-resume) {
    position: relative;
    padding: 0.6rem 0;
}

.site-nav > a:not(.nav-resume)::before {
    margin-right: 0.4rem;
    color: var(--sky);
    content: "./";
}

.site-nav > a:not(.nav-resume)::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.site-nav > a:hover::after,
.site-nav > a[aria-current="true"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-resume {
    display: inline-flex;
    min-height: 2.6rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1rem;
    color: var(--ink);
    background: var(--lime);
    border: 1px solid var(--lime);
    transition: color 180ms ease, background-color 180ms ease;
}

.nav-resume:hover {
    color: var(--text);
    background: transparent;
}

.is-scrolled .nav-resume:hover,
.menu-active .nav-resume:hover {
    color: var(--text);
    border-color: var(--text);
}

.nav-resume svg,
.button svg,
.text-link svg,
.contact-email svg,
.back-to-top svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.menu-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    place-items: center;
    background: transparent;
    border: 1px solid currentColor;
    cursor: pointer;
}

.menu-toggle svg {
    width: 1.2rem;
}

.hero {
    position: relative;
    min-height: min(56rem, 92svh);
    color: var(--paper-bright);
    background: var(--ink);
    overflow: hidden;
}

.hero-media,
.hero-source,
.hero-canvas,
.hero-shade,
.hero-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-source {
    object-fit: cover;
    object-position: 53% 42%;
    scale: 1.01;
    filter: contrast(1.15) saturate(0.8) hue-rotate(128deg);
    animation: hero-in 1.2s cubic-bezier(0.2, 0.75, 0.25, 1) both;
    transition: opacity 300ms ease;
}

.hero-canvas {
    z-index: 1;
    display: block;
    opacity: 0;
    image-rendering: pixelated;
    transition: opacity 450ms ease;
}

.hero.pixel-ready .hero-source {
    opacity: 0;
}

.hero.pixel-ready .hero-canvas {
    opacity: 1;
}

.hero-shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(2, 10, 10, 0.95) 0%, rgba(2, 10, 10, 0.76) 42%, rgba(2, 10, 10, 0.16) 78%),
        linear-gradient(0deg, rgba(2, 10, 10, 0.8) 0%, transparent 48%);
    pointer-events: none;
}

.hero-grid {
    z-index: 2;
    background-image:
        linear-gradient(rgba(101, 217, 239, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(101, 217, 239, 0.12) 1px, transparent 1px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 4px);
    background-size: 4rem 4rem, 4rem 4rem, 100% 4px;
    mask-image: linear-gradient(90deg, black, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.hero-interface {
    position: absolute;
    z-index: 4;
    top: 6.5rem;
    right: var(--page-gutter);
    left: var(--page-gutter);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    color: var(--lime);
    font-family: var(--mono);
    font-size: 0.58rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
    pointer-events: none;
}

.hero-interface span:nth-child(2) {
    color: var(--sky);
}

.hero-interface span:last-child {
    justify-self: end;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    width: min(100%, var(--content-width));
    min-height: min(56rem, 92svh);
    flex-direction: column;
    justify-content: flex-end;
    margin: 0 auto;
    padding: 8rem var(--page-gutter) clamp(3.5rem, 8vh, 6.5rem);
}

.eyebrow {
    margin-bottom: 1.25rem;
    font-family: var(--mono);
    font-size: 0.67rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--lime);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

.status-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    background: var(--lime);
    border-radius: 50%;
    box-shadow: 0 0 0 0.3rem rgba(201, 255, 74, 0.2);
}

.hero h1 {
    max-width: 8ch;
    margin-bottom: 1.5rem;
    font-size: clamp(5rem, 12vw, 10.5rem);
    font-weight: 600;
    line-height: 0.83;
    text-transform: uppercase;
    text-shadow: 0 0 2rem rgba(101, 217, 239, 0.18);
    animation: copy-in 850ms 180ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-intro {
    max-width: 39rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--sky);
    font-size: clamp(0.95rem, 1.45vw, 1.18rem);
    line-height: 1.6;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65);
    animation: copy-in 850ms 280ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    animation: copy-in 850ms 380ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.button {
    display: inline-flex;
    min-height: 3.4rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 1.2rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button-primary {
    color: var(--ink);
    background: var(--lime);
    border: 1px solid var(--lime);
}

.button-primary:hover {
    color: var(--paper-bright);
    background: transparent;
}

.button-outline {
    width: fit-content;
    margin-top: 3rem;
    border: 1px solid var(--text);
}

.button-outline:hover {
    color: var(--ink);
    background: var(--lime);
    border-color: var(--lime);
}

.text-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.55rem;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid currentColor;
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
}

.text-link svg {
    transition: transform 180ms ease;
}

.text-link:hover svg {
    transform: translate(3px, -3px);
}

.text-link-light {
    color: var(--paper-bright);
}

.hero-terminal {
    position: absolute;
    z-index: 4;
    right: max(var(--page-gutter), calc((100vw - var(--content-width)) / 2 + var(--page-gutter)));
    bottom: 6rem;
    width: min(20rem, 24vw);
    padding: 1rem 1.2rem;
    color: rgba(251, 253, 248, 0.75);
    background: rgba(4, 14, 13, 0.74);
    border: 1px solid rgba(101, 217, 239, 0.58);
    box-shadow: 0.5rem 0.5rem 0 rgba(201, 255, 74, 0.14);
    backdrop-filter: blur(8px);
    font-family: var(--mono);
    font-size: 0.6rem;
    line-height: 1.65;
}

.hero-terminal::before {
    display: block;
    margin: -1rem -1.2rem 0.8rem;
    padding: 0.35rem 0.6rem;
    color: var(--sky);
    background: rgba(101, 217, 239, 0.12);
    border-bottom: 1px solid rgba(101, 217, 239, 0.35);
    content: "identity.sh";
}

.hero-terminal p {
    margin: 0;
}

.hero-terminal p:nth-child(even) {
    margin-bottom: 0.35rem;
    color: var(--paper-bright);
}

.hero-terminal p span:first-child {
    color: var(--lime);
}

.terminal-cursor {
    animation: terminal-blink 900ms steps(1) infinite;
}

.hero-caption {
    position: absolute;
    z-index: 4;
    right: var(--page-gutter);
    bottom: 1.25rem;
    margin: 0;
    color: var(--lime);
    font-family: var(--mono);
    font-size: 0.56rem;
    opacity: 0.8;
    writing-mode: vertical-rl;
}

.signal-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    color: var(--ink);
    background: var(--lime);
    border-bottom: 1px solid var(--ink);
}

.signal-strip p {
    min-width: 0;
    margin: 0;
    padding: 1.15rem var(--page-gutter);
    font-family: var(--mono);
    font-size: 0.67rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.signal-strip p + p {
    border-left: 1px solid rgba(7, 16, 15, 0.28);
}

.signal-strip span {
    margin-right: 0.45rem;
    opacity: 0.56;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section {
    padding: clamp(6rem, 11vw, 10rem) var(--page-gutter);
}

.section > * {
    width: min(100%, var(--content-width));
    margin-right: auto;
    margin-left: auto;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.65fr);
    align-items: end;
    gap: 3rem;
    margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-heading .eyebrow,
.writing-heading .eyebrow,
.about-copy .eyebrow {
    color: var(--muted);
}

.section h2,
.contact h2 {
    margin-bottom: 0;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 500;
    line-height: 0.9;
}

.section-lede {
    max-width: 34rem;
    margin-bottom: 0.6rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.22rem);
    line-height: 1.65;
}

.section-work {
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(7, 16, 15, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 16, 15, 0.055) 1px, transparent 1px);
    background-size: 2rem 2rem;
}

.featured-project {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
    min-height: 40rem;
    margin-bottom: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0.65rem 0.65rem 0 #020403;
}

.finance-visual {
    position: relative;
    display: flex;
    min-height: 40rem;
    flex-direction: column;
    padding: clamp(1.5rem, 4vw, 4rem);
    color: var(--paper-bright);
    background-color: #0e211d;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 2rem 2rem;
    overflow: hidden;
}

.finance-visual::before {
    position: absolute;
    top: -8rem;
    right: -8rem;
    width: 24rem;
    height: 24rem;
    background: var(--sky);
    border-radius: 50%;
    content: "";
    opacity: 0.9;
}

.visual-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visual-toolbar span {
    width: 0.6rem;
    height: 0.6rem;
    background: var(--paper-bright);
    opacity: 0.42;
}

.visual-toolbar small {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.visual-total {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    margin-top: clamp(4rem, 10vw, 8rem);
}

.visual-total small {
    margin-bottom: 0.35rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    opacity: 0.65;
}

.visual-total strong {
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 500;
    line-height: 1;
}

.visual-total > span {
    width: fit-content;
    margin-top: 1rem;
    padding: 0.4rem 0.65rem;
    color: var(--ink);
    background: var(--lime);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 600;
}

.visual-chart {
    display: flex;
    height: 9rem;
    align-items: flex-end;
    gap: clamp(0.5rem, 1.4vw, 1.1rem);
    margin-top: auto;
    padding-top: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.visual-chart span {
    width: min(3rem, 11%);
    height: var(--bar);
    background: var(--sky);
}

.visual-chart span:nth-child(3n + 2) {
    background: var(--lime);
}

.visual-chart span:nth-child(3n) {
    background: var(--coral);
}

.visual-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    opacity: 0.75;
}

.visual-note svg {
    width: 0.85rem;
}

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

.project-number,
.timeline-place,
.timeline-period,
.article-date {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-copy h3,
.project-card h3 {
    margin: 1.2rem 0 1.4rem;
    font-size: clamp(2.25rem, 4vw, 4.5rem);
    font-weight: 500;
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.2rem 0 2.5rem;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 600;
}

.tag-list li::before {
    color: #69803d;
    content: "#";
}

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

.project-card {
    min-width: 0;
}

.project-image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--ink-soft);
    border: 1px solid var(--line);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 400ms ease;
}

.project-image > span {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    color: var(--ink);
    background: var(--lime);
    transition: transform 180ms ease;
}

.project-image > span svg {
    width: 1.1rem;
}

.project-image:hover img {
    filter: saturate(1.1) contrast(1.04);
    transform: scale(1.035);
}

.project-image:hover > span {
    transform: translate(-0.25rem, 0.25rem);
}

.terminal-project {
    display: grid;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    place-items: center;
    color: #f7faf8;
    background-color: #101917;
    background-image:
        linear-gradient(rgba(101, 217, 239, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(101, 217, 239, 0.06) 1px, transparent 1px);
    background-size: 1.5rem 1.5rem;
}

.terminal-project-window {
    width: min(100%, 34rem);
    padding: 0 1.25rem 1.4rem;
    background: #07100f;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0.5rem 0.5rem 0 rgba(101, 217, 239, 0.35);
    font-family: var(--mono);
    font-size: clamp(0.62rem, 1.15vw, 0.82rem);
}

.terminal-project-bar {
    display: flex;
    height: 2.5rem;
    align-items: center;
    gap: 0.4rem;
    margin: 0 -1.25rem 1.25rem;
    padding: 0 1rem;
    background: #1e2a27;
}

.terminal-project-bar i {
    width: 0.55rem;
    height: 0.55rem;
    background: var(--coral);
    border-radius: 50%;
}

.terminal-project-bar i:nth-child(2) {
    background: var(--lime);
}

.terminal-project-bar i:nth-child(3) {
    background: var(--sky);
}

.terminal-project-bar small {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.55);
}

.terminal-project-window p {
    margin: 0.7rem 0;
}

.terminal-project-window b,
.terminal-project-window code {
    color: var(--sky);
}

.terminal-project-window strong {
    color: var(--lime);
}

.terminal-project-window em {
    color: var(--coral);
    font-style: normal;
}

.terminal-project-output {
    color: rgba(255, 255, 255, 0.55);
}

.terminal-project-cursor {
    display: inline-block;
    width: 0.48rem;
    height: 1em;
    margin-left: 0.25rem;
    vertical-align: -0.15em;
    background: var(--lime);
}

.project-card-copy {
    padding: 1.75rem 0 1rem;
}

.project-card h3 {
    margin: 0.8rem 0 1rem;
    font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.section-experience {
    color: var(--paper-bright);
    background-color: var(--ink);
    background-image: linear-gradient(rgba(101, 217, 239, 0.05) 1px, transparent 1px);
    background-size: 100% 4rem;
}

.section-heading-light .eyebrow,
.section-heading-light .section-lede {
    color: rgba(251, 253, 248, 0.64);
}

.timeline {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline-item {
    display: grid;
    grid-template-columns: minmax(6rem, 0.25fr) minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: start;
    padding: clamp(2rem, 4vw, 3.5rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline-item > div {
    max-width: 46rem;
}

.timeline-period,
.timeline-place {
    color: var(--lime);
}

.timeline-item h3 {
    margin: 0.6rem 0 1rem;
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 500;
}

.timeline-item div > p:last-child {
    color: rgba(251, 253, 248, 0.68);
}

.timeline-item > svg {
    width: clamp(2rem, 4vw, 3.5rem);
    height: auto;
    color: var(--sky);
    stroke-width: 1.2;
}

.section-about {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
    gap: clamp(4rem, 10vw, 10rem);
    background-color: #0a2015;
    background-image:
        linear-gradient(rgba(53, 185, 86, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 185, 86, 0.12) 1px, transparent 1px);
    background-size: 3rem 3rem;
}

.section-about > * {
    width: 100%;
    margin: 0;
}

.section-about h2 {
    max-width: 11ch;
    margin-bottom: 2.5rem;
    font-size: clamp(3.6rem, 7vw, 7rem);
}

.about-copy > p:not(.eyebrow) {
    max-width: 48rem;
}

.about-lede {
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    line-height: 1.55;
}

.principles {
    align-self: end;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0.6rem 0.6rem 0 #020403;
}

.principles-title {
    margin-bottom: 2rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.principles ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.principles li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    font-weight: 600;
}

.principles li span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.62rem;
}

.section-writing {
    display: grid;
    grid-template-columns: minmax(18rem, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(3rem, 8vw, 8rem);
    background: var(--surface);
}

.section-writing > * {
    width: 100%;
    margin: 0;
}

.section-writing h2 {
    font-size: clamp(3.8rem, 7vw, 7rem);
}

.article-list {
    align-self: end;
    border-top: 1px solid var(--line);
}

.article-list a {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
    transition: padding 180ms ease, background-color 180ms ease;
}

.article-list a:hover {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    color: var(--ink);
    background: var(--lime);
}

.article-title {
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
}

.article-list svg {
    width: 1.2rem;
}

.contact {
    position: relative;
    padding: clamp(6rem, 13vw, 12rem) var(--page-gutter);
    color: var(--paper-bright);
    background-color: #050d09;
    background-image:
        linear-gradient(rgba(53, 185, 86, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 185, 86, 0.12) 1px, transparent 1px);
    background-size: 3rem 3rem;
}

.contact::before {
    position: absolute;
    top: 0;
    right: 8%;
    width: 18vw;
    min-width: 8rem;
    height: 100%;
    background: #123c21;
    content: "";
}

.contact-inner {
    position: relative;
    z-index: 1;
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.contact h2 {
    max-width: 11ch;
    margin-bottom: 3rem;
    font-size: clamp(4rem, 9vw, 9rem);
}

.contact-email {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid currentColor;
    font-family: var(--mono);
    font-size: clamp(0.8rem, 1.8vw, 1.15rem);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-email svg {
    transition: transform 180ms ease;
}

.contact-email:hover svg {
    transform: translate(4px, -4px);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 2rem var(--page-gutter);
    color: var(--paper-bright);
    background: var(--ink);
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 600;
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 0.75rem;
}

.footer-links a {
    display: grid;
    width: 2.4rem;
    height: 2.4rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: color 180ms ease, background-color 180ms ease;
}

.footer-links a:hover {
    color: var(--ink);
    background: var(--lime);
}

.footer-links svg {
    width: 1rem;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 0.5rem;
}

.js-ready .reveal {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.js-ready .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes hero-in {
    from { opacity: 0; scale: 1.06; }
    to { opacity: 1; scale: 1.01; }
}

@keyframes copy-in {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes terminal-blink {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

@media (max-width: 900px) {
    .site-header {
        height: 4.5rem;
    }

    .menu-toggle {
        display: grid;
    }

    .site-nav {
        position: fixed;
        z-index: -1;
        top: 4.5rem;
        right: 0;
        left: 0;
        display: flex;
        height: calc(100svh - 4.5rem);
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 2rem var(--page-gutter);
        color: var(--text);
        background: var(--paper);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-1rem);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    }

    .site-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .site-nav > a:not(.nav-resume) {
        display: flex;
        min-height: 4.5rem;
        align-items: center;
        border-bottom: 1px solid var(--line);
        font-family: var(--serif);
        font-size: clamp(2rem, 8vw, 3.5rem);
        font-weight: 500;
    }

    .site-nav > a:not(.nav-resume)::before,
    .site-nav > a:not(.nav-resume)::after {
        display: none;
    }

    .nav-resume {
        width: fit-content;
        margin-top: 2rem;
    }

    .hero,
    .hero-content {
        min-height: min(52rem, 92svh);
    }

    .hero h1 {
        font-size: clamp(4.75rem, 18vw, 8rem);
    }

    .hero-interface {
        grid-template-columns: 1fr auto;
    }

    .hero-interface span:nth-child(2) {
        display: none;
    }

    .hero-terminal {
        display: none;
    }

    .signal-strip {
        grid-template-columns: 1fr;
    }

    .signal-strip p {
        padding: 0.8rem var(--page-gutter);
        text-align: left;
    }

    .signal-strip p + p {
        border-top: 1px solid rgba(7, 16, 15, 0.28);
        border-left: 0;
    }

    .section-heading,
    .featured-project,
    .section-about,
    .section-writing {
        grid-template-columns: 1fr;
    }

    .featured-project {
        min-height: 0;
    }

    .finance-visual {
        min-height: 34rem;
    }

    .section-about,
    .section-writing {
        gap: 4rem;
    }

    .principles {
        width: min(100%, 34rem);
        justify-self: end;
    }
}

@media (max-width: 640px) {
    :root {
        --page-gutter: 1.25rem;
    }

    html {
        scroll-padding-top: 4.5rem;
    }

    .hero,
    .hero-content {
        min-height: min(49rem, 88svh);
    }

    .hero-source {
        object-position: 64% center;
    }

    .hero-shade {
        background:
            linear-gradient(90deg, rgba(2, 10, 10, 0.91), rgba(2, 10, 10, 0.34)),
            linear-gradient(0deg, rgba(2, 10, 10, 0.92) 0%, rgba(2, 10, 10, 0.25) 70%);
    }

    .hero-grid {
        background-size: 2rem 2rem, 2rem 2rem, 100% 4px;
    }

    .hero-interface {
        top: 5.5rem;
        font-size: 0.5rem;
    }

    .hero-content {
        justify-content: flex-end;
        padding-top: 7rem;
        padding-bottom: 3.25rem;
    }

    .hero h1 {
        font-size: clamp(3.35rem, 18vw, 5.2rem);
    }

    .hero-intro {
        max-width: 31rem;
        font-size: 0.9rem;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.2rem;
    }

    .hero-caption {
        display: none;
    }

    .signal-strip p:nth-child(3) {
        display: none;
    }

    .section {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .section-heading {
        gap: 2rem;
        margin-bottom: 3.5rem;
    }

    .section h2,
    .contact h2 {
        font-size: clamp(3.5rem, 18vw, 5rem);
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .finance-visual {
        min-height: 27rem;
    }

    .finance-visual::before {
        top: -6rem;
        right: -7rem;
        width: 17rem;
        height: 17rem;
    }

    .visual-total {
        margin-top: 4rem;
    }

    .visual-chart {
        height: 7rem;
    }

    .project-copy {
        padding: 2rem 1.25rem 2.5rem;
    }

    .project-copy h3,
    .project-card h3 {
        font-size: clamp(2.2rem, 11vw, 3.2rem);
    }

    .timeline-item {
        grid-template-columns: 1fr auto;
        gap: 1.5rem;
    }

    .timeline-period {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .timeline-item > svg {
        grid-column: 2;
        grid-row: 2;
    }

    .section-about,
    .section-writing {
        gap: 3rem;
    }

    .section-about h2,
    .section-writing h2 {
        font-size: clamp(3.2rem, 16vw, 4.8rem);
    }

    .article-list a {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
    }

    .article-date {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .contact {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .contact::before {
        right: 7%;
        width: 28vw;
    }

    .contact-email {
        align-items: flex-start;
        font-size: 0.78rem;
    }

    .site-footer {
        grid-template-columns: 1fr auto;
        gap: 1.5rem;
    }

    .footer-links {
        justify-self: end;
    }

    .back-to-top {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 370px) {
    .hero h1 {
        font-size: 3.45rem;
    }

    .button {
        width: 100%;
    }

    .hero-actions .text-link {
        width: auto;
    }

    .visual-total strong {
        font-size: 3.1rem;
    }
}

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

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