@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600&family=Syne:wght@500;600;700&display=swap');

:root {
    color-scheme: light;
    --paper: #f3efe5;
    --paper-deep: #e8dfcf;
    --ink: #191713;
    --muted: #6f685d;
    --gold: #a47b2c;
    --gold-light: #d6b96f;
    --rule: rgba(25, 23, 19, 0.16);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', Arial, sans-serif;
    --display: 'Syne', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 84% 7%, rgba(214,185,111,0.3), transparent 24rem),
        radial-gradient(circle at 4% 58%, rgba(164,123,44,0.08), transparent 30rem),
        var(--paper);
    font-family: var(--sans);
    line-height: 1.65;
}
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: '';
    opacity: 0.34;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }

.page-nav {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 0 20px;
    border-bottom: 1px solid var(--rule);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-size: 0.93rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-decoration: none;
}
.brand::before {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    content: 'SP';
    font-size: 0.58rem;
    letter-spacing: 0;
}
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 26px; }
.nav-links a {
    position: relative;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}
.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: var(--gold);
    content: '';
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s ease;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current='page'] { color: var(--ink); }

main {
    position: relative;
    isolation: isolate;
    padding: clamp(100px, 14vw, 190px) 0 110px;
}
main::before {
    position: absolute;
    top: 30px;
    right: -0.06em;
    z-index: -1;
    color: transparent;
    content: 'SP';
    font-family: var(--display);
    font-size: clamp(9rem, 25vw, 22rem);
    font-weight: 700;
    letter-spacing: -0.1em;
    line-height: 0.8;
    opacity: 0.42;
    -webkit-text-stroke: 1px rgba(164,123,44,0.36);
}
.founder-page main::before { content: 'R&B'; }
.work-page main::before { content: '07'; }
.systems-page main::before { content: 'DATA'; font-size: clamp(7rem, 20vw, 17rem); }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 24px;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.eyebrow::before { width: 46px; height: 1px; background: currentColor; content: ''; }
h1, h2 { margin: 0; }
h1 {
    max-width: 980px;
    font-family: var(--serif);
    font-size: clamp(4rem, 11vw, 9.8rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.78;
    text-wrap: balance;
}
.lede {
    max-width: 720px;
    margin: 48px 0 0 auto;
    padding-left: 28px;
    border-left: 1px solid var(--gold);
    color: #504a41;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.35;
}

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: clamp(82px, 12vw, 140px) 0 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.fact { position: relative; padding: 36px 4vw 36px 0; }
.fact + .fact { padding-left: 4vw; border-left: 1px solid var(--rule); }
.fact strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.8;
}
.fact span { color: var(--muted); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; }

.content-block {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(340px, 1.22fr);
    gap: clamp(40px, 9vw, 130px);
    margin-top: clamp(90px, 13vw, 160px);
    padding-top: 30px;
    border-top: 1px solid var(--gold);
}
.content-block .status { grid-column: 1 / -1; }
.content-block h2 {
    grid-column: 1;
    grid-row: 2 / span 3;
    max-width: 520px;
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: .88;
}
.content-block > p:not(.status),
.content-block .context-links { grid-column: 2; }
.content-block > p:not(.status) { margin: 0; color: var(--muted); font-size: 1rem; }
.status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.status::after { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); content: ''; }
.context-links { display: grid; margin-top: 26px; border-top: 1px solid var(--rule); }
.context-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.86rem;
    text-decoration: none;
    transition: color .25s ease, padding .25s ease;
}
.context-links a::after { color: var(--gold); content: '↗'; font-size: 1.05rem; }
.context-links a[href^='/']::after { content: '→'; }
.context-links a:hover,
.context-links a:focus-visible { padding-left: 8px; color: var(--gold); }

.project-grid {
    margin-top: clamp(90px, 12vw, 150px);
    border-top: 1px solid var(--ink);
    counter-reset: project;
}
.project {
    display: grid;
    grid-template-columns: 70px minmax(230px, .75fr) minmax(300px, 1fr) 150px;
    gap: 28px;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--rule);
    counter-increment: project;
    transition: padding .35s ease, color .35s ease;
}
.project::before {
    color: var(--gold);
    content: counter(project, decimal-leading-zero);
    font-family: var(--serif);
    font-size: 1.25rem;
}
.project h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.8rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: .95;
}
.project p { margin: 0; color: var(--muted); font-size: .9rem; }
.project .status { grid-column: 4; grid-row: 1; }
.project:hover { padding-right: 12px; padding-left: 12px; color: var(--gold); }
.project:hover p { color: #504a41; }
.work-page .content-block { margin-top: 120px; }
.work-page .content-block h2 { grid-row: 1 / span 3; }

footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.76rem; letter-spacing: 0.05em; }
footer .shell { padding: 32px 0 48px; }

@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
main > * { animation: rise .8s cubic-bezier(.2,.75,.25,1) both; }
main > :nth-child(2) { animation-delay: .08s; }
main > :nth-child(3) { animation-delay: .16s; }
main > :nth-child(4) { animation-delay: .24s; }

@media (max-width: 820px) {
    .shell { width: min(100% - 36px, 1180px); }
    .page-nav { align-items: flex-start; }
    .nav-links { max-width: 210px; gap: 8px 16px; }
    main { padding-top: 94px; }
    main::before { top: 46px; right: -.02em; }
    h1 { font-size: clamp(3.7rem, 17vw, 7rem); line-height: .82; }
    .lede { margin-top: 38px; padding-left: 20px; }
    .facts { grid-template-columns: 1fr; }
    .fact { padding: 25px 0; }
    .fact + .fact { padding-left: 0; border-top: 1px solid var(--rule); border-left: 0; }
    .content-block { grid-template-columns: 1fr; gap: 24px; }
    .content-block .status,
    .content-block h2,
    .content-block > p:not(.status),
    .content-block .context-links { grid-column: 1; grid-row: auto; }
    .content-block h2 { margin-bottom: 16px; }
    .project { grid-template-columns: 40px 1fr; gap: 12px 18px; padding: 26px 0; }
    .project h2 { grid-column: 2; }
    .project p { grid-column: 2; }
    .project .status { grid-column: 2; grid-row: auto; justify-content: flex-start; gap: 12px; }
    .project .status::after { order: -1; }
}

@media (max-width: 520px) {
    .shell { width: min(100% - 24px, 1180px); }
    .brand { font-size: 0; }
    .brand::before { font-size: .58rem; }
    .nav-links { max-width: 250px; gap: 7px 13px; }
    .nav-links a { font-size: .62rem; }
    .eyebrow { font-size: .6rem; }
    h1 { font-size: clamp(3.45rem, 18vw, 5.2rem); }
    .lede { font-size: 1.25rem; }
    .content-block { margin-top: 86px; }
}

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