/* style.css */
/* Presentation revision · 30 October 2026. Clear scenes, editorial rhythm. */
@font-face { font-family: Tall; src: url('assets/performance-20261202/VympelTall-Bold.woff2'); font-display: swap; }
@font-face { font-family: Onest; src: url('assets/performance-20261202/OnestVympel400.woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Onest; src: url('assets/performance-20261202/OnestVympel500.woff2'); font-weight: 500; font-display: swap; }

:root {
  --red: #e52e25;
  --ink: #181a1b;
  --paper: #f7f7f3;
  --muted: #626463;
  --heading-secondary-opacity: .60;
  --line: #cdd0cb;
  --gutter: clamp(24px, 4.5vw, 88px);
  --space: clamp(72px, 7.5vw, 128px);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: 24px; scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 Onest, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img { display: block; max-width: 100%; }
figure, p { margin: 0; }
p + p { margin-top: 16px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
h1, h2 { font-family: Tall, Impact, sans-serif; text-transform: uppercase; font-style: italic; font-weight: 700; letter-spacing: var(--type-heading-tracking, -.02em); line-height: var(--type-heading-leading, 1.04); }
h2 { font-size: var(--type-title, clamp(52px, 5.3vw, 86px)); }
h3 { line-height: 1.2; letter-spacing: -.025em; }
h4 { line-height: 1.3; }
/* One secondary tone for heading words on light and dark surfaces.
   Keep outline lettering at full strength; do not nest muted fragments. */
.heading-muted { opacity: var(--heading-secondary-opacity); }
@media (forced-colors: active) { .heading-muted { opacity: 1; } }
em { color: var(--red); font-style: inherit; }
svg { width: 24px; height: 24px; flex-shrink: 0; }
[hidden] { display: none !important; }
.wrap { padding-inline: var(--gutter); }
.section { padding-block: var(--space); }
.dark { color: #fff; background: var(--ink); }
.eyebrow { margin-bottom: 24px; text-transform: uppercase; font-size: 11px; font-weight: 500; letter-spacing: .09em; }
.muted { color: var(--muted); font-size: 14px; }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 48px; margin-bottom: 56px; }
.section-intro { max-width: 430px; justify-self: end; font-size: 18px; }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 44px; padding: 9px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; font-size: 14px; font-weight: 500; }
.text-link:hover { color: #bd241c; }
.dark .text-link:hover { color: #ff756c; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
input:focus, select:focus { outline: 2px solid var(--red); outline-offset: 2px; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 50; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; background: white; }
.skip:focus { width: auto; height: auto; clip-path: none; padding: 12px 20px; }

/* School navigation. */
.brand { flex-shrink: 0; }
.brand img { width: 174px; height: auto; }

/* Directions are comparable editorial rows, not competing posters. */

/* A wide training scene is held between a statement and three concrete principles. */

/* One person, one biography; the selector stays in the same place. */

/* Operational information: quiet typography and stable columns. */
.schedule { background: #e9ece7; }
.filters { display: grid; grid-template-columns: 1fr .8fr 1.15fr .8fr; gap: 24px; padding: 28px; background: var(--paper); }
label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 500; }
input, select { width: 100%; min-width: 0; border: 1px solid #b7beb6; border-radius: 0; padding: 13px 12px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.3; min-height: 48px; }
.schedule-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 32px 16px; font-size: 12px; }
.schedule-toolbar button { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 8px 0; font-size: 12px; }
.schedule-columns, .group-row { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr 155px; gap: 28px; align-items: center; }
.schedule-columns { padding: 15px 0; color: var(--muted); font-size: 11px; border-bottom: 1px solid #aeb6ac; }
.group-row { padding: 26px 0; border-bottom: 1px solid #c4ccc1; }
.group-name h3 { font-size: 18px; line-height: 1.3; }
.group-name p { color: #5a6158; font-size: 12px; margin-top: 8px; max-width: 230px; }
.group-hall p { font-size: 14px; }
.group-sessions { display: grid; gap: 18px; }
.session { display: grid; gap: 5px; }
.session-time { font-size: 21px; font-weight: 500; line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.session-days { font-size: 12px; color: #565e53; }
.group-action { min-height: 44px; padding: 11px 12px; font-size: 12px; border: 1px solid #747d70; background: transparent; }
.group-action:hover { background: var(--ink); border-color: var(--ink); color: white; }
.empty-groups { border-bottom: 1px solid #aeb6ac; padding-block: 36px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.empty-groups p { max-width: 650px; }
.empty-groups button { flex-shrink: 0; }
.schedule-help { display: flex; gap: 20px 40px; align-items: center; justify-content: space-between; padding-block: 18px; font-size: 13px; }
.price-block { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; align-items: center; margin-top: 54px; padding-top: 42px; border-top: 1px solid #aeb6ac; }
.price-block .eyebrow { margin-bottom: 18px; }
.price-block h3 { font-size: 26px; }
.price-block > div > p:last-child:not(.eyebrow) { font-size: 12px; color: var(--muted); margin-top: 18px; }
.price { padding-left: 28px; border-left: 1px solid #aeb6ac; }
.price > span { display: block; font-size: 13px; }
.price > span:last-child { font-size: 12px; color: var(--muted); }
.price strong { display: block; font-weight: 500; font-size: clamp(40px, 4vw, 64px); line-height: 1.3; letter-spacing: -.05em; margin-block: 4px; white-space: nowrap; }
.price small { font-size: .55em; font-weight: 400; }
.expenses { margin-top: 36px; font-size: 13px; border-top: 1px solid #b6bfb2; border-bottom: 1px solid #b6bfb2; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > span { flex-shrink: 0; font-size: 26px; font-weight: 400; line-height: 1; }
details[open] > summary > span { transform: rotate(45deg); }
.expenses summary { padding-block: 20px; }
.expenses > p { max-width: 850px; padding-bottom: 22px; color: #4c5549; }

/* Documentary scene and a short school tradition. */

/* Questions stay compact; the first visit is a new full photographic scene. */
.faq { display: grid; grid-template-columns: .85fr 1.3fr; gap: 80px; }
.faq h2 { font-size: clamp(44px, 4vw, 64px); }
.faq > div > p:not(.eyebrow) { margin-top: 28px; color: var(--muted); font-size: 14px; }
.faq .text-link { margin-top: 16px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding-block: 24px; font-size: 17px; line-height: 1.4; font-weight: 500; }
.faq-list details > p { font-size: 14px; color: #555c56; max-width: 620px; padding: 0 36px 26px 0; }
.preparation { padding-block: 48px 64px; border-top: 1px solid #494c49; }
.preparation > h3 { font-size: 24px; margin-bottom: 36px; }
.preparation ol { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.preparation li { display: flex; gap: 24px; }
.preparation li > span { color: #e8675e; font-size: 13px; line-height: 1.5; padding-top: 2px; }
.preparation h4 { font-size: 17px; margin-bottom: 12px; }
.preparation p { color: #c3c7c2; font-size: 13px; }

/* The space itself, followed by two equally legible addresses. */
.hall-addresses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px; padding-block: 48px 52px; }
.hall-addresses article { display: flex; align-items: start; gap: 32px; }
.hall-num { font-size: 12px; padding-top: 7px; color: var(--muted); }
.hall-addresses h3 { font-size: 28px; margin-bottom: 20px; }
.hall-addresses p { font-size: 14px; }
.hall-addresses .entry { margin-top: 8px; color: var(--muted); }
.hall-addresses .text-link { margin-top: 20px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding-top: 40px; }
.contact-row .eyebrow { margin-bottom: 12px; }
.contact-row p:not(.eyebrow) { font-size: 12px; }
.contact-row p span { color: var(--muted); }
.contact-phone { font-size: clamp(24px, 2.4vw, 38px); white-space: nowrap; font-weight: 500; letter-spacing: -.04em; }
.contact-row > a:last-child { font-size: 12px; border-bottom: 1px solid currentColor; }

/* Shared footer and accessible native dialogs. */
footer { padding-block: 56px 24px; background: var(--ink); color: #fff; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand img { width: 210px; height: auto; }
.footer-top p { font-size: 13px; color: #d3d6d1; }
.footer-top > a:last-child { font-size: 13px; }
.footer-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: 48px; font-size: 10px; color: #a7aea7; }
.footer-bottom button { background: none; border: 0; border-bottom: 1px solid #a7aea7; color: #d3d6d1; padding: 8px 0; font-size: 11px; }
body.dialog-open { overflow: hidden; }
dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 40px); border: 0; padding: 40px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: rgb(0 0 0 / 75%); }
.dialog-close { position: absolute; right: 12px; top: 9px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; }
dialog h2 { font-size: 44px; margin-bottom: 20px; }
dialog > p { font-size: 13px; }
dialog .eyebrow { margin-bottom: 16px; }
.demo-notice { padding: 14px 16px; margin-block: 20px; border-left: 3px solid var(--red); background: #e9ece5; font-size: 12px; }
.demo-notice a { text-decoration: underline; white-space: nowrap; }
#trial-form { margin-top: 24px; display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.small, #form-status { font-size: 12px; }
#form-status:empty { display: none; }
#form-status { background: #e7eade; padding: 14px; }
#info-dialog p { margin-top: 18px; }

/* Tablet keeps the same reading sequence, with fewer columns. */

@media (max-width: 1180px) {
  .schedule-columns, .group-row { grid-template-columns: 1.1fr .85fr 1fr 132px; gap: 20px; }
  .filters { gap: 16px; padding: 22px; }
  .group-action { padding-inline: 8px; }
  .faq { gap: 48px; }
  .contact-row { flex-wrap: wrap; }
}
@media (max-width: 800px) {
  :root { --gutter: 28px; --space: 72px; }
  h2 { font-size: 54px; }
  .brand img { width: 158px; }
  .section-heading { gap: 28px; margin-bottom: 40px; grid-template-columns: 1.15fr 1fr; }
  .section-intro { font-size: 15px; }
  .filters { grid-template-columns: 1fr 1fr; gap: 20px; }
  .schedule-columns { display: none; }
  .group-row { grid-template-columns: 1.1fr 1fr auto; gap: 12px 24px; align-items: start; }
  .group-name { grid-column: 1; grid-row: 1; }
  .group-hall { grid-column: 1; grid-row: 2; }
  .group-hall p { font-size: 12px; }
  .group-sessions { grid-column: 2; grid-row: 1 / span 2; }
  .group-action { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .price-block { gap: 28px; grid-template-columns: 1.2fr 1fr 1fr; }
  .price { padding-left: 20px; }
  .price strong { font-size: 38px; }
  .price-block h3 { font-size: 21px; }
  .faq { grid-template-columns: 1fr; gap: 36px; }
  .faq > div:first-child { max-width: 420px; }
  .preparation ol { gap: 28px; }
  .preparation li { gap: 14px; }
  .preparation h4 { font-size: 15px; }
  .hall-addresses { gap: 36px; }
  .hall-addresses article { gap: 16px; }
  .hall-addresses h3 { font-size: 24px; }
  .footer-bottom { flex-wrap: wrap; align-items: start; }
}
@media (max-width: 600px) {
  :root { --gutter: 22px; --space: 64px; }
  body { font-size: 15px; }
  h2 { font-size: clamp(44px, 12vw, 64px); }
  .eyebrow { margin-bottom: 20px; font-size: 10px; }
  .brand img { width: 148px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 34px; }
  .section-intro { justify-self: start; font-size: 15px; }
  .section-intro br { display: none; }
  .filters { padding: 20px; gap: 18px; grid-template-columns: 1fr; }
  .filters label { font-size: 12px; }
  .schedule-toolbar { padding-block: 24px 8px; }
  .group-row { grid-template-columns: 1fr 1fr; padding-block: 24px; gap: 12px 16px; }
  .group-name { grid-column: 1 / -1; grid-row: 1; }
  .group-name h3 { font-size: 19px; }
  .group-name p { max-width: none; margin-top: 6px; }
  .group-hall { grid-column: 1 / -1; grid-row: 2; padding-bottom: 8px; }
  .group-hall p { font-size: 13px; }
  .group-sessions { grid-column: 1; grid-row: 3; gap: 14px; }
  .session-time { font-size: 20px; }
  .session-days { font-size: 11px; }
  .group-action { grid-column: 2; grid-row: 3; justify-self: end; padding: 11px; font-size: 11px; }
  .empty-groups { flex-direction: column; align-items: start; gap: 20px; }
  .empty-groups button { align-self: start; }
  .schedule-help { flex-direction: column; align-items: start; gap: 4px; padding-block: 24px; }
  .price-block { grid-template-columns: 1fr 1fr; gap: 32px 20px; margin-top: 18px; padding-top: 32px; }
  .price-block > div:first-child { grid-column: 1 / -1; }
  .price-block h3 { font-size: 26px; }
  .price { padding-left: 0; border-left: 0; }
  .price + .price { padding-left: 20px; border-left: 1px solid #aeb6ac; }
  .price strong { font-size: clamp(33px, 9vw, 48px); }
  .price > span { font-size: 11px; }
  .expenses { margin-top: 28px; }
  .expenses summary { font-size: 13px; gap: 20px; }
  .faq h2 { font-size: 46px; }
  .faq { gap: 28px; }
  .faq > div > p:not(.eyebrow) { margin-top: 22px; }
  .faq-list summary { font-size: 16px; padding-block: 22px; }
  .faq-list details > p { padding-right: 16px; font-size: 13px; }
  .preparation { padding-block: 32px 44px; }
  .preparation > h3 { font-size: 23px; margin-bottom: 28px; }
  .preparation ol { grid-template-columns: 1fr; gap: 26px; }
  .preparation li { gap: 20px; }
  .preparation h4 { font-size: 17px; margin-bottom: 8px; }
  .preparation li + li { padding-top: 24px; border-top: 1px solid #454b45; }
  .hall-addresses { grid-template-columns: 1fr; gap: 32px; padding-block: 36px; }
  .hall-addresses article { gap: 20px; }
  .hall-addresses article + article { border-top: 1px solid var(--line); padding-top: 30px; }
  .hall-addresses h3 { font-size: 24px; margin-bottom: 18px; }
  .hall-addresses .text-link { margin-top: 16px; font-size: 13px; }
  .contact-row { flex-direction: column; align-items: start; gap: 24px; padding-top: 32px; }
  .contact-phone { font-size: 31px; }
  footer { padding-top: 40px; }
  .footer-top { flex-wrap: wrap; gap: 28px; }
  .footer-brand img { width: 190px; }
  .footer-top p { width: 65%; font-size: 12px; }
  .footer-top > a:last-child { font-size: 12px; }
  .footer-bottom { flex-direction: column; gap: 20px; margin-top: 32px; }
  .footer-bottom p { margin: 0; }
  dialog { padding: 36px 24px 28px; }
  dialog h2 { font-size: 38px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  :root { --gutter: 18px; }
  .session-time { font-size: 18px; }
  .group-action { padding-inline: 8px; font-size: 10px; }
  .contact-phone { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* Full-width scenes and the angular graphic language from the school's references. */
.eyebrow::before { content: ''; display: inline-block; width: 13px; height: 13px; border-left: 4px solid var(--red); border-right: 4px solid var(--red); transform: skewX(-14deg); margin-right: 14px; vertical-align: -2px; }
.button { position: relative; isolation: isolate; min-height: 58px; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 16px 30px; border: 0; color: #fff; background: transparent; font-size: 14px; font-weight: 500; }
.button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: skewX(-12deg); transition: background .15s; }
.button svg { width: 44px; padding-left: 18px; border-left: 1px solid rgb(255 255 255 / 45%); }
.button:hover::before { background: #bc241b; }
.button:focus-visible { outline-offset: 8px; }

/* A single dark field gives the three sculptural objects space. */
.programs { background: #141819; }
.programs .section-intro { color: #c4cbc7; }
.program-list { border-top: 1px solid #414846; }
.program { display: grid; grid-template-columns: 260px .9fr 1fr; align-items: center; gap: 48px; padding-block: 34px; border-bottom: 1px solid #414846; min-height: 320px; }
.program-visual { display: flex; align-items: center; justify-content: center; height: 250px; }
.program-visual img { width: 250px; height: 250px; object-fit: contain; }
.program-mma .program-visual img { width: 224px; height: 224px; }
.program-women .program-visual img { width: 280px; height: 280px; max-width: none; }
.program-heading h3 { font-family: Tall, Impact, sans-serif; font-style: italic; text-transform: uppercase; font-size: clamp(36px, 3.1vw, 50px); line-height: 1.08; max-width: 360px; }
.program-age { display: inline-block; margin-top: 22px; color: #e5e9e5; font-size: 12px; line-height: 1.4; padding-left: 14px; border-left: 3px solid var(--red); }
.program-copy p { max-width: 470px; color: #bec7c1; font-size: 15px; }
.program-copy .text-link { margin-top: 18px; color: #fff; }
.program-copy .text-link svg { color: #f35d50; }
.personal { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 40px; align-items: start; padding-top: 40px; }
.personal h3 { max-width: 320px; font-size: 22px; }
.personal p { font-size: 14px; color: #b8c2ba; }

/* H03: the complete group stays clear of the text column and its angled edge. */
.training-scene { position: relative; isolation: isolate; display: grid; grid-template-columns: 60% minmax(0, 1fr); min-height: clamp(620px, 50vw, 960px); background: #101617; }
.training-photo { position: absolute; inset: 0; width: 100%; z-index: -1; }
.training-photo picture { display: block; width: 100%; height: 100%; }
.training-photo img { width: 100%; height: 100%; object-fit: cover; object-position: left 70%; }
.training-panel { position: relative; isolation: isolate; grid-column: 2; display: flex; flex-direction: column; padding: clamp(40px, 4.5vw, 86px) var(--gutter) clamp(28px, 3vw, 56px) 5vw; }
.training-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgb(8 15 17 / 94%); clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
.training-heading .eyebrow { margin-bottom: 22px; }
.training-heading h2 { font-size: clamp(54px, 5vw, 86px); line-height: 1.04; }
.training-heading h2 em { color: #fff; white-space: nowrap; }
.training-heading > p { max-width: 390px; margin-top: 26px; color: #dce1dc; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; }
.training-heading::after { content: ''; display: block; width: 72px; height: 7px; margin-top: 28px; background: var(--red); transform: skewX(-20deg); }
.training-caption { margin-top: auto; padding-top: 30px; color: #e5e9e6; font-size: 12px; line-height: 1.5; }
.training-caption span { display: block; margin-top: 5px; color: #bdc7c4; font-size: 11px; }
@media (max-width: 1100px) {
  .training-scene { display: flex; flex-direction: column; min-height: 0; }
  .training-photo { position: relative; inset: auto; width: 100%; z-index: auto; aspect-ratio: 1.5; }
  .training-photo img { position: absolute; inset: 0; object-fit: cover; object-position: left top; }
  .training-panel { padding: 44px var(--gutter) 36px; background: #101617; }
  .training-panel::before { display: none; }
  .training-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 44px; align-items: end; }
  .training-heading h2 { font-size: clamp(46px, 6.8vw, 74px); line-height: 1.04; }
  .training-heading > p { margin-top: 0; max-width: 430px; font-size: 16px; }
  .training-heading::after { grid-column: 1 / -1; margin-top: 4px; }
  .training-caption { padding-top: 28px; }
}
@media (max-width: 700px) {
  .training-photo { aspect-ratio: 1.32; }
  .training-panel { padding: 36px var(--gutter) 30px; }
  .training-heading { display: block; }
  .training-heading h2 { font-size: clamp(45px, 12vw, 70px); }
  .training-heading > p { margin-top: 24px; font-size: 15px; }
  .training-heading::after { width: 64px; height: 6px; margin-top: 26px; }
  .training-caption { padding-top: 24px; }
}
.school-principles { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 64px; padding-block: 56px 64px; background: #f2f3ed; color: var(--ink); }
.school-principles h3 { font-size: 22px; margin-bottom: 18px; }
.school-principles p { font-size: 14px; color: #626a60; }
.school-principles .text-link { margin-top: 18px; color: var(--ink); }

/* The portrait is part of the whole screen, with a single red oblique plane. */
.coaches { position: relative; overflow: hidden; background: #e7ebe4; padding-bottom: 0; }
.coaches .section-heading { position: relative; z-index: 1; }
.coach-layout { position: relative; }
.coach-profile { display: grid; grid-template-columns: 48% 52%; min-height: 720px; align-items: stretch; }
.coach-profile figure { position: relative; height: 720px; align-self: end; padding: 24px 20px 0; }
.coach-profile figure::before { content: ''; position: absolute; width: 38%; inset-block: 14% 0; left: 28%; background: var(--red); transform: skewX(-12deg); }
.coach-profile figure img { position: relative; width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.coach-biography { padding: 70px 0 300px 56px; }
.coach-discipline { display: inline-block; font-size: 12px; background: var(--ink); color: #fff; padding: 7px 20px; margin-bottom: 24px; clip-path: polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%); }
.coach-biography h3 { font-family: Tall, Impact, sans-serif; font-style: italic; text-transform: uppercase; font-size: clamp(56px, 5.6vw, 88px); line-height: 1.02; max-width: 620px; }
.coach-role { font-size: 16px; max-width: 430px; margin-top: 24px; }
.coach-description { color: #586254; font-size: 14px; max-width: 420px; margin-top: 20px; }
.coach-selection { position: absolute; right: 0; bottom: 50px; width: calc(52% - 56px); }
.coach-selection > p { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 18px; }
.coach-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.coach-tabs button { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 18px; padding: 13px 18px; min-height: 48px; border: 0; background: transparent; font-size: 12px; flex: 1 1 46%; }
.coach-tabs button::before { content: ''; position: absolute; z-index: -1; inset: 0; background: #d6ddd2; clip-path: polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%); }
.coach-tabs small { font-size: 10px; color: #5d6659; }
.coach-tabs button[aria-selected="true"] { color: white; }
.coach-tabs button[aria-selected="true"]::before { background: var(--ink); }
.coach-tabs button[aria-selected="true"] small { color: #d6ddd2; }
.coach-tabs button:hover::before { background: #c7d0c2; }
.coach-tabs button[aria-selected="true"]:hover::before { background: #30392e; }
.schedule { border-top: 1px solid #c4cdc0; }
.filters { position: relative; }
.filters::before { content: ''; position: absolute; left: 28px; top: -5px; width: 72px; height: 5px; background: var(--red); transform: skewX(-18deg); }

/* An authentic full-frame moment provides a different scale and texture. */
.life { position: relative; padding-top: 0; color: white; background: var(--ink); }
.life-heading { position: absolute; z-index: 2; top: 72px; left: 0; right: 0; display: grid; grid-template-columns: 1.25fr .8fr; align-items: start; gap: 80px; }
.life-heading h2 { font-size: clamp(56px, 5.7vw, 94px); }
.life-heading > p { margin-top: 40px; font-size: 15px; color: #e4e9e4; max-width: 400px; }
.life-panorama { position: relative; height: max(820px, 94svh); }
.life-panorama::after { content: ''; position: absolute; inset: 0; background: rgb(4 10 13 / 23%); }
.life-panorama img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.life-panorama figcaption { position: absolute; z-index: 1; bottom: 32px; left: var(--gutter); font-size: 11px; padding: 9px 16px; border-left: 3px solid var(--red); background: #171e1e; }
.life-tradition { display: grid; grid-template-columns: .6fr 1.4fr 1fr; gap: 40px; align-items: center; padding-block: 40px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.life-tradition .eyebrow { margin: 0; }
.life-tradition > p:not(.eyebrow) { font-size: 24px; line-height: 1.35; font-weight: 500; margin: 0; }
.life-tradition > span { font-size: 13px; color: var(--muted); }
.trial-scene { position: relative; isolation: isolate; min-height: max(780px, 94svh); overflow: hidden; background: #111517; }
.trial-scene > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.trial-copy { width: 47%; padding: 100px 24px 100px var(--gutter); }
.trial h2 { font-size: clamp(68px, 6.7vw, 116px); }
.trial h2 em { color: #fff; }
.trial-copy > p:not(.eyebrow) { font-size: 16px; max-width: 380px; margin-top: 30px; color: #e0e5e0; }
.trial-copy .button { margin-top: 36px; }
.preparation { border-top-width: 0; }
.halls { position: relative; padding-top: 0; }
.halls > .section-heading { position: absolute; z-index: 2; left: 0; right: 0; top: 72px; color: white; }
.halls .section-intro { font-size: 18px; }
.hall-scene { position: relative; height: max(650px, 80svh); isolation: isolate; }
.hall-scene::after { content: ''; position: absolute; inset: 0; background: rgb(7 13 14 / 42%); }
.hall-scene img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hall-scene figcaption { position: absolute; z-index: 1; left: var(--gutter); bottom: 30px; color: white; font-size: 11px; }
dialog { border-top: 5px solid var(--red); }

@media (max-width: 1180px) {
  .program { grid-template-columns: 220px 1fr 1fr; gap: 30px; }
  .program-visual img { width: 220px; height: 220px; }
  .program-mma .program-visual img { width: 200px; height: 200px; }
  .program-women .program-visual img { width: 250px; height: 250px; }
  .personal { grid-template-columns: 1fr 1.2fr; gap: 24px; }
  .personal .text-link { grid-column: 2; justify-self: start; }
  .school-principles { gap: 36px; }
  .coach-biography { padding-left: 32px; }
  .coach-selection { width: calc(52% - 32px); }
  .coach-profile, .coach-profile figure { min-height: 700px; height: 700px; }
  .coach-biography h3 { font-size: 6.7vw; }
  .coach-role { font-size: 14px; }
  .coach-tabs button { font-size: 11px; padding-inline: 14px; gap: 10px; }
  .life-heading { gap: 40px; }
  .life-tradition { gap: 24px; }
  .life-tradition > p:not(.eyebrow) { font-size: 21px; }
  .trial-copy { width: 51%; }
  .trial h2 { font-size: 7.4vw; }
}
@media (max-width: 800px) {
  .program { grid-template-columns: 200px 1fr; gap: 10px 32px; padding-block: 34px; }
  .program-visual { grid-column: 1; grid-row: span 2; height: 240px; }
  .program-heading { grid-column: 2; }
  .program-heading h3 { font-size: 38px; }
  .program-age { margin-top: 16px; }
  .program-copy { grid-column: 2; }
  .program-copy p { font-size: 14px; }
  .program-women .program-visual img { width: 232px; height: 232px; }
  .program-copy .text-link { margin-top: 10px; }
  .school-principles { grid-template-columns: 1fr 1fr; gap: 32px; }
  .school-principles article:last-child { grid-column: 1 / -1; max-width: 440px; }
  .coach-profile { grid-template-columns: 45% 55%; min-height: 740px; height: 740px; }
  .coach-profile figure { height: 660px; min-height: 0; padding-inline: 0; }
  .coach-profile figure img { object-fit: cover; object-position: 50% top; }
  .coach-biography { padding: 56px 0 300px 24px; }
  .coach-biography h3 { font-size: 54px; }
  .coach-selection { width: calc(55% - 24px); bottom: 30px; }
  .coach-tabs { gap: 8px; }
  .coach-tabs button { flex-basis: 100%; min-height: 42px; padding-block: 10px; }
  .life-heading { top: 48px; grid-template-columns: 1.2fr 1fr; gap: 32px; }
  .life-heading h2 { font-size: 50px; }
  .life-heading > p { font-size: 13px; margin-top: 36px; }
  .life-panorama { height: 820px; }
  .life-tradition { grid-template-columns: 1fr 1fr; }
  .life-tradition .eyebrow { grid-column: 1 / -1; }
  .trial-copy { width: 55%; padding-top: 72px; }
  .trial h2 { font-size: 7.8vw; }
  .trial-copy > p:not(.eyebrow) { font-size: 14px; }
  .trial-scene { min-height: 800px; }
  .trial-scene > img { object-position: 60% center; }
  .halls > .section-heading { top: 48px; }
  .hall-scene { height: 680px; min-height: 0; }
}
@media (max-width: 600px) {
  .button { padding-inline: 24px; min-height: 56px; gap: 24px; font-size: 13px; }
  .button svg { width: 38px; padding-left: 14px; }
  .program { grid-template-columns: 1fr; padding: 32px 0; gap: 24px; }
  .program-visual { grid-column: 1; grid-row: 1; height: 220px; justify-content: flex-start; padding-left: 24px; }
  .program-visual img { width: 244px; height: 244px; }
  .program-mma .program-visual img { width: 220px; height: 220px; }
  .program-women .program-visual img { width: 270px; height: 270px; }
  .program-heading { grid-column: 1; grid-row: 2; }
  .program-heading h3 { font-size: 41px; max-width: 360px; }
  .program-age { font-size: 12px; margin-top: 16px; }
  .program-copy { grid-column: 1; grid-row: 3; }
  .program-copy p { font-size: 14px; }
  .program-copy .text-link { margin-top: 14px; }
  .personal { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; }
  .personal h3 { font-size: 23px; }
  .personal .text-link { grid-column: 1; }
  .school-principles { grid-template-columns: 1fr; gap: 28px; padding-block: 36px 44px; }
  .school-principles h3 { font-size: 21px; margin-bottom: 12px; }
  .school-principles p { font-size: 14px; }
  .school-principles article + article { border-top: 1px solid #c6cdc2; padding-top: 26px; }
  .school-principles article:last-child { grid-column: 1; }
  .coaches { padding-bottom: 40px; }
  .coach-profile { display: flex; flex-direction: column; min-height: 0; height: auto; }
  .coach-profile figure { width: 100%; height: 460px; min-height: 0; padding: 20px 0 0; }
  .coach-profile figure img { object-fit: contain; object-position: bottom center; }
  .coach-profile figure::before { inset-block: 18% 0; width: 34%; left: 30%; }
  .coach-biography { padding: 30px 0; min-height: 270px; }
  .coach-biography h3 { font-size: 52px; }
  .coach-discipline { margin-bottom: 18px; }
  .coach-role { font-size: 14px; margin-top: 22px; }
  .coach-description { font-size: 13px; margin-top: 16px; }
  .coach-selection { position: static; width: 100%; }
  .coach-tabs button { flex-basis: 45%; font-size: 11px; min-height: 58px; padding: 12px 16px; flex-direction: column; align-items: start; gap: 5px; }
  .coach-tabs button:last-child { flex-basis: 100%; min-height: 44px; flex-direction: row; align-items: center; }
  .life-heading { position: relative; top: auto; grid-template-columns: 1fr; gap: 24px; padding-top: 48px; padding-bottom: 32px; }
  .life-heading h2 { font-size: clamp(43px, 11.6vw, 64px); }
  .life-heading > p { margin-top: 0; font-size: 14px; }
  .life-panorama { height: 560px; }
  .life-panorama img { object-position: 69% center; }
  .life-panorama::after { background: transparent; }
  .life-panorama figcaption { left: 22px; bottom: 20px; font-size: 10px; }
  .life-tradition { grid-template-columns: 1fr; gap: 20px; padding-block: 32px; }
  .life-tradition > p:not(.eyebrow) { font-size: 24px; }
  .trial-scene { min-height: 0; padding-top: 0; }
  .trial-scene > img { position: relative; height: 470px; width: 100%; object-position: 74% center; }
  .trial-copy { width: 100%; padding: 40px var(--gutter) 48px; }
  .trial h2 { font-size: clamp(54px, 14vw, 78px); }
  .trial-copy > p:not(.eyebrow) { max-width: 420px; margin-top: 24px; }
  .trial-copy .button { margin-top: 28px; }
  .halls > .section-heading { top: 40px; }
  .halls .section-intro { font-size: 15px; }
  .hall-scene { height: 640px; }
  .hall-scene img { object-position: 50% center; }
  .hall-scene figcaption { left: 22px; bottom: 24px; font-size: 10px; }
}
@media (max-width: 360px) {
  .programs h2 { font-size: 40px; }
  .program-visual { padding-left: 12px; }
  .program-women .program-visual img { width: 240px; height: 240px; }
  .program-heading h3 { font-size: 36px; }
  .coach-profile figure { height: 400px; }
  .coach-biography h3 { font-size: 46px; }
}
@media (min-width: 601px) and (max-width: 1180px) {
  .coach-profile figure img { object-fit: contain; }
}

@media (prefers-reduced-motion: reduce) {
  .button::before { transition: none; }
}







/* Opening: navigation, contact details and two horizontal disciplines. */
.header { position: absolute; inset: 0 0 auto; z-index: 10; display: grid; grid-template-columns: auto minmax(0, 1fr) 260px; align-items: center; gap: clamp(44px, 3.8vw, 72px); min-height: 116px; padding: 25px var(--gutter); color: white; }
.header .brand img { width: 182px; }
.header-links { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 1.6vw, 30px); }
.header-links a { padding-block: 14px; font-size: 13px; white-space: nowrap; }
.header-links a:hover { color: #c8ced0; }
.header-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.header-phone { display: flex; align-items: center; gap: 9px; font-size: 18px; line-height: 1.2; font-weight: 500; white-space: nowrap; padding: 3px 0; text-decoration: none; }
.header-phone img { width: 16px; height: 16px; flex-shrink: 0; }
.header-phone:hover { color: #e5e9eb; text-decoration: none; }
.header-location { display: flex; flex-direction: column; gap: 4px; font-size: 11px; line-height: 1.5; color: #d9dfe1; }
.location-item { display: flex; align-items: center; gap: 9px; }
.location-item img { flex: 0 0 16px; width: 16px; height: 16px; opacity: .72; }
.menu-toggle { display: none; align-items: center; justify-self: end; gap: 14px; min-height: 48px; padding: 0; border: 0; background: none; color: white; }
.menu-label { font-size: 13px; }
.menu-symbol { position: relative; isolation: isolate; width: 56px; height: 48px; display: grid; place-items: center; padding-right: 5px; }
.menu-symbol::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--red); clip-path: polygon(0 0,100% 0,calc(100% - 11px) 100%,0 100%); }
.menu-toggle:hover .menu-symbol::before { background: #b61e18; }
.menu-symbol img { width: 24px; height: 24px; }
.hero-mobile-contact { display: none; }
.nav-dialog { width: min(760px, 90vw); max-width: none; max-height: none; height: 100dvh; margin: 0 0 0 auto; padding: 40px clamp(28px, 5vw, 72px); color: white; background: #111416; border: 0; border-left: 1px solid #555b5d; }
.nav-dialog[open] { display: flex; flex-direction: column; animation: nav-enter 220ms ease-out; }
.nav-dialog::backdrop { background: rgb(0 0 0 / 58%); }
.nav-top { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.nav-top > span { color: #b7bdbf; font-size: 11px; }
.nav-close { position: static; display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border: 1px solid #60686a; }
.nav-close img { width: 24px; height: 24px; }
.nav-links { display: grid; align-content: center; flex: 1; margin-block: 42px; }
.nav-links a { display: grid; grid-template-columns: 26px 1fr 24px; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 1px solid #394044; font: italic 700 clamp(34px, 3.4vw, 54px)/1.05 Tall, Impact, sans-serif; text-transform: uppercase; }
.nav-links a:hover { color: #f66c65; }
.nav-index { align-self: center; color: #a3abad; font: 400 11px/1 Onest, Arial, sans-serif; }
.nav-links a svg { width: 24px; height: 24px; }
.nav-contact { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-top: 16px; }
.nav-contact p { font-size: 12px; }
.nav-contact span { font-size: 11px; color: #aeb8bb; }
.nav-contact > a { font-size: 20px; white-space: nowrap; }
.nav-dialog .nav-location { margin-top: 32px; font-size: 11px; color: #aeb8bb; }

.hero { position: relative; isolation: isolate; min-height: max(760px, min(100svh, 56.25vw)); color: white; background: #111416; overflow: hidden; }
.hero-image { position: absolute; inset: 0; z-index: -1; }
.hero-image > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-content { --hero-title-size: clamp(72px, 6vw, 112px); width: 49%; max-width: 880px; padding: calc(clamp(148px, 10.5vw, 190px) + 12px) 24px 52px var(--gutter); }
.hero-kicker { font-size: 11px; letter-spacing: .055em; text-transform: uppercase; margin-bottom: 18px; color: #c8ced0; }
.hero-heading { display: grid; grid-template-columns: calc(var(--hero-title-size) * 2.8) minmax(0, 1fr); column-gap: 30px; align-items: end; }
.hero h1 { grid-column: 1 / -1; grid-row: 1; font-size: var(--hero-title-size); line-height: .98; }
.hero h1 > span { display: block; white-space: nowrap; }
.hero-prefix { font-size: .61em; margin-bottom: 8px; }
.hero-last { margin-top: 8px; }
.hero-outline { color: transparent; -webkit-text-stroke: 1.2px #fff; }
.hero-audience { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: calc(var(--hero-title-size) * .18); font-size: clamp(18px, 1.3vw, 21px); line-height: 1.45; color: #d9dfe1; }
.hero-facts { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; max-width: 510px; margin-top: 52px; }
.hero-facts::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2px; height: 52px; background: var(--red); opacity: .85; transform: translate(-50%, -50%) skewX(-12deg); pointer-events: none; }
.hero-fact { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 6px; }
.hero-fact-icon { grid-column: 1; grid-row: 1 / 3; width: 52px; height: 52px; object-fit: contain; opacity: .46; filter: grayscale(1); }
.hero-fact-title { grid-column: 2; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.hero-fact-title strong { color: #f0443b; font: italic 700 34px/1 Tall, Impact, sans-serif; letter-spacing: .015em; }
.hero-fact-title > span { font-size: 13px; line-height: 1.4; }
.hero-fact-caption { grid-column: 2; font-size: 12px; line-height: 1.5; color: #d9dfe1; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 42px; }
.hero-actions .button { color: var(--ink); min-height: 58px; font-size: 13px; padding-left: 24px; gap: 20px; }
.hero-actions .button::before { background: white; }
.hero-actions .button::after { content: ''; position: absolute; z-index: -1; inset: 0 0 0 auto; width: 64px; background: var(--red); transform: skewX(-12deg); }
.hero-actions .button svg { color: white; border-color: transparent; }
.hero-actions .button:hover::before { background: #e7ebe4; }
.hero .text-link { font-size: 12px; gap: 12px; }
.hero .text-link:hover { color: #ff8b80; }
@keyframes nav-enter { from { transform: translateX(48px); } to { transform: translateX(0); } }
@media (min-width: 1700px) {
  .hero-content { width: 48%; padding-top: 192px; }
}
@media (min-width: 1281px) and (max-width: 1699px) {
  .header-links { justify-content: flex-start; }
}
@media (max-width: 1280px) {
  .header { grid-template-columns: 1fr auto 1fr; gap: 32px; }
  .header-links { display: none; }
  .menu-toggle { display: flex; }
  .hero-content { --hero-title-size: 5.8vw; width: 51%; padding-top: 158px; }
  .hero-audience { font-size: 18px; }
  .hero-facts { gap: 24px; max-width: 460px; }
}
@media (max-width: 1180px) {
  .header { grid-template-columns: 1fr auto; min-height: 96px; padding-block: 22px; }
  .header .brand img { width: 166px; }
  .header-contact { display: none; }
  .hero { min-height: 0; display: flex; flex-direction: column; }
  .hero-image { position: relative; inset: auto; z-index: 0; order: -1; height: clamp(460px, 68vw, 680px); }
  .hero-image > img { object-position: right top; }
  .hero-content { --hero-title-size: clamp(64px, 8vw, 94px); width: 100%; max-width: none; padding: 28px var(--gutter) 48px; }
  .hero-mobile-contact { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid rgb(255 255 255 / 18%); }
  .mobile-call { position: relative; isolation: isolate; flex-shrink: 0; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 11px 20px 11px 16px; color: #151719; font-size: 12px; }
  .mobile-call::before { content: ''; position: absolute; inset: 0; z-index: -1; background: white; clip-path: polygon(0 0,100% 0,calc(100% - 9px) 100%,0 100%); }
  .mobile-call:hover::before { background: #e5e5e5; }
  .mobile-call img { width: 18px; height: 18px; }
  .hero-mobile-contact .header-location { font-size: 12px; }
  .hero-audience { font-size: 20px; }
}
@media (max-width: 700px) {
  .header { min-height: 82px; padding-block: 18px; }
  .header .brand img { width: 156px; }
  .menu-symbol { width: 52px; height: 44px; }
  .hero-image { height: clamp(360px, 80vw, 530px); }
  .hero-content { --hero-title-size: clamp(48px, 11.2vw, 78px); padding-top: 24px; padding-bottom: 42px; }
  .hero-mobile-contact { padding-bottom: 24px; margin-bottom: 40px; }
  .hero-kicker { font-size: 10px; margin-bottom: 14px; }
  .hero-heading { column-gap: 24px; }
  .hero-audience { font-size: 16px; }
  .hero-facts { margin-top: 42px; gap: 24px; }
  .hero-facts::after { height: 44px; }
  .hero-fact { grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; }
  .hero-fact-icon { width: 40px; height: 40px; }
  .hero-actions { margin-top: 36px; }
  .nav-dialog { width: 100%; padding: 24px; }
  .nav-links { margin-block: 28px; }
  .nav-links a { font-size: 40px; padding-block: 20px; gap: 12px; }
  .nav-contact { align-items: start; flex-direction: column; gap: 14px; }
  .nav-contact > a { font-size: 23px; }
}
@media (max-width: 460px) {
  .header .brand img { width: 104px; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero-image > img { object-position: 92% top; }
  .hero-mobile-contact { gap: 12px; }
  .hero-mobile-contact .header-location { font-size: 11px; min-width: 0; }
  .mobile-call { font-size: 11px; padding-inline: 12px 17px; }
  .hero-heading { column-gap: 24px; }
  .hero-audience { font-size: 14px; margin-bottom: 7px; }
  .hero-facts { gap: 22px; margin-top: 40px; }
  .hero-facts::after { height: 40px; }
  .hero-fact { grid-template-columns: 32px minmax(0, 1fr); column-gap: 8px; row-gap: 8px; }
  .hero-fact-icon { grid-row: 1; width: 32px; height: 32px; }
  .hero-fact-title { gap: 6px; }
  .hero-fact-title strong { font-size: 28px; }
  .hero-fact-title > span { font-size: 11px; }
  .hero-fact-caption { grid-column: 1 / -1; font-size: 12px; }
  .hero-actions { margin-top: 34px; }
  .nav-contact > a { display: block; width: 100%; padding: 14px 18px; background: white; color: var(--ink); text-align: center; clip-path: polygon(0 0,100% 0,calc(100% - 10px) 100%,0 100%); }
  .nav-links a { grid-template-columns: 18px minmax(0, 1fr) 18px; gap: 10px; }
  .nav-links a svg { width: 18px; height: 18px; }
}
@media (max-width: 360px) {
  .header .brand img { width: 80px; }
  .hero-image { height: 330px; }
  .hero-content { --hero-title-size: 40px; }
  .hero-heading { column-gap: 22px; }
  .hero-audience { font-size: 13px; margin-bottom: 4px; }
  .hero-facts { gap: 16px; }
  .hero-facts::after { height: 32px; }
  .hero-fact-title { gap: 5px; }
  .hero-fact-title strong { font-size: 24px; }
  .hero-fact-title > span { font-size: 10px; }
  .hero-mobile-contact { gap: 9px; }
  .mobile-call { gap: 6px; padding-inline: 10px 15px; }
  .hero-mobile-contact .header-location { font-size: 10px; }
  .location-item { gap: 6px; }
  .nav-links a { font-size: 28px; }
  .nav-contact > a { font-size: 21px; }
}
@media (max-width: 460px) and (max-height: 760px) {
  .nav-dialog { padding-block: 20px; }
  .nav-links { margin-block: 20px; }
  .nav-links a { padding-block: 14px; }
  .nav-dialog .nav-location { margin-top: 20px; }
}
@media (min-width: 500px) and (max-height: 700px) {
  .nav-links { margin-block: 20px; }
  .nav-links a { padding-block: 12px; }
  .nav-contact { flex-direction: row; align-items: end; }
  .nav-dialog .nav-location { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-dialog[open] { animation: none; }
}
@media (forced-colors: active) {
  .hero-outline { color: CanvasText; -webkit-text-stroke: 0; }
}




/* life-gallery.css */
/* A single-screen photo wall. Full photographs retain their straightened frame. */
:is(#zhizn,#school-life).life-gallery {
  --life-gap: 10px;
  --life-tile: calc((100cqh - var(--life-gap)) / 2);
  height: 100svh;
  min-height: 640px;
  padding: var(--section-heading-inset, 72px) 0 24px;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  gap: 28px;
  background: #181a1b;
  color: #fff;
  overflow: clip;
}
:is(#zhizn,#school-life) .life-heading {
  position: relative;
  inset: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
}
:is(#zhizn,#school-life) .life-heading .eyebrow { margin: 0 0 14px; color: #bfc1c0; }
:is(#zhizn,#school-life) .life-heading h2 { font-size: clamp(54px, 5.2vw, 82px); line-height: .98; color: #fff; }
:is(#zhizn,#school-life) .life-heading .life-intro { margin: 0 0 3px; max-width: 30ch; font-size: 14px; line-height: 1.7; color: #c3c4c4; }
.life-wall { width: 100%; height: 100%; min-height: 0; container-type: size; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y pinch-zoom; cursor: grab; }
.life-wall::-webkit-scrollbar { display: none; }
.life-wall:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.life-wall.is-dragging { cursor: grabbing; }
.life-mosaic { display: grid; grid-template-rows: repeat(2,var(--life-tile)); grid-auto-columns: var(--life-tile); grid-auto-flow: column dense; gap: var(--life-gap); width: max-content; height: 100%; padding-inline: var(--gutter); }
.life-tile { display: block; position: relative; overflow: hidden; width: 100%; height: 100%; background: #313334; user-select: none; }
.life-tile:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.life-tile img, .life-grid-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 380ms ease, transform 650ms cubic-bezier(.2,.6,.3,1); }
.life-tile:hover img, .life-tile:focus-visible img, .life-tile:active img, .life-grid-photo:hover img, .life-grid-photo:focus-visible img { filter: grayscale(0); transform: scale(1.025); }
.life-tile:focus-visible, .life-grid-photo:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.life-photo-open { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--red); color: #fff; opacity: 0; transform: translateY(4px); transition: opacity 220ms, transform 220ms; }
.life-photo-open svg { width: 20px; transform: rotate(-45deg); }
.life-tile:hover .life-photo-open, .life-tile:focus-visible .life-photo-open { opacity: 1; transform: none; }
.life-toolbar { display: none; }
.life-viewer-controls { display: flex; align-items: center; gap: 8px; }
.life-viewer-controls button, .life-close { display: grid; place-items: center; border: 1px solid #777a7b; background: transparent; color: #fff; width: 44px; height: 44px; padding: 0; }
.life-viewer-controls button:hover, .life-close:hover { background: #353738; border-color: #fff; }
[data-life-image-prev] svg { transform: rotate(180deg); }
.life-hint { font-size: 12px; line-height: 1.5; color: #b6b9b8; }
.life-all { margin-left: auto; min-height: 48px; display: inline-flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; border-bottom: 1px solid #7e8281; padding: 6px 0; }
.life-all:hover { color: #ff8179; border-color: currentColor; }
.life-total { color: #b6b9b8; margin-left: 10px; font-size: 12px; font-weight: 400; }

html.life-dialog-open { overflow: hidden; }
.life-dialog { width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #141617; color: #fff; overflow: hidden; }
.life-dialog::backdrop { background: #141617; }
.life-dialog[open] { display: flex; flex-direction: column; }
.life-dialog-header { display: flex; flex: 0 0 auto; align-items: center; gap: 24px; min-height: 88px; padding: 16px clamp(20px,4vw,64px); border-bottom: 1px solid #3c3e3f; }
.life-dialog-header h2 { font-size: 32px; line-height: 1; }
.life-dialog-header .life-close { margin-left: auto; flex-shrink: 0; }
.life-grid-return { margin-left: auto; border: 0; background: transparent; color: #d4d5d5; min-height: 44px; padding: 8px 0; text-decoration: underline; text-underline-offset: 5px; font-size: 14px; }
.life-grid-return:not([hidden]) + .life-close { margin-left: 0; }
.life-gallery-scroll { overflow: auto; min-height: 0; padding: 28px clamp(20px,4vw,64px) 48px; }
.life-full-grid { columns: 4; column-gap: 12px; }
.life-grid-photo { display: block; position: relative; overflow: hidden; background: #303233; break-inside: avoid; margin-bottom: 12px; }
.life-grid-photo--panorama { column-span: all; }
.life-grid-photo img { filter: grayscale(0); height: auto; }
.life-viewer { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 20px clamp(20px,4vw,64px) max(20px,env(safe-area-inset-bottom)); }
.life-image-stage { min-height: 0; flex: 1; position: relative; display: grid; place-items: center; }
.life-full-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.life-full-image.is-loading { opacity: 0; }
.life-image-status { position: relative; align-self: center; text-align: center; font-size: 14px; color: #c3c5c4; padding: 24px; }
.life-image-retry { position: absolute; top: calc(50% + 28px); min-height: 44px; padding: 8px 16px; background: transparent; color: #fff; border: 1px solid #888; }
.life-viewer-footer { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; }
.life-caption { font-size: 14px; line-height: 1.5; color: #c6c8c7; }
.life-counter { min-width: 74px; text-align: center; font-variant-numeric: tabular-nums; font-size: 13px; }
.life-archive { background: #181a1b; color: #fff; padding: 32px var(--gutter) 64px; }
.life-archive-header { margin-bottom: 36px; }
.life-archive-header h1 { font-size: clamp(48px,8vw,100px); margin: 32px 0 16px; }
.life-archive-header .text-link svg { transform: rotate(180deg); }

@media (min-width: 701px) and (max-height: 760px) {
  :is(#zhizn,#school-life).life-gallery { gap: 20px; padding-bottom: 20px; }
  :is(#zhizn,#school-life) .life-heading h2 { font-size: clamp(50px,4.6vw,68px); }
}
@media (min-width: 701px) and (max-width: 1000px) {
  :is(#zhizn,#school-life) .life-heading { display: block; }
  :is(#zhizn,#school-life) .life-heading h2 { font-size: 58px; }
  :is(#zhizn,#school-life) .life-heading .life-intro { max-width: none; font-size: 13px; margin-top: 14px; }
  .life-desktop-break { display: none; }
}
@media (max-width: 700px) {
  :is(#zhizn,#school-life).life-gallery { --life-wall-height: clamp(250px,76vw,440px); --life-tile: var(--life-wall-height); --life-gap: 10px; display: flex; flex-direction: column; height: auto; gap: 20px; padding-top: 80px; padding-bottom: 32px; min-height: 100svh; }
  :is(#zhizn,#school-life) .life-heading { display: block; }
  :is(#zhizn,#school-life) .life-heading .eyebrow { margin-bottom: 16px; font-size: 10px; }
  :is(#zhizn,#school-life) .life-heading h2 { font-size: clamp(36px,9.5vw,64px); line-height: 1.02; }
  :is(#zhizn,#school-life) .life-heading .life-intro { margin-top: 18px; max-width: 30ch; font-size: 13px; line-height: 1.6; }
  .life-desktop-break { display: none; }
  .life-wall { height: var(--life-wall-height); }
  .life-mosaic { display: flex; }
  .life-tile { width: var(--life-tile); height: var(--life-tile); flex: 0 0 var(--life-tile); }
  .life-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding-right: var(--gutter); }
  .life-toolbar .life-hint { max-width: 150px; font-size: 11px; }
  .life-hint br { display: block; }
  .life-all { gap: 16px; font-size: 13px; margin-left: 0; }
  .life-total { margin-left: 4px; font-size: 11px; }
  .life-photo-open { display: none; }
  .life-dialog-header { padding: max(12px,env(safe-area-inset-top)) 16px 12px; min-height: 72px; gap: 16px; flex-wrap: wrap; }
  .life-dialog-header h2 { font-size: 26px; }
  .life-grid-return { order: 3; width: 100%; min-height: 30px; text-align: left; margin-top: -8px; font-size: 12px; }
  .life-dialog-header .life-grid-return:not([hidden]) + .life-close { margin-left: auto; }
  .life-gallery-scroll { padding: 16px 16px 32px; }
  .life-full-grid { columns: 2; column-gap: 8px; }
  .life-grid-photo { margin-bottom: 8px; }
  .life-viewer { padding: 12px 16px max(20px,env(safe-area-inset-bottom)); }
  .life-viewer-footer { flex-direction: column; gap: 12px; padding-top: 16px; }
  .life-caption { font-size: 12px; text-align: center; }
  .life-viewer-controls { width: 100%; justify-content: space-between; }
}
@media (max-width: 370px) {
  :is(#zhizn,#school-life).life-gallery { gap: 20px; --life-wall-height: 250px; }
  :is(#zhizn,#school-life) .life-heading h2 { font-size: 36px; }
  .life-toolbar { column-gap: 8px; }
  .life-all { gap: 8px; }
  .life-total { display: none; }
}
@media (max-width: 700px) and (max-height: 700px) {
  :is(#zhizn,#school-life) .life-heading .life-intro { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .life-tile img, .life-grid-photo img, .life-photo-open { transition: none; }
  .life-tile:hover img, .life-tile:focus-visible img, .life-grid-photo:hover img { transform: none; }
}
