html, body { max-width: 100%; overflow-x: clip; }
img, svg, video { max-width: 100%; }

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m5 7.5 5 5 5-5' stroke='%23171411' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 17px center;
    background-size: 18px 18px;
}

.course-choice-dropdown { margin:18px 0; border:1.5px solid var(--ink); border-radius:16px; background:#fff; overflow:hidden; }
.course-choice-dropdown[hidden] { display:none !important; }
.course-choice-dropdown summary { display:flex; justify-content:space-between; gap:14px; align-items:center; padding:16px; font-weight:800; cursor:pointer; list-style:none; }
.course-choice-dropdown summary::-webkit-details-marker { display:none; }
.course-choice-dropdown summary::after { content:'⌄'; font-size:1.25rem; transition:transform .18s ease; }
.course-choice-dropdown[open] summary::after { transform:rotate(180deg); }
.course-choice-dropdown summary small { margin-left:auto; color:#706b64; font-weight:500; }
.course-choice-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0 16px 16px; border-top:1px solid var(--line); }
.course-choice-list label { display:flex; min-width:0; gap:10px; align-items:flex-start; margin:0; padding:11px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; }
.course-choice-list input { width:20px; height:20px; flex:0 0 auto; margin:2px 0 0; }
.course-choice-list label>span { min-width:0; }
.course-choice-list strong,.course-choice-list small { display:block; overflow-wrap:anywhere; }
.course-choice-list small { margin-top:2px; color:#706b64; font-weight:400; }
.course-card { overflow:hidden; }
.course-card-cover { display:block; width:100%; max-width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; margin:0 0 20px; border:1.5px solid var(--ink); border-radius:18px; }

body,
button,
input,
select,
textarea { font-family: var(--sans); }
.hero h1,
.about h2,
.section-head h2,
.services h2,
.application h2,
.branch-card h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero h1 { font-size: clamp(3.25rem, 6.25vw, 6.25rem); line-height: .94; }
.section-head h2,
.services h2,
.application h2 { font-size: clamp(2.4rem, 4.3vw, 4.6rem); line-height: .98; }
.branch-card h3 { font-size: clamp(2rem, 3.5vw, 3.4rem); }
.branch-card p,
.button,
.header-cta,
.site-header nav a { font-family: var(--sans); }
.hero h1 em,
.about h2 em,
.footer-brand em { font-family: var(--accent); font-style: italic; font-weight: 600; letter-spacing: -.025em; }

.hero-art { animation: hero-float 5s ease-in-out infinite; }
.hero-art .orbit.one { animation: orbit-one 16s linear infinite; }
.hero-art .orbit.two { animation: orbit-two 20s linear infinite reverse; }
.hero-art b { animation: badge-pulse 3.2s ease-in-out infinite; }
.hero-copy > *:not(.hero-actions) { animation: hero-enter .7s both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > h1 { animation: none; }
.hero-letter-sequence > span { display: inline-block; animation: hero-letter-bounce 620ms cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--letter-order) * 55ms); will-change: transform; }
.reveal-ready { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal-ready.is-visible { opacity: 1; transform: none; }


.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 249, 238, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-cta,
.button,
button[type="submit"] {
    transition: none;
    transform: none;
}

.mobile-fixed-cta { display: none; }

.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible {
    transform: none;
}

.site-footer {
    position: relative;
    grid-template-columns: 1.15fr .8fr 1fr;
    gap: clamp(34px, 6vw, 100px);
    padding: clamp(64px, 8vw, 110px) clamp(22px, 7vw, 110px) 28px;
    overflow: hidden;
    border-top: 12px solid var(--yellow);
    background: var(--ink);
}

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    border: 2px solid var(--ink);
    border-radius: 50%;
}

.site-footer::before {
    width: 86px;
    height: 86px;
    top: -38px;
    right: 10%;
    background: var(--lilac);
}

.site-footer::after {
    width: 34px;
    height: 34px;
    top: 32px;
    right: 7%;
    background: var(--coral);
}

.footer-brand,
.footer-info,
.footer-contact { position: relative; z-index: 1; }

.footer-brand img { width: min(230px, 100%); height: auto; }
.footer-brand p { margin: 28px 0 0; font: 700 clamp(30px, 3.2vw, 52px)/.92 var(--display); letter-spacing: -.06em; }
.footer-brand em { color: var(--coral); font-style: normal; }
.footer-label { display: block; margin-bottom: 18px; color: var(--yellow); font-size: 11px; font-weight: 800; letter-spacing: .2em; }
.footer-info strong { font: 700 clamp(22px, 2vw, 31px)/1.05 var(--display); }
.footer-info p { max-width: 330px; color: #c9c5be; }
.footer-contact > a { width: fit-content; margin-bottom: 9px; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.site-footer .instagram-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 15px 10px 11px; border: 1px solid #514d47; border-radius: 999px; background: #24211e; text-decoration: none; font-weight: 700; }
.instagram-link svg { width: 25px; height: 25px; flex: 0 0 25px; color: var(--coral); }
.footer-bottom { position: relative; z-index: 1; grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; margin-top: 14px; padding-top: 24px; border-top: 1px solid #514d47; color: #aaa59d; font-size: 13px; }
.footer-bottom a { margin-right: auto; color: #fff; }

@keyframes hero-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes orbit-one { to { transform: rotate(335deg); } }
@keyframes orbit-two { to { transform: rotate(375deg); } }
@keyframes badge-pulse { 0%,100% { transform: rotate(8deg) scale(1); } 50% { transform: rotate(3deg) scale(1.07); } }
@keyframes hero-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes hero-letter-bounce { 0% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-16px) rotate(-5deg); } 65% { transform: translateY(4px) rotate(3deg); } 100% { transform: translateY(0) rotate(0); } }

@media (max-width: 800px) {
    body { padding-bottom: 78px; }
    .course-choice-list { grid-template-columns: 1fr; padding: 12px; }
    .course-card-cover { width:calc(100% + 2px); margin-inline:-1px; border-radius:14px; }

    .site-header {
        height: 82px;
        padding-inline: 18px;
    }

    .site-header .brand { display: flex; align-items: center; flex: 0 0 auto; height: 100%; overflow: hidden; }
    
    .site-header .brand img { display: block; width: 181px; height: 62px; max-width: none; object-fit: contain; object-position: center; }
    .mobile-fixed-cta {
        position: fixed;
        z-index: 90;
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        left: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        border: 1px solid var(--ink);
        border-radius: 999px;
        overflow: hidden;
        background: var(--coral);
        color: #fff;
        box-shadow: 7px 7px 0 var(--lilac), 0 12px 28px rgba(23, 20, 17, .22);
        text-decoration: none;
        font-weight: 800;
        letter-spacing: .01em;
        animation: mobile-cta-attention 2.6s ease-in-out infinite;
    }

    .mobile-fixed-cta::before {
        content: "";
        width: 9px;
        height: 9px;
        margin-right: 10px;
        border: 1.5px solid var(--ink);
        border-radius: 50%;
        background: var(--yellow);
        box-shadow: 0 0 0 0 rgba(255, 200, 61, .65);
        animation: mobile-cta-dot 1.7s ease-out infinite;
    }
    .menu-button {
        position: relative;
        display: grid;
        width: 46px;
        height: 46px;
        min-height: 46px;
        margin-left: auto;
        padding: 0;
        place-items: center;
        border: 2px solid var(--ink);
        border-radius: 50%;
        background: var(--yellow);
        color: var(--ink);
        cursor: pointer;
    }

    .menu-button::after {
        content: "";
        position: absolute;
        width: 9px;
        height: 9px;
        top: -3px;
        right: -3px;
        border: 1.5px solid var(--ink);
        border-radius: 50%;
        background: var(--coral);
    }

    .menu-icon {
        display: grid;
        width: 21px;
        gap: 4px;
    }

    .menu-icon span {
        display: block;
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center;
        transition: transform .18s ease, opacity .18s ease;
    }

    .menu-button.is-open .menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .menu-button.is-open .menu-icon span:nth-child(2) { opacity: 0; }
    .menu-button.is-open .menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .hero {
        min-height: auto;
        padding: 28px 22px 64px;
        gap: 22px;
    }

    .hero-art {
        width: min(64vw, 290px);
        margin: 24px auto 36px;
        box-shadow: 18px 16px 0 var(--coral);
    }

    .hero-art img {
        width: 42%;
        filter: drop-shadow(10px 12px 0 rgba(0,0,0,.12));
    }

    .hero-art b {
        width: 68px;
        height: 68px;
        right: -10px;
        top: 8%;
        font-size: .55rem;
    }

    .orbit { inset: -24px; }
    .orbit.two { inset: -42px; }

    .hero-copy { width: 100%; }
    .hero .eyebrow { margin: 0 0 20px; font-size: .69rem; letter-spacing: .17em; }
    .hero h1 {
        max-width: 100%;
        margin: 0 0 22px;
        font-size: clamp(3rem, 13vw, 4.25rem);
        line-height: .88;
        letter-spacing: -.065em;
        overflow-wrap: normal;
    }

    .hero .lead { margin: 0; font-size: 1rem; line-height: 1.55; }
    .hero-actions { margin-top: 24px; flex-wrap: wrap; }
    .hero-actions .button { flex: 1 1 150px; }

    .section-pad { padding: 64px 22px; }
    .section-head h2, .services h2, .application h2, .about h2 { line-height: .95; }
    .branch-card { min-height: 0; }
    .application form { min-width: 0; }

    .site-footer { grid-template-columns: 1fr; gap: 42px; padding: 64px 22px 26px; }
    .footer-brand p { font-size: clamp(38px, 12vw, 56px); }
    .footer-bottom { grid-column: auto; align-items: flex-start; flex-wrap: wrap; gap: 10px 18px; }
    .footer-bottom a { margin-right: 0; }
    .footer-bottom span:last-child { width: 100%; }
}

@keyframes mobile-cta-attention {
    0%, 100% { transform: translateY(0); box-shadow: 7px 7px 0 var(--lilac), 0 12px 28px rgba(23, 20, 17, .22); }
    50% { transform: translateY(-4px); box-shadow: 7px 11px 0 var(--yellow), 0 18px 34px rgba(255, 98, 94, .32); }
}

@keyframes mobile-cta-dot {
    0% { box-shadow: 0 0 0 0 rgba(255, 200, 61, .7); }
    70%, 100% { box-shadow: 0 0 0 9px rgba(255, 200, 61, 0); }
}

@media (max-width: 420px) {
    .site-header { padding-inline: 14px; }
    .site-header .brand img { width: 156px; height: 54px; }
    .hero { padding: 20px 18px 54px; gap: 18px; }
    .hero-art { width: min(62vw, 238px); margin: 20px auto 30px; box-shadow: 14px 13px 0 var(--coral); }
    .orbit { inset: -18px; }
    .orbit.two { inset: -32px; }
    .hero-art b { width: 60px; height: 60px; right: -8px; }
    .hero h1 { font-size: clamp(2.7rem, 12vw, 3rem); line-height: .96; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .section-pad { padding: 54px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-art, .hero-art .orbit, .hero-art b, .hero-copy > *, .hero-letter-sequence > span { animation: none; }
    .reveal-ready { opacity: 1; transform: none; transition: none; }
    .mobile-fixed-cta, .mobile-fixed-cta::before { animation: none; }
}
