@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #00447c;
  --navy-deep: #003159;
  --char: #24292d;
  --ink: #313539;
  --red: #ee3124;
  --red-btn: #c8231a;
  --red-btn-hover: #a91c14;
  --paper: #ffffff;
  --mist: #f3f6f9;
  --line: #d9e0e7;
  --rail-w: 290px;
  --bar-h: 64px;
  --radius: 10px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { color: var(--char); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--char); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 24px;
  font: inherit; font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 52px; padding: 13px 30px; font-size: 1rem; }
.btn-red { background: var(--red-btn); color: #fff; }
.btn-red:hover { background: var(--red-btn-hover); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Rail (top bar on mobile, left rail on desktop) ---------- */
.rail {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.rail-bar { display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); padding: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--char); min-width: 0; min-height: 48px; }
.brand-mark { width: 44px; height: auto; flex: none; }
.brand-word { font-weight: 800; font-size: 1.02rem; line-height: 1.1; color: var(--navy); }
.brand-word span { color: var(--char); }

.burger {
  width: 46px; height: 46px; border: 0; background: transparent; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.burger span { display: block; width: 24px; height: 3px; background: var(--char); border-radius: 2px; transition: transform .2s, opacity .2s; }
.rail.open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.rail.open .burger span:nth-child(2) { opacity: 0; }
.rail.open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.rail-panel { padding: 8px 16px 20px; border-top: 1px solid var(--line); background: #fff; }
.js .rail-panel { display: none; }
.js .rail.open .rail-panel { display: block; position: absolute; left: 0; right: 0; top: var(--bar-h); box-shadow: 0 18px 30px rgba(0,0,0,.14); }
.rail-logo { display: none; }

.menu a {
  display: flex; align-items: center; min-height: 52px; padding: 0 4px;
  font-weight: 600; font-size: 1.05rem; color: var(--char); text-decoration: none; border-bottom: 1px solid var(--line);
}
.menu a:hover { color: var(--navy); }
.menu a[aria-current="page"] { color: var(--navy); box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; }
.rail-apply { width: 100%; margin-top: 18px; }

.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--navy); color: #fff; transition: background-color .15s;
}
.social a:hover { background: var(--red-btn); color: #fff; }

.rail-shade { position: fixed; inset: var(--bar-h) 0 0 0; background: rgba(20,24,28,.45); z-index: 40; }
.rail-shade[hidden] { display: none; }

/* ---------- Page bands ---------- */
.band { background: var(--navy); color: #fff; }
.band-in { max-width: 1100px; margin: 0 auto; padding: 36px 20px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.eyebrow { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: #cfe3f5; margin: 0 0 8px; font-weight: 700; }
.band .tagline { font-size: 1.55rem; line-height: 1.25; font-weight: 700; margin: 0; max-width: 24ch; }
.band .btn-red { background: var(--red-btn); }

/* ---------- Home ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.hero-in { max-width: 1100px; margin: 0 auto; padding: 48px 20px 52px; display: grid; gap: 28px; align-items: center; }
.hero h1 { color: #fff; font-size: 2rem; line-height: 1.15; font-weight: 800; margin-bottom: .5em; }
.lede { font-size: 1.12rem; color: #e3effa; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-mark { display: none; }
.hero-mark img { width: 100%; max-width: 340px; margin-left: auto; filter: drop-shadow(0 12px 28px rgba(0,0,0,.28)); background: #fff; border-radius: 28px; padding: 22px; }

.intro { background: var(--mist); }
.intro-in { max-width: 820px; margin: 0 auto; padding: 44px 20px; font-size: 1.1rem; }
.intro-in p { margin: 0; }

.paths { padding: 40px 20px 8px; }
.paths-in { max-width: 1100px; margin: 0 auto; display: grid; gap: 18px; }
.path { border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 24px 22px; background: #fff; }
.path h2 { font-size: 1.25rem; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; min-height: 44px; }
.more:hover { text-decoration: underline; }

.touch { padding: 44px 20px 56px; }
.touch-in { max-width: 1100px; margin: 0 auto; }
.touch-h { text-align: center; font-size: 1.6rem; margin-bottom: 1em; }
.boxes { display: grid; gap: 16px; }
.box { background: var(--char); color: #fff; border-radius: var(--radius); padding: 28px 22px; text-align: center; }
.box h2 { color: #fff; font-size: 1.1rem; margin: 12px 0 8px; }
.box p { margin: 0; overflow-wrap: anywhere; }
.box a { color: #fff; text-decoration: none; display: inline-block; min-height: 24px; }
.box a:hover { text-decoration: underline; color: #fff; }
.box-ic { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; background: var(--red-btn); color: #fff; }
.director { text-align: center; margin: 28px 0 0; font-weight: 600; color: var(--char); }

/* ---------- About ---------- */
.split { display: grid; }
.split-text { padding: 36px 20px; max-width: 760px; margin: 0 auto; width: 100%; }
.split-text p:last-child { margin-bottom: 0; }
.split-pic { display: flex; align-items: center; justify-content: center; padding: 36px 20px; }
.pic-mark { background: var(--mist); }
.pic-mark img { width: 180px; }
.pic-years { background: var(--navy); color: #fff; }
.years { display: grid; gap: 18px; width: 100%; max-width: 360px; }
.years li { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; }
.years b { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1; }
.years span { color: #d6e8f7; font-weight: 500; line-height: 1.35; }

/* ---------- Doc pages ---------- */
.doc { padding: 40px 20px 56px; }
.doc-in { max-width: 860px; margin: 0 auto; }
.doc-lede { font-size: 1.15rem; color: var(--char); }
.facts { display: grid; gap: 16px; margin-top: 28px; }
.fact { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 20px 22px; }
.fact h2 { font-size: 1.15rem; margin-bottom: .4em; }
.fact p { margin: 0; }
.cta { margin-top: 36px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px 22px; display: grid; gap: 16px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .2em; font-size: 1.3rem; }
.cta p { margin: 0; color: #d6e8f7; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 56px; padding: 12px 18px; font-weight: 700; color: var(--char);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--red-btn); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: 16px 18px 18px; }

.apply-card { display: grid; gap: 16px; align-items: center; border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 24px 22px; background: var(--mist); }
.apply-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.apply-txt h2 { margin: 0 0 .2em; font-size: 1.25rem; }
.apply-txt p { margin: 0; }
.sub { font-size: 1.2rem; margin: 36px 0 .7em; }
.check li { position: relative; padding: 6px 0 6px 30px; }
.check li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }

.doc-contact .doc-in { text-align: center; }
.contact-h { font-size: 1.7rem; }
.contact-sub { max-width: 40ch; margin: 0 auto 1.2em; }
.touch-solo { padding-top: 0; }

/* ---------- Footer ---------- */
.foot { background: var(--char); color: #cfd5db; padding: 26px 20px 30px; text-align: center; font-size: .9rem; }
.foot p { margin: 0; }
.social-foot { justify-content: center; }
.social-foot a { background: #3a4147; }

/* ---------- Tablet ---------- */
@media (min-width: 720px) {
  .band-in { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 32px; }
  .band .tagline { font-size: 1.9rem; max-width: 26ch; }
  .hero h1 { font-size: 2.6rem; }
  .hero-in { padding: 72px 32px; }
  .paths-in, .boxes { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr auto; padding: 30px 32px; }
  .apply-card { grid-template-columns: auto 1fr auto; padding: 26px 28px; }
  .split { grid-template-columns: 1fr 1fr; min-height: 340px; }
  .split-flip .split-text { order: 0; }
  .split-text { padding: 56px 40px; margin: 0; }
  .split-pic { padding: 40px; }
  .pic-mark img { width: 240px; }
}

/* ---------- Desktop: left rail ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  .rail {
    position: fixed; inset: 0 auto 0 0; width: var(--rail-w); height: 100vh; overflow-y: auto;
    border-bottom: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column;
  }
  .rail-bar { display: none; }
  .js .rail-panel, .js .rail.open .rail-panel { display: flex; position: static; box-shadow: none; }
  .rail-panel { flex-direction: column; flex: 1; padding: 36px 26px 28px; border-top: 0; }
  .rail-logo { display: block; margin: 0 auto 26px; width: 200px; }
  .rail-logo img { width: 200px; height: auto; }
  .menu a { min-height: 48px; font-size: 1rem; }
  .rail-apply { margin-top: 24px; }
  .social { margin-top: auto; padding-top: 24px; }
  .rail-shade { display: none !important; }
  .band-in, .hero-in, .paths-in, .touch-in { padding-left: 48px; padding-right: 48px; max-width: 1180px; }
  .paths { padding-left: 0; padding-right: 0; }
  .touch { padding-left: 0; padding-right: 0; }
  .hero-in { grid-template-columns: 1.3fr 1fr; padding-top: 96px; padding-bottom: 96px; }
  .hero-mark { display: block; }
  .hero h1 { font-size: 3rem; }
  .intro-in { padding: 64px 32px; font-size: 1.2rem; }
  .split-text { padding: 72px 56px; }
  .doc { padding-left: 32px; padding-right: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
