/* ===================================================================
 * Executive layer for the Luther template (V1)
 * Loaded after styles.css. Keeps Luther's dark palette, DM Serif Display
 * and Public Sans; adds calmer rhythm, stronger hierarchy and new sections.
 * ------------------------------------------------------------------- */

:root {
    --x-ink: #f3efe8;
    --x-text: #c3c3c4;
    --x-muted: #8f8f90;
    --x-line: rgba(255, 255, 255, .09);
    --x-surface: #1b1c1e;
    --x-surface-2: #222326;
    --x-accent: var(--color-1);
    --x-radius: 14px;
    --x-gap: clamp(2.4rem, 4vw, 4.8rem);
    --x-section: clamp(8rem, 12vw, 14rem);
}

body { color: var(--x-text); }
::selection { background: var(--x-accent); color: #141516; }

.x-skip {
    position: absolute; left: 1.6rem; top: -10rem; z-index: 1000;
    padding: 1rem 1.6rem; background: var(--x-accent); color: #141516; border-radius: 8px;
}
.x-skip:focus { top: 1.6rem; }

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--x-accent); outline-offset: 3px;
}

.x-link { color: var(--x-accent); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.x-link:hover, .x-link:focus { color: var(--x-accent); border-bottom-color: currentColor; }

.x-lock { vertical-align: -2px; }
.x-badge {
    display: inline-flex; align-items: center; gap: .6rem; margin-left: 1.6rem;
    font-size: 1.3rem; letter-spacing: .04em; color: var(--x-muted);
}

/* header CV link */
.main-nav .x-nav-cv a { color: var(--x-accent); }
@media screen and (min-width: 801px) {
    .main-nav .x-nav-cv { margin-left: auto; }
    .main-nav ul { display: flex; align-items: center; width: 100%; }
}

/* ---------------------------------------------------------------- hero */
.x-hero .intro-content { min-height: auto; padding-top: calc(14vh + var(--header-height)); padding-bottom: 8rem; }
.x-hero .text-pretitle { text-transform: none; letter-spacing: .08em; font-size: 1.5rem; }
.x-hero .text-pretitle.with-line { text-transform: uppercase; letter-spacing: .22em; font-size: 1.3rem; }
.x-hero__title,
.intro-content .x-hero__title {
    width: auto; height: auto; max-width: 18ch;
    font-family: var(--font-2); font-weight: 400;
    font-size: clamp(4rem, 6.2vw, 8.4rem); line-height: 1.04; letter-spacing: -.01em;
    color: var(--x-ink); margin: 2.4rem 0 3.2rem; padding-right: 0;
}
.x-hero__support { max-width: 62ch; font-size: clamp(1.7rem, 1.4vw, 2rem); line-height: 1.65; color: var(--x-text); margin-bottom: 4rem; }
.x-hero__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 3.2rem; }
.x-hero__actions .btn { margin: 0; }
.x-now { display: inline-flex; align-items: center; gap: 1rem; font-size: 1.4rem; color: var(--x-muted); margin: 0; }
.x-dot { width: 8px; height: 8px; border-radius: 50%; background: #6fcf97; box-shadow: 0 0 0 4px rgba(111, 207, 151, .15); }
.js .x-hero .text-pretitle, .js .x-hero__title, .js .x-hero-anim { opacity: 0; }

/* ---------------------------------------------------------------- lead */
.x-glance { padding: 0 0 var(--x-section); }

/* ---------------------------------------------------------------- about */
.x-about { padding-top: 0; }
.x-about .row + .row { margin-top: var(--x-section); }
.x-about__top { align-items: center; }
.x-about__photo img { width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--x-radius); filter: grayscale(.15); }
.x-about__text p { font-size: 1.8rem; line-height: 1.7; max-width: 64ch; }
.x-about__text .x-lead { font-family: var(--font-2); font-size: clamp(2.4rem, 2.2vw, 3rem); line-height: 1.35; color: var(--x-ink); }
.x-sub { font-family: var(--font-1); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .22em; color: var(--x-muted); margin: 3.2rem 0 1.2rem; font-weight: 500; }
.x-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.x-chips li { margin: 0; padding: .6rem 1.4rem; border: 1px solid var(--x-line); border-radius: 999px; font-size: 1.4rem; color: var(--x-ink); }
@media screen and (max-width: 800px) {
    .x-about__photo { margin-bottom: 3.2rem; }
    .x-about__photo img { max-width: 260px; }
}

.x-principles { list-style: none; counter-reset: p; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.x-principles li { counter-increment: p; margin: 0; padding: 2.8rem 2.4rem; background: var(--x-surface); border: 1px solid var(--x-line); border-radius: var(--x-radius); }
.x-principles li::before { content: "0" counter(p); display: block; font-size: 1.3rem; letter-spacing: .2em; color: var(--x-accent); margin-bottom: 2rem; }
.x-principles h3 { font-family: var(--font-2); font-weight: 400; font-size: 2.4rem; line-height: 1.2; color: var(--x-ink); margin: 0 0 1.2rem; }
.x-principles p { font-size: 1.55rem; line-height: 1.6; margin: 0; }
@media screen and (max-width: 1100px) { .x-principles { grid-template-columns: repeat(2, 1fr); } }
@media screen and (max-width: 600px) { .x-principles { grid-template-columns: 1fr; } }

.x-org { border-top: 1px solid var(--x-line); padding: 3.2rem 0 1.6rem; display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: var(--x-gap); }
.x-org__head h3 { font-family: var(--font-2); font-weight: 400; font-size: 2.8rem; color: var(--x-ink); margin: 0 0 .4rem; line-height: 1.2; }
.x-org__head p { font-size: 1.4rem; color: var(--x-muted); margin: 0; }
.x-roles { list-style: none; margin: 0; padding: 0; }
.x-roles li { display: grid; grid-template-columns: 17rem 1fr; gap: 2.4rem; margin: 0 0 2.8rem; }
.x-role__period { font-size: 1.4rem; color: var(--x-muted); margin: .3rem 0 0; white-space: nowrap; }
.x-roles h4 { font-family: var(--font-1); font-size: 1.8rem; font-weight: 600; color: var(--x-ink); margin: 0 0 .6rem; line-height: 1.4; }
.x-roles p { font-size: 1.6rem; line-height: 1.6; margin: 0; }
@media screen and (max-width: 900px) {
    .x-org { grid-template-columns: 1fr; gap: 2rem; }
    .x-roles li { grid-template-columns: 1fr; gap: .4rem; }
}

.x-edu, .x-rec { list-style: none; margin: 2.4rem 0 0; padding: 0; }
.x-edu li { margin: 0; padding: 1.8rem 0; border-top: 1px solid var(--x-line); }
.x-edu h4 { font-family: var(--font-1); font-size: 1.7rem; font-weight: 600; color: var(--x-ink); margin: 0 0 .4rem; line-height: 1.4; }
.x-edu p { font-size: 1.5rem; color: var(--x-muted); margin: 0; }
.x-rec li { margin: 0; padding: 1.8rem 0; border-top: 1px solid var(--x-line); font-size: 1.6rem; line-height: 1.55; }
@media screen and (max-width: 800px) { .x-block .column + .column { margin-top: 4.8rem; } }

/* ---------------------------------------------------------------- works */
.x-works { padding-top: var(--x-section); }
.x-section-title { font-family: var(--font-2); font-size: clamp(2.8rem, 3vw, 4rem); line-height: 1.25; color: var(--x-ink); max-width: 28ch; margin: 1.6rem 0 6.4rem; }
.x-card { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--x-gap); align-items: center; padding: 0 0 8rem; }
.x-card--flip .x-card__media { order: 2; }
.x-card__media { display: block; overflow: hidden; border-radius: var(--x-radius); background: var(--x-surface); aspect-ratio: 16 / 10; }
.x-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.x-card:hover .x-card__media img { transform: scale(1.03); }
.x-card__media--contain { background: #F3F1EC; }
.x-card__media--contain img { object-fit: contain; padding: 4%; }
.x-card__kicker { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .22em; color: var(--x-accent); margin: 0 0 1.2rem; }
.x-card__title { font-family: var(--font-2); font-weight: 400; font-size: clamp(3.2rem, 3.4vw, 4.8rem); line-height: 1.1; margin: 0 0 1.6rem; }
.x-card__title a { color: var(--x-ink); }
.x-card__title a:hover { color: var(--x-accent); }
.x-card__text { font-size: 1.8rem; line-height: 1.6; margin: 0 0 2rem; }
.x-card__signal { font-size: 1.5rem; color: var(--x-ink); margin: 0 0 .6rem; padding-left: 1.4rem; border-left: 2px solid var(--x-accent); }
.x-card__meta { font-size: 1.4rem; color: var(--x-muted); margin: 0 0 2.4rem; padding-left: 1.6rem; }
.x-card__foot { margin: 0; display: flex; align-items: center; flex-wrap: wrap; }
@media screen and (max-width: 900px) {
    .x-card { grid-template-columns: 1fr; gap: 2.4rem; padding-bottom: 6.4rem; }
    .x-card--flip .x-card__media { order: 0; }
}

.x-early { padding: 4rem 0 var(--x-section); }
.x-early__intro { max-width: 64ch; font-size: 1.7rem; line-height: 1.65; }
.x-early__grid { list-style: none; margin: 3.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.x-early__grid li { margin: 0; }
.x-early__grid a { display: block; color: var(--x-ink); }
.x-early__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: var(--x-surface); margin-bottom: 1.2rem; }
.x-early__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); transition: filter .4s, transform .6s; }
.x-early__grid a:hover img { filter: none; transform: scale(1.04); }
.x-early__cat { display: block; font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; color: var(--x-muted); margin-bottom: .4rem; }
.x-early__title { display: block; font-size: 1.7rem; font-weight: 500; }
@media screen and (max-width: 900px) { .x-early__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------- contact */
.x-contact__title { font-family: var(--font-2); color: var(--x-ink); }
.x-contact__text { max-width: 56ch; font-size: 1.9rem; line-height: 1.6; }
.x-contact .contact-links a, .x-contact .contact-social a { color: var(--x-ink); border-bottom: 1px solid var(--x-line); transition: color .2s, border-color .2s; }
.x-contact .contact-links a:hover, .x-contact .contact-social a:hover { color: var(--x-accent); border-color: var(--x-accent); }

/* ---------------------------------------------------------------- case pages */
.x-case-hero { padding-top: calc(var(--header-height) + 10vh); }
.x-back { margin: 0 0 4rem; font-size: 1.4rem; }
.x-back a { color: var(--x-muted); }
.x-back a:hover { color: var(--x-accent); }
.x-case-hero .text-pretitle.with-line { letter-spacing: .2em; font-size: 1.3rem; }
.x-case-title { font-family: var(--font-2); font-weight: 400; font-size: clamp(4.4rem, 7vw, 9.6rem); line-height: 1; color: var(--x-ink); margin: 2rem 0 2.4rem; }
.x-case-sub { font-size: clamp(1.9rem, 1.7vw, 2.4rem); line-height: 1.5; max-width: 52ch; color: var(--x-text); margin-bottom: 4.8rem; }
.x-brief { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 6.4rem; border-top: 1px solid var(--x-line); }
.x-brief div { padding: 2rem 2rem 0 0; }
.x-brief dt { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .2em; color: var(--x-muted); margin: 0 0 .8rem; }
.x-brief dd { font-size: 1.6rem; line-height: 1.5; color: var(--x-ink); margin: 0; }
@media screen and (max-width: 900px) { .x-brief { grid-template-columns: repeat(2, 1fr); } .x-brief div { padding-bottom: 1.6rem; } }
.x-case-cover { margin: 0; border-radius: var(--x-radius); overflow: hidden; background: var(--x-surface); }
.x-case-cover img { width: 100%; max-height: 72vh; object-fit: cover; display: block; }

.x-summary { padding: 8rem 0 4rem; }
.x-summary__text { font-family: var(--font-2); font-size: clamp(2.4rem, 2.4vw, 3.4rem); line-height: 1.4; color: var(--x-ink); max-width: 40ch; margin: 1.6rem 0 0; }

.x-gate { padding: 2.4rem 0 8rem; }
.x-gate__card { max-width: 640px; padding: 4rem; background: var(--x-surface); border: 1px solid var(--x-line); border-radius: var(--x-radius); }
.x-gate__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(232, 184, 106, .12); color: var(--x-accent); margin-bottom: 2rem; }
.x-gate__icon svg { width: 20px; height: 20px; }
.x-gate h2 { font-family: var(--font-2); font-weight: 400; font-size: 2.8rem; color: var(--x-ink); margin: 0 0 1.2rem; }
.x-gate p { font-size: 1.6rem; line-height: 1.6; }
.x-gate__form { margin: 2.4rem 0 0; }
.x-gate__form label { display: block; font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; color: var(--x-muted); margin-bottom: .8rem; }
.x-gate__row { display: flex; gap: 1.2rem; }
.x-gate__row input { flex: 1; margin: 0; height: var(--vspace-btn); }
.x-gate__row .btn { margin: 0; }
.x-gate__msg { min-height: 2.4rem; margin: 1.2rem 0 0; font-size: 1.5rem; color: var(--x-muted); }
.x-gate__msg.is-error { color: #ff9f9a; }
.x-gate__ask { margin: .8rem 0 0; }
@media screen and (max-width: 600px) { .x-gate__card { padding: 2.8rem; } .x-gate__row { flex-direction: column; } }

.x-case-body { padding: 4rem 0 4rem; }
.is-unlocked .x-case-body { animation: x-fade .6s ease both; }
@keyframes x-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.x-toc ol { list-style: none; margin: 0 0 4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .8rem; }
.x-toc li { margin: 0; }
.x-toc a { display: inline-block; padding: .6rem 1.4rem; border: 1px solid var(--x-line); border-radius: 999px; font-size: 1.4rem; color: var(--x-text); }
.x-toc a:hover { color: #141516; background: var(--x-accent); border-color: var(--x-accent); }

.x-video { border-radius: var(--x-radius); margin: 2rem 0 4rem; }

.x-next { padding: 6rem 0 10rem; border-top: 1px solid var(--x-line); margin-top: 4rem; }
.x-next__link { font-family: var(--font-2); font-size: clamp(3.2rem, 4vw, 5.6rem); color: var(--x-ink); line-height: 1.1; }
.x-next__link:hover { color: var(--x-accent); }
.x-next p:last-child { margin-top: 2.4rem; font-size: 1.5rem; }

/* ---------------------------------------------------------------- case blocks */
.cs-section { padding: 6.4rem 0 2.4rem; scroll-margin-top: calc(var(--header-height) + 2rem); }
.cs-section + .cs-section { border-top: 1px solid var(--x-line); }
.cs-h2 { font-family: var(--font-2); font-weight: 400; font-size: clamp(3rem, 3vw, 4.2rem); line-height: 1.15; color: var(--x-ink); margin: 0 0 2.8rem; }
.cs-num { display: block; font-family: var(--font-1); font-size: 1.3rem; letter-spacing: .22em; color: var(--x-accent); margin-bottom: 1.4rem; }
.cs-section > p, .cs-prose p { font-size: 1.85rem; line-height: 1.75; max-width: 68ch; }
.cs-section strong { color: var(--x-ink); font-weight: 600; }
.cs-list, .cs-olist { margin: 0 0 3.2rem; padding-left: 2.2rem; }
.cs-list li, .cs-olist li { font-size: 1.75rem; line-height: 1.65; margin-bottom: 1rem; padding-left: .4rem; }
.cs-list li::marker { color: var(--x-accent); }
.cs-olist li::marker { color: var(--x-accent); font-weight: 600; }

.cs-figure { margin: 3.2rem 0; }
.cs-figure img { width: 100%; border-radius: 10px; display: block; background: #fff; }
.cs-figure figcaption { font-size: 1.4rem; color: var(--x-muted); margin-top: 1.2rem; line-height: 1.5; }
.cs-zoom { display: block; cursor: zoom-in; }
.cs-figures { display: grid; gap: 2rem; margin: 3.2rem 0; }
.cs-figures .cs-figure { margin: 0; }
.cs-figures--2 { grid-template-columns: repeat(2, 1fr); }
.cs-figures--3 { grid-template-columns: repeat(3, 1fr); }
@media screen and (max-width: 700px) { .cs-figures--2, .cs-figures--3 { grid-template-columns: 1fr; } }

.cs-quote { margin: 4rem 0; padding: 0 0 0 3.2rem; border-left: 2px solid var(--x-accent); }
.cs-quote p { font-family: var(--font-2); font-size: clamp(2.4rem, 2.4vw, 3.2rem); line-height: 1.35; color: var(--x-ink); margin: 0 0 1.2rem; }
.cs-quote cite { font-style: normal; font-size: 1.4rem; color: var(--x-muted); }
.cs-quote cite::before { content: "— "; }
.cs-callout { font-family: var(--font-2); font-size: clamp(2.6rem, 2.8vw, 3.6rem); line-height: 1.3; color: var(--x-accent); max-width: 26ch; margin: 4rem 0; }
.cs-note { font-size: 1.5rem !important; color: var(--x-muted); padding: 1.6rem 2rem; border: 1px dashed var(--x-line); border-radius: 10px; }

.cs-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.6rem; margin: 2.4rem 0 3.2rem; }
.cs-kpi { padding: 2.4rem; background: var(--x-surface); border: 1px solid var(--x-line); border-radius: var(--x-radius); }
.cs-kpi strong { display: block; font-family: var(--font-2); font-weight: 400; font-size: 4.4rem; line-height: 1; color: var(--x-accent); margin-bottom: 1rem; }
.cs-kpi span { font-size: 1.5rem; line-height: 1.5; }

.cs-cards { list-style: none; margin: 2.4rem 0 3.2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; counter-reset: c; }
.cs-card { margin: 0; padding: 2.4rem; background: var(--x-surface); border: 1px solid var(--x-line); border-radius: var(--x-radius); counter-increment: c; }
.cs-cards--even { grid-template-columns: repeat(2, 1fr); }
@media screen and (max-width: 600px) { .cs-cards--even { grid-template-columns: 1fr; } }
.cs-cards--num .cs-card::before { content: counter(c, decimal-leading-zero); display: block; font-size: 1.2rem; letter-spacing: .2em; color: var(--x-accent); margin-bottom: 1.2rem; }
.cs-card h4 { font-family: var(--font-1); font-size: 1.8rem; font-weight: 600; color: var(--x-ink); margin: 0 0 .8rem; line-height: 1.35; }
.cs-card p { font-size: 1.55rem; line-height: 1.6; margin: 0; }

/* ---------------------------------------------------------------- diagrams */
.dg { margin: 3.6rem 0; font-size: 1.5rem; line-height: 1.5; }
.dg-kicker { display: block; font-size: 1.15rem; letter-spacing: .16em; text-transform: uppercase; color: var(--x-muted); margin-bottom: .6rem; }
.dg-head { font-family: var(--font-2); font-size: 2.6rem; color: var(--x-ink); margin-bottom: 1.6rem; }
.dg-col { padding: 2.8rem; background: var(--x-surface); border: 1px solid var(--x-line); border-radius: var(--x-radius); }
.dg-accent { border-color: rgba(232, 184, 106, .45); background: linear-gradient(180deg, rgba(232, 184, 106, .08), rgba(232, 184, 106, .02)); }
.dg-arrow { display: grid; place-items: center; font-size: 2.8rem; color: var(--x-accent); }

.dg-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; }
.dg-compare dl { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem 1.6rem; margin: 0; }
.dg-compare dt { font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; color: var(--x-muted); padding-top: .2rem; }
.dg-compare dd { margin: 0; color: var(--x-ink); }

.dg-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1.6rem; align-items: stretch; }
.dg-step { display: flex; flex-direction: column; gap: .6rem; padding: 2.4rem; background: var(--x-surface); border: 1px solid var(--x-line); border-radius: var(--x-radius); }
.dg-step strong { font-size: 1.8rem; color: var(--x-ink); }
.dg-step > span:last-child { color: var(--x-text); font-size: 1.45rem; }
.dg-loop { grid-column: 1 / -1; padding: 1.8rem 2.4rem; border: 1px dashed rgba(232, 184, 106, .55); border-radius: var(--x-radius); color: var(--x-text); }
.dg-loop strong { color: var(--x-accent); }

.dg-split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.6rem; align-items: stretch; }
.dg-split ul { margin: 1.6rem 0 0; padding-left: 2rem; }
.dg-split li { margin-bottom: .6rem; }
.dg-q { font-style: italic; color: var(--x-ink); margin: 0; }
.dg-handoff { display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; max-width: 16rem; font-size: 1.3rem; color: var(--x-accent); text-align: center; }
.dg-foot { grid-column: 1 / -1; text-align: center; font-family: var(--font-2); font-size: 2.2rem; color: var(--x-ink); margin: 1.6rem 0 0; }

.dg-journey { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: j; }
.dg-journey li { position: relative; margin: 0; padding: 2.4rem 2rem; background: var(--x-surface); border: 1px solid var(--x-line); border-radius: var(--x-radius); display: flex; flex-direction: column; gap: .6rem; }
.dg-journey strong { font-size: 1.8rem; color: var(--x-ink); }
.dg-journey em { margin-top: auto; padding-top: 1.2rem; font-style: normal; font-size: 1.2rem; letter-spacing: .14em; text-transform: uppercase; color: var(--x-accent); }
.dg-journey li:not(:last-child)::after { content: "→"; position: absolute; right: -1.2rem; top: 50%; transform: translate(50%, -50%); color: var(--x-accent); z-index: 1; }


@media screen and (max-width: 900px) {
    .dg-compare, .dg-flow, .dg-split { grid-template-columns: 1fr; }
    .dg-arrow { transform: rotate(90deg); }
    .dg-handoff { max-width: none; flex-direction: row; justify-content: space-between; }
    .dg-journey { grid-template-columns: 1fr 1fr; }
    .dg-journey li::after { display: none; }
}
@media screen and (max-width: 560px) { .dg-journey { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-animate-el], .js .x-hero .text-pretitle, .js .x-hero__title, .js .x-hero-anim { opacity: 1 !important; transform: none !important; }
}

/* how I lead (promoted below hero) */
.x-lead-sec__title { font-family: var(--font-2); font-size: clamp(3rem, 3.2vw, 4.4rem); line-height: 1.2; color: var(--x-ink); margin: 1.2rem 0 0; max-width: 22ch; }

/* Case screens with question-led captions */
.cs-shot { margin: 4rem 0 4.8rem; }
.cs-shot__q { font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; opacity: .7; font-weight: 600; margin: 0 0 1.4rem; }
.cs-shot img { box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); }
.cs-shot__points { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.cs-shot__points li { font-size: 1.5rem; line-height: 1.55; opacity: .75; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.2rem; list-style: none; }
.cs-shot__points strong { display: block; opacity: 1; margin-bottom: .4rem; }
@media (max-width: 760px) { .cs-shot__points { grid-template-columns: 1fr; gap: 1.2rem; } }

/* Lightbox */
.cs-zoom { display: block; padding: 0; margin: 0; border: 0; background: none; width: 100%; height: auto; min-height: 0; text-transform: none; letter-spacing: normal; cursor: zoom-in; font: inherit; color: inherit; }
.cs-lightbox { width: min(96vw, 1800px); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.cs-lightbox::backdrop { background: rgba(10, 10, 14, .88); }
.cs-lightbox img { display: block; width: 100%; height: auto; max-height: 94vh; object-fit: contain; border-radius: 8px; background: #fff; cursor: zoom-out; }
.cs-lightbox__close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }
.cs-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html.cs-lightbox-open { overflow: hidden; }

/* Writing */
.x-blog__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4.8rem; }
.x-blog__list a { display: grid; gap: .8rem; text-decoration: none; border-top: 1px solid rgba(255,255,255,.12); padding-top: 2.4rem; }
.x-blog__list .x-case-sub { margin: 0; }
.cs-prose h2 { font-size: 2.6rem; line-height: 1.3; margin: 4rem 0 1.2rem; }

/* ---------------------------------------------------------------- v3: wide media + native slides */
/* Text stays in a 920px reading column; key screens and galleries use the full content width (same as the hero). */
.cs-section > * { max-width: 920px; }
.cs-section > .cs-figure--wide, .cs-section > .cs-shot, .cs-section > .cs-gallery { max-width: none; }
.cs-figure--wide, .cs-section > .cs-shot { margin: 4.8rem 0; }
.cs-figure--wide img, .cs-shot img { border-radius: 12px; }
.cs-shot .cs-shot__points { max-width: 920px; }

.cs-gallery { margin: 4.8rem 0; }
.cs-gallery__bar { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.6rem; }
.cs-gallery__label { flex: 1; font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--x-ink); opacity: .7; }
.cs-gallery__count { font-size: 1.4rem; color: var(--x-muted); font-variant-numeric: tabular-nums; }
.cs-gallery__btn { width: 4.4rem; height: 4.4rem; min-height: 0; margin: 0; padding: 0; line-height: 1; letter-spacing: normal; text-transform: none; display: grid; place-items: center;
    border: 1px solid var(--x-line); border-radius: 50%; background: var(--x-surface); color: var(--x-ink); font: inherit; font-size: 1.8rem; cursor: pointer; transition: border-color .2s, color .2s; }
.cs-gallery__btn:hover:not(:disabled), .cs-gallery__btn:focus-visible { border-color: var(--x-accent); color: var(--x-accent); }
.cs-gallery__btn:disabled { opacity: .35; cursor: default; }
.cs-gallery__track { list-style: none; margin: 0; padding: 0 0 1.2rem; display: grid; grid-auto-flow: column; grid-auto-columns: 88%; column-gap: 2rem;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--x-line) transparent; }
.cs-gallery__track:focus-visible { outline: 2px solid var(--x-accent); outline-offset: 4px; border-radius: 12px; }
.cs-gallery__item { margin: 0; padding: 0; list-style: none; scroll-snap-align: start; }
.cs-gallery__item .cs-figure { margin: 0; }
.cs-gallery__item img { border-radius: 12px; }

.cs-bars { display: grid; grid-template-columns: minmax(200px, 1fr) 2.4fr; gap: 1.6rem; margin: 3.2rem 0; }
.cs-bars__stat, .cs-bars__chart { padding: 2.8rem; background: var(--x-surface); border: 1px solid var(--x-line); border-radius: var(--x-radius); }
.cs-bars__stat strong { display: block; font-family: var(--font-2); font-weight: 400; font-size: 5.6rem; line-height: 1; color: var(--x-accent); margin-bottom: 1.2rem; }
.cs-bars__stat span { font-size: 1.55rem; line-height: 1.55; }
.cs-bars__title { font-size: 1.8rem; font-weight: 600; color: var(--x-ink); margin: 0 0 .8rem; line-height: 1.4; }
.cs-bars__legend { display: flex; gap: 2rem; font-size: 1.3rem; color: var(--x-muted); margin: 0 0 2rem; }
.cs-bars__legend span::before { content: ""; display: inline-block; width: 1rem; height: 1rem; border-radius: 2px; margin-right: .6rem; vertical-align: -1px; }
.cs-bars__legend .is-a::before, .cs-bars__a { background: rgba(255,255,255,.28); }
.cs-bars__legend .is-b::before, .cs-bars__b { background: var(--x-accent); }
.cs-bars ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.cs-bars li { display: grid; grid-template-columns: 17rem 1fr 9rem; align-items: center; gap: 1.6rem; margin: 0; font-size: 1.45rem; }
.cs-bars__label { color: var(--x-ink); }
.cs-bars__track { display: grid; gap: 4px; }
.cs-bars__a, .cs-bars__b { display: block; height: 6px; border-radius: 99px; }
.cs-bars__val { text-align: right; color: var(--x-ink); font-variant-numeric: tabular-nums; }
.cs-bars__val em { font-style: normal; color: var(--x-muted); margin-right: .6rem; }
.cs-bars figcaption { grid-column: 1 / -1; text-align: left; font-size: 1.3rem; color: var(--x-muted); }

.cs-card__list { margin: 1.2rem 0 0; padding-left: 1.8rem; }
.cs-card__list li { font-size: 1.5rem; line-height: 1.55; margin-bottom: .6rem; }
.cs-card__list li::marker { color: var(--x-accent); }
.cs-jobs { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cs-job p { font-size: 1.6rem; line-height: 1.55; color: var(--x-ink); }
.cs-tag { display: inline-block; font-size: 1.15rem; letter-spacing: .14em; text-transform: uppercase; color: var(--x-accent); margin-bottom: 1.2rem; }

.cs-checks { margin: 3.2rem 0; }
.cs-checks__title { font-size: 1.3rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--x-ink); opacity: .7; margin: 0 0 1.4rem; }
.cs-checks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.cs-checks li { display: flex; gap: 1.2rem; align-items: flex-start; margin: 0; padding: 1.8rem 2rem; background: var(--x-surface); border: 1px solid var(--x-line); border-radius: var(--x-radius); font-size: 1.55rem; line-height: 1.5; color: var(--x-ink); }
.cs-checks__icon { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: rgba(232, 184, 106, .16); color: var(--x-accent); font-size: 1.3rem; }

.cs-venn { margin: 3.2rem 0; padding: 3.2rem; background: var(--x-surface); border: 1px solid var(--x-line); border-radius: var(--x-radius); text-align: center; }
.cs-venn svg { width: 100%; max-width: 640px; height: auto; overflow: visible; }
.cs-venn circle { fill: rgba(255,255,255,.03); stroke: rgba(255,255,255,.35); stroke-width: 1.2; }
.cs-venn__core { fill: var(--x-accent); }
.cs-venn text { fill: var(--x-ink); font-size: 15px; text-anchor: middle; font-family: var(--font-1); }
.cs-venn text.is-end { text-anchor: end; }
.cs-venn text.is-start { text-anchor: start; }
.cs-venn__legend { display: none; }
@media (max-width: 700px) {
    .cs-venn text { display: none; }
    .cs-venn__legend { display: grid; gap: .6rem; list-style: none; margin: 1.6rem 0 0; padding: 0; font-size: 1.4rem; color: var(--x-ink); }
    .cs-venn__legend li { margin: 0; }
    .cs-venn__legend li:first-child::before { content: "Top: "; color: var(--x-muted); }
    .cs-venn__legend li:nth-child(2)::before { content: "Left: "; color: var(--x-muted); }
    .cs-venn__legend li:nth-child(3)::before { content: "Right: "; color: var(--x-muted); }
}
.cs-venn figcaption { font-size: 1.4rem; color: var(--x-muted); margin-top: 1.6rem; }

@media screen and (max-width: 760px) {
    .cs-bars { grid-template-columns: 1fr; }
    .cs-bars li { grid-template-columns: 1fr auto; gap: .6rem 1.2rem; }
    .cs-bars__track { grid-column: 1 / -1; grid-row: 2; }
    .cs-gallery__track { grid-auto-columns: 92%; column-gap: 1.2rem; }
}

/* v3: deck-style chapters + annotated screens */
.cs-lede { font-size: clamp(2.2rem, 2.2vw, 2.8rem); line-height: 1.35; font-weight: 500; color: var(--x-ink); max-width: 32ch; margin: 0 0 2.8rem; letter-spacing: -.005em; }
.cs-sub { font-family: var(--font-1); font-size: 1.3rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--x-accent); margin: 4.8rem 0 1.6rem; }
.cs-sub:first-child { margin-top: 0; }
.cs-pins { position: relative; }
.cs-pin { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: var(--x-accent); color: #141518; font-size: 1.5rem; font-weight: 700; line-height: 1; pointer-events: none;
  box-shadow: 0 0 0 5px rgba(232, 184, 106, .28), 0 6px 16px rgba(0,0,0,.45); }
.cs-shot__points { counter-reset: pin; }
.cs-shot__points li { counter-increment: pin; }
.cs-shot__points li::before { content: counter(pin); display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .8rem;
  border-radius: 50%; background: var(--x-accent); color: #141518; font-size: 1.25rem; font-weight: 700; }
.cs-section > .cs-shot--narrow { max-width: 1000px; }
.cs-checks ul:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) {
  .cs-pin { width: 2.2rem; height: 2.2rem; font-size: 1.1rem; box-shadow: 0 0 0 3px rgba(232, 184, 106, .28); }
  .cs-checks ul:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; }
}
.cs-checks li strong { color: var(--x-ink); font-weight: 600; }

/* mobile: tighten hero → lead → about rhythm */
@media screen and (max-width: 800px) {
    .s-intro.x-hero { margin-bottom: 0; padding-bottom: 0; }
    .x-hero .intro-content { padding-bottom: 4.8rem; }
    .x-hero__actions { margin-bottom: 2.4rem; }
    .x-glance { padding-bottom: 6.4rem; }
}

/* experience: single Microsoft entry with key areas */
.x-areas { list-style: none; margin: 2rem 0 0; padding: 0; border-left: 1px solid var(--x-line); }
.x-areas li { display: block; margin: 0 0 1.8rem; padding-left: 2rem; }
.x-areas li:last-child { margin-bottom: 0; }
.x-areas h5 { font-family: var(--font-1); font-size: 1.6rem; font-weight: 600; color: var(--x-ink); margin: 0 0 .4rem; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.x-areas h5 span { font-weight: 400; color: var(--x-muted); font-size: 1.4rem; margin-left: 1rem; }
.x-areas p { font-size: 1.5rem; line-height: 1.6; margin: 0; }
