/* =========================================================
   SWAMARGA
   COMPLETE RESPONSIVE STYLESHEET
   ========================================================= */


/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {
    --ink: #14211b;
    --ink-soft: #3d4a42;
    --muted: #5e6b62;

    --bone: #eef2ea;
    --paper: #fcfdf9;

    --moss: #1f6f54;
    --moss-deep: #123a2c;

    --madder: #ef5f3f;
    --madder-soft: #ff8f6b;

    --marigold: #ffc247;
    --clay: #dbe6d9;
    --sky: #4fa89e;

    --line: rgba(20, 33, 27, 0.14);
    --line-soft: rgba(20, 33, 27, 0.07);

    --shadow: 0 18px 46px rgba(15, 40, 30, 0.14);

    --serif: "Fraunces", Georgia, serif;
    --sans: "Work Sans", "Segoe UI", Arial, sans-serif;

    --radius-organic: 4% 32% 4% 32% / 32% 4% 32% 4%;
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100vh;

    overflow-x: hidden;

    color: var(--ink);
    background: var(--paper);

    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    text-rendering: optimizeLegibility;
}

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

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    -webkit-appearance: none;
    appearance: none;
}

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

h1,
h2,
h3,
p,
ul {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 500;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(1160px, calc(100% - 48px));
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   SKIP LINK
   ========================================================= */

.skip-link {
    position: fixed !important;

    top: -100px !important;
    left: 20px !important;

    z-index: 99999 !important;

    display: block !important;

    padding: 12px 18px !important;

    background: var(--moss-deep) !important;
    color: var(--paper) !important;

    border-radius: 6px !important;

    font-family: var(--sans) !important;
    font-size: 15px !important;
    font-weight: 600 !important;

    line-height: 1.2 !important;

    opacity: 0 !important;

    transition:
        top 0.2s ease,
        opacity 0.2s ease !important;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 20px !important;

    opacity: 1 !important;

    outline: 3px solid var(--marigold) !important;
    outline-offset: 3px !important;
}


/* =========================================================
   SCREEN READER TEXT
   ========================================================= */

.sr-only {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    padding: 0 !important;
    margin: -1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;

    white-space: nowrap !important;

    border: 0 !important;
}


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

.site-header {
    position: sticky;

    top: 0;

    z-index: 100;

    width: 100%;

    background: rgba(250, 247, 238, 0.94);

    border-bottom: 1px solid var(--line-soft);

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.nav-wrap {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    min-height: 92px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: inline-flex;

    align-items: center;

    gap: 12px;

    flex-shrink: 0;

    font-weight: 700;

    letter-spacing: 0.04em;
}

.brand-mark {
    display: block;

    width: auto;

    height: 106px;

    max-width: 180px;

    object-fit: contain;
}

.brand-name {
    white-space: nowrap;
}


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

.primary-nav {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 20px;
}

.primary-nav > a {
    display: inline-flex;

    align-items: center;

    min-height: 44px;

    color: var(--ink-soft);

    font-size: 0.92rem;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.primary-nav > a:hover {
    color: var(--moss);
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
    display: none;

    width: 46px;
    height: 42px;

    padding: 8px;

    border: 1px solid var(--line);

    border-radius: 6px;

    background: var(--paper);

    cursor: pointer;

    position: relative;
}

.menu-toggle span:not(.sr-only) {
    display: block;

    width: 24px;
    height: 2px;

    margin: 6px auto;

    background: var(--ink);
}


/* =========================================================
   BUTTONS
   IMPORTANT:
   HTML USES .button
   ========================================================= */

.button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 48px;

    padding: 12px 22px;

    border: 1px solid transparent;

    border-radius: 999px;

    background: var(--moss);

    color: var(--paper);

    font-family: var(--sans);

    font-size: 0.95rem;

    font-weight: 600;

    line-height: 1.2;

    text-align: center;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover {
    background: var(--moss-deep);

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(18, 58, 44, 0.16);
}

.button:focus-visible {
    outline: 3px solid var(--marigold);

    outline-offset: 3px;
}

.button-small {
    min-height: 42px;

    padding: 9px 17px;

    font-size: 0.88rem;
}

.button-outline {
    background: transparent;
}


/* =========================================================
   TEXT LINKS
   ========================================================= */

.text-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--moss);

    font-weight: 600;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.text-link:hover {
    color: var(--moss-deep);

    transform: translateX(2px);
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.kicker {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--moss);

    font-size: 0.76rem;

    font-weight: 700;

    line-height: 1.3;

    text-transform: uppercase;

    letter-spacing: 0.14em;
}

.lede {
    color: var(--ink-soft);

    font-size: 1.15rem;

    line-height: 1.7;
}

.hero-intro {
    max-width: 650px;
}


/* =========================================================
   HIGHLIGHT
   ========================================================= */

.highlight {
    position: relative;
}


/* =========================================================
   SECTION
   ========================================================= */

.section {
    padding: 100px 0;
}

.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 40px;

    margin-bottom: 48px;
}

.section-heading h2 {
    margin-bottom: 0;

    font-size: clamp(2.3rem, 4vw, 4rem);

    line-height: 1.05;
}


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

.hero {
    background: var(--bone);

    overflow: hidden;
}

.hero-grid {
    display: grid;

    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);

    align-items: center;

    gap: 60px;

    padding: 72px 0 88px;
}

.hero-copy {
    min-width: 0;
}

.hero h1 {
    margin-bottom: 26px;

    font-size: clamp(3rem, 6vw, 5.5rem);

    line-height: 0.98;
}

.hero h1 em {
    font-style: italic;
}

.hero-actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 16px;

    margin-top: 32px;
}

.hero-figure {
    position: relative;

    min-width: 0;
}

.hero-figure img {
    width: 100%;

    height: 460px;

    object-fit: cover;

    border-radius: var(--radius-organic);

    box-shadow: var(--shadow);
}

.hero-figure-note {
    position: absolute;

    right: -12px;

    bottom: -18px;

    max-width: 230px;

    margin: 0;

    padding: 18px;

    background: var(--paper);

    border: 1px solid var(--line-soft);

    box-shadow: var(--shadow);

    font-size: 0.9rem;
}


/* =========================================================
   COURSE GALLERY
   ========================================================= */

.course-gallery {
    padding: 72px 0 84px;

    border-top: 1px solid var(--line-soft);

    background: var(--paper);
}

.gallery-track {
    display: flex;

    gap: 20px;

    overflow-x: auto;

    padding: 4px 4px 18px;

    margin: 0 -4px;

    scroll-behavior: smooth;

    scroll-snap-type: x proximity;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
}

.gallery-track::-webkit-scrollbar {
    height: 7px;
}

.gallery-track::-webkit-scrollbar-track {
    background: var(--bone);
}

.gallery-track::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 999px;
}

.gallery-card {
    flex: 0 0 300px;

    min-width: 300px;

    overflow: hidden;

    background: var(--paper);

    border: 1px solid var(--line-soft);

    scroll-snap-align: start;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow);
}

.gallery-card > img {
    width: 100%;

    height: 200px;

    object-fit: cover;
}

.gallery-card-body {
    padding: 22px;
}

.gallery-card-body h3 {
    margin-bottom: 10px;

    font-size: 1.55rem;

    line-height: 1.15;
}

.gallery-card-body p:not(.kicker) {
    color: var(--muted);
}

.gallery-controls {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 18px;
}

.gallery-button {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 44px;

    height: 44px;

    padding: 0;

    border: 1px solid var(--line);

    border-radius: 50%;

    background: var(--paper);

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.gallery-button:hover {
    background: var(--moss);

    color: var(--paper);
}


/* =========================================================
   MBEX
   ========================================================= */

.mbex-feature {
    background: var(--madder);

    color: var(--paper);

    overflow: hidden;
}

.mbex-feature-grid {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 64px;

    align-items: center;

    padding: 96px 0;
}

.mbex-feature-image {
    position: relative;

    min-width: 0;
}

.mbex-feature-image img {
    width: 100%;

    height: 380px;

    object-fit: cover;

    border-radius: 4px;
}

.mbex-badge {
    position: absolute;

    top: 18px;

    left: 18px;

    z-index: 2;

    padding: 7px 11px;

    background: var(--paper);

    color: var(--moss-deep);

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.12em;
}

.mbex-feature-copy .kicker {
    color: var(--paper);
}

.mbex-feature-copy h2 {
    margin-bottom: 24px;

    font-size: clamp(2.5rem, 4vw, 4.2rem);

    line-height: 1.05;
}

.mbex-feature-copy p {
    font-size: 1.05rem;

    line-height: 1.7;
}

.mbex-feature-copy .mbex-lead {
    font-size: 1.25rem;

    font-weight: 500;
}


/* =========================================================
   APPROACH
   ========================================================= */

.approach {
    background: var(--paper);
}

.two-col {
    display: grid;

    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);

    gap: 80px;

    align-items: start;
}

.two-col h2 {
    margin-bottom: 0;

    font-size: clamp(2.3rem, 4vw, 4rem);

    line-height: 1.05;
}


/* =========================================================
   PATHWAYS
   ========================================================= */

.pathways {
    background: var(--bone);
}

.pathway-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.pathway-card {
    position: relative;

    min-height: 260px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 26px;

    border: 1px solid var(--line);

    background: var(--paper);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.pathway-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow);
}

.pathway-card h3 {
    margin-bottom: 8px;

    font-size: 1.45rem;

    line-height: 1.2;
}

.pathway-card p {
    margin-bottom: 0;

    color: var(--muted);
}

.pathway-arrow {
    position: absolute;

    top: 22px;

    right: 22px;

    font-size: 1.2rem;

    color: var(--moss);
}


/* =========================================================
   FOUNDER
   ========================================================= */

.founder {
    background: var(--paper);
}

.founder-grid {
    display: grid;

    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);

    gap: 60px;

    align-items: center;
}

.founder-portrait {
    width: 100%;

    min-width: 0;
}

.founder-portrait img {
    display: block;

    width: 100%;

    max-width: 440px;

    height: 500px;

    object-fit: cover;

    object-position: center top;

    border-radius: var(--radius-organic);

    box-shadow: var(--shadow);
}

.founder-copy {
    min-width: 0;
}

.founder-copy h2 {
    margin-bottom: 24px;

    font-size: clamp(2.4rem, 4vw, 4rem);

    line-height: 1.05;
}

.founder-copy p {
    margin-bottom: 18px;

    color: var(--muted);

    font-size: 1.05rem;
}

.founder-copy p:last-of-type {
    margin-bottom: 24px;
}


/* =========================================================
   MISSIONS
   ========================================================= */

.missions {
    background: var(--moss-deep);

    color: var(--paper);

    overflow: hidden;
}

.missions .section-heading .kicker,
.missions .kicker {
    color: var(--marigold);
}

.missions .section-heading h2 {
    color: var(--paper);
}

.missions .lede {
    color: rgba(252, 253, 249, 0.75);
}

.mission-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-top: 40px;
}

.mission-card {
    min-height: 220px;

    padding: 28px;

    border: 1px solid rgba(255, 255, 255, 0.16);
}

.mission-card h3 {
    margin-bottom: 12px;

    font-size: 1.5rem;

    line-height: 1.2;
}

.mission-card p:last-child {
    margin-bottom: 0;

    color: rgba(252, 253, 249, 0.75);
}

.mission-goal {
    margin-bottom: 20px;

    color: var(--marigold) !important;

    font-size: 0.78rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}

.mission-goal span {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 28px;

    margin-right: 7px;

    padding: 3px 6px;

    border: 1px solid rgba(255, 255, 255, 0.25);
}

.mission-note {
    max-width: 850px;

    margin-top: 36px;

    color: rgba(252, 253, 249, 0.65);

    font-size: 0.9rem;
}


/* =========================================================
   BOOKING
   ========================================================= */

.booking {
    background: var(--bone);
}

.booking-grid {
    display: grid;

    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);

    gap: 70px;

    align-items: start;
}

.booking h2 {
    margin-bottom: 20px;

    font-size: clamp(2.5rem, 4vw, 4rem);

    line-height: 1.05;
}

.session-details {
    list-style: none;

    margin: 28px 0 0;

    padding: 0;
}

.session-details li {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 12px;

    color: var(--ink-soft);
}

.session-details li span {
    width: 26px;

    color: var(--moss);

    text-align: center;
}


/* =========================================================
   BOOKING FORM
   ========================================================= */

.booking-form {
    width: 100%;

    padding: 32px;

    background: var(--paper);

    box-shadow: var(--shadow);

    border: 1px solid var(--line-soft);
}

.form-heading {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 26px;
}

.form-heading span {
    color: var(--moss);

    font-size: 0.8rem;

    font-weight: 700;
}

.form-heading h3 {
    margin: 0;

    font-size: 1.8rem;
}

.booking-form label {
    display: block;

    margin-bottom: 7px;

    color: var(--ink);

    font-size: 0.9rem;

    font-weight: 600;
}

.booking-form label:not(:first-of-type) {
    margin-top: 18px;
}

.booking-form label span {
    color: var(--muted);

    font-weight: 400;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    display: block;

    width: 100%;

    min-width: 0;

    padding: 13px 14px;

    border: 1px solid var(--line);

    border-radius: 3px;

    background: var(--paper);

    outline: none;

    -webkit-appearance: none;
    appearance: none;
}

.booking-form select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    padding-right: 40px;
}

.booking-form textarea {
    min-height: 130px;

    resize: vertical;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: var(--moss);

    box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.08);
}

.booking-form button {
    margin-top: 22px;
}

.form-note {
    margin: 14px 0 0;

    color: var(--muted);

    font-size: 0.78rem;

    line-height: 1.5;
}


/* =========================================================
   CALENDAR BOOKING
   ========================================================= */

.calendar-booking {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);

    align-items: center;

    gap: 40px;

    margin-top: 48px;

    padding: 30px 34px;

    border: 1px solid var(--line);

    background: var(--paper);
}

.calendar-booking h3 {
    margin-bottom: 10px;

    font-size: 1.8rem;
}

.calendar-booking p {
    color: var(--muted);
}

.calendar-choice {
    min-width: 0;
}

.calendar-choice label {
    display: block;

    margin-bottom: 7px;

    font-size: 0.9rem;

    font-weight: 600;
}

.calendar-choice select {
    width: 100%;

    min-height: 48px;

    padding: 12px 40px 12px 14px;

    border: 1px solid var(--line);

    border-radius: 3px;

    background: var(--paper);

    -webkit-appearance: none;
    appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);

    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}

.calendar-choice select:focus {
    border-color: var(--moss);

    outline: none;

    box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.08);
}

.calendar-choice .button {
    margin-top: 14px;
}

.calendar-selection {
    margin: 10px 0 0;

    font-size: 0.9rem;

    font-weight: 600;
}

.calendar-setup,
.calendar-note {
    font-size: 0.8rem;
}

.calendar-note {
    margin-top: 12px;
}


/* =========================================================
   COMMUNITY
   ========================================================= */

.community {
    background: var(--ink);

    color: var(--paper);

    overflow: hidden;
}

.community-inner {
    display: grid;

    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);

    gap: 60px;

    align-items: center;
}

.community .kicker {
    color: var(--marigold);
}

.community h2 {
    margin-bottom: 0;

    font-size: clamp(2.5rem, 4vw, 4rem);

    line-height: 1.05;
}

.community p {
    color: rgba(252, 253, 249, 0.75);
}


/* =========================================================
   CONTACT STRIP
   ========================================================= */

.contact-strip {
    padding: 30px 0;

    background: var(--clay);
}

.contact-inner {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.contact-inner p {
    margin-bottom: 0;
}

.contact-links {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 24px;
}


/* =========================================================
   COMPANY LOGOS
   ========================================================= */

.company-strip {
    padding: 80px 0;

    background: var(--paper);
}

.company-strip .kicker {
    display: block;

    margin-bottom: 40px;

    text-align: center;
}

.company-logos {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;
}


/*
   LARGE LOGO BOX
*/

.company-logo {
    position: relative;

    width: 100%;

    height: 210px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    overflow: hidden;

    background: var(--paper);

    border: 1px solid var(--line-soft);
}


/*
   VERY IMPORTANT:

   The image is deliberately enlarged beyond
   the normal 100% area.

   This helps when the source image contains
   transparent/white margins.
*/

.company-logo img {
    display: block;

    width: 125% !important;

    height: 125% !important;

    max-width: none !important;

    max-height: none !important;

    margin: 0 !important;

    padding: 0 !important;

    object-fit: contain !important;

    object-position: center !important;

    flex-shrink: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 56px 0 24px;

    background: var(--bone);
}

.footer-grid {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 24px;

    align-items: start;
}

.footer-grid > p {
    color: var(--muted);
}

.footer-links {
    display: flex;

    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 18px;
}

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

.footer-bottom {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 40px;

    padding-top: 20px;

    border-top: 1px solid var(--line-soft);

    color: var(--muted);

    font-size: 0.9rem;
}


/* =========================================================
   TABLET — 1000PX
   ========================================================= */

@media (max-width: 1000px) {

    .primary-nav {
        gap: 14px;
    }

    .primary-nav > a {
        font-size: 0.87rem;
    }

    .company-logos {
        gap: 18px;
    }

    .company-logo {
        height: 190px;
    }

    .company-logo img {
        width: 120% !important;
        height: 120% !important;
    }
}


/* =========================================================
   TABLET — 900PX
   ========================================================= */

@media (max-width: 900px) {

    .container {
        width: min(100% - 40px, 1160px);
    }


    /* MAIN GRIDS */

    .hero-grid,
    .mbex-feature-grid,
    .two-col,
    .founder-grid,
    .booking-grid,
    .community-inner {
        grid-template-columns: 1fr;

        gap: 44px;
    }


    /* HERO */

    .hero-grid {
        padding: 60px 0 76px;
    }

    .hero-figure {
        max-width: 700px;
    }


    /* FOUNDER */

    .founder-portrait img {
        max-width: 520px;
    }


    /* PATHWAYS */

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


    /* MISSIONS */

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


    /* COMPANY LOGOS */

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

        max-width: 850px;
    }

    .company-logo {
        height: 200px;
    }

    .company-logo img {
        width: 120% !important;
        height: 120% !important;
    }


    /* CALENDAR */

    .calendar-booking {
        grid-template-columns: 1fr;
    }


    /* FOOTER */

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

    .footer-links {
        justify-content: flex-start;
    }
}


/* =========================================================
   MOBILE NAV — 800PX
   ========================================================= */

@media (max-width: 800px) {

    .nav-wrap {
        min-height: 78px;
    }

    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;

        top: calc(100% + 1px);

        left: 0;

        right: 0;

        display: none;

        flex-direction: column;

        align-items: stretch;

        justify-content: flex-start;

        gap: 2px;

        padding: 10px;

        background: var(--paper);

        border: 1px solid var(--line);

        box-shadow: var(--shadow);

        max-height: calc(100vh - 80px);

        overflow-y: auto;
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav > a {
        display: flex;

        align-items: center;

        min-height: 46px;

        padding: 10px 14px;

        font-size: 0.95rem;

        white-space: normal;
    }

    .primary-nav .button-small {
        justify-content: center;

        margin-top: 6px;
    }


    /* SECTIONS */

    .section {
        padding: 72px 0;
    }


    /* SECTION HEADINGS */

    .section-heading {
        display: block;

        margin-bottom: 34px;
    }

    .section-heading .text-link {
        margin-top: 18px;
    }


    /* COURSE GALLERY */

    .gallery-track {
        overflow-x: auto;

        scroll-snap-type: x mandatory;
    }

    .gallery-card {
        flex: 0 0 min(82vw, 330px);

        min-width: min(82vw, 330px);
    }


    /* CONTACT */

    .contact-inner {
        align-items: flex-start;

        flex-direction: column;

        gap: 14px;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}


/* =========================================================
   SMALL MOBILE — 600PX
   ========================================================= */

@media (max-width: 600px) {

    .container {
        width: calc(100% - 32px);
    }


    /* HEADER */

    .brand {
        gap: 8px;
    }

    .brand-mark {
        height: 40px;

        max-width: 130px;
    }

    .brand-name {
        font-size: 0.9rem;
    }


    /* HERO */

    .hero-grid {
        gap: 38px;

        padding: 48px 0 64px;
    }

    .hero h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);

        line-height: 1;
    }

    .lede {
        font-size: 1.05rem;
    }

    .hero-actions {
        align-items: stretch;

        flex-direction: column;
    }

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

    .hero-actions .button {
        min-height: 50px;
    }

    .hero-figure img {
        height: 360px;
    }

    .hero-figure-note {
        position: static;

        max-width: none;

        margin-top: 14px;
    }


    /* MBEX */

    .mbex-feature-grid {
        gap: 36px;

        padding: 72px 0;
    }

    .mbex-feature-image img {
        height: 300px;
    }


    /* PATHWAYS */

    .pathway-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .pathway-card {
        min-height: 220px;
    }


    /* FOUNDER */

    .founder-grid {
        gap: 36px;
    }

    .founder-portrait img {
        width: 100%;

        max-width: none;

        height: 430px;
    }


    /* MISSIONS */

    .mission-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .mission-card {
        min-height: auto;
    }


    /* BOOKING */

    .booking-grid {
        gap: 38px;
    }

    .booking-form {
        padding: 22px;
    }

    .calendar-booking {
        gap: 28px;

        margin-top: 36px;

        padding: 24px 20px;
    }


    /* COMPANY LOGOS */

    .company-strip {
        padding: 60px 0;
    }

    .company-logos {
        grid-template-columns: 1fr;

        gap: 16px;

        max-width: 420px;
    }

    .company-logo {
        height: 190px;
    }

    .company-logo img {
        width: 120% !important;

        height: 120% !important;
    }


    /* CONTACT */

    .contact-links {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }


    /* FOOTER */

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;

        gap: 8px;
    }
}


/* =========================================================
   VERY SMALL PHONES — 400PX
   ========================================================= */

@media (max-width: 400px) {

    body {
        font-size: 16px;
    }

    .container {
        width: calc(100% - 28px);
    }

    .brand-name {
        display: none;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .hero-figure img {
        height: 300px;
    }

    .gallery-card {
        flex-basis: 86vw;

        min-width: 86vw;
    }

    .company-logo {
        height: 170px;
    }

    .company-logo img {
        width: 115% !important;

        height: 115% !important;
    }
}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

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