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

:root {
    --orange: rgb(230, 139, 20);
    --black: #111;
    --white: #fff;
    --warm: #f5f2ed;
    --muted: #555;
    --muted-dark: #bbb;
    --rule-dark: #444;
    --rule-warm: #d8d2c8;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --max-width: 1100px;
    --pad: clamp(1.25rem, 4vw, 3rem);
}

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--black);
    background: var(--white);
}

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

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--black);
    outline-offset: 3px;
}

.band-dark :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--orange);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Layout */
.wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

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

.label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    padding: 0.8rem 1.6rem;
}

.btn-dark {
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
}

.btn-dark:hover {
    background: #333;
    border-color: #333;
}

.btn-outline {
    color: var(--black);
    border: 2px solid var(--black);
}

.btn-outline:hover {
    background: var(--black);
    color: var(--white);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.site-header nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-links a:not(.btn):hover {
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.nav-links .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: var(--black);
}

/* Hero */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(640px, 41%);
    min-height: 560px;
}

.hero-text {
    background: var(--orange);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    padding-right: var(--pad);
    /* Align the text with the content column of the sections below. */
    padding-left: max(var(--pad), calc((100vw - var(--max-width)) / 2 + var(--pad)));
}

.hero .label {
    color: var(--black);
}

.hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
}

.hl-white {
    box-shadow: inset 0 -0.32em 0 var(--white);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.hero-lede {
    font-size: 1.15rem;
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-photo {
    position: relative;
    overflow: hidden;
    background: var(--black);
}

.hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
}

/* Results */
.results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    list-style: none;
}

.results li {
    border-top: 3px solid var(--black);
    padding-top: 1rem;
}

.result-value {
    display: block;
    font-family: var(--font-mono);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
}

.result-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

/* How I work */
.band-dark {
    background: var(--black);
    color: var(--white);
}

.band-dark .label {
    color: var(--orange);
}

.band-dark h2 {
    max-width: 40rem;
}

.principles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    list-style: none;
    margin-top: 2.5rem;
}

.principles li {
    border-top: 1px solid var(--rule-dark);
    padding-top: 1.25rem;
}

.principle-num {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--orange);
}

.principles h3 {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0.35rem 0 0.5rem;
}

.principles p {
    color: var(--muted-dark);
}

/* Statement */
.statement {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.statement .block {
    background: var(--orange);
    padding: 0 0.1em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Track record */
.band-warm {
    background: var(--warm);
}

.track {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
}

.track p {
    color: var(--muted);
}

.links {
    margin-top: 1.5rem;
}

.links a {
    font-weight: 700;
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.domains {
    list-style: none;
}

.domains li {
    border-top: 1px solid var(--rule-warm);
    padding: 0.85rem 0;
    line-height: 1.5;
}

.domains li:last-child {
    border-bottom: 1px solid var(--rule-warm);
}

.domains strong {
    display: block;
}

.domains span {
    color: var(--muted);
}

/* Work with me */
.work-intro {
    color: var(--muted);
    max-width: 40rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    list-style: none;
    margin-top: 2rem;
}

.cards li {
    border: 2px solid var(--black);
    border-radius: 10px;
    padding: 1.5rem;
}

.cards h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.cards p {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* CTA */
.band-orange {
    background: var(--orange);
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 0.5rem;
}

.cta p {
    max-width: 36rem;
}

.cta .btn {
    white-space: nowrap;
}

/* Footer */
.site-footer {
    background: var(--black);
    color: #999;
    font-size: 0.9rem;
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
}

.site-footer a {
    color: #999;
}

/* Phone */
@media (max-width: 719px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem var(--pad);
        background: var(--white);
        border-bottom: 1px solid #eee;
    }

    .nav-links.open {
        display: flex;
    }

    .logo img {
        height: 32px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-text {
        padding: 2.75rem var(--pad);
    }

    .hero-photo {
        height: 300px;
    }

    .hero-photo img {
        object-position: 50% 30%;
    }

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

    .results,
    .principles,
    .track,
    .cards {
        grid-template-columns: 1fr;
    }

    .results {
        gap: 1.75rem;
    }

    .track {
        gap: 2rem;
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer .wrap {
        flex-direction: column;
        align-items: center;
        gap: 0.4rem;
        text-align: center;
    }
}
