/* =====================================================================
   Lu! Abikoye — site styles
   Light, warm editorial theme: cream paper, ink type, brand sun-yellow.
   ===================================================================== */

:root {
    --paper: #f7f3ea;
    --paper-2: #efe8d9;
    --card: #fffdf8;
    --ink: #1c1a16;
    --ink-2: #57524a;
    --ink-3: #8a8378;
    --line: #ddd4c2;
    --sun: #ffc300;
    --sun-soft: #ffe48a;
    --sun-deep: #b98a00;

    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;

    --wrap: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --radius: 20px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ------------------------------------------------------ */

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: italic; }

::selection { background: var(--sun); color: var(--ink); }

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

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

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--ink); color: var(--paper);
    padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Type ------------------------------------------------------ */

.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font: 500 12.5px/1.4 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 20px;
}
.eyebrow__num {
    display: inline-grid; place-items: center;
    min-width: 30px; height: 22px; padding: 0 6px;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
}

.h2 {
    font: 500 clamp(30px, 3.6vw, 46px)/1.12 var(--serif);
    letter-spacing: -.015em;
    font-variation-settings: 'opsz' 96;
    text-wrap: balance;
}
.h3 {
    font: 500 28px/1.2 var(--serif);
    letter-spacing: -.01em;
}
.muted { color: var(--ink-2); }

em { font-family: var(--serif); }
.hero__title em, .page-hero__title em, .h2 em, .footer-cta__title em {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%);
    padding: 0 .06em;
}

/* ---------- Buttons & links ------------------------------------------ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: 600 15px/1 var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #000; box-shadow: 0 10px 24px -12px rgba(28, 26, 22, .6); }

.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { box-shadow: 0 10px 24px -10px rgba(185, 138, 0, .7); }

.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; text-decoration: none;
    border-bottom: 1.5px solid var(--ink);
    padding-bottom: 3px;
}
.link-arrow iconify-icon { transition: transform .25s var(--ease); }
.link-arrow:hover iconify-icon { transform: translateX(4px); }

/* ---------- Header ---------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 243, 234, .86);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 24px -20px rgba(28, 26, 22, .5);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 78px;
}
.brand img { width: 128px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav ul a {
    position: relative;
    display: block; padding: 8px 12px;
    font-size: 15px; font-weight: 500;
    text-decoration: none; color: var(--ink-2);
    border-radius: 999px;
    transition: color .2s, background-color .2s;
}
.site-nav ul a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav ul a[aria-current="page"] { color: var(--ink); }
.site-nav ul a[aria-current="page"]::after {
    content: ""; position: absolute; left: 50%; bottom: 0;
    width: 6px; height: 6px; margin-left: -3px;
    border-radius: 50%; background: var(--sun);
}

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1.5px solid var(--ink); border-radius: 50%;
    background: transparent; cursor: pointer;
    place-items: center;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block; width: 18px; height: 1.5px; background: var(--ink);
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: grid; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 16px;
        padding: 16px var(--gutter) 28px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 32px -24px rgba(28, 26, 22, .35);
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
    }
    .site-nav.is-open {
        opacity: 1; visibility: visible; transform: none;
        transition: opacity .25s, transform .25s var(--ease);
    }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav ul a {
        padding: 14px 4px; border-radius: 0;
        font: 500 24px/1.2 var(--serif); color: var(--ink);
        border-bottom: 1px solid var(--line);
    }
    .site-nav ul a:hover { background: none; }
    .site-nav ul a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; margin: -3px 0 0; }
}

/* ---------- Shapes ---------------------------------------------------- */

/* Arched frame — cut-out portraits sit on a yellow arch */
.arch {
    position: relative;
    border-radius: 999px 999px var(--radius) var(--radius);
    background:
        radial-gradient(120% 70% at 50% 0%, var(--sun-soft), var(--sun) 70%);
    overflow: hidden;
    isolation: isolate;
}
.arch::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: radial-gradient(rgba(28, 26, 22, .14) 1px, transparent 1.4px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%);
    mask-image: linear-gradient(to bottom, transparent, #000 70%);
}
.arch img { width: 100%; margin-top: 12%; }
.arch--tall img { width: 74%; margin: 10% auto 0; }

/* ---------- Hero ------------------------------------------------------ */

.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 110px); }
.hero__grid {
    display: grid;
    grid-template-columns: 1.25fr .9fr;
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}
.hero__title {
    font: 500 clamp(42px, 6.2vw, 82px)/1.02 var(--serif);
    letter-spacing: -.025em;
    font-variation-settings: 'opsz' 144;
    text-wrap: balance;
}
.hero__lede {
    margin-top: 28px; max-width: 34em;
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__media { position: relative; max-width: 460px; justify-self: end; width: 100%; }
.hero__badge {
    position: absolute; left: -28px; bottom: 44px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
    width: 128px; height: 128px; border-radius: 50%;
    background: var(--ink); color: var(--paper);
    box-shadow: 0 18px 40px -18px rgba(28, 26, 22, .7);
    transform: rotate(-8deg);
}
.hero__badge-num { font: 500 40px/1 var(--serif); color: var(--sun); }
.hero__badge-label { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero__tag {
    position: absolute;
    padding: 8px 14px; border-radius: 999px;
    background: var(--card); border: 1px solid var(--line);
    font: 500 12px/1 var(--mono); letter-spacing: .04em;
    box-shadow: 0 10px 24px -16px rgba(28, 26, 22, .5);
    white-space: nowrap;
}
.hero__tag--a { top: 22%; right: -18px; }
.hero__tag--b { top: 46%; left: -36px; }

/* ---------- Stats ----------------------------------------------------- */

.stats { border-block: 1px solid var(--line); background: var(--card); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat {
    display: flex; flex-direction: column; gap: 6px;
    padding: 40px clamp(16px, 3vw, 40px);
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat__num {
    font: 500 clamp(48px, 6vw, 76px)/1 var(--serif);
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.stat__num::first-letter { color: inherit; }
.stat__label { color: var(--ink-2); font-size: 15px; }

/* ---------- Sections -------------------------------------------------- */

.section { padding: clamp(72px, 10vw, 130px) 0; }
.section--tint { background: var(--paper-2); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--row {
    max-width: none;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}

/* What I do */
.split {
    display: grid; grid-template-columns: .85fr 1.15fr;
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
}
.split__head { position: sticky; top: 120px; }
.split__head .muted { margin: 18px 0 32px; font-size: 18px; }

.service-list { border-top: 1px solid var(--ink); counter-reset: svc; }
.service {
    counter-increment: svc;
    display: grid; grid-template-columns: 56px 1fr auto;
    gap: 24px; align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
    transition: padding .35s var(--ease);
}
.service::after {
    content: "0" counter(svc);
    font: 500 13px/1 var(--mono); color: var(--ink-3);
    padding-top: 6px;
}
.service__icon {
    display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%;
    border: 1.5px solid var(--ink);
    transition: background-color .3s, transform .35s var(--ease);
}
.service__title { font: 500 26px/1.2 var(--serif); margin-bottom: 8px; }
.service p { color: var(--ink-2); max-width: 30em; }
.service:hover { padding-left: 10px; }
.service:hover .service__icon { background: var(--sun); border-color: var(--sun); transform: rotate(-10deg); }

/* Who's Lu */
.about-teaser {
    display: grid; grid-template-columns: .8fr 1.2fr;
    gap: clamp(40px, 7vw, 110px); align-items: center;
}
.about-teaser__media { max-width: 400px; }
.about-teaser__copy > p:not(.eyebrow) { margin-top: 24px; color: var(--ink-2); }
.pull {
    margin: 32px 0 36px;
    padding-left: 24px;
    border-left: 3px solid var(--sun);
    font: italic 400 clamp(20px, 2vw, 24px)/1.45 var(--serif);
    color: var(--ink);
}

/* Testimonials */
.quotes {
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: 20px;
}
.quote {
    position: relative;
    display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
    padding: 36px 36px 32px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .35s var(--ease), box-shadow .35s;
}
.quote:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(28, 26, 22, .45); }
.quote blockquote {
    font: 400 20px/1.5 var(--serif);
    text-wrap: pretty;
}
.quote figcaption { font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.quote figcaption strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.quote--feature { grid-row: span 3; background: var(--sun); border-color: var(--sun); }
.quote--feature blockquote { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; }
.quote--feature::before {
    content: "“";
    font: 500 140px/.7 var(--serif);
    color: rgba(28, 26, 22, .18);
    margin-bottom: -10px;
}
.quote--feature figcaption { color: rgba(28, 26, 22, .75); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post { display: flex; flex-direction: column; text-decoration: none; }
.post__img {
    aspect-ratio: 16 / 10; overflow: hidden;
    border-radius: var(--radius);
    background: var(--line);
    margin-bottom: 22px;
}
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__title {
    font: 500 22px/1.3 var(--serif);
    margin-bottom: 10px;
    text-wrap: balance;
}
.post p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.post__more {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600;
}
.post:hover .post__title { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- Inner page hero ------------------------------------------- */

.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(56px, 7vw, 90px); }
.page-hero__title {
    font: 500 clamp(44px, 6.4vw, 88px)/1.02 var(--serif);
    letter-spacing: -.025em;
    font-variation-settings: 'opsz' 144;
    max-width: 14em;
    text-wrap: balance;
}
.page-hero__lede {
    margin-top: 28px; max-width: 38em;
    font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2);
}
.page-hero__kicker { margin-top: 24px; font: 400 22px/1.4 var(--serif); }
.page-hero__grid {
    display: grid; grid-template-columns: 1.3fr .7fr;
    gap: clamp(40px, 7vw, 100px); align-items: end;
}
.page-hero__media { max-width: 340px; justify-self: end; width: 100%; }

/* Timeline */
.timeline { border-top: 1px solid var(--ink); }
.timeline__item {
    display: grid; grid-template-columns: 220px 1fr;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}
.timeline__year {
    font: 400 clamp(48px, 5vw, 64px)/1 var(--serif);
    letter-spacing: -.03em;
    color: var(--ink-3);
    transition: color .3s;
}
.timeline__item:hover .timeline__year { color: var(--ink); }
.timeline__item:first-child .timeline__year { color: var(--ink); }
.timeline__item:first-child .timeline__year::after {
    content: "Latest"; display: inline-block; vertical-align: top;
    margin-left: 10px; padding: 4px 10px; border-radius: 999px;
    background: var(--sun); font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.timeline__body h3 { font: 500 26px/1.25 var(--serif); margin-bottom: 10px; }
.timeline__body p { color: var(--ink-2); max-width: 44em; }

/* Certifications */
.certs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; align-items: center;
}
.cert-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert-logos li {
    display: grid; place-items: center;
    aspect-ratio: 1.3; padding: 24px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.cert-logos img { max-height: 64px; width: auto; }

/* Expertise grid */
.skill-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ink);
    border-left: 1px solid var(--line);
}
.skill {
    position: relative;
    display: flex; flex-direction: column;
    min-height: 300px;
    padding: 32px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color .3s;
}
.skill:hover { background: var(--card); }
.skill__num { font: 500 13px/1 var(--mono); color: var(--ink-3); }
.skill__icon { margin: 40px 0 auto; align-self: flex-start; }
.skill__title { font: 500 24px/1.2 var(--serif); margin: 28px 0 10px; }
.skill p { color: var(--ink-2); font-size: 15.5px; }
.skill--feature { background: var(--sun); }
.skill--feature:hover { background: var(--sun); }
.skill--feature .skill__num, .skill--feature p { color: rgba(28, 26, 22, .75); }

/* Contact */
.contact {
    display: grid; grid-template-columns: .8fr 1.2fr;
    gap: clamp(32px, 5vw, 64px); align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
    display: flex; align-items: center; gap: 18px;
    padding: 20px 22px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none;
    transition: border-color .25s, transform .25s var(--ease);
}
.contact-card:hover { border-color: var(--ink); transform: translateX(4px); }
.contact-card__icon {
    display: grid; place-items: center; flex: none;
    width: 48px; height: 48px; border-radius: 50%; background: var(--sun);
}
.contact-card__label { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.contact-card__value { display: block; font: 500 20px/1.3 var(--serif); }
.contact__portrait { margin-top: 10px; border-radius: var(--radius); overflow: hidden; }

.form-card {
    padding: clamp(28px, 4vw, 48px);
    background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
}
.form-card .muted { margin: 8px 0 28px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 14px 16px;
    font: inherit; font-size: 16px; color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line); border-radius: 12px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    -webkit-appearance: none; appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%231c1a16' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
    padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--ink); background: var(--card);
    box-shadow: 0 0 0 4px rgba(255, 195, 0, .45);
}
.form .btn { margin-top: 8px; }

.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 24px; font-weight: 500; }
.notice--ok { background: #e3f3e1; color: #1d5a22; border: 1px solid #b7dcb2; }
.notice--err { background: #fbe4e0; color: #8a2414; border: 1px solid #efbcb1; }

/* ---------- Footer ---------------------------------------------------- */

.site-footer { background: var(--sun); color: var(--ink); }
.footer-cta {
    padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 7vw, 88px);
    border-bottom: 1px solid rgba(28, 26, 22, .2);
}
.footer-cta .eyebrow { color: rgba(28, 26, 22, .7); }
.footer-cta__title {
    font: 500 clamp(40px, 6vw, 80px)/1.04 var(--serif);
    letter-spacing: -.025em;
    font-variation-settings: 'opsz' 144;
    max-width: 13em; margin-bottom: 36px;
    text-wrap: balance;
}
.site-footer .footer-cta__title em { background: none; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }

.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px; padding: 56px 0;
}
.footer-about img { width: 140px; margin-bottom: 18px; }
.footer-about p { max-width: 26em; font-size: 15px; color: rgba(28, 26, 22, .8); }
.footer-h { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(28, 26, 22, .65); margin-bottom: 16px; }
.footer-links li + li { margin-top: 10px; }
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer-base {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 24px 0 32px;
    border-top: 1px solid rgba(28, 26, 22, .2);
    font-size: 14px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1.5px solid var(--ink);
    transition: background-color .2s, color .2s;
}
.footer-social a:hover { background: var(--ink); color: var(--sun); }

/* ---------- Blog --------------------------------------------------- */

.post-meta {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    font-size: 13.5px; color: var(--ink-3); margin-bottom: 10px;
}
.post-meta a { color: inherit; }
.tag {
    display: inline-block; padding: 3px 9px; border-radius: 999px;
    background: var(--sun); color: var(--ink);
    font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}

.post__img--blank, .post-feature__img--blank {
    display: grid; place-items: center;
    background: radial-gradient(120% 90% at 30% 0%, var(--sun-soft), var(--sun) 75%);
}
.post__img--blank span, .post-feature__img--blank span {
    font: 500 clamp(40px, 5vw, 64px)/1 var(--serif); color: rgba(28, 26, 22, .55); letter-spacing: -.02em;
}

.post-feature {
    display: grid; grid-template-columns: 1.15fr 1fr;
    gap: clamp(24px, 4vw, 56px); align-items: center;
    margin-bottom: clamp(48px, 6vw, 80px);
    text-decoration: none;
}
.post-feature__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--radius) + 6px); background: var(--line); }
.post-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-feature:hover .post-feature__img img { transform: scale(1.04); }
.post-feature__title {
    font: 500 clamp(30px, 3.4vw, 44px)/1.12 var(--serif);
    letter-spacing: -.015em; margin-bottom: 16px; text-wrap: balance;
}
.post-feature .muted { margin-bottom: 24px; }
.post-feature:hover .post-feature__title { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 4px; text-underline-offset: 6px; }

.pager {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line);
}
.pager__status { color: var(--ink-3); font-size: 14px; }

.empty-state {
    padding: 56px 32px; text-align: center;
    background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty-state .muted { margin-top: 8px; }

/* Article */
.article { padding: clamp(40px, 6vw, 80px) 0 0; }
.article__head { max-width: calc(700px + var(--gutter) * 2); }
.article__back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink-2);
    margin-bottom: 28px;
}
.article__back:hover { color: var(--ink); }
.article__title {
    font: 500 clamp(36px, 5.2vw, 64px)/1.06 var(--serif);
    letter-spacing: -.022em; font-variation-settings: 'opsz' 144;
    margin-bottom: 20px; text-wrap: balance;
}
.article__head .post-meta { font-size: 15px; }
.article__hero { margin: clamp(28px, 4vw, 48px) auto 0; max-width: calc(1040px + var(--gutter) * 2); }
.article__hero img { width: 100%; border-radius: calc(var(--radius) + 6px); }
.preview-note {
    margin-bottom: 20px; padding: 10px 14px; border-radius: 10px;
    background: #fff1c2; color: #6b4700; font-weight: 500; font-size: 14px;
}

.prose {
    max-width: calc(700px + var(--gutter) * 2);
    margin: clamp(36px, 5vw, 56px) auto 0;
    padding: 0 var(--gutter);
    font-size: 18.5px; line-height: 1.75;
    overflow-wrap: break-word;
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font: 500 clamp(26px, 2.6vw, 32px)/1.2 var(--serif); letter-spacing: -.01em; margin-top: 1.8em; }
.prose h3 { font: 500 23px/1.3 var(--serif); margin-top: 1.5em; }
.prose h4 { font-size: 18.5px; font-weight: 600; margin-top: 1.4em; }
.prose a { text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: var(--sun-soft); }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose li + li { margin-top: .4em; }
.prose blockquote {
    margin: 1.6em 0; padding-left: 22px; border-left: 3px solid var(--sun);
    font: italic 400 22px/1.5 var(--serif);
}
.prose pre {
    background: var(--ink); color: var(--paper);
    padding: 18px 20px; border-radius: 12px; overflow-x: auto;
    font: 14px/1.6 ui-monospace, Menlo, monospace;
}
.prose code { font: .88em ui-monospace, Menlo, monospace; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: 14px; margin: 0 auto; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose iframe { max-width: 100%; }

.article__author {
    display: flex; gap: 18px; align-items: center;
    max-width: 700px; margin: 64px auto 0; padding: 24px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.article__author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.article__author-name { font: 500 20px/1.3 var(--serif); margin-bottom: 4px; }
.article__author .muted { font-size: 15px; }
@media (max-width: 760px) { .article__author { margin-left: var(--gutter); margin-right: var(--gutter); } }

.article__nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    max-width: calc(700px + var(--gutter) * 2); margin: 32px auto 0; padding: 0 var(--gutter);
}
.article__nav a {
    display: flex; flex-direction: column; gap: 4px;
    padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; transition: border-color .2s;
}
.article__nav a:hover { border-color: var(--ink); }
.article__nav .eyebrow { margin: 0; }
.article__nav-next { text-align: right; align-items: flex-end; grid-column: 2; }
.article__nav-title { font: 500 18px/1.3 var(--serif); }

/* Comments */
.discussion { margin-top: clamp(64px, 8vw, 100px); padding: clamp(56px, 7vw, 88px) 0 clamp(72px, 9vw, 110px); background: var(--paper-2); }
.discussion__inner { max-width: calc(700px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.discussion__empty { margin-top: 12px; }

.comments { margin-top: 28px; }
.comment { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.comments > .comment + .comment { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.comment__avatar {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--card); border: 1px solid var(--line);
    font: 600 14px/1 var(--sans); color: var(--ink-2);
}
.comment__avatar--author { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment__head time { font-size: 13px; color: var(--ink-3); }
.comment__body { overflow-wrap: anywhere; }
.comment__reply {
    margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer;
    font: 600 13.5px/1 var(--sans); color: var(--ink-2);
    text-decoration: underline; text-underline-offset: 3px;
}
.comment__reply:hover { color: var(--ink); }
.comments--replies { grid-column: 2; margin-top: 20px; padding-left: 18px; border-left: 2px solid var(--line); }
.comments--replies .comment + .comment { margin-top: 20px; }

.comment-form { margin-top: 48px; }
.comment-form__title { margin-bottom: 20px; }
.comment-form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.replying { margin-bottom: 16px; font-size: 14.5px; color: var(--ink-2); }
.replying__cancel { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; color: var(--ink); }
.field__hint { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.field__err { font-size: 13.5px; color: #8a2414; font-weight: 500; }
.field [aria-invalid="true"] { border-color: #c0412a; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
    .post-feature { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .article__nav { grid-template-columns: 1fr; }
    .article__nav-next { grid-column: auto; }
    .comment { grid-template-columns: 36px 1fr; gap: 12px; }
    .comment__avatar { width: 36px; height: 36px; font-size: 12px; }
    .comments--replies { grid-column: 1 / -1; padding-left: 14px; }
    .prose { font-size: 17px; }
}

/* ---------- Reveal on scroll ------------------------------------------ */

.js .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Responsive ------------------------------------------------ */

@media (max-width: 1024px) {
    .skill-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .hero__grid, .split, .about-teaser, .page-hero__grid, .certs, .contact { grid-template-columns: 1fr; }
    .hero__media { justify-self: center; max-width: 380px; margin-top: 8px; }
    .hero__tag--b { left: -8px; }
    .hero__tag--a { right: -4px; }
    .hero__badge { left: -8px; width: 108px; height: 108px; }
    .hero__badge-num { font-size: 34px; }
    .split__head { position: static; }
    .about-teaser__media, .page-hero__media { max-width: 300px; justify-self: center; margin: 0 auto; }
    .posts { grid-template-columns: 1fr; gap: 40px; }
    .timeline__item { grid-template-columns: 1fr; gap: 12px; }
    .contact__portrait { display: none; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .stats__grid { grid-template-columns: 1fr; }
    .stat { padding: 26px 0; flex-direction: row; align-items: baseline; gap: 18px; }
    .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
    .stat__num { min-width: 3.2em; }
    .service { grid-template-columns: 48px 1fr; gap: 18px; }
    .service::after { display: none; }
    .service__icon { width: 48px; height: 48px; }
    .quotes { grid-template-columns: 1fr; }
    .quote--feature { grid-row: auto; }
    .quote { padding: 28px 24px; }
    .skill-grid { grid-template-columns: 1fr; }
    .skill { min-height: 0; }
    .skill__icon { margin: 24px 0 0; }
    .form { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero__actions .btn { flex: 1 1 auto; }
}

.post .post-meta { color: var(--ink-3); font-size: 13.5px; margin-bottom: 10px; }
