:root {
  --ink: #0d1524;
  --muted: #5a6577;
  --line: #dfe6f1;
  --panel: #ffffff;
  --soft: #f4f7fb;
  --navy: #071a38;
  --blue: #1427ee;
  --blue-2: #2667ff;
  --cyan: #00a7c7;
  --green: #17a673;
  --amber: #f1a41f;
  --shadow: 0 20px 60px rgba(13, 21, 36, 0.15);
  --radius: 8px;
  --shell: min(1180px, calc(100% - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #ffffff;
  scroll-behavior: smooth;
}

html {
  scroll-padding-top: 88px;
}

* {
  box-sizing: border-box;
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #ffffff;
}

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

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

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

button {
  cursor: pointer;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cad5e4;
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 4px rgba(38, 103, 255, 0.14);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #c63737;
  background: #fff8f8;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #ffffff;
  background: var(--blue);
  border-radius: var(--radius);
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 230, 241, 0.85);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: var(--shell);
  height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
}

.brand img {
  width: 260px;
  height: auto;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: var(--radius);
  padding: 10px 9px;
  color: #263348;
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--blue);
  background: #edf3ff;
}

.nav-links .nav-cta {
  margin-left: 8px;
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 10px 28px rgba(20, 39, 238, 0.26);
}

.nav-links .nav-cta:hover {
  color: #ffffff;
  background: #071ed1;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 92svh;
  padding: 130px 0 0;
  display: grid;
  align-items: end;
  color: #ffffff;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 15, 35, 0.94) 0%, rgba(4, 15, 35, 0.76) 43%, rgba(4, 15, 35, 0.36) 100%),
    linear-gradient(180deg, rgba(4, 15, 35, 0.2), rgba(4, 15, 35, 0.82)),
    url("assets/mec-engineering-hero.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(7, 26, 56, 0.9));
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  padding: 56px 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.55fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #9be8f5;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--blue);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 2vw, 1.26rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(20, 39, 238, 0.3);
}

.button-primary:hover {
  background: #091ed0;
}

.button-glass {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.full-width {
  width: 100%;
}

.hero-intake,
.enrollment-card,
.contact-form {
  border: 1px solid rgba(223, 230, 241, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero-intake {
  padding: 22px;
}

.hero-intake h2,
.enrollment-card h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 1.35rem;
  letter-spacing: 0;
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-form,
.enrollment-card form,
.contact-form {
  display: grid;
  gap: 14px;
}

.hero-metrics {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(16px);
}

.hero-metrics div {
  padding: 18px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding: 86px 0;
}

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

.welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 48px;
}

.welcome-copy h2,
.student-copy h2 {
  margin: 0 0 20px;
  font-size: 2.5rem;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.welcome-copy > p:not(.eyebrow),
.student-copy > p:not(.eyebrow) {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.welcome-film {
  min-width: 0;
  margin: 0;
}

.welcome-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #101723;
  object-fit: contain;
}

.welcome-film figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.film-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.film-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.film-actions button[hidden],
.video-notice[hidden] {
  display: none;
}

.film-actions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.film-actions svg,
.offer-icon {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.video-notice {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.plans-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f4f8f6;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 36px;
}

.offer-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
  border-top: 2px solid #b8cebf;
  padding: 24px 0 0;
}

.offer-item:nth-child(2) { border-color: #e1ba60; }
.offer-item:nth-child(3) { border-color: #86b4dd; }
.offer-icon { color: #197453; }
.offer-item:nth-child(2) .offer-icon { color: #906207; }
.offer-item:nth-child(3) .offer-icon { color: #2466a2; }

.offer-item h3 {
  margin: 18px 0 12px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.offer-item p {
  flex: 1;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.75;
}

.student-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.student-image {
  min-width: 0;
  aspect-ratio: 4 / 3;
}

.student-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

.student-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 20px;
}

.button-outline {
  border: 1px solid #9ba9bd;
  color: var(--ink);
  background: #ffffff;
}

.button-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.delivery-promise {
  margin: 40px 0 0;
  border-left: 4px solid var(--green);
  padding: 8px 0 8px 24px;
}

.delivery-promise p {
  max-width: 850px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.45;
}

.delivery-promise cite {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.contact-copy > .contact-offer {
  margin-top: 18px;
  color: #b1e3cd;
}

.intro-band {
  padding: 56px 0;
  color: #ffffff;
  background: var(--navy);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 42px;
  align-items: center;
}

.intro-grid h2,
.section-heading h2,
.learn-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.intro-grid p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.03rem;
  line-height: 1.75;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.62fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p:last-child,
.learn-copy > p,
.contact-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: #2d3b52;
  background: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
}

.filter-button:hover,
.filter-button.is-active {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(13, 21, 36, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card[hidden] {
  display: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #b8c7dc;
  box-shadow: 0 20px 42px rgba(13, 21, 36, 0.12);
}

.service-card.highlight {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), #087b93);
}

.service-card.hiring-card {
  background: linear-gradient(135deg, #071a38, #1f5f78);
}

.service-card.highlight p,
.service-card.highlight a {
  color: rgba(255, 255, 255, 0.86);
}

.service-code {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--navy);
  font-size: 0.83rem;
  font-weight: 900;
}

.service-card.highlight .service-code {
  color: var(--navy);
  background: #ffffff;
}

.service-card h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.service-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  line-height: 1.62;
}

.service-card a {
  width: fit-content;
  color: var(--blue);
  font-weight: 900;
}

.solutions {
  background: var(--soft);
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.solution-feature {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--navy);
}

.solution-feature img {
  width: 185px;
  filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.16));
}

.solution-feature h3 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.solution-feature p:not(.panel-kicker) {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.solution-list article,
.process-grid article,
.track-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #ffffff;
}

.solution-list h3,
.process-grid h3,
.track-grid h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  letter-spacing: 0;
}

.solution-list p,
.process-grid p,
.track-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.learn-section {
  color: #ffffff;
  background:
    radial-gradient(circle at 16% 18%, rgba(0, 167, 199, 0.35), transparent 30%),
    linear-gradient(135deg, #071a38 0%, #0a335d 48%, #063b3f 100%);
}

.learn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 28px;
  align-items: start;
}

.learn-copy > p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.75);
}

.track-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.track-grid article {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.track-grid span,
.process-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: var(--navy);
  background: #9be8f5;
  font-weight: 900;
}

.track-grid h3 {
  color: #ffffff;
}

.track-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.enrollment-card {
  padding: 24px;
}

.certificate-section {
  background: #ffffff;
}

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

.certificate-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0.78), #ffffff 48%),
    #ffffff;
  box-shadow: 0 14px 32px rgba(13, 21, 36, 0.08);
}

.certificate-card h3 {
  margin: 0;
  font-size: 1.16rem;
}

.certificate-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  line-height: 1.62;
}

.certificate-card a {
  width: fit-content;
  color: var(--blue);
  font-weight: 900;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-grid span {
  color: #ffffff;
  background: var(--blue);
}

.jobs-section {
  background: var(--soft);
}

.jobs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
}

.jobs-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.jobs-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.role-list {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.role-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: #263348;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

.job-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-section {
  color: #ffffff;
  background: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 112px;
}

.contact-copy > p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a {
  display: grid;
  gap: 3px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.contact-methods span {
  color: #9be8f5;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form {
  padding: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.estimate-panel {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #c9ebdc;
  border-radius: var(--radius);
  color: #0f4b35;
  background: #eefaf4;
}

.estimate-panel span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  color: #dbe5f3;
  background: #050d1a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 30px;
  padding: 44px 0;
}

.footer-grid img {
  width: 190px;
  filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.16));
}

.footer-grid p {
  max-width: 600px;
  color: #9ba9bd;
  line-height: 1.7;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 0.95rem;
}

.footer-grid a {
  display: block;
  margin-top: 9px;
  color: #9ba9bd;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  width: var(--shell);
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7d8ba1;
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(380px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (max-width: 1060px) {
  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-shell,
  .learn-grid,
  .contact-grid,
  .jobs-grid,
  .solution-layout {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .nav-shell {
    height: 70px;
  }

  .brand img {
    width: 238px;
    height: auto;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

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

  .nav-links a {
    padding: 12px;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 98px;
  }

  .hero-shell {
    padding: 36px 0 30px;
    gap: 28px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-metrics,
  .welcome-layout,
  .student-layout,
  .intro-grid,
  .section-heading,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .welcome-layout,
  .student-layout {
    gap: 28px;
  }

  .offer-grid {
    gap: 22px;
  }

  .hero-metrics div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 64px 0;
  }

  .intro-band {
    padding: 46px 0;
  }
}

@media (max-width: 620px) {
  .welcome-copy h2,
  .student-copy h2 {
    font-size: 2rem;
  }

  .offer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .welcome-film figcaption {
    flex-wrap: wrap;
    padding-top: 12px;
  }

  .student-actions {
    flex-direction: column;
  }

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

  .hero h1 {
    font-size: clamp(2.65rem, 16vw, 4.3rem);
  }

  .service-grid,
  .certificate-grid,
  .solution-list,
  .track-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .hero-intake,
  .enrollment-card,
  .contact-form,
  .solution-feature {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
