/* Approved Inter/orange design. Shared colors are defined first. */
@font-face {
    font-family: Inter;
    src: url('../fonts/InterVariable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    color-scheme: light;
    --bg: #FAFAF8;
    --surface: #FFFFFF;
    --text: #16191C;
    --muted: #474D54;
    --line: #737A81;
    --orange: #873907;
    --button-text: #FFFFFF;
    --accent: var(--orange);
    font-family: Inter,Arial,sans-serif;
    font-optical-sizing: auto;
    font-feature-settings: 'liga' 1,'calt' 1;
}

@media(prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #121416;
        --surface: #1C2024;
        --text: #F4F5F5;
        --muted: #BFC6CC;
        --line: #89939D;
        --orange: #FFB36B;
        --button-text: #121416;
    }

}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #121416;
    --surface: #1C2024;
    --text: #F4F5F5;
    --muted: #BFC6CC;
    --line: #89939D;
    --orange: #FFB36B;
    --button-text: #121416;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 1.125rem;
    line-height: 1.65;
}

[hidden] {
    display: none!important;
}

h1,h2,h3,p,figure {
    margin: 0;
}

h1,h2,h3,h4 {
    overflow-wrap: anywhere;
}

h1,h2,h3 {
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.35rem,5.2vw,4.5rem);
    letter-spacing: -.045em;
    max-width: 16ch;
}

h2 {
    font-size: clamp(1.8rem,3vw,2.6rem);
    letter-spacing: -.035em;
}

h3 {
    font-size: 1.35rem;
    letter-spacing: -.025em;
    line-height: 1.35;
    margin-bottom: 1rem;
}

p {
    max-width: 70ch;
    overflow-wrap: anywhere;
}

strong {
    font-weight: 600;
}

a {
    color: var(--accent);
    text-underline-offset: .23em;
    text-decoration-thickness: 1.5px;
}

a:hover {
    text-decoration-thickness: 3px;
}

button,select {
    font: inherit;
}

button,select,.button,nav a,.brand {
    min-height: 48px;
    min-width: 48px;
}

button,select {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 4px;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

main:focus {
    outline: none;
}

.wrap {
    width: min(1160px,calc(100% - 96px));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: 16px;
    top: 12px;
    transform: translateY(-200%);
    padding: 14px 20px;
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--text);
    z-index: 10;
}

.skip:focus {
    transform: none;
}

.review-bar {
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    font-size: .875rem;
}

.review-inner {
    padding-block: 18px;
    display: flex;
    gap: 16px 36px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.review-note {
    display: block;
    color: var(--muted);
}

.controls {
    display: flex;
    gap: 24px;
    align-items: end;
    flex-wrap: wrap;
}

.theme-control label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

select {
    padding: 8px 30px 8px 12px;
    max-width: 100%;
    cursor: pointer;
}

.swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: var(--orange);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-block: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-weight: 650;
    font-size: 1.3rem;
    letter-spacing: -.04em;
    color: var(--text);
    text-decoration: none;
}

.brand-dot {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

nav a {
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: var(--text);
    font-size: .9375rem;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

.hero {
    padding-block: clamp(48px,6vw,88px);
}

.hero h1 {
    max-width: 18ch;
}

.hero .lede {
    max-width: 52ch;
    font-size: 1.25rem;
}

.introduction {
    background: var(--surface);
    border-block: 1px solid var(--line);
    padding-block: 64px;
}

.introduction-grid {
    display: grid;
    gap: 32px;
    align-items: start;
}

.introduction-copy {
    min-width: 0;
    max-width: 52rem;
}

.introduction h2 {
    font-size: clamp(1.8rem,3vw,2.6rem);
    max-width: 22ch;
}

@media(min-width:52rem) {
    .introduction-grid {
        grid-template-columns: 12rem minmax(0,1fr);
        gap: clamp(32px,5vw,72px);
    }
}

.accent-text {
    color: var(--accent);
}

.lede {
    margin-top: 24px;
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 68ch;
}

.lede strong {
    color: var(--text);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    min-height: 52px;
    padding: 12px 21px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    max-width: 100%;
}

.button:hover,
.button:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
}

.button-label {
    display: inline-block;
}

/* Enlarge the label without moving the button or neighboring content. */
.button:hover .button-label,
.button:focus-visible .button-label {
    transform: scale(1.06);
}

.primary {
    color: var(--button-text);
    background: var(--accent);
    border-color: var(--accent);
}

.secondary {
    color: var(--text);
    background: transparent;
}

.portrait {
    max-width: 18rem;
}

.portrait img {
    background: #F3F1EA;
    display: block;
    width: 10rem;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 24px;
}

.portrait figcaption {
    margin-top: 16px;
    font-size: .875rem;
    color: var(--muted);
}

.portrait figcaption span {
    display: block;
}

.work-section,.approach-section {
    padding-top: 80px;
    padding-bottom: 24px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.section-heading p {
    color: var(--muted);
    font-size: .9375rem;
}

.work-row {
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0,1fr) 230px;
    gap: 32px;
    padding-block: 36px;
}

.work-row:last-child {
    border-bottom: 1px solid var(--line);
}

.work-row p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.result {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.result strong {
    color: var(--accent);
}

.result .metric {
    font-size: 3.5rem;
    letter-spacing: -.055em;
    line-height: 1.1;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    margin-bottom: 14px;
}

.result p:not(.metric) {
    font-size: .9375rem;
}

.principles {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 32px;
    margin-bottom: 64px;
}

.principles article {
    border-top: 3px solid var(--accent);
    padding-top: 24px;
}

.principles p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.contact-section {
    border-block: 1px solid var(--line);
    background: var(--surface);
    padding-block: 64px;
}

.contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.contact-inner .actions {
    margin: 0;
}

footer {
    padding-block: 28px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 32px;
    color: var(--muted);
    font-size: .875rem;
}

@media(max-width:900px) {
    .wrap {
        width: calc(100% - 48px);
    }

    .work-row {
        grid-template-columns: minmax(0,1fr);
        gap: 20px;
    }

    .result {
        grid-column: 1;
        padding: 0;
        border: 0;
    }

    .principles {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .principles article {
        max-width: 70ch;
    }

    .controls {
        gap: 16px;
    }

}

@media(max-width:620px) {
    .wrap {
        width: calc(100% - 40px);
    }

    .review-inner {
        padding-block: 20px;
    }

    .controls {
        width: 100%;
        align-items: start;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-block: 20px;
    }

    nav {
        gap: 24px;
    }

    .introduction {
        padding-block: 40px;
    }

    h1 {
        max-width: 17ch;
    }

    .work-section,.approach-section {
        padding-top: 48px;
    }

    .work-row {
        grid-template-columns: minmax(0,1fr);
        gap: 12px;
    }

    .result {
        grid-column: 1;
    }

    .section-heading {
        margin-bottom: 28px;
    }

    .contact-section {
        padding-block: 40px;
    }

    .principles {
        margin-bottom: 32px;
    }

}

@media(forced-colors:active) {
    .primary {
        border: 2px solid ButtonText;
    }

    .swatch {
        border: 1px solid CanvasText;
    }

    :focus-visible {
        outline-color: Highlight;
    }

}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto!important;
    }

}


/* A continuous process, redrawn with the approved Inter and orange palette. */
.chosen-accent {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.how-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.25fr);
    align-items: center;
    gap: 48px;
    margin-bottom: 56px;
}

.process-figure {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    container-type: inline-size;
}

.process-loop {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.loop-track {
    display: block;
    width: 100%;
    height: 100%;
    color: var(--accent);
}

.loop-label {
    position: absolute;
    transform: translate(-50%,-50%);
    width: max-content;
    max-width: 38%;
    text-align: center;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
    padding: 6px 10px;
}

.loop-label span {
    display: block;
    color: var(--muted);
    font-weight: 400;
}

.loop-label.clarify {
    left: 50%;
    top: 19.23%;
    max-width: 50%;
}

.loop-label.support {
    left: 80.77%;
    top: 50%;
}

.loop-label.deliver {
    left: 50%;
    top: 80.77%;
}

.loop-label.learn {
    left: 19.23%;
    top: 50%;
}

/* Keep every label readable when enlarged text cannot fit around a circle.
   The rem-based threshold follows the reader's text size, not just the device. */
@container (max-width: 12rem) {
    .process-loop {
        aspect-ratio: auto;
        display: grid;
        gap: .5rem;
    }

    .loop-track {
        display: none;
    }

    .process-loop .loop-label {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        overflow-wrap: anywhere;
    }

    .loop-label::after {
        content: '↓';
        display: block;
        color: var(--accent);
        margin-top: .5rem;
    }

    .loop-label:last-child::after {
        content: '↺';
    }
}

.approach-copy p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--muted);
}

@media(max-width:1000px) {
    .how-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .process-figure {
        max-width: 460px;
    }

}

@media(max-width:620px) {
    .how-layout {
        margin-bottom: 40px;
    }

    .loop-label {
        font-size: .875rem;
    }

}

/* Work collection and restored full-page sections. */
.site-header { flex-wrap: wrap; }
.site-header > * { min-width: 0; max-width: 100%; }
.site-header .theme-control { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; max-width: 100%; font-size: .875rem; }
.site-header .theme-control label { margin: 0; }
.site-header nav { gap: 16px; }
.work-intro { margin-bottom: 36px; }
.work-intro p { margin-top: 20px; max-width: 76ch; color: var(--muted); line-height: 1.8; }
.work-feature { border-top: 1px solid var(--line); padding-block: 36px; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.7fr); align-items: center; gap: 52px; }
.feature-copy { grid-column: 2; grid-row: 1; }
.feature-copy p { font-size: 1rem; line-height: 1.8; color: var(--muted); }
.work-visual { grid-column: 1; grid-row: 1; padding: 28px 24px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); text-align: center; }
.journey-node { padding: 12px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: .9375rem; font-weight: 600; overflow-wrap: anywhere; }
.journey-goal { color: var(--accent); border: 2px solid var(--accent); }
.journey-arrow { line-height: 1.5; color: var(--accent); font-size: 22px; }
.work-collection { border-top: 1px solid var(--line); padding-top: 32px; }
.collection-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 40px; margin-top: 28px; }
.project-entry { border-top: 1px solid var(--line); padding-top: 24px; display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 18px; }
.project-entry svg { width: 56px; height: 56px; fill: none; stroke: var(--accent); stroke-width: 2; }
.project-entry h4 { margin: 0 0 12px; font-size: 1.2rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; }
.project-entry p { font-size: 1rem; color: var(--muted); line-height: 1.8; }
.experience-section { padding-block: 48px 64px; }
.experience-list { margin-top: 32px; }
.experience-row { border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 64px; padding-block: 28px; }
.experience-row h3 { font-size: 1.2rem; margin-bottom: 12px; }
.experience-row p { font-size: 1rem; color: var(--muted); line-height: 1.8; }
.experience-row .job-role { color: var(--text); font-weight: 600; }
.experience-row .job-dates { font-size: .875rem; margin-top: 8px; }
.experience-row .job-note { margin-top: 16px; }
.career-roles { border-left: 2px solid var(--accent); padding-left: 24px; }
.career-role + .career-role { margin-top: 28px; }
.career-role h4 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.5; }
.career-role .job-dates { margin-bottom: 12px; }
.testimonial-section { background: var(--surface); border-block: 1px solid var(--line); padding-block: 56px; }
.testimonial-heading { margin-bottom: 32px; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-size: clamp(1.25rem,2.2vw,1.7rem); max-width: 70ch; line-height: 1.65; letter-spacing: -.02em; }
.testimonial figcaption { margin-top: 24px; font-size: 1rem; color: var(--muted); }
.testimonial strong { color: var(--accent); }
.about-section { padding-block: 64px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); gap: 64px; }
.about-copy p { font-size: 1rem; line-height: 1.8; color: var(--muted); }
/* Scale paragraph separation with text: 1.5 times the 1.8em line height. */
.about-copy p + p { margin-top: 2.7em; }

/* Keep optional explanations next to their context, using native disclosure. */
.term-note {
    margin-top: 16px;
    font-size: 1rem;
}

.term-note summary {
    width: fit-content;
    max-width: 100%;
    min-width: 48px;
    min-height: 48px;
    padding: 12px 8px;
    line-height: 1.5;
    color: var(--accent);
    cursor: pointer;
    overflow-wrap: anywhere;
    text-decoration: underline;
    text-underline-offset: .23em;
}

.term-note[open] summary {
    margin-bottom: 8px;
}

.term-note p {
    padding-left: 16px;
    border-left: 2px solid var(--line);
}

@media(max-width:760px) {
    .work-feature,.experience-row,.about-section { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .feature-copy,.work-visual { grid-column: 1; grid-row: auto; }
    .work-visual { width: 100%; max-width: 420px; margin-inline: auto; }
    .collection-grid { grid-template-columns: 1fr; }
    .site-header .controls { width: auto; }
    .site-header nav { gap: 10px 16px; }
}
