.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: #fff;
  background:
    radial-gradient(ellipse at 82% 4%, rgba(35,145,164,.3), transparent 38%),
    linear-gradient(125deg, #082f48 0%, #104c60 63%, #116b78 100%);
}
.hero::after { position: absolute; inset: 0; pointer-events: none; content: ""; opacity: .14; background-image: linear-gradient(rgba(220,247,247,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(220,247,247,.28) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent 28%, #000); }
.hero-layout { position: relative; z-index: 1; display: grid; align-items: center; gap: 3rem; }
.hero-copy { max-width: 700px; }
.hero .eyebrow { margin-bottom: 1rem; color: #91d6db; }
.hero h1 { max-width: 13ch; color: #fff; }
.hero p:not(.eyebrow):not(.hero-tagline) { max-width: 54ch; margin: 1.2rem 0 1.8rem; color: #d3e6e9; font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.hero .btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-tagline { margin-top: 1.6rem; color: #b6d2d7; font-size: .88rem; font-weight: 600; letter-spacing: .04em; }
.hero-art { position: relative; width: min(100%, 520px); justify-self: center; filter: drop-shadow(0 22px 34px rgba(0,0,0,.18)); }
.spectrum-chart { width: 100%; }
.chart-label { fill: #315a69; font: 700 11px var(--sans); letter-spacing: 1.5px; }
.chart-small { fill: #587783; font: 500 10px var(--sans); }
.chart-axis { fill: none; stroke: #95b4bd; stroke-width: 1.5; }
.sine-trace { fill: none; stroke: #e87939; stroke-width: 4; stroke-linecap: round; }
.spectrum-bars { fill: none; stroke: #1677db; stroke-width: 8; stroke-linecap: round; }
.spectrum-highlight { stroke: #f27b35; stroke-width: 3; }
.spectrum-dot { fill: #f27b35; }
.art-caption { position: absolute; right: 2rem; bottom: 1.1rem; color: #436b78; font-size: .78rem; font-weight: 700; }
.page-hero { padding: 3.8rem 0 4.3rem; }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-hero p { color: #d3e6e9; }
.facts { padding: 1.1rem 0; border-bottom: 1px solid var(--line); background: #fff; }
.facts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1rem; padding: 0; margin: 0; color: var(--navy); font-size: .88rem; font-weight: 700; list-style: none; }
.facts li { display: flex; align-items: flex-start; gap: .5rem; }
.facts li::before { width: 7px; height: 7px; flex: 0 0 7px; margin-top: .55rem; border-radius: 50%; background: var(--orange); content: ""; }
.home-layout { display: grid; gap: 1.4rem; align-items: start; padding-top: 2.5rem; }
.home-main { min-width: 0; }
.home-main > section { padding: clamp(2.8rem, 5vw, 4.7rem) 0; }
.home-main > section:first-child { padding-top: 1.6rem; }
.home-main > section + section { border-top: 1px solid var(--line); }
.home-main .eyebrow { margin-bottom: .65rem; }
.section-heading > .eyebrow, .trainer-card + .eyebrow { margin-bottom: .65rem; }
.home-main h2 { margin-bottom: 1rem; }
.home-main .lead { max-width: 66ch; }
.story-layout { display: grid; align-items: start; gap: 1.5rem; }
.story-layout [data-bind="about-story"] { display: grid; gap: 1rem; color: #355361; }
.story-visual { min-width: 0; }
.story-visual .photo-placeholder { min-height: 225px; }
.soft-section { border-radius: 0; }
.content-list { list-style: none; padding: 0; }
.content-list li { position: relative; padding: 1rem 1rem 1rem 3.2rem; border: 1px solid rgba(8,47,72,.08); border-radius: 14px; background: rgba(255,255,255,.75); }
.content-list li::before { position: absolute; top: 1.08rem; left: 1rem; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 9px; background: #dceeed; color: var(--teal); content: "✓"; font-weight: 700; }
.trainer-card { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(135deg, #0b354d, #104c60); color: #e4f0f1; box-shadow: var(--shadow); }
.trainer-card { display: grid; gap: 1.4rem; }
.trainer-photo { margin: 0; overflow: hidden; border-radius: 14px; }
.trainer-photo .ph-media, .trainer-photo img { width: 100%; height: 100%; }
.trainer-photo .ph-media { min-height: 220px; }
.trainer-photo img { min-height: 220px; object-fit: cover; }
.trainer-photo figcaption { padding: .5rem .75rem; background: rgba(255,255,255,.1); color: #fff; font-size: .86rem; }
.trainer-card h3 { color: #fff; }
.trainer-bio { margin-top: 1rem; color: #d1e4e6; }
.trainer-card .training-group ul { color: #e0edef; font-size: .92rem; }
.trainer-name-slot { width: fit-content; min-width: min(100%, 20rem); padding-bottom: .35rem; border-bottom: 1px solid rgba(231,242,244,.55); color: #fff; }
.schedule-history { padding: 1.25rem 0 3rem; }
.past-year + .past-year { margin-top: .55rem; }
.past-year > summary { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; font: 700 1.05rem var(--serif); list-style: none; }
.past-year > summary::-webkit-details-marker { display: none; }
.past-year > summary::before { width: .5rem; height: .5rem; flex: 0 0 .5rem; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); content: ""; transform: rotate(-45deg); }
.past-year[open] > summary { margin-bottom: .4rem; border-color: rgba(15,107,120,.35); }
.past-year[open] > summary::before { transform: rotate(45deg); }
.past-year > summary span { margin-left: auto; color: var(--muted); font: 500 .82rem var(--sans); }
.past-month { margin: .35rem 0 0 .65rem; }
.past-month > summary { display: flex; min-height: 38px; align-items: center; gap: .65rem; padding: .4rem .7rem; border: 1px solid rgba(8,47,72,.08); border-radius: 9px; background: #f7faf9; color: var(--navy); cursor: pointer; font-size: .9rem; font-weight: 700; list-style: none; }
.past-month > summary::-webkit-details-marker { display: none; }
.past-month > summary::before { width: .38rem; height: .38rem; flex: 0 0 .38rem; border-right: 1.5px solid var(--teal); border-bottom: 1.5px solid var(--teal); content: ""; transform: rotate(-45deg); }
.past-month[open] > summary { margin-bottom: .35rem; }
.past-month[open] > summary::before { transform: rotate(45deg); }
.past-month > summary span { margin-left: auto; color: var(--muted); font: 500 .78rem var(--sans); }
.schedule-list { display: grid; grid-template-columns: 1fr; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.schedule-entry { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .8rem; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.schedule-entry-name { color: var(--navy); font-size: .91rem; font-weight: 700; }
.schedule-entry time { flex: 0 0 auto; color: var(--muted); font-size: .84rem; text-align: right; }
.market-section { background: linear-gradient(115deg, #e6f0ef, #f8faf8); }
.market-content { max-width: 850px; }
.market-content .lead { margin: .8rem 0; }
.market-content > p:not(.eyebrow):not(.lead) { margin: .8rem 0 1.3rem; }
.section-link { margin-top: 1.5rem; }
.training-view-all { display: flex; justify-content: center; margin-top: .5rem; }
.training-view-all .btn { min-width: min(100%, 22rem); min-height: 58px; padding-inline: 2rem; font-size: 1.05rem; }
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; gap: 1rem; padding: .3rem .1rem 1.2rem; }
.course-grid > .card { scroll-snap-align: start; }
.course-grid .photo-placeholder { min-height: 140px; border: 0; border-radius: 0; }
.service-card .lead { margin-bottom: 0; }
.contact-section { background: linear-gradient(130deg, #e9f1f0, #f7faf9); }
.contact-layout { display: grid; align-items: start; gap: 2rem; }
.contact-layout h2 { margin: .6rem 0; }
.contact-layout .lead { margin: .9rem 0 1.3rem; }
.contact-layout .contact-list li { padding: .4rem 0; }
.course-detail { max-width: 920px; }
.course-detail > .media { margin: 1rem 0 1.4rem; }
.course-detail > .media .photo-placeholder { min-height: 250px; }
.course-detail > .tag { margin-bottom: .8rem; }
.course-detail h1 { margin-bottom: .75rem; font-size: clamp(2rem, 5vw, 3.6rem); }
.course-detail .meta { margin-bottom: 1.2rem; }
.course-detail .lead { margin-bottom: 1.6rem; }
.course-detail .course-block { margin: 1.8rem 0; }
.course-detail .course-block h2 { margin-bottom: .8rem; font-size: 1.45rem; }
.course-detail .topics { padding-left: 1.25rem; }
.course-detail .topics li { padding: .2rem 0; }
.equipment-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.equipment-photo { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.equipment-photo .ph-media { aspect-ratio: 4 / 3; }
.equipment-photo img { width: 100%; height: 100%; object-fit: cover; }
.equipment-photo figcaption { padding: .55rem .7rem; color: var(--muted); font-size: .82rem; }
.course-video video, .home-video-card video { display: block; width: 100%; border-radius: 14px; background: #071d2b; }
.course-video video { aspect-ratio: 16 / 9; }
.course-video > p { margin-top: .5rem; color: var(--muted); }
.home-video-card { display: grid; gap: 1rem; align-items: center; }
.home-video-card video { aspect-ratio: 16 / 9; }
.home-video-card h3 { margin-bottom: .5rem; }
.home-video-card a { color: var(--teal); font-weight: 700; }
.gallery-strip { display: grid; grid-auto-columns: min(72vw, 290px); grid-auto-flow: column; gap: .8rem; overflow-x: auto; padding: .25rem .1rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery-strip-item { min-width: 0; margin: 0; scroll-snap-align: start; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.gallery-strip-item .gallery-item { width: 100%; aspect-ratio: 4 / 3; }
.gallery-strip-item .ph-media, .gallery-strip-item img { width: 100%; height: 100%; }
.gallery-strip-item img { object-fit: cover; }
.gallery-strip-item figcaption { padding: .5rem .65rem; color: var(--muted); font-size: .82rem; }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.video-player { display: block; width: 100%; aspect-ratio: 16 / 9; background: #071d2b; object-fit: contain; }
.video-card .body { padding-top: 1rem; }
.video-card .video-player { border-radius: 12px 12px 0 0; }
.video-card .body h3 { font-size: 1.1rem; }
.schedule-tabs { display: flex; gap: .5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.schedule-tabs button { padding: .7rem 1rem; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font: 700 1rem var(--sans); cursor: pointer; }
.schedule-tabs button[aria-selected="true"] { border-color: var(--orange); color: var(--navy); }
.schedule-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.schedule-empty p { margin: 0; color: var(--navy); font-weight: 600; }
.equip { display: flex; flex-wrap: wrap; gap: .45rem; }
.equip span { padding: .3rem .7rem; border-radius: 999px; background: #e5f1f1; color: var(--navy); font-size: .86rem; font-weight: 600; }
.crumb { margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.crumb a { color: var(--teal); }
.batch-card .date { color: var(--navy); font: 700 1.1rem var(--serif); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.gallery-item { position: relative; display: block; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: transparent; text-align: left; }
.gallery-photo { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.gallery-photo .gallery-item { width: 100%; aspect-ratio: 4 / 3; }
.gallery-photo .ph-media, .gallery-photo img { width: 100%; height: 100%; }
.gallery-photo img { object-fit: cover; transition: transform .25s ease; }
.gallery-photo figcaption { padding: .65rem .8rem; color: var(--muted); font-size: .88rem; }
.gallery-item .photo-placeholder { height: 100%; min-height: 150px; border-radius: 16px; }
.gallery-placeholder { cursor: default; }
.gallery-item:not(.gallery-placeholder) { cursor: zoom-in; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item img { transition: transform .25s ease; }
.lightbox { position: fixed; width: min(92vw, 1000px); max-width: none; max-height: 90vh; padding: 1rem; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.4); }
.lightbox::backdrop { background: rgba(5,25,38,.78); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 75vh; object-fit: contain; }
.lightbox p { padding: .7rem .2rem 0; color: var(--ink); }
.lightbox-close { position: absolute; top: .55rem; right: .55rem; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.6rem; cursor: pointer; }
.video-launch { position: relative; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.video-launch .photo-placeholder, .video-launch .ph-media { min-height: 180px; border-radius: 0; }
.play-icon { position: absolute; top: 50%; left: 50%; display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: var(--orange); color: var(--navy); transform: translate(-50%,-50%); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #0a2332; }
.video-card h3 { font-size: 1.05rem; }
.video-topics { margin: .75rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .9rem; }
.video-error { padding: 2rem 1rem; color: var(--ink); text-align: center; }
.notice .meta { margin-top: .25rem; }
.error-page { min-height: 100vh; display: grid; align-items: center; padding: 3rem 0; background: radial-gradient(ellipse at 80% 10%, rgba(35,145,164,.16), transparent 40%), var(--paper); }
.error-page .brand { margin-bottom: 4rem; }
.error-page .eyebrow { margin-bottom: .75rem; }
.error-page h1 { max-width: 13ch; margin-bottom: 1rem; }
.error-page .lead { margin-bottom: 1.5rem; }
.error-contact { margin-top: 1.5rem; color: var(--muted); }
.error-contact a { color: var(--teal); font-weight: 700; }

@media (min-width: 960px) {
  .hero-layout { grid-template-columns: 1.05fr .95fr; }
  .story-layout { grid-template-columns: minmax(0, 1fr) minmax(220px, .75fr); }
  .contact-layout { grid-template-columns: .9fr 1.1fr; gap: 4rem; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .gallery-item .photo-placeholder { min-height: 195px; }
  .trainer-card { grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); align-items: start; }
  .home-video-card { grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 760px) and (max-width: 959px) {
  .hero-layout { grid-template-columns: 1.1fr .9fr; gap: 1.5rem; }
  .contact-layout { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .hero-layout { gap: 2rem; }
  .hero-art { width: min(100%, 430px); }
  .home-main { padding: 0 1.25rem; }
  .course-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .course-grid > .card { width: 100%; }
  .course-grid .card-actions { display: grid; grid-template-columns: 1fr; }
  .course-grid .card-actions .btn { width: 100%; }
  .story-layout { gap: 1.1rem; }
  .contact-layout { gap: 1.5rem; }
}
@media (max-width: 480px) {
  .hero { padding: 3.7rem 0 3.5rem; }
  .hero .btns { align-items: stretch; }
  .hero .btns .btn { flex: 1 1 100%; }
  .hero-art { width: calc(100% + .4rem); margin-inline: -.2rem; }
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  section { padding: 3rem 0; }
  .section-heading { margin-bottom: 1.4rem; }
  .card .body { padding: 1.1rem; }
  .course-grid { gap: .85rem; padding-bottom: .5rem; }
  .course-grid .ph-media img { aspect-ratio: 16 / 9; }
  .course-grid .card-actions { gap: .55rem; }
  .facts ul { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item .photo-placeholder { min-height: 132px; padding: .8rem; font-size: .75rem; }
  .schedule-entry { align-items: flex-start; }
  .schedule-entry-name { max-width: 55%; }
}
