/**
 * ACE All Courses
 *
 * The homepage's system -- same tokens, same buttons, same cards -- scoped
 * to .ac so nothing here can reach another page. Each programme adds one
 * accent (--acc) for its badge, its drawing and its glow; the buttons stay
 * the site's teal.
 *
 * Rules carried over from the homepage, because the site has paid for them:
 *   - anything given a display value also gets an explicit [hidden] rule;
 *   - text in teal uses the lighter teal, white text sits on the deeper one;
 *   - nothing is left invisible if a script fails: undrawn and unrevealed
 *     states only apply under .ac-js, and .ac-show (a failsafe set from
 *     <head>) undoes them.
 */

/* ============================================================ tokens */

.ac {
  --ac-bg: var(--color-bg, #262624);
  --ac-deep: #1a1918;
  --ac-card: var(--color-bg-alt, #30302e);
  --ac-line: rgba(255, 255, 255, .08);
  --ac-line2: rgba(255, 255, 255, .14);
  --ac-text: var(--color-text, #e8e6dc);
  --ac-head: var(--color-heading, #f5f4ef);
  --ac-muted: var(--color-text-muted, #a39e93);
  --ac-teal: var(--color-primary, #008a81);
  --ac-rgb: var(--ace-primary-rgb, 0, 138, 129);
  --ac-teal-text: #61b6b1;
  --ac-teal-fill: #007870;
  --ac-ok: #8dc49a;
  --ac-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --ac-head-font: var(--font-heading, Poppins, system-ui, sans-serif);
  --ac-body-font: var(--font-body, Inter, system-ui, sans-serif);

  /* The line colour of every drawing: a cool white, so blueprints read as
     blueprints against the warm charcoal. */
  --ac-ink: 226, 236, 240;

  /* The site's own teal, until a programme sets its own. */
  --acc: #61b6b1;
  --acc-rgb: 97, 182, 177;

  color: var(--ac-text);
  font-family: var(--ac-body-font);
  overflow-x: hidden;
  overflow-x: clip;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .ac {
    --ac-teal-text: color-mix(in srgb, var(--ac-teal) 62%, #fff);
    --ac-teal-fill: color-mix(in srgb, var(--ac-teal) 87%, #000);
  }
}

/* One accent per programme, each clear of 6:1 on the page. */
.ac .is-ce { --acc: #86b1e8; --acc-rgb: 134, 177, 232; }
.ac .is-me { --acc: #5ec8b3; --acc-rgb: 94, 200, 179; }
.ac .is-pe { --acc: #f0a04b; --acc-rgb: 240, 160, 75; }
.ac .is-mp { --acc: #5bbfe0; --acc-rgb: 91, 191, 224; }

/* ============================================================ the theme around it */

.ace-courses-on .site-footer { display: none; }         /* this page carries its own */
.ace-courses-on .main-nav a[aria-current="page"] { color: var(--color-primary, #008a81); }

/* ============================================================ base */

.ac *, .ac *::before, .ac *::after { box-sizing: border-box; }
.ac h1, .ac h2, .ac h3 { margin: 0; }
:where(.ac) p { margin: 0; }
.ac a { color: inherit; }
.ac [hidden] { display: none !important; }
.ac-i { display: inline-block; flex: none; vertical-align: middle; }
.ac-i.is-up { transform: rotate(-90deg); }
.ac-sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.ac-wrap { max-width: var(--max-width, 1180px); margin: 0 auto; padding: 0 24px; }
.ac section[id], .ac [id^="ac-"] { scroll-margin-top: 100px; }
.ac h2[tabindex="-1"]:focus { outline: none; }

.ac-eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ac-teal-text);
}
.ac h2 {
  font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.16 var(--ac-head-font);
  letter-spacing: -.022em; color: var(--ac-head); text-wrap: balance;
}
.ac-head h2 { margin-top: 10px; }
.ac-head { max-width: 760px; margin-bottom: 22px; }
.ac-body { margin-top: 12px; font-size: .95rem; line-height: 1.65; color: var(--ac-muted); max-width: 56ch; text-wrap: pretty; }

/* ============================================================ buttons, chips, badges */

.ac-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ac-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .92rem/1.2 var(--ac-body-font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.ac-btn:hover { transform: translateY(-1px); }
.ac-btn:active { transform: translateY(0) scale(.98); }
.ac-btn:focus-visible, .ac-tile-link:focus-visible, .ac-tile-cta:focus-visible, .ac-motion:focus-visible,
.ac-foot a:focus-visible, .ac-note a:focus-visible {
  outline: 2px solid var(--ac-teal-text); outline-offset: 3px;
}
.ac-btn.is-primary {
  background: var(--ac-teal-fill); color: #fff;
  box-shadow: 0 10px 28px rgba(var(--ac-rgb), .32), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.ac-btn.is-primary:hover { box-shadow: 0 14px 34px rgba(var(--ac-rgb), .42), inset 0 1px 0 rgba(255, 255, 255, .2); }
.ac-btn.is-primary .ac-i { transition: transform .15s ease; }
.ac-btn.is-primary:hover .ac-i { transform: translateX(2px); }
.ac-btn.is-primary:hover .ac-i[class*="down"], .ac-hero .ac-btn.is-primary:hover .ac-i { transform: translateY(2px); }
.ac-btn.is-ghost { background: rgba(255, 255, 255, .04); border-color: var(--ac-line2); color: var(--ac-head); }
.ac-btn.is-ghost:hover { border-color: rgba(var(--ac-rgb), .6); background: rgba(var(--ac-rgb), .08); }
.ac-btn.is-soon {
  background: rgba(255, 255, 255, .03); border: 1px dashed rgba(var(--acc-rgb), .45);
  color: var(--ac-muted); cursor: not-allowed; box-shadow: none;
}
.ac-btn.is-soon:hover { transform: none; }

.ac-badge {
  display: inline-grid; place-items: center; min-width: 46px; height: 32px; padding: 0 9px;
  border-radius: 9px; border: 1px solid rgba(var(--acc-rgb), .5);
  background: rgba(var(--acc-rgb), .14); color: var(--acc);
  font: 700 .78rem/1 var(--ac-head-font); letter-spacing: .05em; white-space: nowrap;
}

.ac-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 9px;
  border-radius: 999px; border: 1px solid var(--ac-line2);
  font-size: .72rem; font-weight: 600; line-height: 1.2; color: var(--ac-text); white-space: nowrap;
}
.ac-chip.is-open i { width: 7px; height: 7px; border-radius: 50%; background: var(--ac-ok); box-shadow: 0 0 0 3px rgba(141, 196, 154, .18); }
.ac-chip.is-soon { border-color: rgba(var(--acc-rgb), .45); background: rgba(var(--acc-rgb), .1); color: var(--acc); }
.ac-chip.is-yours { border-color: rgba(var(--ac-rgb), .5); color: var(--ac-teal-text); }

.ac-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.ac-facts li { display: flex; gap: 10px; font-size: .88rem; line-height: 1.45; color: var(--ac-text); }
.ac-facts li .ac-i { margin-top: 2px; color: var(--acc); }

/* ============================================================ A. hero */

.ac-hero { position: relative; padding: 30px 0 34px; isolation: isolate; }
.ac-hero::before {
  content: ""; position: absolute; inset: -84px 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 320px at 74% 40%, rgba(var(--ac-rgb), .18), transparent 70%),
    radial-gradient(420px 260px at 4% 90%, rgba(var(--ac-rgb), .07), transparent 70%);
}
.ac-hero-grid { display: grid; grid-template-columns: minmax(0, 41fr) minmax(0, 59fr); gap: 40px; align-items: center; }
.ac-hero h1 {
  margin-top: 12px;
  font: 800 clamp(2rem, 3.3vw, 2.65rem)/1.07 var(--ac-head-font);
  letter-spacing: -.03em; color: var(--ac-head); text-wrap: balance;
}
.ac-lede { margin-top: 14px; font-size: 1rem; line-height: 1.6; color: var(--ac-muted); max-width: 46ch; text-wrap: pretty; }
.ac-note { margin-top: 12px; font-size: .8rem; line-height: 1.5; color: var(--ac-muted); }
.ac-note a { color: var(--ac-teal-text); font-weight: 600; text-decoration: none; }
.ac-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ac-hero-visual { position: relative; min-width: 0; }
.ac-sheet {
  position: relative; overflow: hidden; border-radius: 14px;
  border: 1px solid var(--ac-line2);
  background: radial-gradient(90% 90% at 60% 30%, rgba(var(--acc-rgb), .1), transparent 70%), #1b1d1d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .3);
}
.ac-motion {
  position: relative; margin-top: 10px;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: 999px; border: 1px solid var(--ac-line2); background: rgba(20, 20, 19, .82);
  color: var(--ac-text); font: 600 .7rem/1.2 var(--ac-body-font); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ac-motion:hover { border-color: rgba(var(--ac-rgb), .6); }
.ac-motion-play, .ac-paused .ac-motion-pause { display: none; }
.ac-paused .ac-motion-play { display: inline-flex; align-items: center; gap: 6px; }
.ac-motion-pause { display: inline-flex; align-items: center; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .ac-motion { display: none; } }
/* No script, or it never arrived: nothing moves, so nothing to pause. */
:root:not(.ac-js) .ac-motion, .ac-show .ac-motion { display: none; }

/* ============================================================ B. overview */

.ac-overview { padding: 38px 0 26px; }
.ac-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.ac-tile {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  border-radius: 14px; border: 1px solid var(--ac-line);
  background: linear-gradient(180deg, rgba(var(--acc-rgb), .08), transparent 55%), var(--ac-card);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.ac-tile:hover { border-color: rgba(var(--acc-rgb), .5); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.ac-tile:first-child { grid-column: span 2; grid-row: span 2; }
.ac-tile:nth-child(n+4), .ac-tile.is-soon { grid-column: 1 / -1; flex-direction: row-reverse; align-items: stretch; }

.ac-tile-art {
  position: relative; display: grid; place-items: center; padding: 18px 18px 6px;
  border-bottom: 1px solid var(--ac-line);
  background:
    radial-gradient(70% 90% at 50% 40%, rgba(var(--acc-rgb), .12), transparent 70%),
    repeating-linear-gradient(0deg, rgba(var(--acc-rgb), .05) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(var(--acc-rgb), .05) 0 1px, transparent 1px 16px);
}
.ac-tile-art .ac-emblem { width: 100%; max-height: 150px; }
.ac-tile:first-child .ac-tile-art { flex: 1; padding: 26px 26px 10px; }
.ac-tile:first-child .ac-tile-art .ac-emblem { max-height: 440px; }
.ac-tile:nth-child(n+4) .ac-tile-art, .ac-tile.is-soon .ac-tile-art { flex: 0 0 38%; border-bottom: 0; border-left: 1px solid var(--ac-line); padding: 12px 18px; }
.ac-tile.is-soon .ac-tile-art .ac-emblem { max-height: 130px; opacity: .85; }

.ac-tile-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 16px; flex: 1; }
.ac-tile:first-child .ac-tile-body { flex: none; padding: 18px 22px 20px; }
.ac-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ac-tile h3 { font: 700 1.08rem/1.25 var(--ac-head-font); color: var(--ac-head); letter-spacing: -.01em; }
.ac-tile:first-child h3 { font-size: 1.35rem; }
.ac-tile-link { text-decoration: none; }
.ac-tile-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ac-tile p { font-size: .86rem; line-height: 1.5; color: var(--ac-muted); }
.ac-tile-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; padding-top: 6px; }
.ac-tile-more { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--ac-muted); }
.ac-tile:hover .ac-tile-more { color: var(--ac-head); }
.ac-tile-cta {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600;
  color: var(--ac-teal-text); text-decoration: none;
}
.ac-tile-cta:hover { text-decoration: underline; text-underline-offset: 3px; }
.ac-tile.is-soon { background: linear-gradient(90deg, var(--ac-card), rgba(var(--acc-rgb), .07)), var(--ac-card); border-style: dashed; border-color: rgba(var(--acc-rgb), .3); }

/* ============================================================ C. the courses */

.ac-course { position: relative; padding: 60px 0; }
.ac-course::before {                       /* a hairline between sections, fading at the ends */
  content: ""; position: absolute; top: 0; left: 50%; width: min(1132px, calc(100% - 48px)); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--ac-line2) 20%, var(--ac-line2) 80%, transparent);
}
.ac-course::after {                        /* the programme's own glow */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(560px 360px at 72% 50%, rgba(var(--acc-rgb), .08), transparent 70%);
}
.ac-course.is-me::after { background: radial-gradient(560px 360px at 28% 50%, rgba(var(--acc-rgb), .08), transparent 70%); }
.ac-course .ac-eyebrow { color: var(--acc); }

.ac-course-title { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.ac-course-title h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.ac-tagline { margin-top: 12px; font: 600 1.04rem/1.45 var(--ac-head-font); color: var(--ac-head); letter-spacing: -.01em; max-width: 40ch; text-wrap: balance; }
.ac-course-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin-top: 24px; }

.ac-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.ac-split.is-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ac-split.is-flip .ac-split-copy { order: 2; }
.ac-split-visual { min-width: 0; }

.ac-stage {
  position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--ac-line2);
  background:
    radial-gradient(80% 80% at 60% 40%, rgba(var(--acc-rgb), .12), transparent 70%),
    #1b1c1c;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}
.ac-stage .ac-art { width: 100%; height: auto; }

/* Civil: the board subjects and their weights. */
.ac-subjects { margin-top: 20px; }
.ac-subjects p { font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: var(--ac-muted); }
.ac-subjects ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ac-subjects li {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 9px;
  border: 1px solid rgba(var(--acc-rgb), .3); background: rgba(var(--acc-rgb), .07); cursor: help;
}
.ac-subjects b { font: 700 .8rem/1 var(--ac-head-font); color: var(--ac-head); letter-spacing: .03em; }
.ac-subjects span { font: 700 .8rem/1 var(--ac-mono); color: var(--acc); }

/* Project: the schedule and the site across the width, the words floating
   over them. Stage and panel share one grid cell, so the stage always grows
   to hold the panel -- the panel floats, but never spills out. */
.ac-pe { display: grid; grid-template-columns: 44px minmax(0, 350px) minmax(0, 1fr); }
.ac-pe-stage {
  grid-column: 1 / -1; grid-row: 1;
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: end;
  min-height: 460px; padding: 26px 26px 0 calc(44px + 350px + 34px);
  border-radius: 18px; border: 1px solid var(--ac-line2); overflow: hidden;
  background:
    radial-gradient(70% 90% at 70% 30%, rgba(var(--acc-rgb), .11), transparent 70%),
    repeating-linear-gradient(0deg, rgba(var(--ac-ink), .035) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgba(var(--ac-ink), .035) 0 1px, transparent 1px 20px),
    linear-gradient(180deg, #1c2230, #1a1d24);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .38);
}
.ac-pe-gantt { position: relative; z-index: 1; justify-self: start; width: min(430px, 66%); min-width: 0; margin-bottom: -84px; }
.ac-pe-gantt .ac-art { filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .45)); }
.ac-pe-site { min-width: 0; }
.ac-pe-panel {
  grid-column: 2; grid-row: 1; align-self: center; position: relative; z-index: 2; margin: 30px 0;
  padding: 24px 24px 22px; border-radius: 14px;
  border: 1px solid rgba(var(--acc-rgb), .3);
  background: rgba(30, 31, 33, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .5);
}
.ac-pe-panel .ac-course-title h2 { font-size: 1.6rem; }
.ac-pe-panel .ac-facts li { font-size: .84rem; }
.ac-pe-panel .ac-body { font-size: .9rem; }

/* Coming soon: a card with a dashed edge, the drawing muted and stamped. */
.ac-soon-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  border-radius: 18px; border: 1px dashed rgba(var(--acc-rgb), .38); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .014) 0 14px, transparent 14px 28px),
    linear-gradient(90deg, var(--ac-card), rgba(var(--acc-rgb), .06));
}
.ac-soon-copy { padding: 38px 36px; }
.ac-soon-art { position: relative; align-self: stretch; display: grid; place-items: center; padding: 20px; border-left: 1px solid var(--ac-line); }
.ac-soon-art .ac-art { width: 100%; height: auto; opacity: .78; filter: saturate(.75); }
.ac-soon-stamp {
  position: absolute; top: 18px; right: 18px; transform: rotate(-4deg);
  padding: 6px 12px; border-radius: 6px; border: 1.5px solid var(--acc); color: var(--acc);
  background: rgba(20, 22, 23, .7);
  font: 800 .72rem/1 var(--ac-mono); letter-spacing: .2em; text-transform: uppercase;
}

/* ============================================================ D. benefits */

.ac-benefits { padding: 58px 0 30px; position: relative; }
.ac-benefits::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(1132px, calc(100% - 48px)); height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--ac-line2) 20%, var(--ac-line2) 80%, transparent);
}
.ac-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac-benefit-grid.is-n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }       /* four in a row, not three and one */
@media (max-width: 1100px) { .ac-benefit-grid.is-n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ac-benefit {
  display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; min-width: 0;
  border-radius: 14px; border: 1px solid var(--ac-line); background: var(--ac-card);
}
.ac-benefit h3 { display: flex; align-items: center; gap: 8px; margin-top: 6px; font: 700 .98rem/1.3 var(--ac-head-font); color: var(--ac-head); }
.ac-benefit h3 .ac-i { color: var(--ac-teal-text); }
.ac-benefit p { font-size: .84rem; line-height: 1.55; color: var(--ac-muted); }

/* The previews: small, still, the site's own shapes. */
.ac-mini {
  height: 104px; padding: 12px; border-radius: 10px; border: 1px solid var(--ac-line);
  background: #1f1f1d; font-size: 11px; color: var(--ac-text); overflow: hidden;
}
.ac-mini-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ac-mini-bar i { display: block; height: 100%; width: var(--p, 50%); border-radius: 3px; background: var(--ac-teal-fill); }
@media (prefers-reduced-motion: no-preference) {
  .ac-js:not(.ac-show) .ac [data-reveal]:not(.is-in) .ac-mini-bar i { width: 0; }
  .ac-mini-bar i { transition: width 1.2s cubic-bezier(.3, 0, .2, 1) .3s; }
}
.ac-mini-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--ac-teal-fill); color: #fff; font-size: 10px; font-weight: 600; }

.ac-mini.is-player { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
.ac-mini-side { display: grid; gap: 6px; align-content: start; padding-right: 10px; border-right: 1px solid var(--ac-line); }
.ac-mini-side i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.ac-mini-side i.is-done { background: rgba(141, 196, 154, .45); }
.ac-mini-side i.is-on { background: var(--ac-teal-fill); }
.ac-mini-main { display: grid; gap: 6px; align-content: start; }
.ac-mini-main b { font: 700 12px/1.2 var(--ac-head-font); color: var(--ac-head); }
.ac-mini-main em { font-style: normal; font-size: 10px; color: var(--ac-muted); }
.ac-mini-main .ac-mini-pill { justify-self: start; }

.ac-mini.is-practice { display: grid; gap: 7px; align-content: start; }
.ac-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ac-mini-top b { font: 700 13px/1 var(--ac-head-font); color: var(--ac-head); font-variant-numeric: tabular-nums; }
.ac-mini-chips { display: flex; gap: 4px; }
.ac-mini-chips i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .14); }
.ac-mini-chips i.is-ok { background: rgba(111, 168, 125, .3); border-color: rgba(111, 168, 125, .6); }
.ac-mini-chips i.is-bad { background: rgba(224, 101, 74, .28); border-color: rgba(224, 101, 74, .6); }
.ac-mini-chips i.is-on { border: 2px solid var(--ac-teal-text); }
.ac-mini-opt { display: block; padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .12); font-size: 10px; }
.ac-mini-opt.is-right { border-color: rgba(111, 168, 125, .6); background: rgba(111, 168, 125, .12); color: var(--ac-head); }

.ac-mini.is-queue { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.ac-mini.is-queue span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(var(--ac-rgb), .45); color: var(--ac-teal-text); font-weight: 600; font-size: 10px; }
.ac-mini.is-queue span.is-done { border-color: rgba(141, 196, 154, .5); color: var(--ac-ok); }
.ac-mini.is-queue > .ac-i { color: var(--ac-muted); }

.ac-mini.is-dash { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.ac-mini.is-dash > div { display: grid; gap: 5px; align-content: start; padding: 8px; border-radius: 7px; border: 1px solid var(--ac-line); background: rgba(255, 255, 255, .02); }
.ac-mini.is-dash em { font-style: normal; font-size: 9px; color: var(--ac-muted); }
.ac-mini.is-dash b { font: 700 14px/1 var(--ac-head-font); color: var(--ac-head); }

.ac-mini.is-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: 10px; }
.ac-mini.is-cal i { display: grid; place-items: center; height: 17px; border-radius: 4px; font-style: normal; font-size: 8.5px; color: var(--ac-muted); background: rgba(255, 255, 255, .025); }
.ac-mini.is-cal i.is-exam { background: var(--ac-teal-fill); color: #fff; font-weight: 700; }
.ac-mini.is-cal i.is-off { background: rgba(232, 176, 79, .22); color: #e8b04f; }

.ac-mini.is-app { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ac-mini-phone { display: grid; grid-template-columns: repeat(2, 14px); gap: 5px; padding: 12px 9px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .25); }
.ac-mini-phone i { width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.ac-mini-phone i.is-on { background: var(--ac-teal-fill); }

/* ============================================================ E. closing */

.ac-close { padding: 34px 0 56px; }
.ac-close-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 30px 32px; border-radius: 16px; border: 1px solid rgba(var(--ac-rgb), .35);
  background: radial-gradient(600px 240px at 90% 0%, rgba(var(--ac-rgb), .22), transparent 70%), var(--ac-card);
}
.ac-close-box h2 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); }
.ac-close-box p { margin-top: 8px; font-size: .92rem; color: var(--ac-muted); }
.ac-close-box .ac-ctas { margin-top: 0; }

/* ============================================================ F. footer */

.ac-foot { padding: 40px 0 22px; background: var(--ac-deep); border-top: 1px solid var(--ac-line); font-size: .84rem; }
.ac-foot-grid { display: grid; grid-template-columns: minmax(0, 1.7fr); grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 28px; }
.ac-foot-name { font: 700 1rem var(--ac-head-font); color: var(--ac-head); text-decoration: none; }
.ac-foot-brand p { margin-top: 8px; max-width: 36ch; font-size: .82rem; line-height: 1.6; color: var(--ac-muted); }
.ac-socials { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.ac-social { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ac-text); text-decoration: none; }
.ac-social:hover { color: var(--ac-teal-text); }
.ac-foot .ac-foot-h { margin: 0 0 10px; font: 700 .7rem var(--ac-body-font); letter-spacing: .12em; text-transform: uppercase; color: var(--ac-muted); }
.ac-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ac-foot li a { color: var(--ac-text); text-decoration: none; }
.ac-foot li a:hover { color: var(--ac-teal-text); }
.ac-foot-base { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--ac-line); font-size: .76rem; color: var(--ac-muted); }
.ac-top-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ac-muted); text-decoration: none; white-space: nowrap; }
.ac-top-link:hover { color: var(--ac-head); }

/* ============================================================ the drawings: ink */

.ac-art { display: block; overflow: hidden; }
.ac-art text { font-family: var(--ac-mono); }

.ac-grid-fine { fill: none; stroke: rgba(var(--acc-rgb), .07); stroke-width: .6; }
.ac-grid-major { fill: none; stroke: rgba(var(--acc-rgb), .13); stroke-width: .8; }

.ac-ln { fill: none; stroke: rgba(var(--ac-ink), .3); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.ac-ln2 { fill: none; stroke: rgba(var(--ac-ink), .58); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.ac-ln3 { fill: none; stroke: rgba(var(--ac-ink), .86); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ac-hatch { stroke: rgba(var(--ac-ink), .16); stroke-width: 1; }
.ac-dim { fill: none; stroke: rgba(var(--acc-rgb), .6); stroke-width: .8; }
.ac-ext { stroke: rgba(var(--ac-ink), .14); stroke-width: .8; stroke-dasharray: 2 3; }
.ac-gridline { fill: none; stroke: rgba(var(--ac-ink), .1); stroke-width: .8; stroke-dasharray: 3 3; }
.ac-city { fill: none; stroke: rgba(var(--ac-ink), .09); stroke-width: 1; }

.ac-tx { fill: rgba(var(--ac-ink), .62); font-size: 8.5px; font-weight: 600; letter-spacing: .06em; }
.ac-tx.is-strong { fill: rgba(var(--ac-ink), .92); font-weight: 700; }
.ac-tx.is-tiny { font-size: 7px; }
.ac-tx.is-acc, .ac-tx.is-read, .ac-tx.is-bubble { fill: var(--acc); }
.ac-tx.is-read { font-size: 11px; font-weight: 700; letter-spacing: 0; }
.ac-art-pe-gantt .ac-tx { font-size: 9.5px; }
.ac-art-pe-gantt .ac-tx.is-tiny { font-size: 7.5px; }
.ac-art-pe-gantt .ac-tx.is-tag { font-size: 6.5px; }
.ac-tx.is-bubble { font-size: 9px; font-weight: 700; }
.ac-tx.is-tag { fill: #121414; font-size: 6.5px; font-weight: 800; }
.ac-tx.is-done { fill: rgba(var(--ac-ink), .42); }

/* hero */
.ac-cable { stroke: rgba(var(--acc-rgb), .72); stroke-width: .9; }
.ac-pulse { stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: .05 1.2; stroke-dashoffset: .05; opacity: 0; }
.ac-beacon { fill: var(--acc); }
.ac-beacon.is-red { fill: #ef6a5a; }
.ac-car rect { fill: var(--acc); }
.ac-car circle { fill: rgba(var(--ac-ink), .9); }
.ac-car.is-back rect { fill: rgba(var(--ac-ink), .75); }
.ac-titleblock rect, .ac-titleblock line { fill: none; stroke: rgba(var(--ac-ink), .3); stroke-width: .8; }
.ac-bar-a { fill: rgba(var(--ac-ink), .55); }
.ac-bar-b { fill: none; stroke: rgba(var(--ac-ink), .55); stroke-width: .8; }
.ac-scan { display: none; }
.ac-scan line { stroke: rgba(var(--acc-rgb), .45); stroke-width: 1; }
.ac-scan circle { fill: rgba(var(--acc-rgb), .15); stroke: var(--acc); stroke-width: 1; }

/* civil */
.ac-col { stroke: rgba(var(--ac-ink), .88); stroke-width: 2.2; stroke-linecap: square; }
.ac-beam { stroke: rgba(var(--ac-ink), .72); stroke-width: 1.7; }
.ac-brace { stroke: rgba(var(--acc-rgb), .75); stroke-width: 1; }
.ac-bubble { fill: rgba(var(--acc-rgb), .08); stroke: rgba(var(--acc-rgb), .75); stroke-width: 1; }
.ac-pane { fill: rgba(var(--acc-rgb), .16); stroke: rgba(var(--acc-rgb), .45); stroke-width: .8; }
.ac-pane.is-lit { fill: rgba(255, 214, 150, .3); stroke: rgba(255, 214, 150, .45); }
.ac-load { fill: rgba(var(--acc-rgb), .85); }

/* materials */
.ac-spec { fill: rgba(200, 206, 212, .1); stroke: rgba(var(--ac-ink), .62); stroke-width: 1.2; }
.ac-stone { fill: rgba(var(--ac-ink), .13); stroke: rgba(var(--ac-ink), .3); stroke-width: .6; }
.ac-cracks path, path.ac-cracks { fill: none; stroke: #f2b27b; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ac-cracks { opacity: 0; }
path.ac-cracks { opacity: .85; }
.ac-gauge { fill: rgba(var(--acc-rgb), .35); stroke: var(--acc); stroke-width: .8; }
.ac-wire { fill: none; stroke: rgba(var(--acc-rgb), .55); stroke-width: 1; stroke-linecap: round; }
.ac-panel { fill: rgba(12, 16, 16, .55); stroke: rgba(var(--ac-ink), .2); stroke-width: 1; }
.ac-curve { fill: none; stroke: var(--acc); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ac-peak circle { fill: var(--acc); }
.ac-peak line { stroke: rgba(var(--acc-rgb), .45); stroke-width: .8; stroke-dasharray: 2 3; }
.ac-peak-dot { fill: var(--acc); }
.ac-grain { fill: rgba(var(--ac-ink), .38); }

/* project */
.ac-panel-fill { fill: rgba(17, 21, 29, .92); stroke: rgba(var(--ac-ink), .16); stroke-width: 1; }
.ac-bar { fill: rgba(var(--ac-ink), .04); stroke: rgba(var(--ac-ink), .24); stroke-width: .8; }
.ac-bar-fill { fill: rgba(var(--acc-rgb), .82); transform-box: fill-box; transform-origin: 0 50%; }
.ac-bar-fill.is-done { fill: rgba(var(--acc-rgb), .42); }
.ac-link { fill: none; stroke: rgba(var(--ac-ink), .22); stroke-width: .8; }
.ac-ms { fill: rgba(var(--ac-ink), .12); stroke: rgba(var(--ac-ink), .5); stroke-width: .8; }
.ac-ms.is-done { fill: var(--acc); stroke: var(--acc); }
.ac-today line, .ac-today-line { stroke: var(--acc); stroke-width: 1.3; stroke-dasharray: 3 2; }
.ac-today rect { fill: var(--acc); }
.ac-today { transform: translateX(var(--x)); }
.ac-ring-track { fill: none; stroke: rgba(var(--ac-ink), .12); stroke-width: 3; }
.ac-ring { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 62 100; }
.ac-floor rect { fill: rgba(var(--ac-ink), .05); stroke: rgba(var(--ac-ink), .62); stroke-width: 1.1; }
.ac-floor .ac-win { fill: rgba(var(--acc-rgb), .28); stroke: none; }
.ac-floor.is-planned rect { fill: none; stroke: rgba(var(--ac-ink), .26); stroke-dasharray: 4 3; }
.ac-floor.is-planned .ac-win { fill: none; stroke: rgba(var(--ac-ink), .13); stroke-width: .8; stroke-dasharray: none; }
.ac-scaffold { fill: none; stroke: rgba(var(--acc-rgb), .6); stroke-width: 1; stroke-dasharray: 2 2; }

/* plumbing */
.ac-slab { fill: rgba(var(--ac-ink), .03); stroke: rgba(var(--ac-ink), .14); stroke-width: 1; }
.ac-pipe { fill: none; stroke: rgba(var(--acc-rgb), .38); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ac-flow { fill: none; stroke: var(--acc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 5 9; }
.ac-drain { fill: none; stroke: rgba(var(--ac-ink), .32); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ac-drain-flow { fill: none; stroke: rgba(var(--ac-ink), .55); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 3 13; }
.ac-vent { fill: none; stroke: rgba(var(--ac-ink), .28); stroke-width: 3; stroke-linecap: round; }
.ac-fixture { fill: rgba(var(--ac-ink), .05); stroke: rgba(var(--ac-ink), .5); stroke-width: 1; stroke-linejoin: round; }
.ac-valve { fill: rgba(var(--acc-rgb), .3); stroke: var(--acc); stroke-width: 1; }
.ac-meter { fill: rgba(12, 16, 16, .85); stroke: var(--acc); stroke-width: 1.2; }
.ac-drip { transform: translate(var(--x), var(--y)); }
.ac-drip path { fill: var(--acc); }

/* Resting places for the moving parts, which is also where they stay when
   the page is still: the car off the drawing, the trolleys partway out. */
.ac-car { transform: translateX(-40px); }
.ac-car.is-back { transform: translateX(40px); }
.ac-art-ce .ac-trolley { transform: translate(482px, 0); }
.ac-art-ce .ac-hook { transform: translateY(-150px); }
.ac-trolley.is-pe { transform: translateX(430px); }
.ac-trolley.is-emblem { transform: translateX(244px); }

/* ============================================================ the drawings: motion */

@keyframes ac-draw { to { stroke-dashoffset: 0; } }
@keyframes ac-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ac-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ac-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ac-ring { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 62 100; } }
@keyframes ac-today { from { transform: translateX(0); } to { transform: translateX(var(--x)); } }

@media (prefers-reduced-motion: no-preference) {

/* Start states, only once courses.js is running and motion is wanted. */
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene .ac-d {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: ac-draw var(--t, .8s) cubic-bezier(.45, 0, .2, 1) var(--d, 0s) forwards;
}
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene .ac-f {
  opacity: 0;
  animation: ac-fade .6s ease var(--d, 0s) forwards;
}
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene .ac-rise {
  opacity: 0;
  animation: ac-rise .55s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) forwards;
}
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene .ac-bar-fill:not(.is-loop) {
  transform: scaleX(0);
  animation: ac-grow var(--t, 1s) linear var(--d, 0s) forwards;
}
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene .ac-ring {
  stroke-dasharray: 0 100;
  animation: ac-ring 5s linear .6s forwards;
}
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene .ac-today {
  transform: translateX(0);
  animation: ac-today 5s linear .6s forwards;
}
/* Held until the drawing is on screen, and held again while it is away.
   (One class more than the rules above, so it wins over them.) */
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene:not(.is-live) .ac-d,
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene:not(.is-live) .ac-f,
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene:not(.is-live) .ac-rise,
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene:not(.is-live) .ac-bar-fill:not(.is-loop),
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene:not(.is-live) .ac-ring,
.ac-js:not(.ac-paused):not(.ac-show) .ac-scene:not(.is-live) .ac-today {
  animation-play-state: paused;
}

/* The loops: only while the scene is on screen and motion is wanted. */
.ac-js:not(.ac-paused) .is-live .ac-scan { display: block; animation: ac-scan 9s ease-in-out 3.2s infinite alternate both; }
@keyframes ac-scan { from { transform: translateX(8px); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateX(632px); opacity: 0; } }

.ac-js:not(.ac-paused) .is-live .ac-car { animation: ac-car 11s linear 3s infinite; }
.ac-js:not(.ac-paused) .is-live .ac-car.is-back { animation: ac-car-back 13s linear 6s infinite; }
@keyframes ac-car { from { transform: translateX(-10px); } to { transform: translateX(660px); } }
@keyframes ac-car-back { from { transform: translateX(10px); } to { transform: translateX(-680px); } }

.ac-js:not(.ac-paused) .is-live .ac-pulse { animation: ac-pulse 4.6s cubic-bezier(.4, 0, .6, 1) var(--d, 3s) infinite; }
@keyframes ac-pulse {
  0% { stroke-dashoffset: .05; opacity: 0; }
  6% { opacity: 1; }
  44% { stroke-dashoffset: -1; opacity: 1; }
  48%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

.ac-js:not(.ac-paused):not(.ac-show) .ac-scene .ac-beacon { opacity: 0; }
.ac-js:not(.ac-paused) .is-live .ac-beacon { animation: ac-blink 2.4s steps(1, end) 1.4s infinite; }
@keyframes ac-blink { 0% { opacity: 1; } 12% { opacity: .15; } 100% { opacity: .15; } }

.ac-js:not(.ac-paused) .is-live .ac-art-ce .ac-hook { animation: ac-hook 12s ease-in-out 3.4s infinite both; }
@keyframes ac-hook {
  0% { transform: translateY(0); }
  40%, 58% { transform: translateY(-190px); }
  92%, 100% { transform: translateY(0); }
}
.ac-js:not(.ac-paused) .is-live .ac-art-ce .ac-trolley { animation: ac-trolley 12s ease-in-out 3.4s infinite both; }
@keyframes ac-trolley {
  0%, 38% { transform: translate(482px, 0); }
  56%, 62% { transform: translate(500px, 0); }
  92%, 100% { transform: translate(482px, 0); }
}
.ac-pane.is-lit { --tw: 5s; }
.ac-pane.is-lit:nth-of-type(2n) { --tw: 7s; }
.ac-js:not(.ac-paused) .is-live .ac-pane.is-lit { animation: ac-twinkle var(--tw) ease-in-out infinite alternate; }
/* The frame's own lit windows rise with the others first, then twinkle. */
.ac-js:not(.ac-paused):not(.ac-show) .is-live .ac-pane.ac-rise.is-lit {
  animation: ac-rise .55s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) forwards,
             ac-twinkle var(--tw) ease-in-out calc(var(--d, 0s) + 1.4s) infinite alternate;
}
@keyframes ac-twinkle { from { opacity: 1; } to { opacity: .45; } }

/* Materials: one test every eight seconds -- load, peak, cracks, release. */
.ac-js:not(.ac-paused) .is-live .ac-press { animation: ac-press 8s ease-in-out 2.2s infinite both; }
@keyframes ac-press { 0% { transform: translateY(0); } 55% { transform: translateY(3px); } 72% { transform: translateY(4px); } 90%, 100% { transform: translateY(0); } }
.ac-js:not(.ac-paused) .is-live .ac-curve:not(.is-loop) { stroke-dasharray: 1; animation: ac-plot 8s linear 2.2s infinite both; }
@keyframes ac-plot {
  0% { stroke-dashoffset: 1; opacity: 1; }
  75% { stroke-dashoffset: 0; opacity: 1; }
  86% { stroke-dashoffset: 0; opacity: 1; }
  95%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
.ac-peak { opacity: 1; }
.ac-js:not(.ac-paused) .is-live .ac-peak { animation: ac-peak 8s linear 2.2s infinite both; }
@keyframes ac-peak { 0%, 54% { opacity: 0; } 58%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
.ac-js:not(.ac-paused) .is-live .ac-cracks:not(.is-static) { animation: ac-peak 8s linear 2.2s infinite both; }
.ac-js:not(.ac-paused) .is-live .ac-cracks path { stroke-dasharray: 1; animation: ac-crack 8s linear 2.2s infinite both; }
@keyframes ac-crack { 0%, 55% { stroke-dashoffset: 1; } 64%, 100% { stroke-dashoffset: 0; } }
.ac-js:not(.ac-paused) .is-live .ac-grain { animation: ac-shake .28s ease-in-out var(--d, 0s) infinite alternate; }
@keyframes ac-shake { from { transform: translate(-.6px, 0); } to { transform: translate(.6px, -.4px); } }
.ac-js:not(.ac-paused) .is-live .ac-wire { stroke-dasharray: 1; }

/* Project: the crane keeps working after the schedule has played. */
.ac-js:not(.ac-paused) .is-live .ac-trolley.is-pe { animation: ac-trolley-pe 9s ease-in-out 2s infinite alternate both; }
@keyframes ac-trolley-pe { from { transform: translateX(412px); } to { transform: translateX(452px); } }
.ac-js:not(.ac-paused) .is-live .ac-today rect { animation: ac-glow 2s ease-in-out 6s infinite alternate; }
@keyframes ac-glow { from { opacity: 1; } to { opacity: .55; } }

/* Plumbing: water moves, the tap drips. */
.ac-js:not(.ac-paused) .is-live .ac-flow { animation: ac-flow 1.1s linear infinite; }
@keyframes ac-flow { to { stroke-dashoffset: -28; } }
.ac-js:not(.ac-paused) .is-live .ac-drain-flow { animation: ac-flow-d 2.4s linear infinite; }
@keyframes ac-flow-d { to { stroke-dashoffset: -32; } }
.ac-js:not(.ac-paused) .is-live .ac-drip { animation: ac-drip 1.9s cubic-bezier(.5, 0, 1, .6) infinite; }
@keyframes ac-drip {
  0% { transform: translate(var(--x), var(--y)) scale(.4); opacity: 0; }
  20% { transform: translate(var(--x), var(--y)) scale(1); opacity: 1; }
  80% { transform: translate(var(--x), calc(var(--y) + 26px)) scale(1); opacity: 1; }
  100% { transform: translate(var(--x), calc(var(--y) + 30px)) scale(1); opacity: 0; }
}

/* The overview's emblems: small loops of their own. */
.ac-js:not(.ac-paused) .is-live .ac-em-hook { animation: ac-bob 5s ease-in-out infinite alternate; }
@keyframes ac-bob { from { transform: translateY(-30px); } to { transform: translateY(12px); } }
.ac-js:not(.ac-paused) .is-live .ac-curve.is-loop { stroke-dasharray: 1; animation: ac-plot 6s linear infinite both; }
.ac-js:not(.ac-paused) .is-live .ac-peak-dot, .ac-js:not(.ac-paused) .is-live .ac-cracks.is-static { animation: ac-peak 6s linear infinite both; }
.ac-js:not(.ac-paused) .is-live .ac-bar-fill.is-loop { animation: ac-bars 7s cubic-bezier(.4, 0, .2, 1) var(--d, 0s) infinite both; }
@keyframes ac-bars { 0% { transform: scaleX(0); } 40%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

}

/* Still, when asked for or when the system says so: every drawing finished. */
@media (prefers-reduced-motion: reduce) {
  .ac *, .ac *::before, .ac *::after { animation: none !important; transition: none !important; }
  .ac .ac-d { stroke-dashoffset: 0 !important; }
  .ac .ac-f, .ac .ac-rise { opacity: 1 !important; transform: none !important; }
  .ac .ac-scan { display: none !important; }
}
.ac-paused .ac .ac-scan { display: none; }
/* The theme scrolls every page smoothly; on this page, not for anyone who
   has asked their system for less motion. */
@media (prefers-reduced-motion: reduce) { html:has(> body.ace-courses-on) { scroll-behavior: auto; } }

/* ============================================================ reveal on scroll */

@media (prefers-reduced-motion: no-preference) {
  /* The individual translate property, so an element's own transform
     (a tile lifting on hover) still works once it has come in. */
  .ac-js .ac [data-reveal] { opacity: 0; translate: 0 14px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1); }
  .ac-js .ac [data-reveal].is-in, .ac-show .ac [data-reveal] { opacity: 1; translate: none; }
  .ac-js .ac .ac-tile[data-reveal] {
    transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .2, 1), border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  }
}

/* ============================================================ narrower screens */

@media (max-width: 1100px) {
  .ac-pe { grid-template-columns: 28px minmax(0, 320px) minmax(0, 1fr); }
  .ac-pe-stage { padding-left: calc(28px + 320px + 24px); }
  .ac-pe-gantt { width: min(400px, 76%); margin-bottom: -60px; }
}

@media (max-width: 960px) {
  .ac-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ac-hero-visual { max-width: 680px; }
  .ac-split, .ac-split.is-flip { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ac-split .ac-split-visual { order: -1; }
  .ac-split.is-flip .ac-split-copy { order: 0; }
  .ac-split-visual .ac-stage { max-width: 640px; }
  .ac-course::after { background: radial-gradient(480px 320px at 50% 20%, rgba(var(--acc-rgb), .08), transparent 70%); }

  /* Stacked: the panel still overlaps the stage's lower edge, but only the
     empty band kept below the ground line -- never the drawing itself. */
  .ac-pe { display: block; }
  .ac-pe-stage { min-height: 0; padding: 22px 22px 40px; }
  .ac-pe-gantt { width: min(430px, 70%); margin-bottom: -70px; }
  .ac-pe-panel { max-width: 560px; margin: -30px 16px 0; }

  .ac-soon-card { grid-template-columns: minmax(0, 1fr); }
  .ac-soon-art { order: -1; border-left: 0; border-bottom: 1px solid var(--ac-line); }
  .ac-soon-art .ac-art { max-width: 540px; }
  .ac-soon-copy { padding: 26px 24px 28px; }

  .ac-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-tile:first-child { grid-column: 1 / -1; grid-row: auto; }
  .ac-tile:first-child .ac-tile-art .ac-emblem { max-height: 220px; }
  .ac-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row; }
  .ac-foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .ac-wrap { padding: 0 18px; }
  .ac-hero { padding: 22px 0 26px; }
  .ac-hero h1 { font-size: clamp(1.8rem, 8.2vw, 2.2rem); }
  .ac-ctas { gap: 8px; }
  .ac-ctas .ac-btn { flex: 1 1 auto; justify-content: center; }
  .ac-course { padding: 42px 0; }
  .ac-overview { padding: 30px 0 18px; }

  /* A phone: the overview becomes a list -- a thumbnail and the words --
     so all four fit on about one screen before the sections begin. */
  .ac-bento { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ac-tile, .ac-tile:first-child, .ac-tile:nth-child(n+4), .ac-tile.is-soon { flex-direction: row; grid-column: auto; grid-row: auto; }
  .ac-tile .ac-tile-art, .ac-tile:first-child .ac-tile-art, .ac-tile:nth-child(n+4) .ac-tile-art, .ac-tile.is-soon .ac-tile-art {
    flex: 0 0 104px; padding: 8px; border: 0; border-right: 1px solid var(--ac-line);
  }
  .ac-tile .ac-tile-art .ac-emblem, .ac-tile:first-child .ac-tile-art .ac-emblem, .ac-tile.is-soon .ac-tile-art .ac-emblem { max-height: 86px; }
  .ac-tile:nth-child(n+4) .ac-tile-art, .ac-tile.is-soon .ac-tile-art { order: -1; }
  .ac-tile-body, .ac-tile:first-child .ac-tile-body { flex: 1; min-width: 0; padding: 12px 14px 12px; gap: 5px; }
  .ac-tile h3, .ac-tile:first-child h3 { font-size: 1rem; }
  .ac-tile p { font-size: .8rem; }
  .ac-tile-top .ac-badge { min-width: 38px; height: 26px; font-size: .7rem; }
  .ac-tile-top .ac-chip { padding: 3px 8px; font-size: .66rem; }
  .ac-tile-more { display: none; }
  .ac-tile-foot { padding-top: 2px; }
  .ac-tile:hover { transform: none; }

  .ac-pe-stage { padding: 14px 12px 0; }
  .ac-pe-gantt { width: 100%; margin-bottom: -18px; }
  .ac-pe-panel { margin: 12px 0 0; padding: 20px 18px; box-shadow: none; }

  .ac-soon-stamp { top: 12px; right: 12px; }
  /* The platform cards slide sideways, the next one peeking in. */
  .ac-benefit-grid, .ac-benefit-grid.is-n4 {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 80%;
    gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin: 0 -18px; padding: 2px 18px 12px; scroll-padding: 0 18px; scrollbar-width: thin;
  }
  .ac-benefit { scroll-snap-align: start; }
  .ac-close-box { padding: 24px 20px; }
  .ac-close-box .ac-ctas { width: 100%; }
  .ac-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-course-cta .ac-btn { flex: 1 1 auto; justify-content: center; }
}
