/* ==========================================================================
   Hillesheim Architectural Products, Inc. — hap-inc.net
   Palette sampled from the HAP logo: navy #030442, blue #2D2F8F, silver #A1A3A1
   ========================================================================== */

:root {
  --navy: #06084a;
  --navy-deep: #030442;
  --blue: #2d2f8f;
  --blue-bright: #3d55c9;
  --silver: #a1a3a1;

  --ink: #15171f;
  --body: #3f4453;
  --muted: #6b7183;
  --line: #e2e5ec;
  --line-soft: #eef0f5;
  --bg: #ffffff;
  --bg-alt: #f6f7fa;
  --bg-navy-soft: #f3f4fb;

  --wrap: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(6, 8, 74, .06), 0 2px 8px rgba(6, 8, 74, .05);
  --shadow-md: 0 4px 14px rgba(6, 8, 74, .09), 0 12px 32px rgba(6, 8, 74, .07);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --step: clamp(1rem, .93rem + .35vw, 1.125rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step);
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-bright); }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.7vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.35rem); }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0; }
.section--alt { background: var(--bg-alt); }

.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06em; margin-bottom: 0; }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .85rem;
}
.eyebrow--light { color: #a9b2f0; }

.lede { font-size: 1.12em; color: var(--body); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit; font-size: .96rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--blue); color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
/* hap-mark.svg's crop was 1176 units tall while it made room for a map hairline
   traced under the P; it is 1110 now. Scaling by 1110/1176 keeps the letters at
   their original size, and they now centre on the text instead of sitting high. */
.brand img { height: calc(40px * 1110 / 1176); width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-size: .82rem; font-weight: 800; letter-spacing: .02em;
  color: var(--navy); text-transform: uppercase;
}
.brand__tag {
  font-size: .66rem; font-weight: 600; letter-spacing: .12em;
  color: var(--muted); text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: .55rem .7rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  display: block; padding: .5rem .7rem; border-radius: 6px;
  font-size: .93rem; font-weight: 600; color: var(--body); text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--bg-navy-soft); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--bg-navy-soft); }
.site-nav .nav-cta { margin-left: .4rem; }
.site-nav .nav-cta a {
  background: var(--navy); color: #fff; padding: .6rem 1.1rem;
}
.site-nav .nav-cta a:hover { background: var(--blue); color: #fff; }

/* Narrow phones: the wordmark alone carries the brand so the menu button fits. */
@media (max-width: 560px) {
  .brand__text { display: none; }
  .brand img { height: calc(44px * 1110 / 1176); }
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .75rem 0 1.25rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .15rem; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .site-nav a { padding: .8rem .75rem; font-size: 1rem; }
  .site-nav .nav-cta { margin: .6rem 0 0; }
  .site-nav .nav-cta a { text-align: center; }
}

/* ---------- hero ---------- */
/* Light ground on purpose: the logo's H is navy and its A is black, so it was
   designed to sit on a white page. No scrim to fight, and every element of the
   mark clears 3:1. */
/* This is the whole homepage, so it claims the viewport below the 75px sticky
   header and centres itself in it. min-height, not height: on a short window
   the content still pushes the section taller and the page scrolls normally. */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 75px);
  min-height: calc(100svh - 75px);
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #f7f8fc 55%, #eef1f8 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 2;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  text-align: center;
}
/* The logo is 1.361:1, so a vh cap on its width also bounds its height:
   50vh wide lands at ~37vh tall. Budgeted against a 1920x895 viewport (a
   maximised browser on a 1080p screen, once tabs/URL/bookmarks are taken
   off), which leaves the whole hero -- logo, name, buttons and credentials
   -- on screen without scrolling. */
.hero__logo {
  display: block;
  width: 100%;
  max-width: min(660px, 58vw, 50vh);
  height: auto;
  margin: 0 auto clamp(1rem, .75rem + 1.5vw, 1.75rem);
}
.hero h1 {
  color: var(--ink);
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.1rem);
  margin-bottom: .3em;
}
.hero__tag {
  font-size: clamp(.78rem, .74rem + .25vw, .92rem);
  font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.25rem;
}
.hero__lede {
  font-size: 1.08em; color: var(--body);
  max-width: 40rem; margin: 0 auto 1.5rem;
}
.hero .btn-row { justify-content: center; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: center;
  margin: 1.75rem auto 0; padding-top: 1.25rem;
  max-width: 54rem;
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted); font-weight: 600;
  letter-spacing: .04em;
}
/* Shorter windows: close the gaps first, then give back a little logo, so the
   whole hero still lands on one screen on a 1366x768 or 1440x900 laptop. */
@media (max-height: 860px) and (min-width: 700px) {
  .hero__logo { max-width: min(660px, 58vw, 46vh); margin-bottom: 1rem; }
  .hero__tag { margin-bottom: 1rem; }
  .hero__lede { font-size: 1em; margin-bottom: 1.25rem; }
  .hero__meta { margin-top: 1.25rem; padding-top: 1rem; }
}
@media (max-height: 700px) and (min-width: 700px) {
  .hero__logo { max-width: min(660px, 58vw, 42vh); }
  .hero__inner { padding-block: 1.25rem; }
}

/* page banner (interior pages) */
.page-hero {
  background: var(--navy-deep);
  color: #fff;
  padding: clamp(2.75rem, 2rem + 3.5vw, 4.5rem) 0;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(3,4,66,.0) 40%, rgba(45,47,143,.5) 100%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 46rem; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #cdd3f3; font-size: 1.08em; margin-bottom: 0; }

/* breadcrumb */
.crumbs { font-size: .84rem; color: #a9b2f0; margin-bottom: 1rem; }
.crumbs a { color: #cdd3f3; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { opacity: .55; padding: 0 .4rem; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
/* wider tracks for cards carrying long prose (seminar descriptions) */
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
@media (max-width: 500px) { .grid--wide { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.25rem + .8vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--body); font-size: .97em; }
.card__icon {
  width: 44px; height: 44px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--bg-navy-soft); color: var(--blue);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 22px; height: 22px; }

/* split (image + text) */
.split {
  display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; }

/* ---------- people ---------- */
.person {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 680px) { .person { grid-template-columns: 240px 1fr; gap: 0; } }
.person__photo { background: var(--bg-alt); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.person__body { padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem); }
.person__name { margin-bottom: .15rem; }
.person__role {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1rem;
}
.person__contact {
  margin: 1.25rem 0 0; padding-top: 1.15rem;
  border-top: 1px solid var(--line-soft);
  list-style: none;
  display: grid; gap: .45rem;
  font-size: .94rem;
}
.person__contact li { display: flex; gap: .6rem; align-items: baseline; }
.person__contact .lbl {
  flex: 0 0 3.6rem; color: var(--muted);
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.person__contact a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.person__contact a:hover { text-decoration: underline; }


/* ---------- logo optical sizing ----------
   Logos are normalised so each occupies a similar visual area rather than
   matching heights. Matching heights makes a wide wordmark (Aluflam, aspect
   4.3) tower over a compact mark (EFCO, aspect 0.8). Each weight is
   k = (1 / sqrt(aspect x ink-fraction)) ^ 0.6, measured from the file itself
   and damped so the correction evens the weighting without over-swinging.
   Every context sets a base height; the weight scales it. */
.logo--apogee   { --logo-k: .96; }
.logo--aluflam  { --logo-k: .87; }
.logo--solar    { --logo-k: .87; }
.logo--action   { --logo-k: .98; }
.logo--tubelite { --logo-k: .89; }
.logo--efco     { --logo-k: 1.10; }
.logo--wausau   { --logo-k: 1.05; }
.logo--aia      { --logo-k: 1.27; }

/* ---------- manufacturers ---------- */
.mfr {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
/* centre, not start: the logo column should sit against the middle of the
   copy block, otherwise it rides high and the taller the card the worse it
   looks (it was 44-74px above centre). */
@media (min-width: 760px) { .mfr { grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; } }
.mfr__logo {
  display: flex; align-items: center; justify-content: center;
  min-height: 80px;
}
.mfr__logo img {
  height: calc(58px * var(--logo-k, 1));
  width: auto; max-width: 100%; object-fit: contain;
}
.mfr__kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .6rem;
}
.mfr__body h3 { margin-bottom: .6rem; }

/* featured manufacturer: Apogee, with its three brands broken out */
.featured-mfr {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 1.5rem + 1vw, 2.75rem);
  box-shadow: var(--shadow-md);
}
.featured-mfr__head {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 760px) {
  .featured-mfr__head { grid-template-columns: 220px 1fr; gap: 2.5rem; }
}
.featured-mfr__head .mfr__logo { justify-content: center; }

.brand-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  padding-top: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  border-top: 1px solid var(--line);
}
/* Flex column with the disclosure pushed to the bottom, so the three toggles
   stay on one line even if a role line wraps at a narrow width. */
.sub-brand {
  display: flex; flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
}
.sub-brand .disclosure { margin-top: auto; }
/* Logo slot. Drop an <img> in and it takes over from the wordmark text --
   see the note in the README about sourcing real brand logo files. */
.sub-brand__logo {
  display: flex; align-items: center; justify-content: center;
  min-height: 72px;
  margin-bottom: .85rem;
}
/* Cropped out of the combined Apogee mark, so these are small originals
   (77x23, 34x43, 46x32). The caps sit above all three, so each renders at
   its native size -- pixel-crisp rather than upscaled. Their heights differ
   because the marks differ: Tubelite is a wide wordmark, EFCO a tall stacked
   lockup. Balanced optically, not by matching heights. */
.sub-brand__logo h4 { margin: 0; line-height: 0; }
.sub-brand__logo img {
  height: calc(58px * var(--logo-k, 1));
  width: auto; max-width: 100%; object-fit: contain;
}
.sub-brand__role {
  font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .5rem;
}

/* native <details> disclosure -- no JavaScript, keyboard operable */
.disclosure {
  border-top: 1px solid var(--line);
  margin-top: .75rem;
}
.disclosure > summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .7rem 0 .55rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  color: var(--navy);
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
  content: "";
  width: 8px; height: 8px; flex: none;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.disclosure[open] > summary::after { transform: rotate(-135deg) translateY(1px); }
.disclosure > summary:hover { color: var(--blue); }
.disclosure > summary:focus-visible { outline-offset: 3px; }
.disclosure__body { padding-bottom: .75rem; }
.disclosure__body p { font-size: .91em; margin-bottom: .8rem; }
.disclosure__body p:last-child { margin-bottom: 0; }
.disclosure__body h5 {
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .4rem;
}
.disclosure__body ul {
  margin: 0; padding-left: 1.05rem;
  font-size: .89em; color: var(--body);
}
.disclosure__body li { margin-bottom: .28rem; }
.disclosure__body li:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .disclosure > summary::after { transition: none; }
}

/* ---------- state coverage, shown on each manufacturer card ---------- */
.mfr__coverage {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.mfr__coverage-label {
  display: block;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem;
}
/* Five fixed columns, so a state sits in the same place on every card and a
   missing badge reads as a gap rather than a shorter list. */
.state-badges {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 2.9rem); gap: .35rem;
}
.badge--mn { grid-column: 1; }
.badge--wi { grid-column: 2; }
.badge--ia { grid-column: 3; }
.badge--nd { grid-column: 4; }
.badge--sd { grid-column: 5; }
.badge {
  display: grid; place-items: center;
  height: 1.85rem;
  border-radius: 6px;
  background: var(--bg-navy-soft);
  border: 1px solid #dfe3f4;
  color: var(--navy);
  font-size: .76rem; font-weight: 800; letter-spacing: .05em;
}
.badge abbr { text-decoration: none; border: 0; }
.mfr__coverage-note {
  margin: .6rem 0 0;
  font-size: .82rem; color: var(--muted);
}

@media (max-width: 420px) {
  .state-badges { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- seminars ---------- */
.seminar {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.15rem);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
/* Sponsor logo replaces the old text pill; same optical weights as the rest
   of the site, centred in a fixed-height slot so the titles below line up
   across the row whatever each mark's proportions. */
.seminar__logo {
  display: flex; align-items: center; justify-content: center;
  min-height: 64px;
  margin-bottom: .9rem;
}
.seminar__logo img {
  height: calc(46px * var(--logo-k, 1));
  width: auto; max-width: 100%; object-fit: contain;
}
.seminar__meta {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin-bottom: .8rem;
}
.seminar__tag {
  color: var(--muted); font-weight: 600; margin-bottom: 0;
}
.pill {
  display: inline-block;
  background: var(--bg-navy-soft); color: var(--navy);
  font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 99px;
}
.pill--code { background: #eef0f5; color: var(--muted); letter-spacing: .04em; }
.seminar h3 { margin-bottom: .3rem; text-align: center; }
.seminar__tag { text-align: center; }
.seminar .disclosure { margin-top: 1rem; }
.seminar p { font-size: .96em; }
.seminar__foot {
  margin-top: auto; padding-top: 1.35rem;
  display: flex; justify-content: center;
}

/* ---------- services / list ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 1.9rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--bg-navy-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232d2f8f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.course-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.course-list li {
  padding: .75rem 1rem;
  background: var(--bg-alt);
  border-radius: 6px;
  font-size: .95em;
}
.course-list .code {
  display: inline-block; margin-left: .4rem;
  font-size: .8rem; font-weight: 700; color: var(--muted);
}

/* ---------- tutorial ---------- */
.tutorial {
  display: grid;
  gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 980px) {
  .tutorial { grid-template-columns: 268px minmax(0, 1fr); }
}

/* Contents panel. Sticky on desktop so the tab list stays reachable through
   a page that runs several screens; a plain list above the content on
   narrow screens, where sticky would eat the viewport. */
.tutorial-nav {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.1rem;
}
@media (min-width: 980px) {
  .tutorial-nav {
    position: sticky;
    top: 92px;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
  }
}
.tutorial-nav > h2 {
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .9rem;
}
.tutorial-nav ol { list-style: none; margin: 0; padding: 0; }
.tutorial-nav__group + .tutorial-nav__group { margin-top: 1.1rem; }
.tutorial-nav__gh {
  display: block;
  font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue); margin-bottom: .35rem; padding-left: .55rem;
}
.tutorial-nav a {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .15rem .4rem;
  padding: .4rem .55rem;
  border-radius: 6px;
  font-size: .86rem; font-weight: 600; line-height: 1.35;
  color: var(--body); text-decoration: none;
  border-left: 2px solid transparent;
}
.tutorial-nav a:hover { background: var(--bg-navy-soft); color: var(--navy); }
.tutorial-nav__n { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .78rem; }
.tutorial-nav__d { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .75rem; }
.tutorial-nav a.is-current {
  background: #fff;
  border-left-color: var(--blue);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.tutorial-nav a.is-current .tutorial-nav__n { color: var(--blue); }
.tutorial-nav__meta {
  margin: 1.1rem 0 0; padding-top: .8rem;
  border-top: 1px solid var(--line);
  font-size: .76rem; color: var(--muted); font-weight: 600;
}
/* Narrow screens: two compact columns instead of one tall list. */
@media (max-width: 979px) {
  .tutorial-nav ol ol { columns: 2; column-gap: 1rem; }
  .tutorial-nav__group + .tutorial-nav__group { margin-top: .9rem; }
}
@media (max-width: 480px) {
  .tutorial-nav ol ol { columns: 1; }
}

.lesson-group { margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.lesson-group:last-of-type { margin-bottom: 0; }
.lesson-group__head {
  padding-bottom: .9rem;
  margin-bottom: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  border-bottom: 2px solid var(--line);
}
.lesson-group__head h2 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem); margin-bottom: .3rem; }
.lesson-group__head p { color: var(--muted); font-size: .96em; margin-bottom: 0; }

.lesson { scroll-margin-top: 92px; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); }
.lesson:last-child { margin-bottom: 0; }
.lesson__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .9rem;
  margin-bottom: .9rem;
}
.lesson__num {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-navy-soft); color: var(--blue);
  font-size: .82rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.lesson__head h3 { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); margin-bottom: .15rem; }
.lesson__desc { color: var(--muted); font-size: .93em; margin-bottom: 0; }
.lesson__dur {
  font-size: .78rem; font-weight: 700; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  padding-top: .3rem;
}
.lesson video {
  width: 100%; border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
}


/* Enhanced mode: JS turns the page into a player + playlist, showing one
   lesson at a time. Gated behind .is-playlist, which the script adds -- with
   JavaScript off every lesson stays on the page as a plain stacked list. */
.is-playlist .lesson-group { display: none; }
.is-playlist .lesson-group.has-active { display: block; margin-bottom: 0; }
.is-playlist .lesson { display: none; margin-bottom: 0; }
.is-playlist .lesson.is-active { display: block; }
.is-playlist .tutorial-body { min-height: 60vh; }
.lesson:focus { outline: none; }

/* previous / next, injected by the script */
.lesson-pager {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.lesson-pager a {
  display: flex; flex-direction: column; gap: .15rem;
  max-width: 48%;
  padding: .65rem .95rem;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.lesson-pager a:hover { border-color: var(--navy); background: var(--bg-navy-soft); }
.lesson-pager__dir {
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue);
}
.lesson-pager__label {
  font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.lesson-pager__next { margin-left: auto; text-align: right; }
@media (max-width: 520px) {
  .lesson-pager a { max-width: 100%; flex: 1 1 100%; }
  .lesson-pager__next { text-align: left; }
}

.note {
  background: var(--bg-navy-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  font-size: .95em;
}
.note strong { color: var(--navy); }

/* ---------- contact ---------- */
.contact-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin-bottom: .2rem; }
.contact-card .person__role { margin-bottom: 1.15rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: .3em; color: var(--blue); }
.contact-list a { text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-deep);
  color: #fff;
  padding: clamp(3rem, 2.5rem + 2.5vw, 4.5rem) 0;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(3,4,66,0) 45%, rgba(61,85,201,.45) 100%);
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 2; text-align: center; max-width: 42rem; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd3f3; font-size: 1.06em; margin-bottom: 2rem; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn--primary { background: #fff; color: var(--navy); }
.cta-band .btn--primary:hover { background: #e8ebff; color: var(--navy); }

/* ---------- footer ---------- */
.site-footer {
  background: #0a0c33;
  color: #aeb5d8;
  padding: clamp(3rem, 2.5rem + 2vw, 4rem) 0 2rem;
  font-size: .94rem;
}
.site-footer h2 {
  color: #fff; font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.footer-brand img { height: 58px; width: auto; background: #fff; padding: .5rem .65rem; border-radius: 8px; }
.footer-brand p { margin-top: 1.1rem; max-width: 25rem; color: #9aa2c9; font-size: .92rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { color: #cfd5ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .85rem; color: #8a92bb;
}

/* ---------- utility ---------- */
.stack > * + * { margin-top: 1.15em; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

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