/* ==========================================================================
   BOSSWARE INSTITUTE OF TECHNOLOGY
   Design System — single stylesheet, no build step
   Brand blue #163EAE sampled from the official mark
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand:          #163EAE;
  --brand-600:      #123595;
  --brand-700:      #0E2B77;
  --brand-300:      #6F8CD8;
  --brand-100:      #DDE5F8;
  --brand-50:       #F1F5FD;

  /* Ink */
  --ink:            #0A1633;
  --ink-800:        #16224A;
  --body:           #414C6B;
  --muted:          #6B7590;
  --faint:          #96A0B8;

  /* Surface */
  --white:          #FFFFFF;
  --surface:        #F6F8FC;
  --surface-2:      #EDF1F9;
  --line:           #E2E8F4;
  --line-strong:    #CBD5EA;

  /* On dark */
  --on-dark:        #EEF2FB;
  --on-dark-muted:  #A9B7DA;
  --dark-line:      rgba(255, 255, 255, .14);

  /* Type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Scale */
  --step--1: clamp(.8125rem, .79rem + .11vw, .875rem);
  --step-0:  clamp(1rem, .97rem + .14vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.07rem + .27vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.27rem + .5vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.55rem + .95vw, 2.5rem);
  --step-4:  clamp(2.125rem, 1.75rem + 1.8vw, 3.5rem);
  --step-5:  clamp(2.5rem, 1.9rem + 2.9vw, 4.75rem);

  /* Space */
  --gap:      clamp(1.25rem, 1rem + 1.2vw, 2rem);
  --section:  clamp(4.5rem, 3.2rem + 5.5vw, 8.5rem);
  --shell:    1220px;
  --shell-nar: 880px;

  /* Effects */
  --radius:   14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(10, 22, 51, .05),
               0 4px 12px -4px rgba(10, 22, 51, .06);
  --shadow:    0 2px 4px rgba(10, 22, 51, .04),
               0 14px 34px -12px rgba(10, 22, 51, .14);
  --shadow-lg: 0 4px 8px rgba(10, 22, 51, .04),
               0 30px 70px -22px rgba(10, 22, 51, .24);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --notch: 18px; /* angular cut echoing the logo mark */
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

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

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.028em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--brand); text-decoration: none; }

ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, .8rem + 2vw, 2.5rem);
}

.shell--narrow { max-width: var(--shell-nar); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 2.2rem + 3.5vw, 5.5rem); }
.section--soft { background: var(--surface); }
.section--edge { border-top: 1px solid var(--line); }

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   4. TYPE UTILITIES
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.125rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
  flex: none;
}
.eyebrow--center { justify-content: center; }

.display  { font-size: var(--step-5); letter-spacing: -.038em; }
.title    { font-size: var(--step-4); letter-spacing: -.034em; }
.heading  { font-size: var(--step-3); }
.subhead  { font-size: var(--step-2); letter-spacing: -.022em; }

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.prose p + p { margin-top: 1.15em; }
.prose > * + h3 { margin-top: 2.25em; }
.prose h3 + p { margin-top: .75em; }

/* Pictures placed inside an article body. Authors drop them in from the media
   picker without any styling, so the styling has to live here. They are allowed
   to break out past the 62ch reading measure — a picture squeezed to text width
   looks like an accident. */
.prose img {
  display: block;
  width: 100%;
  max-width: min(100%, 46rem);
  height: auto;
  margin: 2.25em 0;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.prose img + p { margin-top: 0; }

.prose figure { margin: 2.25em 0; }
.prose figure img { margin: 0; }

.prose figcaption {
  margin-top: .75rem;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--faint);
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

.accent { color: var(--brand); }
.measure { max-width: 68ch; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head.center { margin-inline: auto; }
.section-head .lede { margin-top: 1.125rem; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: .9375rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease),
              background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: 0 8px 20px -8px rgba(22, 62, 174, .55); }
.btn--primary:hover {
  --btn-bg: var(--brand-600);
  --btn-bd: var(--brand-600);
  box-shadow: 0 14px 30px -10px rgba(22, 62, 174, .6);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover {
  --btn-bd: var(--brand);
  --btn-fg: var(--brand);
  background: var(--brand-50);
}

.btn--on-dark {
  --btn-bg: #fff;
  --btn-fg: var(--brand-700);
  --btn-bd: #fff;
}
.btn--on-dark:hover { --btn-bg: var(--on-dark); --btn-bd: var(--on-dark); }

.btn--outline-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .38);
}
.btn--outline-dark:hover { --btn-bd: #fff; background: rgba(255, 255, 255, .08); }

.btn--sm { padding: .6875rem 1.25rem; font-size: .875rem; }
.btn--lg { padding:1.0625rem 2.125rem; font-size: 1rem; }

.btn .arw { transition: transform .22s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2.25rem;
}
.center .btn-row { justify-content: center; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--brand);
}
.link-arrow svg { transition: transform .22s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(10, 22, 51, .5);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-right: auto;
  color: var(--ink);
  flex: none;
}
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 1.0625rem;
  font-weight: 750;
  letter-spacing: -.028em;
  color: var(--ink);
}
.brand-sub {
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  position: relative;
  display: block;
  padding: .5rem .8125rem;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 550;
  color: var(--body);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--brand); font-weight: 650; }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .8125rem;
  right: .8125rem;
  bottom: .125rem;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-links .btn { margin-left: .625rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 1.75px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .28s var(--ease), opacity .18s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem clamp(1.25rem, .8rem + 2vw, 2.5rem) 2rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s var(--ease), opacity .25s var(--ease),
                visibility .25s;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
  }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a {
    padding: .9375rem .25rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.0625rem;
  }
  .nav-links a:hover { background: transparent; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links .btn { margin: 1.25rem 0 0; width: 100%; }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 2.6rem + 6vw, 7.5rem) clamp(4rem, 3rem + 5vw, 7rem);
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-50) 0%, #fff 62%);
}

/* Blueprint grid — architectural motif */
.blueprint {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(22, 62, 174, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 62, 174, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 72% 10%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 72% 10%, #000 0%, transparent 72%);
  pointer-events: none;
}
.blueprint--dark {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { max-width: 56ch; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .4375rem .875rem .4375rem .5rem;
  margin-bottom: 1.75rem;
  background: #fff;
  border: 1px solid var(--brand-100);
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 550;
  color: var(--ink-800);
  box-shadow: var(--shadow-sm);
}
.hero-tag b {
  padding: .1875rem .5rem;
  background: var(--brand);
  color: #fff;
  border-radius: 100px;
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Hero visual: stacked architecture diagram */
.stack {
  position: relative;
  display: grid;
  gap: .75rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.stack::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto auto;
  width: 84px;
  height: 84px;
  border-top: 3px solid var(--brand);
  border-right: 3px solid var(--brand);
  border-radius: 0 var(--radius) 0 0;
  pointer-events: none;
}
.stack-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .875rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid var(--line);
  font-size: .6875rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.stack-label i {
  width: 7px; height: 7px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--brand-100);
}
.stack-row {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .9375rem 1.0625rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform .3s var(--ease), border-color .3s var(--ease),
              background .3s var(--ease);
}
.stack-row:hover {
  transform: translateX(5px);
  border-color: var(--brand-300);
  background: var(--brand-50);
}
.stack-row .n {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex: none;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-size: .8125rem;
  font-weight: 700;
}
.stack-row .t { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.stack-row .d { font-size: .8125rem; color: var(--muted); line-height: 1.4; }

/* --------------------------------------------------------------------------
   8. CARDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-100);
  box-shadow: var(--shadow);
}
.card h3 { font-size: var(--step-1); margin-bottom: .625rem; }
.card p { font-size: .9375rem; color: var(--muted); }
.card .link-arrow { margin-top: auto; padding-top: 1.5rem; }

/* Notched corner — echoes the angular logo mark */
.card--notch {
  border-radius: var(--radius);
  clip-path: polygon(
    0 0, calc(100% - var(--notch)) 0, 100% var(--notch),
    100% 100%, 0 100%
  );
}

.icon-box {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 1.375rem;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 12px;
  color: var(--brand);
}
.icon-box svg { width: 23px; height: 23px; }

.card--dark {
  background: var(--ink);
  border-color: rgba(255, 255, 255, .1);
}
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--on-dark-muted); }
.card--dark .icon-box {
  background: rgba(255, 255, 255, .08);
  border-color: var(--dark-line);
  color: #fff;
}
.card--dark:hover { border-color: rgba(255, 255, 255, .25); }

/* Numbered pillar card */
.pillar { position: relative; overflow: hidden; }
.pillar .num {
  position: absolute;
  top: -.5rem; right: .75rem;
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--brand);
  opacity: .07;
  pointer-events: none;
}
.pillar ul { margin-top: 1.5rem; display: grid; gap: .875rem; }
.pillar li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .9375rem;
  color: var(--muted);
}
.pillar li b { display: block; color: var(--ink); font-weight: 620; }
.pillar li::before {
  content: "";
  position: absolute;
  left: 0; top: .5rem;
  width: 9px; height: 9px;
  background: var(--brand);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   9. DARK BAND
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}
.band .shell { position: relative; z-index: 1; }
.band h2, .band h3 { color: #fff; }
.band p { color: var(--on-dark-muted); }
.band .eyebrow { color: var(--brand-300); }
.band .eyebrow::before { background: var(--brand-300); }
.band .lede { color: var(--on-dark-muted); }

.band--brand { background: var(--brand); }
.band--brand .eyebrow { color: #fff; opacity: .8; }
.band--brand .eyebrow::before { background: #fff; opacity: .8; }
.band--brand p, .band--brand .lede { color: rgba(255, 255, 255, .84); }

.glow {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 62, 174, .55) 0%, transparent 68%);
  pointer-events: none;
}
.glow--tr { top: -300px; right: -180px; }
.glow--bl { bottom: -340px; left: -220px; }

/* --------------------------------------------------------------------------
   10. MANDATE / SPLIT
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  align-items: center;
}
.split--lead { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 900px) {
  .split, .split--lead { grid-template-columns: 1fr; }
}

.mandate {
  position: relative;
  padding: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mandate:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mandate .tag {
  display: inline-block;
  margin-bottom: .875rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.mandate h3 { font-size: var(--step-2); margin-bottom: .75rem; }
.mandate p { color: var(--muted); }

/* --------------------------------------------------------------------------
   11. QUOTE / STATEMENT
   -------------------------------------------------------------------------- */
.statement {
  position: relative;
  padding: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem) clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  background: var(--brand-50);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.statement + .statement { margin-top: 1.25rem; }
.statement .tag {
  display: block;
  margin-bottom: .625rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brand);
}
.statement q, .statement blockquote {
  display: block;
  font-family: var(--serif);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-800);
  quotes: none;
}

/* --------------------------------------------------------------------------
   12. SYNTHESIS EQUATIONS
   -------------------------------------------------------------------------- */
.equation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  transition: background .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease);
}
.equation:hover {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-4px);
}
.equation .expr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
}
.equation .expr span {
  padding: .3125rem .625rem;
  background: rgba(255, 255, 255, .1);
  border-radius: 6px;
}
.equation .expr em {
  font-style: normal;
  color: var(--brand-300);
  font-weight: 700;
}
.equation .expr .res { background: var(--brand); }
.equation p { font-size: .9375rem; color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   13. PROCESS STEPS
   -------------------------------------------------------------------------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 1.5rem;
  padding-bottom: 2.75rem;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 26px; top: 56px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-100), var(--line));
}
.step:last-child::before { display: none; }
.step .dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 14px;
  font-size: 1.0625rem;
  font-weight: 750;
  color: var(--brand);
  transition: background .3s var(--ease), color .3s var(--ease),
              transform .3s var(--ease);
}
.step:hover .dot {
  background: var(--brand);
  color: #fff;
  transform: scale(1.06);
}
.step h3 { font-size: var(--step-1); margin-bottom: .5rem; padding-top: .625rem; }
.step p { color: var(--muted); max-width: 62ch; }

@media (max-width: 560px) {
  .step { grid-template-columns: 46px minmax(0, 1fr); gap: 1.125rem; }
  .step .dot { width: 46px; height: 46px; border-radius: 12px; font-size: .9375rem; }
  .step::before { left: 22px; top: 50px; }
  .step h3 { padding-top: .4375rem; }
}

/* --------------------------------------------------------------------------
   14. STATS
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { padding: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); background: #fff; }
.stat .k {
  display: block;
  font-size: var(--step-3);
  font-weight: 750;
  letter-spacing: -.035em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: .5rem;
}
.stat .v { font-size: .875rem; color: var(--muted); line-height: 1.45; }

.band .stats { background: var(--dark-line); border-color: var(--dark-line); }
.band .stat { background: var(--ink); }
.band .stat .k { color: #fff; }
.band .stat .v { color: var(--on-dark-muted); }

/* --------------------------------------------------------------------------
   15. FEATURE LIST
   -------------------------------------------------------------------------- */
.feature-list { display: grid; gap: 1.75rem; }
.feature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1.125rem;
  align-items: start;
}
.feature .ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 11px;
  color: var(--brand);
}
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.0625rem; margin-bottom: .3125rem; }
.feature p { font-size: .9375rem; color: var(--muted); }

.band .feature .ico {
  background: rgba(255, 255, 255, .08);
  border-color: var(--dark-line);
  color: #fff;
}

/* --------------------------------------------------------------------------
   16. TRACK CARDS (Academy)
   -------------------------------------------------------------------------- */
.track {
  display: flex;
  flex-direction: column;
  padding: clamp(1.625rem, 1.3rem + 1.2vw, 2.375rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.track:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--brand-100);
}
.track--featured {
  border-color: var(--brand);
  box-shadow: 0 20px 50px -24px rgba(22, 62, 174, .45);
}
.track .badge {
  align-self: flex-start;
  padding: .3125rem .6875rem;
  margin-bottom: 1.125rem;
  background: var(--brand-50);
  color: var(--brand);
  border-radius: 100px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.track--featured .badge { background: var(--brand); color: #fff; }
.track h3 { font-size: var(--step-2); margin-bottom: .625rem; }
.track > p { color: var(--muted); font-size: .9375rem; }
.track .checks {
  display: grid;
  gap: .75rem;
  margin: 1.625rem 0;
  padding-top: 1.625rem;
  border-top: 1px solid var(--line);
}
.track .checks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: .6875rem;
  align-items: start;
  font-size: .9375rem;
  color: var(--body);
}
.track .checks svg { width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }
.track .btn { margin-top: auto; width: 100%; }

/* --------------------------------------------------------------------------
   17. FORM
   -------------------------------------------------------------------------- */
.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 1.4rem + 3vw, 4.5rem);
  align-items: start;
}
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

.form-card {
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.75rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.field label .req { color: #C0392B; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8125rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7590' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #C0392B; }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(192, 57, 43, .14); }

.field .err {
  display: none;
  margin-top: .4375rem;
  font-size: .8125rem;
  font-weight: 550;
  color: #C0392B;
}
.field.has-error .err { display: block; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Inquiry type selector */
.type-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1.75rem;
}
@media (max-width: 480px) { .type-picker { grid-template-columns: 1fr; } }
.type-picker input { position: absolute; opacity: 0; pointer-events: none; }
.type-picker label {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9375rem 1rem;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  margin: 0;
  transition: border-color .18s var(--ease), background .18s var(--ease),
              box-shadow .18s var(--ease);
}
.type-picker label .tick {
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  flex: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: inherit;
}
.type-picker label .tick::after {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.type-picker label:hover { border-color: var(--brand-300); }
.type-picker input:checked + label {
  border-color: var(--brand);
  background: var(--brand-50);
}
.type-picker input:checked + label .tick { border-color: var(--brand); background: var(--brand); }
.type-picker input:checked + label .tick::after { transform: scale(1); }
.type-picker input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }

.form-note {
  margin-top: 1rem;
  font-size: .8125rem;
  color: var(--faint);
  line-height: 1.5;
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) 1rem;
}
.form-success.is-visible { display: block; animation: rise .45s var(--ease) both; }
.form-success .mark {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 1.5rem;
  background: var(--brand-50);
  border: 2px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
}
.form-success .mark svg { width: 30px; height: 30px; }
.form-success h3 { font-size: var(--step-2); margin-bottom: .75rem; }
.form-success p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.form-success .btn { margin-top: 1.75rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Contact detail list */
.contact-list { display: grid; gap: 1.5rem; margin-top: 2.25rem; }
.contact-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.contact-item .ico {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: 11px;
  color: var(--brand);
}
.contact-item .ico svg { width: 19px; height: 19px; }
.contact-item .k {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: .1875rem;
}
.contact-item .v { font-size: 1rem; font-weight: 600; color: var(--ink); }
.contact-item a.v:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   18. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); }
.cta-band .inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.75rem, 1.2rem + 2.5vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 2.2rem + 3vw, 5rem);
}
@media (max-width: 820px) {
  .cta-band .inner { grid-template-columns: 1fr; }
}
.cta-band h2 { font-size: var(--step-3); color: #fff; margin-bottom: .875rem; }
.cta-band p { color: var(--on-dark-muted); max-width: 54ch; }
.cta-band .btn-row { margin-top: 0; }

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding-top: clamp(3.5rem, 2.8rem + 3vw, 5.5rem);
  font-size: .9375rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand { margin-right: 0; margin-bottom: 1.25rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: var(--brand-300); }
.footer-brand p { max-width: 40ch; color: var(--on-dark-muted); font-size: .9375rem; }

.footer-col h4 {
  margin-bottom: 1.125rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { display: grid; gap: .75rem; }
.footer-col a {
  color: var(--on-dark-muted);
  transition: color .18s var(--ease);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--dark-line);
  font-size: .875rem;
  color: var(--faint);
}
.footer-bottom p { color: var(--faint); }
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a { color: var(--faint); }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   20. PAGE HERO (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-block: clamp(3.25rem, 2.5rem + 3.5vw, 6rem) clamp(2.75rem, 2.2rem + 3vw, 5rem);
  background: linear-gradient(180deg, var(--brand-50), #fff);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero .shell { position: relative; z-index: 1; }
.page-hero h1 { max-width: 20ch; margin-bottom: 1.25rem; }
.page-hero .lede { max-width: 60ch; }

.crumbs {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  font-size: .8125rem;
  color: var(--faint);
}
.crumbs a { color: var(--muted); font-weight: 550; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--faint); }

/* --------------------------------------------------------------------------
   21. MOTION
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   22. HELPERS
   -------------------------------------------------------------------------- */
.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;
}
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
body.nav-open { overflow: hidden; }

@media print {
  .site-header, .site-footer, .cta-band, .btn { display: none !important; }
  body { color: #000; }
}

/* ==========================================================================
   GALLERY
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 30%, 320px), 1fr));
  gap: clamp(.875rem, .7rem + .7vw, 1.25rem);
}

.gallery-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.gallery-tile:hover {
  transform: translateY(-3px);
  border-color: var(--brand-100);
  box-shadow: var(--shadow);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-tile:hover img { transform: scale(1.04); }

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.25rem .9375rem .8125rem;
  font-size: .8125rem;
  font-weight: 550;
  color: #fff;
  background: linear-gradient(to top, rgba(10,22,51,.82), transparent);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery-tile:hover .gallery-caption,
.gallery-tile:focus-visible .gallery-caption { opacity: 1; }

/* A phone has no hover, so a caption that only appears on hover never appears
   at all. On touch devices, show it permanently. */
@media (hover: none) {
  .gallery-caption { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-tile:hover img { transform: none; }
  .gallery-caption { opacity: 1; }
}
