:root {
  color-scheme: dark;
  --bg: #080f1d;
  --panel: #0e192b;
  --text: #f0f4fb;
  --muted: #b7c5d8;
  --blue: #96c7ff;
  --line: #253952;
  --gutter: clamp(16px, 4.3vw, 54px);
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-family: "Segoe UI", system-ui, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
img { display: block; max-width: 100%; }
.wrap { width: min(calc(100% - var(--gutter) * 2), 1200px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 8px; left: 8px; padding: 12px; background: white; color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
header { background: #0a1424; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header-inner { min-height: 84px; }
.logo { display: block; width: 123px; flex-shrink: 0; }
.logo img { width: 100%; height: auto; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 32px; }
nav a, .footer-links a { color: var(--muted); font-size: .94rem; font-weight: 600; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav a:hover, nav a[aria-current], .footer-links a:hover { color: var(--text); }
nav a[aria-current] { text-decoration: underline; text-underline-offset: .45em; }
nav a.nav-contact { padding: 10px 17px; border: 1px solid #4e6c91; border-radius: 8px; color: var(--text); }
nav a.nav-contact:hover { border-color: var(--blue); background: #182c46; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #091425; }
.hero-home {
  min-height: 540px;
  display: grid;
  align-items: center;
  background: radial-gradient(ellipse at 81% 45%, #153151 0%, #0d1e33 37%, transparent 70%),
    #080f1d;
}
.hero-inner { padding-block: clamp(56px, 6vw, 94px); }
.hero-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); align-items: center; gap: clamp(30px,5vw,72px); }
.kicker { display: block; color: var(--blue); margin: 0 0 18px; font: 600 .875rem/1.5 var(--mono); letter-spacing: .085em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.055em; }
h1 { font-size: clamp(2.85rem,5.05vw,4.75rem); line-height: 1.03; margin-bottom: 24px; max-width: 850px; text-wrap: balance; }
.accent { color: var(--blue); }
.hero p.lead { color: #c4d2e6; max-width: 540px; font-size: clamp(1.04rem,1.5vw,1.18rem); line-height: 1.6; margin-bottom: 27px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 11px 20px; border: 1px solid #6484ad; border-radius: 8px; font-weight: 650; font-size: .96rem; text-align: center; }
.button:hover { background: #233c57; border-color: #a8c9ff; }
.primary { color: #0b192a; background: #a8c9ff; border-color: #a8c9ff; }
.primary:hover { background: #d2e3ff; border-color: #d2e3ff; }
.qualification { color: #c1cede; font-size: .875rem; margin: 15px 0 0; }
.hero-glass {
  margin: 0;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid #426389;
  box-shadow: 0 18px 48px #03091299;
  background: #0a1829;
}
.hero-glass img {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  object-position: 49% center;
}
.math-hero img { aspect-ratio: 62 / 45; object-fit: contain; }
.math-hero figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 15px 19px;
  border-top: 1px solid #2b4565;
  background: #0f1d31;
  color: #d7e4f5;
  font-size: .875rem;
}
.math-equation { color: #a9d1ff; font-family: var(--mono); overflow-wrap: anywhere; }
.section { padding-block: clamp(52px, 6.2vw, 88px); border-top: 1px solid var(--line); }
.section.tinted { background: var(--panel); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,8vw,115px); align-items: start; }
h2 { margin-bottom: 19px; font-size: clamp(2rem,3.7vw,3.55rem); line-height: 1.09; text-wrap: balance; }
h3 { margin-bottom: 10px; font-size: 1.15rem; line-height: 1.3; }
.copy p, .intro, .card p, .list p, .notice p { color: var(--muted); line-height: 1.65; font-size: 1rem; }
.copy p:last-child, .card p:last-child, .notice p:last-child { margin-bottom: 0; }
.intro { max-width: 680px; margin-bottom: 26px; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.card { padding: clamp(21px,2.4vw,32px); border: 1px solid #2d4564; background: linear-gradient(145deg,#14243c,#0c182b); border-radius: 12px; }
.card h3 { color: #d8e8fc; font-size: 1.2rem; }
.list { padding: 0; margin: 0; list-style: none; }
.list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.list li:first-child { border-top: 1px solid var(--line); }
.list strong { display: block; margin-bottom: 3px; }
.list p { margin-bottom: 0; }
.section-link { display: inline-block; margin-top: 20px; color: var(--blue); text-decoration: underline; text-underline-offset: .25em; font-weight: 600; }
.notice { padding-block: 32px; border-block: 1px solid var(--line); background: #0c1828; }
.notice h2 { font: inherit; margin-bottom: 9px; }
.notice p { font-size: .875rem; max-width: 1060px; margin-bottom: 7px; }
footer { background: #0c1726; padding-block: 23px; }
.footer-inner .logo { width: 88px; }
.footer-inner small { color: var(--muted); font-size: .875rem; }
.footer-links { display: flex; gap: 16px; }
.hero-secondary {
  background: radial-gradient(ellipse at 88% 65%, #173352 0%, transparent 67%), #0a1525;
}
.hero-secondary h1 { font-size: clamp(2.8rem,5.6vw,4.9rem); }
.hero-secondary .hero-inner { padding-block: 72px; }
.contact-panel { max-width: 760px; padding: clamp(22px, 4vw, 44px); background: var(--panel); border: 1px solid #2d4564; border-radius: 15px; }
.leadership { display: grid; grid-template-columns: minmax(220px, 345px) minmax(0, 1fr); align-items: start; gap: clamp(26px, 6vw, 80px); }
.leader-portrait { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.leader-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.leader-role { margin-top: -7px; color: var(--blue) !important; font-weight: 600; }
.leadership h3 { margin-top: 24px; }
.inquiry-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.inquiry-form label { display: block; margin-bottom: 5px; color: var(--text); font-weight: 600; }
.inquiry-form input, .inquiry-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #5b789d;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.inquiry-form textarea { resize: vertical; }
.inquiry-form .optional { color: var(--muted); font-size: .875rem; font-weight: 400; }
.inquiry-form .button { justify-self: start; cursor: pointer; }
.inquiry-form :is(input, textarea, button):focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 850px) {
  .hero-home { min-height: 0; }
  .hero-layout { grid-template-columns: 1fr; gap: 33px; }
  .hero-copy { max-width: 620px; }
  .hero-glass { width: min(100%, 560px); }
  .hero-glass img { aspect-ratio: 3 / 2; }
  .math-hero img { aspect-ratio: 62 / 45; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 620px) {
  .header-inner { min-height: 74px; gap: 10px; }
  .logo { width: clamp(66px, 19vw, 84px); }
  nav { gap: 2px 9px; justify-content: flex-end; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  nav a { font-size: .875rem; }
  nav a.nav-contact { padding-inline: 9px; }
  .hero-inner, .hero-secondary .hero-inner { padding-block: 48px 52px; }
  h1, .hero-secondary h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); }
  .split { grid-template-columns: 1fr; gap: 0; }
  .split > :first-child { margin-bottom: 12px; }
  .footer-inner { flex-wrap: wrap; gap: 8px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .leadership { grid-template-columns: 1fr; }
  .leader-portrait { width: min(100%, 320px); }
}
@media (max-width: 360px) {
  .header-inner { display: grid; grid-template-columns: 1fr; gap: 0; padding-block: 4px 8px; }
  nav { justify-content: space-between; }
  .actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
