@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #FFFFFF;
  --bg-dark: #0D1F3A;
  --bg-soft: #F5F7FA;
  --bg-gray: #E8ECF1;
  --text: #16325C;
  --text-light: #FFFFFF;
  --muted: #6B7280;
  --accent: #F68B2E;
  --accent-glow: rgba(246, 139, 46, 0.4);
  --border: #E5E7EB;
  --border-dark: #2A436A;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.12);
  --radius: 24px;
  --radius-lg: 32px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Engineering Background Patterns */
.engineering-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  background-image: 
    linear-gradient(rgba(22, 50, 92, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 50, 92, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.circuit-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10 L30 10 L30 30 M50 50 L70 50 L70 70 M90 10 L90 30' stroke='%23F68B2E' stroke-width='0.5' fill='none' opacity='0.08'/%3E%3Ccircle cx='30' cy='30' r='3' fill='%23F68B2E' opacity='0.15'/%3E%3Ccircle cx='70' cy='70' r='3' fill='%23F68B2E' opacity='0.15'/%3E%3C/svg%3E");
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.scrolled .engineering-grid,
body.scrolled .circuit-pattern {
  opacity: 1;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.container { width: min(1280px, calc(100% - 3rem)); margin: 0 auto; }
.section { padding: 4.5rem 0; }
.section.dark-section { padding: 4rem 0; }
.section-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.5rem;
}
.section-intro {
  color: var(--muted);
  max-width: 700px;
  font-size: 1.15rem;
  line-height: 1.8;
}

.dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: relative;
}

.dark-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(246, 139, 46, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(246, 139, 46, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.blueprint-decoration {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='%23F68B2E' stroke-width='0.5' fill='none' opacity='0.15'%3E%3Ccircle cx='250' cy='250' r='40'/%3E%3Ccircle cx='250' cy='250' r='60'/%3E%3Cpath d='M200 250 L300 250 M250 200 L250 300'/%3E%3Crect x='180' y='180' width='140' height='140'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.dark-section .section-title, .dark-section h1, .dark-section h2, .dark-section h3 {
  color: var(--text-light);
}
.dark-section .section-intro, .dark-section .muted {
  color: rgba(255, 255, 255, 0.75);
}
.dark-section .card {
  background: rgba(30, 58, 108, 0.6);
  backdrop-filter: blur(10px);
  border-color: var(--border-dark);
}
.dark-section .card p,
.dark-section .card li,
.dark-section .card blockquote { color: rgba(255, 255, 255, .78); }
.dark-section input,
.dark-section textarea {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.dark-section .btn-secondary {
  border-color: var(--border-dark);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}
.dark-section .nav-links a { color: rgba(255, 255, 255, 0.7); }
.dark-section .nav-links a:hover, .dark-section .nav-links a.active { color: var(--text-light); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.dark-section .site-header {
  background: rgba(13, 31, 58, 0.85);
  border-bottom: 1px solid var(--border-dark);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.dark-section .brand { color: var(--text-light); }

.brand-logo {
  width: auto;
  max-height: 44px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-text {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
}

.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(246, 139, 46, 0.3);
  font-weight: 800;
  color: white;
}

.nav-links {
  display: flex; gap: 1.5rem; align-items: center;
}

.nav-links a {
  color: var(--muted); 
  font-weight: 700; 
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.25rem; border-radius: 999px; background: var(--accent);
  color: white; font-weight: 600; font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(246, 139, 46, 0.35);
  transition: all 0.3s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(246, 139, 46, 0.45);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-soft);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero.hero-editorial {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: max(680px, calc(100svh - 80px));
  overflow: hidden;
  padding: clamp(2.2rem, 5vh, 4rem) 0 4.75rem;
  background: var(--bg-dark);
  color: #fff;
}

.hero.hero-editorial::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -24%;
  left: 28%;
  width: min(48vw, 700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 139, 46, .3), rgba(246, 139, 46, 0) 68%);
  filter: blur(16px);
  pointer-events: none;
}

.hero.hero-editorial::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.9), transparent 76%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  z-index: 0;
  inset: 0;
  margin: 0;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% 48%;
  filter: saturate(.88) contrast(1.05);
  transform: scale(1.025);
  transform-origin: center;
}

.hero-scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13,31,58,1) 0%, rgba(13,31,58,.97) 34%, rgba(13,31,58,.77) 60%, rgba(13,31,58,.28) 100%),
    linear-gradient(0deg, rgba(13,31,58,.92) 0%, rgba(13,31,58,0) 43%);
  pointer-events: none;
}

.hero-editorial-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(max(680px, 100svh - 80px) - clamp(6.95rem, 10vh, 8.75rem));
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: rgba(255,255,255,.9);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-kicker small {
  padding-left: .8rem;
  border-left: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.55);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.hero-kicker-line {
  width: 42px;
  height: 2px;
  flex: 0 0 42px;
  background: var(--accent);
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  padding: clamp(2.2rem, 5vh, 4rem) 0;
}

.hero-editorial h1 {
  width: 100%;
  max-width: none;
  margin: 0;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(4.35rem, 8.65vw, 8.4rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: .82;
  text-wrap: balance;
}

.hero-title-line {
  display: block;
  width: max-content;
  max-width: 100%;
}

.hero-title-accent {
  position: relative;
  margin-left: clamp(1rem, 5.5vw, 5.25rem);
  color: var(--accent);
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  right: -.2em;
  bottom: .05em;
  width: .18em;
  height: .18em;
  border-radius: 50%;
  background: #fff;
}

.hero-title-indent {
  margin-left: clamp(.25rem, 2.4vw, 2.4rem);
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 42rem) auto;
  align-items: end;
  justify-content: space-between;
  gap: 2rem 4rem;
  padding-right: 10.5rem;
}

.hero-editorial .hero-lead {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.75;
}

.hero-editorial .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.4rem;
  margin: 0;
}

.hero-editorial .btn-primary {
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(246, 139, 46, .3);
}

.hero-text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.45);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.hero-text-link:hover,
.hero-text-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-scroll-cue {
  position: absolute;
  z-index: 3;
  right: max(1.5rem, calc((100vw - 1280px) / 2));
  bottom: 2.1rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: rgba(255,255,255,.72);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-scroll-cue svg {
  width: 42px;
  height: 42px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 50%;
  padding: .7rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}

.hero-scroll-cue:hover { color: #fff; }
.hero-scroll-cue:hover svg { border-color: var(--accent); color: var(--accent); transform: translateY(3px); }

.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: 0.6rem;
  padding: 1rem 1.5rem; 
  border-radius: 999px; 
  border: 1px solid transparent; 
  cursor: pointer; 
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover { 
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.btn-large {
  padding: 1.15rem 2rem;
  font-size: 1.05rem;
}

.btn-primary { 
  background: linear-gradient(135deg, var(--accent) 0%, #FF9D5C 100%);
  color: white; 
  box-shadow: 0 4px 20px rgba(246, 139, 46, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(246, 139, 46, 0.45);
}

.btn-secondary { 
  border-color: var(--border); 
  background: var(--bg-soft); 
  color: var(--text);
}

.btn-outline {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.cta-content .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.cta-content .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.pill-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 0.75rem; 
  margin-top: 1.75rem; 
}

.pill {
  display: inline-flex; 
  align-items: center; 
  gap: 0.5rem;
  padding: 0.55rem 0.95rem; 
  border-radius: 999px;
  border: 1px solid var(--border); 
  background: var(--bg-soft); 
  color: var(--muted); 
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-card {
  background: linear-gradient(145deg, #F9F9F9, #EFEFEF);
  border: 1px solid var(--border);
  border-radius: 32px; 
  padding: 0; 
  box-shadow: var(--shadow-lg);
  position: relative; 
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-card:hover {
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
}

.hero-panel {
  border-radius: 24px; 
  min-height: 480px; 
  padding: 2rem; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(8, 30, 62, 0.05), rgba(8, 30, 62, 0.93)),
    url('assets/Gallery/main.jpg') center/cover no-repeat;
  background-size: cover;
  box-shadow: inset 0 -100px 100px rgba(22, 50, 92, 0.4);
  color: var(--text-light);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(246, 139, 46, 0.08) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.hero-card:hover .hero-card-overlay {
  opacity: 1;
}

.hero-image-credits {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

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

.story-band {
  display: grid; 
  grid-template-columns: 1.2fr 0.8fr; 
  gap: 1.5rem; 
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-dark);
  border-radius: 28px; 
  padding: 2rem; 
  box-shadow: var(--shadow);
}

.story-copy h3 { 
  margin: 0 0 0.6rem; 
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-family: "Space Grotesk", Inter, sans-serif;
}

.story-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.story-metrics { 
  display: grid; 
  gap: 0.75rem; 
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem; 
  border-radius: 18px; 
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  transition: all 0.3s ease;
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.metric-number { 
  display: block; 
  font-size: 1.25rem; 
  font-family: "Space Grotesk", Inter, sans-serif;
  color: var(--accent);
  font-weight: 700;
}

.metric-label { 
  color: rgba(255, 255, 255, 0.8); 
  font-size: 0.9rem;
  font-weight: 500;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 1.75rem; 
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  opacity: 1;
}

.feature-card {
  padding: 2rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(246, 139, 46, 0.15) 0%, rgba(246, 139, 46, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.program-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.program-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(246, 139, 46, 0.15) 0%, rgba(246, 139, 46, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
}

.program-card:hover .program-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(246, 139, 46, 0.25) 0%, rgba(246, 139, 46, 0.1) 100%);
}

.program-icon svg {
  width: 32px;
  height: 32px;
}

.card-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #FF9D5C 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.card h3 { 
  margin: 0 0 0.75rem; 
  font-size: 1.3rem;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.card p, .card li { 
  color: var(--muted);
  line-height: 1.7;
}

.list { padding-left: 1rem; }
.list li { margin-bottom: .45rem; }
.link-row { 
  margin-top: 1rem; 
  display: inline-flex; 
  color: var(--accent); 
  align-items: center; 
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.link-row::after { content: "→"; transition: transform 0.2s ease; }
.link-row:hover::after { transform: translateX(4px); }

/* Stats Grid */
.stats-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.25rem; 
  margin-top: 2.5rem; 
}

.stat-card {
  background: var(--bg-soft); 
  border: 1px solid var(--border); 
  border-radius: 20px; 
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stat-number { 
  display: block; 
  font-size: 2.5rem; 
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label { 
  display: block;
  margin-top: 0.5rem;
  color: var(--muted); 
  font-size: 0.9rem;
  font-weight: 500;
}

/* Grid Layouts */
.grid-2 { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: 1.5rem; 
}

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

/* Mini Chip */
.mini-chip {
  display: inline-flex; 
  width: fit-content; 
  padding: 0.5rem 1rem; 
  border-radius: 999px; 
  background: var(--bg-soft); 
  border: 1px solid var(--border); 
  margin-bottom: 1rem; 
  color: var(--accent); 
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.light-chip {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-dark);
  color: var(--accent);
}

/* Page Hero */
.page-hero {
  padding: 5rem 0 3rem;
  text-align: center;
}
.page-hero h1 { 
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem); 
  margin-bottom: 1rem; 
}
.page-hero p { 
  color: var(--muted); 
  max-width: 780px; 
  margin: 0 auto;
  font-size: 1.15rem;
}

/* Quote Card */
.quote-card { 
  background: var(--bg-soft); 
  border-left: 4px solid var(--accent);
}
.quote-card blockquote { 
  margin: 0 0 1rem; 
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
}
.quote-author { 
  color: var(--accent); 
  font-weight: 600; 
}

/* Gallery */
.gallery-grid {
  display: grid; 
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
  gap: 1.25rem;
}
.gallery-item {
  border-radius: 24px; 
  overflow: hidden; 
  min-height: 260px; 
  border: 1px solid var(--border); 
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.gallery-item:hover {
  transform: scale(1.02);
}
.gallery-item::after {
  content: attr(data-title); 
  position: absolute; 
  inset: auto 1rem 1rem 1rem; 
  padding: 0.85rem 1.1rem; 
  border-radius: 14px; 
  background: rgba(22, 50, 92, 0.9); 
  backdrop-filter: blur(10px);
  color: white; 
  font-weight: 600;
  font-size: 0.9rem;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: start;
}
.contact-wrap .form-card { grid-column: 1 / -1; }
.contact-wrap .card a {
  color: #ffb478;
  text-decoration: underline;
  text-decoration-color: rgba(255, 180, 120, .35);
  text-underline-offset: 3px;
}
.contact-wrap .card a:hover { color: #fff; }
.contact-form-intro {
  max-width: 660px;
  margin: -.15rem 0 1.45rem;
}
.contact-form {
  position: relative;
  display: grid;
  gap: .3rem;
  max-width: 820px;
}
.form-field {
  display: grid;
  gap: .45rem;
}
.form-field label {
  color: rgba(255, 255, 255, .92);
  font-size: .92rem;
  font-weight: 700;
}
.form-field label span,
.required-note > span { color: #ffb478; }
.field-error {
  min-height: 1.35rem;
  margin: 0;
  color: #ffb4b4 !important;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35 !important;
}
input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  outline: none;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(246, 139, 46, 0.1);
}
input::placeholder, textarea::placeholder { color: #9CA3AF; }
textarea {
  min-height: 150px;
  resize: vertical;
}
.dark-section .contact-form input::placeholder,
.dark-section .contact-form textarea::placeholder { color: rgba(255, 255, 255, .66); }
.dark-section .contact-form input:hover,
.dark-section .contact-form textarea:hover { border-color: rgba(255, 255, 255, .34); }
.dark-section .contact-form input:focus,
.dark-section .contact-form textarea:focus {
  border-color: #ffad70;
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 4px rgba(246, 139, 46, .16);
}
.contact-form :is(input, textarea)[aria-invalid="true"] {
  border-color: #ff8e8e;
  box-shadow: 0 0 0 3px rgba(255, 96, 96, .12);
}
.dark-section .contact-form :is(input, textarea)[aria-invalid="true"]:focus {
  border-color: #ff8e8e;
  box-shadow: 0 0 0 4px rgba(255, 96, 96, .18);
}
.contact-form :is(input, textarea)[readonly] { cursor: wait; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .35rem;
}
.contact-submit { min-width: 176px; }
.contact-submit:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
  box-shadow: none;
}
.required-note {
  color: rgba(255, 255, 255, .58);
  font-size: .8rem;
}
.form-privacy {
  margin: .35rem 0 0;
  color: rgba(255, 255, 255, .6) !important;
  font-size: .78rem;
  line-height: 1.5 !important;
}
.submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: contact-spinner .75s linear infinite;
}
.contact-form[aria-busy="true"] .submit-spinner { display: inline-block; }
.form-status {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-top: .85rem;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: .9rem 1rem;
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
}
.form-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-status:focus {
  outline: 3px solid #ffb478;
  outline-offset: 3px;
}
.form-status::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  font-size: .78rem;
  line-height: 1;
}
.form-status[data-state="sending"] {
  border-color: rgba(255, 180, 120, .35);
  background: rgba(246, 139, 46, .12);
}
.form-status[data-state="sending"]::before {
  content: "\2026";
  background: rgba(246, 139, 46, .24);
  color: #ffd0aa;
}
.form-status[data-state="success"] {
  border-color: rgba(92, 211, 151, .38);
  background: rgba(39, 174, 96, .13);
}
.form-status[data-state="success"]::before {
  content: "\2713";
  background: rgba(39, 174, 96, .3);
  color: #baf1d1;
}
.form-status[data-state="error"] {
  border-color: rgba(255, 113, 113, .4);
  background: rgba(220, 53, 69, .13);
}
.form-status[data-state="error"]::before {
  content: "!";
  background: rgba(220, 53, 69, .3);
  color: #ffd0d0;
  font-weight: 800;
}
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
@keyframes contact-spinner { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .form-actions { align-items: stretch; flex-direction: column; }
  .contact-submit { width: 100%; }
  .required-note { text-align: center; }
}

/* CTA Section */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a3a5c 100%);
  overflow: hidden;
  padding: 6rem 0;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23F68B2E' stroke-width='0.3' opacity='0.1'%3E%3Cpath d='M0 0 L60 60 M60 0 L0 60'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(246, 139, 46, 0.15);
  border: 1px solid rgba(246, 139, 46, 0.3);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.cta-title {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--text-light);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.cta-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  margin: 0 0 2.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(246, 139, 46, 0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem; 
  color: var(--muted); 
  border-top: 1px solid var(--border); 
  margin-top: 0;
  background: var(--bg-gray);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  max-height: 40px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.collaboration-section { overflow: hidden; }

.collaboration-marquee {
  overflow: hidden;
  margin-top: 2.5rem;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.hero-panel-copy { margin-top: auto; }
.hero-panel-copy h3 { max-width: 400px; margin: .8rem 0; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(1.8rem, 2.5vw, 2.5rem); line-height: 1.15; }
.hero-panel-copy p { max-width: 390px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.65; }
.hero-panel-path { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: 1.7rem; }
.hero-panel-path div { display: grid; gap: .3rem; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: rgba(255,255,255,.1); padding: .7rem; backdrop-filter: blur(7px); }
.hero-panel-path b { color: #ffad70; font-size: .75rem; }.hero-panel-path span { font-size: .78rem; font-weight: 700; line-height: 1.35; }
@media (max-width: 520px) { .hero-panel-path { grid-template-columns: 1fr; } .hero-panel { min-height: 430px; } }
.hero-card { z-index: 3; }
.hero-panel { background: linear-gradient(180deg, rgba(8,30,62,.45), rgba(8,30,62,.98)), url('assets/Gallery/main.jpg') center/cover no-repeat; }
.hero-panel, .hero-panel h3, .hero-panel p, .hero-panel span { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.55); }
.hero-panel .panel-chip { align-self: flex-start; border: 1px solid rgba(255,255,255,.35); background: rgba(8,30,62,.55); color: #fff; backdrop-filter: blur(10px); }
.hero-panel-path div { background: rgba(255,255,255,.16); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.hero-panel-path b { color: #ffbd86; }
.hero-card {
  z-index: 3;
  isolation: isolate;
  background: #ffffff !important;
  border: 8px solid #ffffff !important;
  box-shadow: 0 28px 72px rgba(11, 45, 89, .24) !important;
}
.hero-panel {
  background:
    linear-gradient(180deg, rgba(8, 30, 62, .28), rgba(8, 30, 62, .92)),
    url("assets/Gallery/main.jpg") center / cover no-repeat !important;
  box-shadow: none;
}

.schools-hero {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 4.5rem;
  background: radial-gradient(circle at 15% 10%, rgba(68, 142, 255, 0.17), transparent 34%), radial-gradient(circle at 85% 85%, rgba(255, 139, 61, 0.17), transparent 32%);
}

.schools-hero::before, .schools-hero::after {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(35, 98, 177, 0.12);
  border-radius: 50%;
  content: '';
}

.schools-hero::before { top: -130px; right: 8%; }
.schools-hero::after { bottom: -160px; left: 8%; }
.schools-hero-content { position: relative; z-index: 1; }

.schools-hero .mini-chip { padding: .25rem .9rem; line-height: 1.2; box-shadow: 0 8px 22px rgba(23, 73, 138, 0.1); }
.schools-hero .mini-chip { margin-bottom: .65rem; }
.schools-hero h1 { margin-top: 0; margin-bottom: .75rem; }
.schools-hero h1 { max-width: 960px; margin-left: auto; margin-right: auto; text-wrap: balance; }
.schools-hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2rem; }
.schools-hero-points span { border: 1px solid rgba(23, 73, 138, 0.14); border-radius: 999px; background: rgba(255,255,255,.72); padding: .55rem .9rem; color: var(--accent); font-size: .88rem; font-weight: 700; box-shadow: 0 8px 18px rgba(23, 73, 138, 0.07); backdrop-filter: blur(8px); }

@media (max-width: 600px) { .schools-hero { padding: 2.75rem 0 3.5rem; } .schools-hero-points { gap: .55rem; } .schools-hero-points span { font-size: .78rem; } }

/* Reusable institutional page hero */
.schools-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); align-items: center; gap: 4rem; }
.competition-marquee { overflow: hidden; margin-top: 2rem; padding: .8rem 0; }
.competition-logo-grid { display: flex; width: max-content; gap: 1rem; animation: competition-logo-scroll 60s linear infinite; }
.competition-marquee:hover .competition-logo-grid { animation-play-state: paused; }
.competition-logo { display: grid; width: 220px; height: 130px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.96); padding: 0; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.competition-logo img { display: block; width: 220px; height: 130px; object-fit: contain; }
@keyframes competition-logo-scroll { to { transform: translateX(calc(-50% - .5rem)); } }
@media (max-width: 760px) { .competition-logo { width: 176px; height: 104px; } .competition-logo img { width: 176px; height: 104px; } }
.schools-hero-grid .schools-hero-content { text-align: left; }
.schools-hero-grid h1 { max-width: 760px; margin-left: 0; }
.schools-hero-grid p { margin-left: 0; }
.schools-hero-grid .schools-hero-points { justify-content: flex-start; }
.schools-hero-cta { display: inline-flex; align-items: center; gap: .65rem; margin-top: 2rem; }
.schools-hero-panel { border: 1px solid rgba(23, 73, 138, .14); border-radius: 26px; background: rgba(255,255,255,.8); padding: 2rem; text-align: left; box-shadow: 0 24px 60px rgba(21, 62, 113, .14); backdrop-filter: blur(14px); }
.schools-hero-image-panel { min-height: 310px; padding: 0; overflow: hidden; }
.schools-hero-image-panel img { display: block; width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.about-intro { background: #f8fbff; }.about-intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }.about-intro h2 { font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(2rem, 3.5vw, 3.2rem); margin: .6rem 0 0; }.about-intro p { margin: 0; color: var(--muted); font-size: 1.15rem; line-height: 1.8; }.vision-mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }.vision-card,.mission-card { position: relative; min-height: 330px; overflow: hidden; border-radius: 28px; padding: 2.5rem; }.vision-card { background: linear-gradient(145deg,#f58738,#ffb167); color:#fff; }.mission-card { background: linear-gradient(145deg,#143b72,#2865b4); color:#fff; }.vision-card span,.mission-card span { font-weight:800; letter-spacing:.14em; text-transform:uppercase; font-size:.78rem; opacity:.84; }.vision-card h2,.mission-card h2 { max-width: 540px; margin: 1.2rem 0 0; font-family:"Space Grotesk",Inter,sans-serif; font-size:clamp(1.55rem,2.5vw,2.3rem); line-height:1.3; }.vision-card i,.mission-card i { position:absolute; right:2rem; bottom:1rem; font-size:6rem; font-style:normal; font-weight:800; opacity:.15; }.about-goals-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; margin-top:2rem; }.about-goals-grid .card b { color:var(--accent); font-size:.85rem; }@media(max-width:760px){.about-intro-grid,.vision-mission-grid,.about-goals-grid{grid-template-columns:1fr;gap:1rem}.vision-card,.mission-card{min-height:270px;padding:1.8rem}}
.about-hero{position:relative;overflow:hidden;padding:7rem 0 5.5rem;background:#092a54;color:#fff}.about-hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1fr .85fr;align-items:center;gap:4rem}.about-hero-orb{position:absolute;border-radius:50%;filter:blur(2px);opacity:.6}.orb-one{width:520px;height:520px;right:-180px;top:-190px;background:radial-gradient(circle,#f58738 0,rgba(245,135,56,0) 70%)}.orb-two{width:420px;height:420px;left:-210px;bottom:-240px;background:radial-gradient(circle,#3275c7 0,rgba(50,117,199,0) 70%)}.about-kicker{display:flex;align-items:center;gap:.6rem;color:#ffbd86;font-size:.8rem;font-weight:800;letter-spacing:.16em;text-transform:uppercase}.about-kicker span{width:32px;height:2px;background:#f58738}.about-hero h1{max-width:700px;margin:1.4rem 0;font-family:"Space Grotesk",Inter,sans-serif;font-size:clamp(3rem,5.3vw,5.7rem);line-height:.98;letter-spacing:-.05em}.about-hero h1 em{color:#ffad70;font-style:normal}.about-hero-copy>p{max-width:610px;color:rgba(255,255,255,.76);font-size:1.12rem;line-height:1.8}.about-hero-actions{display:flex;align-items:center;gap:1.5rem;margin-top:2rem}.about-text-link{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:5px}.about-hero-stats{display:flex;gap:2.3rem;margin-top:3.5rem}.about-hero-stats div{display:grid;gap:.3rem}.about-hero-stats strong{font-family:"Space Grotesk",Inter,sans-serif;font-size:1.45rem}.about-hero-stats span{color:rgba(255,255,255,.6);font-size:.8rem}.about-hero-visual{position:relative;min-height:480px}.about-image-frame{position:absolute;inset:0 0 20px 35px;overflow:hidden;border:1px solid rgba(255,255,255,.2);border-radius:32px;box-shadow:0 30px 80px rgba(0,0,0,.3)}.about-image-frame img{width:100%;height:100%;object-fit:cover}.about-float-card{position:absolute;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(9,42,84,.84);padding:1rem 1.2rem;box-shadow:0 18px 40px rgba(0,0,0,.22);backdrop-filter:blur(12px)}.about-float-top{top:28px;left:-35px;width:210px}.about-float-top small{display:block;color:#ffad70;font-weight:800;text-transform:uppercase;font-size:.65rem;letter-spacing:.1em}.about-float-top b{display:block;margin-top:.4rem;line-height:1.35}.about-float-bottom{right:-25px;bottom:0;width:230px}.about-float-bottom span{color:#ffad70;font-family:"Space Grotesk";font-size:1.4rem;font-weight:800}.about-float-bottom p{margin:.3rem 0 0;color:rgba(255,255,255,.78);font-size:.84rem;line-height:1.5}@media(max-width:760px){.about-hero{padding:5rem 0 4rem}.about-hero-grid{grid-template-columns:1fr;gap:3rem}.about-hero h1{font-size:clamp(2.9rem,14vw,4.5rem)}.about-hero-stats{gap:1rem;justify-content:space-between}.about-hero-visual{min-height:370px}.about-image-frame{left:15px}.about-float-top{left:-5px;top:18px}.about-float-bottom{right:-4px}.about-hero-actions{flex-wrap:wrap}}
.about-hero { padding-top: 4.5rem; }
.about-hero-actions { display: none; }
.about-intro-grid > p { grid-column: auto; max-width: none; margin: 4rem 0 0; text-align: left; font-size: 1.3rem; line-height: 2.05; }
.schools-panel-label { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.schools-hero-panel strong { display: block; margin: .65rem 0 1.4rem; font-family: "Space Grotesk", Inter, sans-serif; font-size: 1.55rem; line-height: 1.25; color: var(--text); }
.schools-panel-list { display: grid; gap: .9rem; }
.schools-panel-list div { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .9rem; }
.schools-panel-list b { display: grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; border-radius: 9px; background: var(--accent); color: #fff; font-size: .75rem; }
@media (max-width: 760px) { .schools-hero-grid { grid-template-columns: 1fr; gap: 2rem; } .schools-hero-grid .schools-hero-content { text-align: center; } .schools-hero-grid h1, .schools-hero-grid p { margin-left: auto; margin-right: auto; } .schools-hero-grid .schools-hero-points { justify-content: center; } }

.collaboration-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: collaboration-scroll 58s linear infinite;
}

.collaboration-marquee:hover .collaboration-track { animation-play-state: paused; }

.collaboration-logo {
  display: grid;
  flex: 0 0 220px;
  height: 130px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(15, 48, 88, 0.1);
  border-radius: 18px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 10px 26px rgba(15, 48, 88, 0.08);
}

.collaboration-logo img { width: 100%; height: 100%; object-fit: contain; }

@keyframes collaboration-scroll { to { transform: translateX(calc(-50% - .5rem)); } }

@media (max-width: 600px) {
  .collaboration-logo { flex-basis: 176px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) { .collaboration-track { animation: none; } }

.institution-showcase {
  margin: 2rem 0 1.5rem;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(10, 35, 70, 0.18);
}

.logo-marquee {
  position: relative;
  margin: 1rem 0 0.75rem;
  overflow: hidden;
  padding: 1rem 0;
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: school-logo-scroll 60s linear infinite;
}

.logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }

.school-logo {
  display: grid;
  flex: 0 0 230px;
  height: 132px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(15, 48, 88, 0.1);
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 10px 26px rgba(15, 48, 88, 0.08);
}

.school-logo img { width: 100%; height: 100%; object-fit: contain; object-position: center; transform: scale(0.84); }

@media (max-width: 600px) {
  .school-logo { flex-basis: 180px; height: 108px; padding: 8px; }
}

@keyframes school-logo-scroll { to { transform: translateX(calc(-50% - .5rem)); } }

@media (prefers-reduced-motion: reduce) { .logo-marquee-track { animation: none; } }

:is(.collaboration-marquee, .logo-marquee, .competition-marquee).marquee-drag-enabled {
  overflow-x: hidden;
  overflow-y: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior-x: contain;
  scroll-behavior: auto !important;
  scrollbar-width: none;
}

:is(.collaboration-marquee, .logo-marquee, .competition-marquee).marquee-drag-enabled::-webkit-scrollbar {
  display: none;
}

.marquee-drag-enabled > :is(.collaboration-track, .logo-marquee-track, .competition-logo-grid) {
  animation: none !important;
  transform: none !important;
  will-change: auto;
}

.marquee-drag-enabled img { -webkit-user-drag: none; user-select: none; }
.marquee-drag-enabled.is-dragging,
.marquee-drag-enabled.is-dragging * { cursor: grabbing !important; }

.marquee-drag-enabled:focus-visible {
  outline: 3px solid rgba(245, 135, 56, .75);
  outline-offset: 4px;
}

.institution-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

.institution-list {
  margin-top: 0.75rem;
}

.logo-marquee + .section-title { margin-top: 0.5rem; }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--muted);
  transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-cta {
  color: var(--accent);
  font-weight: 600;
  transition: transform 0.2s ease;
}

.footer-cta:hover {
  transform: translateX(4px);
}

/* Reveal Animation */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stat Number Animation */
.reveal-stat {
  transition: transform 0.3s ease;
}

.reveal-stat:hover {
  transform: translateY(-4px);
}

.homepage { background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%); }
.home-hero { padding: 5rem 0 3.5rem; }
.home-copy h1 { max-width: 11.5ch; }
.home-copy p { max-width: 620px; }
.home-visual { position: relative; }
.hero-surface {
  position: relative;
  border-radius: 36px;
  padding: 1.2rem;
  min-height: 460px;
  border: 1px solid rgba(245, 130, 32, 0.18);
  background: linear-gradient(135deg, rgba(245, 130, 32, 0.14), rgba(255,255,255,0.96) 56%, rgba(22, 50, 92, 0.05));
  box-shadow: 0 30px 80px rgba(22, 50, 92, 0.12);
  overflow: hidden;
}
.hero-surface::before {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 28px;
  pointer-events: none;
}
.hero-surface::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,130,32,0.24), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.surface-glow {
  position: absolute;
  inset: auto auto 24px -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245,130,32,0.24), transparent 70%);
  filter: blur(16px);
}
.hero-illustration { position: relative; z-index: 1; width: 100%; height: auto; }
.floating-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(245,130,32,0.2);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 12px 25px rgba(22,50,92,0.08);
}
.chip-top { top: 1.2rem; right: 1.2rem; }
.chip-bottom { bottom: 1.2rem; left: 1.2rem; }
.stats-section { padding: 0 0 2.5rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.stat-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245,130,32,0.16);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgba(22, 50, 92, 0.08);
}
.section-soft { background: linear-gradient(180deg, rgba(245,130,32,0.04), rgba(255,255,255,0)); }
.section-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.section-heading { margin-bottom: 2rem; max-width: 760px; }
.section-heading h2 { margin: 0 0 0.7rem; font-size: clamp(1.7rem, 2.3vw, 2.2rem); }
.section-heading p { color: var(--muted); margin: 0; }
.home-grid { display: grid; gap: 1.4rem; align-items: center; }
.two-col { grid-template-columns: 1.1fr 0.9fr; }
.feature-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.feature-item {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
}
.feature-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(245,130,32,0.14);
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.feature-item h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.feature-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.visual-stack { display: grid; gap: 1rem; }
.feature-card {
  padding: 1.4rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #ffffff, #fff8f0);
  box-shadow: 0 20px 45px rgba(22, 50, 92, 0.08);
}
.feature-card-main {
  min-height: 220px;
  background: linear-gradient(135deg, rgba(245,130,32,0.16), rgba(255,255,255,0.95));
}
.program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.program-card, .journey-card, .competition-card, .story-card {
  display: block;
  border-radius: 26px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 16px 38px rgba(22, 50, 92, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.program-card:hover, .journey-card:hover, .competition-card:hover, .story-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 22px 45px rgba(245,130,32,0.15);
}
.program-card h3, .journey-card h3, .competition-card h3, .story-card h3 { margin: 0 0 0.5rem; }
.program-card p, .journey-card p, .competition-card p, .story-card p { margin: 0; color: var(--muted); }
.journey-grid, .competition-grid, .story-grid {
  display: grid;
  gap: 1rem;
}
.journey-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.competition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.journey-card strong {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 1.1rem;
}
.check-list {
  padding-left: 1rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
}
.check-list li { margin-bottom: 0.6rem; }
.quote-card {
  padding: 1.6rem;
  border-radius: 30px;
  background: linear-gradient(135deg, #16325C, #1e436b);
  color: #f9fbff;
  box-shadow: 0 25px 60px rgba(22, 50, 92, 0.16);
}
.quote-card p { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.75; }
.quote-author { color: rgba(255,255,255,0.85); font-weight: 600; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: 24px;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px rgba(22, 50, 92, 0.08);
}
.gallery-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-inner { transform: scale(1.04); }
.gallery-one { background: linear-gradient(135deg, rgba(245,130,32,0.22), rgba(22,50,92,0.2)), linear-gradient(140deg, #ffeddc 0%, #ffe3c0 40%, #f6b66d 100%); }
.gallery-two { background: linear-gradient(135deg, rgba(22,50,92,0.2), rgba(245,130,32,0.16)), linear-gradient(120deg, #fef7f0 0%, #ffdbb8 100%); }
.gallery-three { background: linear-gradient(135deg, rgba(245,130,32,0.2), rgba(22,50,92,0.18)), linear-gradient(120deg, #f5f7fc 0%, #d8e7ff 100%); }
.gallery-item::after {
  content: attr(data-title);
  display: block;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.86);
  color: var(--text);
  font-weight: 600;
  transform: translateY(-100%);
}
.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}
.partner-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.partner-tags span {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}
.cta-section { padding-top: 4rem; }
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--accent), #ffad53);
  color: white;
  box-shadow: 0 30px 70px rgba(245,130,32,0.22);
}
.cta-card h2 { margin: 0; font-size: clamp(1.6rem, 2vw, 2.2rem); }
.cta-card .section-label { color: rgba(255,255,255,0.9); }
.cta-card .btn-secondary { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.25); color: white; }

.section-soft { background: linear-gradient(180deg, rgba(245,130,32,0.04), rgba(255,255,255,0)); }
.section-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.section-heading { margin-bottom: 2rem; max-width: 760px; }
.section-heading h2 { margin: 0 0 0.7rem; font-size: clamp(1.7rem, 2.3vw, 2.2rem); }
.section-heading p { color: var(--muted); margin: 0; }
.program-grid, .journey-grid, .competition-grid, .story-grid {
  display: grid;
  gap: 1rem;
}
.program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.journey-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.competition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.program-card, .journey-card, .competition-card, .story-card {
  display: block;
  border-radius: 26px;
  padding: 1.4rem;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 16px 38px rgba(22, 50, 92, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.program-card:hover, .journey-card:hover, .competition-card:hover, .story-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 22px 45px rgba(245,130,32,0.15);
}
.program-card h3, .journey-card h3, .competition-card h3, .story-card h3 { margin: 0 0 0.5rem; }
.program-card p, .journey-card p, .competition-card p, .story-card p { margin: 0; color: var(--muted); }
.home-grid { display: grid; gap: 1.4rem; align-items: center; }
.two-col { grid-template-columns: 1.1fr 0.9fr; }
.feature-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.feature-item {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
}
.feature-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(245,130,32,0.14);
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.feature-item h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.feature-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.visual-stack { display: grid; gap: 1rem; }
.feature-card {
  padding: 1.4rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #ffffff, #fff8f0);
  box-shadow: 0 20px 45px rgba(22, 50, 92, 0.08);
}
.feature-card-main {
  min-height: 220px;
  background: linear-gradient(135deg, rgba(245,130,32,0.16), rgba(255,255,255,0.95));
}
.check-list {
  padding-left: 1rem;
  margin: 1.2rem 0 0;
  color: var(--muted);
}
.check-list li { margin-bottom: 0.6rem; }
.quote-card {
  padding: 1.6rem;
  border-radius: 30px;
  background: linear-gradient(135deg, #16325C, #1e436b);
  color: #f9fbff;
  box-shadow: 0 25px 60px rgba(22, 50, 92, 0.16);
}
.quote-card p { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.75; }
.quote-author { color: rgba(255,255,255,0.85); font-weight: 600; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: 24px;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px rgba(22, 50, 92, 0.08);
}
.gallery-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}
.gallery-item:hover .gallery-inner { transform: scale(1.04); }
.gallery-one { background: linear-gradient(135deg, rgba(245,130,32,0.22), rgba(22,50,92,0.2)), linear-gradient(140deg, #ffeddc 0%, #ffe3c0 40%, #f6b66d 100%); }
.gallery-two { background: linear-gradient(135deg, rgba(22,50,92,0.2), rgba(245,130,32,0.16)), linear-gradient(120deg, #fef7f0 0%, #ffdbb8 100%); }
.gallery-three { background: linear-gradient(135deg, rgba(245,130,32,0.2), rgba(22,50,92,0.18)), linear-gradient(120deg, #f5f7fc 0%, #d8e7ff 100%); }
.gallery-item::after {
  content: attr(data-title);
  display: block;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.86);
  color: var(--text);
  font-weight: 600;
  transform: translateY(-100%);
}
.partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}
.partner-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.partner-tags span {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
}
.cta-section { padding-top: 4rem; }
.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--accent), #ffad53);
  color: white;
  box-shadow: 0 30px 70px rgba(245,130,32,0.22);
}
.cta-card h2 { margin: 0; font-size: clamp(1.6rem, 2vw, 2.2rem); }
.cta-card .section-label { color: rgba(255,255,255,0.9); }
.cta-card .btn-secondary { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.25); color: white; }

/* Gallery visual journal */
.gallery-editorial-hero {
  --gallery-hero-shift: 0px;
  position: relative;
  min-height: calc(100svh - 80px);
  overflow: hidden;
  background: #071a34;
  color: #fff;
  isolation: isolate;
}

.gallery-editorial-hero-media {
  position: absolute;
  inset: -6%;
  z-index: -3;
  overflow: hidden;
}

.gallery-editorial-hero-media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 54% 54%;
  transform: translate3d(0, var(--gallery-hero-shift), 0) scale(1.035);
  filter: saturate(.94) contrast(1.03);
  will-change: transform;
}

.gallery-editorial-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 17, 36, .94) 0%, rgba(4, 17, 36, .66) 46%, rgba(4, 17, 36, .16) 78%),
    linear-gradient(180deg, rgba(4, 17, 36, .18) 22%, rgba(4, 17, 36, .88) 100%);
}

.gallery-editorial-hero-shade::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.11) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 8.333vw 8.333vw;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}

.gallery-editorial-hero-shell {
  display: flex;
  min-height: calc(100svh - 80px);
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.gallery-editorial-hero-copy { max-width: 1080px; }

.gallery-editorial-eyebrow {
  display: flex;
  max-width: 690px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.8rem);
  color: rgba(255,255,255,.7);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.gallery-editorial-eyebrow::before {
  content: '';
  width: 38px;
  height: 2px;
  flex: 0 0 38px;
  background: var(--accent);
}

.gallery-editorial-eyebrow span { margin-right: auto; }
.gallery-editorial-eyebrow b { color: #fff; font-weight: 700; }

.gallery-editorial-hero h1 {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(4.5rem, 9.6vw, 9.2rem);
  font-weight: 700;
  letter-spacing: -.07em;
  line-height: .83;
}

.gallery-editorial-hero h1 span,
.gallery-editorial-hero h1 em { display: block; }
.gallery-editorial-hero h1 em {
  margin-left: clamp(1rem, 9vw, 9rem);
  color: #ff9a4d;
  font-style: normal;
}

.gallery-editorial-hero-copy > p {
  max-width: 570px;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.75;
}

.gallery-editorial-hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(3rem, 8vh, 6rem);
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 1.25rem;
}

.gallery-editorial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  color: rgba(255,255,255,.68);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery-editorial-meta span { display: flex; align-items: center; gap: .7rem; }
.gallery-editorial-meta span::before { content: '•'; color: var(--accent); }

.gallery-editorial-scroll {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .85rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gallery-editorial-scroll svg {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 50%;
  padding: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: border-color .25s ease, transform .25s ease;
}

.gallery-editorial-scroll:hover { color: #fff; }
.gallery-editorial-scroll:hover svg { border-color: var(--accent); transform: translateY(4px); }

.visual-journal {
  scroll-margin-top: 78px;
  overflow: clip;
  background: #f3efe7;
}

.visual-journal-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 1.5rem;
  padding-top: clamp(6rem, 10vw, 10rem);
  padding-bottom: clamp(6rem, 10vw, 9rem);
}

.visual-journal-label {
  grid-column: 1 / span 2;
  align-self: start;
  border-top: 2px solid var(--accent);
  padding-top: .9rem;
  color: var(--text);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.visual-journal-intro h2 {
  grid-column: 3 / span 6;
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(3.2rem, 6.6vw, 6.9rem);
  letter-spacing: -.065em;
  line-height: .91;
}

.visual-journal-intro h2 em { color: var(--accent); font-style: normal; }
.visual-journal-intro > p {
  grid-column: 10 / span 3;
  margin: 0;
  color: #596477;
  font-size: 1rem;
  line-height: 1.8;
}

.journal-chapter {
  position: relative;
  padding: clamp(5.5rem, 9vw, 9rem) 0 clamp(7rem, 12vw, 12rem);
}

.journal-chapter-discover { background: #f3efe7; }
.journal-chapter-build { background: #0b2345; color: #fff; }
.journal-chapter-achieve { background: #fbfcfe; }

.journal-chapter-heading {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(22, 50, 92, .24);
  padding-top: 1.4rem;
}

.journal-chapter-build .journal-chapter-heading { border-color: rgba(255,255,255,.25); }
.journal-chapter-kicker {
  grid-column: 1 / span 2;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.journal-chapter-heading h3 {
  grid-column: 3 / span 5;
  margin: -.2rem 0 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  letter-spacing: -.065em;
  line-height: .9;
}

.journal-chapter-heading p {
  grid-column: 9 / span 4;
  max-width: 420px;
  margin: 0;
  color: #667085;
  line-height: 1.75;
}

.journal-chapter-build .journal-chapter-heading p { color: rgba(255,255,255,.68); }

.journal-composition {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(3rem, 6vw, 6rem) clamp(1rem, 2vw, 2rem);
}

.journal-frame { min-width: 0; margin: 0; }
.journal-frame-link {
  position: relative;
  display: block;
  min-width: 0;
  color: inherit;
  outline: none;
}

.journal-frame-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dfe5eb;
}

.journal-frame-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}

.journal-frame img,
.journal-finale img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--frame-position, center);
  transition: transform .75s cubic-bezier(.16, 1, .3, 1), filter .45s ease;
}

.journal-frame-number {
  position: absolute;
  top: .85rem;
  left: .85rem;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: rgba(7, 26, 52, .88);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
}

.journal-frame-view {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(7, 26, 52, .82);
  padding: .65rem .9rem;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(10px);
  backdrop-filter: blur(10px);
  transition: opacity .3s ease, transform .3s ease;
  text-transform: uppercase;
}

.journal-frame-view b { color: #ffab6b; font-size: .9rem; }
.journal-frame figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(22, 50, 92, .2);
  padding-top: .85rem;
}

.journal-frame figcaption strong {
  color: var(--text);
  font-size: .9rem;
  font-weight: 800;
}

.journal-frame figcaption span {
  color: #7a8494;
  font-size: .72rem;
  text-align: right;
}

.journal-chapter-build .journal-frame figcaption { border-color: rgba(255,255,255,.2); }
.journal-chapter-build .journal-frame figcaption strong { color: #fff; }
.journal-chapter-build .journal-frame figcaption span { color: rgba(255,255,255,.58); }

.journal-frame-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.journal-frame-link:focus-visible .journal-frame-view { opacity: 1; transform: none; }

.journal-frame-discover-lead { grid-column: 1 / span 8; }
.journal-frame-discover-lead .journal-frame-media { aspect-ratio: 16 / 10; }
.journal-frame-discover-detail { grid-column: 9 / span 4; margin-top: clamp(4rem, 8vw, 8rem); }
.journal-frame-discover-detail .journal-frame-media { aspect-ratio: 4 / 5; }
.journal-frame-discover-support { grid-column: 2 / span 4; }
.journal-frame-discover-wide { grid-column: 7 / span 6; }
.journal-frame-discover-wide .journal-frame-media { aspect-ratio: 3 / 2; }

.journal-frame-build-portrait { grid-column: 1 / span 4; }
.journal-frame-build-portrait .journal-frame-media { aspect-ratio: 3 / 4; }
.journal-frame-build-lead { grid-column: 6 / span 7; margin-top: clamp(3rem, 6vw, 6rem); }
.journal-frame-build-lead .journal-frame-media { aspect-ratio: 16 / 10; }
.journal-frame-build-wide { grid-column: 1 / span 6; }
.journal-frame-build-wide .journal-frame-media { aspect-ratio: 3 / 2; }
.journal-frame-build-support { grid-column: 8 / span 5; margin-top: -2rem; }
.journal-frame-build-support .journal-frame-media { aspect-ratio: 4 / 5; }

.journal-frame-achieve-first { grid-column: 1 / span 5; }
.journal-frame-achieve-second { grid-column: 7 / span 6; margin-top: clamp(3rem, 6vw, 6rem); }
.journal-frame-achieve-second .journal-frame-media { aspect-ratio: 16 / 10; }
.journal-frame-achieve-wide { grid-column: 1 / span 7; }
.journal-frame-achieve-wide .journal-frame-media { aspect-ratio: 16 / 10; }
.journal-frame-achieve-detail { grid-column: 9 / span 4; margin-top: -2rem; }
.journal-frame-achieve-detail .journal-frame-media { aspect-ratio: 4 / 5; }

/* Gallery motion stories */
.journal-video-interlude {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #050f20;
  padding: clamp(6rem, 10vw, 10rem) 0 clamp(7rem, 11vw, 11rem);
  color: #fff;
}

.journal-video-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.journal-video-atmosphere::before {
  content: '';
  position: absolute;
  top: -28rem;
  right: -18rem;
  width: 58rem;
  height: 58rem;
  border: 1px solid rgba(246,139,46,.26);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246,139,46,.15), rgba(246,139,46,0) 64%);
}

.journal-video-atmosphere::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 7vw 7vw;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.journal-video-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
  margin-bottom: clamp(4rem, 7vw, 7rem);
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 1.4rem;
}

.journal-video-index {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  color: #ff9a4d;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.journal-video-index b {
  color: rgba(255,255,255,.5);
  font-size: .64rem;
  font-weight: 700;
}

.journal-video-heading h3 {
  grid-column: 3 / span 6;
  margin: -.25rem 0 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(3.4rem, 6.2vw, 6.5rem);
  letter-spacing: -.065em;
  line-height: .88;
}

.journal-video-heading h3 span,
.journal-video-heading h3 em { display: block; }
.journal-video-heading h3 em { color: #ff9a4d; font-style: normal; }

.journal-video-heading > p {
  grid-column: 9 / span 4;
  max-width: 420px;
  margin: 0;
  color: rgba(255,255,255,.66);
  line-height: 1.75;
}

.journal-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 3rem);
}

.journal-video-card { min-width: 0; }
.journal-video-shorts {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.9rem, 1.6vw, 1.5rem);
}

.journal-video-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #020916;
}

.journal-video-media-featured { aspect-ratio: 16 / 9; }
.journal-video-media-short { aspect-ratio: 9 / 16; }

.journal-video-trigger {
  position: absolute;
  inset: 0;
  display: block;
  color: #fff;
  outline: none;
}

.journal-video-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}

.journal-video-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.92) contrast(1.03);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .4s ease;
}

.journal-video-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,9,22,.18), transparent 42%, rgba(2,9,22,.72)),
    linear-gradient(90deg, rgba(2,9,22,.3), transparent 45%);
}

.journal-video-screen-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  border-left: 2px solid #ff9a4d;
  padding-left: .75rem;
  color: rgba(255,255,255,.66);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.journal-video-screen-label b { color: #fff; font-weight: 800; }
.journal-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  width: clamp(58px, 6vw, 82px);
  height: clamp(58px, 6vw, 82px);
  place-items: center;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 50%;
  background: rgba(5,15,32,.58);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(12px);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}

.journal-video-play svg {
  width: 25px;
  height: 25px;
  margin-left: 3px;
  fill: #fff;
}

.journal-video-card-short .journal-video-play {
  width: clamp(52px, 4.5vw, 66px);
  height: clamp(52px, 4.5vw, 66px);
}

.journal-video-trigger:focus-visible { outline: 3px solid #ff9a4d; outline-offset: 5px; }
.journal-video-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.journal-video-card-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 1rem;
}

.journal-video-card-number {
  color: #ff9a4d;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.journal-video-card-copy h4 {
  margin: -.15rem 0 .45rem;
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.journal-video-card-copy p {
  margin: 0;
  color: rgba(255,255,255,.52);
  font-size: .79rem;
  line-height: 1.65;
}

.journal-video-source {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255,255,255,.66);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.journal-video-source span { color: #ff9a4d; font-size: .85rem; }
.journal-video-source:hover { color: #fff; }
.journal-video-source:focus-visible { outline: 3px solid #ff9a4d; outline-offset: 4px; }

.journal-video-card-short .journal-video-card-copy {
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
}

.journal-video-card-short .journal-video-source {
  grid-column: 2;
  justify-self: start;
}

.journal-video-card-short .journal-video-card-copy h4 { font-size: clamp(1rem, 1.45vw, 1.3rem); }
.journal-video-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .journal-video-trigger:hover img { transform: scale(1.035); filter: saturate(1.04) contrast(1.06); }
  .journal-video-trigger:hover .journal-video-play {
    border-color: #ff9a4d;
    background: rgba(246,139,46,.88);
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@media (max-width: 1023px) {
  .journal-video-heading { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-video-index { grid-column: 1 / -1; }
  .journal-video-heading h3 { grid-column: 1; }
  .journal-video-heading > p { grid-column: 2; }
  .journal-video-layout { grid-template-columns: 1fr; gap: 4.5rem; }
  .journal-video-shorts { gap: 1.25rem; }
}

@media (max-width: 700px) {
  .journal-video-interlude { padding: 5rem 0 6rem; }
  .journal-video-atmosphere::after { background-size: 24vw 24vw; }
  .journal-video-heading { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 3.5rem; }
  .journal-video-index,
  .journal-video-heading h3,
  .journal-video-heading > p { grid-column: 1; }
  .journal-video-heading h3 { font-size: clamp(3.1rem, 14.5vw, 4.6rem); }
  .journal-video-heading > p { max-width: 34rem; }
  .journal-video-layout { gap: 4rem; }
  .journal-video-shorts { gap: 1rem; }
  .journal-video-screen-label { top: .8rem; left: .8rem; }
  .journal-video-card-copy { grid-template-columns: auto minmax(0, 1fr); gap: .85rem; }
  .journal-video-card-copy .journal-video-source { grid-column: 2; justify-self: start; }
}

@media (max-width: 520px) {
  .journal-video-shorts {
    width: min(100%, 390px);
    grid-template-columns: 1fr;
    justify-self: center;
    gap: 4rem;
  }
}

.journal-finale {
  position: relative;
  margin: clamp(7rem, 13vw, 13rem) 0 0;
}

.journal-finale-link {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  outline: none;
}

.journal-finale-media { display: block; aspect-ratio: 21 / 9; background: #dfe5eb; }
.journal-finale-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,18,38,.82), rgba(4,18,38,.12) 70%), linear-gradient(180deg, transparent 50%, rgba(4,18,38,.66));
}

.journal-finale-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.5);
  padding-top: .55rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.journal-finale-copy {
  position: absolute;
  left: clamp(1.5rem, 5vw, 5rem);
  bottom: clamp(1.5rem, 4vw, 4rem);
  display: grid;
  gap: .85rem;
}

.journal-finale-copy small {
  color: #ffb57d;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.journal-finale-copy strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  letter-spacing: -.055em;
  line-height: .95;
}

.journal-finale-copy b { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.journal-finale-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }

.journal-endnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(22,50,92,.22);
  padding: clamp(3rem, 6vw, 5rem) 0 1.4rem;
}

.journal-endnote p {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.035em;
}

.journal-endnote a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--text);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.journal-endnote a span { color: var(--accent); font-size: 1rem; }

body.journal-lightbox-open { overflow: hidden; }
.journal-lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  background: #050f20;
  padding: 0;
  color: #fff;
  overflow: hidden;
}

.journal-lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  animation: journal-lightbox-in .3s ease both;
}

.journal-lightbox::backdrop { background: rgba(2,8,18,.94); }
.journal-lightbox-topbar {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
  padding: max(1rem, env(safe-area-inset-top)) clamp(1rem, 3vw, 2.5rem) 1rem;
}

.journal-lightbox-counter {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.journal-lightbox-close {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.journal-lightbox-close svg,
.journal-lightbox-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.journal-lightbox-close:focus-visible,
.journal-lightbox-nav:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.journal-lightbox-stage {
  display: grid;
  min-height: 0;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: clamp(.5rem, 2vw, 2rem);
  padding: clamp(1rem, 2vw, 2rem);
}

.journal-lightbox-figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 1rem;
  margin: 0;
}

.journal-lightbox-image-wrap {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
}

.journal-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 175px);
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0,0,0,.36);
}

.journal-lightbox-figure.is-switching .journal-lightbox-image { animation: journal-image-in .32s ease both; }
.journal-lightbox-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: .85rem;
}

.journal-lightbox-category {
  color: #ffad70;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.journal-lightbox-figure figcaption strong {
  color: #fff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  text-align: right;
}

.journal-lightbox-nav {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.journal-lightbox-nav:hover { border-color: var(--accent); background: rgba(246,139,46,.12); }
.journal-lightbox-prev:hover { transform: translateX(-3px); }
.journal-lightbox-next:hover { transform: translateX(3px); }

@keyframes journal-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes journal-image-in {
  from { opacity: .25; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@media (hover: hover) and (pointer: fine) {
  .journal-frame-link:hover .journal-frame-view { opacity: 1; transform: none; }
  .journal-frame-link:hover img,
  .journal-finale-link:hover img { transform: scale(1.035); }
}

@media (max-width: 1023px) {
  .visual-journal-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visual-journal-label { grid-column: 1 / -1; max-width: 210px; }
  .visual-journal-intro h2 { grid-column: 1 / -1; }
  .visual-journal-intro > p { grid-column: 2; }
  .journal-chapter-heading { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-chapter-kicker { grid-column: 1 / -1; }
  .journal-chapter-heading h3 { grid-column: 1; }
  .journal-chapter-heading p { grid-column: 2; }
  .journal-composition { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 1.25rem; }
  .journal-frame-discover-lead,
  .journal-frame-discover-detail,
  .journal-frame-discover-support,
  .journal-frame-discover-wide,
  .journal-frame-build-portrait,
  .journal-frame-build-lead,
  .journal-frame-build-wide,
  .journal-frame-build-support,
  .journal-frame-achieve-first,
  .journal-frame-achieve-second,
  .journal-frame-achieve-wide,
  .journal-frame-achieve-detail {
    grid-column: auto;
    margin-top: 0;
  }
  .journal-frame-media,
  .journal-frame-discover-lead .journal-frame-media,
  .journal-frame-discover-detail .journal-frame-media,
  .journal-frame-discover-wide .journal-frame-media,
  .journal-frame-build-portrait .journal-frame-media,
  .journal-frame-build-lead .journal-frame-media,
  .journal-frame-build-wide .journal-frame-media,
  .journal-frame-build-support .journal-frame-media,
  .journal-frame-achieve-second .journal-frame-media,
  .journal-frame-achieve-wide .journal-frame-media,
  .journal-frame-achieve-detail .journal-frame-media { aspect-ratio: 4 / 3; }
  .journal-frame-build-portrait .journal-frame-media { aspect-ratio: 3 / 4; }
  .journal-finale-media { aspect-ratio: 16 / 9; }
}

@media (max-width: 700px) {
  .gallery-editorial-hero { min-height: calc(100svh - 72px); }
  .gallery-editorial-hero-media { inset: -3%; }
  .gallery-editorial-hero-media img { height: 106%; object-position: 58% 52%; }
  .gallery-editorial-hero-shade {
    background: linear-gradient(180deg, rgba(4,17,36,.2) 10%, rgba(4,17,36,.72) 52%, rgba(4,17,36,.98) 100%);
  }
  .gallery-editorial-hero-shade::after { opacity: .14; background-size: 25vw 25vw; }
  .gallery-editorial-hero-shell { min-height: calc(100svh - 72px); padding-top: 6rem; padding-bottom: 1.5rem; }
  .gallery-editorial-eyebrow { max-width: none; margin-bottom: 1.6rem; font-size: .64rem; }
  .gallery-editorial-hero h1 { font-size: clamp(3.7rem, 17vw, 5.6rem); line-height: .86; }
  .gallery-editorial-hero h1 em { margin-left: 0; }
  .gallery-editorial-hero-copy > p { max-width: 32rem; margin-top: 1.65rem; font-size: .92rem; }
  .gallery-editorial-hero-foot { align-items: flex-start; flex-direction: column; margin-top: 2.5rem; padding-top: 1rem; }
  .gallery-editorial-meta { gap: .55rem 1rem; font-size: .62rem; }
  .gallery-editorial-scroll { align-self: flex-end; font-size: .66rem; }
  .visual-journal-intro { grid-template-columns: 1fr; gap: 2rem; padding-top: 5rem; padding-bottom: 5rem; }
  .visual-journal-label,
  .visual-journal-intro h2,
  .visual-journal-intro > p { grid-column: 1; }
  .visual-journal-intro > p { max-width: 34rem; }
  .journal-chapter { padding: 4.5rem 0 6rem; }
  .journal-chapter-heading { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 3rem; }
  .journal-chapter-kicker,
  .journal-chapter-heading h3,
  .journal-chapter-heading p { grid-column: 1; }
  .journal-chapter-heading h3 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .journal-composition { grid-template-columns: 1fr; gap: 3rem; }
  .journal-frame-discover-lead,
  .journal-frame-discover-detail,
  .journal-frame-discover-support,
  .journal-frame-discover-wide,
  .journal-frame-build-portrait,
  .journal-frame-build-lead,
  .journal-frame-build-wide,
  .journal-frame-build-support,
  .journal-frame-achieve-first,
  .journal-frame-achieve-second,
  .journal-frame-achieve-wide,
  .journal-frame-achieve-detail { grid-column: 1; }
  .journal-frame-media,
  .journal-frame-discover-lead .journal-frame-media,
  .journal-frame-discover-detail .journal-frame-media,
  .journal-frame-discover-wide .journal-frame-media,
  .journal-frame-build-lead .journal-frame-media,
  .journal-frame-build-wide .journal-frame-media,
  .journal-frame-build-support .journal-frame-media,
  .journal-frame-achieve-second .journal-frame-media,
  .journal-frame-achieve-wide .journal-frame-media,
  .journal-frame-achieve-detail .journal-frame-media { aspect-ratio: 4 / 3; }
  .journal-frame-build-portrait .journal-frame-media { aspect-ratio: 3 / 4; }
  .journal-frame figcaption { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .journal-frame figcaption span { text-align: left; }
  .journal-frame-view { display: none; }
  .journal-frame-number { top: .7rem; left: .7rem; width: 34px; height: 34px; }
  .journal-finale { margin-top: 6rem; }
  .journal-finale-media { aspect-ratio: 3 / 2; }
  .journal-finale-copy { left: 1.25rem; bottom: 1.25rem; }
  .journal-finale-copy strong { font-size: clamp(2rem, 11vw, 3.4rem); }
  .journal-finale-copy b { display: none; }
  .journal-finale-number { top: 1rem; right: 1rem; }
  .journal-endnote { align-items: flex-start; flex-direction: column; gap: 1.25rem; }
  .journal-lightbox-topbar { min-height: 64px; }
  .journal-lightbox-close span { display: none; }
  .journal-lightbox-stage {
    position: relative;
    display: block;
    padding: 1rem 1rem calc(5.2rem + env(safe-area-inset-bottom));
  }
  .journal-lightbox-figure { height: 100%; gap: .8rem; }
  .journal-lightbox-image { max-height: calc(100dvh - 205px); }
  .journal-lightbox-figure figcaption { align-items: flex-start; flex-direction: column; gap: .3rem; }
  .journal-lightbox-figure figcaption strong { text-align: left; }
  .journal-lightbox-nav {
    position: fixed;
    z-index: 2;
    bottom: max(1rem, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }
  .journal-lightbox-prev { left: 1rem; }
  .journal-lightbox-next { right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-editorial-hero-media img { transform: none !important; will-change: auto; }
  .journal-frame img,
  .journal-finale img,
  .journal-video-trigger img { transform: none !important; transition: none; }
  .journal-video-play { transition: none; }
  .journal-lightbox[open],
  .journal-lightbox-figure.is-switching .journal-lightbox-image { animation: none; }
}

@keyframes mobileNavIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; z-index: 2; }
  .nav-links.open {
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: .85rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 24px 48px rgba(22, 50, 92, .16);
    animation: mobileNavIn .28s ease both;
  }
  .nav-links.open a {
    width: 100%;
    padding: .65rem .75rem;
    border-radius: 12px;
  }
  .nav-links.open a:hover,
  .nav-links.open a.active { background: var(--bg-soft); }
  .nav-links.open .nav-cta {
    justify-content: center;
    margin-top: .35rem;
    color: #fff;
  }
  .nav-links.open .nav-cta::after { display: none; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 1050px) {
  .hero-bottom {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 1.35rem;
    padding-right: 0;
  }
  .hero-editorial .hero-actions { justify-content: flex-start; }
}

@media (max-width: 960px) {
  .about-hero-grid,
  .schools-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-hero-grid > *,
  .schools-hero-grid > *,
  .hero-grid > *,
  .contact-wrap > * { min-width: 0; }
  .schools-hero-grid .schools-hero-content { text-align: center; }
  .schools-hero-grid h1,
  .schools-hero-grid p { margin-left: auto; margin-right: auto; }
  .schools-hero-grid .schools-hero-points { justify-content: center; }
  .schools-hero-image-panel { min-height: 0; }
  .schools-hero-image-panel img { height: 310px; min-height: 0; }
  .about-intro-grid > p { margin-top: 0; }
  .about-hero-visual {
    display: grid;
    gap: .75rem;
    min-height: 0;
  }
  .about-image-frame {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .about-float-card,
  .about-float-top,
  .about-float-bottom {
    position: relative;
    inset: auto;
    width: auto;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .two-col,
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-bottom {
    grid-template-columns: 1fr;
    align-content: end;
    gap: 1.35rem;
    padding-right: 0;
  }
  .hero-editorial .hero-actions { justify-content: flex-start; }
  .contact-wrap .form-card { grid-column: auto; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .competition-grid,
  .story-grid,
  .gallery-grid,
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .container { width: min(1280px, calc(100% - 2rem)); }
  .home-hero { padding-top: 3rem; }
  .stats-grid,
  .program-grid,
  .journey-grid,
  .competition-grid,
  .story-grid,
  .gallery-grid,
  .grid-2,
  .grid-3,
  .story-band { grid-template-columns: 1fr; }
  .hero.hero-editorial {
    min-height: calc(100svh - 80px);
    padding: 2rem 0 4.25rem;
  }
  .hero-editorial-inner {
    grid-template-rows: auto auto 1fr;
    min-height: calc(100svh - 80px - 6.25rem);
  }
  .hero-title-wrap { padding: 1.9rem 0 2.15rem; }
  .hero.hero-editorial h1 {
    font-size: clamp(3.15rem, 14.2vw, 4.85rem);
    line-height: .86;
    letter-spacing: -.06em;
  }
  .hero-title-accent { margin-left: clamp(.45rem, 4vw, 1.5rem); }
  .hero-title-indent { margin-left: clamp(.2rem, 2vw, .75rem); }
  .hero-bottom { gap: 1.15rem; }
  .hero-editorial .hero-lead {
    max-width: 36rem;
    font-size: .98rem;
    line-height: 1.65;
  }
  .hero-media img { object-position: 61% 48%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(13,31,58,.74) 0%, rgba(13,31,58,.66) 35%, rgba(13,31,58,.96) 100%),
      linear-gradient(90deg, rgba(13,31,58,.96) 0%, rgba(13,31,58,.38) 100%);
  }
  .hero-scroll-cue { right: 1rem; bottom: 1rem; }
  .hero-scroll-cue span { display: none; }
  .page-hero h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  .section { padding: 3.75rem 0; }
  .cta-card { padding: 1.4rem; }
  .about-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .about-hero-stats div { min-width: 0; }
  .footer { padding: 3rem 0 1.75rem; }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 1.35rem; }
  .footer-links { gap: .75rem 1.1rem; }
  .footer-bottom { gap: 1rem; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .about-hero { padding: 3.75rem 0; }
  .about-hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .about-hero-visual {
    display: grid;
    gap: .75rem;
    min-height: 0;
  }
  .about-image-frame {
    position: relative;
    inset: auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
  .about-float-card,
  .about-float-top,
  .about-float-bottom {
    position: relative;
    inset: auto;
    width: auto;
  }
  .schools-hero-image-panel img { height: 240px; }
}

@media (max-width: 520px) {
  .brand-text { font-size: 1.05rem; }
  .hero-editorial .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
  .hero-editorial .hero-actions { align-items: stretch; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .hero-kicker { gap: .65rem; font-size: .7rem; letter-spacing: .16em; }
  .hero-kicker small { display: none; }
  .hero-kicker-line { width: 36px; flex-basis: 36px; }
  .hero.hero-editorial h1 { font-size: clamp(3rem, 14.4vw, 3.9rem); }
  .hero-title-accent::after { right: -.12em; }
  .hero-text-link { justify-self: start; }
}

@media (hover: none) {
  .hero-card { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .collaboration-track,
  .logo-marquee-track,
  .competition-logo-grid {
    animation: none !important;
    transform: none !important;
  }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
