:root {
    --ink: #0a141f;
    --ink-2: #0f1e2e;
    --panel: #142639;
    --panel-2: #182c41;
    --line: #24405c;
    --line-soft: #1a2f44;
    --blueprint: #6fa8dc;
    --blueprint-deep: #3e7cb1;
    --amber: #e8a33d;
    --amber-deep: #c9821f;
    --paper: #e8edf2;
    --paper-2: #dbe4ec;
    --ink-on-paper: #14212f;
    --text: #dce8f2;
    --text-muted: #8fa7bd;
    --text-dim: #6f88a0;

    --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
    --font-body: "Inter", -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", monospace;

    --radius: 3px;
    --max-width: 1180px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --max-width: 1180px;
    /* try 1360px or 1440px */

}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

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

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

a {
    color: inherit;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin: 0;
}

.wrap {
    max-width: min(1440px, 92vw);
    margin: 0 auto;
    padding: 0 32px;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blueprint);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--blueprint);
    display: inline-block;
}

section {
    position: relative;
    padding: 108px 0;
}

/* blueprint grid backdrop for dark sections */
.grid-bg {
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center top;
}

.grid-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(111, 168, 220, 0.10), transparent 70%);
    pointer-events: none;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    padding: 14px 26px;
    border-radius: var(--radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
    text-decoration: none;
}

.btn:hover {
    border-color: var(--blueprint);
    color: var(--blueprint);
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 2px solid var(--blueprint);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--amber);
    border-color: var(--amber);
    color: #1a1206;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--amber-deep);
    border-color: var(--amber-deep);
    color: #1a1206;
}

/* ==========================================================
   NAV
   ========================================================== */
header.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 20, 31, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: 0.02em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .bracket {
    color: var(--amber);
}

.nav-links {
    display: flex;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.02em;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
    position: relative;
}

.nav-links a:hover {
    color: var(--blueprint);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: var(--radius);
    padding: 8px 10px;
    cursor: pointer;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    padding: 152px 0 80px;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.22;
    font-weight: 600;
    margin: 18px 0 18px;
    color: #e9eef4;
    letter-spacing: -0.005em;
}

.hero h1 .accent {
    color: var(--blueprint);
}

.hero-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 48ch;
    margin-bottom: 32px;
}

.hero-sub a {
    color: var(--blueprint);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-topics-inline {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.03em;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.hero-topics-inline .sep {
    margin: 0 8px;
    opacity: 0.5;
}

.spec-row {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    max-width: 480px;
}

.spec-item {
    flex: 1 1 110px;
    padding: 14px 18px 0 0;
}

.spec-item:last-child {
    border-right: none;
}

.spec-item .val {
    font-family: var(--font-display);
    font-size: 21px;
    color: var(--text);
    display: block;
}

.spec-item .lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-dim, var(--text-muted));
}

.hero-portrait-wrap {
    display: flex;
    justify-content: center;
}

.hero-portrait-frame {
    width: min(100%, 280px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
}

.hero-portrait-frame img {
    width: 100%;
    display: block;
    opacity: 0.94;
}

/* ==========================================================
   TOPICS (Spezialgebiete)
   ========================================================== */
.topics-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.topic-block {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--panel);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.topic-block-media {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
}

.topic-block-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-block-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 20, 31, 0) 40%, rgba(10, 20, 31, 0.92) 100%);
}

.topic-block-media h3 {
    position: absolute;
    bottom: 14px;
    left: 18px;
    font-size: 22px;
    color: #f3f7fb;
    z-index: 2;
    text-transform: capitalize;
}

.topic-block-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.topic-subtopics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.topic-subtopics li {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-muted);
    border: 1px solid var(--line-soft);
    border-radius: 2px;
    padding: 5px 9px;
}

.topic-block-body .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ==========================================================
   ABOUT GRID
   ========================================================== */
.about-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.about-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line-soft);
}

.about-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-card-text {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
}

.about-card-text h3 {
    font-size: 14.5px;
    color: #f3f7fb;
    line-height: 1.35;
    margin-bottom: 7px;
}

/* base gradient: just enough to keep the title legible */
.about-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 20, 31, 0) 55%, rgba(10, 20, 31, 0.92) 100%);
    transition: background 0.3s var(--ease);
}

/* on hover: darken the whole tile so the full text is readable */
.about-card:hover::after {
    background: rgba(10, 20, 31, 0.93);
}

/* description hidden by default, revealed only on hover */
.about-card-text p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.55;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease), opacity 0.25s var(--ease) 0.05s;
}

.about-card:hover .about-card-text p {
    max-height: 220px;
    opacity: 1;
}

/* ==========================================================
   DISCIPLINE LEGEND STRIP
   ========================================================== */
.legend {
    padding: 26px 0;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.legend-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
}

.legend-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.legend-tag .dot {
    width: 6px;
    height: 6px;
    background: var(--blueprint);
    border-radius: 50%;
    flex: none;
}

/* ==========================================================
   PROCESS — bullet timeline above each step
   ========================================================== */
.process-list {
    position: relative;
    margin-top: 76px;
    padding-top: 70px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0 24px;
}

/* winding timeline rail — an SVG wave instead of a straight line */
.process-list::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 60' preserveAspectRatio='none'%3E%3Cpath d='M100,10 C200,10 200,50 300,50 C400,50 400,10 500,10 C600,10 600,50 700,50 C800,50 800,10 900,10' fill='none' stroke='%2324405c' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.process-step {
    position: relative;
    padding: 0 20px 0 0;
}

.process-step .num {
    text-align: center;
    display: block;
    margin-bottom: 14px;
}

.process-dot {
    position: absolute;
    top: -24px;
    left: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--ink);
    border: 2px solid var(--amber);
    z-index: 1;
    animation: dot-breathe 2.8s ease-in-out infinite;
}

.process-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--line-soft);
}

.process-step:nth-child(2) .process-dot {
    animation-delay: 0.4s;
}

.process-step:nth-child(3) .process-dot {
    animation-delay: 0.8s;
}

.process-step:nth-child(4) .process-dot {
    animation-delay: 1.2s;
}

.process-step:nth-child(5) .process-dot {
    animation-delay: 1.6s;
}

@keyframes dot-breathe {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(232, 163, 61, 0.55);
    }

    50% {
        box-shadow: 0 0 9px 4px rgba(232, 163, 61, 0.55);
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-dot {
        animation: none;
    }
}

/* alternate peak/trough so each dot sits exactly on the wave */
.process-step:nth-child(odd) .process-dot {
    top: -66px;
}

.process-step:nth-child(even) .process-dot {
    top: -26px;
}

.process-dot::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--line-soft);
}

.process-step .num {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    /* centered under the dot, not offset right */
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--amber);
    white-space: nowrap;
}

.process-step:nth-child(odd) .num {
    top: -52px;
}

.process-step:nth-child(even) .num {
    top: -12px;
}

.process-step h4 {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 10px;
    margin-top: 25px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================
   SECTION HEADS
   ========================================================== */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    margin-top: 14px;
    color: #f3f7fb;
}

.section-head .desc {
    max-width: 42ch;
    color: var(--text-muted);
    font-size: 15px;
}

/* ==========================================================
   CAROUSEL
   ========================================================== */
.carousel-section {
    padding-bottom: 96px;
}

.carousel-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.swipe-hint {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    margin-right: 6px;
}

.filter-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-right: -4px;
}

.filter-select {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 34px 10px 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238fa7bd'%3E%3Cpath d='M5.5 7.5l4.5 4.5 4.5-4.5' stroke='%238fa7bd' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.2s var(--ease);
}

.filter-select:hover,
.filter-select:focus {
    border-color: var(--blueprint);
    outline: none;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.carousel-btn:hover {
    border-color: var(--blueprint);
    color: var(--blueprint);
}

.carousel-btn:focus-visible {
    outline: 2px solid var(--blueprint);
    outline-offset: 2px;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 24px;
    padding: 32px 4px 20px;
    margin: 0 -4px;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.carousel-viewport::-webkit-scrollbar {
    display: none;
}

.carousel-viewport.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.carousel-viewport.dragging .course-card {
    pointer-events: none;
}

.course-card {
    scroll-snap-align: start;
    flex: 0 0 clamp(260px, 32vw, 340px);
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.course-card:hover {
    border-color: var(--blueprint-deep);
    transform: translateY(-4px);
}

.course-media {
    aspect-ratio: 4 / 3;
    background: var(--ink-2);
    display: block;
    position: relative;
    overflow: hidden;
}

.course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ease);
}

.course-card:hover .course-media img {
    transform: scale(1.045);
}

.course-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 20, 31, 0) 55%, rgba(10, 20, 31, 0.88) 100%);
    pointer-events: none;
}

.course-format-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(10, 20, 31, 0.75);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 4px 8px;
    border-radius: 2px;
    z-index: 2;
}

.course-levels-tag {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    z-index: 2;
}

.course-levels-tag span {
    color: var(--amber);
}

.course-level {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(10, 20, 31, 0.75);
    border: 1px solid var(--line);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 2px;
}

.course-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.course-field {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amber);
}

.course-body h3 {
    font-size: 19px;
    color: var(--text);
    line-height: 1.3;
}

.course-desc {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.course-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim, var(--text-muted));
    border-top: 1px solid var(--line-soft);
    padding-top: 12px;
}

.course-outcomes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.course-outcomes li {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.course-outcomes li::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: 6px;
    background: var(--blueprint);
    flex: none;
}

.carousel-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s var(--ease), width 0.2s var(--ease);
}

.carousel-dot.active {
    background: var(--blueprint);
    width: 18px;
    border-radius: 3px;
}

/* ==========================================================
   ABOUT / CREDENTIALS
   ========================================================== */
.about-section {
    background: var(--ink-2);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-copy p {
    color: var(--text-muted);
    font-size: 16px;
    margin-top: 20px;
}

.about-copy p+p {
    margin-top: 14px;
}

.about-copy h2 {
    font-size: clamp(26px, 3vw, 34px);
    margin-top: 14px;
    color: #f3f7fb;
}

.spec-sheet {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.spec-sheet .row {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-mono);
    font-size: 13px;
}

.spec-sheet .row:last-child {
    border-bottom: none;
}

.spec-sheet .k {
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.spec-sheet .v {
    color: var(--text);
    text-align: right;
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 28px 26px;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: border-color 0.25s var(--ease);
}

.testimonial:hover {
    border-color: var(--blueprint-deep);
}

.testimonial-logo {
    height: 34px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.testimonial-logo img {
    height: 100%;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.85;
}

.testimonial-quote {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-muted);
    flex: 1;
}

.testimonial-name {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    border-top: 1px solid var(--line-soft);
    padding-top: 14px;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-section {
    background: var(--paper);
    color: var(--ink-on-paper);
}

.contact-section .eyebrow {
    color: var(--blueprint-deep);
}

.contact-section .eyebrow::before {
    background: var(--blueprint-deep);
}

.contact-section h2 {
    color: var(--ink-on-paper);
}

.contact-section .section-head .desc {
    color: #4a5c6c;
}

.contact-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    margin-top: 40px;
}

.contact-info p {
    color: #4a5c6c;
    font-size: 15px;
    margin-bottom: 28px;
}

.contact-detail {
    margin-bottom: 22px;
}

.contact-detail .k {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blueprint-deep);
    display: block;
    margin-bottom: 6px;
}

.contact-detail .v {
    font-size: 16px;
    color: var(--ink-on-paper);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a5c6c;
    margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--paper-2);
    border-radius: var(--radius);
    padding: 13px 14px;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--ink-on-paper);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blueprint-deep);
    box-shadow: 0 0 0 3px rgba(62, 124, 177, 0.15);
}

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

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-image {
    border: 1px solid var(--paper-2);
    border-radius: var(--radius);
    background: #fff;
    display: block;
    width: 150px;
    height: 50px;
}

.captcha-refresh {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    border: 1px solid var(--paper-2);
    background: #fff;
    color: var(--ink-on-paper);
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    flex: none;
    transition: border-color 0.2s var(--ease);
}

.captcha-refresh:hover {
    border-color: var(--blueprint-deep);
}

.captcha-input {
    flex: 1 1 160px;
    min-width: 140px;
}

.form-foot {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.form-note {
    font-size: 12.5px;
    color: #6b7c8b;
}

.form-status {
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 12px 16px;
    border-radius: var(--radius);
    display: none;
}

.form-status.show {
    display: block;
}

.form-status.ok {
    background: #dff1e4;
    color: #1f6b3a;
    border: 1px solid #b7ddc1;
}

.form-status.err {
    background: #fbe1df;
    color: #9a2f26;
    border: 1px solid #f0bdb8;
}

/* ==========================================================
   FOOTER
   ========================================================== */
footer {
    background: var(--ink);
    padding: 40px 0;
    border-top: 1px solid var(--line-soft);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
}

.footer-links a:hover {
    color: var(--blueprint);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px) {

    .process-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
        padding-top: 0;
    }

    .process-list::before {
        display: none;
    }

    .process-step {
        padding: 30px 20px 0 0;
        border-top: 2px solid var(--line);
    }

    .process-dot {
        display: none;
    }

    .process-step .num {
        position: static;
        transform: none;
        display: block;
        margin-bottom: 14px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-portrait-wrap {
        order: -1;
        max-width: 220px;
        margin: 0 auto 8px;
    }

    .process-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 20px;
    }

    .process-step {
        padding-right: 0;
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }

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

    .about-grid {
        grid-template-columns: repeat(5, minmax(190px, 1fr));
        overflow-x: auto;
        padding-bottom: 8px;
    }

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

@media (max-width: 720px) {


    /* Mobile: keep it simple — titles only, no hover/tap overlay text.
   Touch devices don't have real hover, so the expand animation can
   get stuck open/half-open; showing only the title avoids that. */
    .about-card-text p,
    .about-card:hover .about-card-text p,
    .about-card:focus-within .about-card-text p {
        display: none;
    }

    .about-card-text h3,
    .about-card:hover .about-card-text h3,
    .about-card:focus-within .about-card-text h3 {
        margin-bottom: 0;
    }

    .about-card::after,
    .about-card:hover::after,
    .about-card:focus-within::after {
        background: linear-gradient(180deg, rgba(10, 20, 31, 0) 55%, rgba(10, 20, 31, 0.92) 100%);
    }

    .nav-links,
    .nav-cta .btn:not(.btn-primary) {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    section {
        padding: 72px 0;
    }

    .hero {
        padding-top: 132px;
    }

    .spec-row {
        border-top: none;
    }

    .spec-item {
        flex: 1 1 45%;
        border-right: none;
        border-top: 1px solid var(--line-soft);
        padding-top: 14px;
    }

    .process-list {
        grid-template-columns: 1fr;
    }

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

    .legend-inner {
        justify-content: flex-start;
    }

    .about-grid {
        grid-template-columns: repeat(5, minmax(170px, 1fr));
    }

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

    .carousel-controls {
        flex-wrap: wrap;
        row-gap: 10px;
    }
}

@media (max-width: 520px) {
    .wrap {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 34px;
    }
}

/* focus visibility baseline */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--blueprint);
    outline-offset: 2px;
}


/* courses page */

.courses-hero {
    padding: 152px 0 8px;
}

.courses-hero .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 22px;
}

.courses-hero .back-link:hover {
    color: var(--blueprint);
}

.courses-hero h1 {
    font-size: clamp(30px, 4vw, 46px);
    color: #f3f7fb;
    margin: 12px 0 12px;
}

.courses-hero .desc {
    color: var(--text-muted);
    font-size: 15.5px;
    max-width: 62ch;
}

.courses-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 6px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
}

.courses-count {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-dim);
}

.course-tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0 110px;
}

.course-tile-grid .course-card {
    width: 100%;
}

@media (max-width: 720px) {
    .courses-hero {
        padding-top: 120px;
    }

    .course-tile-grid {
        grid-template-columns: 1fr;
    }
}


/* Legal */
.legal-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 160px 32px 100px;
}

.legal-wrap h1 {
    font-size: clamp(30px, 4vw, 44px);
    color: #f3f7fb;
    margin-bottom: 8px;
}

.legal-wrap h2 {
    font-size: 20px;
    color: var(--text);
    margin: 40px 0 12px;
}

.legal-wrap p,
.legal-wrap li {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.legal-wrap a {
    color: var(--blueprint);
}

.back-link {
    display: inline-block;
    margin-top: 40px;
}