:root {
  --bg: #f5f1e8;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fffaf2;
  --surface-soft: #f7efe3;
  --text: #1f2a2c;
  --muted: #5e6a6d;
  --line: rgba(31, 42, 44, 0.1);
  --primary: #0d7a63;
  --primary-deep: #0a5d4c;
  --accent: #eb6d4a;
  --accent-soft: #fde1d8;
  --shadow: 0 24px 60px rgba(31, 42, 44, 0.12);
  --radius-xxl: 36px;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(13, 122, 99, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(235, 109, 74, 0.18), transparent 24%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
.brand {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

p,
li,
input,
select,
textarea,
button {
  font-family: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 20px auto 40px;
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px;
  background: rgba(255, 250, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(13, 122, 99, 0.1);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

.nav-cta,
.button-primary,
.button-secondary,
.button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta,
.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 32px rgba(13, 122, 99, 0.2);
}

.nav-cta {
  padding: 12px 20px;
  font-size: 0.92rem;
}

.button-primary,
.button-secondary,
.button-light {
  padding: 14px 20px;
  font-size: 0.95rem;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  color: var(--text);
}

.button-light {
  background: #fff;
  color: var(--primary-deep);
}

.nav-cta:hover,
.button-primary:hover,
.button-secondary:hover,
.button-light:hover {
  transform: translateY(-2px);
}

.hero,
.page-hero {
  padding: 48px 28px 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(13, 122, 99, 0.1);
  color: var(--primary-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.98;
  margin-bottom: 18px;
}

.hero p,
.page-hero p,
.section-header p,
.card p,
.info-block p,
.list-card li,
.contact-card p,
.footer-copy,
.timeline-item p,
.quote-card p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-card,
.hero-panel,
.card,
.list-card,
.quote-card,
.timeline-item,
.contact-card,
.form-card,
.gallery-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(31, 42, 44, 0.06);
}

.hero-card {
  padding: 18px;
}

.hero-card img {
  border-radius: 24px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.hero-meta div,
.stat-block {
  padding: 16px;
  border-radius: 20px;
  background: rgba(13, 122, 99, 0.08);
}

.hero-meta strong,
.stat-block strong {
  display: block;
  color: var(--primary-deep);
  font-size: 1.28rem;
}

.hero-meta span,
.stat-block span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: 28px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-header p {
  max-width: 58ch;
}

.grid-three,
.grid-two,
.stats-grid,
.contact-grid,
.gallery-grid,
.testimonial-grid {
  display: grid;
  gap: 18px;
}

.grid-three,
.stats-grid,
.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-two,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.list-card,
.quote-card,
.timeline-item,
.contact-card,
.form-card,
.gallery-card {
  padding: 24px;
}

.card h3,
.list-card h3,
.quote-card h3,
.timeline-item h3,
.contact-card h3,
.form-card h3,
.gallery-card h3 {
  font-size: 1.35rem;
}

.card-tag,
.accent-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-top: 16px;
}

.card-tag {
  background: rgba(13, 122, 99, 0.1);
  color: var(--primary-deep);
}

.accent-tag {
  background: var(--accent-soft);
  color: #9b432b;
}

.list-card ul {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.list-card li {
  padding-left: 18px;
  position: relative;
}

.list-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 11px;
}

.hero-panel {
  padding: 24px;
  background: linear-gradient(135deg, rgba(13, 122, 99, 0.12) 0%, rgba(255, 255, 255, 0.72) 100%);
}

.panel-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.panel-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.panel-row strong {
  font-size: 0.96rem;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 18px;
  background: rgba(13, 122, 99, 0.1);
  color: var(--primary-deep);
  font-weight: 800;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 16px;
}

.quote-card {
  background: linear-gradient(135deg, rgba(13, 122, 99, 0.08) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.quote-mark {
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}

.cta-band {
  margin: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary) 60%, #17a17f 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-band p {
  max-width: 56ch;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.form-card form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 0.95rem;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button {
  border: 0;
  cursor: pointer;
}

.contact-card ul {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-card li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.contact-card li:first-child {
  padding-top: 0;
  border-top: 0;
}

.visit-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 11, 28, 0.56);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  z-index: 1200;
}

.visit-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.visit-modal-panel {
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(243, 248, 255, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 36px 80px rgba(7, 22, 56, 0.24);
}

.visit-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 0;
}

.visit-modal-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: #08214e;
}

.visit-modal-close {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(15, 63, 190, 0.08);
  color: var(--primary-deep);
  font-size: 1.4rem;
  line-height: 1;
}

.visit-modal-body {
  padding: 0 18px 18px;
}

.visit-modal-body .form-card {
  margin: 0;
}

.visit-modal-note {
  margin-top: 12px;
  font-size: 0.84rem;
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

.footer {
  padding: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .nav,
  .hero,
  .page-hero,
  .grid-three,
  .grid-two,
  .stats-grid,
  .contact-grid,
  .gallery-grid,
  .testimonial-grid,
  .field-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .nav {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-cta,
  .button-primary,
  .button-secondary,
  .button-light {
    width: 100%;
  }

  .timeline-step {
    min-height: 44px;
  }

  .visit-modal {
    padding: 16px;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 18px, 1180px);
    margin: 10px auto 24px;
    border-radius: 24px;
  }

  .nav,
  .hero,
  .page-hero,
  .section,
  .cta-band,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cta-band {
    margin-left: 18px;
    margin-right: 18px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .visit-modal-panel {
    border-radius: 20px;
  }
}

/* Visual refresh: brighter STEM identity with stronger contrast and themed accents. */
:root {
  --bg: #eaf4ff;
  --surface: rgba(247, 251, 255, 0.92);
  --surface-strong: #ffffff;
  --surface-soft: #eef6ff;
  --text: #10203f;
  --muted: #4d6284;
  --line: rgba(16, 32, 63, 0.1);
  --primary: #0f8cff;
  --primary-deep: #0f3fbe;
  --accent: #ff8d2a;
  --accent-soft: #ffedd9;
  --neon: #21d5c5;
  --lime: #bef542;
  --shadow: 0 28px 80px rgba(5, 29, 73, 0.16);
}

body {
  position: relative;
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 140, 255, 0.22), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(33, 213, 197, 0.18), transparent 22%),
    radial-gradient(circle at 80% 82%, rgba(255, 141, 42, 0.16), transparent 20%),
    linear-gradient(180deg, #f7fbff 0%, #edf5ff 48%, #e8f1ff 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

body::before {
  top: 80px;
  left: -100px;
  background: rgba(33, 213, 197, 0.24);
}

body::after {
  right: -80px;
  bottom: 60px;
  background: rgba(255, 141, 42, 0.18);
}

.site-shell {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93), rgba(243, 249, 255, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.site-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--neon) 34%, var(--lime) 68%, var(--accent) 100%);
  z-index: 3;
}

.site-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 63, 190, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 63, 190, 0.035) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.nav,
main,
.cta-band,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  background: linear-gradient(135deg, rgba(8, 21, 49, 0.92), rgba(11, 43, 102, 0.86));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  color: #ffffff;
  text-shadow: 0 6px 24px rgba(15, 140, 255, 0.24);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.76);
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: rgba(33, 213, 197, 0.14);
  box-shadow: inset 0 0 0 1px rgba(33, 213, 197, 0.14);
}

.nav-cta,
.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b3d 100%);
  box-shadow: 0 18px 34px rgba(255, 107, 61, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 140, 255, 0.14);
}

.button-light {
  background: linear-gradient(135deg, #ffffff 0%, #eff9ff 100%);
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -40px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 213, 197, 0.22), transparent 66%);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 12px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(15, 140, 255, 0.1);
  pointer-events: none;
}

.hero > div:first-child,
.page-hero > div:first-child,
.hero-card,
.hero-panel {
  position: relative;
  z-index: 1;
}

.eyebrow {
  background: linear-gradient(135deg, rgba(15, 140, 255, 0.14), rgba(33, 213, 197, 0.16));
  color: var(--primary-deep);
  box-shadow: inset 0 0 0 1px rgba(15, 140, 255, 0.12);
}

.hero h1,
.page-hero h1,
.section-header h2 {
  color: #081531;
}

.hero p,
.page-hero p {
  font-size: 1.04rem;
  max-width: 60ch;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tech-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 140, 255, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(15, 63, 190, 0.08);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text);
}

.tech-pills span:nth-child(1) {
  background: rgba(15, 140, 255, 0.1);
}

.tech-pills span:nth-child(2) {
  background: rgba(33, 213, 197, 0.12);
}

.tech-pills span:nth-child(3) {
  background: rgba(190, 245, 66, 0.18);
}

.tech-pills span:nth-child(4) {
  background: rgba(255, 141, 42, 0.14);
}

.hero-card {
  background: linear-gradient(160deg, rgba(8, 21, 49, 0.96), rgba(14, 63, 190, 0.78));
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.hero-card img {
  box-shadow: 0 20px 46px rgba(8, 21, 49, 0.32);
}

.hero-meta div,
.stat-block {
  border: 1px solid rgba(15, 140, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 246, 255, 0.9));
  box-shadow: 0 18px 34px rgba(8, 49, 125, 0.08);
}

.hero-meta div:nth-child(2) {
  background: linear-gradient(180deg, rgba(242, 255, 253, 0.98), rgba(224, 251, 248, 0.9));
}

.hero-meta div:nth-child(3) {
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.98), rgba(255, 237, 216, 0.92));
}

.card,
.list-card,
.quote-card,
.timeline-item,
.contact-card,
.form-card,
.gallery-card,
.hero-panel {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card,
.list-card,
.quote-card,
.timeline-item,
.contact-card,
.form-card,
.gallery-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.96));
}

.card::before,
.list-card::before,
.quote-card::before,
.timeline-item::before,
.contact-card::before,
.form-card::before,
.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--neon), var(--accent));
}

.card:hover,
.list-card:hover,
.quote-card:hover,
.timeline-item:hover,
.contact-card:hover,
.form-card:hover,
.gallery-card:hover,
.hero-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(7, 35, 88, 0.12);
  border-color: rgba(15, 140, 255, 0.18);
}

.card h3,
.list-card h3,
.quote-card h3,
.timeline-item h3,
.contact-card h3,
.form-card h3,
.gallery-card h3 {
  color: #08214e;
}

.card-tag {
  background: rgba(15, 140, 255, 0.1);
  color: var(--primary-deep);
}

.accent-tag {
  background: var(--accent-soft);
  color: #9a4f00;
}

.list-card li::before {
  background: linear-gradient(135deg, var(--neon), var(--primary));
  box-shadow: 0 0 0 5px rgba(33, 213, 197, 0.12);
}

.hero-panel {
  background: linear-gradient(145deg, rgba(8, 21, 49, 0.96), rgba(12, 67, 164, 0.88));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-panel h3,
.panel-row strong {
  color: #ffffff;
}

.panel-row {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.panel-row span {
  color: rgba(255, 255, 255, 0.76);
}

.timeline-step {
  background: linear-gradient(135deg, var(--primary) 0%, var(--neon) 100%);
  color: #072039;
  box-shadow: 0 18px 26px rgba(15, 140, 255, 0.18);
}

.gallery-card img {
  height: 236px;
}

.quote-card {
  background: linear-gradient(135deg, rgba(11, 63, 190, 0.08), rgba(255, 255, 255, 0.96));
}

.quote-mark {
  color: var(--accent);
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #07122a 0%, #0d3a98 44%, #0fb8c5 100%);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.22;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 140, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 140, 255, 0.12);
}

.footer {
  background: linear-gradient(135deg, rgba(7, 18, 42, 0.98), rgba(10, 32, 74, 0.96));
  color: rgba(255, 255, 255, 0.84);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.footer-copy {
  color: rgba(255, 255, 255, 0.72);
}

.home-page .hero-card {
  animation: lift-card 8s ease-in-out infinite;
}

.innovation-page .gallery-card:nth-child(3n + 2)::before,
.curriculum-page .card:nth-child(3n + 2)::before {
  background: linear-gradient(90deg, var(--neon), var(--lime), var(--accent));
}

.philosophy-page .hero-panel {
  background: linear-gradient(145deg, rgba(8, 21, 49, 0.96), rgba(0, 124, 152, 0.86));
}

.curriculum-page .hero-panel {
  background: linear-gradient(145deg, rgba(8, 21, 49, 0.96), rgba(15, 63, 190, 0.88));
}

.innovation-page .hero-panel {
  background: linear-gradient(145deg, rgba(8, 21, 49, 0.96), rgba(0, 137, 128, 0.88));
}

.contact-page .hero-panel {
  background: linear-gradient(145deg, rgba(8, 21, 49, 0.96), rgba(190, 83, 0, 0.82));
}

@keyframes lift-card {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .nav {
    background: linear-gradient(135deg, rgba(8, 21, 49, 0.96), rgba(11, 43, 102, 0.92));
  }
}

@media (max-width: 680px) {
  body::before,
  body::after,
  .hero::after,
  .page-hero::after {
    display: none;
  }

  .tech-pills span {
    width: 100%;
    justify-content: flex-start;
  }
}

.media-card,
.feature-photo,
.feature-copy {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 248, 255, 0.96));
  border: 1px solid rgba(15, 140, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 46px rgba(8, 49, 125, 0.08);
}

.media-card::before,
.feature-photo::before,
.feature-copy::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--neon), var(--accent));
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-card {
  padding: 14px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.media-card:hover,
.feature-photo:hover,
.feature-copy:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(7, 35, 88, 0.14);
}

.media-card img,
.feature-photo img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.media-card img {
  height: 220px;
  margin-bottom: 16px;
}

.media-card:hover img,
.feature-photo:hover img {
  transform: scale(1.04);
}

.media-card h3,
.feature-copy h3 {
  color: #08214e;
  font-size: 1.24rem;
}

.media-card p,
.feature-copy p {
  color: var(--muted);
  line-height: 1.72;
  margin-top: 10px;
}

.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.feature-photo,
.feature-copy {
  padding: 16px;
}

.feature-photo img {
  min-height: 380px;
}

.feature-copy {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.feature-copy li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.feature-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--neon));
}

.section-intro {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 22px;
}

.visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(15, 140, 255, 0.1);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 800;
}

.program-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 16px;
}

.contact-photo-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 16px;
}

@media (max-width: 980px) {
  .photo-grid,
  .photo-grid.four,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-photo img {
    min-height: 280px;
  }
}

/* Final layout override: reduce outer framing and make the header feel more intentional. */
.site-shell {
  width: min(100%, 100vw);
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-shell::before {
  height: 5px;
}

.nav {
  gap: 28px;
  padding: 18px 34px;
  background: linear-gradient(90deg, rgba(8, 21, 49, 0.98), rgba(16, 49, 116, 0.96));
  border-bottom: 0;
  box-shadow: 0 12px 34px rgba(7, 22, 56, 0.18);
}

.brand {
  flex-shrink: 0;
}

.nav-links {
  flex: 1;
  gap: 10px;
}

.nav-links a {
  padding: 12px 18px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(180deg, rgba(30, 182, 255, 0.18), rgba(33, 213, 197, 0.12));
  border-color: rgba(69, 216, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(69, 216, 255, 0.06), 0 10px 24px rgba(9, 37, 87, 0.12);
}

.nav-cta {
  padding: 13px 24px;
  border-radius: 999px;
  white-space: nowrap;
}

.footer {
  border-top: 0;
}

@media (max-width: 980px) {
  .site-shell {
    width: 100%;
    margin: 0;
  }

  .nav {
    gap: 16px;
    padding: 16px 18px;
  }

  .nav-links {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .nav {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .page-hero,
  .section,
  .cta-band,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cta-band {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
}

.brand,
.brand-lockup,
.footer-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(8, 21, 49, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.brand-text {
  display: inline-block;
}

.footer-brandmark {
  max-width: 560px;
}

.footer-brandmark .brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.footer-brandmark .footer-copy {
  margin: 0;
}

@media (max-width: 680px) {
  .brand {
    align-self: flex-start;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .footer-brandmark {
    align-items: flex-start;
  }
}

/* Final responsive pass: improve phone readability and layout density. */
@media (max-width: 900px) {
  html {
    font-size: 15px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }

  .section-header p,
  .hero p,
  .page-hero p,
  .card p,
  .list-card li,
  .quote-card p,
  .contact-card p,
  .timeline-item p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.15rem, 8vw, 3.35rem);
    line-height: 1.02;
  }

  .card,
  .list-card,
  .quote-card,
  .timeline-item,
  .contact-card,
  .form-card,
  .gallery-card,
  .feature-copy,
  .feature-photo,
  .media-card {
    padding: 18px;
  }

  .program-card img,
  .gallery-card img,
  .media-card img {
    height: 200px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  html {
    font-size: 14px;
  }

  .nav {
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-text {
    font-size: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }

  .hero,
  .page-hero {
    gap: 20px;
    padding-top: 28px;
  }

  .hero-meta {
    gap: 10px;
  }

  .hero-meta strong,
  .stat-block strong {
    font-size: 1.08rem;
  }

  .tech-pills {
    gap: 8px;
  }

  .tech-pills span {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .program-card img,
  .gallery-card img,
  .media-card img,
  .contact-photo-card img,
  .feature-photo img {
    height: 180px;
    min-height: 180px;
  }

  .timeline-item {
    gap: 12px;
  }

  .timeline-step {
    min-height: 40px;
    border-radius: 14px;
  }

  .visit-modal-head,
  .visit-modal-body {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Final brand override: larger cropped circular mark only. */
.brand,
.brand-lockup,
.footer-brandmark {
  gap: 14px;
}

.brand-badge {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 26px rgba(8, 21, 49, 0.22);
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.72);
}

.footer-brandmark .brand-badge {
  width: 76px;
  height: 76px;
}

@media (max-width: 680px) {
  .brand-badge {
    width: 58px;
    height: 58px;
  }

  .footer-brandmark .brand-badge {
    width: 64px;
    height: 64px;
  }
}

.brand,
.brand-lockup,
.footer-brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(8, 21, 49, 0.18);
  background: rgba(255, 255, 255, 0.9);
}

.brand-text {
  display: inline-block;
}

.footer-brandmark {
  max-width: 560px;
}

.footer-brandmark .brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.footer-brandmark .footer-copy {
  margin: 0;
}

@media (max-width: 680px) {
  .brand {
    align-self: flex-start;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .footer-brandmark {
    align-items: flex-start;
  }
}