/* ==========================================================================
   MutateCode - main stylesheet
   Change the brand colours in :root and the whole site follows.
   ========================================================================== */

@font-face {
    font-family: "Anton";
    src: url("../fonts/anton-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-var.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    /* Brand colours taken from the MutateCode logo */
    --accent: #0c2e56;        /* logo navy - main brand colour */
    --accent-dark: #081f3b;
    --accent-soft: #e9eff7;
    --green: #04a44e;         /* logo green - highlights, large text, shapes */
    --green-dark: #037a3a;    /* darker green for small text on white (readable contrast) */
    --green-soft: #e6f6ed;
    --ink: #0f1e33;
    --text: #3a4556;
    --muted: #687386;
    --line: #e3e8ef;
    --bg: #ffffff;
    --bg-tint: #f5f8fb;

    --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 4px;
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
}

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

html { scroll-behavior: smooth; }

/* Smooth scrolling (Lenis). Native smooth behaviour is switched off while Lenis runs so they don't fight. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* keep jump targets clear of the sticky header */
[id] { scroll-margin-top: 130px; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0 0 1em; }

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

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

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Typography ---------- */

.display {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    line-height: .95;
    letter-spacing: -.01em;
    color: var(--ink);
}
.display--xl { font-size: clamp(3rem, 8vw, 6.5rem); }
/* hero headline also scales with screen height so the buttons stay on the first screen of short laptops */
.hero .display--xl { font-size: clamp(2.6rem, min(8vw, 11vh), 6.5rem); }
.display--lg { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; }
.display--md { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.text-accent { color: var(--green); }

.link-underline {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink);
    border-bottom: 2px solid var(--ink);
    padding-bottom: 2px;
    white-space: nowrap;
}
.link-underline:hover { color: var(--green-dark); border-color: var(--green-dark); }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .95em 1.6em;
    font: 600 .85rem/1 var(--font-body);
    text-transform: uppercase;
    letter-spacing: .05em;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: .8em 1.2em; font-size: .8rem; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 1.1rem;
}
.icon-btn:hover { background: var(--bg-tint); }

/* ---------- Announcement bar ---------- */

.announce {
    position: relative;
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
}
.announce__link {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: .7em 3em;
}
.announce__link:hover { text-decoration: underline; }
.announce__close {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; opacity: .8;
}
.announce__close:hover { opacity: 1; }

/* ---------- Header + nav ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -.02em;
    color: var(--ink);
}
.logo--light { color: #fff; }
.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.divider { width: 1px; height: 28px; background: var(--line); }
.menu-toggle { display: none; }

.main-nav { border-top: 1px solid var(--line); background: #fcfcfe; }
.main-nav__list {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 3rem);
    list-style: none;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0;
}
.main-nav a {
    display: block;
    padding: .75rem 0;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Search overlay ---------- */

.search-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(15, 30, 51, .55);
    display: grid;
    place-items: start center;
    padding: 15vh var(--gutter) 0;
}
.search-overlay[hidden] { display: none; }
.search-overlay__box {
    display: flex; align-items: center; gap: .75rem;
    width: min(640px, 100%);
    background: #fff;
    padding: .75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    color: var(--muted);
}
.search-overlay__box input[type="search"] {
    flex: 1; border: 0; outline: 0; font: inherit; font-size: 1.1rem; padding: .5rem 0; color: var(--ink);
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, min(12vw, 8vh), 9rem) 0 clamp(4rem, 10vw, 7.5rem);
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.hero__content { position: relative; z-index: 1; max-width: 900px; }
.hero__eyebrow {
    display: block;
    margin-bottom: clamp(.75rem, 2.5vh, 1.25rem);
    font-family: var(--font-body);
    font-size: clamp(.78rem, 1.2vw, .9rem);
    font-weight: 600;
    letter-spacing: .1em;
    line-height: 1.4;
    color: var(--green-dark);
}
.hero__lead {
    max-width: 600px;
    margin: clamp(1rem, 3vh, 1.75rem) auto clamp(1.25rem, 4vh, 2.25rem);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--text);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

/* decorative floating illustrations at the sides of the hero */
.hero__deco {
    position: absolute;
    top: 0; bottom: 0;
    width: min(26vw, 340px);
    pointer-events: none;
}
.hero__deco--left { left: 0; }
.hero__deco--right { right: 0; }
.hero__deco::before {           /* faint dot grid behind the cards */
    content: "";
    position: absolute; inset: 8% 10%;
    background-image: radial-gradient(var(--accent) 1.2px, transparent 1.4px);
    background-size: 18px 18px;
    opacity: .12;
    -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
    mask-image: radial-gradient(closest-side, #000, transparent);
}

.deco {
    position: absolute;
    height: auto;
    filter: drop-shadow(0 14px 28px rgba(12, 46, 86, .13));
    animation: deco-float 7s ease-in-out infinite;
}
.deco--code  { width: min(17vw, 250px); left: 8%;  top: 12%; --rot: -4deg; }
.deco--chart { width: min(10.5vw, 150px); left: 30%; bottom: 21%; --rot: 3deg; animation-duration: 8.5s; animation-delay: -2s; }
.deco--flow  { width: min(16vw, 236px); right: 7%; top: 16%; --rot: 3deg; animation-duration: 8s; animation-delay: -1s; }
.deco--toast { width: min(13.5vw, 196px); right: 22%; bottom: 24%; --rot: -2deg; animation-duration: 6.5s; animation-delay: -3s; }

@keyframes deco-float {
    0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-12px) rotate(calc(var(--rot, 0deg) * -0.5)); }
}

.deco-cursor { animation: deco-blink 1.1s steps(1) infinite; }
@keyframes deco-blink { 50% { opacity: 0; } }

.deco-bar { transform-box: fill-box; transform-origin: bottom; animation: deco-grow 4s ease-in-out infinite; }
@keyframes deco-grow { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.82); } }

.deco-flow-line { animation: deco-dash 1s linear infinite; }
@keyframes deco-dash { to { stroke-dashoffset: -20; } }

.deco-pulse { transform-box: fill-box; transform-origin: center; animation: deco-pulse 2.4s ease-out infinite; }
@keyframes deco-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }

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

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--bg-tint); }

.section-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.section-head__rule { flex: 1; height: 1px; background: var(--line); }
.section-head--center { text-align: center; }

.page-head { padding: clamp(3rem, 8vw, 5.5rem) 0 1rem; border-bottom: 1px solid var(--line); }
.page-head .hero__lead { margin: 1rem 0 2rem; }
.empty { font-size: 1.1rem; }

/* ---------- Cards ---------- */

.card { display: flex; flex-direction: column; gap: 1rem; }
.card__media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 9; background: var(--accent-soft); }
.card__media .cover-svg { width: 100%; height: 100%; transition: transform .4s ease; }
.card:hover .cover-svg, .list-item:hover .cover-svg { transform: scale(1.04); }
.card__cat {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: .5rem;
}
.card__title a:hover { color: var(--green-dark); }
.card__title--sm {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .6rem;
}
.card__excerpt { color: var(--text); font-size: .95rem; }
.card__meta { color: var(--muted); font-size: .85rem; margin: 0; }

.card--featured .card__media { aspect-ratio: 3 / 2; }
.card--featured .card__title { margin: .25rem 0 1rem; }

.latest {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}
.latest__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.75rem; }

.list { display: grid; gap: 1.75rem; }
.list-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: center;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--line);
}
.list-item__media { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; }
.list-item__media .cover-svg { width: 100%; height: 100%; transition: transform .4s ease; }

/* ---------- Task cards ---------- */

.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.task {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.task:hover { border-color: var(--green); box-shadow: 0 12px 30px rgba(12, 46, 86, .12); transform: translateY(-3px); }
.task__icon {
    display: grid; place-items: center;
    width: 52px; height: 52px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
}
.task__title { font-size: 1.2rem; margin-bottom: .5rem; }
.task p { color: var(--text); flex: 1; }
.task__go {
    display: inline-flex; align-items: center; gap: .4em;
    font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
    color: var(--green-dark);
}

/* ---------- Article page ---------- */

.post { padding: clamp(3rem, 7vw, 5rem) 0 4rem; }
.post__head { max-width: 860px; text-align: center; }
.post__head .display { margin: .25rem 0 1.25rem; }
.post__lead { font-size: 1.2rem; max-width: 640px; margin: 0 auto 1rem; }
.post__cover { max-width: 1000px; margin-top: 2.5rem; margin-bottom: 2.5rem; }
.post__cover .cover-svg { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 5 / 3; }
.post__body { max-width: 720px; font-size: 1.1rem; line-height: 1.75; }
.post__body h2 { font-size: 1.6rem; margin: 2.25rem 0 .75rem; }
.post__body ul { padding-left: 1.25rem; }
.post__body li { margin-bottom: .4rem; }
.post__body blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--green);
    background: var(--green-soft);
    font-weight: 600;
    color: var(--ink);
}

/* ---------- Newsletter ---------- */

.newsletter { background: var(--accent); color: #d5dfec; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.newsletter .display { color: #fff; margin-bottom: .75rem; }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: .75rem; }
.newsletter__form input {
    flex: 1 1 240px;
    padding: .95em 1em;
    font: inherit;
    border: 1.5px solid #2b4f7c;
    border-radius: var(--radius);
    background: #0a2645;
    color: #fff;
}
.newsletter__form input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.newsletter .btn--primary { background: var(--green); }
.newsletter .btn--primary:hover { background: var(--green-dark); }
.newsletter__msg { flex-basis: 100%; margin: 0; min-height: 1.5em; font-size: .9rem; color: #7fe0a8; }

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

.site-footer { background: #0a1628; color: #a5b1c4; padding-top: 3.5rem; font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.site-footer h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a:hover { color: #3ccf7d; }
.site-footer__about { max-width: 320px; margin-top: 1rem; }
.site-footer__bottom { border-top: 1px solid #1c2c47; padding-top: 1.25rem; padding-bottom: 1.25rem; font-size: .85rem; }
.site-footer__bottom p { margin: 0; }

/* ---------- Contact page ---------- */

.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }
.btn--block { width: 100%; justify-content: center; }

.page-head--contact { border-bottom: 0; padding-bottom: 0; }
.section--tight { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: 1.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.contact-card:hover { border-color: var(--green); box-shadow: 0 12px 30px rgba(12, 46, 86, .1); transform: translateY(-3px); }
.contact-card__icon {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    margin-bottom: .6rem;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 1.3rem;
}
.contact-card__title { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-card__value { font-size: 1.15rem; font-weight: 700; color: var(--ink); word-break: break-word; }
a.contact-card__value:hover { color: var(--green-dark); }
.contact-card__value--text { margin: 0; font-size: 1rem; line-height: 1.45; }
.contact-card__note { display: flex; align-items: center; gap: .4rem; margin: 0; font-size: .9rem; color: var(--muted); }
.contact-card__link {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: auto; padding-top: .6rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
    color: var(--green-dark);
}
.contact-card__link:hover { color: var(--accent); }

.contact-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1.75rem; align-items: start; }

.form-card { padding: clamp(1.5rem, 3.5vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.form-card .display { margin-bottom: .5rem; }
.form-card__intro { color: var(--muted); margin-bottom: 1.5rem; }

.form { display: grid; gap: 1.15rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field { display: grid; gap: .4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { font-size: .9rem; font-weight: 600; color: var(--ink); padding: 0; }
.field legend { margin-bottom: .4rem; }
.req { color: var(--green-dark); }
.field__hint { font-weight: 400; color: var(--muted); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
    width: 100%;
    padding: .8em .95em;
    font: inherit;
    font-size: .98rem;
    color: var(--ink);
    background: var(--bg-tint);
    border: 1.5px solid var(--line);
    border-radius: 6px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.field select {
    appearance: none;
    padding-right: 2.5em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2e56' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9em center;
    background-size: 16px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0;
    background-color: #fff;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(4, 164, 78, .14);
}
.field.has-error input, .field.has-error select { border-color: #c62828; background-color: #fff6f6; }
.field__error { margin: 0; font-size: .85rem; color: #c62828; }

.choice-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
    display: inline-block;
    padding: .6em 1.1em;
    font-size: .92rem;
    font-weight: 500;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: #fff;
    transition: border-color .2s, background .2s, color .2s;
}
.choice:hover span { border-color: var(--accent); }
.choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(4, 164, 78, .25); }

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }

.form-note { margin: 0; text-align: center; font-size: .85rem; color: var(--muted); }

.alert { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.2rem; margin-bottom: 1.25rem; border-radius: 6px; font-size: .95rem; }
.alert p { margin: 0; }
.alert--error { background: #fff3f3; border: 1px solid #f3c4c4; color: #9b1c1c; }
.alert--success { background: var(--green-soft); border: 1px solid #b4e3c7; color: var(--text); margin-bottom: 1.5rem; }
.alert--success a { color: var(--green-dark); font-weight: 600; text-decoration: underline; }
.alert__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; flex-shrink: 0; }
.alert__title { font-size: 1.15rem; margin-bottom: .25rem; }

.demo-panel {
    position: relative;
    display: grid;
    gap: 1.1rem;
    padding: clamp(1.5rem, 3.5vw, 2.25rem);
    overflow: hidden;
    border-radius: 8px;
    background: var(--accent);
    color: #d5dfec;
}
.demo-panel::before {          /* faint dot grid */
    content: "";
    position: absolute; right: -40px; top: -40px;
    width: 220px; height: 220px;
    background-image: radial-gradient(rgba(255, 255, 255, .5) 1.2px, transparent 1.4px);
    background-size: 16px 16px;
    opacity: .25;
    -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
    mask-image: radial-gradient(closest-side, #000, transparent);
    pointer-events: none;
}
.demo-panel .display { color: #fff; }
.demo-panel p { margin: 0; }
.demo-panel__eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #3ccf7d; }
.demo-steps { list-style: none; margin: .25rem 0; padding: 0; display: grid; gap: 1rem; }
.demo-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.demo-steps span {
    display: grid; place-items: center;
    width: 30px; height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
}
.demo-steps strong { display: block; color: #fff; }
.demo-steps div { font-size: .92rem; line-height: 1.5; }
.demo-panel__toast {
    width: 100%; max-width: 300px;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .25));
    animation: deco-float 6s ease-in-out infinite;
}

.faq-wrap { max-width: 900px; }
.faq { display: grid; gap: .75rem; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s; }
.faq__item[open] { border-color: var(--green); }
.faq__item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.1rem 1.3rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
    display: grid; place-items: center;
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-dark);
    transition: transform .3s, background .2s, color .2s;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--green); color: #fff; }
.faq__item p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--text); }

/* ---------- Course / program page ---------- */

.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--accent); }
.link-btn { background: none; border: 0; border-bottom: 2px solid var(--ink); cursor: pointer; font-family: inherit; }
.section--compact { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-intro { max-width: 640px; margin: -1.25rem 0 2rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.chip {
    display: inline-block;
    padding: .38em .8em;
    font-size: .82rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 999px;
}
.chips--sm .chip { font-size: .76rem; padding: .32em .7em; }
.chip--more { background: var(--green-soft); color: var(--green-dark); font-weight: 600; }

.program-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.program-hero__inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.program-hero .display--xl { font-size: clamp(2.6rem, min(6.4vw, 10vh), 5.4rem); }
.program-hero .hero__lead { margin: 1.25rem 0 1.75rem; max-width: 560px; }
.program-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.stack-card {
    display: grid;
    gap: 1.1rem;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(12, 46, 86, .08);
}
.stack-card__title { margin: 0; font-weight: 700; color: var(--ink); }
.stack-card__group { display: grid; gap: .5rem; }
.stack-card__label { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }

.program-stats { background: var(--accent); }
.program-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.pstat { display: grid; justify-items: center; gap: .15rem; padding: 1.6rem 1rem; text-align: center; color: #d5dfec; }
.pstat + .pstat { border-left: 1px solid rgba(255, 255, 255, .14); }
.pstat strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: #fff; }
.pstat:nth-child(odd) strong { color: #3ccf7d; }
.pstat span { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.path { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.path__step {
    position: relative;
    display: grid;
    gap: .3rem;
    height: 100%;
    padding: 1.4rem 1.4rem 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.path__step:hover { border-color: var(--green); box-shadow: 0 12px 30px rgba(12, 46, 86, .1); transform: translateY(-3px); }
.path__num {
    position: absolute; right: 1rem; top: .5rem;
    font-family: var(--font-display);
    font-size: 3.2rem;
    line-height: 1;
    color: var(--accent-soft);
    transition: color .2s;
}
.path__step:hover .path__num { color: var(--green-soft); }
.path__label { position: relative; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.path__title { position: relative; font-weight: 700; color: var(--ink); line-height: 1.35; padding-right: 2.5rem; }
.path__meta { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; font-size: .85rem; color: var(--muted); }
.path__step:hover .path__meta { color: var(--green-dark); }

.phase {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.75rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
}
.phase:first-of-type { border-top: 0; padding-top: 0; }
.phase__head { align-self: start; position: sticky; top: 140px; }
.phase__num {
    display: inline-block;
    padding: .3em .75em;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--green);
    border-radius: 4px;
}
.phase__title { margin: .7rem 0 .4rem; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.65rem; line-height: 1.05; }
.phase__meta { margin: 0; font-size: .9rem; color: var(--muted); }
.phase__modules { display: grid; gap: .65rem; }

.module { background: #fff; border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s; }
.module[open] { border-color: var(--green); }
.module summary {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: .9rem;
    padding: .95rem 1.1rem;
    cursor: pointer;
    list-style: none;
}
.module summary::-webkit-details-marker { display: none; }
.module summary:hover .module__title { color: var(--green-dark); }
.module__num {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--accent);
    background: var(--accent-soft);
}
.module[open] .module__num { color: #fff; background: var(--accent); }
.module__title { font-weight: 600; color: var(--ink); }
.module__count { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.module[open] .faq__icon { transform: rotate(45deg); background: var(--green); color: #fff; }
.module__body { padding: 0 1.1rem 1.2rem 4.9rem; }
.module__group { margin: 1rem 0 .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark); }
.module__group:first-child { margin-top: 0; }
.topics { columns: 2; column-gap: 2rem; list-style: none; margin: 0; padding: 0; }
.topics li {
    position: relative;
    padding: .28rem 0 .28rem 1.5rem;
    break-inside: avoid;
    font-size: .94rem;
    color: var(--text);
}
.topics li::before {
    content: "";
    position: absolute; left: 0; top: .62rem;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23037a3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.project {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: 8px;
    transition: box-shadow .2s, transform .2s;
}
.project--ai { border-top-color: var(--green); }
.project:hover { box-shadow: 0 12px 30px rgba(12, 46, 86, .1); transform: translateY(-3px); }
.project__type { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project__title { display: flex; gap: .6rem; align-items: flex-start; font-size: 1.05rem; line-height: 1.35; }
.project__num {
    display: grid; place-items: center;
    width: 26px; height: 26px; flex-shrink: 0;
    border-radius: 50%;
    font-size: .8rem;
    color: #fff;
    background: var(--accent);
}
.project--ai .project__num { background: var(--green); }

.order { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.order li {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55em 1em .55em .55em;
    font-weight: 600;
    font-size: .92rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.order span {
    display: grid; place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    font-size: .8rem;
    color: #fff;
    background: var(--green);
}

.program-cta { background: var(--accent); color: #d5dfec; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.program-cta .display { color: #fff; margin-bottom: .5rem; }
.program-cta p { margin: 0; }
.program-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.program-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Playwright program page ---------- */

.program-hero__chips { margin: -.5rem 0 1.75rem; }
.card__cat--light { color: #3ccf7d; }

.preview-card {
    display: grid;
    gap: 1rem;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--green);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(12, 46, 86, .08);
}
.preview-card__eyebrow { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.preview-card__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; line-height: 1.05; }
.topics--single { columns: 1; }
.preview-card__note { display: grid; gap: .25rem; padding: .9rem 1rem; border-radius: 6px; background: var(--bg-tint); font-size: .9rem; }
.preview-card__note strong { color: var(--ink); }
.preview-card__note span { color: var(--muted); }

/* chapters: each holds several phases */
.chapters { display: grid; gap: 1rem; }
.chapter { background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.chapter[open] { border-color: var(--accent); box-shadow: 0 14px 34px rgba(12, 46, 86, .08); }
.chapter > summary {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1.3rem 1.5rem;
    cursor: pointer;
    list-style: none;
}
.chapter > summary::-webkit-details-marker { display: none; }
.chapter__num { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--green); min-width: 2.2ch; }
.chapter__text { display: grid; gap: .2rem; }
.chapter__title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.45rem; line-height: 1.05; color: var(--ink); }
.chapter__desc { font-size: .95rem; color: var(--muted); }
.chapter__range { padding: .35em .8em; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); white-space: nowrap; }
.chapter[open] > summary .faq__icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.chapter__body { display: grid; gap: .65rem; padding: 0 1.5rem 1.5rem; }
.chapter__body .module { background: var(--bg-tint); }
.chapter__body .module[open] { background: #fff; }
.module__sub { display: block; margin-top: .15rem; font-size: .85rem; font-weight: 400; color: var(--muted); }

/* rich phase content */
.rich { display: grid; gap: .8rem; }
.rich > .module__group { margin: .5rem 0 0; }
.rich__p { margin: 0; color: var(--text); }
.rich code { font-family: Consolas, "Courier New", monospace; font-size: .9em; padding: .1em .35em; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.rich-code {
    margin: 0;
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border-radius: 6px;
    background: var(--ink);
    color: #b9f5cf;
    font: .92rem/1.6 Consolas, "Courier New", monospace;
}
.rich-code code { padding: 0; background: none; color: inherit; font-size: inherit; }
.rich-callout {
    display: grid;
    gap: .7rem;
    padding: 1.1rem 1.25rem;
    border-left: 4px solid var(--green);
    border-radius: 6px;
    background: var(--green-soft);
}
.rich-callout__title { display: flex; align-items: center; gap: .5rem; margin: 0; font-weight: 700; color: var(--green-dark); }
.rich-callout__title .icon { padding: 3px; border-radius: 50%; background: var(--green); color: #fff; width: 1.3em; height: 1.3em; }
.rich-callout .rich__p { color: var(--ink); }
.rich-flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.rich-flow__step {
    padding: .5em .9em;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--accent);
    background: #fff;
    border: 1.5px solid var(--accent);
}
.rich-flow__step:last-child { background: var(--accent); color: #fff; }
.rich-flow__arrow::before { content: "→"; font-weight: 700; color: var(--green); }
.rich-questions { list-style: none; margin: 0; padding: 0; counter-reset: q; display: grid; gap: .45rem; }
.rich-questions li { counter-increment: q; display: flex; gap: .7rem; align-items: baseline; font-weight: 500; color: var(--ink); }
.rich-questions li::before {
    content: counter(q, decimal-leading-zero);
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--green);
}
.rich-table-wrap { overflow-x: auto; }
.rich-table { width: 100%; border-collapse: collapse; font-size: .94rem; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.rich-table th { padding: .7rem 1rem; text-align: left; color: #fff; background: var(--accent); font-weight: 600; }
.rich-table th:last-child { background: var(--green); }
.rich-table td { padding: .6rem 1rem; border-top: 1px solid var(--line); }
.rich-table td:first-child { color: var(--muted); }
.rich-table td:last-child { font-weight: 600; color: var(--ink); }

/* learn by building */
.build-section { background: var(--ink); color: #b7c3d4; }
.build-section .display { color: #fff; margin: .25rem 0 .75rem; }
.build-section__intro { max-width: 620px; margin-bottom: 2.5rem; }
.build-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.build-card {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.6rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: border-color .2s, transform .2s, background .2s;
}
.build-card:hover { border-color: #3ccf7d; background: rgba(255, 255, 255, .07); transform: translateY(-4px); }
.build-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.build-card__num { font-family: var(--font-display); font-size: 2.8rem; line-height: 1; color: #fff; }
.build-card__code { font: 600 .9rem Consolas, "Courier New", monospace; color: #3ccf7d; padding: .3em .6em; border: 1px solid rgba(60, 207, 125, .4); border-radius: 6px; }
.build-card__stage { margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #3ccf7d; }
.build-card__label { margin: 0; font-size: .8rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #8597ae; }
.build-card__title { color: #fff; font-size: 1.3rem; line-height: 1.25; }
.build-card__text { margin: 0 0 .5rem; flex: 1; }
.chips--dark .chip { background: rgba(255, 255, 255, .08); color: #e5ecf5; }

/* framework defence */
.defence { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.defence .display { margin: .25rem 0 1rem; }
.defence__text { color: var(--muted); max-width: 440px; margin: 0; }
.defence__list { display: grid; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.defence__list li {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 1.3rem;
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color .2s, transform .2s;
}
.defence__list li:hover { border-color: var(--green); transform: translateX(4px); }
.defence__list span { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--green); }

.program-cta--center { text-align: center; }
.program-cta--center .display { margin: .5rem 0 1rem; }
.program-cta--center p { max-width: 560px; margin: 0 auto; }
.program-cta--center .program-cta__actions { justify-content: center; margin-top: 1.75rem; }
.program-cta__eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #3ccf7d; }
.program-cta__tagline { margin-top: 1.75rem !important; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #8fa6c4; }

/* programs listing */
.programs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.program-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--accent);
    border-radius: 10px;
    transition: box-shadow .2s, transform .2s;
}
.program-card--ai { border-top-color: var(--green); }
.program-card:hover { box-shadow: 0 18px 40px rgba(12, 46, 86, .1); transform: translateY(-4px); }
.program-card__head { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; }
.program-card__badge { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.program-card__status { padding: .3em .75em; border-radius: 999px; font-size: .76rem; font-weight: 600; color: #8a5a00; background: #fff4d6; }
.program-card__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; }
.program-card__title a:hover { color: var(--green-dark); }
.program-card__text { margin: 0; color: var(--text); }
.program-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: .25rem 0; border: 1px solid var(--line); border-radius: 8px; }
.program-card__stats div { padding: .8rem; text-align: center; }
.program-card__stats div + div { border-left: 1px solid var(--line); }
.program-card__stats dt { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.program-card__stats dd { margin: 0; order: -1; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--accent); }
.program-card__stats div { display: flex; flex-direction: column-reverse; }
.program-card__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; padding-top: .5rem; }

/* ---------- Home page (testing academy) ---------- */

.tools-strip { border-bottom: 1px solid var(--line); background: var(--bg-tint); }
.tools-strip__inner { display: flex; align-items: center; gap: 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.tools-strip__label { flex-shrink: 0; margin: 0; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tools-strip__list { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.tools-strip__list li { font-weight: 700; font-size: .95rem; color: var(--accent); white-space: nowrap; }
.tools-strip__list li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 .55rem .15rem 0; border-radius: 50%; background: var(--green); }

.section-tagline { margin: -1.25rem 0 2.25rem; text-align: center; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pillar {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.pillar:hover { border-color: var(--green); box-shadow: 0 12px 30px rgba(12, 46, 86, .1); transform: translateY(-3px); }
.pillar__top { display: flex; justify-content: space-between; align-items: flex-start; }
.pillar__top .task__icon { margin-bottom: 1rem; }
.pillar__num { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--accent-soft); }
.pillar__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; margin-bottom: .4rem; }
.pillar p { margin: 0; color: var(--text); }

.path--chapters { grid-template-columns: repeat(4, 1fr); }
.path__desc { position: relative; font-size: .88rem; color: var(--muted); line-height: 1.45; }

.labs { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.75rem; align-items: start; }
.explain-card { display: grid; gap: 1rem; padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.explain-card__eyebrow { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: 1.5rem; line-height: 1.05; color: var(--ink); }
.explain-card .rich-code { font-size: .86rem; color: #dbe6f3; }
.tok-k { color: #3ccf7d; font-weight: 700; }
.tok-s { color: #9cc3ff; }
.explain-card__notes { display: grid; gap: .55rem; list-style: none; margin: 0; padding: 0; }
.explain-card__notes li { display: flex; gap: .7rem; align-items: baseline; font-size: .94rem; color: var(--text); }
.explain-card__notes code {
    flex-shrink: 0;
    min-width: 72px;
    padding: .15em .5em;
    border-radius: 4px;
    font: 600 .82rem Consolas, "Courier New", monospace;
    text-align: center;
    color: var(--accent);
    background: var(--accent-soft);
}

.lab-list { display: grid; gap: .75rem; }
.lab {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 8px;
    transition: box-shadow .2s, transform .2s;
}
.lab:hover { box-shadow: 0 12px 30px rgba(12, 46, 86, .1); transform: translateX(4px); }
.lab__icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); font-size: 1.15rem; }
.lab__body { display: grid; gap: .2rem; }
.lab__title { font-weight: 700; color: var(--ink); }
.lab__text { font-size: .92rem; color: var(--text); }
.lab__phase { font-size: .78rem; font-weight: 600; color: var(--green-dark); }

.career { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.career .display { margin: .25rem 0 1rem; }
.career__text { max-width: 460px; color: var(--muted); }
.career__list { margin-top: 1.25rem; }
.career__questions-title { margin: 0 0 .9rem; font-weight: 700; color: var(--ink); }
.career__note { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); font-style: italic; }

.faq__more { margin: 1.25rem 0 0; color: var(--muted); }

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

@media (max-width: 1024px) {
    .latest { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
    .program-hero__inner { grid-template-columns: 1fr; }
    .projects { grid-template-columns: repeat(2, 1fr); }
    .phase { grid-template-columns: 1fr; gap: 1rem; }
    .phase__head { position: static; }
    .build-projects, .programs { grid-template-columns: 1fr; }
    .defence { grid-template-columns: 1fr; }
    .pillars { grid-template-columns: repeat(2, 1fr); }
    .path--chapters { grid-template-columns: repeat(2, 1fr); }
    .labs, .career { grid-template-columns: 1fr; }
    .tools-strip__inner { flex-direction: column; align-items: flex-start; gap: .6rem; }
}

/* side illustrations need free space beside the headline - hide them on narrower screens */
@media (max-width: 1100px) {
    .hero__deco { display: none; }
}

@media (max-width: 760px) {
    .menu-toggle { display: inline-grid; }
    .site-header__actions .btn, .divider { display: none; }
    .main-nav { display: none; }
    .main-nav.is-open { display: block; }
    .main-nav__list { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; }
    .main-nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }

    .latest__grid, .grid-3, .tasks, .newsletter__inner, .contact-cards, .form-grid, .path, .path--chapters, .projects, .pillars { grid-template-columns: 1fr; }
    .explain-card .rich-code { font-size: .74rem; }
    .program-stats__grid { grid-template-columns: repeat(2, 1fr); }
    .pstat:nth-child(3) { border-left: 0; }
    .pstat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
    .topics { columns: 1; }
    .module summary { grid-template-columns: auto 1fr auto; gap: .7rem; }
    .module__count { display: none; }
    .module__body { padding-left: 1.1rem; }
    .chapter > summary { grid-template-columns: auto 1fr auto; gap: .9rem; padding: 1.1rem; }
    .chapter__range { display: none; }
    .chapter__num { font-size: 2rem; }
    .chapter__title { font-size: 1.2rem; }
    .chapter__body { padding: 0 .75rem .75rem; }
    .rich-flow { flex-direction: column; align-items: stretch; gap: .25rem; }
    .rich-flow__arrow { text-align: center; }
    .rich-flow__arrow::before { content: "↓"; }
    .list-item { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__grid > :first-child { grid-column: 1 / -1; }
    .section-head { flex-wrap: wrap; }
    .section-head--center .section-head__rule { display: none; }
    .section-head--center { justify-content: center; }
    .announce__link { padding: .7em 2.75em .7em 1em; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
    .deco, .deco-cursor, .deco-bar, .deco-flow-line, .deco-pulse, .demo-panel__toast { animation: none !important; }
}

/* ---------- WordPress additions ---------- */

/* current menu item (wp_nav_menu) gets the same style as .is-active */
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-parent > a,
.main-nav .current-post-ancestor > a { color: var(--ink); border-bottom-color: var(--ink); }

/* keep the sticky header below the WordPress admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* program page extras */
.program-hero__status { display: inline-flex; align-items: center; gap: .45rem; margin: 1.25rem 0 0; padding: .45em .9em; border-radius: 999px; font-size: .88rem; font-weight: 600; color: #8a5a00; background: #fff4d6; }
.phase__desc { margin: 0 0 .3rem; font-size: .92rem; color: var(--text); }
.project__text { margin: 0; font-size: .92rem; color: var(--text); }
.project__badge { margin-left: .35rem; font: 600 .78rem Consolas, "Courier New", monospace; color: var(--green-dark); text-transform: none; letter-spacing: 0; }
.program-about { max-width: 820px; }

/* content written in the WordPress editor (posts, pages, program "about") */
.post__body > * + * { margin-top: 1.1em; }
.post__body h2, .post__body h3 { font-family: var(--font-body); }
.post__body h3 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; }
.post__body a { color: var(--green-dark); text-decoration: underline; }
.post__body img, .post__body figure { max-width: 100%; height: auto; border-radius: 8px; }
.post__body figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.post__body pre { padding: 1rem 1.2rem; overflow-x: auto; border-radius: 6px; background: var(--ink); color: #dbe6f3; font: .9rem/1.6 Consolas, "Courier New", monospace; }
.post__body code { font-family: Consolas, "Courier New", monospace; font-size: .9em; }
.post__body :not(pre) > code { padding: .1em .35em; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.post__body table { width: 100%; border-collapse: collapse; }
.post__body th, .post__body td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; }
.post__cover img { width: 100%; height: auto; border-radius: 8px; aspect-ratio: 5 / 3; object-fit: cover; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

/* pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; color: var(--accent); background: #fff; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--green); color: var(--green-dark); }

/* blog category buttons */
.cat-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: .25rem 0 1.5rem; }
.cat-filter__item { padding: .5em 1em; border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--accent); background: #fff; transition: border-color .2s, background .2s, color .2s; }
.cat-filter__item:hover { border-color: var(--accent); }
.cat-filter__item.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* about page */
.about-cards { grid-template-columns: repeat(4, 1fr); }
.about-card__title { font-size: 1.1rem; margin: 0 0 .25rem; color: var(--ink); }
.about-story { max-width: 760px; margin-top: 1.5rem; }
@media (max-width: 1024px) { .about-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .about-cards { grid-template-columns: 1fr; } }

/* ---------- Call-to-action card (kept separate from the navy newsletter below it) ---------- */
.program-cta {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    background: var(--bg-tint);
    color: #d5dfec;
}
.program-cta__inner {
    position: relative;
    overflow: hidden;
    width: calc(100% - 2 * var(--gutter));
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: 14px;
    background: var(--accent);
    border-left: 6px solid var(--green);
    box-shadow: 0 24px 50px rgba(12, 46, 86, .18);
}
.program-cta__inner::after {           /* soft dot pattern in the corner */
    content: "";
    position: absolute;
    right: -30px; top: -30px;
    width: 240px; height: 240px;
    background-image: radial-gradient(rgba(255, 255, 255, .55) 1.2px, transparent 1.4px);
    background-size: 16px 16px;
    opacity: .22;
    -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
    mask-image: radial-gradient(closest-side, #000, transparent);
    pointer-events: none;
}
.program-cta__inner > * { position: relative; z-index: 1; }

/* Sticky chapter/phase titles and jump targets sit just below the real header height
   (--header-h is measured by main.js and includes the WordPress admin bar when logged in). */
.phase__head { top: calc(var(--header-h, 150px) + 20px); }
[id] { scroll-margin-top: calc(var(--header-h, 150px) + 16px); }

/* Wide tables in articles scroll sideways on small screens instead of overflowing the page */
.post__body .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: 0; margin-right: 0; }
.post__body .wp-block-table table { min-width: 520px; }
.post__body .wp-block-table th { background: var(--accent-soft); color: var(--ink); white-space: nowrap; }
@media (min-width: 761px) { .post__body .wp-block-table table { min-width: 0; } }

/* Featured cover images are 1200x630 (social preview size): show them whole, without cropping */
.post__cover img { aspect-ratio: 1200 / 630; object-fit: cover; }
.card__media:has(img) { aspect-ratio: 1200 / 630; }

/* ---------- Decorated page header (shapes in the bottom corners) ---------- */
.page-head--deco {
    position: relative;
    overflow: hidden;
    padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(5rem, 11vw, 8rem);
    text-align: center;
    background: #eef3f8;
    border-bottom: 0;
}
.page-head--deco > .container { position: relative; z-index: 1; }
.page-head--deco .hero__lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.page-head--deco .cat-filter { justify-content: center; }
.page-head--deco .hero__actions { justify-content: center !important; }
.page-head--deco .post__body { margin-left: auto; margin-right: auto; text-align: left; }

.deco-shapes { position: absolute; bottom: 0; width: min(24vw, 320px); height: auto; pointer-events: none; }
.deco-shapes--left { left: 0; }
.deco-shapes--right { right: 0; }
.deco-shapes--strip { left: 0; width: max(100%, 1408px); height: auto; }
.deco-float { animation: deco-bob 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.deco-float--slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes deco-bob { 50% { transform: translateY(-8px); } }

/* course hero uses the same decorative band */

.program-hero--deco { position: relative; overflow: hidden; background: #eef3f8; padding-bottom: clamp(4.5rem, 8vw, 6rem); }
.program-hero--deco > .container { position: relative; z-index: 1; }
.program-hero--deco .deco-shapes--strip { height: 64px; width: auto; opacity: .9; }

@media (max-width: 1100px) {
    .deco-shapes--left, .deco-shapes--right { width: 18vw; opacity: .55; }
}
@media (max-width: 760px) {
    .deco-shapes--left, .deco-shapes--right { width: 34vw; opacity: .45; }
    .page-head--deco { padding-bottom: 7.5rem; }
}
@media (prefers-reduced-motion: reduce) { .deco-float { animation: none; } }

/* Spread long headings evenly over their lines (no single word left alone on the last line) */
.display, .card__title, .program-card__title { text-wrap: balance; }


/* On small screens WordPress lets the admin bar scroll away, so the sticky header must sit at the very top */
@media (max-width: 600px) {
    .admin-bar .site-header { top: 0; }
}

/* contact form: AJAX states */
.form-alert[hidden] { display: none; }
.field__count { margin: .2rem 0 0; text-align: right; font-size: .8rem; color: var(--muted); }
.btn__spinner { display: none; width: 1em; height: 1em; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: mc-spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .icon { display: none; }
.btn[disabled] { opacity: .8; cursor: progress; transform: none; }
@keyframes mc-spin { to { transform: rotate(360deg); } }
.form-card .alert[tabindex="-1"]:focus { outline: none; }

/* social icon links (footer and contact panel) */
.social { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.social a {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    font-size: 1.15rem;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    transition: background .2s, border-color .2s, transform .2s;
}
.social a:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); }
.social a:focus-visible { outline: 2px solid var(--lgreen, #3ccf7d); outline-offset: 2px; }
.social--light a { color: var(--accent); background: var(--accent-soft); border-color: var(--line); }
.demo-panel__social .social { margin-top: .5rem; }
/* the footer's link-list style (one per line, nudge on hover) must not apply to the social icon row */
.site-footer ul.social, .demo-panel ul.social { display: flex; gap: .6rem; }
.site-footer .social a, .site-footer .social a:hover { padding-left: 0; }
.site-footer .social a:hover { color: #fff; }

/* ---------- Logo: vector mark + two-tone wordmark (matches the MutateCode logo) ---------- */
.logo { gap: .6rem; }
.logo__mark { width: 34px; height: auto; flex-shrink: 0; }
.logo__word { font-family: var(--font-body); font-weight: 700; font-size: 1.32rem; letter-spacing: -.025em; line-height: 1; }
.logo__a { color: var(--ink); }
.logo__b { color: var(--accent); }
.logo--light .logo__a { color: #ffffff; }
.logo--light .logo__b { color: #3ccf7d; }
.logo:hover .logo__mark { transform: none; }
@media (max-width: 760px) {
    .logo__mark { width: 30px; }
    .logo__word { font-size: 1.18rem; }
}

/* wordmark weight closer to the original logo */
.logo__word { font-weight: 600; letter-spacing: -.02em; }
.logo__a { color: #1a2433; }

