:root {
  --bg: #0d0d0f;
  --bg-2: #131316;
  --card: #1a1a1e;
  --card-2: #212126;
  --line: #2c2c33;
  --text: #efede8;
  --muted: #a9a69e;
  --red: #d01f26;
  --red-hover: #e8333a;
  --red-deep: #8f0f14;
  --brass: #d1aa55;
  --brass-soft: #e6cb8b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); text-transform: uppercase; }
h3 { font-size: 1.7rem; text-transform: uppercase; }
h4 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--red); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
  padding: 15px 26px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: #ffffff38; }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-soft); }
.btn-sm { padding: 10px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .85rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--brass);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brass); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(13, 13, 15, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(13, 13, 15, .94); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); transition: opacity .25s; }
.brand img { height: 56px; width: auto; }
.brand-name { font: 800 1.3rem/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.site-header.at-hero .brand { opacity: 0; pointer-events: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-weight: 500; color: #d6d3cc; padding: 8px 12px; border-radius: 8px; font-size: 1rem; }
.nav a:hover { color: #fff; background: #ffffff10; }
.nav .nav-phone { color: var(--brass-soft); font-weight: 600; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
  .header-cta { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
    width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 0 auto; transition: transform .2s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.1rem; }
  .nav a:last-child { border-bottom: 0; }
  .brand img { height: 46px; }
  .brand-name { font-size: 1.15rem; }
}

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 48px) 0 56px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(13,13,15,.96) 0%, rgba(13,13,15,.82) 42%, rgba(13,13,15,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-content { position: relative; z-index: 1; display: grid; gap: 24px; }
.hero-logo { width: clamp(190px, 46vw, 260px); height: auto; }
@media (min-width: 900px) {
  .hero-content { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 56px; }
  .hero-logo { order: 2; width: clamp(320px, 34vw, 440px); }
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); text-transform: uppercase; max-width: 22ch; }
.hero h1 em { font-style: normal; color: var(--red); white-space: nowrap; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #d2cfc8; max-width: 560px; margin: 22px 0 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .98rem; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.hero-facts strong { color: var(--text); }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid #1f1f24; }
.section-head { margin-bottom: 40px; max-width: 760px; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* Class cards */
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1140px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: #3d3d45; }
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #222; }
.card-body { display: flex; flex-direction: column; padding: 16px 16px 18px; flex: 1; }
.card-body p:not(.meta) { color: var(--muted); font-size: .98rem; flex: 1; }
.card h4 { font-size: 1.4rem; min-height: 2.04em; }
@media (max-width: 520px) { .card h4 { min-height: 0; } }
.meta { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 12px; color: var(--muted); font-size: .95rem; }
.meta span:first-child { border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; }
.price { font: 800 1.8rem/1 var(--display); color: var(--brass-soft); }
.card-featured { border-color: #6b5627; box-shadow: 0 0 0 1px #6b562755, var(--shadow); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--brass); color: #1b1505;
  font: 700 .78rem/1 var(--body); text-transform: uppercase; letter-spacing: .12em; padding: 7px 10px; border-radius: 6px;
}

/* Steps */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { display: flex; gap: 16px; padding: 22px; border: 1px dashed #3a3a42; border-radius: var(--radius); }
.steps p { color: var(--muted); margin: 6px 0 0; font-size: .98rem; }
.step-n {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.3rem/1 var(--display); color: #1b1505; background: radial-gradient(circle at 35% 30%, var(--brass-soft), var(--brass) 60%, #8d6b25);
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Reviews */
.pullquote { margin: 0 0 40px; padding: 0 0 0 26px; border-left: 4px solid var(--red); max-width: 900px; }
.pullquote blockquote { margin: 0; font: 600 clamp(1.5rem, 3.2vw, 2.3rem)/1.15 var(--display); }
.pullquote figcaption { color: var(--brass); margin-top: 12px; font-weight: 500; }
.reviews { columns: 3 300px; column-gap: 18px; }
.review {
  break-inside: avoid; margin: 0 0 18px; padding: 22px 22px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); position: relative;
}
.review::before { content: "“"; position: absolute; top: 4px; right: 16px; font: 800 4.2rem/1 var(--display); color: #ffffff12; }
.review blockquote { margin: 0; color: #d9d6cf; font-size: .98rem; }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: 14px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.review figcaption::before { content: ""; width: 18px; height: 2px; background: var(--red); }
.review.clamped blockquote p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.more { background: none; border: 0; color: var(--brass-soft); font: 600 .95rem var(--body); padding: 6px 0 0; cursor: pointer; }
.students { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 0 8px; margin: 22px 0 28px; scrollbar-width: thin; scrollbar-color: #3a3a42 transparent; }
.students img { height: 260px; width: auto; flex: none; border-radius: 12px; scroll-snap-align: start; object-fit: cover; }
@media (max-width: 560px) { .students img { height: 200px; } }

/* Gallery */
.gallery { columns: 4 240px; column-gap: 12px; }
.gallery a { display: block; margin-bottom: 12px; border-radius: 12px; overflow: hidden; break-inside: avoid; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .35s, filter .35s; filter: saturate(.92); }
.gallery a:hover img { transform: scale(1.035); filter: saturate(1.05); }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 8px; } .gallery a { margin-bottom: 8px; border-radius: 8px; } }

/* Legal */
.legal { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.legal-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.legal-media img { border-radius: 12px; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.legal-media .legal-main { grid-column: 1 / -1; aspect-ratio: 16 / 11; object-position: 50% 30%; }
.legal-body p { color: #d2cfc8; }
.tagline { color: var(--brass-soft) !important; font-weight: 600; margin: 12px 0 18px; }
.note { background: #ffffff08; border-left: 3px solid var(--brass); padding: 12px 16px; border-radius: 0 8px 8px 0; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal-body .btn { white-space: normal; } }

/* Resources */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips a { text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-weight: 500; color: #d6d3cc; }
.chips a:hover { border-color: var(--brass); color: var(--brass-soft); }
.res-block { margin-bottom: 48px; }
.res-head { margin-bottom: 18px; }
.res-head h3 { margin-bottom: 6px; }
.res-head p { color: var(--muted); margin: 0; }
.targets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 860px) { .targets { grid-template-columns: repeat(2, 1fr); } }
.target { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; transition: border-color .15s, transform .15s; }
.target:hover { border-color: var(--brass); transform: translateY(-2px); }
.target img { border-radius: 6px; width: 100%; aspect-ratio: 402 / 520; object-fit: cover; background: #c8c8c8; }
.target span { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-weight: 600; font-size: .95rem; }
.target span::after { content: "PDF ↓"; font-size: .75rem; color: var(--brass); letter-spacing: .06em; }
.res-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.res-grid .res-block { margin-bottom: 0; }
.docs { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 10px; }
.docs a { display: flex; gap: 16px; align-items: center; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color .15s; }
.docs a:hover { border-color: var(--brass); }
.docs strong { display: block; font-size: 1.05rem; }
.docs small { color: var(--muted); font-size: .92rem; }
.doc-ico { flex: none; width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; background: #2a1012; color: #ff8a8e; font: 700 .8rem/1 var(--display); letter-spacing: .06em; border: 1px solid #4a1a1d; }
.nra-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.nra-poster img { border-radius: 8px; }
.nra-seal { width: 70%; max-width: 200px; margin: 0 auto 20px; }
.nra-card .btn { white-space: normal; text-align: center; line-height: 1.15; }
@media (max-width: 860px) { .res-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .nra-card { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .targets { gap: 8px; } .target { padding: 6px; } .target span { font-size: .85rem; } .target span::after { display: none; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-line { display: flex; flex-direction: column; text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; }
.contact-line strong { font: 700 1.7rem/1.2 var(--display); }
a.contact-line:hover strong { color: var(--brass-soft); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: #cfccc4; }
.opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--text); background: #0f0f12;
  border: 1px solid #34343c; border-radius: 10px; padding: 12px 14px; transition: border-color .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brass); }
.form [aria-invalid="true"] { border-color: var(--red); }
.form textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
#contact-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); }
.form-error { color: #ff8a8e; margin: 0; font-size: .95rem; }
.send-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.send-actions .btn { flex: 1 1 200px; }
.form-ok { background: #13261a; border: 1px solid #24502f; color: #b6f0c4; padding: 14px 16px; border-radius: 10px; margin: 0; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; }
.stepper button { background: #222228; color: var(--text); border: 1px solid #34343c; font-size: 1.3rem; cursor: pointer; }
.stepper button:first-child { border-radius: 10px 0 0 10px; }
.stepper button:last-child { border-radius: 0 10px 10px 0; }
.stepper input { border-radius: 0 !important; text-align: center; border-inline: 0 !important; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pills { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills legend { font-size: .9rem; font-weight: 600; color: #cfccc4; margin-bottom: 6px; padding: 0; }
.pills label { display: block; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: 9px 14px; border: 1px solid #34343c; border-radius: 99px; cursor: pointer; font-weight: 500; }
.pills input:checked + span { background: var(--brass); color: #1b1505; border-color: var(--brass); }
.pills input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; background: #0f0f12; border: 1px dashed #3a3a42; border-radius: 10px; }
.summary span { color: var(--muted); font-size: .95rem; }
.summary strong { font: 800 1.7rem/1 var(--display); color: var(--brass-soft); }
.fine { color: var(--muted); font-size: .85rem; margin: 0; text-align: center; }

/* Modal */
.modal {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line);
  border-radius: 18px; background: var(--card); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.modal::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(3px); }
.modal .form { padding: 26px clamp(18px, 4vw, 30px) 22px; position: relative; }
.modal h2 { font-size: 2.2rem; margin: -6px 0 6px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #ffffff08; color: var(--text); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal-close:hover { background: #ffffff18; }
body.modal-open { overflow: hidden; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5,5,6,.95); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 100px); width: auto; height: auto; border-radius: 8px; }
.lb-btn { position: fixed; background: #ffffff14; border: 1px solid #ffffff2a; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: #ffffff2a; }
.lb-close { top: 16px; right: 16px; font-size: 1.7rem; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 560px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); } }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-inner > div { flex: 1; min-width: 220px; }
.footer p { margin: 0 0 4px; font-size: .95rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--brass-soft); }
.footer-mark { width: 120px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.lightbox.single .lb-prev, .lightbox.single .lb-next { display: none; }

/* Gallery: the first 16 photos, the rest behind "Show all photos" */
.gallery:not(.open) a:nth-child(n+17) { display: none; }
.gallery-more { text-align: center; margin: 22px 0 0; }
.gallery.open + .gallery-more { display: none; }
