/* =========================================================================
   Vibe Coding School — editorial brutalism
   Flat colours, hard borders, one electric accent reserved for CTAs.
   No gradients. No glassmorphism.
   ========================================================================= */

:root {
    --paper: #f1ece0; /* warm bone */
    --paper-2: #e7e0cf; /* alternate panel */
    --ink: #16130c; /* near-black, warm */
    --ink-2: #46412f;
    --muted: #76705e;
    --line: #16130c;
    --line-soft: rgba(22, 19, 12, 0.16);
    --accent: #2a21ff; /* electric cobalt — CTAs only */
    --accent-press: #1810c2;
    --white: #fbfaf4;

    --radius: 4px;
    --radius-lg: 6px;
    --shadow-hard: 6px 6px 0 var(--ink);
    --shadow-hard-sm: 4px 4px 0 var(--ink);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: "Spline Sans", "Trebuchet MS", sans-serif;
    font-size: 17px;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ type */

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

h1,
h2,
h3,
.brand-mark,
.price {
    font-family: "Bricolage Grotesque", "Arial Black", sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h1,
h2,
h3 {
    /* Break only when a single word truly can't fit — never mid-word
       hyphenate, which shatters long Russian words. */
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
}

h1 {
    max-width: 16ch;
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    line-height: 0.96;
}

h2 {
    font-size: clamp(1.9rem, 4.2vw, 3.5rem);
    line-height: 0.98;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    line-height: 1.1;
    font-weight: 700;
}

p {
    color: var(--ink-2);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.hl {
    color: var(--accent);
}

section[id] {
    scroll-margin-top: 110px;
}

.section-pad {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
    padding: 104px 0;
}

/* ---------------------------------------------------------- mono labels */

.eyebrow,
.section-kicker,
.price-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 26px;
    padding: 9px 14px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
}

.section-kicker {
    margin-bottom: 22px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    color: var(--ink);
}

.section-kicker.invert {
    color: var(--white);
    border-left-color: var(--accent);
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(42, 33, 255, 0.55);
    animation: pulse 1.9s infinite;
}

/* ----------------------------------------------------------- buttons/CTA */

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 16px 26px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-family: "Spline Sans", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition:
        transform 0.13s cubic-bezier(0.34, 1.4, 0.5, 1),
        box-shadow 0.13s ease,
        background 0.15s ease,
        color 0.15s ease;
}

/* primary — the eye magnet: electric blue + hard black shadow that the
   button presses into on hover/click. */
.button.primary {
    color: var(--white);
    background: var(--accent);
    box-shadow: var(--shadow-hard);
}

.button.primary:hover {
    transform: translate(3px, 3px);
    box-shadow: var(--shadow-hard-sm);
    background: var(--accent);
}

.button.primary:active {
    transform: translate(6px, 6px);
    box-shadow: 0 0 0 var(--ink);
}

.button.ghost {
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow-hard-sm);
}

.button.ghost:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink);
    background: var(--paper);
}

.button.ghost:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--ink);
}

.button.full {
    width: 100%;
}

/* ---------------------------------------------------------------- header */

.site-header {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(16px, 4vw, 40px);
    border-bottom: 1.5px solid transparent;
    background: transparent;
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.site-header.is-scrolled {
    background: var(--paper);
    border-bottom-color: var(--ink);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    color: var(--ink);
    background: var(--accent);
    color: var(--white);
    font-size: 0.92rem;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-copy small {
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.66rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    position: relative;
    padding: 10px 14px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
}

/* underline-grow hover */
.main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:not(.nav-cta):hover::after {
    transform: scaleX(1);
}

.main-nav .nav-cta {
    margin-left: 8px;
    padding: 11px 18px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    color: var(--white);
    background: var(--accent);
    box-shadow: 3px 3px 0 var(--ink);
    transition:
        transform 0.13s ease,
        box-shadow 0.13s ease;
}

.main-nav .nav-cta:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    color: var(--ink);
    background: var(--white);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* ------------------------------------------------------------------ hero */

.hero {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
    padding-top: 150px;
    padding-bottom: 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
    gap: 52px;
    align-items: center;
}

.hero h1 {
    margin-bottom: 4px;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.hero-lead {
    max-width: 56ch;
    margin-top: 26px;
    font-size: clamp(1.04rem, 1.6vw, 1.22rem);
    color: var(--ink-2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 48px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
}

.trust-row div {
    padding: 22px 20px;
    border-right: 1.5px solid var(--ink);
}

.trust-row div:last-child {
    border-right: 0;
}

.trust-row strong {
    display: block;
    margin-bottom: 6px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.04em;
    line-height: 1;
}

.trust-row span {
    display: block;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* hero visual — flat "build path" card */

.hero-visual {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
}

.journey {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-hard);
}

.journey-cap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
}

.journey-cap-marker {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    flex-shrink: 0;
}

.journey-cap-marker svg {
    width: 16px;
    height: 16px;
}

.journey-cap-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.journey-cap-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.journey-cap strong {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.1;
}

.journey-start {
    background: var(--paper);
    border-style: dashed;
}

.journey-start .journey-cap-marker {
    background: var(--paper);
    color: var(--muted);
}

.journey-finish {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.journey-finish .journey-cap-label {
    color: var(--accent);
}

.journey-finish .journey-cap-marker {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}

.journey-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 12px 0;
    list-style: none;
}

/* vertical rail connecting start → steps → finish */
.journey-steps::before {
    content: "";
    position: absolute;
    left: 32px;
    top: -10px;
    bottom: -10px;
    width: 0;
    border-left: 1.5px dashed var(--line-soft);
    z-index: 0;
}

.journey-step {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius);
    background: var(--white);
    z-index: 1;
    transition:
        transform 0.18s ease,
        background 0.18s ease;
}

.journey-step:hover {
    transform: translateX(4px);
    background: var(--paper);
}

.journey-week {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    font-weight: 700;
}

.journey-goal {
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.journey-ico {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
}

.journey-ico svg {
    width: 22px;
    height: 22px;
}

.journey-step:hover .journey-week {
    background: var(--accent);
    color: var(--white);
    border-color: var(--ink);
}

.journey-step:hover .journey-ico {
    background: var(--accent);
    color: var(--white);
}

/* ---------------------------------------------------------------- ticker */

.ticker {
    overflow: hidden;
    border-block: 1.5px solid var(--ink);
    color: var(--white);
    background: var(--ink);
}

.ticker-track {
    display: flex;
    width: max-content;
    gap: 0;
    padding: 16px 0;
    animation: marquee 30s linear infinite;
}

.ticker span {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding-left: 24px;
    color: var(--white);
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.45rem);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ticker span::after {
    content: "✸";
    color: var(--accent);
    font-size: 0.9em;
}

/* --------------------------------------------------------------- headings */

.section-heading {
    max-width: none;
    margin-bottom: 48px;
}

/* Headline spans the full section width — fewer, longer lines. */
.section-heading h2 {
    max-width: none;
}

/* Beside-content headings (split layouts) keep a tighter measure. */
.section-heading.compact {
    max-width: 38ch;
    margin-bottom: 0;
}

/* Slightly smaller in the narrow split column so long Russian words
   (разработчик, запускать) fit on a line instead of breaking mid-word. */
.section-heading.compact h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

.section-heading p {
    max-width: 56ch;
    margin-top: 22px;
    font-size: 1.06rem;
}

/* --------------------------------------------------------------- outcomes */

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

.outcome-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 26px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.outcome-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hard-sm);
}

.outcome-card.special {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
}

.outcome-card.special p {
    color: rgba(251, 250, 244, 0.7);
}

.outcome-card.special .card-index {
    color: var(--accent);
    border-color: rgba(251, 250, 244, 0.4);
}

.outcome-card.internship {
    grid-column: 1 / -1;
    min-height: 0;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 28px 32px;
    color: var(--white);
    background: var(--accent);
    border-color: var(--ink);
    box-shadow: var(--shadow-hard-sm);
}

.outcome-card.internship .card-index {
    margin: 0;
    flex: 0 0 auto;
    color: var(--white);
    border-color: rgba(251, 250, 244, 0.7);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.3rem;
    line-height: 1;
    padding-bottom: 2px;
}

.outcome-card.internship h3 {
    margin: 0;
    flex: 0 0 auto;
    max-width: 260px;
}

.outcome-card.internship p {
    margin: 0;
    color: rgba(251, 250, 244, 0.92);
    flex: 1 1 auto;
}

.outcome-card.internship:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0 var(--ink);
}

@media (max-width: 760px) {
    .outcome-card.internship {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .outcome-card.internship h3 {
        max-width: none;
    }
}

.card-index {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: auto;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    font-weight: 700;
}

.outcome-card h3 {
    margin-top: 28px;
    margin-bottom: 12px;
}

.outcome-card p {
    font-size: 0.96rem;
}

/* -------------------------------------------------------------------- lab */

.lab {
    width: 100%;
    max-width: none;
    padding-inline: 24px;
}

.lab-panel {
    width: min(var(--max), 100%);
    margin: 0 auto;
    padding: clamp(30px, 5vw, 60px);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    color: var(--white);
    background: var(--ink);
    box-shadow: var(--shadow-hard);
}

.lab-top {
    max-width: 60ch;
}

.lab-panel h2 {
    color: var(--white);
}

.lab-panel p {
    margin-top: 20px;
    color: rgba(251, 250, 244, 0.7);
    font-size: 1.06rem;
}

.lab-flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 44px;
}

.lab-flow span {
    display: grid;
    place-items: center;
    min-height: 88px;
    padding: 14px;
    border: 1.5px solid rgba(251, 250, 244, 0.4);
    border-radius: var(--radius);
    color: var(--white);
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    font-size: 0.86rem;
    text-align: center;
}

.lab-flow span:nth-child(even) {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(16px);
}

/* --------------------------------------------------------------- audience */

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.95fr);
    gap: 56px;
    align-items: start;
}

.audience-list {
    display: grid;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
}

.audience-list div {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    align-items: center;
    padding: 20px 22px;
    border-bottom: 1.5px solid var(--ink);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background 0.18s ease;
}

.audience-list div:last-child {
    border-bottom: 0;
}

.audience-list div:hover {
    background: var(--paper);
}

.audience-list span {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--white);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.76rem;
    font-weight: 700;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.audience-list div:hover span {
    background: var(--accent);
    color: var(--white);
}

/* --------------------------------------------------------------- timeline */

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

.week-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 22px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-lg);
    color: inherit;
    background: var(--white);
    text-align: left;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

.week-card span {
    display: block;
    margin-bottom: auto;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.week-card strong {
    display: block;
    margin-top: 30px;
    margin-bottom: 10px;
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 700;
    font-size: 1.14rem;
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.week-card small {
    display: block;
    color: var(--ink-2);
    font-size: 0.88rem;
    line-height: 1.5;
}

.week-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hard-sm);
}

/* --------------------------------------------------------------- projects */

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

.project-board article {
    min-height: 300px;
    padding: 28px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.project-board article:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-hard-sm);
}

.project-board h3 {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--ink);
}

.project-board ul,
.price-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-board li,
.price-card li {
    position: relative;
    padding-left: 26px;
    color: var(--ink-2);
    line-height: 1.5;
}

.project-board li::before,
.price-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
}

/* ----------------------------------------------------------------- format */

.format-card {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
    gap: 52px;
    align-items: center;
    padding: clamp(30px, 5vw, 56px);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-hard);
}

.format-card p {
    max-width: 52ch;
    margin-top: 18px;
    font-size: 1.04rem;
}

.session-stack {
    display: grid;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.session-stack div {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1.5px solid var(--ink);
    color: var(--ink);
    background: var(--white);
}

.session-stack div:last-child {
    border-bottom: 0;
}

.session-stack div:nth-child(even) {
    color: var(--white);
    background: var(--ink);
}

.session-stack strong {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
}

.session-stack span {
    font-weight: 600;
}

/* ----------------------------------------------------------------- pricing */

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

.price-card {
    display: flex;
    flex-direction: column;
    min-height: 540px;
    padding: 30px;
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-lg);
    background: var(--white);
}

.price-card.featured {
    color: var(--white);
    background: var(--ink);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow-hard);
    transform: translateY(-16px);
}

.price-card.featured p,
.price-card.featured li {
    color: rgba(251, 250, 244, 0.72);
}

.price-card.featured li::before {
    color: var(--accent);
}

.price-card.featured .price-label {
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.price-label {
    margin-bottom: 30px;
    padding: 7px 12px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
}

.price-card h3 {
    margin-bottom: 14px;
}

.price {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.price-card > p {
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 1.5px solid var(--line-soft);
    font-size: 0.96rem;
}

.price-card.featured > p {
    border-bottom-color: rgba(251, 250, 244, 0.2);
}

.price-card ul {
    margin-bottom: 28px;
}

.price-card .button {
    margin-top: auto;
}

/* The featured (dark) card needs a ghost button that reads on dark ink. */
.price-card.featured .button.primary {
    border-color: var(--white);
    box-shadow: 5px 5px 0 var(--accent);
}

.price-card.featured .button.primary:hover {
    box-shadow: 2px 2px 0 var(--accent);
}

/* -------------------------------------------------------------------- faq */

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 40px;
}

.faq-list details {
    border: 1.5px solid var(--ink);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    font-weight: 600;
    font-size: 1.04rem;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    color: var(--ink);
    background: var(--white);
    font-size: 1.4rem;
    line-height: 1;
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.25s ease,
        color 0.25s ease;
}

.faq-list details.is-open summary::after {
    transform: rotate(135deg);
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.faq-answer {
    overflow: hidden;
    contain: layout paint;
}

@media (max-width: 820px) {
    .faq-answer {
        will-change: height;
    }
}

.faq-list p {
    padding: 0 24px 24px;
    margin: 0;
    color: var(--ink-2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-list details.is-open p {
    opacity: 1;
    transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
    .faq-list summary::after,
    .faq-list p {
        transition: none;
    }
}

/* ------------------------------------------------------------------ apply */

.apply-card {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.74fr);
    gap: 48px;
    align-items: start;
    padding: clamp(30px, 5vw, 60px);
    border: 2px solid var(--ink);
    border-radius: var(--radius-lg);
    color: var(--white);
    background: var(--ink);
    box-shadow: var(--shadow-hard);
}

.apply-card h2 {
    color: var(--white);
}

.apply-card p {
    max-width: 52ch;
    margin-top: 18px;
    color: rgba(251, 250, 244, 0.72);
    font-size: 1.05rem;
}

.apply-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.apply-meta span {
    padding: 9px 14px;
    border: 1.5px solid rgba(251, 250, 244, 0.4);
    border-radius: 999px;
    color: var(--white);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    font-weight: 500;
}

.lead-form {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1.5px solid rgba(251, 250, 244, 0.4);
    border-radius: var(--radius-lg);
    background: rgba(251, 250, 244, 0.04);
}

.lead-form label {
    display: grid;
    gap: 8px;
}

.lead-form label span {
    color: var(--white);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.74rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lead-form input,
.lead-form select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1.5px solid rgba(251, 250, 244, 0.45);
    border-radius: var(--radius);
    color: var(--white);
    background: transparent;
    outline: 0;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.lead-form input::placeholder {
    color: rgba(251, 250, 244, 0.42);
}

.lead-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23fbfaf4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}

.lead-form select::-ms-expand {
    display: none;
}

.lead-form select option {
    color: var(--ink);
}

.lead-form input:focus,
.lead-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 33, 255, 0.4);
}

.lead-form .is-invalid {
    border-color: #ff6a3d;
    box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.25);
}

.lead-form .button.primary {
    border-color: var(--white);
    box-shadow: 5px 5px 0 var(--accent);
}

.lead-form .button.primary:hover {
    box-shadow: 2px 2px 0 var(--accent);
}

.form-note {
    min-height: 42px;
    margin: 0 !important;
    color: rgba(251, 250, 244, 0.6) !important;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem !important;
    line-height: 1.5 !important;
}

.form-note.success {
    color: #8effb0 !important;
}

.form-note.error {
    color: #ff9b7a !important;
}

/* ----------------------------------------------------------------- footer */

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 0 48px;
    border-top: 1.5px solid var(--ink);
}

.site-footer div {
    display: grid;
    gap: 4px;
}

.site-footer strong {
    font-family: "Bricolage Grotesque", sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.site-footer span {
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
}

.site-footer a {
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

/* --------------------------------------------------------------- reveal fx */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 11px rgba(42, 33, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(42, 33, 255, 0);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1060px) {
    .hero-grid,
    .split-layout,
    .format-card,
    .apply-card {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 8vw, 4.4rem);
        max-width: 100%;
    }

    .hero-visual {
        max-width: 440px;
        margin-top: 4px;
    }

    .outcome-grid,
    .pricing-grid,
    .project-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .price-card.featured {
        transform: none;
    }
}

@media (max-width: 820px) {
    .section-pad {
        width: min(100% - 32px, var(--max));
        padding: 76px 0;
    }

    .hero {
        width: min(100% - 32px, var(--max));
        padding-top: 120px;
        padding-bottom: 64px;
    }

    .brand-copy small {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 78px;
        display: grid;
        gap: 6px;
        padding: 14px;
        border: 2px solid var(--ink);
        border-radius: var(--radius-lg);
        color: var(--ink);
        background: var(--paper);
        box-shadow: var(--shadow-hard);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition:
            opacity 0.2s ease,
            transform 0.2s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        padding: 14px 16px;
    }

    .main-nav a:not(.nav-cta)::after {
        display: none;
    }

    .main-nav .nav-cta {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }

    .trust-row,
    .outcome-grid,
    .pricing-grid,
    .project-board,
    .timeline {
        grid-template-columns: 1fr;
    }

    .trust-row div {
        border-right: 0;
        border-bottom: 1.5px solid var(--ink);
    }

    .trust-row div:last-child {
        border-bottom: 0;
    }

    .hero-actions .button {
        width: 100%;
    }

    .lab-flow {
        grid-template-columns: 1fr 1fr;
    }

    .lab-flow span:nth-child(even) {
        transform: none;
    }

    .session-stack div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .section-pad {
        width: min(100% - 24px, var(--max));
    }

    .hero {
        width: min(100% - 24px, var(--max));
    }

    .hero-lead,
    .section-heading p,
    .format-card p,
    .apply-card p,
    .lab-panel p {
        font-size: 1rem;
    }

    .outcome-card,
    .project-board article,
    .price-card {
        min-height: auto;
        padding: 24px;
    }

    .lab-flow {
        grid-template-columns: 1fr;
    }

    .lab-flow span:nth-child(even) {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
