:root {
  --ink: #0a2854;
  --ink-deep: #061d41;
  --royal: #0b42bd;
  --royal-bright: #145ce0;
  --paper: #f5f9fd;
  --paper-blue: #eaf2fa;
  --line: #9cb5d0;
  --gold: #b56a21;
  --warm: #d58a42;
  --white: #fff;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Libre Baskerville", Georgia, serif;
  --caps: "Cinzel", Georgia, serif;
  --shadow: 0 22px 60px rgba(10, 40, 84, 0.14);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink-deep); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { color: #fff; background: var(--gold); text-shadow: none; }
::-moz-selection { color: #fff; background: var(--gold); }

body::before {
  position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; opacity: .42;
  background-image: repeating-linear-gradient(45deg, rgba(15,67,125,.025) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(15,67,125,.018) 0 1px, transparent 1px 7px);
}

.shell { width: min(1460px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 10px 16px; color: white; background: var(--ink-deep); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(89,126,167,.28); background: rgba(246,250,254,.91); backdrop-filter: blur(16px); }
.header-inner { min-height: 96px; display: grid; grid-template-columns: minmax(320px, 1fr) auto auto; align-items: center; gap: 34px; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand-emblem { position: relative; flex: none; display: inline-flex; align-items: center; padding-inline: 10px; }
.brand-emblem::before, .brand-emblem::after { width: 8px; height: 31px; content: ""; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; opacity: .8; }
.brand-emblem::before { border-left: 1px solid currentColor; border-radius: 90% 0 0 90%; transform: rotate(-8deg); }
.brand-emblem::after { border-right: 1px solid currentColor; border-radius: 0 90% 90% 0; transform: rotate(8deg); }
.brand-emblem .lyre { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 600 10px/1 var(--caps); letter-spacing: .06em; }
.brand-copy { display: grid; }
.brand-name { font: 600 clamp(22px, 2vw, 34px)/1.05 var(--display); letter-spacing: .025em; white-space: nowrap; }
.brand-rule { display: flex; align-items: center; gap: 8px; margin-top: 5px; color: #173a6a; font: 500 9px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.brand-rule i { width: 18px; height: 1px; background: currentColor; }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 38px); }
.main-nav a { position: relative; min-height: 44px; display: inline-grid; place-items: center; font-size: 13px; text-decoration: none; text-transform: uppercase; }
.main-nav a::after { position: absolute; right: 50%; bottom: 5px; left: 50%; height: 1px; content: ""; background: var(--gold); transition: inset .25s var(--ease); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; left: 0; }

.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 25px; padding: 12px 25px; border: 1px solid var(--royal); border-radius: 13px; color: white; background: linear-gradient(135deg, var(--royal-bright), #062e9e); box-shadow: 0 9px 24px rgba(11,66,189,.18); font: 400 14px/1 var(--body); letter-spacing: .035em; text-decoration: none; text-transform: uppercase; transition: transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s var(--ease); }
.button:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(11,66,189,.3); filter: saturate(1.18); }
.button:active { transform: translateY(0); }
.button-small { min-height: 48px; padding-inline: 26px; white-space: nowrap; }
.nav-toggle, .menu-button { display: none; }

.hero { position: relative; min-height: 640px; overflow: hidden; border-bottom: 1px solid rgba(89,126,167,.32); background-color: #edf5fc; background-image: linear-gradient(90deg, rgba(243,248,253,.93) 0%, rgba(243,248,253,.82) 27%, rgba(243,248,253,.14) 46%, transparent 62%), url("assets/hero-music-atelier.webp"); background-position: center center; background-size: cover; }
.hero::after { position: absolute; inset: auto 0 0; height: 70px; content: ""; pointer-events: none; background: linear-gradient(transparent, rgba(230,240,249,.32)); }
.hero-grid { min-height: 640px; display: grid; grid-template-columns: minmax(450px, 43%) 1fr; }
.hero-copy { position: relative; z-index: 2; align-self: center; padding: 58px 0 45px 12px; }
.eyebrow { margin: 0 0 10px; color: #6c4a2a; font: 600 10px/1.2 var(--caps); letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 620px; margin: 0; font: 500 clamp(64px, 6vw, 96px)/.84 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.hero-intro { margin: 27px 0 17px; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 26px; }
.text-link { min-height: 44px; display: inline-grid; place-items: center; color: #063ba4; font-size: 13px; text-decoration-thickness: 1px; text-underline-offset: 7px; text-transform: uppercase; transition: color .2s, text-underline-offset .2s; }
.text-link:hover { color: var(--gold); text-underline-offset: 10px; }
.hero-art { min-height: 100%; }

.proof-grid { max-width: 565px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0 0; padding: 0; }
.proof-item { padding: 0 24px; border-left: 1px solid rgba(72,108,148,.38); }
.proof-item:first-child { padding-left: 0; border-left: 0; }
.proof-item dt { display: flex; align-items: center; gap: 12px; }
.proof-item strong { font: 500 28px/1 var(--display); }
.proof-icon { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--ink); font: 600 8px/1 var(--caps); letter-spacing: .08em; text-align: center; }
.proof-item dd { margin: 8px 0 0 46px; font-size: 9px; line-height: 1.45; }

.courses { padding: 26px 0 48px; background: linear-gradient(rgba(242,248,253,.9), rgba(238,246,252,.96)); }
.section-heading { text-align: center; }
.section-heading > p { margin: 0; font: 500 10px/1 var(--caps); letter-spacing: .28em; text-transform: uppercase; }
.title-row { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 5px; }
.title-row i { width: clamp(60px, 11vw, 180px); height: 1px; background: var(--line); }
.title-row h2 { margin: 0; font: 600 clamp(34px, 3.4vw, 50px)/1 var(--display); }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.course-card { position: relative; min-height: 225px; display: grid; grid-template-columns: 42% 58%; overflow: hidden; border: 1px solid #8dabca; border-radius: 13px; background: rgba(247,251,255,.72); box-shadow: 0 3px 0 rgba(255,255,255,.75) inset; transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s; }
.course-card::before { position: absolute; inset: 0; content: ""; pointer-events: none; opacity: 0; background: linear-gradient(125deg, rgba(213,138,66,.12), transparent 45%); transition: opacity .28s; }
.course-card:hover, .course-card:focus-within { z-index: 2; border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-7px); }
.course-card:hover::before, .course-card:focus-within::before { opacity: 1; }
.course-image-wrap { min-width: 0; display: grid; place-items: center; overflow: hidden; }
.course-image-wrap img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(1.03); transition: transform .45s var(--ease), filter .45s var(--ease); }
.course-card:hover img { filter: saturate(1.13) contrast(1.02); transform: scale(1.1) rotate(-1deg); }
.course-content { position: relative; align-self: center; padding: 26px 28px 24px; border-left: 1px solid rgba(120,152,187,.42); }
.course-number { margin: 0 0 3px; color: var(--gold); font: 600 9px/1 var(--caps); letter-spacing: .12em; text-transform: uppercase; }
.course-card h3 { margin: 0 0 8px; font: 600 clamp(24px, 2vw, 32px)/1.1 var(--display); }
.course-card p:not(.course-number) { margin: 0 0 17px; font-size: 11px; line-height: 1.7; }
.course-card a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #073da7; font-size: 9px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.course-card a span { font-size: 16px; transition: transform .2s; }
.course-card a:hover span { transform: translateX(5px); }

.site-footer { position: relative; overflow: hidden; padding: 58px 0 18px; color: #eff6ff; background: #071f43; }
.site-footer::before { position: absolute; inset: 0; content: ""; opacity: .16; background: radial-gradient(circle at 90% 50%, #d58a42, transparent 30%), repeating-linear-gradient(45deg, transparent 0 7px, rgba(255,255,255,.035) 7px 8px); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.7fr .65fr 1fr .8fr; gap: 54px; align-items: start; }
.footer-brand { color: white; }
.footer-brand .brand-name { font-size: 28px; }
.footer-brand .brand-rule { color: #b7c9df; }
.site-footer p, .site-footer address { color: #b9cbe0; font-size: 12px; font-style: normal; }
.footer-nav { display: grid; gap: 5px; }
.footer-nav h2 { margin: 0 0 11px; color: #e7bd83; font: 600 10px/1 var(--caps); letter-spacing: .15em; text-transform: uppercase; }
.footer-nav a { min-height: 34px; display: inline-flex; align-items: center; color: #d7e4f2; font-size: 11px; text-decoration: none; }
.footer-nav a:hover { color: #f1c489; }
.footer-note { color: #88a4c2; font-size: 9px; line-height: 1.5; }
.footer-instrument { height: 170px; overflow: hidden; opacity: .92; mask-image: linear-gradient(to bottom, black 65%, transparent); }
.footer-instrument img { width: 180px; margin: -16px auto 0; mix-blend-mode: screen; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; margin-top: 38px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); color: #88a4c2; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

:focus-visible { outline: 3px solid #da852e; outline-offset: 4px; border-radius: 4px; }

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .brand-name { font-size: 26px; }
  .brand-rule { font-size: 7px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 11px; }
  .course-card { grid-template-columns: 39% 61%; }
  .course-content { padding: 22px 18px; }
}

@media (max-width: 960px) {
  .shell { width: min(100% - 40px, 760px); }
  .header-inner { min-height: 82px; grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .menu-button { position: relative; z-index: 3; width: 48px; height: 48px; display: grid; align-content: center; gap: 5px; padding: 12px; cursor: pointer; }
  .menu-button span { width: 24px; height: 2px; display: block; background: var(--ink); transition: transform .25s, opacity .25s; }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); background: rgba(246,250,254,.98); box-shadow: 0 22px 45px rgba(10,40,84,.14); opacity: 0; pointer-events: none; transform: translateY(-10px); transition: opacity .25s, transform .25s; }
  .nav-toggle:checked ~ .main-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-toggle:checked + .menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .menu-button span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 790px; background-image: linear-gradient(180deg, rgba(243,248,253,.97) 0%, rgba(243,248,253,.9) 43%, rgba(243,248,253,.04) 66%), url("assets/hero-music-atelier.webp"); background-position: 63% center; }
  .hero-grid { min-height: 790px; grid-template-columns: 1fr; }
  .hero-copy { align-self: start; padding-top: 52px; }
  .hero h1 { font-size: clamp(58px, 12vw, 84px); }
  .proof-grid { margin-top: 24px; }
  .course-grid { grid-template-columns: 1fr; }
  .course-card { min-height: 260px; grid-template-columns: 43% 57%; }
  .course-content { padding: 32px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-instrument { display: none; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 28px); }
  .brand-emblem { font-size: 18px; }
  .brand-emblem .lyre { width: 31px; height: 31px; font-size: 17px; }
  .brand-name { font-size: 21px; }
  .brand-rule { display: none; }
  .hero { min-height: 800px; background-size: auto 800px; background-position: 64% bottom; }
  .hero-copy { padding: 38px 0 30px; }
  .eyebrow { font-size: 8px; }
  .hero h1 { font-size: clamp(52px, 18vw, 74px); }
  .hero-intro { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; max-width: 270px; }
  .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-item { padding: 0 10px; }
  .proof-item dt { display: grid; gap: 4px; }
  .proof-item strong { font-size: 23px; }
  .proof-item dd { margin-left: 0; font-size: 7px; }
  .title-row { gap: 12px; }
  .title-row h2 { font-size: 35px; }
  .course-card { grid-template-columns: 1fr; }
  .course-image-wrap { height: 240px; }
  .course-image-wrap img { object-position: center 48%; }
  .course-content { padding: 24px; border-top: 1px solid rgba(120,152,187,.42); border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { gap: 12px; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
