:root {
  --navy-950: #06111f;
  --navy-900: #071426;
  --navy-800: #0b2039;
  --blue-700: #16446f;
  --blue-500: #2d75aa;
  --red-500: #df2f35;
  --red-400: #ef4a50;
  --white: #ffffff;
  --cloud: #f2f5f7;
  --steel-200: #d7dfe5;
  --steel-400: #93a1ad;
  --ink: #142232;
  --max: 1240px;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 999; left: 1rem; top: 1rem; padding: .75rem 1rem;
  background: var(--white); color: var(--navy-900); transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed; z-index: 50; inset: 0 0 auto; height: 88px; padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--white); border-bottom: 1px solid rgba(255,255,255,.16);
  transition: background .25s ease, height .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { height: 74px; background: rgba(6,17,31,.95); box-shadow: 0 8px 28px rgba(2,8,18,.18); backdrop-filter: blur(14px); }
.brand { display: flex; gap: .9rem; align-items: center; color: var(--white); text-decoration: none; }
.brand-mark { font-size: 2rem; font-weight: 900; letter-spacing: -.08em; line-height: 1; }
.brand-mark > span { color: var(--red-400); }
.brand-name { padding-left: .8rem; border-left: 1px solid rgba(255,255,255,.35); font-size: .7rem; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); }
.site-nav a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .86rem; font-weight: 700; letter-spacing: .02em; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }
.site-nav .nav-cta { padding: .72rem 1rem; color: var(--white); border: 1px solid rgba(255,255,255,.45); }
.site-nav .nav-cta:hover { background: var(--white); color: var(--navy-900); }
.menu-toggle { display: none; background: transparent; border: 0; padding: .6rem; }
.menu-toggle > span:not(.sr-only) { display: block; width: 25px; height: 2px; background: var(--white); margin: 5px; }

.hero {
  position: relative; min-height: 790px; height: min(930px, 100svh); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: var(--navy-900);
}
.hero-media { position: absolute; inset: 0; background: url("eci-school-systems-hero.webp") center / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,14,27,.97) 0%, rgba(4,14,27,.83) 35%, rgba(4,14,27,.28) 68%, rgba(4,14,27,.15) 100%), linear-gradient(0deg, rgba(4,14,27,.65) 0%, transparent 42%); }
.hero-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(90deg, black, transparent 67%); }
.hero-content { position: relative; z-index: 2; width: min(820px, 100%); padding: 6rem var(--pad) 9rem; margin-top: 2.5rem; }
.eyebrow, .section-kicker { margin: 0 0 1.25rem; color: var(--red-500); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3.4rem, 8vw, 7.25rem); line-height: .88; letter-spacing: -.065em; font-weight: 900; max-width: 900px; }
.hero h1 em { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.88); font-style: normal; }
.hero-lede { max-width: 660px; margin: 2rem 0 0; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; gap: .7rem; min-height: 52px; padding: .85rem 1.25rem; text-decoration: none; font-size: .9rem; font-weight: 800; }
.button-primary { background: var(--red-500); color: var(--white); }
.button-primary:hover { background: var(--red-400); }
.button-secondary { border: 1px solid rgba(255,255,255,.4); color: var(--white); }
.button-secondary:hover { background: rgba(255,255,255,.1); }
.hero-proof { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 760px; background: var(--white); color: var(--ink); }
.hero-proof > div { min-height: 112px; padding: 1.4rem; display: flex; gap: .7rem; flex-direction: column; justify-content: center; border-right: 1px solid var(--steel-200); }
.hero-proof > div:last-child { border-right: 0; }
.hero-proof strong { font-size: 1.6rem; line-height: 1; letter-spacing: -.04em; color: var(--navy-900); }
.hero-proof span { font-size: .75rem; font-weight: 700; line-height: 1.3; color: #5a6772; }

.section-shell { width: min(var(--max), calc(100% - 2 * var(--pad))); margin-inline: auto; }
.intro { display: grid; grid-template-columns: .72fr 2fr; gap: 5rem; padding-block: clamp(6rem, 10vw, 10rem); }
.intro-copy { display: grid; grid-template-columns: 1.35fr .75fr; gap: 4rem; align-items: end; }
.intro h2, .section-heading h2, .markets h2, .approach h2, .about h2, .contact h2 { margin: 0; color: var(--navy-900); font-size: clamp(2.3rem, 4.8vw, 4.5rem); line-height: 1.02; letter-spacing: -.055em; }
.intro-copy p { margin: 0; color: #52606c; font-size: 1.05rem; }

.systems { padding-block: clamp(5rem, 9vw, 9rem); background: var(--navy-900); color: var(--white); }
.section-kicker.light { color: var(--red-400); }
.section-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 6rem; align-items: end; margin-bottom: 3.5rem; }
.section-heading h2, .approach h2, .contact h2 { color: var(--white); }
.section-heading > p { color: rgba(255,255,255,.65); margin: 0; max-width: 480px; }
.systems-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.system-card { min-height: 320px; padding: clamp(1.5rem, 3vw, 2.25rem); border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; gap: 2rem; transition: background .25s ease, transform .25s ease; }
.system-card:hover { background: var(--navy-800); transform: translateY(-3px); }
.system-card.featured { grid-row: span 2; min-height: 640px; justify-content: space-between; background: var(--blue-700); }
.card-number { color: var(--red-400); font-size: .78rem; letter-spacing: .12em; font-weight: 800; }
.card-label { margin: 0 0 1rem; color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.system-card h3 { margin: auto 0 0; max-width: 360px; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.08; letter-spacing: -.035em; }
.featured h3 { margin-top: 0; font-size: clamp(2.15rem, 3.8vw, 3.5rem); }
.system-card p { margin: .8rem 0 0; color: rgba(255,255,255,.64); }
.system-card ul { padding: 0; margin: 2rem 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.system-card li { padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .84rem; font-weight: 700; }

.markets { padding-block: clamp(6rem, 10vw, 10rem); }
.markets-intro { display: grid; grid-template-columns: .72fr 2fr; gap: 5rem; margin-bottom: 4rem; }
.markets-intro .section-kicker { padding-top: .6rem; }
.markets h2 { max-width: 850px; }
.market-list { border-top: 2px solid var(--navy-900); }
.market-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 2rem; align-items: center; padding: 1.8rem 0; border-bottom: 1px solid #bdc8d0; }
.market-row > span { font-size: .76rem; font-weight: 900; color: var(--red-500); }
.market-row h3 { margin: 0 0 .3rem; font-size: 1.4rem; letter-spacing: -.025em; }
.market-row p { max-width: 760px; margin: 0; color: #61707d; }
.market-row b { align-self: start; padding: .3rem .55rem; background: var(--red-500); color: var(--white); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

.approach { padding-block: clamp(6rem, 10vw, 10rem); background: var(--blue-700); color: var(--white); }
.approach-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(4rem, 9vw, 9rem); }
.approach-copy { position: sticky; top: 130px; align-self: start; }
.approach-copy > p:not(.section-kicker) { max-width: 540px; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.text-link { display: inline-flex; gap: .7rem; margin-top: 1.5rem; color: var(--white); text-underline-offset: 6px; font-weight: 800; }
.process-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.35); }
.process-list li { display: grid; grid-template-columns: 70px 1fr; gap: 1rem; padding: 2.2rem 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.process-list li > span { color: var(--red-400); font-size: .75rem; font-weight: 900; }
.process-list h3 { margin: 0; font-size: 1.55rem; letter-spacing: -.03em; }
.process-list p { margin: .45rem 0 0; color: rgba(255,255,255,.7); }

.about { padding-block: clamp(5rem, 9vw, 9rem); }
.about-panel { display: grid; grid-template-columns: .72fr 2fr; min-height: 560px; background: var(--white); box-shadow: 0 20px 70px rgba(15,39,64,.1); }
.about-year { padding: 3rem; background: var(--navy-900); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.about-year span { color: var(--red-400); font-size: .8rem; letter-spacing: .2em; font-weight: 900; }
.about-year strong { display: block; writing-mode: vertical-rl; transform: rotate(180deg); font-size: clamp(4.5rem, 9vw, 8.5rem); line-height: .78; letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.75); }
.about-copy { padding: clamp(2rem, 7vw, 6rem); }
.about-copy p:not(.section-kicker) { max-width: 760px; color: #596774; font-size: 1.05rem; }
.about-points { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.about-points span { padding: .55rem .8rem; border: 1px solid var(--steel-200); color: var(--navy-800); font-size: .78rem; font-weight: 800; }

.contact { position: relative; overflow: hidden; background: var(--navy-950); color: var(--white); }
.contact-lines { position: absolute; inset: 0; opacity: .16; background: repeating-linear-gradient(125deg, transparent 0 70px, rgba(255,255,255,.12) 71px 72px); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 6rem; padding-block: clamp(6rem, 10vw, 10rem); }
.contact-copy > p:last-child { max-width: 620px; color: rgba(255,255,255,.65); font-size: 1.05rem; }
.contact-actions { background: var(--white); color: var(--ink); }
.contact-actions a { display: flex; flex-direction: column; padding: 1.35rem 1.6rem; text-decoration: none; border-bottom: 1px solid var(--steel-200); transition: background .2s ease, color .2s ease; }
.contact-actions a:last-child { border-bottom: 0; }
.contact-actions a:hover { background: var(--cloud); }
.contact-actions .contact-primary { padding-block: 1.8rem; background: var(--red-500); color: var(--white); }
.contact-actions .contact-primary:hover { background: var(--red-400); }
.contact-actions span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 900; opacity: .65; }
.contact-actions strong { margin-top: .3rem; font-size: clamp(1rem, 2.2vw, 1.35rem); line-height: 1.25; }

.site-footer { padding: 2.5rem var(--pad); background: #030a12; color: rgba(255,255,255,.6); display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 1.5rem; }
.footer-brand .brand-mark { color: var(--white); }
.footer-brand p { max-width: 380px; margin: 0; font-size: .78rem; line-height: 1.45; }
.footer-meta { display: flex; gap: 1.5rem; font-size: .72rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid #ffbd49; outline-offset: 4px; }

@media (max-width: 920px) {
  .menu-toggle { display: block; position: relative; z-index: 3; }
  .site-nav { position: fixed; inset: 0; padding: 8rem var(--pad) 3rem; background: var(--navy-950); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; transform: translateX(100%); transition: transform .3s ease; }
  .site-nav.open { transform: none; }
  .site-nav a { width: 100%; padding: 1rem 0; font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.16); }
  .site-nav .nav-cta { margin-top: 1.25rem; width: auto; padding: .8rem 1rem; }
  .intro, .markets-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .intro-copy { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading { grid-template-columns: 1fr; gap: 2rem; }
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
  .system-card.featured { grid-row: span 1; grid-column: span 2; min-height: 500px; }
  .approach-grid, .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .approach-copy { position: static; }
  .about-panel { grid-template-columns: 220px 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .site-header { height: 74px; }
  .brand-name { display: none; }
  .hero { min-height: 860px; height: 100svh; max-height: 980px; justify-content: flex-start; }
  .hero-media { background-position: 64% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(4,14,27,.82), rgba(4,14,27,.65) 45%, rgba(4,14,27,.92)); }
  .hero-grid { mask-image: linear-gradient(180deg, black, transparent); }
  .hero-content { padding-top: 9rem; margin-top: 0; }
  .hero h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { justify-content: center; }
  .hero-proof { left: 0; right: 0; grid-template-columns: repeat(3, 1fr); }
  .hero-proof > div { min-height: 96px; padding: .9rem .75rem; }
  .hero-proof strong { font-size: 1.3rem; }
  .hero-proof span { font-size: .65rem; }
  .intro { padding-block: 5rem; }
  .systems-grid { grid-template-columns: 1fr; }
  .system-card.featured { grid-column: span 1; min-height: 540px; }
  .system-card { min-height: 280px; }
  .market-row { grid-template-columns: 38px 1fr; gap: 1rem; align-items: start; }
  .market-row b { grid-column: 2; justify-self: start; }
  .about-panel { grid-template-columns: 1fr; }
  .about-year { min-height: 180px; flex-direction: row; align-items: start; }
  .about-year strong { writing-mode: initial; transform: none; align-self: end; }
  .about-copy { padding: 2rem 1.5rem 2.5rem; }
  .footer-brand { align-items: flex-start; }
  .footer-meta { flex-direction: column; gap: .35rem; }
}

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