:root {
  --bg: #f4f7fb;
  --bg-soft: #fbfcfe;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-dark: #0a1630;
  --surface-dark-2: #102448;
  --text: #1a2a3d;
  --muted: #607088;
  --line: rgba(28, 52, 91, 0.12);
  --line-strong: rgba(17, 46, 103, 0.26);
  --accent: #1847a3;
  --accent-deep: #0f2a66;
  --accent-soft: rgba(24, 71, 163, 0.09);
  --white: #ffffff;
  --shadow-lg: 0 28px 80px rgba(11, 30, 65, 0.16);
  --shadow-md: 0 18px 50px rgba(15, 36, 82, 0.12);
  --shadow-sm: 0 12px 24px rgba(18, 45, 93, 0.08);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --container: min(1180px, calc(100vw - 48px));
  --transition: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #eef3f9 46%, #f6f8fc 100%);
}

body::before,
body::after {
  position: fixed;
  inset: auto;
  content: "";
  pointer-events: none;
  z-index: -1;
}

body::before {
  top: -240px;
  right: -180px;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 71, 163, 0.16) 0%, rgba(24, 71, 163, 0) 72%);
}

body::after {
  left: -160px;
  bottom: 80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146, 164, 193, 0.18) 0%, rgba(146, 164, 193, 0) 72%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  line-height: 1.72;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.02em;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 108px 0;
}

.section::before {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
}

.section-light::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45)),
    linear-gradient(90deg, rgba(24, 71, 163, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(24, 71, 163, 0.035) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.section-dark {
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(135deg, #071329 0%, #10274e 55%, #17366b 100%);
}

.section-dark::before {
  background:
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.12), transparent 25%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 25%);
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(248, 251, 255, 0.82);
  border-bottom: 1px solid rgba(24, 71, 163, 0.08);
}

.site-header.is-scrolled {
  background: rgba(248, 251, 255, 0.95);
  box-shadow: 0 14px 34px rgba(19, 43, 89, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 92px;
}

.brand {
  width: min(300px, 100%);
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
}

.site-nav a {
  position: relative;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2b3d59;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(24, 71, 163, 0.22) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
  content: "";
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(24, 71, 163, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--accent-deep);
  transition: transform var(--transition), opacity var(--transition);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 16px 30px rgba(18, 53, 121, 0.24);
}

.button-secondary {
  color: var(--accent-deep);
  border-color: rgba(18, 53, 121, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

.button-light {
  color: var(--accent-deep);
  background: var(--white);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: transparent;
}

.header-cta {
  min-height: 52px;
}

.hero {
  padding-top: 118px;
}

.hero::before {
  background:
    radial-gradient(circle at left center, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(90deg, rgba(10, 33, 74, 0) 0%, rgba(10, 33, 74, 0.06) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: 0.92;
  color: #16263d;
}

.hero h1 span {
  color: var(--accent);
}

.hero-lead {
  margin-top: 28px;
  max-width: 60ch;
  font-size: 1.15rem;
  font-weight: 600;
  color: #31445e;
}

.hero-text {
  margin-top: 18px;
  max-width: 60ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.hero-facts article {
  padding: 18px 18px 20px;
  border: 1px solid rgba(21, 53, 110, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.hero-facts strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  line-height: 1;
  color: var(--accent-deep);
}

.hero-facts span {
  display: block;
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-media {
  position: relative;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(223, 232, 244, 0.45));
  box-shadow: var(--shadow-lg);
}

.media-frame::after {
  position: absolute;
  inset: auto 18px 18px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  opacity: 0.45;
  content: "";
}

.media-frame-hero {
  padding: 14px;
}

.media-frame-hero img {
  width: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
}

.hero-note {
  position: absolute;
  left: -36px;
  bottom: 24px;
  max-width: 290px;
  padding: 22px 24px;
  border: 1px solid rgba(21, 53, 110, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.hero-note-label,
.section-caption {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-note-label {
  color: var(--accent);
}

.hero-note p {
  margin-top: 8px;
  color: #40526d;
}

.section-heading {
  max-width: 760px;
  text-align: center;
  margin: 0 auto 52px;
}

.section-caption {
  color: var(--accent);
}

.section-caption-dark {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading h2,
.grades-copy h2,
.process-copy h2,
.contact-cta h2 {
  margin-top: 16px;
  font-size: clamp(2.35rem, 5vw, 3.65rem);
  line-height: 0.98;
}

.section-heading p:last-child,
.grades-copy p,
.process-copy > p,
.contact-cta p {
  margin-top: 18px;
  color: var(--muted);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.capability-card {
  position: relative;
  padding: 34px 30px;
  border: 1px solid rgba(20, 49, 101, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.capability-card::after {
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(24, 71, 163, 0.06);
  content: "";
  pointer-events: none;
}

.icon-wrap {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(24, 71, 163, 0.12), rgba(255, 255, 255, 0.96)),
    var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.icon-wrap svg,
.contact-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-wrap svg {
  color: var(--accent);
}

.capability-card h3,
.application-overlay h3,
.process-list h3,
.contact-item h3,
.site-footer h3 {
  margin-top: 22px;
  font-size: 2rem;
  line-height: 0.98;
}

.capability-card p,
.application-overlay p,
.process-list p,
.contact-item p {
  margin-top: 14px;
  color: var(--muted);
}

.grades-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(238, 243, 249, 0.86)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(212, 223, 236, 0.86));
}

.grades-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.grades-copy {
  max-width: 780px;
}

.grades-table-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(135deg, #071329 0%, #10274e 58%, #17366b 100%);
  box-shadow: var(--shadow-md);
}

.grades-table-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 30px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(47, 102, 199, 0.26), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

.grades-table-card .section-caption {
  color: rgba(255, 255, 255, 0.72);
}

.grades-table-header h3 {
  margin-top: 10px;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 0.98;
  color: var(--white);
}

.grades-table-header p:last-child {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.74);
}

.grade-table-wrap {
  overflow-x: auto;
  background: rgba(5, 17, 37, 0.24);
}

.grade-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.grade-table th,
.grade-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  white-space: nowrap;
}

.grade-table thead th {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
}

.grade-table thead small {
  display: block;
  margin-top: 5px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.58);
}

.grade-table tbody th {
  font-weight: 800;
  color: var(--white);
}

.grade-table tbody td {
  color: rgba(235, 241, 250, 0.86);
}

.grade-table tbody tr:last-child th,
.grade-table tbody tr:last-child td {
  border-bottom: 0;
}

.grade-table tbody tr:hover {
  background: rgba(47, 102, 199, 0.18);
}

.table-empty {
  color: rgba(255, 255, 255, 0.42);
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.application-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 26px;
  box-shadow: var(--shadow-md);
}

.application-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.application-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 18, 37, 0.08), rgba(4, 13, 28, 0.8)),
    linear-gradient(135deg, rgba(24, 71, 163, 0.18), transparent 46%);
  content: "";
  z-index: 1;
}

.application-card:hover img,
.application-card:focus-within img {
  transform: scale(1.04);
}

.application-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 28px;
  color: var(--white);
}

.application-overlay p {
  color: rgba(255, 255, 255, 0.8);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
}

.process-copy > p {
  color: rgba(255, 255, 255, 0.74);
}

.process-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.process-list article {
  padding: 24px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.process-list p {
  color: rgba(255, 255, 255, 0.72);
}

.media-frame-dark {
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03));
}

.media-frame-dark img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: 24px;
}

.contact-section {
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.9), rgba(232, 239, 248, 0.98)),
    linear-gradient(90deg, rgba(24, 71, 163, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(24, 71, 163, 0.03) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.contact-cta,
.contact-panel {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow-md);
}

.contact-cta {
  padding: 42px;
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(135deg, #09205a 0%, #153b93 60%, #2f66c7 100%);
}

.contact-cta::after {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  content: "";
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.75);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.contact-panel {
  padding: 34px;
  border: 1px solid rgba(16, 42, 102, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.84)),
    linear-gradient(135deg, rgba(24, 71, 163, 0.08), transparent 38%);
}

.contact-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
}

.contact-item + .contact-item {
  border-top: 1px solid rgba(16, 42, 102, 0.08);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--accent);
  background: rgba(24, 71, 163, 0.08);
}

.contact-item a {
  color: var(--accent-deep);
  font-weight: 700;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, #0a1325 0%, #08111f 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 28px;
  padding: 80px 0 48px;
}

.footer-brand h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--white);
}

.footer-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.footer-logo-plate img {
  width: 100%;
  height: auto;
}

.footer-brand p {
  max-width: 30ch;
  margin-top: 16px;
}

.site-footer h3 {
  margin-top: 6px;
  font-size: 1.7rem;
  color: var(--white);
}

.footer-links {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-links a,
.footer-links span {
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0 24px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.54);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    transform 640ms cubic-bezier(.2, .7, .2, 1),
    opacity 640ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-block;
    order: 3;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid rgba(24, 71, 163, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity var(--transition),
      visibility var(--transition),
      transform var(--transition);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 12px;
    border-radius: 14px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(24, 71, 163, 0.06);
  }

  .site-nav a::after {
    display: none;
  }

  .hero-grid,
  .grades-grid,
  .process-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .hero-note {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .capability-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(100vw - 28px, 100%);
  }

  .section {
    padding: 82px 0;
  }

  .header-inner {
    min-height: 80px;
    gap: 14px;
  }

  .brand {
    width: 210px;
  }

  .hero {
    padding-top: 68px;
  }

  .hero h1,
  .section-heading h2,
  .grades-copy h2,
  .process-copy h2,
  .contact-cta h2 {
    max-width: none;
  }

  .hero-lead {
    font-size: 1.02rem;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .grades-table-header {
    display: block;
    padding: 24px 22px 18px;
  }

  .grades-table-header p:last-child {
    margin-top: 14px;
  }

  .grade-table th,
  .grade-table td {
    padding: 14px 16px;
  }

  .media-frame-hero img,
  .media-frame-dark img,
  .application-card {
    min-height: 320px;
  }

  .hero-note {
    position: relative;
    left: 0;
    right: auto;
    bottom: auto;
    margin-top: 18px;
  }

  .contact-cta,
  .contact-panel {
    padding: 28px;
  }

  .contact-item {
    grid-template-columns: 1fr;
  }

  .footer-bar-inner,
  .hero-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
