:root {
  color-scheme: light;
  --navy: #123a58;
  --deep: #0d2e48;
  --blue: #1f628d;
  --gold: #e4ad57;
  --ink: #1c2b38;
  --muted: #5f6d78;
  --line: #dce4e9;
  --paper: #f6f8f8;
}
@font-face { font-family: "Portal Icons"; src: url("fontawesome-webfont.woff2") format("woff2"); font-style: normal; font-weight: normal; font-display: block; }
.fa-icon { font-family: "Portal Icons"; font-weight: normal; font-style: normal; line-height: 1; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #dc853a; outline-offset: 3px; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 10; padding: 11px 16px; background: #fff; color: var(--deep); }
.skip-link:focus { top: 12px; }

.site-header { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .content-inner, .footer-inner { width: min(100% - 56px, 1160px); margin-inline: auto; }
.header-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.identity { min-width: 0; display: flex; align-items: center; gap: 15px; }
.seal { position: relative; width: 55px; height: 55px; flex: 0 0 55px; display: grid; place-items: center; }
.seal img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; object-fit: contain; }
.seal img.is-missing { display: none; }
.seal-fallback { position: absolute; inset: 3px; display: grid; place-items: center; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 13px; font-weight: 800; }
.identity-text { min-width: 0; display: grid; gap: 2px; }
.identity-text strong { color: var(--deep); font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.identity-text span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.official-link { flex: 0 0 auto; padding: 9px 0; color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; }
.official-link:hover { border-color: currentColor; }

.welcome-banner { min-height: 440px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--deep); color: #fff; }
.welcome-inner { position: relative; width: min(100% - 56px, 552px); min-height: 440px; justify-self: end; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 48px 48px 60px 0; isolation: isolate; }
.welcome-inner::before { content: ''; position: absolute; inset: 0 22px 0 -70vw; z-index: -1; opacity: .28; background: repeating-linear-gradient(0deg, transparent 0 66px, rgba(255,255,255,.06) 66px 67px), repeating-linear-gradient(90deg, transparent 0 66px, rgba(255,255,255,.06) 66px 67px); pointer-events: none; }
.banner-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #f0c987; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.kicker-line { width: 27px; height: 2px; background: var(--gold); }
.welcome-inner h1 { max-width: 540px; margin: 0; color: #fff; font-size: clamp(40px, 4.25vw, 62px); font-weight: 700; letter-spacing: -.052em; line-height: 1.07; }
.title-period { color: var(--gold); }
.welcome-inner > p:not(.banner-kicker) { max-width: 370px; margin: 19px 0 0; color: #e2ebf0; font-size: 16px; line-height: 1.6; }
.banner-jump { min-height: 47px; display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; margin-top: 30px; padding: 0 16px 0 18px; background: var(--gold); color: #132d3c; font-size: 13px; font-weight: 800; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.banner-jump:hover { background: #f6c77c; transform: translateY(-2px); }
.hero-index { position: absolute; bottom: 23px; left: 0; color: #a8bfcb; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.hero-index span { color: var(--gold); padding-inline: 6px; }
.carousel-pane { position: relative; min-width: 0; min-height: 440px; overflow: hidden; background: #355c72; }
.carousel-slides, .welcome-photo { position: absolute; inset: 0; width: 100%; height: 100%; }
.welcome-photo { object-fit: cover; object-position: center 44%; opacity: 0; transition: opacity .8s ease; }
.welcome-photo.is-active { opacity: 1; }
.welcome-photo.is-missing { display: none; }
.carousel-pane::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(8,29,44,.58)); pointer-events: none; }
.carousel-bar { position: absolute; z-index: 1; right: 22px; bottom: 16px; left: 24px; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.photo-caption { color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px #173348; }
.carousel-controls, .carousel-dots { display: flex; align-items: center; gap: 3px; }
.carousel-dots { margin-right: 9px; }
.carousel-dot, .carousel-control { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: rgba(10,38,56,.38); color: #fff; cursor: pointer; }
.carousel-dot { width: 24px; background: transparent; }
.carousel-dot::after { content: ''; width: 15px; height: 3px; background: rgba(255,255,255,.6); transition: width .25s ease, background .25s ease; }
.carousel-dot.is-active::after { width: 23px; background: var(--gold); }
.carousel-control:hover { background: rgba(10,38,56,.75); }
.carousel-control[hidden] { display: none; }
.carousel-dot:disabled { opacity: .3; cursor: not-allowed; }

.main-content { position: relative; flex: 1; padding: 62px 0 72px; }
.content-inner { position: relative; }
.page-heading { margin-bottom: 27px; }
.eyebrow { margin: 0 0 11px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.page-heading h2 { margin: 0; color: var(--deep); font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -.04em; line-height: 1.18; }
.page-heading > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.systems-list { display: grid; gap: 10px; }
.system-row { min-width: 0; min-height: 166px; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 25px 31px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); box-shadow: 0 3px 12px rgba(19,52,70,.035); transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.system-row--learning { border-left-color: #b57b31; }
.system-row:hover { transform: translateY(-2px); border-top-color: #c7d4dc; border-right-color: #c7d4dc; border-bottom-color: #c7d4dc; box-shadow: 0 12px 26px rgba(19,52,70,.08); }
.system-top { display: grid; justify-items: center; align-content: center; gap: 15px; align-self: stretch; border-right: 1px solid var(--line); }
.system-number { color: #8797a2; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.system-icon { color: var(--blue); font-size: 23px; }
.system-row--learning .system-icon { color: #ae7430; }
.system-detail { min-width: 0; }
.system-short { margin: 0 0 7px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.system-row--learning .system-short { color: #9b682e; }
.system-detail h2 { margin: 0; color: var(--ink); font-size: clamp(21px, 2.3vw, 28px); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.system-detail > p:last-child { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.system-action { justify-self: end; }
.access-button { min-height: 46px; min-width: 205px; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 14px; background: var(--blue); color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.access-button:hover { background: var(--deep); transform: translateX(2px); }
.access-button span { font-size: 18px; line-height: 1; }
.system-row--learning .access-button { background: var(--deep); }
.system-row--learning .access-button:hover { background: #20567b; }
.preview-note { margin: 19px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.footer-inner a { color: var(--blue); font-weight: 600; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

.motion-ready [data-reveal] { opacity: .86; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease, border-color .2s ease, box-shadow .2s ease; }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.system-row:nth-child(2) { transition-delay: .07s; }

@media (max-width: 850px) {
  .header-inner, .content-inner, .footer-inner { width: min(100% - 36px, 1160px); }
  .welcome-inner { width: min(100% - 36px, 552px); padding-right: 24px; }
  .system-row { grid-template-columns: 55px minmax(0, 1fr); gap: 16px; }
  .system-action { grid-column: 2; justify-self: start; }
}
@media (max-width: 650px) {
  .header-inner { min-height: 78px; }
  .seal { width: 45px; height: 45px; flex-basis: 45px; }
  .identity { gap: 10px; }
  .identity-text strong { font-size: 18px; }
  .identity-text span { font-size: 10px; }
  .official-link { display: none; }
  .welcome-banner { display: flex; flex-direction: column; }
  .welcome-inner { width: min(100% - 36px, 552px); min-height: 320px; align-self: center; padding: 42px 0 54px; }
  .welcome-inner::before { right: -20px; }
  .welcome-inner h1 { font-size: clamp(38px, 11vw, 52px); }
  .welcome-inner > p:not(.banner-kicker) { margin-top: 13px; font-size: 14px; }
  .banner-jump { margin-top: 21px; }
  .hero-index { bottom: 18px; font-size: 9px; }
  .carousel-pane { min-height: 220px; }
  .welcome-photo { object-position: center 48%; }
  .carousel-bar { right: 14px; bottom: 9px; left: 15px; }
  .photo-caption { font-size: 11px; }
  .carousel-dot, .carousel-control { width: 29px; height: 30px; }
  .carousel-dot { width: 20px; }
  .carousel-dots { margin-right: 2px; }
  .main-content { padding: 45px 0 53px; }
  .page-heading { margin-bottom: 21px; }
  .system-row { min-height: 0; grid-template-columns: 43px minmax(0, 1fr); gap: 10px 15px; padding: 21px 18px; }
  .system-top { gap: 13px; }
  .system-icon { font-size: 20px; }
  .system-detail h2 { font-size: 22px; overflow-wrap: anywhere; }
  .system-detail > p:last-child { font-size: 12px; }
  .system-action { width: 100%; margin-top: 5px; }
  .access-button { width: 100%; min-width: 0; }
  .footer-inner { min-height: 0; flex-direction: column; align-items: flex-start; padding-block: 19px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}
