/* =====================================================================
   Better Music Lessons — brand layer on top of the MegaOne "Resume" demo
   Layout: theme one-pager, re-ordered for a lessons studio:
   hero → lessons → numbers band → about → on stage → how it works → contact
   Brand rule: first letter of each word orange, remaining letters blue.
   ===================================================================== */

@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../fonts/bricolage-grotesque.woff") format("woff");
    font-weight: 200 800;
    font-stretch: 75% 100%;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans.woff") format("woff");
    font-weight: 400 700;
    font-stretch: 75% 100%;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans-italic.woff") format("woff");
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Color */
    --bml-blue: #1F45C2;          /* brand blue: letters 2..n, primary actions */
    --bml-blue-deep: #16339A;
    --bml-orange: #EA6A0F;        /* brand orange: first letters, brass accent */
    --bml-orange-deep: #D35C08;
    --orange-text: #B9520A;       /* orange for small text on white (AA) */
    --blue-on-dark: #8DB0FF;
    --orange-on-dark: #FF9A4D;
    --ink: #111831;               /* headings */
    --body: #3B4460;              /* running text */
    --muted: #646D86;
    --paper: #FFFFFF;
    --mist: #F2F5FC;              /* cool, blue-biased light band */
    --line: #DEE4F2;
    --navy: #0A1640;

    /* Type */
    --font-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    color-scheme: light;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    color: var(--body);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink); }
a:hover, a:active { color: var(--bml-blue); }
::selection { background: var(--bml-orange); color: #fff; }
:focus-visible { outline: 3px solid var(--bml-orange); outline-offset: 3px; }
section { overflow: hidden; }

.bml-skip {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.bml-skip:focus { left: 16px; top: 16px; color: #fff; }

/* ---------- Wordmark ---------- */
.bml-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 92%;
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.015em;
    color: var(--bml-blue);
    white-space: nowrap;
}
.bml-wordmark:hover { color: var(--bml-blue-deep); }
.bml-wordmark .i,
.bml-display .i { color: var(--bml-orange); }
.bml-wordmark--light,
.bml-wordmark--light:hover { color: var(--blue-on-dark); }
.bml-wordmark--light .i { color: var(--orange-on-dark); }

/* ---------- Buttons ---------- */
.btn.bml-btn {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    border-width: 2px;
}
.btn.btn-large.bml-btn { font-size: 15px; padding: 12px 30px; }
.btn.bml-btn-blue { background: var(--bml-blue); border-color: var(--bml-blue); color: #fff; }
.btn.bml-btn-blue:hover, .btn.bml-btn-blue:focus-visible { background: var(--bml-blue-deep) !important; border-color: var(--bml-blue-deep); color: #fff !important; }
.btn.bml-btn-orange { background: var(--bml-orange); border-color: var(--bml-orange); color: var(--ink); }
.btn.bml-btn-orange:hover, .btn.bml-btn-orange:focus-visible { background: var(--bml-orange-deep) !important; border-color: var(--bml-orange-deep); color: var(--ink) !important; }
.btn.bml-btn[disabled] { opacity: .6; cursor: progress; }

.bml-textlink {
    font-weight: 600;
    color: var(--ink);
    border-bottom: 2px solid var(--bml-orange);
    padding-bottom: 3px;
    white-space: nowrap;
}
.bml-textlink i { font-size: .8em; margin-left: 6px; transition: transform .2s ease; }
.bml-textlink:hover { color: var(--ink); }
.bml-textlink:hover i { transform: translateX(4px); }

/* ---------- Header ---------- */
.navbar-top-default { height: 88px; }
.header-appear .navbar-top-default {
    height: 72px;
    background: rgba(255, 255, 255, .96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line), 0 14px 30px -22px rgba(17, 24, 49, .45);
}
.navbar-top-default #megaone { margin-right: 0; }
.navbar-simple .navbar-nav .nav-link {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    padding: .4rem 1rem;
}
.navbar-simple .navbar-nav .nav-link:hover { color: var(--bml-blue); }
.nav-line .navbar-nav .nav-link:before { background: var(--bml-orange); bottom: -27px; }
.header-appear .nav-line .navbar-nav .nav-link:before { bottom: -19px; }
.bml-nav-cta.btn { margin-left: 1.25rem; padding: 8px 22px; font-size: 14px; }
.sidemenu_btn { right: 0; margin-right: 0; width: 40px; padding: 8px; background: none; border: 0; cursor: pointer; }
#close_side_menu { cursor: pointer; }
.sidemenu_btn span { background: var(--ink); }

/* Side menu (phones/tablets) */
.side-menu { width: min(400px, 100%); background: var(--bml-blue); }
.side-menu .inner-wrapper { padding: 4.5rem 2.5rem 3rem; }
.side-nav .navbar-nav .nav-link { font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -.02em; color: #fff; }
.side-menu .side-footer { color: rgba(255, 255, 255, .85); }
.side-menu .side-footer p { margin-top: 18px; font-size: 15px; color: rgba(255, 255, 255, .85); }
#close_side_menu { background-color: var(--navy); opacity: .5; }

/* ---------- Hero ---------- */
.home-banner.bml-hero {
    min-height: 0;
    padding: 150px 0 120px;
    background:
        radial-gradient(900px 520px at 88% 8%, #E7EEFF 0%, rgba(231, 238, 255, 0) 62%),
        radial-gradient(520px 380px at 0% 100%, #FFF1E6 0%, rgba(255, 241, 230, 0) 70%),
        var(--paper);
}
.home-banner.bml-hero:after { width: 32%; opacity: .5; }

.bml-eyebrow {
    font: 600 13px/1.3 var(--font-body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--orange-text);
    margin-bottom: 22px;
}
.bml-display {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 86%;
    font-size: clamp(3.4rem, 1.4rem + 6.4vw, 7.4rem);
    line-height: .9;
    letter-spacing: -0.035em;
    color: var(--bml-blue);
    margin: 0 0 30px;
}
.bml-display .w { display: block; }
.bml-lede {
    font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem);
    line-height: 1.6;
    color: var(--body);
    max-width: 31em;
    margin-bottom: 34px;
}
.bml-lede strong { color: var(--ink); font-weight: 600; }
.bml-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }

/* Portrait frame with offset brass block */
.slider-right.bml-portrait {
    float: none;
    display: block;
    position: relative;
    width: min(100%, 440px);
    margin: 0 0 0 auto;
}
.bml-portrait img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 34px 60px -32px rgba(10, 22, 64, .6);
}
.bml-portrait > span.scene {
    background: var(--bml-orange);
    margin-left: 32px;
    margin-top: -28px;
    height: 100%;
    border-radius: 3px;
    box-shadow: none;
}

/* Sample practice plan card */
.bml-plan {
    position: absolute;
    left: -36px;
    bottom: -36px;
    z-index: 3;
    width: 292px;
    padding: 18px 20px 12px;
    text-align: left;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 26px 50px -22px rgba(10, 22, 64, .5), 0 0 0 1px rgba(17, 24, 49, .05);
}
/* the theme styles every span inside .slider-right as the offset block; undo that inside the card */
.slider-right .bml-plan span {
    position: static;
    width: auto; height: auto;
    margin: 0;
    z-index: auto;
    background: none;
    box-shadow: none;
}
.bml-plan__label {
    font: 600 11px/1 var(--font-body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 8px;
}
.bml-plan ul { list-style: none; margin: 0; padding: 0; }
.bml-plan li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.3;
    color: var(--ink);
}
.bml-plan li:first-child { border-top: 0; }
.slider-right .bml-plan .tick { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #C9D2E6; }
.slider-right .bml-plan .is-done .tick {
    border-color: var(--bml-orange);
    background: var(--bml-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.9' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.bml-plan .is-done .what { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(100, 109, 134, .55); }
.bml-plan em { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* Notation shapes */
.bml-shape { position: absolute; z-index: 0; line-height: 0; pointer-events: none; }
.bml-shape--sharp { top: 18%; left: 5.5%; color: var(--bml-orange); animation: bml-spin 26s linear infinite; }
.bml-shape--note  { top: 14%; left: 46%; color: var(--bml-blue); animation: bml-float 9s ease-in-out infinite; }
.bml-shape--flat  { top: 13%; right: 4.5%; color: var(--bml-orange); animation: bml-float 11s ease-in-out infinite reverse; }
.bml-shape--whole {
    bottom: 9%; left: 4%;
    width: 60px; height: 42px;
    border: 9px solid var(--bml-blue);
    border-radius: 50%;
    transform: rotate(-24deg);
    animation: bml-bob 8s ease-in-out infinite;
}
@keyframes bml-spin  { to { transform: rotate(360deg); } }
@keyframes bml-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes bml-bob   { 0%, 100% { transform: rotate(-24deg) translateY(0); } 50% { transform: rotate(-16deg) translateY(-10px); } }

/* ---------- Section headings ---------- */
.heading-area .sub-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font: 600 13px/1.2 var(--font-body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--orange-text);
    margin-bottom: 18px;
}
.heading-area .sub-title::before { content: ""; width: 28px; height: 2px; background: var(--bml-orange); }
.heading-area .title {
    font-family: var(--font-display);
    font-weight: 700;
    font-stretch: 92%;
    font-size: clamp(2.05rem, 1.35rem + 2.4vw, 3.3rem);
    line-height: 1.04;
    letter-spacing: -0.028em;
    color: var(--ink);
    margin-bottom: 22px;
    text-wrap: balance;
}
.paragraph { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 36em; }
.bml-note { font-weight: 600; color: var(--ink); }
.bml-center { text-align: center; }
.bml-center .sub-title { justify-content: center; }
.bml-center .paragraph { margin-left: auto; margin-right: auto; }

/* ---------- Lessons: one centered instruments block ---------- */
.bml-lessons { padding: 120px 0; background: var(--mist); }
.bml-lessons .heading-area { margin-bottom: 44px; }
.bml-instruments {
    max-width: 1040px;
    margin: 0 auto;
    padding: 52px 56px 44px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 1px 0 rgba(17, 24, 49, .03), 0 40px 80px -48px rgba(17, 24, 49, .45);
}
/* the three instruments sit on a five-line staff, like notes */
.bml-instruments__icons {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: clamp(28px, 6vw, 76px);
}
.bml-instruments__icons::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 46px;
    height: 49px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(to bottom, var(--line) 0 1.5px, transparent 1.5px 12px);
}
.bml-instruments__icons li { position: relative; }
.bml-instruments__icons a { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink); }
.bml-inst-icon {
    --hole: var(--bml-blue);
    display: grid;
    place-items: center;
    width: 92px; height: 92px;
    border-radius: 50%;
    background: var(--bml-blue);
    color: #fff;
    box-shadow: 0 0 0 8px #fff, 0 18px 36px -18px rgba(17, 24, 49, .6);
    transition: transform .25s ease;
}
.bml-inst-icon--orange { --hole: var(--bml-orange); background: var(--bml-orange); }
.bml-inst-icon .hole { fill: var(--hole); }
.bml-inst-icon .hole-line { stroke: var(--hole); }
.bml-instruments__icons a:hover .bml-inst-icon { transform: translateY(-4px); }
.bml-inst-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.bml-instruments__icons a:hover .bml-inst-name { color: var(--bml-blue); }
.bml-instruments__lede {
    max-width: 32em;
    margin: 34px auto 0;
    font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
    line-height: 1.6;
    font-weight: 500;
    color: var(--ink);
    text-wrap: balance;
}
.bml-skills {
    list-style: none;
    margin: 38px 0 0;
    padding: 36px 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 40px;
    text-align: left;
}
.bml-skills li { position: relative; padding-left: 26px; }
/* note-head bullet */
.bml-skills li::before {
    content: "";
    position: absolute; left: 0; top: .45em;
    width: 13px; height: 9px;
    border-radius: 50%;
    background: var(--bml-orange);
    transform: rotate(-22deg);
}
.bml-skills strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; color: var(--ink); }
.bml-skills span { display: block; font-size: 15px; line-height: 1.55; color: var(--body); }
.bml-instruments__foot {
    margin-top: 38px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    text-align: left;
}
.bml-instruments__foot p { margin: 0 !important; font-weight: 600; color: var(--ink); }

/* Bio */
.bml-bio p { font-size: 16.5px; line-height: 1.7; color: var(--body); margin-bottom: 16px; }
.bml-bio p:first-child { font-size: 18px; line-height: 1.65; color: var(--ink); }

/* ---------- Numbers band ---------- */
.bml-band {
    position: relative;
    padding: 96px 0;
    color: #fff;
    background: var(--navy) url("../img/band-stage.jpg") center / cover no-repeat;
}
.bml-band::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6, 16, 46, .5), rgba(6, 16, 46, .72));
}
.bml-band .container { position: relative; z-index: 1; }
.bml-band .parallax-box { padding: 1.5rem .5rem; text-align: center; }
.bml-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.7rem, 1.9rem + 2.6vw, 4.3rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 12px !important;
    font-variant-numeric: tabular-nums;
}
.bml-num .suf { color: var(--orange-on-dark); }
.bml-num-label { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .82); max-width: 15em; margin: 0 auto; }

/* ---------- About ---------- */
.bml-about { padding: 130px 0; }
.bml-creds { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.bml-creds li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.55; color: var(--body); }
.bml-creds li::before {
    content: "";
    position: absolute; left: 0; top: .42em;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--bml-orange);
    box-shadow: inset 0 0 0 4px #fff, 0 0 0 2px var(--bml-orange);
}
.bml-creds strong { color: var(--ink); font-weight: 600; }

.bml-about .services-about { height: auto; min-height: 660px; padding-top: 0; }
.bml-about .services-about .service-image {
    float: right;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 9 / 11;
    height: auto;
    object-fit: cover;
    border-radius: 3px;
}
.bml-credit {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(10, 22, 64, .55);
    color: rgba(255, 255, 255, .85);
    font: 500 11px/1.2 var(--font-body);
    letter-spacing: .04em;
}
.bml-about .services-about .content {
    max-width: 380px;
    padding: 34px 36px;
    background: var(--bml-blue);
    border-top: 6px solid var(--bml-orange);
    box-shadow: 0 34px 60px -30px rgba(10, 22, 64, .65);
}
.bml-about .services-about .content:before { content: none; }
.bml-about .services-about .content p { color: #fff; font-size: 16px; line-height: 1.6; }
.services-about .content .bml-approach-label {
    font: 600 12px/1 var(--font-body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--orange-on-dark);
    margin-bottom: 14px;
}
.bml-sign { margin-top: 24px; display: flex; flex-direction: column; gap: 2px; }
.services-about .content .bml-sign strong { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #fff; }
.services-about .content .bml-sign span { font-size: 14px; color: rgba(255, 255, 255, .78); }

/* ---------- On stage ---------- */
.bml-stage { padding: 120px 0 104px; background: var(--mist); }
/* Photo gallery: one tall tile, two stacked beside it */
.bml-gallery {
    margin: 52px 0 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: 360px 280px;
    gap: 20px;
}
.bml-gallery .g-a { grid-column: 1 / 8; }
.bml-gallery .g-b { grid-column: 8 / 13; }
.bml-gallery .g-c { grid-column: 1 / 6; }
.bml-gallery .g-d { grid-column: 6 / 13; }
.bml-gallery .g-a img { object-position: 50% 28%; }
.bml-gallery .g-b img { object-position: 30% 40%; }
.bml-gallery figure {
    position: relative;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--ink);
    box-shadow: 0 26px 50px -30px rgba(17, 24, 49, .5);
}
.bml-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.bml-gallery figure:hover img { transform: scale(1.03); }
.bml-gallery figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 48px 22px 18px;
    background: linear-gradient(180deg, rgba(10, 22, 64, 0), rgba(10, 22, 64, .78));
    color: #fff;
    font: 600 14px/1.3 var(--font-body);
    letter-spacing: .01em;
}
.bml-gallery .g-a figcaption { font-size: 16px; padding: 64px 26px 22px; }

.bml-bands__label {
    margin: 60px 0 18px;
    text-align: center;
    font: 600 13px/1 var(--font-body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}
.bml-bands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bml-bands a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 22px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: var(--ink);
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.bml-bands a i { font-size: 11px; color: var(--orange-text); }
.bml-bands a:hover { border-color: var(--bml-blue); color: var(--bml-blue); transform: translateY(-2px); }

/* ---------- Teaching strip ---------- */
.bml-strip { padding: 48px 0 50px; background: var(--paper); border-bottom: 1px solid var(--line); }
.bml-strip .bml-strip__head { margin: 0 0 22px; }
.bml-strip .bml-strip__head .sub-title { margin: 0; }
.bml-strip__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.bml-strip__list li { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 2px solid var(--line); }
.bml-strip__list li:first-child { border-left-color: var(--bml-orange); }
.bml-strip__list strong { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--ink); }
.bml-strip__list span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }

/* ---------- How lessons work (split) ---------- */
section.bml-split.bg-light { background: var(--mist) !important; }
.bml-split__copy { max-width: 620px; margin: 0 auto; padding: 110px 48px; text-align: left; }
.bml-split__panel {
    position: relative;
    height: 100%;
    min-height: 480px;
    display: grid;
    place-items: center;
    padding: 64px 32px;
    background:
        radial-gradient(620px 420px at 85% 10%, rgba(255, 154, 77, .35), transparent 65%),
        var(--bml-blue);
    overflow: hidden;
}
/* staff lines behind the portrait */
.bml-split__panel::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 50%;
    height: 73px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .16) 0 1.5px, transparent 1.5px 18px);
}
.bml-teacher { position: relative; text-align: center; color: #fff; }
.bml-teacher img {
    display: block;
    width: 240px; height: 240px;
    margin: 0 auto 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #fff;
    box-shadow: 0 0 0 6px var(--bml-orange), 0 30px 60px -24px rgba(6, 16, 46, .7);
}
.bml-teacher__label { margin: 0 0 6px; font: 600 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-on-dark); }
.bml-teacher__name { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1; letter-spacing: -.025em; color: #fff; }
.bml-teacher__line { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.bml-steps { list-style: none; counter-reset: step; margin: 6px 0 36px; padding: 0; display: grid; gap: 20px; }
.bml-steps li { counter-increment: step; position: relative; padding-left: 58px; font-size: 16.5px; line-height: 1.6; color: var(--body); }
.bml-steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: -4px;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--bml-blue);
    color: #fff;
    font: 700 16px/1 var(--font-display);
}
.bml-steps strong { color: var(--ink); }

/* ---------- Contact ---------- */
.bml-contact { padding: 130px 0; }
.bml-contact .heading-area { margin-bottom: 36px; }
.bml-form label { display: block; margin-bottom: 8px; font: 600 14px/1.2 var(--font-body); color: var(--ink); }
.bml-form .form-control {
    height: auto;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--ink);
    background-color: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.bml-form .form-control:focus { border-color: var(--bml-blue); box-shadow: 0 0 0 4px rgba(31, 69, 194, .14); outline: none; }
.bml-form select.form-control {
    -webkit-appearance: none; appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111831' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}
.bml-form textarea.form-control { min-height: 130px; resize: vertical; }
.bml-form .form-group { margin-bottom: 18px; }
.bml-form .btn { margin-top: 6px; }
.bml-form__status { margin: 16px 0 0; min-height: 1.6em; font-weight: 600; color: var(--body); }
.bml-form__status.is-success { color: #17734A; }
.bml-form__status.is-error { color: #B42318; }

.bml-details {
    position: relative;
    overflow: hidden;
    margin-top: 6px;
    padding: 40px 38px 110px;
    background: var(--ink);
    border-radius: 20px;
    color: #fff;
}
.bml-details h3 { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.015em; margin: 0 0 24px; }
.bml-details dl { margin: 0; display: grid; gap: 20px; }
.bml-details dt { margin-bottom: 6px; font: 600 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-on-dark); }
.bml-details dd { margin: 0; font-size: 16.5px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
/* staff with two notes, bottom of the card */
.bml-details__staff {
    position: absolute; left: 38px; right: 38px; bottom: 34px; height: 49px;
    background:
        radial-gradient(ellipse 9px 6.5px at 72% 31px, var(--bml-orange) 98%, transparent 100%),
        radial-gradient(ellipse 9px 6.5px at 84% 19px, var(--blue-on-dark) 98%, transparent 100%),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, .22) 0 1.5px, transparent 1.5px 12px);
}

/* ---------- Footer ---------- */
.bml-footer { padding: 64px 0 40px; background: var(--ink); color: rgba(255, 255, 255, .72); }
.bml-footer__top {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.bml-footer .bml-wordmark { font-size: 26px; }
.bml-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.bml-footer__nav a { color: #fff; font-weight: 500; }
.bml-footer__nav a:hover { color: var(--orange-on-dark); }
.bml-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 14px; }
.bml-footer__bottom p { margin: 0; }

/* Back-to-top */
.scroll-top-arrow, .scroll-top-arrow:focus {
    display: grid !important;
    place-items: center;
    background: var(--bml-blue);
    color: #fff;
    right: max(20px, env(safe-area-inset-right, 0px));
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.scroll-top-arrow.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top-arrow:hover { background: var(--bml-orange); color: var(--ink); }

/* ---------- Tablet & phone ---------- */
@media (max-width: 991px) {
    body { text-align: left; }
    .home-banner.bml-hero { padding: 124px 0 96px; }
    .bml-shape { display: none; }
    .slider-right.bml-portrait { width: min(100%, 420px); margin: 56px 0 0; }
    .bml-plan { position: relative; left: auto; right: auto; bottom: auto; width: 100%; margin-top: 18px; }
    .heading-area { margin-bottom: 2.25rem; }
    .bml-lessons, .bml-about, .bml-contact { padding: 96px 0; }
    .bml-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bml-about .services-about { min-height: 0; margin-top: 3rem; }
    .bml-about .services-about .service-image { float: none; max-width: 100%; aspect-ratio: 4 / 3; object-position: 50% 25%; }
    .bml-about .services-about .content { position: relative; max-width: none; margin: -72px 18px 0; padding: 34px 30px; }
    .bml-stage { padding: 96px 0 84px; }
    .bml-gallery { grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; }
    .bml-gallery figure { grid-column: auto !important; aspect-ratio: 16 / 10; }
    .bml-gallery .g-a { aspect-ratio: 4 / 3; }
    .bml-strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bml-split__copy { padding: 84px 24px; }
    .bml-split__panel { min-height: 0; padding: 56px 24px; }
    .bml-teacher img { width: 200px; height: 200px; }
    .bml-details { margin-top: 56px; }
}
@media (max-width: 767px) {
    .bml-instruments { padding: 36px 22px 30px; border-radius: 20px; }
    .bml-inst-icon { width: 72px; height: 72px; box-shadow: 0 0 0 6px #fff, 0 14px 28px -16px rgba(17, 24, 49, .6); }
    .bml-inst-icon svg { width: 46px; height: 46px; }
    .bml-instruments__icons::before { top: 36px; height: 41px; background: repeating-linear-gradient(to bottom, var(--line) 0 1.5px, transparent 1.5px 10px); }
    .bml-inst-name { font-size: 1.02rem; }
    .bml-skills { grid-template-columns: 1fr; gap: 22px; }
    .bml-instruments__foot { flex-direction: column; align-items: flex-start; }
    .bml-band { padding: 64px 0; }
    .bml-band .parallax-box { padding: 1.1rem 0; }
}
@media (max-width: 575px) {
    .bml-wordmark { font-size: 19px; }
    .home-banner.bml-hero { padding-top: 112px; }
    .bml-plan { padding: 14px 16px 8px; }
    .bml-plan li { font-size: 13px; padding: 8px 0; }
    .bml-num-label { font-size: 13.5px; }
    .bml-strip__list { grid-template-columns: 1fr; gap: 18px; }
    .bml-bands a { font-size: 16px; padding: 11px 18px; }
    .bml-about .services-about .content { margin: -56px 10px 0; padding: 30px 24px; }
    .bml-details { padding: 34px 26px 100px; }
    .bml-details__staff { left: 26px; right: 26px; }
    .bml-footer__bottom { flex-direction: column; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    .bml-shape { animation: none !important; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
