@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Inter:wght@400;500;600&family=Libre+Caslon+Display&display=swap');

:root {
    --paper: #f1efe8;
    --ink: #111111;
    --soft-ink: #5f5d57;
    --line: rgba(17, 17, 17, 0.18);
    --line-soft: rgba(17, 17, 17, 0.09);
    --teal: #0d7c78;
    --crimson: #a63d45;
    --white: #ffffff;
    --gutter: clamp(20px, 4vw, 64px);
    --section-pad: clamp(84px, 10vw, 160px);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--paper);
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', Arial, sans-serif;
    text-rendering: optimizeLegibility;
}

body.is-loading .reveal {
    opacity: 0;
    transform: translateY(18px);
}

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

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

.page-grid {
    position: fixed;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    opacity: 0.15;
    background-image: linear-gradient(to right, transparent calc(100% - 1px), rgba(17,17,17,0.14) 1px);
    background-size: 25% 100%;
}

.section-shell,
.site-header,
.site-footer {
    width: min(100%, 1600px);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* Header */
.site-header {
    min-height: 84px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 34px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 30;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
}

.brand-mark {
    width: 38px;
    aspect-ratio: 1;
    position: relative;
    display: grid;
    place-items: center;
}

.brand-orbit {
    position: absolute;
    inset: 2px;
    border: 1px solid var(--ink);
    border-radius: 50%;
    transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.brand-orbit::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 55%;
    height: 1px;
    background: var(--line);
    transform: translate(-50%, -50%) rotate(-35deg);
}

.brand-core {
    position: relative;
    z-index: 2;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: -0.08em;
}

.brand-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    right: 1px;
    top: 8px;
    z-index: 3;
    transition: background 220ms ease, transform 450ms cubic-bezier(.2,.7,.2,1);
}

.brand:hover .brand-orbit { transform: rotate(28deg); }
.brand:hover .brand-node {
    background: var(--crimson);
    transform: translate(-2px, 8px);
}

.brand-name {
    font-weight: 600;
    letter-spacing: -0.035em;
    font-size: 19px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--soft-ink);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 5px rgba(13,124,120,0.08);
    animation: statusPulse 3.2s ease-in-out infinite;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 23px;
    font-size: 12px;
}

.primary-nav a {
    position: relative;
    display: inline-flex;
    gap: 6px;
    align-items: baseline;
}

.primary-nav a span {
    font-family: 'DM Mono', monospace;
    font-size: 8px;
    color: var(--soft-ink);
    transition: color 200ms ease;
}

.primary-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 1px;
    background: var(--teal);
    transition: right 220ms ease;
}

.primary-nav a:hover::after { right: 0; }
.primary-nav a:hover span { color: var(--crimson); }

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: calc(100vh - 84px);
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr);
    grid-template-rows: 1fr auto;
    gap: clamp(34px, 4vw, 72px);
    padding-top: clamp(70px, 8vh, 108px);
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.hero-copy {
    align-self: center;
    max-width: 900px;
}

.eyebrow {
    margin: 0 0 28px;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--soft-ink);
}

.eyebrow span {
    color: var(--ink);
    margin-right: 12px;
}

.hero h1 {
    margin: 0;
    max-width: 940px;
    font-size: clamp(54px, 6.8vw, 116px);
    line-height: 0.91;
    letter-spacing: -0.064em;
    font-weight: 500;
}

.hero-serif {
    display: block;
    font-family: 'Libre Caslon Display', Georgia, serif;
    font-weight: 400;
    letter-spacing: -0.04em;
    font-style: italic;
}

.hero-accent { color: var(--teal); }

.hero-intro {
    max-width: 610px;
    margin: 38px 0 0;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.55;
    color: var(--soft-ink);
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid currentColor;
    font-size: 13px;
    font-weight: 500;
}

.text-link span { transition: transform 200ms ease, color 200ms ease; }
.text-link:hover span {
    transform: translate(3px, 2px);
    color: var(--crimson);
}
.text-link.muted { color: var(--soft-ink); }

.hero-visual {
    align-self: center;
    justify-self: end;
    width: min(100%, 565px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.signal-field {
    --field-x: 0px;
    --field-y: 0px;
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    border-radius: 50%;
    transform: translate(var(--field-x), var(--field-y));
    transition: transform 140ms linear;
    isolation: isolate;
}

.signal-grid {
    position: absolute;
    inset: 5%;
    border-radius: 50%;
    opacity: 0.58;
    background:
        repeating-conic-gradient(from 0deg, transparent 0deg 14.6deg, rgba(17,17,17,.12) 14.75deg 15deg),
        radial-gradient(circle at center, transparent 0 49.5%, rgba(17,17,17,.05) 50% 50.3%, transparent 50.6%);
    -webkit-mask-image: radial-gradient(circle, #000 0 74%, transparent 75%);
    mask-image: radial-gradient(circle, #000 0 74%, transparent 75%);
}

.signal-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border: 1px solid var(--line);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ring-outer { width: 100%; height: 100%; }
.ring-1 { width: 78%; height: 78%; }
.ring-2 { width: 52%; height: 52%; }
.ring-3 {
    width: 20%;
    height: 20%;
    border-color: var(--teal);
    box-shadow: 0 0 0 5px rgba(13,124,120,.035);
}

.signal-axis,
.signal-diagonal {
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--line);
    transform-origin: center;
    z-index: -1;
}

.axis-x { width: 90%; height: 1px; transform: translate(-50%, -50%); }
.axis-y { width: 1px; height: 90%; transform: translate(-50%, -50%); }
.diagonal-a { width: 68%; height: 1px; transform: translate(-50%, -50%) rotate(45deg); opacity: .38; }
.diagonal-b { width: 68%; height: 1px; transform: translate(-50%, -50%) rotate(-45deg); opacity: .38; }

.signal-sweep {
    position: absolute;
    left: calc(50% - .5px);
    bottom: 50%;
    width: 1px;
    height: 44%;
    transform-origin: 50% 100%;
    background: linear-gradient(to top, rgba(13,124,120,.9), rgba(13,124,120,0));
    animation: radarSweep 14s linear infinite;
    opacity: .48;
}

.signal-sweep::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
}

.signal-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.signal-links line {
    stroke: rgba(17,17,17,.18);
    stroke-width: .18;
    stroke-dasharray: 1.1 1.4;
    vector-effect: non-scaling-stroke;
}

.signal-node {
    --node-x: 0px;
    --node-y: 0px;
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ink);
    transform: translate(var(--node-x), var(--node-y));
    transition: transform 160ms linear, background 220ms ease, box-shadow 220ms ease;
}

.node-a { left: 24.5%; top: 49.2%; }
.node-b { right: 22.5%; top: 49.2%; }
.node-c { top: 24.5%; left: 49.2%; background: var(--teal); }
.node-d { bottom: 20.5%; left: 49.2%; }
.node-e { left: 31.5%; top: 31.5%; width: 6px; height: 6px; }
.node-f { right: 29%; bottom: 28.5%; width: 6px; height: 6px; background: var(--teal); }

.signal-field:hover .node-b {
    background: var(--crimson);
    box-shadow: 0 0 0 7px rgba(166,61,69,.09);
}

.signal-field:hover .node-e { background: var(--crimson); }

.signal-label {
    position: absolute;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.04em;
    color: var(--soft-ink);
    white-space: nowrap;
}

.label-a { left: 6%; top: 44%; }
.label-b { right: 5%; bottom: 17%; }
.label-c { right: 7%; top: 22%; }
.cursor-coordinates { left: 10%; bottom: 15%; }

.signal-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-family: 'DM Mono', monospace;
    z-index: 4;
}

.signal-core::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--teal);
    border-radius: 50%;
    animation: coreBreath 4.2s ease-in-out infinite;
}

.signal-core span {
    font-size: 15px;
    letter-spacing: 0.08em;
}

.signal-core small {
    font-size: 7px;
    letter-spacing: .18em;
    opacity: .55;
}

.signal-live {
    position: absolute;
    right: 11%;
    top: 11%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 8px;
    letter-spacing: .06em;
    color: var(--soft-ink);
}

.signal-live span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    animation: statusPulse 2.4s ease-in-out infinite;
}

.hero-meta {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--soft-ink);
}

.hero-year { font-size: 12px; color: var(--ink); }

/* Lower sections */
.index-section,
.work-section,
.statement-section,
.contact-section {
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    gap: 40px;
    margin-bottom: clamp(54px, 7vw, 100px);
}

.section-heading .eyebrow { margin: 9px 0 0; }

.section-heading h2,
.coming-panel h2,
.contact-section h2 {
    margin: 0;
    font-size: clamp(44px, 6vw, 94px);
    line-height: 0.96;
    letter-spacing: -0.055em;
    font-weight: 500;
}

.index-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.index-card {
    min-height: 390px;
    padding: 24px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background 260ms ease, color 260ms ease, transform 260ms ease;
}

.index-card:hover { transform: translateY(-8px); z-index: 2; }
.index-card.accent-teal:hover { background: var(--teal); color: var(--white); }
.index-card.accent-crimson:hover { background: var(--crimson); color: var(--white); }
.index-card.accent-neutral:hover { background: var(--ink); color: var(--paper); }

.card-topline {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--soft-ink);
}

.index-card:hover .card-topline { color: currentColor; opacity: 0.7; }

.index-card h3 {
    margin: auto 0 18px;
    font-size: clamp(38px, 3.4vw, 58px);
    font-weight: 500;
    letter-spacing: -0.05em;
}

.index-card p {
    margin: 0;
    max-width: 270px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--soft-ink);
}

.index-card:hover p { color: currentColor; opacity: 0.8; }

.card-arrow {
    position: absolute;
    right: 24px;
    bottom: 24px;
    font-size: 20px;
    transition: transform 220ms ease;
}

.index-card:hover .card-arrow { transform: translate(4px, -4px); }

.split-heading {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: end;
}

.section-note {
    margin: 0 0 8px;
    max-width: 360px;
    justify-self: end;
    font-size: 14px;
    line-height: 1.6;
    color: var(--soft-ink);
}

.project-list { border-top: 1px solid var(--ink); }

.project-row {
    display: grid;
    grid-template-columns: 72px 1fr auto 40px;
    gap: 20px;
    align-items: center;
    min-height: 145px;
    border-bottom: 1px solid var(--line);
    transition: padding 220ms ease, background 220ms ease;
}

.project-row:hover {
    padding-left: 16px;
    background: rgba(255,255,255,0.34);
}

.project-number,
.project-tag {
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    color: var(--soft-ink);
}

.project-title h3 {
    margin: 0;
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 500;
    letter-spacing: -0.045em;
}

.project-title p {
    margin: 8px 0 0;
    color: var(--soft-ink);
    font-size: 12px;
}

.project-arrow { font-size: 18px; transition: transform 200ms ease; }
.project-row:hover .project-arrow { transform: translate(4px, -4px); }

.statement-section {
    display: grid;
    grid-template-columns: 0.55fr 1.45fr auto;
    gap: 44px;
    align-items: start;
}

.statement-index {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--soft-ink);
}

.statement-copy { max-width: 900px; }

.statement-copy p {
    margin: 0;
    font-size: clamp(28px, 3.5vw, 58px);
    line-height: 1.13;
    letter-spacing: -0.045em;
}

.statement-copy .statement-lead {
    margin-bottom: 24px;
    font-family: 'Libre Caslon Display', Georgia, serif;
    font-style: italic;
    color: var(--crimson);
}

.statement-mark {
    font-size: clamp(56px, 9vw, 130px);
    line-height: 0.8;
    color: var(--teal);
}

.coming-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

.coming-panel {
    min-height: 660px;
    padding: var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-bottom: 1px solid var(--line);
}

.coming-panel:first-child { background: #dedbd2; }
.dark-panel { background: var(--ink); color: var(--paper); }
.dark-panel .eyebrow,
.dark-panel p { color: rgba(241,239,232,0.68); }
.coming-panel h2 { max-width: 600px; }

.coming-panel > p:not(.eyebrow) {
    max-width: 520px;
    margin: 30px 0 0;
    line-height: 1.65;
    color: var(--soft-ink);
}

.panel-status {
    margin-top: 44px;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid currentColor;
    border-radius: 100px;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 50px;
    align-items: end;
}

.contact-side { max-width: 420px; justify-self: end; }

.contact-side p {
    margin: 0 0 32px;
    color: var(--soft-ink);
    font-size: 14px;
    line-height: 1.65;
}

.site-footer {
    min-height: 110px;
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 20px;
    align-items: center;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--soft-ink);
}

.reveal { transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.7,.2,1); }
.reveal:not(.visible) { opacity: 0; transform: translateY(22px); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes radarSweep {
    to { transform: rotate(360deg); }
}

@keyframes coreBreath {
    0%, 100% { transform: scale(1); opacity: .8; }
    50% { transform: scale(1.08); opacity: .3; }
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

@media (max-width: 1180px) {
    .site-header { grid-template-columns: 1fr auto; }
    .header-status { display: none; }
    .hero { grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr); }
    .primary-nav { gap: 18px; }
}

@media (max-width: 1050px) {
    .page-grid { background-size: 33.333% 100%; }

    .hero { grid-template-columns: 1fr; }
    .hero-copy { max-width: 900px; }
    .hero-visual {
        width: min(72vw, 540px);
        justify-self: center;
        margin-top: 24px;
    }

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

    .section-heading,
    .split-heading,
    .statement-section,
    .contact-layout { grid-template-columns: 1fr; }

    .section-note,
    .contact-side { justify-self: start; }
    .statement-mark { justify-self: end; }
}

@media (max-width: 760px) {
    :root { --gutter: 20px; }
    .page-grid { display: none; }

    .site-header {
        grid-template-columns: 1fr auto;
        min-height: 72px;
    }

    .brand-mark { width: 34px; }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
    }

    .menu-icon {
        width: 18px;
        height: 10px;
        position: relative;
        border-top: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
    }

    .primary-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        padding: 22px var(--gutter) 26px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        display: grid;
        gap: 18px;
        transform: translateY(-130%);
        opacity: 0;
        pointer-events: none;
        transition: transform 250ms ease, opacity 250ms ease;
    }

    .primary-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .primary-nav a { font-size: 16px; }

    .hero {
        min-height: auto;
        padding-top: 70px;
        gap: 54px;
    }

    .hero h1 { font-size: clamp(52px, 15vw, 78px); }
    .hero-intro { max-width: 520px; }
    .hero-visual { width: min(92vw, 430px); }

    .label-c,
    .cursor-coordinates { display: none; }

    .hero-meta { grid-template-columns: 1fr auto; }
    .hero-meta span:nth-child(2) { display: none; }

    .index-grid,
    .coming-grid { grid-template-columns: 1fr; }
    .index-card { min-height: 310px; }

    .project-row {
        grid-template-columns: 44px 1fr 28px;
        min-height: 125px;
    }

    .project-tag { display: none; }
    .coming-panel { min-height: 520px; }
    .site-footer { grid-template-columns: 1fr auto; }
    .site-footer span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
