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

body,
h1,
h2,
h3,
p,
figure {
    margin: 0;
    padding: 0;
}

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

/* Tokens */
:root {
    --bg: #0F0E0C;
    --surface: #171512;
    --ink: #EAE6DE;
    --muted: #9A9488;
    --accent: #B39A6B;
    --line: #2A2721;

    --pad-x: 24px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Base / type */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    color: var(--ink);
    font-family: 'Public Sans', system-ui, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color 250ms var(--ease);
}

a:hover,
a:focus-visible {
    color: var(--accent);
}

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

.eyebrow {
    font-family: 'Public Sans', system-ui, sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    margin-bottom: 20px;
}

/* Layout container */
.hero,
.section,
.footer {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 88px;
    padding-bottom: 72px;
}

.hero-text {
    min-width: 0;
}

.hero-name {
    font-weight: 300;
    font-size: clamp(2.5rem, 6.5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}

.hero-statement {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--muted);
}

.hero-line {
    color: var(--muted);
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 46ch;
    margin-top: 28px;
}

/* Thesis */
.thesis {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.015em;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.thesis a {
    color: var(--ink);
    text-decoration: none;
    transition: color 250ms var(--ease);
}

.thesis a:hover,
.thesis a:focus-visible {
    color: var(--accent);
}

.thesis span {
    color: var(--muted);
    font-size: 0.6em;
    font-style: normal;
    margin: 0 0.5em;
}

/* Portrait */
.portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 340px;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
}

.portrait-initials {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-size: clamp(3rem, 9vw, 4.5rem);
    letter-spacing: 0.02em;
    line-height: 1;
    color: #3A362E;
    user-select: none;
}

.portrait img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Sections */
.section {
    padding-top: 72px;
    padding-bottom: 72px;
    border-top: 1px solid var(--line);
}

.section h2 {
    font-weight: 300;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    line-height: 1.12;
    max-width: 22ch;
}

.section p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.0625rem;
    line-height: 1.75;
    max-width: 62ch;
}

.section h2 + p:not(.eyebrow) {
    margin-top: 24px;
}

#technology,
#leadership,
#innovation,
#connect {
    scroll-margin-top: 48px;
}

/* Ventures */
.ventures {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.venture {
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 32px;
    transition: border-color 250ms var(--ease);
}

.venture:hover {
    border-color: rgba(179, 154, 107, 0.32);
}

.venture h3 {
    font-weight: 400;
    font-size: 1.375rem;
    line-height: 1.2;
    margin-bottom: 12px;
}

.venture p {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 44ch;
}

/* Connect */
.section-connect h2 {
    max-width: 40ch;
}

.connect-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-bottom: 6px;
    font-family: 'Public Sans', system-ui, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: color 250ms var(--ease), border-color 250ms var(--ease);
}

.connect-link:hover,
.connect-link:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.connect-link svg {
    flex: none;
    color: currentColor;
}

/* Footer */
.footer {
    border-top: 1px solid var(--line);
    padding-top: 40px;
    padding-bottom: 40px;
}

.footer p {
    color: var(--muted);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

/* Motion */
@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-1,
.reveal-2,
.reveal-3,
.reveal-4 {
    animation: rise 700ms var(--ease) both;
}

.reveal-1 {
    animation-delay: 0ms;
}

.reveal-2 {
    animation-delay: 90ms;
}

.reveal-3 {
    animation-delay: 180ms;
}

.reveal-4 {
    animation-delay: 270ms;
}

.will-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.will-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (min-width: 760px) {
    :root {
        --pad-x: 32px;
    }

    .hero {
        grid-template-columns: 7fr 5fr;
        gap: 72px;
        min-height: 85vh;
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .hero-name {
        margin-bottom: 22px;
    }

    .hero-line {
        margin-top: 36px;
    }

    .portrait {
        max-width: none;
        justify-self: end;
    }

    .section {
        padding-top: 104px;
        padding-bottom: 104px;
    }

    .ventures {
        grid-template-columns: 1fr 1fr;
        margin-top: 48px;
    }

    .footer {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    #technology,
    #leadership,
    #innovation,
    #connect {
        scroll-margin-top: 72px;
    }
}

@media (min-width: 1024px) {
    :root {
        --pad-x: 40px;
    }

    .hero {
        gap: 80px;
    }

    .section {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal-1,
    .reveal-2,
    .reveal-3,
    .reveal-4,
    .will-reveal {
        opacity: 1;
        transform: none;
    }
}
