/* ═══════════════════════════════════════════════════════════
   Stephen Elufisan — site styles
   One sans (Geist), no rules, rounded surfaces, real images.
   ═══════════════════════════════════════════════════════════ */

:root {
    --ivory: #F5F3EE;
    --white: #FFFFFF;
    --tint: #ECEAE3;
    --tint-2: #E3E0D7;
    --charcoal: #20211F;
    --charcoal-2: #2B2C29;
    --stone: #77766D;
    --stone-soft: #A9A79D;
    --sage: #B6C6A5;
    --sage-soft: #DCE5D2;
    --sage-deep: #4F6142;

    --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --r-sm: 14px;
    --r: 24px;
    --r-lg: 32px;
    --r-xl: 44px;

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1320px;
    --space: clamp(80px, 10vw, 140px);
    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ivory);
    color: var(--charcoal);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--sage);
    color: var(--charcoal);
}

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

a {
    color: inherit;
}

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--sage-deep);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: var(--space) 0;
}

.section--flush-top {
    padding-top: 0;
}

.muted {
    color: var(--stone);
}

/* ───────── Type ───────── */
.display {
    font-weight: 500;
    font-size: clamp(44px, 6.4vw, 92px);
    line-height: 1;
    letter-spacing: -0.035em;
}

.title {
    font-weight: 400;
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    max-width: 18ch;
}

.title .muted,
.display .muted {
    color: var(--stone-soft);
}

.h3 {
    font-weight: 500;
    font-size: clamp(21px, 1.8vw, 26px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.lede {
    font-size: clamp(18px, 1.5vw, 20px);
    line-height: 1.5;
    color: #4A4B46;
    max-width: 56ch;
}

.small {
    font-size: 14px;
}

.head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px 48px;
    flex-wrap: wrap;
    margin-bottom: clamp(36px, 4vw, 56px);
}

.head .lede {
    max-width: 40ch;
}

.head .pill {
    margin-bottom: 20px;
}

/* ───────── Pills & tags ───────── */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--charcoal);
    white-space: nowrap;
}

.pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sage-deep);
}

.pill--plain::before {
    display: none;
}

.pill--sage {
    background: var(--sage);
}

.pill--tint {
    background: var(--tint);
}

.pill--dark {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ivory);
}

.pill--dark::before {
    background: var(--sage);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--tint);
    font-size: 13px;
    font-weight: 500;
}

.card--dark .tags span {
    background: rgba(255, 255, 255, 0.1);
}

.tbc {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    background: #F3E3B8;
    color: #5A4510;
    font-size: 0.8em;
    font-weight: 500;
    white-space: nowrap;
}

/* ───────── Buttons ───────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn .arr {
    transition: transform 0.25s var(--ease);
}

.btn:hover .arr {
    transform: translate(2px, -2px);
}

.btn--dark {
    background: var(--charcoal);
    color: var(--ivory);
}

.btn--dark:hover {
    background: #000;
}

.btn--light {
    background: var(--white);
    color: var(--charcoal);
}

.btn--sage {
    background: var(--sage);
    color: var(--charcoal);
}

.btn--ghost-dark {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ivory);
}

.btn--ghost-dark:hover {
    background: rgba(255, 255, 255, 0.18);
}

.btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ───────── Nav ───────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 12px 0;
    background: rgba(245, 243, 238, 0.85);
    backdrop-filter: saturate(1.2) blur(12px);
    -webkit-backdrop-filter: saturate(1.2) blur(12px);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.monogram {
    font-weight: 600;
    font-size: 26px;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.monogram span {
    color: var(--sage-deep);
}

.nav__links {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: var(--white);
}

.nav__links a {
    display: block;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    color: var(--stone);
    transition: background 0.2s, color 0.2s;
}

.nav__links a:hover {
    color: var(--charcoal);
    background: var(--tint);
}

.nav__links a[aria-current="page"] {
    background: var(--charcoal);
    color: var(--ivory);
}

.nav__cta {
    padding: 12px 20px;
}

.nav__toggle {
    display: none;
    border: 0;
    border-radius: 999px;
    background: var(--white);
    padding: 11px 18px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--charcoal);
    cursor: pointer;
}

.nav__panel {
    display: none;
}

/* ───────── Hero (home) ───────── */
.hero {
    padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 80px);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: end;
}

.hero .pill {
    margin-bottom: 28px;
}

.hero__lede {
    margin-top: 32px;
    max-width: 560px;
    font-size: 19px;
    color: #4A4B46;
}

.hero__lede strong {
    font-weight: 600;
    color: var(--charcoal);
}

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

.hero__chips {
    margin-top: clamp(40px, 5vw, 64px);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero__chips .pill {
    margin: 0;
    font-weight: 400;
}

.hero__chips .pill b {
    font-weight: 500;
}

.portrait {
    position: relative;
}

.portrait__img {
    aspect-ratio: 4 / 5;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--tint);
}

.portrait__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 1.2s var(--ease);
}

.portrait:hover .portrait__img img {
    transform: scale(1.03);
}

.stat-card {
    position: absolute;
    left: -32px;
    bottom: 32px;
    width: 220px;
    padding: 16px 18px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 24px 48px -28px rgba(32, 33, 31, 0.45);
}

.stat-card p:first-child {
    font-size: 13px;
    color: var(--stone);
}

.stat-card .stat {
    margin-top: 6px;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-card .stat span {
    color: var(--sage-deep);
}

.portrait__tag {
    position: absolute;
    top: 18px;
    right: 18px;
}

/* ───────── Marquee ───────── */
.marquee {
    overflow: hidden;
    padding: 8px 0 clamp(48px, 6vw, 80px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__label {
    text-align: center;
    color: var(--stone);
    font-size: 14px;
    margin-bottom: 18px;
}

.marquee__track {
    display: flex;
    width: max-content;
    gap: clamp(36px, 5vw, 72px);
    animation: marquee 38s linear infinite;
}

.marquee__track span {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--stone-soft);
    white-space: nowrap;
}

.marquee__track span.key {
    color: var(--charcoal);
}

@keyframes marquee {
    to {
        transform: translateX(calc(-50% - clamp(18px, 2.5vw, 36px)));
    }
}

/* ───────── Cards ───────── */
.card {
    border-radius: var(--r);
    background: var(--white);
    padding: clamp(24px, 3vw, 40px);
}

.card--tint {
    background: var(--tint);
}

.card--sage {
    background: var(--sage);
}

.card--sage-soft {
    background: var(--sage-soft);
}

.card--dark {
    background: var(--charcoal);
    color: var(--ivory);
}

.card--dark .muted {
    color: var(--stone-soft);
}

.card--lg {
    border-radius: var(--r-lg);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Journey cards */
.journey {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
}

.journey .h3 {
    font-size: clamp(28px, 2.8vw, 38px);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.journey__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.journey__links a {
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.25s var(--ease);
}

.journey__links a:hover {
    background: var(--white);
    transform: translateY(-2px);
}

.card--dark .journey__links a {
    background: rgba(255, 255, 255, 0.1);
}

.card--dark .journey__links a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.journey__links .tbc {
    margin-left: 6px;
}

/* Discipline cards */
.discipline {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 560px;
    overflow: hidden;
    position: relative;
}

.discipline .h3 {
    font-size: clamp(30px, 3vw, 44px);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.services li {
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--tint);
    font-size: 15px;
}

.card--dark .services li {
    background: rgba(255, 255, 255, 0.08);
}

.discipline .btn {
    align-self: flex-start;
    margin-top: auto;
}

.collage {
    position: relative;
    height: 230px;
    margin: 4px calc(clamp(24px, 3vw, 40px) * -1) 0;
}

.collage img {
    position: absolute;
    width: 62%;
    border-radius: 16px;
    box-shadow: 0 24px 40px -24px rgba(32, 33, 31, 0.5);
    transition: transform 0.8s var(--ease);
}

.collage img:nth-child(1) {
    left: 6%;
    top: 0;
    transform: rotate(-3deg);
}

.collage img:nth-child(2) {
    right: 4%;
    top: 34px;
    transform: rotate(3deg);
}

.discipline:hover .collage img:nth-child(1) {
    transform: rotate(-5deg) translateY(-6px);
}

.discipline:hover .collage img:nth-child(2) {
    transform: rotate(5deg) translateY(-6px);
}

.discipline__note {
    font-size: 14px;
}

/* ───────── Media (real images + screenshot slots) ───────── */
.media {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--tint);
    aspect-ratio: 16 / 10;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 1s var(--ease);
}

.media__empty {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
    color: var(--stone);
    font-size: 15px;
    background:
        radial-gradient(circle at 30% 20%, rgba(182, 198, 165, 0.55), transparent 55%),
        var(--tint);
}

.media__empty b {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 17px;
}

.media__empty code {
    font-family: inherit;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}

.media.is-empty img {
    display: none;
}

.media.is-empty .media__empty {
    display: flex;
}

/* ───────── Project cards ───────── */
.proj {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 12px 12px 26px;
    border-radius: var(--r);
    background: var(--white);
    text-decoration: none;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.proj:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -40px rgba(32, 33, 31, 0.5);
}

.proj:hover .media img {
    transform: scale(1.04);
}

.proj__body {
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.proj__body p {
    color: var(--stone);
    font-size: 16px;
}

.proj__result {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-deep);
    font-size: 14px;
    font-weight: 500;
}

.proj__go {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
}

.proj__go span:last-child {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--tint);
    transition: background 0.25s, color 0.25s;
}

.proj:hover .proj__go span:last-child {
    background: var(--charcoal);
    color: var(--ivory);
}

.projects[hidden],
.projects li[hidden] {
    display: none;
}

.more {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* Filter chips */
.chips {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: var(--white);
    width: max-content;
    max-width: 100%;
}

.chip {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--stone);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.chip[aria-pressed="true"] {
    background: var(--charcoal);
    color: var(--ivory);
}

.count {
    color: var(--stone);
    font-size: 15px;
}

/* ───────── Experience rows ───────── */
.roles {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    gap: 8px 32px;
    align-items: center;
    padding: 24px 28px;
    border-radius: 20px;
    background: var(--white);
}

.role__org {
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.role__title {
    color: #4A4B46;
}

.role__date {
    color: var(--stone);
    font-size: 15px;
    text-align: right;
}

.role__what {
    grid-column: 1 / -1;
    color: #4A4B46;
    font-size: 16px;
    max-width: 80ch;
    margin-top: 8px;
}

.role--key {
    background: var(--sage);
}

.role--key .role__date,
.role--key .role__title,
.role--key .role__what {
    color: var(--charcoal);
}

/* ───────── About blocks ───────── */
.about-split {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 16px;
}

.photo-card {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--tint);
    min-height: 420px;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.story p {
    font-size: 18px;
    line-height: 1.65;
    color: #3E3F3B;
}

.story p+p {
    margin-top: 18px;
}

.card--dark.story p {
    color: #D6D3CB;
}

.pillar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
}

.pillar__n {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--white);
    font-size: 14px;
    font-weight: 600;
}

.card--dark .pillar__n {
    background: rgba(255, 255, 255, 0.1);
}

.pillar .h3 {
    margin-top: auto;
}

.pillar p {
    font-size: 15px;
    color: var(--stone);
}

.motto {
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.08;
    max-width: 24ch;
}

.motto span {
    color: var(--stone-soft);
}

/* ───────── Insight cards ───────── */
.article {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 300px;
}

.article__top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.article .h3 {
    margin-top: 18px;
}

.article p {
    color: var(--stone);
    font-size: 16px;
}

.article .btn,
.article__foot {
    margin-top: auto;
}

.article__foot {
    font-size: 14px;
    color: var(--stone);
}

.card--dark.article p {
    color: var(--stone-soft);
}

/* ───────── CTA block ───────── */
.cta-block {
    border-radius: var(--r-xl);
    background: var(--charcoal);
    color: var(--ivory);
    padding: clamp(40px, 6vw, 88px);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: end;
}

.cta-block .title {
    max-width: 14ch;
}

.cta-block .lede {
    color: var(--stone-soft);
    margin-top: 20px;
}

.avatar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
    background: var(--charcoal-2);
}

.avatar-row p {
    font-size: 15px;
    line-height: 1.35;
}

.avatar-row p span {
    color: var(--stone-soft);
}

.cta-block .btns {
    flex-direction: column;
}

.cta-block .btn {
    justify-content: space-between;
    padding: 20px 26px;
    font-size: 17px;
}

/* ───────── Inner page hero ───────── */
.page-hero {
    padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 5vw, 64px);
}

.page-hero .pill {
    margin-bottom: 24px;
}

.page-hero .display {
    max-width: 16ch;
}

.page-hero .lede {
    margin-top: 24px;
}

.page-hero__split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: end;
}

.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.subnav a {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--white);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.subnav a:hover {
    background: var(--charcoal);
    color: var(--ivory);
}

.crumb {
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--stone);
}

.crumb a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
}

.crumb a:hover {
    color: var(--sage-deep);
}

/* ───────── Case study ───────── */
.cover {
    margin-top: clamp(32px, 4vw, 56px);
}

.cover .media {
    aspect-ratio: 16 / 8;
    border-radius: var(--r-lg);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.meta .pill {
    margin: 0;
    font-weight: 400;
}

.meta .pill b {
    font-weight: 500;
}

.cs-actions {
    margin-top: 28px;
}

.cs {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr);
    gap: 16px clamp(32px, 6vw, 96px);
    padding: clamp(28px, 3vw, 44px) 0;
}

.cs__h {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.cs__h small {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--stone);
}

.cs__body {
    font-size: 18px;
    color: #3E3F3B;
}

.cs__body p+p,
.cs__body p+.bullets,
.cs__body .bullets+p {
    margin-top: 14px;
}

.bullets li {
    position: relative;
    padding: 5px 0 5px 22px;
}

.bullets li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sage);
}

.note {
    margin-top: 16px;
    padding: 18px 22px;
    border-radius: 18px;
    background: var(--tint);
    font-size: 15px;
    color: var(--stone);
}

.note b {
    display: block;
    color: var(--charcoal);
    font-weight: 500;
    margin-bottom: 4px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(24px, 3vw, 40px);
}

.gallery .media {
    aspect-ratio: 4 / 3;
}

.gallery figcaption {
    margin-top: 10px;
    font-size: 14px;
    color: var(--stone);
}

.next {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-top: clamp(48px, 6vw, 80px);
    padding: 14px;
    border-radius: var(--r-lg);
    background: var(--charcoal);
    color: var(--ivory);
    text-decoration: none;
    transition: transform 0.35s var(--ease);
}

.next:hover {
    transform: translateY(-4px);
}

.next__text {
    padding: clamp(16px, 3vw, 40px);
}

.next__text p {
    color: var(--stone-soft);
    font-size: 15px;
}

.next__text strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(30px, 3.6vw, 52px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.next .media {
    background: var(--charcoal-2);
}

.back {
    margin-top: 20px;
    text-align: center;
}

.back a {
    font-size: 15px;
    font-weight: 500;
    color: var(--stone);
    text-decoration: none;
}

.back a:hover {
    color: var(--charcoal);
}

/* ───────── Skills / education ───────── */
.skill-group .h3 {
    margin-bottom: 16px;
}

.cred .h3 {
    margin-top: 28px;
}

.cred p {
    margin-top: 8px;
    color: var(--stone);
    font-size: 15px;
}

/* ───────── Contact form ───────── */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 16px;
    align-items: start;
}

.direct {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 28px;
}

.direct a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s;
}

.direct a:hover {
    background: rgba(255, 255, 255, 0.16);
}

.direct a span:first-child {
    color: var(--stone-soft);
    font-size: 14px;
}

form {
    margin: 0;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 24px;
}

legend {
    padding: 0;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 500;
}

.types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.types label {
    position: relative;
}

.types input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.types span {
    display: block;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--tint);
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.types input:checked+span {
    background: var(--charcoal);
    color: var(--ivory);
}

.types input:focus-visible+span {
    outline: 2px solid var(--sage-deep);
    outline-offset: 2px;
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field--full {
    grid-column: 1 / -1;
}

.field[hidden] {
    display: none;
}

.field label {
    font-size: 14px;
    font-weight: 500;
}

.field label .opt {
    color: var(--stone);
    font-weight: 400;
}

.field input,
.field select,
.field textarea {
    font: inherit;
    font-size: 16px;
    color: var(--charcoal);
    background: var(--ivory);
    border: 0;
    border-radius: 14px;
    padding: 14px 16px;
    transition: background 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 2px var(--charcoal);
}

.form__foot {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.form__foot p {
    font-size: 14px;
    color: var(--stone);
    max-width: 36ch;
}

/* ───────── Footer ───────── */
.footer {
    margin-top: var(--space);
    background: var(--charcoal);
    color: var(--ivory);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: clamp(48px, 6vw, 88px) 0 32px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.footer__mail {
    font-size: clamp(28px, 4.4vw, 60px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__mail:hover {
    color: var(--sage);
}

.sitemap {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px;
}

.sitemap h2 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 14px;
}

.sitemap h2 a {
    text-decoration: none;
}

.sitemap li+li {
    margin-top: 8px;
}

.sitemap li a {
    font-size: 15px;
    color: var(--stone-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.sitemap h2 a:hover,
.sitemap li a:hover {
    color: var(--sage);
}

.footer__bottom {
    margin-top: clamp(48px, 6vw, 72px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--stone-soft);
    font-size: 14px;
}

.footer__bottom .monogram {
    color: var(--ivory);
}

.footer__bottom a {
    color: var(--stone-soft);
}

/* ───────── Reveal ───────── */
.js .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

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

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .marquee__track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }

    .marquee__track [aria-hidden="true"] {
        display: none;
    }
}

/* ───────── Tablet ───────── */
@media (max-width: 1024px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sitemap {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cta-block {
        grid-template-columns: 1fr;
    }

    .role {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .role__title {
        grid-column: 1;
        grid-row: 2;
    }

    .role__date {
        grid-column: 2;
        grid-row: 1;
    }
}

/* ───────── Mobile ───────── */
@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .nav__links,
    .nav__cta {
        display: none;
    }

    .nav__toggle {
        display: inline-block;
    }

    .nav__panel {
        display: flex;
        flex-direction: column;
        gap: 6px;
        position: fixed;
        z-index: 60; /* above positioned page content (e.g. the home portrait) and the sticky nav */
        top: 72px;
        left: 12px;
        right: 12px;
        padding: 12px;
        border-radius: var(--r);
        background: var(--white);
        box-shadow: 0 30px 60px -30px rgba(32, 33, 31, 0.45);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s, transform 0.25s var(--ease);
    }

    .nav__panel.open {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav__panel a {
        display: flex;
        justify-content: space-between;
        padding: 16px 18px;
        border-radius: 16px;
        background: var(--ivory);
        font-size: 22px;
        font-weight: 500;
        letter-spacing: -0.02em;
        text-decoration: none;
    }

    .nav__panel a[aria-current="page"] {
        background: var(--charcoal);
        color: var(--ivory);
    }

    .hero__grid,
    .page-hero__split,
    .grid-2,
    .grid-3,
    .grid-4,
    .about-split,
    .contact-grid,
    .cs,
    .next {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero .portrait {
        order: -1;
    }

    .portrait__img {
        aspect-ratio: 1 / 1;
    }

    .stat-card {
        left: 12px;
        bottom: 12px;
        width: auto;
        right: auto;
    }

    .hero .btns .btn,
    .cs-actions .btn {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .discipline {
        min-height: 0;
    }

    .collage {
        height: 180px;
    }

    .role {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
    }

    .role__title,
    .role__date {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
    }

    .photo-card {
        min-height: 360px;
    }

    .pillar,
    .article {
        min-height: 0;
    }

    .pillar .h3 {
        margin-top: 24px;
    }

    .chips {
        width: 100%;
        overflow-x: auto;
    }

    .fields {
        grid-template-columns: 1fr;
    }

    .form__foot .btn {
        width: 100%;
        justify-content: space-between;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .cover .media {
        aspect-ratio: 4 / 3;
    }

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

    .footer {
        border-radius: var(--r-lg) var(--r-lg) 0 0;
    }
}

/* ───────── Charts, figures & confidential cards ───────── */
.media--fit {
    background: var(--white);
    border: 1px solid var(--tint);
}

.media--fit img {
    object-fit: contain;
    object-position: center;
    padding: clamp(8px, 1.5vw, 18px);
}

.proj:hover .media--fit img {
    transform: none;
}

.gallery figure {
    min-width: 0;
}

.gallery--wide {
    grid-template-columns: minmax(0, 1fr);
}

.gallery--wide .media {
    aspect-ratio: 16 / 9;
}

.cs__body .gallery:first-child {
    margin-top: 0;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.kpis div {
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--white);
}

.kpis b {
    display: block;
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--charcoal);
}

.kpis span {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--stone);
}

.data-table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
    font-size: 16px;
}

.data-table th,
.data-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--tint);
}

.data-table th {
    font-weight: 500;
    color: var(--stone);
    font-size: 14px;
}

.data-table td:not(:first-child),
.data-table th:not(:first-child) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.table-scroll {
    overflow-x: auto;
}

.code-block {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--charcoal);
    color: var(--ivory);
    font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    overflow-x: auto;
    white-space: pre;
}

.media--confidential {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    padding: 24px;
    text-align: center;
    background: var(--charcoal);
    color: var(--ivory);
}

.media--confidential b {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.media--confidential span {
    font-size: 14px;
    color: var(--stone-soft);
}

.proj--static,
.proj--static:hover {
    transform: none;
    box-shadow: none;
    cursor: default;
}

.proj--static .proj__go {
    color: var(--stone);
}

.proj--static .proj__go span:last-child,
.proj--static:hover .proj__go span:last-child {
    background: var(--tint);
    color: var(--stone);
}

/* ───────── Design case-study components ───────── */
.cs--stack {
    grid-template-columns: minmax(0, 1fr);
}

.cs--stack .cs__body > p {
    max-width: 760px;
}

.duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.duo > div,
.tiles > div {
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--white);
    font-size: 16px;
}

.duo b,
.tiles b {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--charcoal);
}

.duo small,
.tiles small {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage-deep);
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.tiles--dark > div {
    background: var(--charcoal);
    color: var(--stone-soft);
}

.tiles--dark b {
    color: var(--ivory);
}

.tiles--dark small {
    color: var(--sage);
}

.pullquote {
    margin-top: 22px;
    padding: 6px 0 6px 22px;
    border-left: 3px solid var(--sage);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--charcoal);
}

.pullquote cite {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--stone);
}

.personas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.persona {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: 20px;
    background: var(--white);
    font-size: 15px;
}

.persona__name {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--charcoal);
}

.persona__meta {
    font-size: 13px;
    color: var(--stone);
}

.persona q {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--sage-soft);
    color: var(--charcoal);
    quotes: '“' '”';
}

.persona dl {
    display: grid;
    gap: 8px;
}

.persona dt {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage-deep);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 18px;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--white);
    font-size: 15px;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--sage);
    font-size: 13px;
    font-weight: 600;
    color: var(--charcoal);
}

.steps b {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: var(--charcoal);
}

.features {
    display: grid;
    gap: clamp(36px, 5vw, 72px);
    margin-top: clamp(24px, 3vw, 40px);
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(20px, 4vw, 56px);
    align-items: center;
}

.feature--flip .feature__media {
    order: 2;
}

.feature__text small {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--sage-deep);
}

.feature__text h3 {
    margin-bottom: 10px;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--charcoal);
}

.feature__text .bullets {
    margin-top: 10px;
    font-size: 16px;
}

.screen {
    max-height: min(640px, 80vh);
    overflow-y: auto;
    border-radius: 20px;
    border: 1px solid var(--tint);
    background: var(--white);
    overscroll-behavior: contain;
}

.screen img {
    display: block;
    width: 100%;
    height: auto;
}

.screen--short {
    max-height: none;
    overflow: hidden;
}

.screen-hint {
    margin-top: 8px;
    font-size: 13px;
    color: var(--stone);
}

.swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.swatch {
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
    font-size: 14px;
}

.swatch::before {
    content: '';
    display: block;
    height: 72px;
    background: var(--c);
    border-bottom: 1px solid var(--tint);
}

.swatch b,
.swatch code {
    display: block;
    padding: 0 14px;
}

.swatch b {
    padding-top: 10px;
    font-weight: 500;
    color: var(--charcoal);
}

.swatch code {
    padding-bottom: 12px;
    font-size: 13px;
    color: var(--stone);
}

.type-spec {
    margin-top: 18px;
    border-radius: 18px;
    background: var(--white);
}

.type-spec div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--tint);
}

.type-spec div:last-child {
    border-bottom: 0;
}

.type-spec span {
    color: var(--charcoal);
}

.type-spec code {
    flex: none;
    font-size: 13px;
    color: var(--stone);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0;
    margin-top: 22px;
}

.timeline li {
    position: relative;
    padding: 26px 16px 0 0;
    border-top: 2px solid var(--tint-2);
    font-size: 15px;
}

.timeline li::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sage);
    border: 3px solid var(--ivory);
}

.timeline b {
    display: block;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--charcoal);
}

.timeline span {
    color: var(--stone);
}

@media (max-width: 760px) {
    .duo,
    .feature {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature--flip .feature__media {
        order: 0;
    }

    .screen {
        max-height: 70vh;
    }

    .timeline {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-left: 6px;
    }

    .timeline li {
        padding: 0 0 22px 26px;
        border-top: 0;
        border-left: 2px solid var(--tint-2);
    }

    .timeline li::before {
        top: 2px;
        left: -8px;
    }
}

/* ───────── Research ───────── */
.research-callout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) auto;
    gap: 28px;
    align-items: end;
}

.open-to {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.form-note {
    margin-top: 16px;
    font-size: 14px;
    color: var(--stone);
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 15px;
    cursor: pointer;
}

.check input {
    margin-top: 4px;
    accent-color: var(--charcoal);
}

@media (max-width: 760px) {
    .research-callout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ───────── Research: academic work + journey ───────── */
.span-2 {
    grid-column: span 2;
}

.timeline strong {
    display: block;
    margin: 8px 0 6px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--charcoal);
}

.timeline small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage-deep);
}

.timeline--journey li {
    padding-bottom: 8px;
}

.timeline--journey span {
    display: block;
}

.next--text {
    grid-template-columns: minmax(0, 1fr);
}

.refs {
    display: grid;
    gap: 10px;
    padding-left: 1.2em;
    font-size: 15px;
    color: var(--stone);
}

.refs a {
    color: var(--charcoal);
    word-break: break-word;
}

@media (max-width: 760px) {
    .span-2 {
        grid-column: auto;
    }

    .timeline--journey {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}

/* ───────── Enquiry form: validation + send status ───────── */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.field.is-invalid input {
    box-shadow: 0 0 0 2px #B4533C;
}

.field__error {
    margin-top: 6px;
    font-size: 14px;
    color: #9A3F2B;
}

.form__foot .form__status {
    flex-basis: 100%;
    max-width: none;
}

.form__status:empty {
    display: none;
}

.form__status--error {
    color: #9A3F2B;
}

.form__status--error a {
    color: inherit;
    font-weight: 500;
}

.form__success {
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--sage-soft);
    color: var(--charcoal);
    font-size: 17px;
}

.form__success b {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
}
