/* =========================
   GLOBAL
========================= */

:root {
    --color-primary: #7343d1;
    --color-primary-hover: #5f31bb;
    --color-primary-active: #7b49e0;
    --color-primary-soft: #f3edff;
    --color-button: #5e3c9e;         /* filled buttons */
    --color-button-hover: #4b2f82;
    --color-button-light: #7552c2;   /* button hover */
    --color-ink: #1f1b3d;
    --color-logo: #2b2560;
    --color-text: #5b5775;
    --color-border: #ebe7f3;
    --color-white: #ffffff;

    --font-base: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --header-gap: 36px;              /* outer space around the floating navbar */
    --header-height: 92px;           /* height of the navbar card itself */
    --topbar-height: 40px;           /* scrolling announcement bar */
    --header-space: calc(var(--topbar-height) + var(--header-height));   /* navbar sits directly under the top bar */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --transition: 0.35s var(--ease);
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);

    --section-radius: 40px;          /* rounded hero bottom / footer top */
    --color-deep: #361d5f;
    --color-mauve: #684468;
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}

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

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

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

body.nav-locked {
    overflow: hidden;
}

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

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

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* Use on the first section of pages without a full-bleed hero behind the header */
.header-offset {
    padding-top: var(--header-space);
}

/* =========================
   HEADER
========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.site-header > .header-container {
    margin: 0;
    transition:
        margin var(--transition),
        padding var(--transition),
        border-radius var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

/* =========================
   ANNOUNCEMENT BAR
========================= */

/* The bar is only rendered on the home page; elsewhere it takes no space */
body.no-topbar {
    --topbar-height: 0px;
    --header-space: var(--header-height);
}

.topbar {
    position: relative;
    height: var(--topbar-height);
    overflow: hidden;
    color: var(--color-white);
    background: linear-gradient(90deg, #f57433 0%, #e24e66 32%, #91399c 70%, #5e3c9e 100%);
}

/* Soft fade at both edges */
.topbar::before,
.topbar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 48px;
    pointer-events: none;
}

.topbar::before { left: 0; background: linear-gradient(90deg, #f57433, transparent); }
.topbar::after { right: 0; background: linear-gradient(270deg, #5e3c9e, transparent); }

.topbar-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: topbar-scroll 60s linear infinite;
}

.topbar:hover .topbar-track {
    animation-play-state: paused;
}

.topbar-list {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.topbar-list li {
    display: flex;
    align-items: center;
    gap: 56px;
    padding-right: 56px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

/* Graduation cap between messages (black PNG used as a mask, filled white) */
.topbar-list li::after {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-mask: url('../assets/images/hero-section/graduation-cap.png') center / contain no-repeat;
    mask: url('../assets/images/hero-section/graduation-cap.png') center / contain no-repeat;
}

/* Two identical lists: moving by one list width (-50%) loops seamlessly */
@keyframes topbar-scroll {
    to { transform: translateX(-50%); }
}

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

.header-container {
    position: relative;
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    padding: 18px var(--header-gap);
    background: var(--color-white);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 30px rgba(31, 27, 61, 0.06);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition:
        padding var(--transition),
        border-radius var(--transition),
        background-color var(--transition),
        box-shadow var(--transition);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    color: var(--color-logo);
}

.site-logo-img {
    width: auto;
    height: 50px;
}

/* =========================
   NAVIGATION
========================= */

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 44px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-ink);
    white-space: nowrap;
    transition: color 0.25s var(--ease);
}

.nav-caret {
    width: 13px;
    height: 13px;
    transition: transform 0.3s var(--ease);
}

/* Courses is a key offering: slightly stronger weight */
.nav-item.is-featured > .nav-link {
    font-weight: 700;
}

.nav-item.is-active > .nav-link,
.nav-link:hover,
.nav-item.is-open > .nav-link {
    color: var(--color-primary-active);
}

.mobile-nav-actions {
    display: none;
}

/* =========================
   DROPDOWNS
========================= */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 30px);
    left: 50%;
    z-index: 20;
    min-width: 210px;
    padding: 10px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(31, 27, 61, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition:
        opacity 0.25s var(--ease),
        transform 0.25s var(--ease),
        visibility 0.25s;
}

/* Invisible bridge so the menu stays open while the pointer travels down to it */
.dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 32px;
}

.dropdown-link {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-ink);
    border-radius: 10px;
    white-space: nowrap;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.dropdown-link:hover {
    padding-left: 18px;
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

@media (hover: hover) and (min-width: 1280px) {
    .nav-item.has-dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    .nav-item.has-dropdown:hover .nav-caret {
        transform: rotate(180deg);
    }
}

.nav-item.is-open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-item.is-open .nav-caret {
    transform: rotate(180deg);
}

/* Mega menu (Courses): anchored to the whole header bar rather than the menu item */
.nav-item.has-mega {
    position: static;
}

.mega-menu {
    top: calc(100% + 14px);
    width: min(860px, calc(100vw - 2 * var(--header-gap)));
    padding: 22px;
    border-radius: 22px;
    box-shadow: 0 30px 60px -20px rgba(31, 27, 61, 0.22);
}

/* Taller bridge: the menu sits below the header bar, further from the link */
.mega-menu::before {
    height: 50px;
}

/* 3 x 3: eight courses + the "View all" tile */
.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    /* Scroll inside the grid on short screens; overflow on .mega-menu would clip its hover bridge */
    max-height: calc(100vh - var(--header-space) - 80px);
    overflow-y: auto;
}

.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    height: 100%;
    padding: 14px;
    border-radius: 14px;
    transition: background-color 0.2s var(--ease);
}

.mega-item:hover,
.mega-item:focus-visible {
    background: #f7f4fd;
}

.mega-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 8px 16px -8px var(--glow, rgba(0, 0, 0, 0.35));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mega-item:hover .mega-icon { transform: scale(1.08); }

.mega-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tone-red    { background: linear-gradient(135deg, #ff7a7a, #e8445a); --glow: rgba(232, 68, 90, 0.55); }
.tone-green  { background: linear-gradient(135deg, #4fd88a, #1fae5b); --glow: rgba(31, 174, 91, 0.5); }
.tone-purple { background: linear-gradient(135deg, #c66be8, #8d3fc4); --glow: rgba(141, 63, 196, 0.5); }
.tone-violet { background: linear-gradient(135deg, #9d7bff, #6a3fd0); --glow: rgba(106, 63, 208, 0.5); }
.tone-blue   { background: linear-gradient(135deg, #4bb3ff, #1f6fe0); --glow: rgba(31, 111, 224, 0.5); }
.tone-cyan   { background: linear-gradient(135deg, #46d6e8, #1497c4); --glow: rgba(20, 151, 196, 0.5); }
.tone-orange { background: linear-gradient(135deg, #ffad5a, #f57433); --glow: rgba(245, 116, 51, 0.5); }
.tone-pink   { background: linear-gradient(135deg, #ff86bd, #e24e8c); --glow: rgba(226, 78, 140, 0.5); }

.mega-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mega-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-ink);
    transition: color 0.2s var(--ease);
}

.mega-item:hover .mega-name { color: var(--color-button); }

.mega-badge {
    padding: 2px 7px;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: #f59e2e;
    border-radius: 5px;
}

.mega-text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--color-text);
}

/* "View all" tile fills the last cell */
.mega-all-cell {
    display: flex;
    padding: 4px;
}

.mega-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 70px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-button);
    background: #f1ebfd;
    border-radius: 14px;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.mega-all span {
    font-size: 18px;
    transition: transform 0.25s var(--ease);
}

.mega-all:hover {
    color: var(--color-white);
    background: var(--color-button);
}

.mega-all:hover span {
    transform: translateX(4px);
}

/* =========================
   HEADER BUTTONS
========================= */

.header-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 20px;
}

.btn-demo {
    --btn-px: 26px;
    height: 55px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* =========================
   BUTTONS (shared style for every button)
   Pill button with a compass icon that spins on hover.
   Markup: <a class="btn-fx"><svg class="btn-icon" ...></svg>Label</a>
========================= */

.btn-fx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 var(--btn-px, 24px) 0 calc(var(--btn-px, 24px) - 8px);
    line-height: 1;
    white-space: nowrap;
    color: var(--color-white);
    background-color: var(--color-button);
    border: none;
    border-radius: 999px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.116);
    cursor: pointer;
    transition: background-color 0.5s, transform 0.2s;
}

.btn-icon {
    flex-shrink: 0;
    width: 1.35em;
    height: 1.35em;
    fill: currentColor;
    transition: transform 1.5s;
}

.btn-fx:hover,
.btn-fx:focus-visible {
    background-color: var(--color-button-light);
}

.btn-fx:hover .btn-icon,
.btn-fx:focus-visible .btn-icon {
    transform: rotate(250deg);
}

.btn-fx:active {
    transform: scale(0.97);
}

.nav-toggle {
    display: none;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    transition: background-color 0.3s var(--ease);
}

.nav-toggle span {
    position: absolute;
    left: 14px;
    width: 20px;
    height: 2px;
    background: var(--color-ink);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 29px; }

.site-header.menu-open .nav-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(20, 12, 46, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
}

.nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   STICKY HEADER
========================= */

.site-header.scrolled > .header-container {
    margin: 0;
}

.site-header.scrolled .header-container {
    box-shadow: 0 10px 34px rgba(31, 27, 61, 0.12);
}

/* =========================
   PAGE (demo home)
========================= */

.hero {
    position: relative;
    padding: calc(var(--header-space) + 90px) 24px 120px;
    color: var(--color-white);
    text-align: center;
    border-radius: 0 0 var(--section-radius) var(--section-radius);
    background:
        var(--noise),
        radial-gradient(ellipse 45% 60% at 0% 0%, rgba(150, 80, 130, 0.6), transparent 70%),
        radial-gradient(ellipse 75% 55% at 100% 100%, var(--color-mauve) 0%, rgba(104, 68, 104, 0.85) 40%, transparent 80%),
        linear-gradient(100deg, #3a1f68 0%, var(--color-deep) 55%, #4a2a60 100%);
}

.hero h1 {
    max-width: 820px;
    margin: 0 auto 20px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 36px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
}

/* Shorter banner for inner pages (About, Blog, Contact, ...) */
.page-hero {
    padding: calc(var(--header-space) + 70px) 24px 90px;
}

.page-hero p {
    margin-bottom: 0;
}

/* Keep the banner and footer apart while a page has no other content yet */
.page-hero:last-child {
    margin-bottom: 100px;
}

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section h2 {
    margin: 0 0 40px;
    font-size: 40px;
    color: var(--color-ink);
    letter-spacing: -0.02em;
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.card {
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-white);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--color-ink);
}

/* =========================
   HOME HERO
========================= */

.home-hero {
    --hero-ink: #0f0d1a;
    --hero-muted: #4a4662;
    --hero-radius: clamp(36px, 6vw, 96px);

    position: relative;
    display: flex;
    flex-direction: column;
    min-height: clamp(560px, 100svh, 960px);   /* fills the first view, grows only if content needs it */
    overflow: hidden;
    padding: calc(var(--header-space) + clamp(12px, 3vh, 40px)) 42px 0;
    background: #ffffff;
    border-radius: 0 0 var(--hero-radius) var(--hero-radius);
}

/* Two columns: content left, students right */
.home-hero-inner {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(24px, 3vw, 56px);
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.hero-content {
    max-width: 680px;
    padding: clamp(8px, 2vh, 24px) 0 clamp(28px, 6vh, 72px);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* margin-bottom: clamp(12px, 2.2vh, 20px); */
    /* padding: 7px 14px; */
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
    /* background: rgba(115, 67, 209, 0.08); */
    /* border: 1px solid rgba(115, 67, 209, 0.14); */
    /* border-radius: 8px; */
}

.hero-eyebrow img {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.home-hero-title {
    margin: 0 0 clamp(12px, 2.2vh, 20px);
    font-size: clamp(34px, min(4vw, 7vh), 62px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.home-hero-title > span {
    display: block;
    white-space: nowrap;
}

.hero-title-dark {
    color: var(--hero-ink);
}

.hero-title-accent {
    padding-bottom: 0.06em;   /* room for descenders with background-clip */
    color: var(--hero-ink);
    background: linear-gradient(var(--hero-ink), var(--hero-ink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    max-width: 600px;
    margin: 0 0 clamp(18px, 3.4vh, 30px);
    font-size: 17px;
    line-height: 1.65;
    color: var(--hero-muted);
}

.hero-tech {
    margin: 0 0 clamp(20px, 3.4vh, 30px);
}

.hero-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: var(--color-white);
    border: 1px solid rgba(15, 13, 26, 0.06);
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(46, 26, 94, 0.07);
    transition: transform 0.25s var(--ease-premium), box-shadow 0.25s var(--ease-premium), border-color 0.25s var(--ease-premium);
}

.tech-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.tech-icon:hover {
    border-color: rgba(115, 67, 209, 0.3);
    box-shadow: 0 10px 22px rgba(46, 26, 94, 0.14);
    transform: translateY(-3px);
}

/* Enter with the paragraph, icons popping in one after another */
.tech-icon {
    animation: rise-in 0.5s var(--ease-premium) both;
}

.tech-icon:nth-child(1) { animation-delay: 0.75s; }
.tech-icon:nth-child(2) { animation-delay: 0.8s; }
.tech-icon:nth-child(3) { animation-delay: 0.85s; }
.tech-icon:nth-child(4) { animation-delay: 0.9s; }
.tech-icon:nth-child(5) { animation-delay: 0.95s; }
.tech-icon:nth-child(6) { animation-delay: 1s; }
.tech-icon:nth-child(7) { animation-delay: 1.05s; }
.tech-icon:nth-child(8) { animation-delay: 1.1s; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-hero-primary {
    --btn-px: 26px;
    height: 54px;
    font-size: 16px;
    font-weight: 600;
}

/* Students: fill the column height, anchored to the bottom, on a soft circular glow */
.hero-visual {
    position: relative;
    container-type: size;
    align-self: stretch;
    min-height: 420px;
}

.hero-visual::before,
.hero-visual::after {
    content: '';
    position: absolute;
    left: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    translate: -50% 0;   /* translate (not transform) so scale/rotate animations stay centred */
}

/* Soft glow */
.hero-visual::before {
    bottom: -12%;
    width: min(118cqw, 118cqh);
    background: none;
}

/* Main circle */
.hero-visual::after {
    bottom: 4%;
    width: min(84cqw, 80cqh);
    background: linear-gradient(180deg, #ffffff 0%, #ebe4f8 100%);
}

/* Thin dashed orbit around the circle */
.hero-orbit {
    position: absolute;
    left: 50%;
    bottom: calc(4% - min(4cqw, 4cqh));
    width: min(92cqw, 88cqh);
    height: auto;
    translate: -50% 0;
    fill: none;
    stroke: rgba(115, 67, 209, 0.22);
    stroke-width: 0.3;
    stroke-dasharray: 1.2 1.6;
}

.hero-burst {
    position: absolute;
    top: 6%;
    right: 4%;
    z-index: 2;
    width: clamp(40px, 4vw, 60px);
    height: auto;
    color: var(--color-primary);
    opacity: 0.85;
}

.hero-visual picture:not(.hero-burst) {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.hero-burst img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-visual picture:not(.hero-burst) img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
}

/* =========================
   HERO ANIMATIONS
   Entrance sequence (≈1s), then slow ambient loops.
   Uses the individual `translate` / `scale` / `rotate` properties so the
   animations compose with existing transforms (centering, hover lifts, parallax).
========================= */


@keyframes fade-in {
    from { opacity: 0; }
}

@keyframes rise-in {
    from { opacity: 0; translate: 0 18px; }
}

@keyframes line-reveal {
    from { opacity: 0; translate: 0 0.35em; clip-path: inset(0 0 100% 0); }
    to   { opacity: 1; translate: 0 0; clip-path: inset(0 0 -20% 0); }
}

@keyframes text-shimmer {
    from { background-position: 150% 0, 0 0; }
    to   { background-position: -60% 0, 0 0; }
}

@keyframes soft-float {
    50% { translate: 0 var(--float, -8px); }
}

@keyframes students-in {
    from { opacity: 0; translate: 0 30px; }
}

@keyframes breathe {
    50% { scale: 1.04; opacity: 0.75; }
}

@keyframes spin {
    to { rotate: 360deg; }
}

@keyframes burst-pulse {
    50% { scale: 1.08; opacity: 0.6; }
}

body:has(.home-hero) .site-header {
    animation: fade-in 0.5s var(--ease-premium) both;
}

.home-hero {
    --float: -8px;
}

/* Badge: animation disabled (kept for reference) */
.home-hero .hero-eyebrow {
    --float: -4px;
    /* animation: rise-in 0.6s var(--ease-premium) 0.2s both, soft-float 3s ease-in-out 1.4s infinite; */
}

/* Headline lines: masked reveal, second line ~150ms later */
.hero-title-dark {
    animation: line-reveal 0.7s var(--ease-premium) 0.35s both;
}

/* One-time shimmer: a light band sweeps across the gradient text, then rests off-screen */
.hero-title-accent {
    background-image:
        linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.75) 50%, transparent 60%),
        linear-gradient(var(--hero-ink), var(--hero-ink));
    background-size: 250% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: -60% 0, 0 0;
    animation:
        line-reveal 0.8s var(--ease-premium) 0.5s both,
        text-shimmer 1.4s ease-in-out 1.2s both;
}

.home-hero .hero-text {
    animation: rise-in 0.7s var(--ease-premium) 0.65s both;
}

.hero-actions > a {
    animation: rise-in 0.6s var(--ease-premium) 0.95s both;
}

.hero-actions > a + a {
    animation-delay: 1.05s;
}

/* Students: reveal, then a slow float. Parallax is applied to the <picture> by JS. */
.hero-visual picture:not(.hero-burst) {
    will-change: transform;
}

.hero-visual picture:not(.hero-burst) img {
    animation:
        students-in 1s var(--ease-premium) 0.5s both,
        soft-float 5s ease-in-out 1.5s infinite;
}

/* Decorations: fade in with the students, ambient loops from ~1s */
.hero-visual::before {
    animation:
        fade-in 1s var(--ease-premium) 0.4s both,
        breathe 7s ease-in-out 1s infinite;
}

.hero-visual::after {
    animation:
        fade-in 1s var(--ease-premium) 0.4s both,
        breathe 7s ease-in-out 1.6s infinite;
}

.hero-orbit {
    animation:
        fade-in 1s var(--ease-premium) 0.6s both,
        spin 30s linear 1s infinite;
}

.hero-burst {
    animation:
        fade-in 0.8s var(--ease-premium) 0.8s both,
        spin 24s linear 1s infinite,
        burst-pulse 5s ease-in-out 1s infinite;
}

/* Mobile: calmer float */
@media (max-width: 819.98px) {
    .home-hero { --float: -4px; }
    .home-hero .hero-eyebrow { --float: -2px; }
}

/* Reduced motion: no loops or parallax, content simply appears */
@media (prefers-reduced-motion: reduce) {
    body:has(.home-hero) .site-header,
    .home-hero *,
    .home-hero *::before,
    .home-hero *::after,
    .hero-visual::before,
    .hero-visual::after {
        animation: none !important;
    }

    .hero-title-accent { background-position: -60% 0, 0 0; }
    .hero-visual picture { transform: none !important; }
}

/* =========================
   TRUSTED PARTNERS
   Markup: resources/views/partials/partners.blade.php
========================= */

.partners {
    overflow: hidden;
    padding: 80px 0 60px;
}

.partners-title {
    margin: 0 0 45px;
    padding: 0 16px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    text-align: center;
}

/* Full-bleed: logos run edge to edge */
.partners-marquee {
    width: 100%;
    overflow: hidden;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: partners-scroll 60s linear infinite;
    will-change: transform;
}

.partners-marquee:hover .partners-track {
    animation-play-state: paused;
}

.partners-group {
    display: flex;
    align-items: center;
}

.partners-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 0 35px;                 /* 70px between logos */
}

.partners-logo {
    width: auto;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.partners-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

@keyframes partners-scroll {
    to { transform: translateX(-50%); }
}

@media (max-width: 991.98px) {
    .partners-item { margin: 0 26px; }
}

@media (max-width: 767.98px) {
    .partners { padding: 56px 0 40px; }
    .partners-title {
        margin-bottom: 30px;
        font-size: clamp(22px, 6vw, 28px);
    }
}

@media (max-width: 575.98px) {
    .partners-item { margin: 0 18px; }
    .partners-logo { height: 30px; }
}

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

/* =========================
   ABOUT BLOCK (home)
   Markup: resources/views/partials/about.blade.php
   Layout: intro text | photo  /  dark card spanning both columns,
   with the bottom photo sitting in a notch cut from its lower-right corner.
========================= */

.about-block {
    --about-bg: var(--color-white);
    --about-notch: 14px;           /* gap drawn around the bottom photo */
    overflow-x: clip;              /* the spinning starburst must not widen the page */
    padding: 40px 24px 100px;
    background: var(--about-bg);
}

.about-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1240px;
    margin: 0 auto;
}

.about-intro {
    align-self: center;
    padding: 20px 0;
}

.about-eyebrow {
    margin-bottom: 16px;
}

.about-title {
    margin: 0 0 18px;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-ink);
}

.about-title .nowrap { white-space: nowrap; }

.about-doodle {
    display: inline-block;
    width: 1.2em;
    height: 0.5em;
    margin-left: 0.35em;
    vertical-align: 0.1em;
    color: var(--color-ink);
}

.about-text {
    max-width: 600px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
}

.about-text + .about-text {
    margin-top: 12px;
}


/* Photos */
.about-photo {
    position: relative;
    margin: 0;
}

.about-photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.about-photo-top {
    aspect-ratio: 16 / 10;
}

.about-burst {
    position: absolute;
    top: -34px;
    left: -40px;
    z-index: 1;
    width: 78px;
    height: auto;
}

/* Dark card spans both columns */
.about-card {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 440px;
    overflow: hidden;
    padding: 44px 40px;
    color: var(--color-white);
    /* Cognex purple, from the logo / button palette */
    background:
        radial-gradient(ellipse 60% 80% at 75% 30%, rgba(145, 57, 156, 0.55) 0%, transparent 70%),
        linear-gradient(135deg, #2c1856 0%, #3d2378 45%, #5e3c9e 100%);
    border-radius: 32px;
}

/* Flowing line field */
.about-waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.about-waves path {
    fill: none;
    stroke: rgba(255, 255, 255, calc(0.1 + var(--i) * 0.009));
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.about-stats {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px clamp(28px, 4vw, 64px);
    margin: 0;
}

.about-stat {
    display: flex;
    flex-direction: column-reverse;     /* number above its label */
}

.about-stat + .about-stat {
    padding-left: clamp(28px, 4vw, 64px);
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.about-stat-value {
    margin: 0 0 8px;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.about-stat-label {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

/* Tilted chips resting at the bottom of the card */
.about-chips {
    position: absolute;
    left: 40px;
    bottom: 40px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 10px;
    max-width: min(520px, 52%);
}

.about-chip {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-ink);
    background: var(--color-white);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    transform: rotate(var(--r));
    transition: transform 0.35s var(--ease-premium), background-color 0.25s var(--ease), color 0.25s var(--ease);
    cursor: default;
}

.about-chip:hover {
    color: var(--color-button);
    background: #efe8ff;
}

/* Bottom photo: sits over the card's lower-right corner; the page-coloured
   border around it makes it look like a notch cut out of the card */
.about-photo-bottom {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    justify-self: end;
    z-index: 2;
    width: calc(100% - 40px);
    aspect-ratio: 16 / 9;
    margin: 0 calc(var(--about-notch) * -1) calc(var(--about-notch) * -1) 0;
    padding: var(--about-notch);
    background: var(--about-bg);
    border-radius: calc(28px + var(--about-notch));
    box-sizing: content-box;
}

/* ---------- Scroll-in animation (JS adds .is-visible) ---------- */

.about-block[data-reveal] .about-eyebrow,
.about-block[data-reveal] .about-title,
.about-block[data-reveal] .about-text {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.8s var(--ease-premium), translate 0.8s var(--ease-premium);
}

.about-block[data-reveal] .about-title { transition-delay: 0.1s; }
.about-block[data-reveal] .about-text  { transition-delay: 0.2s; }

.about-block[data-reveal] .about-photo-img {
    clip-path: inset(12% 12% 12% 12% round 28px);
    opacity: 0;
    scale: 1.08;
    transition: clip-path 1.1s var(--ease-premium), opacity 0.8s var(--ease-premium), scale 1.4s var(--ease-premium);
}

.about-block[data-reveal] .about-photo-bottom .about-photo-img { transition-delay: 0.45s; }

.about-block[data-reveal] .about-burst {
    opacity: 0;
    scale: 0.4;
    transition: opacity 0.6s var(--ease-premium) 0.5s, scale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

.about-block[data-reveal] .about-card {
    opacity: 0;
    translate: 0 40px;
    transition: opacity 0.9s var(--ease-premium) 0.2s, translate 0.9s var(--ease-premium) 0.2s;
}

/* Chips drop in from above, one after another, and settle at their tilt */
.about-block[data-reveal] .about-chip {
    opacity: 0;
    transform: translateY(-260px) rotate(calc(var(--r) * -3));
}

.about-block.is-visible .about-eyebrow,
.about-block.is-visible .about-title,
.about-block.is-visible .about-text,
.about-block.is-visible .about-card {
    opacity: 1;
    translate: 0 0;
}

.about-block.is-visible .about-photo-img {
    clip-path: inset(0 0 0 0 round 28px);
    opacity: 1;
    scale: 1;
}

.about-block.is-visible .about-burst {
    opacity: 1;
    scale: 1;
    animation: spin 24s linear 1.3s infinite;
}

.about-block.is-visible .about-chip {
    opacity: 1;
    transform: rotate(var(--r));
    transition:
        transform 0.9s cubic-bezier(0.34, 1.45, 0.64, 1) calc(0.7s + var(--d)),
        opacity 0.3s ease calc(0.7s + var(--d)),
        background-color 0.25s var(--ease),
        color 0.25s var(--ease);
}

/* After the drop, hover gets a quick transition again */
.about-block.is-settled .about-chip {
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

/* ---------- Physics mode (desktop mouse): JS adds .has-physics ----------
   Chips become Matter.js bodies: they drop in, collide, and can be dragged or thrown. */

.about-card.has-physics .about-chips {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    max-width: none;
    pointer-events: none;
}

.about-card.has-physics .about-chip {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    white-space: nowrap;
    pointer-events: auto;
    cursor: grab;
    user-select: none;
    transform: translate(-9999px, 0);   /* hidden until the body is placed */
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
    will-change: transform;
}

.about-card.has-physics.is-dragging,
.about-card.has-physics.is-dragging .about-chip {
    cursor: grabbing;
}

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

@media (max-width: 991.98px) {
    .about-card { min-height: 420px; padding: 36px 28px; }
    .about-chips { left: 28px; bottom: 32px; max-width: 50%; }
    .about-chip { padding: 10px 16px; font-size: 13.5px; }
}

/* Mobile: stack everything, bottom photo moves below the card */
@media (max-width: 767.98px) {
    .about-block { padding: 24px 16px 70px; }

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

    .about-intro { padding: 0; }
    .about-burst { top: -22px; left: auto; right: -6px; width: 56px; }

    .about-card {
        grid-column: 1;
        grid-row: auto;
        min-height: 0;
        padding: 30px 22px 26px;
    }

    .about-stats { gap: 12px 22px; }
    .about-stat + .about-stat { padding-left: 22px; }
    .about-stat-value { font-size: 32px; }
    .about-stat-label { font-size: 14px; }

    .about-chips {
        position: relative;
        left: 0;
        bottom: 0;
        max-width: none;
        margin-top: 70px;
    }

    .about-photo-bottom {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about-block.is-visible .about-burst { animation: none; }

    .about-block[data-reveal] * {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

/* =========================
   TOP CATEGORIES (home)
   Markup: resources/views/partials/categories.blade.php
   7 equal cards in one row; 3D tilt card (vanilla port of the "InteractiveTravelCard").
========================= */

.categories {
    padding: 40px 24px 110px;
}

.categories-head {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.categories-eyebrow {
    margin-bottom: 14px;
}

.categories-title {
    margin: 0 0 12px;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-ink);
}

.categories-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
}

/* One row of seven equal cards */
.categories-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(10px, 1.1vw, 18px);
    max-width: 1400px;
    margin: 0 auto;
}

.cat-card-wrap {
    perspective: 1000px;
}

/* Card: gradient outline (Cognex logo colours) around a white face; tilts in 3D */
.cat-card {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    display: block;
    aspect-ratio: 3 / 3.8;
    padding: 1.5px;
    color: inherit;                                 /* = outline thickness */
    /* subtle brand-tinted outline: soft lavender with a faint warm corner */
    background: linear-gradient(145deg, rgba(245, 116, 51, 0.28) 0%, rgba(145, 57, 156, 0.18) 40%, rgba(94, 60, 158, 0.3) 100%), #ebe6f5;
    border-radius: 22px;
    box-shadow:
        0 1px 2px rgba(46, 26, 94, 0.05),
        0 8px 18px -10px rgba(46, 26, 94, 0.1),
        0 24px 40px -24px rgba(94, 60, 158, 0.18);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: box-shadow 0.35s var(--ease-premium), background 0.35s var(--ease-premium);
    will-change: transform;
}

.cat-card:hover {
    background: linear-gradient(145deg, rgba(245, 116, 51, 0.5) 0%, rgba(145, 57, 156, 0.35) 40%, rgba(94, 60, 158, 0.55) 100%), #e6dff4;
    box-shadow:
        0 1px 2px rgba(46, 26, 94, 0.05),
        0 14px 26px -12px rgba(46, 26, 94, 0.14),
        0 32px 52px -26px rgba(226, 78, 102, 0.24);
}

/* White face */
.cat-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 12px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
    border-radius: 20px;
    transform-style: preserve-3d;
}

/* Glossy highlight that sweeps across on hover */
.cat-card-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.7) 50%, transparent 65%);
    background-size: 250% 100%;
    background-position: 150% 0;
    transition: background-position 0.9s var(--ease-premium);
}

.cat-card:hover .cat-card-inner::after {
    background-position: -50% 0;
}

/* Logo stage: soft lavender panel, raised towards the viewer */
.cat-card-logo {
    flex: 0 0 auto;
    height: 62%;
    min-height: 64px;
    display: grid;
    place-items: center;
    padding: 14px;
    background:
        radial-gradient(circle at 50% 40%, #ffffff 0%, transparent 70%),
        linear-gradient(160deg, #f6f2ff 0%, #efe8fb 100%);
    border: 1px solid rgba(94, 60, 158, 0.08);
    border-radius: 14px;
    transform: translateZ(30px);
    transition: scale 0.4s var(--ease-premium);
}

.cat-card:hover .cat-card-logo {
    scale: 1.03;
}

.cat-card-logo img {
    width: 100%;
    height: 100%;   
    min-height: 0;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(46, 26, 94, 0.07));
}

.cat-card-logo.is-icon .cat-card-icon {
    width: 42%;
    height: auto;
    fill: none;
    stroke: var(--color-button);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cat-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    margin-top: 10px;
    transform: translateZ(20px);
    transform-style: preserve-3d;
}

.cat-card-title {
    margin: 0;
    font-size: clamp(14px, 1.1vw, 17px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--color-ink);
}

.cat-card-sub {
    margin: 3px 0 0;
    font-size: clamp(11px, 0.8vw, 12.5px);
    line-height: 1.3;
    color: var(--color-text);
}

/* Staggered entrance when the row scrolls into view (JS adds .is-visible) */
.categories-row[data-reveal] .cat-card-wrap {
    opacity: 0;
    translate: 0 40px;
    transition: opacity 0.7s var(--ease-premium), translate 0.7s var(--ease-premium);
    transition-delay: calc(var(--i) * 80ms);
}

.categories-row.is-visible .cat-card-wrap {
    opacity: 1;
    translate: 0 0;
}

/* Below ~1100px seven cards get too small: keep one row, scroll sideways */
@media (max-width: 1099.98px) {
    .categories { padding-left: 0; padding-right: 0; }
    .categories-head { padding: 0 24px; }

    .categories-row {
        grid-template-columns: repeat(7, 180px);
        gap: 14px;
        overflow-x: auto;
        padding: 10px 24px 24px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 24px;
        scrollbar-width: none;
    }

    .categories-row::-webkit-scrollbar { display: none; }
    .cat-card-wrap { scroll-snap-align: start; }
    .cat-card-title { font-size: 17px; }
    .cat-card-sub { font-size: 12px; }
}

@media (max-width: 767.98px) {
    .categories { padding-bottom: 70px; }
    .categories-head { margin-bottom: 28px; padding: 0 16px; }
    .categories-row { grid-template-columns: repeat(7, 160px); padding: 10px 16px 20px; scroll-padding: 0 16px; }
}        




@media (prefers-reduced-motion: reduce) {
    .cat-card { transform: none !important; }
    .categories-row[data-reveal] .cat-card-wrap { transition: none; }
}

/* =========================
   STARTING FROM ZERO (home)
   Markup: resources/views/partials/starting.blade.php
   White version of the reference: grid backdrop, big headline, person in the
   middle, four "message window" cards that pop in one by one and type their text.
========================= */

.zero {
    --zero-grid: rgba(94, 60, 158, 0.09);
    position: relative;
    display: flex;
    flex-direction: column;
    /* whole section fits one screen below the fixed header */
    height: calc(100svh - var(--header-space));
    min-height: 560px;
    max-height: 1000px;
    overflow: hidden;
    padding: clamp(14px, 3vh, 40px) 24px clamp(18px, 4vh, 48px);
    text-align: center;
    scroll-margin-top: var(--header-space);
    background:
        linear-gradient(var(--zero-grid) 1px, transparent 1px) 0 0 / 124px 124px,
        linear-gradient(90deg, var(--zero-grid) 1px, transparent 1px) 0 0 / 124px 124px,
        var(--color-white);
}

/* Fade the grid out at the top and bottom edges */
.zero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, var(--color-white) 0%, transparent 14%, transparent 86%, var(--color-white) 100%);
}

.zero > * {
    position: relative;
}

.zero-title {
    position: relative;
    z-index: 3;
    flex: none;
    margin: 0;
    font-size: clamp(30px, min(6.2vw, 8.2vh), 104px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--color-ink);
}

.zero-title > span {
    display: block;
}

/* Stage: person centred, messages placed around it */
.zero-stage {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;                    /* takes whatever height is left */
    width: 100%;
    max-width: 1340px;
    margin: calc(clamp(30px, min(6.2vw, 8.2vh), 104px) * -0.3) auto 0;
}

.zero-person {
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 100%;
    max-width: 40vw;
    translate: -50% 0;
    /* soft fade into the page at the bottom, like the curved crop in the reference */
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.zero-person img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: grayscale(1) contrast(1.05);
}

/* Message window cards */
.zero-msg {
    --rot: 0deg;
    position: absolute;
    z-index: 3;
    width: clamp(220px, min(27vw, 42vh), 400px);
    overflow: hidden;
    text-align: left;
    background: #1c1830;
    border-radius: 12px;
    box-shadow: 0 24px 48px -12px rgba(28, 24, 48, 0.45);
    rotate: var(--rot);
}

.zero-msg-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(7px, 1.3vh, 12px) 18px;
    background: #231e3b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.zero-dots {
    position: absolute;
    left: 18px;
    display: flex;
    gap: 7px;
}

.zero-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
}

.zero-dots i:nth-child(2) { background: #febc2e; }
.zero-dots i:nth-child(3) { background: #28c840; }

.zero-msg-label {
    font-size: clamp(12px, min(1.3vw, 2vh), 19px);
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.4);
}

.zero-msg-text {
    min-height: 1.3em;
    margin: 0;
    padding: clamp(8px, 1.6vh, 16px) 22px clamp(10px, 2vh, 20px);
    font-size: clamp(15px, min(1.75vw, 2.8vh), 27px);
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    color: #c9b6ff;              /* light Cognex purple, in place of the reference's lime */
}

/* Caret while typing */
.zero-msg-text.is-typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    vertical-align: -0.12em;
    background: currentColor;
    animation: zero-caret 0.7s steps(1) infinite;
}

@keyframes zero-caret {
    50% { opacity: 0; }
}

/* Positions & tilts, as in the reference */
.zero-msg-1 { --rot: -7deg; top: 16%;    left: 4%; }
.zero-msg-2 { --rot: 5deg;  bottom: 6%; left: 7%; }
.zero-msg-3 { --rot: 7deg;  top: 12%;   right: 4%; width: clamp(210px, min(23vw, 36vh), 350px); }
.zero-msg-4 { --rot: -7deg; bottom: 12%; right: 3%; }

.zero-msg-2 { width: clamp(210px, min(22vw, 36vh), 340px); }

.zero-text {
    z-index: 3;
    flex: none;
    max-width: 780px;
    margin: clamp(10px, 2.4vh, 34px) auto clamp(10px, 2.2vh, 30px);
    font-size: clamp(15px, min(1.45vw, 2.3vh), 21px);
    line-height: 1.6;
    color: var(--color-text);
}

.zero-cta { flex: none; }

.zero-btn {
    --btn-px: 30px;
    height: clamp(46px, 6.4vh, 58px);
    font-size: 17px;
    font-weight: 600;
}

/* ---------- Scroll-in animation (JS adds .is-visible) ---------- */

.zero[data-zero] .zero-title > span,
.zero[data-zero] .zero-text,
.zero[data-zero] .zero-cta {
    opacity: 0;
    translate: 0 30px;
    transition: opacity 0.8s var(--ease-premium), translate 0.8s var(--ease-premium);
}

.zero[data-zero] .zero-title > span:nth-child(2) { transition-delay: 0.12s; }
.zero[data-zero] .zero-text { transition-delay: 2.6s; }
.zero[data-zero] .zero-cta  { transition-delay: 2.75s; }

.zero[data-zero] .zero-person {
    opacity: 0;
    translate: -50% 50px;
    transition: opacity 0.9s var(--ease-premium) 0.25s, translate 0.9s var(--ease-premium) 0.25s;
}

/* Cards: hidden, slightly small and over-rotated; pop in one after another */
.zero[data-zero] .zero-msg {
    opacity: 0;
    scale: 0.6;
    rotate: calc(var(--rot) * 2.4);
    transition:
        opacity 0.4s ease,
        scale 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
        rotate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: calc(0.8s + var(--n) * 0.45s);
}

.zero.is-visible .zero-title > span,
.zero.is-visible .zero-text,
.zero.is-visible .zero-cta {
    opacity: 1;
    translate: 0 0;
}

.zero.is-visible .zero-person {
    opacity: 1;
    translate: -50% 0;
}

.zero.is-visible .zero-msg {
    opacity: 1;
    scale: 1;
    rotate: var(--rot);
    animation: zero-float 5s ease-in-out infinite;
    animation-delay: calc(2.8s + var(--n) * 0.6s);
}

@keyframes zero-float {
    50% { translate: 0 -8px; }
}

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

@media (max-width: 991.98px) {
    .zero-msg-1 { left: 1%; }
    .zero-msg-2 { left: 2%; }
    .zero-msg-3 { right: 1%; }
    .zero-msg-4 { right: 0; }
}

/* Mobile: person on top, messages as a tidy 2x2 grid underneath */
@media (max-width: 767.98px) {
    .zero {
        height: auto;
        min-height: calc(100svh - var(--header-space));
        max-height: none;
        padding: 24px 16px 28px;
        background-size: 62px 62px, 62px 62px, auto;
    }

    .zero-title { font-size: clamp(28px, 8.6vw, 40px); }

    .zero-stage {
        flex: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 8px;
        height: auto;
        margin-top: 4px;
        padding-top: min(34vh, 250px);
    }

    .zero-person {
        top: 0;
        bottom: auto;
        height: min(34vh, 250px);
        max-width: none;
    }

    .zero-text { margin: 14px auto 14px; font-size: 14.5px; }

    .zero-msg,
    .zero-msg-2,
    .zero-msg-3 {
        position: relative;
        inset: auto;
        width: auto;
    }

    .zero-msg-1 { --rot: -3deg; }
    .zero-msg-2 { --rot: 3deg; }
    .zero-msg-3 { --rot: 3deg; }
    .zero-msg-4 { --rot: -3deg; }

    .zero-msg-bar { padding: 8px 10px; }
    .zero-dots { left: 10px; gap: 4px; }
    .zero-dots i { width: 7px; height: 7px; }
    .zero-msg-label { font-size: 11px; }
    .zero-msg-text { padding: 8px 8px 10px; font-size: 13.5px; }
    .zero-btn { width: 100%; height: 50px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .zero[data-zero] * {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        animation: none !important;
    }
}

/* =========================
   EXPLORE COURSES (home)
   Markup: resources/views/partials/courses.blade.php
   Vanilla port of the "OfferCarousel": scroll-snap row of 300x380 cards,
   image top half, info bottom half, lift on hover, prev/next buttons.
========================= */

.courses {
    padding: 30px 0 100px;
}

.courses-head {
    max-width: 900px;
    text-align: center;
    margin: 0 auto 30px;
    padding: 0 24px;
}

.courses-eyebrow {
    margin-bottom: 14px;
}

.courses-title {
    margin: 0;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-ink);
}

.courses-arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--color-ink);
    background: var(--color-white);
    border: 1px solid rgba(15, 13, 26, 0.1);
    border-radius: 50%;
    box-shadow: 0 6px 16px -6px rgba(46, 26, 94, 0.25);
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.courses-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.courses-arrow:hover:not(:disabled) {
    color: var(--color-white);
    background: var(--color-button);
    border-color: var(--color-button);
}

.courses-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Track: aligned with the page content on the left, bleeds to the right edge */
.courses-carousel {
    position: relative;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Track matches the content width, so whole cards are visible — no card cut off at the edge.
   Small side padding (offset by negative margin) keeps card shadows and hover lift from being clipped. */
.courses-track {
    --per-view: 4;
    --gap: 24px;
    display: flex;
    gap: var(--gap);
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -14px;
    padding: 14px 14px 28px;
    scroll-padding: 0 14px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    outline: none;
}

.courses-track::-webkit-scrollbar { display: none; }

.courses-track:focus-visible {
    box-shadow: inset 0 0 0 2px var(--color-primary);
    border-radius: 16px;
}

/* Card (white frame, colourful banner, pill + title + meta list) */
.course-card {
    --c1: #f57433;
    --c2: #e24e66;
    --pill-bg: #fdecc8;
    --pill-ink: #7a4a06;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
    min-width: 0;
    padding: 14px;
    color: inherit;
    background: var(--color-white);
    border: 1px solid rgba(15, 13, 26, 0.06);
    border-radius: 22px;
    box-shadow: 0 1px 2px rgba(46, 26, 94, 0.05), 0 18px 36px -20px rgba(46, 26, 94, 0.28);
    scroll-snap-align: start;
    transition:
        translate 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s var(--ease-premium);
}

.course-card:hover,
.course-card:focus-visible {
    translate: 0 -8px;
    box-shadow: 0 1px 2px rgba(46, 26, 94, 0.05), 0 28px 48px -20px rgba(46, 26, 94, 0.38);
}

/* Colour themes: banner gradient + category pill */
.course-card.theme-orange { --c1: #ff8a3d; --c2: #f0526a; --pill-bg: #fdecc8; --pill-ink: #7a4a06; }
.course-card.theme-purple { --c1: #8b5cf6; --c2: #5e3c9e; --pill-bg: #ede4ff; --pill-ink: #4b2a8a; }
.course-card.theme-pink   { --c1: #f472b6; --c2: #be185d; --pill-bg: #fce4f1; --pill-ink: #8a1650; }
.course-card.theme-blue   { --c1: #38bdf8; --c2: #2563eb; --pill-bg: #dbeefe; --pill-ink: #1e4f8f; }
.course-card.theme-indigo { --c1: #818cf8; --c2: #4338ca; --pill-bg: #e3e5ff; --pill-ink: #3730a3; }
.course-card.theme-teal   { --c1: #2dd4bf; --c2: #0f766e; --pill-bg: #d5f5ef; --pill-ink: #0f5e57; }

/* Banner */
.course-banner {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 16px;
    background: #efeaf7;
    isolation: isolate;
}

/* Plain course photo, full width */
.course-banner-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-premium);
    z-index: -1;
}

.course-card:hover .course-banner-photo {
    transform: scale(1.08);
}

/* Body */
.course-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 6px 6px;
}

.course-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.course-pill {
    padding: 7px 15px;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--pill-ink);
    background: var(--pill-bg);
    border-radius: 999px;
}

.course-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-ink);
}

.course-rating svg {
    width: 20px;
    height: 20px;
    fill: #fbbf24;
}

.course-card-title {
    display: -webkit-box;
    height: 2.5em;                 /* always two lines tall, so every card lines up */
    margin: 0 0 14px;
    overflow: hidden;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--color-ink);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.course-meta {
    display: grid;
    gap: 8px;
    margin-top: auto;
}

.course-meta li {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 13.5px;
    white-space: nowrap;           /* one line each, trimmed if too long */
    color: var(--color-text);
}

.course-meta li > svg + * ,
.course-meta li {
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-meta svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #8a86a0;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.courses-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 16px;
}

.courses-all {
    --btn-px: 28px;
    height: 54px;
    font-size: 16px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .courses { padding-bottom: 70px; }
    .courses-head { padding: 0 16px; margin-bottom: 20px; }
    .courses-arrow { display: none; }     /* swipe on touch screens */
    .courses-carousel { padding: 0 16px; }
    .course-banner { height: 160px; }
}

@media (max-width: 1199.98px) {
    .courses-track { --per-view: 3; }
}

@media (max-width: 991.98px) {
    .courses-track { --per-view: 2; --gap: 20px; }
}

@media (max-width: 575.98px) {
    .courses-track { --per-view: 1.15; --gap: 16px; }   /* a peek of the next card hints at swiping */
}

@media (prefers-reduced-motion: reduce) {
    .courses-track { scroll-behavior: auto; }
    .course-card,
    .course-banner-photo { transition: none; }
}

/* =========================
   CTA BANNER (home, before the footer)
   Markup: resources/views/partials/cta.blade.php
========================= */

.cta {
    padding: 20px 24px 100px;
}

.cta-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: center;
    max-width: 1340px;
    min-height: 250px;
    margin: 0 auto;
    padding: clamp(30px, 3.4vw, 48px) clamp(28px, 4.4vw, 64px);
    overflow: hidden;
    color: var(--color-white);
    background: linear-gradient(100deg, #4f33b8 0%, #6a45dd 42%, #9a55d8 74%, #d66bc0 100%);
    border-radius: 26px;
    box-shadow: 0 30px 60px -32px rgba(79, 51, 184, 0.7);
}

/* Soft light streaks, like the reference */
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 46px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
}

.cta-copy {
    position: relative;
    z-index: 2;
}

.cta-title {
    margin: 0 0 10px;
    font-size: clamp(26px, 2.9vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.cta-text {
    max-width: 640px;
    margin: 0 0 24px;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cta-btn {
    --btn-px: 26px;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
}

/* Dark purple button (site button style) */
.cta-btn-dark {
    background-color: #3a2390;
}

.cta-btn-dark:hover,
.cta-btn-dark:focus-visible {
    background-color: #2c1a72;
}

/* White button with a download icon */
.cta-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 26px;
    white-space: nowrap;
    color: #2a1f6e;
    background: var(--color-white);
    border-radius: 999px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.116);
    transition: background-color 0.3s var(--ease), transform 0.2s var(--ease);
}

.cta-btn-light svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ease);
}

.cta-btn-light:hover { background: #f1ebfd; }
.cta-btn-light:hover svg { transform: translateY(3px); }
.cta-btn-light:active { transform: scale(0.97); }

/* Right side: stars, glow, person */
.cta-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 46%;
    pointer-events: none;
}

.cta-star {
    position: absolute;
    fill: #ffd76a;
    filter: drop-shadow(0 4px 8px rgba(120, 60, 0, 0.3));
    animation: cta-twinkle 3.2s ease-in-out infinite;
}

.cta-star-1 { top: 20%; left: 36%; width: 30px; }
.cta-star-2 { top: 36%; left: 44%; width: 22px; animation-delay: -1.4s; }

@keyframes cta-twinkle {
    0%, 100% { scale: 1; rotate: -8deg; }
    50%      { scale: 1.18; rotate: 8deg; }
}

.cta-blob {
    position: absolute;
    right: 3%;
    bottom: -30%;
    width: 46%;
    aspect-ratio: 1;
    background: radial-gradient(circle, #ff9a4a 0%, #f57433 60%, rgba(245, 116, 51, 0) 72%);
    border-radius: 50%;
    opacity: 0.9;
}

.cta-person {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    height: 100%;
    max-width: none;
    filter: drop-shadow(0 10px 24px rgba(40, 20, 100, 0.35));
}

/* Rise in when scrolled into view (JS adds .is-visible) */
.cta-banner[data-reveal] .cta-copy > *,
.cta-banner[data-reveal] .cta-visual {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.8s var(--ease-premium), translate 0.8s var(--ease-premium);
}

.cta-banner[data-reveal] .cta-copy > :nth-child(2) { transition-delay: 0.1s; }
.cta-banner[data-reveal] .cta-copy > :nth-child(3) { transition-delay: 0.2s; }
.cta-banner[data-reveal] .cta-visual { transition-delay: 0.25s; }

.cta-banner.is-visible .cta-copy > *,
.cta-banner.is-visible .cta-visual {
    opacity: 1;
    translate: 0 0;
}

@media (max-width: 1099.98px) {
    .cta-star-1 { left: 6%; }
    .cta-star-2 { left: 16%; }
    .cta-visual { width: 40%; }
}

/* Phones: text first, people along the bottom */
@media (max-width: 767.98px) {
    .cta { padding: 10px 16px 70px; }

    .cta-banner {
        grid-template-columns: 1fr;
        padding: 30px 22px 0;
        border-radius: 22px;
        text-align: center;
    }

    .cta-text { margin-left: auto; margin-right: auto; }
    .cta-actions { justify-content: center; }
    .cta-btn { flex: 1 1 100%; justify-content: center; }

    .cta-visual {
        position: relative;
        width: auto;
        height: 200px;
        margin: 22px -22px 0;
    }

    .cta-star-1 { top: 8%; left: 10%; }
    .cta-star-2 { top: 30%; left: 20%; }
    .cta-blob { right: 50%; bottom: -55%; width: 240px; translate: 50% 0; }
    .cta-person { right: 50%; height: 100%; translate: 50% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .cta-star { animation: none; }
    .cta-banner[data-reveal] .cta-copy > *,
    .cta-banner[data-reveal] .cta-visual { opacity: 1; translate: 0 0; transition: none; }
}

/* =========================
   TESTIMONIALS (home)
   Markup: resources/views/partials/testimonials.blade.php
   Stacking cards: white cards stick below the header one after another;
   earlier cards scale down slightly as the stack scrolls (JS sets --scale).
========================= */

.reviews {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
    align-items: start;
    gap: clamp(32px, 4vw, 64px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

.reviews-head {
    /* heading stays in view on the left while the cards stack on the right */
    position: sticky;
    top: calc(var(--header-space) + 40px);
    padding-top: 20px;
    text-align: left;
}

.reviews-eyebrow {
    margin-bottom: 14px;
}

.reviews-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-ink);
}

.reviews-text {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
}

.reviews-stack {
    min-width: 0;
}

/* Each item is a tall sticky slot; its card pins a little lower than the previous one */
.stack-item {
    position: sticky;
    top: calc(var(--header-space) + 24px + var(--i) * 22px);
    height: min(540px, 76vh);
}

.stack-card {
    --scale: 1;
    position: relative;
    overflow: hidden;
    padding: clamp(18px, 2.2vw, 28px);
    background: var(--color-white);
    border: 1px solid rgba(94, 60, 158, 0.12);
    border-radius: 28px;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 1), 0 26px 50px -26px rgba(46, 26, 94, 0.38);
    transform: scale(var(--scale));
    transform-origin: top center;
    will-change: transform;
}

.stack-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 0 6px;
}

.stack-card-num {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-white);
    background: linear-gradient(135deg, #7552c2, #5e3c9e);
    border-radius: 12px;
    box-shadow: 0 8px 16px -6px rgba(94, 60, 158, 0.5);
}

.stack-card-topic {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-ink);
}

.stack-card-count {
    font-size: 13px;
    font-weight: 600;
    color: #a39fb6;
    font-variant-numeric: tabular-nums;
}

/* Two reviews side by side */
.stack-card-reviews {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
}

.review {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: clamp(20px, 2.2vw, 28px);
    background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
    border: 1px solid rgba(94, 60, 158, 0.08);
    border-radius: 20px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), translate 0.35s var(--ease-premium);
}

.review:hover {
    translate: 0 -3px;
    border-color: rgba(94, 60, 158, 0.22);
    box-shadow: 0 16px 30px -18px rgba(46, 26, 94, 0.35);
}

.review-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.reviews-stars {
    display: flex;
    gap: 3px;
}

.reviews-stars svg {
    width: 18px;
    height: 18px;
    fill: #fbbf24;
}

.reviews-stars svg.is-off {
    fill: #e5e1ee;
}

.review-mark {
    width: 34px;
    height: auto;
    fill: #e6ddf8;
}

.review-quote {
    flex: 1;
    margin: 0 0 22px;
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 500;
    line-height: 1.65;
    color: var(--color-ink);
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px dashed rgba(94, 60, 158, 0.18);
}

/* Small avatar with a brand-gradient ring */
.review-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    padding: 2px;
    background: linear-gradient(135deg, #f57433, #e24e66, #5e3c9e);
    border-radius: 50%;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--color-white);
    border-radius: 50%;
}

.review-who {
    flex: 1;
    min-width: 0;
}

.review-who strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-ink);
}

.review-who span {
    font-size: 13px;
    color: var(--color-text);
}

.review-course {
    flex-shrink: 0;
    max-width: 48%;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--color-button);
    background: #f1ebfd;
    border-radius: 999px;
}

@media (max-width: 1199.98px) {
    .reviews { grid-template-columns: 1fr; gap: 40px; }
    .reviews-head { position: static; max-width: 720px; margin: 0 auto; padding-top: 0; text-align: center; }
}

@media (max-width: 1023.98px) {
    .review-author { flex-wrap: wrap; }
    .review-course { max-width: none; margin-left: 64px; }
}

@media (max-width: 767.98px) {
    .reviews { padding: 40px 16px 20px; }
    .reviews { gap: 28px; }

    /* Single column on phones: the two reviews stack inside the card */
    .stack-item {
        top: calc(var(--header-space) + 12px + var(--i) * 14px);
        height: auto;
        padding-bottom: 60px;
    }

    .stack-card { padding: 16px; border-radius: 22px; }
    .stack-card-reviews { grid-template-columns: 1fr; gap: 12px; }
    .review { padding: 18px; }
    .review-quote { font-size: 15px; margin-bottom: 16px; }
    .review-mark { width: 26px; }
    .review-avatar { width: 46px; height: 46px; }
    .review-course { flex-basis: 100%; max-width: none; margin-left: 58px; text-align: left; justify-self: start; width: fit-content; flex: 0 0 auto; }
}

/* =========================
   VIDEO TESTIMONIALS — reel slider (home)
   Markup: resources/views/partials/video-testimonials.blade.php
   Port of HireMinds Academy's "career success" reel slider, in Cognex colours.
   Needs Swiper (public/css/vendor + public/js/vendor); behaviour in public/js/main.js.
========================= */

.reels {
    position: relative;
    padding: 100px 0 50px;
    overflow: hidden;
}

/* Slow-rotating blurred glow in the logo colours */
.reels-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: 150vmax;
    height: 150vmax;
    translate: -50% -50%;
    background: conic-gradient(from 0deg, #f57433, #e24e66, #91399c, #5e3c9e, #6a3fd0, #e24e66, #f57433);
    opacity: 0.12;
    filter: blur(60px);
    pointer-events: none;
    animation: spin 90s linear infinite;
    will-change: transform;
}

.reels-deco {
    position: absolute;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
    animation: reels-twinkle 6s ease-in-out infinite;
}

.reels-deco-1 { top: 90px; left: 6%; width: 30px; }
.reels-deco-2 { top: 140px; right: 7%; width: 24px; animation-delay: -2.5s; }

@keyframes reels-twinkle {
    0%, 100% { opacity: 0.25; scale: 0.85; }
    50%      { opacity: 0.7; scale: 1.1; }
}

.reels-container {
    position: relative;
    z-index: 1;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.reels-head {
    margin-bottom: 30px;
    text-align: center;
}

.reels-eyebrow {
    margin-bottom: 14px;
}

.reels-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-ink);
}

.reels-desc {
    max-width: 620px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
}

/* Entrance: header, deck and arrows rise in one after another (JS adds .is-visible) */
.reels[data-reveal] .reels-anim {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.8s var(--ease-premium) calc(var(--d, 0) * 0.12s), translate 0.8s var(--ease-premium) calc(var(--d, 0) * 0.12s);
}

.reels.is-visible .reels-anim {
    opacity: 1;
    translate: 0 0;
}

/* Swiper — vertical padding gives room for the hover-lift + shadow */
.reels-swiper {
    margin-top: 20px;
    padding: 30px 4px 20px;
}

.reels-slide { height: auto; }

/* Floating wrapper (float) -> card (hover). Separate elements avoid transform clashes. */
.reel-float {
    animation: reel-float 7s ease-in-out infinite;
    will-change: transform;
}

@keyframes reel-float {
    0%, 100% { transform: translateY(-8px); }
    50%      { transform: translateY(8px); }
}

.reels-slide:nth-child(5n+1) .reel-float { animation-delay: 0s; }
.reels-slide:nth-child(5n+2) .reel-float { animation-delay: -1.4s; }
.reels-slide:nth-child(5n+3) .reel-float { animation-delay: -2.8s; }
.reels-slide:nth-child(5n+4) .reel-float { animation-delay: -4.2s; }
.reels-slide:nth-child(5n+5) .reel-float { animation-delay: -5.6s; }

.reel {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(46, 26, 94, 0.14);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.reel:hover,
.reel:focus-visible {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(46, 26, 94, 0.26);
    outline: none;
}

.reel-img,
.reel-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #160f2b;          /* shown while the still / video loads */
    transition: transform 0.5s ease;
}

.reel:hover .reel-img,
.reel:hover .reel-video { transform: scale(1.08); }

.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.reel:hover .reel-overlay,
.reel.is-centre .reel-overlay,
.reel--placeholder .reel-overlay { opacity: 1; }

/* Icons */
.reel .ico,
.reel-embed-wait .ico {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.ico .ico-line,
.ico-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* play <-> pause and muted <-> sound swap by state class */
.reel .ico-pause,
.reel.is-playing .ico-play { display: none; }
.reel.is-playing .ico-pause { display: block; }
.reel .ico-sound,
.reel:not(.is-muted) .ico-muted { display: none; }
.reel:not(.is-muted) .ico-sound { display: block; }

.reel-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-button);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.reel-badge .ico { font-size: 13px; color: #e1306c; }

.reel-name {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-white);
}

/* ---------- Centre button ---------- */
.reel-big {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 26px;
    color: var(--color-button);
    background: rgba(255, 255, 255, 0.94);
    border: 0;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.28s ease, transform 0.28s ease, background 0.2s ease;
}

button.reel-big { cursor: pointer; }

.reel:hover .reel-big,
.reel:focus-within .reel-big,
.reel:not(.is-playing) .reel-big {       /* a paused card says so without needing a hover */
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

button.reel-big:hover { background: #fff; transform: translate(-50%, -50%) scale(1.08); }
.reel-big:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Playing and untouched: get out of the way of the clip */
.reel.is-playing:not(:hover):not(:focus-within) .reel-big { opacity: 0; }

.reel--placeholder .reel-big { opacity: 0.8; }

/* ---------- Control bar ---------- */
.reel-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

/* Shown on hover, and kept up on the card that is actually playing */
.reel:hover .reel-controls,
.reel:focus-within .reel-controls,
.reel.is-centre .reel-controls {
    opacity: 1;
    transform: none;
}

.reel-ctrl {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 16px;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.reel-ctrl:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.1); }
.reel-ctrl:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Sound on is worth spotting from across the deck */
.reel:not(.is-muted) [data-reel-mute] { background: var(--color-white); color: var(--color-button); }

.reel-scrub {
    position: relative;
    flex: 1 1 auto;
    height: 4px;
    min-width: 20px;
    background: rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    cursor: pointer;
}

/* A 4px track is too thin to hit reliably; this widens the target */
.reel-scrub::before {
    content: '';
    position: absolute;
    inset: -8px 0;
}

.reel-scrub-fill {
    display: block;
    width: 0;
    height: 100%;
    background: #b79cff;
    border-radius: 999px;
}

.reel-scrub:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.reel-time {
    flex: 0 0 auto;
    min-width: 34px;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.92);
}

/* ---------- The centre (playing) card ---------- */
.reel.is-centre {
    box-shadow: 0 26px 60px rgba(46, 26, 94, 0.34);
}

/* The float would drift the playing card under the cursor while the bar is in use */
.reels-slide:has(.reel.is-centre) .reel-float { animation: none; }
.reel.is-centre:hover .reel-video { transform: none; }

/* ---------- Linked reels (YouTube / Instagram embeds) ---------- */
.reel--embed {
    --ig-header: 54px;            /* Instagram's header / footer bands, cropped away */
    --ig-footer: 108px;
    background:
        radial-gradient(120% 90% at 50% 12%, rgba(145, 57, 156, 0.35), transparent 62%),
        linear-gradient(160deg, #3d2378 0%, #2c1856 55%, #160f2b 100%);
}

.reel--embed.reel--youtube {
    --ig-header: 0px;
    --ig-footer: 0px;
}

.reel-embed {
    position: absolute;
    top: calc(var(--ig-header) * -1);
    left: 0;
    display: block;
    width: 100%;
    height: calc(100% + var(--ig-header) + var(--ig-footer));
    border: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.reel--embed.is-embedded .reel-embed { opacity: 1; }

.reel-embed-wait {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.reel--embed.is-embedded .reel-embed-wait { opacity: 0; }

/* An iframe that drifts is hard to hit */
.reel--embed:hover { transform: none; box-shadow: 0 16px 40px rgba(46, 26, 94, 0.14); }
.reels-slide:has(.reel--embed) .reel-float { animation: none; }

/* ---------- Navigation ---------- */
.reels-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.reels-navbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.reels-navbtn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.reels-navbtn-prev { color: var(--color-button); background: #ece4fb; }
.reels-navbtn-next { color: #fff; background: linear-gradient(135deg, #7552c2, #5e3c9e); }

.reels-navbtn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 26px rgba(94, 60, 158, 0.32);
}

.reels-navbtn.swiper-button-disabled { opacity: 0.5; cursor: default; }

@media (max-width: 767.98px) {
    .reels { padding: 70px 0 40px; }
    .reels-container { padding: 0 16px; }
    .reels-desc { font-size: 14.5px; line-height: 1.7; }
    .reel-controls { gap: 6px; padding: 8px 9px 10px; }
    .reel-ctrl { width: 26px; height: 26px; font-size: 15px; }
    .reel-time { min-width: 30px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .reels-bg,
    .reels-deco,
    .reel-float { animation: none !important; }

    .reel-big,
    .reel-controls,
    .reel-ctrl { transition: none !important; }

    .reels[data-reveal] .reels-anim { opacity: 1; translate: 0 0; transition: none; }
}

/* =========================
   FAQ (home)
   Markup: resources/views/partials/faq.blade.php
   Heading on the left (stays in view), accordion on the right.
========================= */

.faq {
    padding: 80px 24px 90px;
}

.faq-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: start;
    gap: clamp(32px, 5vw, 80px);
    max-width: 1240px;
    margin: 0 auto;
}

.faq-intro {
    position: sticky;
    top: calc(var(--header-space) + 40px);
}

.faq-eyebrow {
    margin-bottom: 14px;
}

.faq-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-ink);
}

.faq-text {
    max-width: 400px;
    margin: 0 0 26px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text);
}

.faq-btn {
    --btn-px: 26px;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
}

.faq-list {
    display: grid;
    gap: 14px;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid rgba(94, 60, 158, 0.12);
    border-radius: 18px;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq-item:hover {
    border-color: rgba(94, 60, 158, 0.28);
}

.faq-item.is-open {
    background: linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
    border-color: rgba(94, 60, 158, 0.3);
    box-shadow: 0 18px 36px -22px rgba(46, 26, 94, 0.35);
}

.faq-q {
    margin: 0;
    font-size: inherit;
}

.faq-toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    text-align: left;
}

.faq-num {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: #b3a6d6;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s var(--ease);
}

.faq-item.is-open .faq-num {
    color: var(--color-button);
}

.faq-q-text {
    flex: 1;
    font-size: clamp(16px, 1.3vw, 18px);
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-ink);
}

/* Plus that turns into a minus */
.faq-icon {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    color: var(--color-button);
    background: #f1ebfd;
    border-radius: 50%;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), rotate 0.4s var(--ease-premium);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    translate: -50% -50%;
    transition: rotate 0.4s var(--ease-premium);
}

.faq-icon::after {
    rotate: 90deg;
}

.faq-item.is-open .faq-icon {
    color: var(--color-white);
    background: var(--color-button);
    rotate: 180deg;
}

.faq-item.is-open .faq-icon::after {
    rotate: 0deg;
}

/* Smooth open / close without measuring heights */
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s var(--ease-premium);
}

.faq-item.is-open .faq-a {
    grid-template-rows: 1fr;
}

.faq-a-inner {
    min-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: visibility 0.4s;
}

.faq-item.is-open .faq-a-inner {
    visibility: visible;
}

.faq-a p {
    margin: 0;
    padding: 0 74px 22px 58px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
}

/* Items rise in one after another (JS adds .is-visible) */
.faq-list[data-reveal] .faq-item {
    opacity: 0;
    translate: 0 24px;
    transition:
        opacity 0.6s var(--ease-premium) calc(var(--i) * 0.07s),
        translate 0.6s var(--ease-premium) calc(var(--i) * 0.07s),
        border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.faq-list.is-visible .faq-item {
    opacity: 1;
    translate: 0 0;
}

@media (max-width: 991.98px) {
    .faq-inner { grid-template-columns: 1fr; gap: 32px; }
    .faq-intro { position: static; text-align: center; }
    .faq-text { margin-left: auto; margin-right: auto; }
}

@media (max-width: 575.98px) {
    .faq { padding: 56px 16px 70px; }
    .faq-toggle { gap: 12px; padding: 16px; }
    .faq-icon { width: 32px; height: 32px; }
    .faq-a p { padding: 0 16px 18px 16px; font-size: 15px; }
    .faq-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .faq-a,
    .faq-icon,
    .faq-icon::before,
    .faq-icon::after { transition: none; }
    .faq-list[data-reveal] .faq-item { opacity: 1; translate: 0 0; transition: none; }
}

/* =========================
   PLACEMENT SUPPORT (home)
   Markup: resources/views/partials/placement.blade.php
   One soft lavender panel: photo + "100%" card | message | company logos card.
========================= */

.placement {
    padding: 10px 24px 90px;
}

.placement-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.15fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(20px, 2.6vw, 40px);
    max-width: 1340px;
    margin: 0 auto;
    padding: clamp(14px, 1.6vw, 22px);
    background: linear-gradient(120deg, #f4f0fd 0%, #f7f5ff 55%, #f1edfb 100%);
    border: 1px solid rgba(94, 60, 158, 0.08);
    border-radius: 28px;
}

/* Photo + figures card */
.placement-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
    padding-right: clamp(14px, 1.6vw, 22px);
    overflow: hidden;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 16px 34px -22px rgba(46, 26, 94, 0.3);
}

.placement-photo {
    position: relative;
    align-self: stretch;
    min-height: 270px;
    overflow: hidden;
    border-radius: 20px;
    /* backdrop for the cut-out: soft purple with a light glow behind the head */
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.85) 0%, transparent 55%),
        linear-gradient(160deg, #e9defc 0%, #d9c8f7 55%, #c9b2f0 100%);
}

.placement-photo picture {
    position: absolute;
    inset: 14px 10px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.placement-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;            /* the whole cut-out always fits inside the panel */
    object-position: center bottom;
    filter: drop-shadow(0 10px 18px rgba(46, 26, 94, 0.22));
    transform-origin: center bottom;
    transition: transform 0.7s var(--ease-premium);
}

.placement-card:hover .placement-photo img {
    transform: scale(1.04);
}

.placement-support {
    padding: 18px 0;
}

.placement-figure {
    margin: 0;
    font-size: clamp(44px, 4.4vw, 64px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #3b2a8f;
    font-variant-numeric: tabular-nums;
}

.placement-label {
    margin: 6px 0 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f57433;
}

.placement-list {
    display: grid;
    gap: 10px;
}

.placement-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--color-ink);
}

.placement-list svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: #ebe4fb;
    stroke: var(--color-button);
    stroke-width: 1.3;
    stroke-linejoin: round;
}

.placement-list .tick {
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
}

/* Message */
.placement-title {
    margin: 0 0 14px;
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #2a1f6e;
}

.placement-title span {
    display: block;
}

.placement-title-accent {
    color: var(--color-button);
    background: linear-gradient(90deg, #5e3c9e, #7b49e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.placement-text {
    max-width: 340px;
    margin: 0 0 22px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--color-text);
}

.placement-btn {
    --btn-px: 26px;
    height: 50px;
    font-size: 15px;
    font-weight: 600;
}

/* Company logos card */
.placement-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: clamp(14px, 1.6vw, 22px);
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 16px 34px -22px rgba(46, 26, 94, 0.3);
}

.placement-logos li {
    display: grid;
    place-items: center;
    height: 84px;
    overflow: hidden;
    border-radius: 14px;
    transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.placement-logos li:hover {
    background: #f6f2ff;
    transform: translateY(-3px);
}

/* Single-colour SVG used as a mask and tinted with the company colour */
.placement-logo {
    width: var(--size, 70px);
    max-width: 92%;
    aspect-ratio: 1;
    background: var(--tint, var(--color-ink));
    -webkit-mask: var(--logo) center / contain no-repeat;
    mask: var(--logo) center / contain no-repeat;
}

.placement-wordmark {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

/* Entrance (JS adds .is-visible) */
.placement-panel[data-reveal] .placement-anim {
    opacity: 0;
    translate: 0 28px;
    transition: opacity 0.8s var(--ease-premium) calc(var(--d, 0) * 0.12s), translate 0.8s var(--ease-premium) calc(var(--d, 0) * 0.12s);
}

.placement-panel.is-visible .placement-anim {
    opacity: 1;
    translate: 0 0;
}

/* Laptop / tablet: card on top across the full width, message + logos below */
@media (max-width: 1199.98px) {
    .placement-panel {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .placement-card { grid-column: 1 / -1; }
    .placement-copy { padding: 6px 0 6px 12px; }
}

@media (max-width: 767.98px) {
    .placement { padding: 0 16px 70px; }

    .placement-panel {
        grid-template-columns: 1fr;
        gap: 22px;
        border-radius: 22px;
    }

    .placement-copy { padding: 4px 8px; }
    .placement-text { max-width: none; }
    .placement-btn { width: 100%; }
    .placement-logos li { height: 68px; }
    .placement-logo { width: calc(var(--size, 70px) * 0.78); }
    .placement-wordmark { font-size: 16px; }
}

@media (max-width: 479.98px) {
    .placement-card {
        grid-template-columns: 1fr;
        padding-right: 0;
    }

    .placement-photo { min-height: 0; aspect-ratio: 4 / 3; }
    .placement-support { padding: 4px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .placement-panel[data-reveal] .placement-anim { opacity: 1; translate: 0 0; transition: none; }
}

/* =========================
   GALLERY PAGE
   Markup: resources/views/gallery.blade.php  ·  behaviour: public/js/main.js
   Reuses .hero-eyebrow and the home CTA banner (.cta-*).
========================= */

.gl-page { overflow-x: clip; }

/* Hero: light, flat backdrop with a faint tech grid */
.gl-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header-space) + clamp(26px, 3.5vw, 48px)) 24px clamp(28px, 3vw, 44px);
    text-align: center;
    color: var(--color-ink);
    background: #f6f3fc;
    border-bottom: 1px solid rgba(94, 60, 158, 0.08);
}

.gl-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* Thin grid lines (drawn with 1px line backgrounds, no colour blending) */
.gl-grid-lines {
    position: absolute;
    inset: -56px 0 0;
    background-image:
        linear-gradient(rgba(94, 60, 158, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 60, 158, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    animation: gl-grid-move 14s linear infinite;
}

@keyframes gl-grid-move { to { transform: translateY(56px); } }

/* Floating tech icons around the title */
.gl-glyphs {
    position: absolute;
    top: var(--header-space);
    right: 0;
    left: 0;
    height: 340px;
    pointer-events: none;
}

.gl-glyph {
    position: absolute;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--color-button);
    background: var(--color-white);
    border: 1px solid rgba(94, 60, 158, 0.12);
    border-radius: 14px;
    box-shadow: 0 10px 24px -16px rgba(46, 26, 94, 0.35);
    animation: gl-float 6s ease-in-out infinite;
}

.gl-glyph svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gl-glyph-1 { top: 60px; left: 12%; }
.gl-glyph-2 { top: 200px; left: 6%; color: #f57433; animation-delay: -2s; }
.gl-glyph-3 { top: 50px; right: 13%; color: #f57433; animation-delay: -4s; }
.gl-glyph-4 { top: 200px; right: 7%; animation-delay: -1s; }

@keyframes gl-float {
    50% { transform: translateY(-12px); }
}

/* 3D curved gallery wall (hero) */
.gl-curve {
    --card-w: clamp(130px, 12.5vw, 190px);
    position: relative;
    height: calc(var(--card-w) * 1.6);
    margin: clamp(10px, 1.5vw, 20px) -24px 0;
    overflow: hidden;
    perspective: 1100px;
    perspective-origin: 50% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.gl-curve-track {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.gl-curve-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--card-w);
    aspect-ratio: 4 / 4.9;
    margin: calc(var(--card-w) * -0.6125) 0 0 calc(var(--card-w) / -2);
    overflow: hidden;
    background: #e9e1f7;
    border-radius: 14px;
    box-shadow: 0 22px 40px -22px rgba(46, 26, 94, 0.55);
    transform-origin: 50% 50%;
    will-change: transform;
    /* page-edge thickness, like framed canvases */
    outline: 1px solid rgba(255, 255, 255, 0.6);
    outline-offset: -1px;
}

.gl-curve-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

/* Before JS places the cards (or with reduced motion), show a flat centred row */
.gl-curve:not(.is-live) .gl-curve-track {
    display: flex;
    justify-content: center;
    gap: 18px;
    align-items: center;
}

.gl-curve:not(.is-live) .gl-curve-card {
    position: relative;
    top: auto;
    left: auto;
    flex: none;
    margin: 0;
}

.gl-hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.gl-crumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #8f8aa5;
}

.gl-crumbs a { color: var(--color-button); font-weight: 600; }
.gl-crumbs a:hover { text-decoration: underline; }

.gl-eyebrow { margin-bottom: 14px; }

.gl-title {
    margin: 0 0 16px;
    font-size: clamp(32px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.gl-accent { color: var(--color-button); }

.gl-text {
    margin: 0 auto;
    max-width: 560px;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.7;
    color: var(--color-text);
}

/* Filter bar + bento grid */
.gl-section { padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 8vw, 100px); }

.gl-container {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 24px;
}

.gl-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(24px, 3vw, 36px);
}

.gl-h2 {
    margin: 0 0 6px;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--color-ink);
}

.gl-bar-copy p {
    margin: 0;
    font-size: 15px;
    color: var(--color-text);
}

/* Segmented control with a sliding pill */
.gl-seg {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    padding: 5px;
    overflow-x: auto;
    background: #f3effb;
    border: 1px solid rgba(94, 60, 158, 0.1);
    border-radius: 999px;
    scrollbar-width: none;
}

.gl-seg::-webkit-scrollbar { display: none; }

.gl-seg-pill {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 0;
    width: 0;
    background: var(--color-button);
    border-radius: 999px;
    box-shadow: 0 8px 18px -8px rgba(94, 60, 158, 0.7);
    transition: transform 0.45s var(--ease-premium), width 0.45s var(--ease-premium);
}

.gl-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--color-ink);
    white-space: nowrap;
    background: none;
    border: 0;
    border-radius: 999px;
    transition: color 0.3s var(--ease);
}

.gl-tab.is-active { color: var(--color-white); }

/* Fallback before JS positions the pill */
.gl-seg:not(.is-ready) .gl-tab.is-active { background: var(--color-button); }

.gl-count {
    min-width: 22px;
    padding: 2px 7px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    color: var(--color-button);
    background: var(--color-white);
    border-radius: 999px;
    transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.gl-tab.is-active .gl-count {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.2);
}

.gl-tab:focus-visible { outline: 2px solid var(--color-button); outline-offset: 2px; }

.gl-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(170px, 17vw, 230px);
    grid-auto-flow: dense;
    gap: clamp(10px, 1.3vw, 16px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.gl-tile { min-width: 0; }
.gl-tile.is-big { grid-column: span 2; grid-row: span 2; }
.gl-tile.is-tall { grid-row: span 2; }
.gl-tile.is-wide { grid-column: span 2; }
.gl-tile.is-hidden { display: none; }

/* Scroll / filter reveal */
.gl-bento.is-ready .gl-tile {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
    transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
    transition-delay: var(--d, 0s);
}

.gl-bento.is-ready .gl-tile.is-in { opacity: 1; transform: none; }

.gl-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
    background: #ece6f8;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 18px 36px -26px rgba(46, 26, 94, 0.55);
    isolation: isolate;
    transition: box-shadow 0.45s var(--ease-premium), transform 0.45s var(--ease-premium);
}

.gl-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-premium);
}

.gl-spot { display: none; }

/* Glass caption panel: hidden until hover / focus */
.gl-glass {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 12px 16px;
    text-align: left;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s var(--ease-premium), transform 0.4s var(--ease-premium);
}

.gl-glass-text { display: grid; gap: 2px; min-width: 0; }

.gl-chip {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-button);
}

.gl-caption {
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-ink);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gl-open {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--color-white);
    background: var(--color-button);
    border-radius: 50%;
}

.gl-open svg,
.gl-lb-btn svg,
.gl-empty-ico svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .gl-card:hover { transform: translateY(-4px); box-shadow: 0 28px 48px -28px rgba(94, 60, 158, 0.6); }
    .gl-card:hover img { transform: scale(1.06); }
    .gl-card:hover .gl-spot { opacity: 1; }
    .gl-card:hover .gl-glass { opacity: 1; transform: none; }
}

.gl-card:focus-visible { outline: 3px solid var(--color-button); outline-offset: 3px; }
.gl-card:focus-visible .gl-glass { opacity: 1; transform: none; }

.gl-empty {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 60px 20px;
    text-align: center;
    color: var(--color-text);
    background: #faf8ff;
    border: 1px dashed rgba(94, 60, 158, 0.25);
    border-radius: 20px;
}

.gl-empty[hidden] { display: none; }

.gl-empty-ico {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    color: var(--color-button);
    background: #efe9fb;
    border-radius: 16px;
}

.gl-empty-ico svg { width: 24px; height: 24px; }
.gl-empty strong { font-size: 17px; font-weight: 600; color: var(--color-ink); }

/* Lightbox */
.gl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px 24px 22px;
    background: rgba(14, 10, 26, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.gl-lightbox[hidden] { display: none; }
.gl-lightbox.is-open { opacity: 1; }

.gl-lb-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gl-lb-pos {
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.7);
}

.gl-lb-stage {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 0;
}

.gl-lb-btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.gl-lb-btn:hover { background: rgba(255, 255, 255, 0.18); }
.gl-lb-btn:active { transform: scale(0.94); }
.gl-lb-btn svg { width: 20px; height: 20px; }

.gl-lb-figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    gap: 14px;
    height: 100%;
    min-height: 0;
    margin: 0;
}

.gl-lb-img {
    align-self: center;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-premium);
}

.gl-lb-img.is-swapping { opacity: 0; transform: scale(0.98); }

.gl-lb-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--color-white);
}

.gl-lb-caption .gl-chip { color: #c9b6ff; }
.gl-lb-title { font-size: 16px; font-weight: 500; }

.gl-lb-thumbs {
    display: flex;
    gap: 8px;
    justify-content: safe center;
    max-width: 100%;
    padding: 4px 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gl-lb-thumbs::-webkit-scrollbar { display: none; }

.gl-lb-thumb {
    flex: none;
    width: 64px;
    height: 46px;
    padding: 0;
    overflow: hidden;
    background: none;
    border: 2px solid transparent;
    border-radius: 9px;
    opacity: 0.45;
    transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}

.gl-lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gl-lb-thumb:hover { opacity: 0.85; }
.gl-lb-thumb.is-active { opacity: 1; border-color: #f57433; }

@media (max-width: 1199.98px) {
    .gl-glyph-2, .gl-glyph-4 { display: none; }
}

@media (max-width: 991.98px) {
    .gl-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .gl-container { padding: 0 16px; }
    .gl-curve { --card-w: 118px; margin-left: -16px; margin-right: -16px; }
    .gl-hero { padding-left: 16px; padding-right: 16px; }
    .gl-glyphs { display: none; }
    .gl-bar { display: block; }
    .gl-bar-copy { margin-bottom: 18px; }
    .gl-seg { display: flex; width: 100%; }
    .gl-tab { height: 40px; padding: 0 14px; font-size: 14px; }
    .gl-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
    .gl-card { border-radius: 14px; }
    .gl-glass { display: none; }

    .gl-lightbox { padding: 12px 12px 16px; }
    .gl-lb-stage { grid-template-columns: minmax(0, 1fr); }
    .gl-lb-prev, .gl-lb-next { display: none; }
    .gl-lb-thumb { width: 52px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .gl-bento.is-ready .gl-tile, .gl-card, .gl-card img, .gl-glass, .gl-seg-pill, .gl-lightbox, .gl-lb-img { transition: none; }
    .gl-grid-lines, .gl-glyph { animation: none; }
}

/* =========================
   BLOG PAGE
   Markup: resources/views/blog.blade.php  ·  filter + search: public/js/main.js
   Clean editorial layout: page header, underline tabs, card grid.
========================= */

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

.bl-page { background: var(--color-white); }

.bl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Page header: warm backdrop, centred search, tilted topic cards on both sides */
.bl-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(var(--header-space) + clamp(26px, 3vw, 44px)) 0 clamp(32px, 3.5vw, 50px);
    text-align: center;
    background: #f8f3ec;
    border-radius: 0 0 clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px);
}

.bl-cards {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.bl-doc {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 170px;
    height: 220px;
    padding: 18px;
    text-align: left;
    color: var(--color-ink);
    background: var(--color-white);
    border-radius: 14px;
    box-shadow: 0 24px 40px -24px rgba(46, 26, 94, 0.45);
    animation: bl-doc 7s ease-in-out infinite;
}

.bl-doc svg {
    width: 58px;
    height: 58px;
    margin-bottom: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bl-doc strong {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.bl-doc small {
    margin-top: 6px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Two mirrored stacks: the front card sits higher, the back card peeks out below it */
.bl-doc-1 { top: calc(var(--header-space) + 128px); left: 28px; color: #fff; background: #f57433; --r: -12deg; }
.bl-doc-2 { z-index: 1; top: calc(var(--header-space) + 22px); left: 150px; --r: -5deg; animation-delay: -2s; }
.bl-doc-3 { z-index: 1; top: calc(var(--header-space) + 22px); right: 150px; background: #ece4f9; --r: 5deg; animation-delay: -4s; }
.bl-doc-4 { top: calc(var(--header-space) + 128px); right: 28px; color: #fff; background: #5e3c9e; --r: 12deg; animation-delay: -1s; }

/* Right-hand cards mirror the layout so the icon stays clear of the card in front */
.bl-doc-3, .bl-doc-4 { align-items: flex-end; text-align: right; }

@keyframes bl-doc {
    0%, 100% { transform: rotate(var(--r)) translateY(0); }
    50% { transform: rotate(var(--r)) translateY(-10px); }
}

.bl-doc { transform: rotate(var(--r)); }

.bl-head-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
}

.bl-crumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13.5px;
    color: #8f8aa5;
}

.bl-crumbs a { color: var(--color-button); font-weight: 500; }
.bl-crumbs a:hover { text-decoration: underline; }

.bl-eyebrow { margin-bottom: 12px; }

.bl-title {
    margin: 0 0 12px;
    font-size: clamp(34px, 4.4vw, 56px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

.bl-accent {
    color: var(--color-button);
    background: linear-gradient(90deg, #f57433 0%, #e24e66 35%, #91399c 70%, #5e3c9e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bl-lead {
    margin: 0 0 24px;
    max-width: 600px;
    font-size: clamp(15.5px, 1.2vw, 17px);
    line-height: 1.65;
    color: var(--color-text);
}

.bl-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(560px, 100%);
    padding: 6px;
    background: var(--color-white);
    border: 1px solid rgba(15, 13, 26, 0.14);
    border-radius: 999px;
    box-shadow: 0 16px 36px -26px rgba(46, 26, 94, 0.5);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.bl-search:focus-within {
    border-color: var(--color-button);
    box-shadow: 0 0 0 5px rgba(94, 60, 158, 0.12), 0 16px 36px -26px rgba(46, 26, 94, 0.5);
}

.bl-search svg {
    position: absolute;
    left: 22px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: #8f8aa5;
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.bl-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 12px 0 46px;
    font: inherit;
    font-size: 15.5px;
    color: var(--color-ink);
    background: none;
    border: 0;
    outline: none;
}

.bl-search input::placeholder { color: #9a95ae; }
.bl-search input::-webkit-search-cancel-button { cursor: pointer; }

.bl-search-btn {
    flex: none;
    height: 48px;
    padding: 0 26px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-button);
    border: 0;
    border-radius: 999px;
    transition: background-color 0.25s var(--ease);
}

.bl-search-btn:hover { background: var(--color-button-light); }

.bl-topics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.bl-topics-label {
    margin-right: 2px;
    font-size: 14px;
    color: #8f8aa5;
}

.bl-topic {
    height: 34px;
    padding: 0 14px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-ink);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(94, 60, 158, 0.14);
    border-radius: 999px;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.bl-topic:hover,
.bl-topic.is-active {
    color: var(--color-white);
    background: var(--color-button);
    border-color: var(--color-button);
}

.bl-body-wrap { padding: clamp(32px, 4vw, 52px) 0 clamp(56px, 8vw, 96px); }

/* Shared bits */
.bl-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-button);
}

.bl-kicker-muted { font-weight: 500; color: #8f8aa5; }

.bl-dot {
    width: 3px;
    height: 3px;
    padding: 0 !important;
    background: #c4bfd6 !important;
    border-radius: 50%;
}

.bl-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #6f6a85;
}

.bl-avatar {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-white);
    background: linear-gradient(135deg, #7552c2, #5e3c9e);
    border-radius: 50%;
}

.bl-meta-sm { font-size: 13px; }
.bl-meta-sm .bl-avatar { width: 24px; height: 24px; font-size: 11px; }

.bl-card-title a {
    color: var(--color-ink);
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.35s var(--ease);
}

.bl-card-title a:hover { background-size: 100% 1px; }

.bl-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-premium);
}

/* Toolbar: underline tabs + count */
.bl-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: clamp(24px, 3vw, 36px);
    border-bottom: 1px solid rgba(15, 13, 26, 0.08);
}

.bl-tabs {
    display: flex;
    gap: clamp(18px, 2.5vw, 32px);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.bl-tabs::-webkit-scrollbar { display: none; }

.bl-tab {
    position: relative;
    flex: none;
    padding: 14px 0;
    font-size: 15px;
    font-weight: 500;
    color: #6f6a85;
    white-space: nowrap;
    background: none;
    border: 0;
    transition: color 0.2s var(--ease);
}

.bl-tab::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--color-button);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}

.bl-tab:hover { color: var(--color-ink); }
.bl-tab.is-active { color: var(--color-ink); font-weight: 600; }
.bl-tab.is-active::after { transform: scaleX(1); }
.bl-tab:focus-visible { outline: 2px solid var(--color-button); outline-offset: 2px; }

.bl-result {
    margin: 0;
    font-size: 14px;
    color: #8f8aa5;
}

/* Card grid */
.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.bl-item {
    transition: opacity 0.35s var(--ease), translate 0.35s var(--ease);
}

.bl-item.is-hidden { display: none; }
.bl-item.is-entering { opacity: 0; translate: 0 10px; }

.bl-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bl-media {
    display: block;
    overflow: hidden;
    margin-bottom: 18px;
    aspect-ratio: 16 / 10;
    background: #efeaf7;
    border-radius: 14px;
}

.bl-card:hover .bl-media img { transform: scale(1.04); }

.bl-card-title {
    margin: 0 0 8px;
    font-size: 18.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.bl-card-text {
    display: -webkit-box;
    margin: 0 0 16px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bl-card .bl-meta { margin-top: auto; }

.bl-empty {
    display: grid;
    gap: 4px;
    padding: 56px 20px;
    text-align: center;
    color: var(--color-text);
    background: #faf9fd;
    border: 1px dashed rgba(94, 60, 158, 0.22);
    border-radius: 16px;
}

.bl-empty[hidden] { display: none; }
.bl-empty strong { font-size: 17px; font-weight: 600; color: var(--color-ink); }

@media (max-width: 1365.98px) {
    .bl-doc { width: 140px; height: 180px; padding: 14px; }
    .bl-doc svg { width: 46px; height: 46px; }
    .bl-doc strong { font-size: 15px; }
    .bl-doc-1 { top: calc(var(--header-space) + 110px); left: 20px; }
    .bl-doc-2 { top: calc(var(--header-space) + 24px); left: 120px; }
    .bl-doc-3 { top: calc(var(--header-space) + 24px); right: 120px; }
    .bl-doc-4 { top: calc(var(--header-space) + 110px); right: 20px; }
}

@media (max-width: 1199.98px) {
    .bl-cards { display: none; }
}

@media (max-width: 991.98px) {
    .bl-cards { display: none; }
    .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .bl-container { padding: 0 16px; }
    .bl-search input { height: 44px; padding-left: 40px; font-size: 15px; }
    .bl-search svg { left: 18px; }
    .bl-search-btn { height: 44px; padding: 0 18px; }
    .bl-grid { grid-template-columns: 1fr; }
    .bl-toolbar { flex-direction: column; align-items: flex-start; gap: 0; }
    .bl-result { padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .bl-item, .bl-media img, .bl-tab::after { transition: none; }
    .bl-doc { animation: none; }
}

/* =========================
   SERVICES PAGE
   Markup: resources/views/our-services.blade.php  ·  animation: public/js/main.js ("Services page")
   Flat colours only, square image corners.
   Default styles = stacked layout (tablet, phone, reduced motion, no JS).
   .sv-scroller.is-horizontal = pinned stage on desktop (added by JS): panels sit on top of each other
   and the timeline swaps them.
========================= */

.sv-page { overflow-x: clip; background: var(--color-white); }

.sv-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.sv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-button);
}

.sv-eyebrow-dot {
    width: 8px;
    height: 8px;
    background: #f57433;
    border-radius: 50%;
}

/* Hero: copy + collage of all six service images */
.sv-hero {
    padding: calc(var(--header-space) + clamp(40px, 5vw, 72px)) 0 clamp(32px, 4vw, 56px);
}

.sv-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.sv-hero-copy { max-width: 580px; }

.sv-crumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 14px;
    color: #8f8aa5;
}

.sv-crumbs a { color: var(--color-button); font-weight: 500; }
.sv-crumbs a:hover { text-decoration: underline; }

.sv-title {
    margin: 0 0 22px;
    font-size: clamp(40px, 4.8vw, 70px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--color-ink);
}

.sv-title em { font-style: normal; color: var(--color-button); }

/* Line masks for the heading reveal */
.sv-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
}

.sv-line > span { display: inline-block; }

.sv-lead {
    max-width: 520px;
    margin: 0 0 32px;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.7;
    color: var(--color-text);
}

.sv-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

.sv-btn {
    height: 54px;
    font-size: 16px;
    font-weight: 600;
    --btn-px: 28px;
}

.sv-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ease);
}

.sv-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sv-tile {
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    background: #ece6f8;
}

.sv-tile img { width: 100%; height: 100%; object-fit: cover; }

/* Services: stacked by default */
.sv-scroller {
    position: relative;
    padding: 0 0 clamp(40px, 6vw, 80px);
    background: #faf8ff;
}

.sv-panel { position: relative; padding: clamp(36px, 5vw, 64px) 0; }

.sv-panel-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
}

.sv-panel.is-flip .sv-media { order: 2; }

.sv-media { position: relative; width: 100%; }

.sv-photo {
    position: relative;
    aspect-ratio: 16 / 10.5;
    overflow: hidden;
    background: #ece6f8;
}

.sv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sv-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
}

.sv-num {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #f57433;
}

.sv-tag {
    padding-left: 14px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8f8aa5;
    border-left: 1px solid rgba(15, 13, 26, 0.15);
}

.sv-h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 2.7vw, 42px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--color-ink);
}

/* Word masks for the service heading reveal */
.sv-w {
    display: inline-block;
    overflow: hidden;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
    vertical-align: top;
}

.sv-w > span { display: inline-block; }

.sv-text {
    max-width: 460px;
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
}

.sv-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-button);
    border-bottom: 2px solid rgba(94, 60, 158, 0.25);
    transition: border-color 0.3s var(--ease);
}

.sv-link:hover { border-color: var(--color-button); }
.sv-link:hover svg { transform: translateX(4px); }

/* Desktop pinned stage (added by JS) */
.sv-scroller.is-horizontal {
    height: 100vh;
    height: 100svh;
    padding: 0;
    overflow: hidden;
}

.sv-scroller.is-horizontal .sv-hero {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: var(--header-space) 0 40px;
}

.sv-scroller.is-horizontal [data-sv-anchor] { visibility: hidden; }   /* service 01's image sits on top of it */

.sv-scroller.is-horizontal .sv-track {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.sv-scroller.is-horizontal .sv-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: calc(var(--header-space) + 24px) 0 32px;
}

.sv-scroller.is-horizontal .sv-panel.is-flip .sv-media { order: 0; }   /* every service: image left, text right */
/* Image and text sit side by side as one centred group */
.sv-scroller.is-horizontal .sv-panel-inner {
    max-width: 1460px;
    grid-template-columns: auto minmax(0, 560px);
    justify-content: center;
    gap: clamp(40px, 4vw, 64px);
}

.sv-scroller.is-horizontal .sv-copy { pointer-events: auto; }
.sv-scroller.is-horizontal .sv-text { max-width: none; font-size: 16.5px; line-height: 1.75; }

.sv-scroller.is-horizontal .sv-media {
    width: min(740px, 50vw, calc((100svh - var(--header-space) - 110px) * 1.52));
    will-change: transform;
}

/* Closing CTA: light flat card, text left, product mockups right */
.sv-final { padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }

.ct-page .sv-final { padding-top: var(--ct-space); }

/* The card runs almost full width: only a small margin either side */
.sv-final .sv-container {
    max-width: 1600px;
    padding: 0 clamp(12px, 2vw, 32px);
}

.sv-final-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    padding: clamp(28px, 3.5vw, 44px) clamp(24px, 4vw, 56px);
    overflow: hidden;
    background: #f3effb;
    border: 1px solid rgba(94, 60, 158, 0.1);
    border-radius: clamp(24px, 3vw, 32px);
}

.sv-final-title {
    margin: 12px 0 14px;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.04em;
    color: var(--color-ink);
    text-wrap: balance;
}

.sv-final-text {
    max-width: 500px;
    margin: 0 0 24px;
    font-size: clamp(16px, 1.2vw, 17.5px);
    line-height: 1.7;
    color: var(--color-text);
}

/* Main laptop sits on the card's bottom edge; small mockups float around it */
.sv-final-visual {
    position: relative;
    align-self: end;
    justify-self: end;
    width: 100%;
    max-width: 580px;
    aspect-ratio: 1.45 / 1;
    margin-bottom: calc(-1 * clamp(28px, 3.5vw, 44px));
}

.sv-mock { position: absolute; }
.sv-mock img { width: 100%; height: auto; }

.sv-mock-main { bottom: 0; left: 0; z-index: 2; width: 100%; }

/* Floating interface cards */
.sv-ui { position: absolute; z-index: 3; }

.sv-ui-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 12px 12px;
    background: var(--color-white);
    border: 1px solid rgba(15, 13, 26, 0.06);
    border-radius: 14px;
    box-shadow: 0 18px 36px -22px rgba(46, 26, 94, 0.45);
    white-space: nowrap;
    animation: sv-float 6s ease-in-out infinite;
}

.sv-ui-ico {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.sv-ui-ico svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sv-ui-ico-orange { color: #e0661f; background: #fdebdf; }
.sv-ui-ico-green { color: #16915a; background: #dff4e9; }

.sv-ui-text { display: grid; gap: 2px; }
.sv-ui-text strong { font-size: 14px; font-weight: 600; color: var(--color-ink); }
.sv-ui small { font-size: 12px; color: #8f8aa5; }

.sv-ui-stack { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; }

.sv-ui-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.sv-ui-up { font-size: 15px; font-weight: 700; color: #16915a; }

.sv-ui-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 46px;
}

.sv-ui-bars i {
    flex: 1;
    height: var(--h);
    background: #ddd3f3;
    border-radius: 3px;
}

.sv-ui-bars i:last-child { background: var(--color-button); }

.sv-ui-order { top: 6%; left: 0; }
.sv-ui-sales { top: 0; right: 0; width: 170px; }
.sv-ui-sales .sv-ui-card { animation-delay: -2s; }
.sv-ui-live { top: 50%; right: -2%; }
.sv-ui-live .sv-ui-card { animation-delay: -4s; }

@keyframes sv-float { 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
    .sv-mock img, .sv-ui-card { animation: none; }
}

@media (max-width: 991.98px) {
    .sv-hero-grid { grid-template-columns: 1fr; }
    .sv-final-card { grid-template-columns: 1fr; }
    .sv-final-visual { width: 100%; max-width: 560px; margin: 0 auto calc(-1 * clamp(28px, 3.5vw, 44px)); }
    .sv-panel-inner { grid-template-columns: 1fr; gap: 40px; }
    .sv-panel.is-flip .sv-media { order: 0; }
    .sv-media { max-width: 680px; }
}

@media (max-width: 575.98px) {
    .sv-container { padding: 0 16px; }
    .sv-collage { gap: 6px; }
    .sv-panel { padding: 28px 0; }
}

/* =========================
   CORPORATE TRAINING PAGE
   Markup: resources/views/corporate-training.blade.php  ·  reveal: public/js/main.js
   Flat colours only.
========================= */

/* One spacing value for every section, so the gaps between sections are equal */
.ct-page { --ct-space: clamp(40px, 4.5vw, 64px); overflow-x: clip; background: var(--color-white); }

.ct-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.ct-h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--color-ink);
    text-wrap: balance;
}

.ct-intro-copy p {
    margin: 0 0 16px;
    font-size: 16.5px;
    line-height: 1.75;
    color: var(--color-text);
}

/* Hero banner */
.ct-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(400px, 33vw, 520px);
    padding: calc(var(--header-space) + 24px) 0 40px;
    overflow: hidden;
    background: var(--color-white);
}

/* Photo fills only the right side; its left edge softens into the white so the text sits on white */
.ct-hero-img {
    position: absolute;
    top: 0;
    right: 0;
    width: min(58%, 860px);
    height: 100%;
    object-fit: cover;
    object-position: right center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

.ct-hero .ct-container { position: relative; }

.ct-hero-copy { max-width: 540px; }

.ct-crumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #6f6a85;
}

.ct-crumbs a { color: var(--color-button); font-weight: 600; }
.ct-crumbs a:hover { text-decoration: underline; }

.ct-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--color-ink);
    text-wrap: balance;
}

.ct-lead {
    max-width: 470px;
    margin: 0 0 26px;
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.7;
    color: #3f3a55;
}

.ct-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 28px;
}

.ct-btn {
    height: 54px;
    font-size: 16px;
    font-weight: 600;
    --btn-px: 28px;
}

.ct-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-ink);
}

.ct-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ct-link svg { transition: transform 0.3s var(--ease); }
.ct-link:hover svg { transform: translateX(4px); }

/* Intro: text left; photo right with the stats card overlapping it */
.ct-intro-sec {
    padding: calc(var(--ct-space) * 1.5) 0 var(--ct-space);
    background: var(--color-white);
}

.ct-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
}

.ct-intro-media { position: relative; }

.ct-intro-photo {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #ece6f8;
    border-radius: 8px;
}

.ct-intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
}

.ct-intro-eyebrow { margin-bottom: 16px; }

.ct-intro-title em { font-style: normal; color: var(--color-button); }

.ct-intro-copy p { max-width: 540px; font-size: 17px; }

.ct-accred {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.ct-accred li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 16px;
    background: var(--color-white);
    border: 1px solid rgba(15, 13, 26, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 24px -20px rgba(46, 26, 94, 0.45);
}

.ct-accred img { width: 96px; height: auto; }

.ct-accred strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-ink);
}

.ct-accred span { font-size: 13px; line-height: 1.35; color: var(--color-text); }

/* Shared editorial type */
/* Centred section heading: title, then a short intro under it */
.ct-head-center {
    max-width: 760px;
    margin: 0 auto clamp(32px, 3.5vw, 48px);
    text-align: center;
}

.ct-head-eyebrow { margin-bottom: 14px; }
.ct-head-center .ct-display { margin: 0 0 18px; }
.ct-head-center .ct-body { max-width: 620px; margin: 0 auto; }

.ct-display {
    margin: 0 0 22px;
    font-size: clamp(30px, 3.4vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--color-ink);
    text-wrap: balance;
}

.ct-body {
    max-width: 520px;
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: var(--color-text);
}

/* 01 Approach: heading row, four tilted feature cards */
.ct-approach { padding: var(--ct-space) 0; background: var(--color-white); }

.ct-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: clamp(14px, 1.6vw, 22px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-feature {
    min-height: 300px;
    padding: 26px 24px 28px;
    color: var(--color-ink);
    background: #efe9fb;
    border-radius: 20px;
    transition: transform 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium);
}

/* Slight, alternating tilt like loose cards on a table; the dark one sits higher */
.ct-feature:nth-child(1) { transform: rotate(0deg); margin-top: 18px; }
.ct-feature:nth-child(2) { transform: rotate(-4deg); }
.ct-feature:nth-child(3) { transform: rotate(3deg); margin-top: 22px; background: #f5f1fd; }
.ct-feature:nth-child(4) { transform: rotate(0deg); margin-top: 18px; }

.ct-feature.is-dark {
    color: var(--color-white);
    background: #1f1838;
    box-shadow: 0 30px 50px -30px rgba(31, 24, 56, 0.6);
}

@media (hover: hover) {
    .ct-feature:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 30px 50px -32px rgba(46, 26, 94, 0.5); }
}

.ct-feature-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 26px;
    color: var(--color-white);
    background: var(--color-button);
    border-radius: 50%;
}

.ct-feature.is-dark .ct-feature-ico { color: var(--color-button); background: var(--color-white); }

.ct-feature-ico svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.ct-feature h3 {
    margin: 0 0 16px;
    font-size: clamp(18px, 1.5vw, 21px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.ct-feature ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-feature ul li {
    position: relative;
    padding-left: 14px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--color-text);
}

.ct-feature ul li::before {
    content: '';
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.6;
}

.ct-feature.is-dark ul li { color: rgba(255, 255, 255, 0.78); }

.ct-journey { padding: var(--ct-space) 0; }

/* 02 How we teach: heading + scrolling colour cards */
.ct-teach {
    position: relative;
    overflow: hidden;
    padding: var(--ct-space) 0;
    background: var(--color-white);
}

.ct-teach-loops {
    position: absolute;
    top: -30px;
    right: clamp(-60px, -2vw, 0px);
    width: clamp(220px, 24vw, 340px);
    height: auto;
    fill: none;
    stroke: #cdbdf3;
    stroke-width: 1.4;
    pointer-events: none;
}

.ct-teach-arrow svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Four cards, all visible at once */
.ct-teach-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-teach-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 230px;
    padding: 18px;
    overflow: hidden;
    border-radius: 22px;
}

.ct-teach-card.tone-lavender { background: #d9cdf6; }
.ct-teach-card.tone-orange   { background: #ffa56e; }
.ct-teach-card.tone-blue     { background: #b9d4f2; }
.ct-teach-card.tone-lime     { background: #d4f1a3; }

.ct-teach-arrow {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--color-ink);
    background: var(--color-white);
    border-radius: 50%;
    transition: transform 0.35s var(--ease);
}

.ct-teach-card:hover .ct-teach-arrow { transform: rotate(45deg); }

.ct-teach-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 56px 12px 6px 6px;
}

.ct-teach-tag {
    align-self: flex-start;
    margin-bottom: 10px;
    padding: 2px 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-ink);
    border: 1px solid rgba(15, 13, 26, 0.55);
    border-radius: 999px;
}

.ct-teach-copy h3 {
    margin: 0 0 6px;
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.ct-teach-copy p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: rgba(15, 13, 26, 0.72);
}

/* Photo cut with an angled top-left corner */
.ct-teach-photo {
    align-self: start;
    height: 82%;
    min-height: 150px;
    overflow: hidden;
    clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
    border-radius: 0 14px 14px 14px;
}

.ct-teach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.6s var(--ease-premium);
}

.ct-teach-card:hover .ct-teach-photo img { transform: scale(1.05); }

/* 03 Workshop journey */
.ct-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Photo card */
.ct-step {
    --panel-h: 112px;              /* collapsed panel: step label + title */
    position: relative;
    padding-bottom: var(--panel-h);
    overflow: hidden;
    background: #e9e4f3;
    border-radius: 18px;
    outline: none;
}

/* Whole photo, never cropped */
.ct-step-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
}

/* Colour panel along the bottom */
.ct-step-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: var(--panel-h);
    padding: 20px 22px 22px;
    color: var(--color-white);
}

.ct-step.tone-purple .ct-step-panel { background: #5e3c9e; }
.ct-step.tone-rust   .ct-step-panel { background: #8a3a22; }
.ct-step.tone-teal   .ct-step-panel { background: #1c6b78; }
.ct-step.tone-green  .ct-step-panel { background: #17633b; }

/* Subtle white pattern on each panel (different per card), fading out behind the text */
.ct-step-panel { overflow: hidden; }
.ct-step-panel > * { position: relative; z-index: 1; }

.ct-step-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(115deg, transparent 18%, #000 75%);
    mask-image: linear-gradient(115deg, transparent 18%, #000 75%);
}

.ct-step.tone-purple .ct-step-panel::before {          /* dot grid */
    background-image: radial-gradient(rgba(255, 255, 255, 0.34) 1.4px, transparent 1.8px);
    background-size: 14px 14px;
}

.ct-step.tone-rust .ct-step-panel::before {            /* diagonal stripes */
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 1.5px, transparent 1.5px 11px);
}

.ct-step.tone-teal .ct-step-panel::before {            /* square grid */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 18px 18px;
}

.ct-step.tone-green .ct-step-panel::before {           /* concentric rings from the corner */
    background-image: repeating-radial-gradient(circle at 100% 0, transparent 0 13px, rgba(255, 255, 255, 0.18) 13px 14.5px);
}

.ct-step-num {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.ct-step h3 {
    margin: 0;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 500;
    letter-spacing: -0.02em;
}

/* Description: hidden until hover / keyboard focus, then the panel grows upwards over the photo */
.ct-step-more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--ease-premium);
}

.ct-step-more p {
    min-height: 0;
    margin: 0;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    translate: 0 14px;
    transition: opacity 0.35s var(--ease), translate 0.5s var(--ease-premium), padding-top 0.5s var(--ease-premium);
}

.ct-step:hover .ct-step-more,
.ct-step:focus-visible .ct-step-more { grid-template-rows: 1fr; }

.ct-step:hover .ct-step-more p,
.ct-step:focus-visible .ct-step-more p { padding-top: 10px; opacity: 1; translate: 0 0; transition-delay: 0.05s; }

/* Touch screens can't hover: show the description under the full photo instead */
@media (hover: none) {
    .ct-step { padding-bottom: 0; }
    .ct-step-panel { position: relative; min-height: 0; }
    .ct-step-more { grid-template-rows: 1fr; }
    .ct-step-more p { padding-top: 10px; opacity: 1; translate: 0 0; }
}

.ct-step:focus-visible { box-shadow: 0 0 0 3px var(--color-white), 0 0 0 5px var(--color-button); }

/* Reveal on scroll (JS adds .is-in) */
.ct-page.is-ready [data-ct-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-premium), transform 0.7s var(--ease-premium);
    transition-delay: var(--d, 0s);
}

.ct-page.is-ready [data-ct-reveal].is-in { opacity: 1; transform: none; }

/* Feature cards keep their tilt: reveal them with opacity + translate (not transform) */
.ct-page.is-ready .ct-feature[data-ct-reveal] {
    transform: none;
    translate: 0 24px;
    transition: opacity 0.7s var(--ease-premium), translate 0.7s var(--ease-premium), transform 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium);
    transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s;
}
.ct-page.is-ready .ct-feature[data-ct-reveal].is-in { translate: 0 0; }
.ct-page.is-ready .ct-feature:nth-child(2)[data-ct-reveal] { transform: rotate(-4deg); }
.ct-page.is-ready .ct-feature:nth-child(3)[data-ct-reveal] { transform: rotate(3deg); }

/* ---------- Richer motion ---------- */

/* Hero: copy rises in line by line on load, photo settles from a slight zoom */
.ct-hero-copy > * { animation: ct-rise 0.9s var(--ease-premium) both; }
.ct-hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.ct-hero-copy > :nth-child(3) { animation-delay: 0.22s; }
.ct-hero-copy > :nth-child(4) { animation-delay: 0.34s; }
.ct-hero-img { animation: ct-settle 1.6s var(--ease-premium) both; }

@keyframes ct-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes ct-settle { from { opacity: 0; scale: 1.08; } }

/* Section headings: title rises, then the intro line */
.ct-page.is-ready .ct-head-center[data-ct-reveal] { transform: none; }
.ct-page.is-ready .ct-head-center .ct-head-eyebrow,
.ct-page.is-ready .ct-head-center h2,
.ct-page.is-ready .ct-head-center p {
    opacity: 0;
    translate: 0 30px;
    transition: opacity 0.8s var(--ease-premium), translate 0.8s var(--ease-premium);
}
.ct-page.is-ready .ct-head-center h2 { transition-delay: 0.08s; }
.ct-page.is-ready .ct-head-center p { transition-delay: 0.2s; }
.ct-page.is-ready .ct-head-center.is-in .ct-head-eyebrow,
.ct-page.is-ready .ct-head-center.is-in h2,
.ct-page.is-ready .ct-head-center.is-in p { opacity: 1; translate: 0 0; }

/* Intro photo wipes open from the right, image settles from a zoom */
.ct-page.is-ready .ct-intro-media[data-ct-reveal] { transform: none; opacity: 1; }
.ct-page.is-ready .ct-intro-photo {
    clip-path: inset(0 0 0 100% round 8px);
    transition: clip-path 1.2s var(--ease-premium) 0.1s;
}
.ct-page.is-ready .ct-intro-photo img { scale: 1.18; transition: scale 1.6s var(--ease-premium) 0.1s; }
.ct-page.is-ready .ct-intro-media.is-in .ct-intro-photo { clip-path: inset(0 0 0 0 round 8px); }
.ct-page.is-ready .ct-intro-media.is-in .ct-intro-photo img { scale: 1; }

/* Approach cards fly up and land at their tilt, one after another */
.ct-page.is-ready .ct-feature[data-ct-reveal] {
    translate: 0 110px;
    rotate: 9deg;
    transition: opacity 0.8s var(--ease-premium), translate 1s var(--ease-premium), rotate 1s var(--ease-premium), transform 0.45s var(--ease-premium), box-shadow 0.45s var(--ease-premium);
    transition-delay: var(--d, 0s), var(--d, 0s), var(--d, 0s), 0s, 0s;
}
.ct-page.is-ready .ct-feature:nth-child(even)[data-ct-reveal] { rotate: -9deg; }
.ct-page.is-ready .ct-feature[data-ct-reveal].is-in { translate: 0 0; rotate: 0deg; }

/* Teach cards slide in from the right in sequence; photos settle from a zoom */
.ct-page.is-ready .ct-teach-card[data-ct-reveal] {
    transform: none;
    translate: 160px 0;
    transition: opacity 0.8s var(--ease-premium), translate 1s var(--ease-premium);
    transition-delay: var(--d, 0s);
}
.ct-page.is-ready .ct-teach-card[data-ct-reveal].is-in { translate: 0 0; }
.ct-page.is-ready .ct-teach-card .ct-teach-photo img { scale: 1.25; transition: scale 1.4s var(--ease-premium); transition-delay: calc(var(--d, 0s) + 0.2s); }
.ct-page.is-ready .ct-teach-card.is-in .ct-teach-photo img { scale: 1; }

/* Workshop cards fade up, then the colour panel slides up from the bottom edge */
.ct-page.is-ready .ct-step[data-ct-reveal] .ct-step-panel {
    translate: 0 101%;
    transition: translate 0.9s var(--ease-premium);
    transition-delay: calc(var(--d, 0s) + 0.3s);
}
.ct-page.is-ready .ct-step[data-ct-reveal].is-in .ct-step-panel { translate: 0 0; }

/* Closing section: the main laptop rises from the card's bottom edge */
.ct-page.is-ready .sv-final .sv-mock-main[data-ct-reveal] { transform: none; translate: 0 60px; transition: opacity 0.9s var(--ease-premium), translate 1.1s var(--ease-premium); }
.ct-page.is-ready .sv-final .sv-mock-main[data-ct-reveal].is-in { translate: 0 0; }

/* Below 1200px the photo no longer leaves room for text: stack text above the photo */
@media (max-width: 1199.98px) {
    .ct-intro { grid-template-columns: 1fr; }
    .ct-intro-media { max-width: 640px; }

    .ct-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: calc(var(--header-space) + 28px) 0 0;
        background: var(--color-white);
    }

    .ct-hero-img {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 2.3 / 1;
        -webkit-mask-image: none;
        mask-image: none;
        margin-top: 32px;
        order: 2;
        object-position: 78% center;
    }
}

@media (max-width: 991.98px) {
    .ct-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .ct-feature,
    .ct-page.is-ready .ct-feature[data-ct-reveal] { min-height: 0; margin-top: 0 !important; transform: none !important; rotate: 0deg; }
    .ct-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ct-teach-loops { opacity: 0.6; }
}

@media (max-width: 575.98px) {
    .ct-container { padding: 0 16px; }
    .ct-hero-img { aspect-ratio: 16 / 9; }
    .ct-steps { grid-template-columns: 1fr; }
    .ct-features { grid-template-columns: 1fr; }
    .ct-teach-grid { grid-template-columns: 1fr; }
    .ct-teach-card { min-height: 210px; }
    .ct-accred li { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .ct-page.is-ready [data-ct-reveal],
    .ct-page.is-ready .ct-head-center .ct-head-eyebrow,
    .ct-page.is-ready .ct-head-center h2,
    .ct-page.is-ready .ct-head-center p,
    .ct-page.is-ready .ct-step-panel { opacity: 1; transform: none; translate: none; rotate: none; transition: none; }
    .ct-page.is-ready .ct-intro-photo { clip-path: none; }
    .ct-page.is-ready .ct-intro-photo img,
    .ct-page.is-ready .ct-teach-photo img,
    .ct-page.is-ready .ct-step-img { scale: none; }
    .ct-hero-copy > *, .ct-hero-img { animation: none; }
    .ct-teach-arrow, .ct-teach-photo img, .ct-step-more, .ct-step-more p { transition: none; }
}

/* =========================
   FOOTER
========================= */

.site-footer {
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--section-radius) var(--section-radius) 0 0;
    background:
        var(--noise),
        linear-gradient(90deg, var(--color-deep) 0%, #371e5e 62%, #4f3350 82%, #5c3b4c 100%);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    padding-bottom: 40px;
}

.footer-logo {
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-logo .site-logo-img {
    height: 44px;
}

.footer-brand p {
    max-width: 340px;
    margin: 0;
}

.footer-column h4 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-white);
}

.footer-column li + li {
    margin-top: 12px;
}

.footer-column a,
.footer-bottom a {
    transition: color 0.25s var(--ease);
}

.footer-column a:hover,
.footer-bottom a:hover {
    color: var(--color-white);
}

/* Trust badges / payment / social row */
.footer-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding: 32px 0 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-badge-group h5 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-white);
}

.footer-badge-group h5 svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #34d399;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-badge-logos {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-badge-logos img { width: auto; height: 44px; }

.footer-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-cards img {
    width: 80px;
    height: auto;
    border-radius: 4px;
}

.footer-social {
    display: flex;
    gap: 14px;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    color: var(--color-white);
    border-radius: 50%;
    transition: transform 0.25s var(--ease);
}

.footer-social a:hover { transform: translateY(-3px); }
.footer-social .is-facebook { background: #1877f2; }
.footer-social .is-instagram { background: #e4253f; }

.footer-social svg { width: 24px; height: 24px; fill: currentColor; }
.footer-social svg.is-stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.footer-social svg .is-dot { fill: currentColor; stroke: none; }

/* Bottom bar */
.footer-bottom {
    position: relative;
    padding: 18px 0;
    font-size: 15px;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.16);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 0;
}

.footer-bottom p { margin: 0; }

.footer-bottom a {
    font-weight: 600;
    color: #fde047;
    transition: color 0.25s var(--ease);
}

.footer-bottom a:hover { color: #fef08a; }

/* Floating WhatsApp chat button (all pages) */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    color: var(--color-white);
    background: #25d366;
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s var(--ease);
}

.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }

@media (max-width: 991.98px) {
    .footer-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .footer-badges { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
    .footer-bottom { padding: 16px 0 84px; font-size: 14px; text-align: center; }   /* room for the WhatsApp button */
    .footer-bottom-inner { justify-content: center; }
    .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* =========================
   ADMIN
========================= */

.admin-auth {
    min-height: 100vh;
    background:
        var(--noise),
        radial-gradient(ellipse 50% 60% at 0% 0%, rgba(150, 80, 130, 0.6), transparent 70%),
        radial-gradient(ellipse 60% 60% at 100% 100%, var(--color-mauve), transparent 75%),
        linear-gradient(120deg, #3a1f68 0%, var(--color-deep) 60%, #4a2a60 100%);
}

.auth-wrapper {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 40px 16px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 44px 40px 40px;
    background: var(--color-white);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 6, 40, 0.35);
}

.auth-logo {
    display: inline-block;
    margin-bottom: 28px;
}

.auth-logo img {
    height: 44px;
    width: auto;
}

.auth-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.auth-subtitle {
    margin: 0 0 28px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-ink);
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f6fc;
    border: 1.5px solid var(--color-border);
    border-radius: 14px;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.input-wrap:focus-within {
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(115, 67, 209, 0.12);
}

.input-wrap.has-error {
    border-color: #e5484d;
}

.input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #9a94b3;
    pointer-events: none;
    transition: color 0.2s var(--ease);
}

.input-wrap:focus-within .input-icon {
    color: var(--color-primary);
}

.form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    font: inherit;
    font-size: 15px;
    color: var(--color-ink);
    background: transparent;
    border: 0;
    border-radius: 14px;
    outline: none;
}

.form-input::placeholder {
    color: #aaa5c0;
}

.input-wrap:has(.password-toggle) .form-input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #9a94b3;
    border-radius: 10px;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.password-toggle:hover {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.password-toggle .icon-eye-off,
.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-off {
    display: block;
}

.field-error {
    margin: 6px 0 0;
    font-size: 13px;
    color: #d93036;
}

.form-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 26px;
    font-size: 14px;
    cursor: pointer;
}

.form-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--color-primary);
}

.btn-primary,
.btn-outline {
    --btn-px: 28px;
    height: 52px;
    font-size: 16px;
    font-weight: 600;
}

.btn-outline {
    --btn-px: 22px;
    height: 44px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.admin-body {
    min-height: 100vh;
    background: #f6f4fb;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 32px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.admin-logo img {
    height: 40px;
    width: auto;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    color: var(--color-ink);
}

.admin-user form {
    margin: 0;
}

.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
}

.admin-title {
    margin: 0 0 6px;
    font-size: 32px;
    letter-spacing: -0.02em;
    color: var(--color-ink);
}

.admin-subtitle {
    margin: 0 0 32px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
}

.stat-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    color: var(--color-ink);
}

/* =========================
   RESPONSIVE
========================= */

/* Large laptop */
@media (max-width: 1599.98px) {
    .nav-menu { gap: 26px; }
    .nav-link { font-size: 17px; }
}

/* Laptop */
@media (max-width: 1399.98px) {
    :root {
        --header-gap: 24px;
        --header-height: 82px;
    }

    .header-container {
        padding: 14px var(--header-gap);
    }

    .site-logo-img { height: 44px; }

    .nav-menu { gap: 22px; }
    .nav-link { font-size: 16px; }

    .header-actions { gap: 14px; }
    .btn-demo { --btn-px: 22px; height: 50px; font-size: 17px; }
}

/* Tablet & mobile: collapse navigation into a panel */
@media (max-width: 1279.98px) {
    :root {
        --header-gap: 16px;
        --header-height: 76px;
    }

    .header-container {
        justify-content: space-between;
        padding: 12px var(--header-gap);
        border-radius: 0 0 20px 20px;
    }

    .nav-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        flex-direction: column;
        justify-content: flex-start;
        max-height: calc(100vh - var(--header-space) - 32px);
        padding: 16px;
        overflow-y: auto;
        background: var(--color-white);
        border-radius: 24px;
        box-shadow: 0 24px 60px rgba(20, 12, 46, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition:
            opacity 0.3s var(--ease),
            transform 0.3s var(--ease),
            visibility 0.3s;
    }

    .main-navigation {
        left: 12px;
        right: 12px;
    }

    .site-header.menu-open .main-navigation {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-item + .nav-item {
        border-top: 1px solid var(--color-border);
    }

    .nav-link {
        justify-content: space-between;
        width: 100%;
        padding: 14px 8px;
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 0;
        visibility: visible;
        transform: none;
        transition: max-height 0.35s var(--ease), opacity 0.25s var(--ease), padding 0.35s var(--ease);
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-item.is-open > .dropdown-menu {
        max-height: 400px;
        padding-bottom: 10px;
        opacity: 1;
        transform: none;
    }

    .dropdown-link {
        padding: 10px 16px;
    }

    .mega-menu {
        width: auto;
        max-height: 0;
        padding: 0 8px;
        overflow: hidden;
    }

    .nav-item.is-open > .mega-menu {
        max-height: 1400px;
        padding: 6px 8px 16px;
    }

    .mega-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 2px 8px;
        max-height: none;
        overflow: visible;
    }

    .mega-item { padding: 10px 8px; }
    .mega-icon { width: 36px; height: 36px; }
    .mega-name { font-size: 15px; }
    .mega-all { min-height: 52px; }
}

@media (max-width: 767.98px) {
    :root {
        --topbar-height: 34px;
        --section-radius: 28px;
        --header-gap: 12px;
        --header-height: 68px;
    }

    .header-container {
        padding: 10px 16px;
    }

    .site-logo-img { height: 38px; }

    .header-actions {
        gap: 12px;
    }

    .header-actions > .btn-demo {
        display: none;
    }

    .mobile-nav-actions {
        display: block;
        margin-top: 12px;
    }

    .mobile-nav-actions .btn-demo {
        width: 100%;
        height: 50px;
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .section {
        padding: 70px 20px;
    }

    .section h2 {
        font-size: 30px;
    }
}

@media (max-width: 479.98px) {
    .topbar-list li { gap: 36px; padding-right: 36px; font-size: 12.5px; }
    .topbar::before,
    .topbar::after { width: 24px; }

    .auth-card { padding: 32px 22px 28px; border-radius: 22px; }
    .auth-title { font-size: 24px; }
    .admin-topbar { padding: 12px 16px; }
    .admin-user span { display: none; }
    .admin-main { padding: 28px 16px; }
}

@media (max-width: 399.98px) {

    .site-logo-img { height: 34px; }
}

/* Home hero */
/* Tablet: keep two columns, smaller image */
@media (max-width: 991.98px) {
    .home-hero-inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        column-gap: 20px;
    }

    .btn-hero-primary {
        --btn-px: 20px;
        height: 50px;
        font-size: 15px;
    }

    .hero-visual { min-height: 360px; }
    .home-hero-title > span { white-space: normal; }
}

/* Short laptop screens: tighten vertical rhythm so the whole hero fits the first view */
@media (min-width: 820px) and (max-height: 820px) {
    .home-hero { padding-top: calc(var(--header-space) + 14px); }
    .hero-content { padding: 0 0 18px; }
    .hero-eyebrow { /* margin-bottom: 10px; */ /* padding: 5px 12px; */ }
    .home-hero-title { margin-bottom: 10px; font-size: 47px; line-height: 1.04; }
    .hero-tech { margin-bottom: 16px; }
    .tech-icon { width: 40px; height: 40px; border-radius: 10px; }
    .tech-icon img { width: 22px; height: 22px; }
    .hero-text { margin-bottom: 18px; font-size: 17px; line-height: 1.6; }

    .btn-hero-primary { height: 48px; }

}

/* Mobile: content first, students below */
@media (max-width: 819.98px) {
    .home-hero {
        min-height: 0;
        padding: calc(var(--header-space) + 24px) 16px 0;
    }

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

    .hero-content {
        max-width: none;
        padding: 0 0 8px;
    }

    .hero-eyebrow { font-size: 11px; letter-spacing: 0.12em; }

    .home-hero-title { font-size: clamp(34px, 9.4vw, 46px); }

    .hero-actions > a { flex: 1 1 180px; }

    .hero-tech-list { gap: 6px; }
    .tech-icon { width: 36px; height: 36px; border-radius: 10px; }
    .tech-icon img { width: 20px; height: 20px; }


    .hero-visual {
        min-height: 0;
        aspect-ratio: 1374 / 1145;
        margin-top: 12px;
    }

    .hero-burst { top: 2%; right: 2%; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Very small phones: keep the technology icons on one row */
@media (max-width: 399.98px) {
    .hero-tech-list { gap: 5px; }
    .tech-icon { width: 34px; height: 34px; }
    .tech-icon img { width: 19px; height: 19px; }
}

@media (max-width: 349.98px) {
    .tech-icon { width: 30px; height: 30px; border-radius: 8px; }
    .tech-icon img { width: 17px; height: 17px; }
}

/* Short phones: shrink the photo so the whole section still fits one screen */
@media (max-width: 767.98px) and (max-height: 740px) {
    .zero-stage { padding-top: 24vh; }
    .zero-person { height: 24vh; }
    .zero-title { font-size: 28px; }
    .zero-text { margin: 10px auto; font-size: 13.5px; line-height: 1.5; }
    .zero-msg-text { font-size: 12.5px; }
    .zero-btn { height: 46px; }
}
