/* Capstone Academy — design system
   Matches the UG Designer Training course: light drawing-sheet paper, ink type,
   "paint" red for action, "energy" amber for progress, Barlow / Barlow Condensed,
   Source Serif 4 for reading, IBM Plex Mono for labels. */
:root {
  --paper: #EEF0EB;
  --sheet: #FAFBF8;
  --ink: #17212B;
  --ink-2: #56616C;
  --rule: #D3D8D0;
  --paint: #C8302A;
  --energy: #D98B1E;
  --wash: #E4E8E1;
  --soil: #E7DFD2;
  --grid: rgba(23, 33, 43, .045);
  --paint-wash: rgba(200, 48, 42, .08);
  --energy-wash: rgba(217, 139, 30, .14);
  --blue: #2C6FB8;
  --ok: #2F7D4F;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --ui: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --read: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 1px 0 rgba(23, 33, 43, .05), 0 6px 20px -12px rgba(23, 33, 43, .25);
  --radius: 12px;
  --wrap: 1280px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--ui); -webkit-font-smoothing: antialiased;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--paint); text-underline-offset: 3px; }
a:hover { color: var(--paint); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: .01em; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--paint); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--ink-2); }
.lead { font: 400 1.2rem/1.6 var(--read); color: var(--ink-2); max-width: 40em; }
.eyebrow { font: 600 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .9rem; display: inline-flex; gap: .55rem; align-items: center; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--paint); }
.mono { font-family: var(--mono); }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); white-space: nowrap; background: var(--sheet); }
.pill.hot { color: var(--paint); border-color: var(--paint); }

/* Buttons — same as the course */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 8px; font: 700 16px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: color-mix(in srgb, var(--ink) 85%, var(--paint)); color: var(--paper); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-hot { background: var(--paint); border-color: var(--paint); color: #fff; }
.btn-hot:hover { background: #a92721; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sm { padding: 8px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--ink); font: 500 .95rem var(--ui); text-decoration: underline; text-decoration-color: var(--paint); text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { color: var(--paint); }
.btn-danger { background: transparent; border-color: var(--paint); color: var(--paint); }
.btn-danger:hover { background: var(--paint-wash); color: var(--paint); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font: 700 21px/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.brand-text small { font: 500 11px/1 var(--mono); color: var(--ink-2); letter-spacing: .06em; margin-top: 3px; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) { font: 600 15px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: 9px 11px; border-radius: 6px; color: var(--ink-2); white-space: nowrap; }
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--wash); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--sheet); box-shadow: inset 0 -2px 0 var(--paint); }
.site-nav .btn { margin-left: 8px; }
.nav-toggle { display: none; border: 1px solid var(--rule); background: var(--sheet); border-radius: 8px; padding: 8px 12px; font: 600 14px var(--display); letter-spacing: .05em; color: var(--ink); cursor: pointer; }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: 0; background: var(--sheet); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem .25rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .site-nav .btn { margin: .8rem 0 0; }
}

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; position: relative; }
.section-alt { background: color-mix(in srgb, var(--wash) 70%, transparent); border-block: 1px solid var(--rule); }
.section-paper { background: var(--sheet); border-block: 1px solid var(--rule); }
.section-head { max-width: 48rem; margin-bottom: 2.5rem; }
.grid { display: grid; gap: 20px; }
.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: 900px) { .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; } }
.blueprint { /* kept for markup compatibility: paper grid already on body */ }

/* Hero — a sheet card with the course photo, like the course home */
.hero { padding: 28px 0 clamp(2.5rem, 5vw, 4rem); }
.hero-card { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hero-copy { padding: clamp(1.75rem, 4vw, 3.25rem); }
.hero-copy h1 { max-width: 15ch; }
.hero-copy h1 em { font-style: normal; color: var(--paint); }
.hero-photo { position: relative; min-height: 340px; background: var(--ink); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--sheet) 0%, rgba(250,251,248,0) 28%); pointer-events: none; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.75rem 0 1.5rem; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.hero-facts li { padding: .85rem .75rem .25rem 0; font: 600 11px/1.35 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); position: relative; }
.hero-facts li::before { content: ""; position: absolute; top: -2px; left: 0; width: calc(100% - 10px); height: 3px; border-radius: 2px; background: var(--energy); }
.hero-facts li:nth-child(2)::before { background: var(--blue); }
.hero-facts li:nth-child(3)::before { background: var(--paint); }
.hero-facts li:nth-child(4)::before { background: var(--ink); }
.hero-facts b { display: block; font: 700 1.35rem/1.1 var(--display); color: var(--ink); letter-spacing: .01em; text-transform: none; margin-bottom: 2px; }
@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-photo { min-height: 220px; order: -1; }
  .hero-photo::before { background: linear-gradient(0deg, var(--sheet) 0%, rgba(250,251,248,0) 35%); }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.page-hero { padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--rule); }
.breadcrumbs { font: 500 12px var(--mono); letter-spacing: .04em; color: var(--ink-2); margin-bottom: 1.1rem; }
.breadcrumbs a { color: var(--ink-2); }

/* Cards */
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; position: relative; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card-tag { font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--paint); text-transform: uppercase; margin-bottom: .8rem; display: block; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.card-link .more { margin-top: auto; padding-top: 1.2rem; font: 700 15px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--paint); }
.course-card { padding: 0; overflow: hidden; }
.course-card .course-img { aspect-ratio: 16 / 7; width: 100%; height: auto; object-fit: cover; border-bottom: 1px solid var(--rule); }
.course-card .course-body { padding: 1.6rem 1.8rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.course-card ul { padding-left: 1.1rem; color: var(--ink-2); margin: 1rem 0 0; }
.course-card li { margin-bottom: .35rem; }
.course-card .ref { position: absolute; top: 1rem; right: 1rem; z-index: 1; }
.num { font: 700 2.4rem var(--display); color: var(--paint); line-height: 1; margin-bottom: .6rem; }
.icon-box { width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 8px; display: grid; place-items: center; margin-bottom: 1rem; color: var(--paint); background: var(--paper); }
.icon-box svg { width: 22px; height: 22px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: .75rem; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 13px; height: 7px; border-left: 2px solid var(--paint); border-bottom: 2px solid var(--paint); transform: rotate(-45deg); }
.photo-frame { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--sheet); box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: auto; }
.photo-frame figcaption { padding: .7rem 1rem; font: 500 12px var(--mono); letter-spacing: .04em; color: var(--ink-2); border-top: 1px solid var(--rule); }
.drawing { background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); padding: 1rem; position: relative; }
.drawing .sheet-label { position: absolute; right: 0; bottom: 0; border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); padding: .4rem .7rem; font: 500 11px var(--mono); color: var(--ink-2); letter-spacing: .06em; background: var(--paper); }

/* The route (12-week curriculum, like the course home) */
.route { display: grid; gap: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.route-phase { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--rule); }
.route-phase:last-child { border-bottom: 0; }
.route-phase h3 { margin: 0 0 .25rem; font-size: 1.5rem; }
.route-phase .phase-meta { font: 500 12px/1.5 var(--mono); color: var(--ink-2); }
.route-weeks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.route-week { border-top: 3px solid var(--rule); padding-top: .6rem; }
.route-week .wk { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.route-week .wk em { font-style: normal; color: var(--paint); }
.route-week strong { display: block; font: 600 1.05rem/1.25 var(--ui); margin: .25rem 0 .3rem; }
.route-week span { font-size: .9rem; color: var(--ink-2); display: block; line-height: 1.45; }
.route-phase:nth-child(1) .route-week { border-top-color: var(--energy); }
.route-phase:nth-child(2) .route-week { border-top-color: var(--blue); }
.route-phase:nth-child(3) .route-week { border-top-color: var(--paint); }
.route-phase:nth-child(4) .route-week { border-top-color: var(--ink); }
@media (max-width: 900px) { .route-phase { grid-template-columns: 1fr; gap: .75rem; } .route-weeks { grid-template-columns: 1fr; } }

/* Modules list (used for Overhead) */
.modules { counter-reset: mod; list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.modules li { counter-increment: mod; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; padding: 1rem 1.25rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); box-shadow: var(--shadow); }
.modules li::before { content: counter(mod, decimal-leading-zero); font: 700 1.5rem var(--display); color: var(--paint); line-height: 1.1; }
.modules strong { display: block; font-size: 1.05rem; margin-bottom: .15rem; }
.modules span { color: var(--ink-2); font-size: .95rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1140px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.7rem; position: relative; }
.price-card.featured { border-top: 5px solid var(--paint); }
.price-card .badge-featured { align-self: flex-start; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paint); border: 1px solid var(--paint); padding: 5px 8px; border-radius: 999px; margin-bottom: .9rem; }
.price { font: 700 3.2rem var(--display); line-height: 1; margin: .5rem 0 .2rem; }
.price small { font: 500 1rem var(--ui); color: var(--ink-2); }
.price-contact { font-size: 2.3rem; }
.price-card ul { list-style: none; padding: 0; margin: 1.4rem 0; flex: 1; }
.price-card li { padding: .5rem 0 .5rem 1.5rem; border-bottom: 1px dashed var(--rule); position: relative; font-size: .97rem; }
.price-card li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 8px; height: 8px; border-radius: 50%; background: var(--energy); }
.price-card .btn { font-size: 15px; padding: 12px 10px; }
.price-card .btn + .btn-link { margin-top: .9rem; align-self: center; }
.fine { font-size: .85rem; color: var(--ink-2); }
.pricing-note { margin-top: 1.75rem; text-align: center; }

/* FAQ */
.faq { display: grid; gap: .6rem; max-width: 52rem; }
.faq details { border: 1px solid var(--rule); border-radius: 10px; background: var(--sheet); padding: 0 1.3rem; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 1.05rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 1.3rem var(--mono); color: var(--paint); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { font-family: var(--read); color: var(--ink-2); padding-bottom: 1.1rem; margin: 0; }

/* CTA band */
.cta-band { background: var(--sheet); border: 1px solid var(--rule); border-top: 5px solid var(--paint); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(2rem, 5vw, 3rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .4rem; }
.cta-band p { margin: 0; color: var(--ink-2); font-family: var(--read); }

/* Article (long-form SEO content) */
.article { max-width: 46rem; }
.article p, .article li { font: 400 1.1rem/1.7 var(--read); }
.article h2 { font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin-top: 2.6rem; }
.article h3 { margin-top: 1.8rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article li { margin-bottom: .45rem; }
.article .toc { border: 1px solid var(--rule); border-radius: 10px; padding: 1.2rem 1.4rem; background: var(--paper); margin: 2rem 0; }
.article .toc p { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: .5rem; color: var(--ink-2); }
.article .toc li { font: 500 1rem/1.5 var(--ui); }
.article blockquote { margin: 1.5rem 0; padding: 1rem 1.3rem; border-left: 3px solid var(--energy); background: var(--energy-wash); border-radius: 0 8px 8px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 3.5rem 0 1.5rem; background: var(--sheet); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid nav { display: flex; flex-direction: column; gap: .45rem; }
.footer-grid nav a { color: var(--ink-2); text-decoration: none; }
.footer-grid nav a:hover { color: var(--paint); }
.footer-brand { display: flex; align-items: center; gap: 10px; font: 700 1.35rem var(--display); margin-bottom: .5rem; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-h { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-top: 1.25rem; color: var(--ink-2); font-size: .85rem; }
.footer-base a { color: var(--ink-2); }

/* Forms */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .93rem; }
.form input, .form select, .form textarea { width: 100%; padding: .7rem .85rem; border-radius: 8px; border: 1px solid var(--rule); background: #fff; color: var(--ink); font: 400 1rem var(--ui); }
.form textarea { min-height: 7rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--paint-wash); }
.form input:disabled { background: var(--wash); color: var(--ink-2); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form-msg { min-height: 1.4em; margin: 0; font-size: .93rem; }
.form-msg.error { color: var(--paint); }
.form-msg.ok { color: var(--ok); }
.hint { font-size: .82rem; color: var(--ink-2); font-weight: 400; }

/* Auth */
.auth-shell { min-height: calc(100vh - 64px - 280px); display: grid; place-items: center; padding: 3.5rem 1.25rem; }
.auth-card { width: min(440px, 100%); background: var(--sheet); border: 1px solid var(--rule); border-top: 5px solid var(--paint); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.25rem; }
.auth-card .brand-mark { width: 52px; height: 52px; margin: 0 auto 1rem; }
.auth-card h1 { font-size: 2.3rem; }
.auth-links { margin: 1.4rem 0 0; font-size: .93rem; color: var(--ink-2); text-align: center; }

/* App (dashboard / organization) */
.app-head { padding: 2rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.app-head-inner { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(2rem, 3.5vw, 2.8rem); margin: 0; }
.app-body { padding: 1.75rem 0 4rem; display: grid; gap: 20px; }
.panel { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.panel-head h2 { font-size: 1.6rem; margin: 0; }
.panel h3 { font-size: 1.25rem; }
.notice { border: 1px solid var(--rule); border-left: 4px solid var(--energy); background: var(--sheet); border-radius: 8px; padding: .9rem 1.1rem; box-shadow: var(--shadow); }
.notice.error { border-left-color: var(--paint); background: var(--paint-wash); }
.notice.ok { border-left-color: var(--ok); }
.course-tile { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: 1.3rem; display: flex; flex-direction: column; gap: .7rem; }
.course-tile h3 { margin: 0; font-size: 1.35rem; }
.course-tile .btn { margin-top: auto; }
.progress { height: 8px; background: var(--wash); border: 1px solid var(--rule); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--energy); box-shadow: 0 0 8px var(--energy); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
th { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.badge { display: inline-block; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); }
.badge.active { color: var(--ok); border-color: var(--ok); }
.badge.past_due, .badge.expiring { color: #9a5f0c; border-color: var(--energy); background: var(--energy-wash); }
.badge.canceled, .badge.expired { color: var(--paint); border-color: var(--paint); }
.note-item { border: 1px solid var(--rule); border-radius: 8px; padding: .9rem 1rem; background: var(--paper); }
.note-item .meta { font: 500 12px var(--mono); color: var(--ink-2); display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.note-item p { margin: 0; white-space: pre-wrap; font-family: var(--read); }
.stack { display: grid; gap: .7rem; }
.empty { color: var(--ink-2); font-style: italic; }
.spinner { color: var(--ink-2); font: 500 .85rem var(--mono); }

/* Utilities (CSP forbids inline style attributes) */
.mt-2 { margin-top: 2rem; }
.pt-0 { padding-top: 0; }
.center { text-align: center; }
[hidden] { display: none !important; }
.grid > .photo-frame { align-self: start; margin: 0; }

/* Embedded practice simulator */
.demo-frame { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .9rem; border-bottom: 1px solid var(--rule); font-size: 12px; letter-spacing: .06em; color: var(--ink-2); }
.demo-frame iframe { display: block; width: 100%; height: min(78vh, 760px); min-height: 520px; border: 0; background: #edf5fd; }

/* Affirm line + enroll chooser */
.affirm-line { font: 600 .9rem var(--ui); color: var(--ink-2); margin: .1rem 0 0; }
.enroll-dialog { border: 1px solid var(--rule); border-top: 5px solid var(--paint); border-radius: var(--radius); padding: 1.75rem; width: min(480px, calc(100% - 2rem)); background: var(--sheet); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(23,33,43,.5); }
.enroll-dialog::backdrop { background: rgba(23, 33, 43, .45); }
.enroll-dialog h3 { font-size: 1.7rem; }
.enroll-options { display: grid; gap: .7rem; margin: 1rem 0 1.1rem; }
.enroll-option { display: grid; gap: .25rem; text-align: left; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.enroll-option:hover, .enroll-option:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 3px var(--paint-wash); }
.enroll-option strong { font: 700 1.15rem var(--display); letter-spacing: .02em; }
.enroll-option span { font-size: .92rem; color: var(--ink-2); }
.enroll-dialog .fine { margin-bottom: 1rem; }
.path-h { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 2rem 0 1rem; }
.section-head + .path-h { margin-top: 0; }
.enroll-option strong span { font: inherit; color: inherit; }

/* ── Career guide: horizontal slide-open rail ───────────────────────── */
.guide-section { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.guide-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.guide-head h2 { margin: 0; }
.guide-controls { display: flex; align-items: center; gap: .6rem; }
.guide-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); font: 600 18px var(--ui); cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.guide-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.guide-count { font-size: 13px; color: var(--ink-2); letter-spacing: .06em; min-width: 4.5em; text-align: center; }
.guide-count b { color: var(--ink); }

.rail { --rail-time: 12s; display: flex; gap: 10px; height: 430px; }
.rail-panel {
  --accent: var(--energy);
  position: relative; flex: 1 1 0; min-width: 76px; overflow: hidden;
  background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: flex-grow .6s cubic-bezier(.2, .7, .2, 1), background-color .3s, transform .2s;
}
.rail-panel:nth-child(4n+2) { --accent: var(--blue); }
.rail-panel:nth-child(4n+3) { --accent: var(--paint); }
.rail-panel:nth-child(4n+4) { --accent: var(--ink); }
.rail-panel:not(.is-open):hover { transform: translateY(-3px); background: #fff; }
.rail-panel.is-open { flex-grow: 7; background: #fff; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }

.rail-tab { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; transition: opacity .25s; }
.rail-panel.is-open .rail-tab { opacity: 0; pointer-events: none; }
.rail-num { font: 700 26px/1 var(--display); color: var(--accent); }
.rail-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--rule); background: var(--paper); color: var(--accent); }
.rail-icon svg { width: 20px; height: 20px; }
.rail-title { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 19px/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; margin-top: auto; }

.rail-body { position: absolute; inset: 0; padding: 30px 34px 28px; display: flex; flex-direction: column; opacity: 0; transform: translateX(24px); pointer-events: none; transition: opacity .35s .15s, transform .45s .15s; min-width: 420px; }
.rail-panel.is-open .rail-body { opacity: 1; transform: none; pointer-events: auto; }
.rail-watermark { position: absolute; right: 18px; bottom: -28px; font: 700 210px/1 var(--display); color: var(--accent); opacity: .07; pointer-events: none; }
.rail-body h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 0 0 .5rem; max-width: 20ch; }
.rail-lead { font: 400 1.12rem/1.55 var(--read); color: var(--ink-2); max-width: 46ch; }
.rail-body ul { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; gap: .5rem; max-width: 52ch; }
.rail-body li { position: relative; padding-left: 1.5rem; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.rail-body li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.rail-panel.is-open li { opacity: 1; transform: none; }
.rail-panel.is-open li:nth-child(1) { transition-delay: .30s; }
.rail-panel.is-open li:nth-child(2) { transition-delay: .38s; }
.rail-panel.is-open li:nth-child(3) { transition-delay: .46s; }
.rail-panel.is-open li:nth-child(4) { transition-delay: .54s; }
.rail-actions { margin: auto 0 0; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; position: relative; }
.rail-read { font: 700 15px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--paint); text-decoration: none; }
.rail-read:hover { color: var(--ink); }
/* auto-advance progress line */
.rail-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.rail.is-playing .rail-panel.is-open .rail-timer { animation: rail-timer var(--rail-time, 7s) linear forwards; }
.rail.is-paused .rail-panel.is-open .rail-timer { animation-play-state: paused; }
@keyframes rail-timer { to { width: 100%; } }

.article h2[id] { scroll-margin-top: 90px; }
.article h2.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { background: var(--energy-wash); box-shadow: 0 0 0 8px var(--energy-wash); } 100% { background: transparent; box-shadow: 0 0 0 8px transparent; } }

/* Phones & small tablets: stacked, slides open downward */
@media (max-width: 860px) {
  .rail { flex-direction: column; height: auto; }
  .rail-panel { flex: none; min-width: 0; }
  .rail-tab { position: relative; inset: auto; flex-direction: row; padding: 14px 16px; gap: 12px; }
  .rail-title { writing-mode: horizontal-tb; transform: none; margin: 0; white-space: normal; font-size: 17px; }
  .rail-panel.is-open .rail-tab { opacity: 1; pointer-events: auto; border-bottom: 1px solid var(--rule); }
  .rail-body { position: relative; inset: auto; min-width: 0; display: none; padding: 20px 18px 22px; transform: none; }
  .rail-panel.is-open .rail-body { display: flex; }
  .rail-watermark { font-size: 140px; bottom: -18px; }
  .rail-body h3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rail-panel, .rail-body, .rail-body li, .rail-tab { transition: none !important; }
  .rail-timer { display: none; }
}
/* full guide text lives inside the panels */
.rail { height: 700px; }
.rail-body { padding: 28px 10px 24px 34px; }
.rail-scroll { position: relative; overflow-y: auto; height: 100%; padding-right: 24px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.rail-content p, .rail-content li { font: 400 1.04rem/1.65 var(--read); color: var(--ink); }
.rail-content p { max-width: 62ch; }
.rail-content ul, .rail-content ol { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; gap: .5rem; max-width: 62ch; counter-reset: step; }
.rail-content li { position: relative; padding-left: 1.6rem; }
.rail-content ol li { counter-increment: step; padding-left: 2.2rem; }
.rail-content ol li::before { content: counter(step); position: absolute; left: 0; top: .1em; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--accent); color: #fff; font: 700 .85rem/1.5rem var(--display); text-align: center; }
.rail-content ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.rail-content blockquote { margin: 1rem 0; padding: .9rem 1.2rem; border-left: 3px solid var(--accent); background: var(--energy-wash); border-radius: 0 8px 8px 0; max-width: 62ch; font: italic 400 1.04rem/1.6 var(--read); }
.rail-content a { color: var(--ink); text-decoration-color: var(--paint); }
.rail-scroll .rail-actions { margin-top: 1rem; }
.rail-panel.is-open .rail-content > * { animation: rail-in .45s both; }
.rail-panel.is-open .rail-content > :nth-child(2) { animation-delay: .08s; }
.rail-panel.is-open .rail-content > :nth-child(3) { animation-delay: .16s; }
.rail-panel.is-open .rail-content > :nth-child(n+4) { animation-delay: .24s; }
@keyframes rail-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rail-body li { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .rail { height: auto; }
  .rail-body { padding: 20px 18px 22px; }
  .rail-scroll { overflow: visible; height: auto; padding-right: 0; }
  .rail-body h3 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rail-panel.is-open .rail-content > * { animation: none; } }

/* ── Courses page (both tracks on one page) ─────────────────────────── */
.courses-hero { border-bottom: 0; padding-bottom: 1.5rem; }
.course-switch-bar { position: sticky; top: 64px; z-index: 40; padding: .75rem 0; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.course-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.cs-tab { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-width: 190px; padding: 11px 22px; border: 0; background: none; border-radius: 999px; font: 700 18px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: color .3s; }
.cs-tab.is-active { color: var(--paper); }
.cs-ref { font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 4px; border: 1px solid currentColor; opacity: .8; }
.cs-glider { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--ink); box-shadow: inset 0 -3px 0 var(--paint); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.course-switch.on-overhead .cs-glider { transform: translateX(100%); }
@media (max-width: 520px) { .course-switch { display: grid; width: 100%; } .cs-tab { min-width: 0; padding: 11px 10px; font-size: 16px; } }

.course-panel { --c: var(--energy); padding: 2rem 0 4rem; }
.course-panel[data-course="overhead"] { --c: var(--blue); }
.course-panel.is-entering { animation: panel-in .55s cubic-bezier(.2, .8, .2, 1) both; }
.course-panel.from-left.is-entering { animation-name: panel-in-left; }
@keyframes panel-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes panel-in-left { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }

/* banner */
.c-banner { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--rule); min-height: 520px; display: grid; grid-template-rows: 1fr auto; isolation: isolate; }
.c-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 6s ease-out; }
.course-panel.is-active .c-banner-img { transform: scale(1); }
.c-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(250,251,248,.97) 0%, rgba(250,251,248,.9) 38%, rgba(250,251,248,0) 72%); }
.c-banner-copy { padding: clamp(1.75rem, 4vw, 3rem); max-width: 620px; align-self: center; }
.c-banner-copy h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: .4rem; }
.c-banner-copy .eyebrow::before { background: var(--c); }
.c-tagline { font: 400 1.15rem/1.6 var(--read); color: var(--ink-2); }
.c-buy { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.4rem; flex-wrap: wrap; }
.c-price { font: 700 3rem/1 var(--display); margin: 0; }
.c-monthly { margin: .2rem 0 0; font: 600 .9rem var(--ui); color: var(--ink-2); }
.c-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(23, 33, 43, .9); color: var(--paper); backdrop-filter: blur(6px); }
.c-stats li { padding: 1.1rem 1.4rem; border-left: 1px solid rgba(255,255,255,.12); position: relative; }
.c-stats li:first-child { border-left: 0; }
.c-stats li::before { content: ""; position: absolute; left: 1.4rem; top: 0; width: 34px; height: 3px; background: var(--c); }
.c-stats b { display: block; font: 700 2.4rem/1 var(--display); }
.c-stats span { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
@media (max-width: 760px) {
  .c-banner { min-height: 0; }
  .c-banner::before { background: linear-gradient(180deg, rgba(250,251,248,.55) 0%, rgba(250,251,248,.96) 45%); }
  .c-banner-copy { padding-top: 9rem; }
  .c-stats { grid-template-columns: repeat(2, 1fr); }
  .c-stats li:nth-child(3) { border-left: 0; }
}

/* blocks */
.c-block { margin-top: clamp(3rem, 6vw, 4.5rem); }
.c-block-head { margin-bottom: 1.4rem; max-width: 46rem; }
.c-block-head h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 .3rem; }
.c-block-head .eyebrow::before { background: var(--c); }

.skills { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.skills li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: start; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.25rem; transition: transform .2s, border-color .2s; }
.skills li:hover { transform: translateY(-3px); border-color: var(--c); }
.skill-ic { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.skill-ic svg { width: 24px; height: 24px; }
.skills strong { font: 700 1.25rem/1.1 var(--display); letter-spacing: .02em; }
.skills li > span:last-child { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
@media (max-width: 900px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } }

/* interactive 12-week route */
.wk-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 1.1rem 1.2rem 1.3rem; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); }
.wk-line { position: absolute; left: 1.2rem; right: 1.2rem; top: calc(1.1rem + 26px + 21px); height: 4px; border-radius: 2px; background: var(--wash); }
.wk-line span { display: block; height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--energy), var(--blue), var(--paint), var(--ink)); background-size: 1200px 100%; box-shadow: 0 0 10px color-mix(in srgb, var(--energy) 60%, transparent); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.wk-phase { --p: var(--energy); position: relative; }
.wk-phase[data-phase="1"] { --p: var(--blue); }
.wk-phase[data-phase="2"] { --p: var(--paint); }
.wk-phase[data-phase="3"] { --p: var(--ink); }
.wk-phase-name { display: block; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--p); height: 26px; }
.wk-nodes { display: flex; justify-content: space-around; }
.wk-node { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--rule); background: var(--sheet); font: 700 17px/1 var(--display); color: var(--ink-2); cursor: pointer; transition: transform .2s, border-color .2s, background .2s, color .2s, box-shadow .2s; }
.wk-node:hover { transform: scale(1.08); border-color: var(--p); color: var(--ink); }
.wk-node.is-done { border-color: var(--p); color: var(--p); }
.wk-node.is-on { background: var(--p); border-color: var(--p); color: #fff; transform: scale(1.15); box-shadow: 0 0 0 6px color-mix(in srgb, var(--p) 18%, transparent); }
.wk-node i { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--energy); border: 2px solid var(--sheet); }
.wk-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--energy); vertical-align: 1px; }
.wk-cards { position: relative; margin-top: 14px; min-height: 190px; }
.wk-card { --p: var(--energy); position: absolute; inset: 0 0 auto 0; background: var(--sheet); border: 1px solid var(--rule); border-left: 5px solid var(--p); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.6rem 1.6rem; overflow: hidden; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s, transform .35s; }
.wk-card[data-phase="1"] { --p: var(--blue); }
.wk-card[data-phase="2"] { --p: var(--paint); }
.wk-card[data-phase="3"] { --p: var(--ink); }
.wk-card.is-on { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.wk-card h4 { font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--display); margin: .5rem 0 .4rem; }
.wk-card p:last-of-type { font: 400 1.08rem/1.6 var(--read); color: var(--ink-2); margin: 0; max-width: 70ch; }
.wk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0; font: 500 12px var(--mono); color: var(--ink-2); letter-spacing: .04em; }
.wk-chip { background: var(--p); color: #fff; padding: 5px 9px; border-radius: 999px; font-weight: 600; letter-spacing: .06em; }
.wk-app { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--energy-wash); color: #8a560a; font-weight: 600; }
.wk-app svg { width: 14px; height: 14px; }
.wk-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--p); }
.route2.is-playing .wk-card.is-on .wk-timer { animation: rail-timer 5s linear forwards; }
.route2.is-paused .wk-card.is-on .wk-timer { animation-play-state: paused; }
@media (max-width: 760px) {
  .wk-track { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  .wk-line { display: none; }
  .wk-node { width: 40px; height: 40px; font-size: 15px; }
}

/* apps */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.app-card { display: flex; gap: 14px; align-items: flex-start; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .2s; }
.app-card:hover { transform: translateY(-3px); }
.app-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid var(--c); opacity: .14; }
.app-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--c); color: var(--ink); }
.app-ic svg { width: 24px; height: 24px; }
.app-week { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 70%, #fff); margin: 0 0 .2rem; }
.app-card h4 { font: 700 1.3rem/1.1 var(--display); margin: 0 0 .35rem; }
.app-card p:last-child { margin: 0; color: #c9d0d6; font-size: .93rem; line-height: 1.45; }

/* projects */
.projects { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .projects { grid-template-columns: 1fr 1fr; } .tools-card { grid-column: 1 / -1; } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }
.proj { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.proj-img { overflow: hidden; aspect-ratio: 4 / 3; background: var(--wash); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.proj:hover .proj-img img { transform: scale(1.06); }
.proj figcaption { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .3rem; }
.proj figcaption strong { font: 700 1.2rem/1.15 var(--display); letter-spacing: .02em; }
.proj figcaption span { font-size: .93rem; color: var(--ink-2); line-height: 1.45; }

/* compare */
.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } }
.cmp-col { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; display: flex; flex-direction: column; }
.cmp-col.featured { border-top: 5px solid var(--paint); }
.cmp-col .badge-featured { align-self: flex-start; font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paint); border: 1px solid var(--paint); padding: 5px 8px; border-radius: 999px; margin-bottom: .8rem; }
.cmp-price { font: 700 2.6rem/1 var(--display); margin: .2rem 0 1rem; }
.cmp-col dl { margin: 0 0 1.4rem; flex: 1; }
.cmp-col dt { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-top: .7rem; }
.cmp-col dd { margin: .2rem 0 0; }

/* scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .skills .reveal.in:nth-child(2), .js .apps .reveal.in:nth-child(2), .js .projects .reveal.in:nth-child(2) { transition-delay: .08s; }
.js .skills .reveal.in:nth-child(3), .js .apps .reveal.in:nth-child(3), .js .projects .reveal.in:nth-child(3) { transition-delay: .16s; }
.js .skills .reveal.in:nth-child(4), .js .apps .reveal.in:nth-child(4) { transition-delay: .24s; }
.js .skills .reveal.in:nth-child(5) { transition-delay: .32s; }
.js .skills .reveal.in:nth-child(6) { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .course-panel.is-entering { animation: none; }
  .c-banner-img, .wk-line span, .wk-card, .cs-glider { transition: none; }
  .wk-timer { display: none; }
}
.route2 .c-block-head { max-width: 60rem; }
@media (max-width: 520px) { .cs-ref { display: none; } }

/* ── Career page: career-readiness section (dark "energized" panel) ── */
.career-ready { position: relative; overflow: hidden; color: #E8ECEF; background: var(--ink); padding: clamp(4rem, 8vw, 6rem) 0;
  background-image: radial-gradient(ellipse 60% 50% at 85% 0%, rgba(217,139,30,.18), transparent 60%), radial-gradient(ellipse 50% 60% at 0% 100%, rgba(44,111,184,.22), transparent 60%), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px, 24px 24px; }
.career-ready .eyebrow { color: #9AA6B1; }
.cr-head { max-width: 50rem; margin-bottom: 3rem; }
.cr-head h2 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.cr-head h2 em { font-style: normal; color: var(--energy); }
.cr-head .lead { color: #B9C2CA; }

/* energized path */
.cr-path { position: relative; list-style: none; margin: 0 0 3.5rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 18px; align-items: start; }
.cr-line { position: absolute; left: 30px; right: 60px; top: 29px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); }
.cr-line span { display: block; height: 100%; width: 0; border-radius: 2px; background: linear-gradient(90deg, var(--energy), #ffd08a); box-shadow: 0 0 12px var(--energy), 0 0 30px rgba(217,139,30,.5); transition: width 2.6s cubic-bezier(.4, .1, .2, 1); }
.cr-path.in .cr-line span { width: 100%; }
.cr-stop { position: relative; z-index: 1; }
.cr-dot { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--ink); border: 2px solid rgba(255,255,255,.2); transition: border-color .4s, box-shadow .4s, background .4s; }
.cr-dot span { font: 700 20px/1 var(--display); color: #9AA6B1; transition: color .4s; }
.cr-path.in .cr-dot { border-color: var(--energy); background: #1f2b36; box-shadow: 0 0 0 6px rgba(217,139,30,.14), 0 0 24px rgba(217,139,30,.45); }
.cr-path.in .cr-dot span { color: #fff; }
.cr-when { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--energy); margin: 1rem 0 .3rem; }
.cr-stop h3 { color: #fff; font-size: 1.35rem; margin: 0 0 .35rem; }
.cr-stop p:last-child { color: #AEB8C1; font-size: .95rem; line-height: 1.5; margin: 0; }
.cr-stop { opacity: .35; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.cr-path.in .cr-stop { opacity: 1; transform: none; }
.cr-path.in .cr-stop[data-i="0"], .cr-path.in .cr-stop[data-i="0"] .cr-dot { transition-delay: .1s; }
.cr-path.in .cr-stop[data-i="1"], .cr-path.in .cr-stop[data-i="1"] .cr-dot { transition-delay: .6s; }
.cr-path.in .cr-stop[data-i="2"], .cr-path.in .cr-stop[data-i="2"] .cr-dot { transition-delay: 1.1s; }
.cr-path.in .cr-stop[data-i="3"], .cr-path.in .cr-stop[data-i="3"] .cr-dot { transition-delay: 1.6s; }
.cr-path.in .cr-stop[data-i="4"], .cr-path.in .cr-stop[data-i="4"] .cr-dot { transition-delay: 2.1s; }
.cr-goal { display: grid; justify-items: center; gap: .6rem; z-index: 1; position: relative; }
.cr-goal-ring { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: var(--ink); background: var(--energy); box-shadow: 0 0 0 0 rgba(217,139,30,.6); opacity: .4; transform: scale(.85); transition: opacity .5s 2.6s, transform .5s 2.6s; }
.cr-goal-ring svg { width: 28px; height: 28px; }
.cr-goal strong { font: 700 15px var(--display); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.cr-path.in .cr-goal-ring { opacity: 1; transform: none; animation: cr-pulse 2.4s 3s ease-out infinite; }
@keyframes cr-pulse { 0% { box-shadow: 0 0 0 0 rgba(217,139,30,.55); } 70% { box-shadow: 0 0 0 22px rgba(217,139,30,0); } 100% { box-shadow: 0 0 0 0 rgba(217,139,30,0); } }
@media (max-width: 900px) {
  .cr-path { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .cr-line { left: 29px; right: auto; top: 30px; bottom: 30px; width: 4px; height: auto; }
  .cr-line span { width: 100% !important; height: 0; transition: height 2.6s cubic-bezier(.4, .1, .2, 1); }
  .cr-path.in .cr-line span { height: 100%; }
  .cr-stop { display: grid; grid-template-columns: 62px 1fr; column-gap: 18px; padding-bottom: 1.6rem; }
  .cr-dot { grid-row: span 3; }
  .cr-when { margin-top: .4rem; }
  .cr-goal { justify-items: start; grid-template-columns: 62px auto; align-items: center; column-gap: 18px; }
}

/* employer needs ↔ what you'll have */
.cr-bridge { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; gap: 12px; }
.cr-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1.4fr); align-items: center; }
.cr-need, .cr-have { border-radius: var(--radius); padding: 1.05rem 1.3rem; }
.cr-need { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.cr-need strong { display: block; font: 700 1.35rem/1.15 var(--display); color: #fff; letter-spacing: .01em; }
.cr-have { background: var(--sheet); color: var(--ink); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); border-left: 5px solid var(--energy); }
.cr-have p { margin: 0; font: 400 1.02rem/1.5 var(--read); }
.cr-tag { display: block; font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; color: #9AA6B1; }
.cr-have .cr-tag { color: var(--paint); }
.cr-wire { position: relative; height: 4px; margin: 0 6px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.cr-wire::after { content: ""; position: absolute; right: -2px; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); background: var(--energy); box-shadow: 0 0 10px var(--energy); }
.cr-wire i { position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, var(--energy), transparent); animation: cr-flow 2.2s linear infinite; }
.cr-row:nth-child(2) .cr-wire i { animation-delay: .4s; }
.cr-row:nth-child(3) .cr-wire i { animation-delay: .8s; }
.cr-row:nth-child(4) .cr-wire i { animation-delay: 1.2s; }
.cr-row:nth-child(5) .cr-wire i { animation-delay: 1.6s; }
@keyframes cr-flow { to { left: 100%; } }
.cr-row:nth-child(2n) .cr-have { border-left-color: var(--blue); }
.cr-row:nth-child(3n) .cr-have { border-left-color: var(--paint); }
@media (max-width: 760px) {
  .cr-row { grid-template-columns: 1fr; }
  .cr-wire { width: 4px; height: 26px; margin: 0 0 0 28px; }
  .cr-wire::after { right: auto; left: 50%; top: auto; bottom: -3px; transform: translateX(-50%); }
  .cr-wire i { left: 0; top: -40%; width: 100%; height: 40%; background: linear-gradient(180deg, transparent, var(--energy), transparent); animation-name: cr-flow-v; }
  @keyframes cr-flow-v { to { top: 100%; } }
}

/* kit */
.cr-kit { display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.cr-kit-h { margin: 0; font: 700 1.3rem var(--display); color: #fff; letter-spacing: .02em; }
.cr-kit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.cr-kit li { font: 600 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 9px 12px; border-radius: 999px; color: #fff; border: 1px solid rgba(217,139,30,.55); background: rgba(217,139,30,.1); }
.career-ready .reveal { opacity: 1; transform: none; }
.js .career-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.js .career-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cr-line span, .cr-stop, .cr-dot, .cr-goal-ring { transition: none !important; }
  .cr-wire i, .cr-path.in .cr-goal-ring { animation: none; }
  .js .career-ready .reveal { opacity: 1; transform: none; }
}

/* ── Account area ───────────────────────────────────────────────────── */
.app-head-actions { display: flex; gap: .5rem; }
.acct { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; padding: 1.75rem 0 4rem; align-items: start; }
.acct-nav { position: sticky; top: 84px; display: grid; gap: 2px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.acct-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font: 600 15px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.acct-nav a:hover { background: var(--wash); color: var(--ink); }
.acct-nav a[aria-current] { background: var(--ink); color: var(--paper); box-shadow: inset 3px 0 0 var(--paint); }
.acct-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.acct-main { display: grid; gap: 20px; min-width: 0; }
.acct-tab { display: grid; gap: 20px; }
.acct-tab[hidden] { display: none !important; }
@media (max-width: 900px) {
  .acct { grid-template-columns: 1fr; padding-top: 1rem; }
  .acct-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .acct-nav a { white-space: nowrap; font-size: 14px; }
}
.form-inline { grid-template-columns: 1fr auto; align-items: end; }
.form-inline .form-msg { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-inline { grid-template-columns: 1fr; } }

/* segmented control */
.seg { display: inline-grid; grid-auto-flow: column; padding: 4px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); }
.seg-btn { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: 700 14px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.seg-btn.is-on { background: var(--ink); color: var(--paper); box-shadow: inset 0 -2px 0 var(--paint); }

/* buy builder */
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; margin-top: 1rem; }
@media (max-width: 980px) { .buy-grid { grid-template-columns: 1fr; } }
.buy-items { display: grid; gap: 12px; }
.buy-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1.5px solid var(--rule); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s, transform .15s; }
.buy-item[role="checkbox"] { cursor: pointer; }
.buy-item[role="checkbox"]:hover { transform: translateY(-1px); border-color: var(--ink-2); }
.buy-item.is-on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--paint-wash); }
.buy-item.is-best { background: linear-gradient(90deg, rgba(200,48,42,.05), #fff 60%); }
.buy-item h3 { font-size: 1.3rem; margin: .25rem 0 .15rem; }
.buy-item .muted { margin: 0; font-size: .92rem; }
.buy-tag { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--paint); }
.buy-item-side { display: flex; align-items: center; gap: 1rem; flex: none; }
.buy-price { margin: 0; font: 700 1.6rem/1 var(--display); }
.buy-price small { font: 500 .8rem var(--ui); color: var(--ink-2); }
.pick { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--rule); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.pick.is-on { background: var(--ink); border-color: var(--ink); }
.pick.is-on::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--paper); }
.stepper button { width: 36px; height: 38px; border: 0; background: none; font: 600 20px/1 var(--ui); color: var(--ink); cursor: pointer; }
.stepper button:hover { background: var(--wash); }
.stepper input { width: 54px; height: 38px; border: 0; border-inline: 1px solid var(--rule); text-align: center; font: 700 1.05rem var(--display); background: #fff; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
@media (max-width: 560px) { .buy-item { flex-direction: column; align-items: stretch; } .buy-item-side { justify-content: space-between; } }

.buy-summary { position: sticky; top: 84px; background: var(--paper); border: 1px solid var(--rule); border-top: 5px solid var(--paint); border-radius: var(--radius); padding: 1.3rem; display: grid; gap: .55rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.sum-row b { font-weight: 600; white-space: nowrap; }
.sum-discount { color: var(--ok); }
.sum-total { border-top: 1px dashed var(--rule); padding-top: .65rem; margin-top: .2rem; font: 700 1.5rem var(--display); }
.sum-total b { font-weight: 700; }
.sum-affirm { margin: 0; font-size: .88rem; color: var(--ink-2); }
.sum-hint { margin: 0; font-size: .88rem; color: #8a560a; min-height: 1em; }
.org-field { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.org-field input { padding: .65rem .8rem; border-radius: 8px; border: 1px solid var(--rule); font: 400 1rem var(--ui); }
.stripe-mount { min-height: 420px; }

/* ── Admin dashboard ────────────────────────────────────────────────── */
.admin-head { background: var(--ink); color: var(--paper); border-bottom: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 24px 24px; }
.admin-head h1 { color: #fff; }
.admin-head .eyebrow { color: #9AA6B1; }
.admin-head .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.admin-head .btn-ghost:hover { border-color: #fff; color: #fff; }
.admin-head .pill { background: transparent; color: #9AA6B1; border-color: rgba(255,255,255,.2); }
.nav-count { margin-left: auto; min-width: 22px; padding: 3px 7px; border-radius: 999px; background: var(--paint); color: #fff; font: 600 11px/1 var(--mono); text-align: center; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }
.kpi { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--energy); }
.kpi:nth-child(3n+2)::before { background: var(--blue); }
.kpi:nth-child(3n+3)::before { background: var(--paint); }
.kpi span { display: block; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.kpi b { display: block; font: 700 2.3rem/1.1 var(--display); margin: .35rem 0 .2rem; text-transform: capitalize; }
.kpi small { color: var(--ink-2); font-size: .85rem; }
.health { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .health { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: .9rem 1rem; border: 1px solid var(--rule); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, transform .15s; }
.svc:hover { border-color: var(--ink); transform: translateY(-1px); color: var(--ink); }
.svc .dot { grid-row: span 2; width: 12px; height: 12px; border-radius: 50%; background: var(--rule); }
.svc[data-status="ok"] .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(47,125,79,.15); }
.svc[data-status="warning"] .dot { background: var(--energy); box-shadow: 0 0 0 4px var(--energy-wash); }
.svc[data-status="error"] .dot { background: var(--paint); box-shadow: 0 0 0 4px var(--paint-wash); animation: blink 1.4s infinite; }
.svc[data-status="not_configured"] .dot { background: transparent; border: 2px dashed var(--ink-2); }
@keyframes blink { 50% { opacity: .35; } }
.svc b { font: 700 1.1rem var(--display); letter-spacing: .02em; }
.svc small { color: var(--ink-2); font-size: .8rem; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding-top: .5rem; border-bottom: 1px solid var(--rule); }
.bars span { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bars i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--energy); min-height: 2px; transition: background .15s; }
.bars span:hover i { background: var(--paint); }
td.r, th.r { text-align: right; }
.nowrap { white-space: nowrap; }
.wrap-text { max-width: 420px; white-space: pre-wrap; }
td select { padding: .4rem .5rem; border-radius: 6px; border: 1px solid var(--rule); font: inherit; background: #fff; }
td code { font: 12px var(--mono); color: var(--ink-2); word-break: break-all; }
.search { display: flex; gap: .5rem; }
.search input { padding: .55rem .8rem; border: 1px solid var(--rule); border-radius: 8px; font: inherit; min-width: 240px; }
.grant { grid-template-columns: 2fr 1.4fr .7fr .7fr auto; align-items: end; }
.grant .form-msg { grid-column: 1 / -1; }
@media (max-width: 900px) { .grant { grid-template-columns: 1fr 1fr; } }
.svc-body { display: grid; gap: 20px; }
.repos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.repo { border: 1px solid var(--rule); border-radius: 10px; padding: 1rem 1.1rem; background: #fff; }
.repo-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.repo h3 { font-size: 1.2rem; margin: 0; }
.repo h3 a { text-decoration: none; }
.repo-commit { margin: .6rem 0 .1rem; font-weight: 600; }
.repo-commit a { text-decoration: none; }
.repo .muted { margin: 0; font-size: .85rem; }
.repo-meta { display: flex; gap: .8rem; flex-wrap: wrap; margin: .6rem 0 0; font: 500 11px var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }

/* Career readiness — light version (sheet paper, ink type, amber energy) */
.career-ready { color: var(--ink); background: var(--sheet); border-block: 1px solid var(--rule);
  background-image: radial-gradient(ellipse 55% 45% at 90% 0%, rgba(217,139,30,.12), transparent 60%), radial-gradient(ellipse 45% 55% at 0% 100%, rgba(44,111,184,.08), transparent 60%), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px, 24px 24px; }
.career-ready .eyebrow { color: var(--ink-2); }
.cr-head h2 { color: var(--ink); }
.cr-head .lead { color: var(--ink-2); }
.cr-line { background: var(--wash); }
.cr-dot { background: var(--sheet); border-color: var(--rule); }
.cr-dot span { color: var(--ink-2); }
.cr-path.in .cr-dot { background: #fff; border-color: var(--energy); box-shadow: 0 0 0 6px var(--energy-wash), 0 0 18px rgba(217,139,30,.35); }
.cr-path.in .cr-dot span { color: var(--ink); }
.cr-when { color: #a8670f; }
.cr-stop h3 { color: var(--ink); }
.cr-stop p:last-child { color: var(--ink-2); }
.cr-goal strong { color: var(--ink); }
.cr-need { background: var(--paper); border-color: var(--rule); }
.cr-need strong { color: var(--ink); }
.cr-tag { color: var(--ink-2); }
.cr-have { border: 1px solid var(--rule); border-left: 5px solid var(--energy); box-shadow: var(--shadow); background: #fff; }
.cr-wire { background: var(--wash); }
.cr-kit { background: #fff; border-color: var(--rule); box-shadow: var(--shadow); }
.cr-kit-h { color: var(--ink); }
.cr-kit li { color: var(--ink); border-color: rgba(217,139,30,.55); background: var(--energy-wash); }

/* Admin: marketing trial links */
.trial { grid-template-columns: 1.3fr .8fr .9fr .9fr; align-items: end; }
.trial .trial-label { grid-column: 1 / 4; }
.trial .btn { align-self: end; }
.trial .form-msg { grid-column: 1 / -1; }
@media (max-width: 900px) { .trial { grid-template-columns: 1fr 1fr; } .trial .trial-label { grid-column: 1 / -1; } }
.trial-new { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-left: 4px solid var(--ok); border-radius: 10px; background: #fff; }
.copy-row { display: flex; gap: .6rem; }
.copy-row input { flex: 1; padding: .65rem .8rem; border: 1px solid var(--rule); border-radius: 8px; font: 500 .95rem var(--mono); background: var(--paper); }
.trial-card h1 { font-size: 2rem; }
.trial-card .eyebrow { display: flex; justify-content: center; }
.trial-card h1, .trial-card > .muted { text-align: center; }
.tr-actions { display: grid; gap: .2rem; }

/* ── Courses page: each course is a five-panel slide-open rail ─────── */
.course-panel { padding: 2.25rem 0 3.5rem; }
.course-panel .guide-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.course-panel .guide-head .eyebrow::before { background: var(--c); }
@media (min-width: 861px) { .course-rail { height: 660px; } }
.course-rail .rail-panel:nth-child(1) { --accent: var(--c); }
.course-rail .rail-body { padding: 26px 12px 22px 28px; min-width: 560px; }
.course-rail .rail-scroll { padding-right: 18px; }
.course-rail h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin: 0 0 .5rem; }
.cp-note { margin: 0 0 1rem; }

/* 01 course */
.cp-course { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 26px; height: 100%; align-items: stretch; }
.cp-photo { border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); min-height: 300px; }
.cp-photo img { width: 100%; height: 100%; object-fit: cover; }
.cp-copy { display: flex; flex-direction: column; }
.cp-copy .eyebrow::before { background: var(--c); }
.cp-copy h3 { font-size: clamp(1.9rem, 2.8vw, 2.5rem); }
.cp-stats { list-style: none; padding: 0; margin: .8rem 0 1.2rem; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.cp-stats li { padding: .8rem .4rem 0 0; position: relative; }
.cp-stats li::before { content: ""; position: absolute; top: -2px; left: 0; width: 28px; height: 3px; background: var(--c); }
.cp-stats b { display: block; font: 700 2rem/1 var(--display); }
.cp-stats span { font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* 02 skills */
.skills-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 1rem; }
.skills-rail li { padding: 1rem 1.1rem; box-shadow: none; background: #fff; }
.course-panel .skill-ic { background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }

/* 03 route inside the panel */
.course-rail .wk-track { box-shadow: none; background: #fff; }
.course-rail .wk-cards { min-height: 170px; }
.course-rail .wk-card { box-shadow: none; }

/* 04 apps */
.apps-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.course-panel .app-ic { background: var(--c); }
.course-panel .app-card::after { border-color: var(--c); }
.course-panel .app-week { color: color-mix(in srgb, var(--c) 70%, #fff); }

/* 05 projects */
.cp-projects { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.cp-steps { list-style: none; counter-reset: proj; padding: 0; margin: .4rem 0 1rem; display: grid; gap: .7rem; }
.cp-steps li { counter-increment: proj; position: relative; padding: .85rem 1rem .85rem 3.2rem; background: #fff; border: 1px solid var(--rule); border-radius: 10px; }
.cp-steps li::before { content: counter(proj); position: absolute; left: 1rem; top: .9rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--c); color: #fff; font: 700 1rem/1.7rem var(--display); text-align: center; }
.cp-steps strong { display: block; font: 700 1.15rem/1.2 var(--display); letter-spacing: .02em; }
.cp-steps span { font-size: .93rem; color: var(--ink-2); line-height: 1.45; }
.cp-included { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--energy); border-radius: 10px; padding: .9rem 1.1rem; }
.cp-included .card-tag { margin-bottom: .5rem; }
.cp-included ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1rem; }
.cp-included li { position: relative; padding-left: 1.3rem; font-size: .92rem; }
.cp-included li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 10px; height: 6px; border-left: 2px solid var(--paint); border-bottom: 2px solid var(--paint); transform: rotate(-45deg); }
.cp-shots { display: grid; gap: 12px; }
.cp-shot { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); background: #fff; }
.cp-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.cp-shot:hover img { transform: scale(1.05); }
.cp-shot figcaption { padding: .55rem .8rem; font: 500 12px var(--mono); letter-spacing: .03em; color: var(--ink-2); }

@media (max-width: 1100px) {
  .course-rail .rail-body { min-width: 0; }
  .cp-projects { grid-template-columns: 1fr; }
  .cp-shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .course-rail { height: auto; }
  .cp-course { grid-template-columns: 1fr; }
  .cp-photo { min-height: 200px; }
  .skills-rail, .apps-rail, .cp-included ul { grid-template-columns: 1fr; }
  .course-rail .rail-body h3 { display: block; }
}
@media (max-width: 560px) { .cp-shots { grid-template-columns: 1fr; } .cp-stats { grid-template-columns: repeat(2, 1fr); row-gap: .8rem; } }

/* Closed panels: nothing inside may catch clicks (keeps the tab clickable) */
.rail-panel:not(.is-open) .rail-body, .rail-panel:not(.is-open) .rail-body * { pointer-events: none !important; }
.cp-shot img { height: auto; }
@media (min-width: 861px) { .course-rail { height: 700px; } }
.rail-body .cp-steps li { padding: .7rem .9rem .7rem 3rem; }
.rail-body .cp-steps li::before { left: .9rem; top: .75rem; width: 1.6rem; height: 1.6rem; line-height: 1.6rem; background: var(--c); border-radius: 50%; }
.rail-body .cp-included li::before { content: ""; left: 2px; top: .45em; width: 10px; height: 6px; border-radius: 0; background: none; border-left: 2px solid var(--paint); border-bottom: 2px solid var(--paint); transform: rotate(-45deg); }
.rail-body .skills li::before, .rail-body .apps li::before { display: none; }
@media (min-width: 1101px) { .cp-projects { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.cp-projects .rail-lead { margin-bottom: .6rem; }
.cp-shots .cp-included ul { grid-template-columns: 1fr; }
.cp-shots .cp-included { padding: .8rem 1rem; }
.cp-shot figcaption { padding: .45rem .75rem; }
.cp-projects > .cp-included { grid-column: 1 / -1; }
.cp-projects > .cp-included ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .cp-projects > .cp-included ul { grid-template-columns: 1fr; } }
.cp-projects .cp-proj-copy h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.cp-projects .rail-lead { font-size: 1.02rem; line-height: 1.55; }
.cp-steps { gap: .55rem; }
.rail-body .cp-steps span { line-height: 1.4; display: block; }
.cp-projects > .cp-included { padding: .75rem 1rem; }

/* ── Courses page v3: one rail, two panels (01 Underground Design · 02 Overhead Design) ── */
.courses-rail-section { padding: .5rem 0 4rem; }
.course-rail2 { height: auto; align-items: stretch; gap: 14px; }
.course-rail2 .rail-panel { min-width: 104px; }
.course-rail2 .rail-panel[data-course="underground"] { --accent: var(--energy); --c: var(--energy); }
.course-rail2 .rail-panel[data-course="overhead"] { --accent: var(--blue); --c: var(--blue); }
.course-rail2 .rail-panel.is-open { flex-grow: 14; }
/* The open panel's content defines the height; closed panels just show their tab. */
.course-rail2 .rail-body { position: relative; inset: auto; min-width: 0; padding: 30px 34px 36px; transform: none; display: none; }
.course-rail2 .rail-panel.is-open .rail-body { display: block; animation: cx-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cx-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.course-rail2 .rail-scroll { overflow: visible; height: auto; padding: 0; }
.course-rail2 .rail-watermark { position: absolute; top: 10px; right: 24px; bottom: auto; font-size: 240px; }
.course-rail2 .rail-tab { padding: 0; align-items: stretch; }
.course-rail2 .rail-tab-inner { position: sticky; top: 90px; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 0 26px; }
.course-rail2 .rail-num { font-size: 32px; }
.course-rail2 .rail-icon { width: 46px; height: 46px; }
.course-rail2 .rail-icon svg { width: 24px; height: 24px; }
.course-rail2 .rail-title { font-size: 30px; letter-spacing: .06em; margin-top: 8px; }
.course-rail2 .rail-panel:not(.is-open) { cursor: pointer; }
.course-rail2 .rail-panel:not(.is-open):hover .rail-title { color: var(--accent); }

/* course content blocks inside the open panel */
.cx-hero { margin-bottom: 2.5rem; }
.cx-hero .cp-photo { min-height: 340px; }
.cx-hero h2 { font-size: clamp(2.1rem, 3.4vw, 3rem); margin: 0 0 .5rem; }
.cx-block { padding-top: 2.2rem; margin-top: 2.2rem; border-top: 1px dashed var(--rule); }
.cx-block > .eyebrow::before { background: var(--c); }
.cx-block > h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: 0 0 .8rem; }
.course-rail2 .skills-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course-rail2 .apps-rail { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.course-rail2 .wk-cards { min-height: 160px; }
.cx-cta { margin-top: 1.6rem; }
@media (min-width: 1101px) { .course-rail2 .cp-projects { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.course-rail2 .cp-projects > .cp-included { grid-column: 1 / -1; }

@media (max-width: 1100px) { .course-rail2 .skills-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .course-rail2 .rail-panel { min-width: 0; }
  .course-rail2 .rail-tab-inner { position: static; flex-direction: row; padding: 16px 18px; gap: 14px; }
  .course-rail2 .rail-title { font-size: 20px; margin: 0; }
  .course-rail2 .rail-num { font-size: 24px; }
  .course-rail2 .rail-panel.is-open .rail-tab { border-bottom: 1px solid var(--rule); }
  .course-rail2 .rail-body { padding: 20px 16px 26px; }
  .course-rail2 .skills-rail { grid-template-columns: 1fr; }
  .course-rail2 .rail-watermark { font-size: 140px; }
}
/* keep the closed course's label in view while scrolling the open one */
.course-rail2 .rail-panel { overflow: clip; }
@media (min-width: 861px) {
  .course-rail2 .rail-title { font-size: 26px; margin-top: 4px; }
  .course-rail2 .rail-tab-inner { top: 84px; padding-top: 18px; gap: 12px; }
}

/* ── Courses page: free sample lesson (UG lesson 1.1, styled like the course) ── */
.sample-lesson { background: color-mix(in srgb, var(--wash) 60%, transparent); border-block: 1px solid var(--rule); }
.lesson-sheet { max-width: 54rem; margin: 0 auto; background: var(--sheet); border: 1px solid var(--rule); border-top: 5px solid var(--energy); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.75rem); }
.lesson-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.lesson-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lesson-progress { display: inline-flex; align-items: center; gap: 10px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lesson-progress > span { width: 120px; height: 6px; border-radius: 99px; background: var(--wash); border: 1px solid var(--rule); overflow: hidden; position: relative; }
.lesson-progress > span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 1.7%; min-width: 4px; background: var(--energy); box-shadow: 0 0 6px var(--energy); }
.lesson-title { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 1rem; }
.lesson-goal { background: var(--energy-wash); border-left: 4px solid var(--energy); border-radius: 0 10px 10px 0; padding: .9rem 1.2rem; margin-bottom: 1.6rem; }
.lesson-goal p { margin: .2rem 0 0; font: 400 1.1rem/1.55 var(--read); }
.lesson-prose { font: 400 1.12rem/1.72 var(--read); color: var(--ink); }
.lesson-prose p, .lesson-prose ul, .lesson-prose ol { margin: 0 0 1em; }
.lesson-prose ul, .lesson-prose ol { padding-left: 1.4rem; }
.lesson-prose li { margin-bottom: .35em; }
.lesson-prose strong { font-weight: 600; }
.lesson-h { font-size: 1.7rem; margin: 2rem 0 .3rem; padding-top: 1.6rem; border-top: 1px dashed var(--rule); }
/* course styles used by the lesson */
.lesson-prose .term { border-bottom: 2px dotted color-mix(in srgb, var(--paint) 70%, transparent); cursor: help; }
.lesson-prose .term:hover, .lesson-prose .term:focus { background: var(--paint-wash); outline: none; }
.lesson-prose .diagram { margin: 1.6em 0; padding: 18px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.lesson-prose .diagram figcaption { font: 400 14px/1.4 var(--ui); color: var(--ink-2); margin-top: 10px; border-top: 1px solid var(--rule); padding-top: 8px; }
.lesson-prose .diagram figcaption b { color: var(--ink); font-weight: 600; }
.lesson-prose .fig-art { overflow-x: auto; }
.dg { display: block; width: 100%; height: auto; min-width: 520px; color: var(--ink); font-family: var(--mono); }
.dg line, .dg polyline, .dg path, .dg rect, .dg circle, .dg polygon { stroke: currentColor; stroke-width: 1.5; fill: none; }
.dg text { fill: currentColor; stroke: none; font-size: 12px; }
.dg .sm { font-size: 12px; } .dg .xs { font-size: 10.5px; } .dg .b { font-weight: 600; } .dg .dim { opacity: .6; }
.dg .box { fill: var(--sheet); } .dg .wash { fill: var(--wash); } .dg .hot { stroke: var(--paint); }
.dg .hotf, .dg text.hotf { fill: var(--paint); stroke: none; } .dg .live { stroke: var(--energy); }
.dg .inkf { fill: currentColor; stroke: none; } .dg .dimf { fill: var(--rule); stroke: none; }
.dg text.paper { fill: #fff; } .dg .soil { fill: var(--soil); stroke: none; } .dg .band { fill: var(--wash); stroke: none; }
.dg text.onink { fill: var(--sheet); } .dg .woodf { fill: #8A6A48; stroke: none; }
.dg .padf { fill: #5F7D5B; stroke: #3F5640; } .dg .padline { stroke: #3F5640; fill: none; }
.lesson-prose .callout { margin: 1.4em 0; padding: 16px 20px; border-radius: 14px; font-size: 1.05rem; }
.lesson-prose .callout p { margin: 0; }
.lesson-prose .callout-label { display: block; font: 700 13px/1 var(--display) !important; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.lesson-prose .callout.remember { background: linear-gradient(160deg, color-mix(in srgb, var(--ink) 92%, var(--energy)), var(--ink)); color: var(--paper); box-shadow: var(--shadow); }
.lesson-prose .callout.remember .callout-label { color: var(--energy); }
.lesson-prose .practice-list { counter-reset: p; list-style: none; padding-left: 0; }
.lesson-prose .practice-list > li { counter-increment: p; position: relative; padding: 14px 16px 14px 56px; margin: 0 0 10px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; transition: border-color .2s; }
.lesson-prose .practice-list > li:hover { border-color: color-mix(in srgb, var(--energy) 50%, var(--rule)); }
.lesson-prose .practice-list > li::before { content: counter(p); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 6px; background: var(--wash); display: grid; place-items: center; font: 700 16px var(--display); }
.lesson-prose details.reveal { margin-top: 10px; }
.lesson-prose details.reveal summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--paint); padding: 7px 11px; border: 1px solid color-mix(in srgb, var(--paint) 40%, transparent); border-radius: 6px; transition: background .2s; }
.lesson-prose details.reveal summary::-webkit-details-marker { display: none; }
.lesson-prose details.reveal summary::before { content: "+"; font: 600 16px var(--mono); }
.lesson-prose details.reveal[open] summary::before { content: "–"; }
.lesson-prose details.reveal summary:hover { background: var(--paint-wash); }
.lesson-prose details.reveal .ans { margin-top: 10px; padding: 12px 14px; border-radius: 8px; background: var(--energy-wash); border-left: 3px solid var(--energy); font-size: 1.02rem; animation: rail-in .35s both; }
.lesson-terms { margin-top: 1.6rem; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; }
.lesson-terms dl { margin: .4rem 0 0; display: grid; gap: .6rem; }
.lesson-terms li { list-style: none; }
.lesson-terms dt { font: 700 1.05rem var(--display); letter-spacing: .02em; }
.lesson-terms dd { margin: .1rem 0 0; color: var(--ink-2); font-size: .97rem; }
.lesson-end { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px dashed var(--rule); }
.lesson-end-h { font: 700 1.6rem var(--display); margin: 0 0 .2rem; }
.lesson-end .muted { margin: 0; }
.lesson-end-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 600px) { .dg { min-width: 480px; } .lesson-prose { font-size: 1.05rem; } }

/* UG course photo: keep the open trench and conduit in view */
.rail-panel[data-course="underground"] .cp-photo img { object-position: 72% 60%; }

/* ── Courses: course details condensed into one tab box (same size as the course header) ── */
.course-rail2 .cx-tabs { display: flex; flex-direction: column; margin-top: 1.6rem; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; overflow: hidden; }
.cx-tablist { display: flex; gap: 4px; padding: 6px; background: var(--paper); border-bottom: 1px solid var(--rule); flex: none; overflow-x: auto; scrollbar-width: none; }
.cx-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .6rem 1rem; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); font: 600 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.cx-tab span { font: 600 11px var(--mono); color: var(--c, var(--energy)); }
.cx-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--wash) 70%, transparent); }
.cx-tab.is-on { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 0 var(--rule), 0 2px 8px rgba(23,33,43,.08); }
.cx-tab.is-on::after { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--energy)); }
.cx-panes { flex: 1 1 auto; min-height: 0; position: relative; }
.cx-pane { height: 100%; overflow: auto; padding: 1.1rem 1.3rem 1.2rem; animation: rail-in .3s both; }
.cx-pane[hidden] { display: none; }
.cx-pane-h { font-size: clamp(1.35rem, 1.9vw, 1.6rem); margin: 0 0 .7rem; }
.cx-pane-lead { margin: -.35rem 0 .8rem; color: var(--ink-2); font-size: .98rem; line-height: 1.45; }
/* skills: compact 3 × 2 */
.course-rail2 .cx-pane .skills-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.course-rail2 .cx-pane .skills-rail li { padding: .8rem .9rem; }
.course-rail2 .cx-pane .skills-rail li strong { font-size: 1.1rem; }
.course-rail2 .cx-pane .skills-rail li > span:last-child { font-size: .9rem; line-height: 1.4; }
/* route */
.cx-pane .cp-note { margin: -.35rem 0 .7rem; font-size: .92rem; }
/* apps: one row */
.course-rail2 .cx-pane .apps-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; gap: 12px; }
/* projects: steps + shots side by side, extras as a compact strip */
.cx-pane-projects .cp-projects { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 16px; }
.cx-pane-projects .cx-pane-lead { font-size: .94rem; margin: -.35rem 0 .6rem; }
.cx-pane-projects .cp-steps li { padding-top: .45rem; padding-bottom: .45rem; }
.cx-pane-projects .cp-steps span { font-size: .9rem; line-height: 1.4; }
.cx-pane-projects .cp-shots { grid-template-columns: 1fr 1fr; gap: 10px; align-self: start; }
.cx-pane-projects .cp-shot img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.cx-pane-projects .cp-shot figcaption { font-size: 12px; }
.cx-pane-projects .cp-projects > .cp-included { grid-column: 1 / -1; padding: .6rem .9rem; }
.cx-pane-projects .cp-projects > .cp-included .card-tag { margin-bottom: .35rem; }
.cx-pane-projects .cp-projects > .cp-included ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem 1rem; }
.cx-pane-projects .cp-included li { font-size: .86rem; }
@media (max-width: 1100px) {
  .course-rail2 .cx-pane .skills-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cx-tab { flex: 0 0 auto; padding: .55rem .8rem; font-size: 14px; }
  .cx-pane { height: auto; padding: 1rem; }
  .course-rail2 .cx-pane .skills-rail, .course-rail2 .cx-pane .apps-rail, .cx-pane-projects .cp-projects { grid-template-columns: 1fr !important; }
  .cx-pane-projects .cp-projects > .cp-included ul { grid-template-columns: 1fr; }
}

/* "Try a free lesson" button: text blinks green */
.btn-blink { color: #1E9E4A; border-color: color-mix(in srgb, #1E9E4A 45%, var(--rule)); animation: blink-green 1.2s ease-in-out infinite; }
.btn-blink:hover { color: #fff; background: #1E9E4A; border-color: #1E9E4A; animation: none; }
@keyframes blink-green { 0%, 100% { color: #1E9E4A; } 50% { color: color-mix(in srgb, #1E9E4A 15%, transparent); } }
@media (prefers-reduced-motion: reduce) { .btn-blink { animation: none; } }
/* tab box: tighter headings and cards so each tab fits the box */
.rail-body .cx-pane .cx-pane-h { font-size: 1.3rem; max-width: none; margin: 0 0 .55rem; text-wrap: wrap; }
.cx-pane .cx-pane-lead, .cx-pane .cp-note { margin: -.25rem 0 .7rem; font-size: .9rem; }
.course-rail2 .cx-pane .skills-rail li { padding: .65rem .8rem; column-gap: 11px; }
.course-rail2 .cx-pane .skill-ic { width: 36px; height: 36px; border-radius: 9px; }
.course-rail2 .cx-pane .skill-ic svg { width: 19px; height: 19px; }
.course-rail2 .cx-pane .skills-rail li strong { font-size: 1.02rem; }
.course-rail2 .cx-pane .skills-rail li > span:last-child { font-size: .85rem; line-height: 1.35; }
.cx-pane .route2 .wk-track { padding-top: .7rem; padding-bottom: .7rem; }
.cx-pane .route2 .wk-card { padding-top: .8rem; padding-bottom: .8rem; }
.cx-pane .route2 .wk-card h4, .cx-pane .route2 .wk-card h3 { font-size: 1.4rem; }
.cx-pane .app-card { padding: .9rem 1rem; }
.cx-pane .app-card p:not(.app-week) { font-size: .88rem; line-height: 1.4; }
.cx-pane-projects .cp-proj-copy .cx-pane-lead { display: none; }
.cx-pane-projects .cp-shot img { aspect-ratio: 16 / 10; }
/* projects tab: steps + extras on the left, screenshots on the right */
.cx-pane-projects .cp-projects { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr) !important; grid-template-rows: auto 1fr; gap: 12px 18px; }
.cx-pane-projects .cp-proj-copy { grid-column: 1; grid-row: 1; }
.cx-pane-projects .cp-projects > .cp-included { grid-column: 1 !important; grid-row: 2; align-self: start; }
.cx-pane-projects .cp-projects > .cp-included ul { grid-template-columns: 1fr 1fr; }
.cx-pane-projects .cp-shots { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: 1fr; gap: 8px; }
.cx-pane-projects .cp-steps { margin: 0; }
.course-rail2 .cx-pane .skills-rail { gap: 8px; }
.course-rail2 .cx-pane .skills-rail li { padding: .55rem .75rem; }
@media (max-width: 1100px) {
  .cx-pane { height: auto; overflow: visible; }
  .course-rail2 .cx-pane .apps-rail { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .cx-pane-projects .cp-proj-copy, .cx-pane-projects .cp-projects > .cp-included, .cx-pane-projects .cp-shots { grid-column: 1 !important; grid-row: auto; }
  .cx-pane-projects .cp-shots { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 861px) {
  .cx-pane-projects .cp-projects { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) !important; }
  .cx-pane-projects .cp-shots { grid-template-columns: 1fr 1fr; align-self: start; }
  .cx-pane-projects .cp-shot img { aspect-ratio: 4 / 3; }
}
/* projects tab: "Also included" as one compact strip across the bottom */
@media (min-width: 861px) {
  .cx-pane-projects .cp-projects { grid-template-rows: auto auto; gap: 10px 18px; }
  .cx-pane-projects .cp-shots { grid-row: 1; }
  .cx-pane-projects .cp-projects > .cp-included { grid-column: 1 / -1 !important; grid-row: 2; display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; padding: .5rem .8rem; }
  .cx-pane-projects .cp-projects > .cp-included .card-tag { margin: 0; }
  .cx-pane-projects .cp-projects > .cp-included ul { display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .cx-pane-projects .cp-steps li { padding-top: .4rem; padding-bottom: .4rem; }
}
@media (min-width: 861px) { .cx-pane-projects { padding-top: .9rem; padding-bottom: .9rem; } .cx-pane-projects .cx-pane-h { margin-bottom: .45rem; } .cx-pane-projects .cp-steps span { line-height: 1.35; } }
@media (min-width: 861px) { .cx-pane-projects { padding-bottom: .6rem; } }
.course-rail2 .cx-pane .skills-rail, .course-rail2 .cx-pane .apps-rail { max-width: none; width: 100%; }
.course-rail2 .cx-pane .skills-rail li > span:last-child { grid-column: 2; }

/* ══ Home: power story (career path + design tracks + 3D simulator in one animated section) ══ */
.power-story { padding: clamp(2.5rem, 5vw, 3.75rem) 0; background:
  linear-gradient(180deg, transparent, color-mix(in srgb, var(--wash) 75%, transparent) 30%, color-mix(in srgb, var(--wash) 75%, transparent) 70%, transparent),
  repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--blue) 7%, transparent) 31px 32px),
  repeating-linear-gradient(90deg, transparent 0 31px, color-mix(in srgb, var(--blue) 7%, transparent) 31px 32px); }
.power-story:not(.is-live) *, .power-story:not(.is-live) *::before, .power-story:not(.is-live) *::after { animation-play-state: paused !important; }
.ps-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ps-head h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); max-width: 22ch; margin: 0; }
.ps-ticker { display: flex; gap: clamp(1rem, 3vw, 2.4rem); list-style: none; margin: 0; padding: 0; }
.ps-ticker li { display: grid; }
.ps-ticker b { font: 700 clamp(2.2rem, 4vw, 3.2rem)/1 var(--display); color: var(--paint); font-variant-numeric: tabular-nums; }
.ps-ticker li:nth-child(2) b { color: var(--energy); } .ps-ticker li:nth-child(3) b { color: var(--blue); }
.ps-ticker span { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }

/* animated one-line scene */
.ps-stage { position: relative; border: 1px solid var(--rule); border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--sheet)); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
.ps-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-100%); animation: ps-sheen 7s ease-in-out 2.5s infinite; pointer-events: none; }
.pw-svg { display: block; width: 100%; height: auto; max-height: 190px; font-family: var(--mono); }
.pw-soil { fill: var(--soil); } .pw-grain { fill: color-mix(in srgb, var(--ink) 12%, transparent); }
.pw-ground { stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: 1.5; }
.pw-fence { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 3; }
.pw-box, .pw-wall { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.pw-roof { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; }
.pw-pole { stroke: #8A6A48; stroke-width: 4; stroke-linecap: round; fill: none; }
.pw-xfmr { fill: #9AA5AE; stroke: var(--ink); stroke-width: 1.2; }
.pw-pad { fill: #5F7D5B; stroke: #3F5640; stroke-width: 1.5; } .pw-padline { stroke: #DDE7DA; stroke-width: 1.3; }
.pw-wire { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.pw-conduit { fill: none; stroke: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 4; stroke-linejoin: round; }
.pw-lbl { font-size: 12px; font-weight: 600; letter-spacing: .14em; fill: var(--ink-2); }
.pw-oh { fill: var(--blue); } .pw-ug { fill: var(--energy); }
.pw-ev { fill: var(--wash); stroke: var(--ink); stroke-width: 1; } .pw-bolt { fill: var(--rule); animation: ps-bolt 4s ease-in-out 3.2s infinite; }
.pw-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ps-draw 1.8s cubic-bezier(.6,0,.2,1) .2s forwards; }
.pw-flow { fill: none; stroke: var(--paint); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2.5 14.5; opacity: 0; filter: drop-shadow(0 0 4px var(--paint)); animation: ps-fade .6s ease 1.8s forwards, ps-flow 1.6s linear infinite; }
.pw-flow-ug { stroke: var(--energy); filter: drop-shadow(0 0 4px var(--energy)); }
.pw-flow.f2 { animation-delay: 2.2s, 0s; }
.pw-win { fill: var(--rule); animation: ps-light 9s ease 2.4s infinite; }
.pw-win.w2 { animation-delay: 2.6s; } .pw-win.w3 { animation-delay: 2.9s; } .pw-win.w4 { animation-delay: 3.1s; }
.pw-win.w5 { animation-delay: 3.3s; } .pw-win.w6 { animation-delay: 3.4s; } .pw-win.w7 { animation-delay: 3.5s; }
.pw-win.w8 { animation-delay: 3.6s; } .pw-win.w9 { animation-delay: 3.7s; } .pw-win.w10 { animation-delay: 3.8s; }
@keyframes ps-draw { to { stroke-dashoffset: 0; } }
@keyframes ps-fade { to { opacity: 1; } }
@keyframes ps-flow { to { stroke-dashoffset: -34; } }
@keyframes ps-light { 0%, 4% { fill: var(--rule); } 8%, 90% { fill: #F4C04E; filter: drop-shadow(0 0 4px #F4C04E); } 100% { fill: var(--rule); } }
@keyframes ps-bolt { 0%, 100% { fill: var(--rule); } 30%, 70% { fill: #2E9E55; } }
@keyframes ps-sheen { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }

/* three cards */
.ps-bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr); gap: 18px; }
.ps-card { position: relative; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--c, var(--paint)); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.2rem 1.2rem; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.ps-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px rgba(23,33,43,.4); }
.ps-card .eyebrow { margin-bottom: .35rem; }
.ps-card .eyebrow::before { background: var(--c, var(--paint)); }
.ps-card h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.12; margin: 0 0 .5rem; }
.ps-text { color: var(--ink-2); font-size: .95rem; line-height: 1.45; margin: 0 0 .8rem; }
.ps-career { --c: var(--paint); } .ps-tracks { --c: var(--energy); } .ps-sim { --c: var(--blue); }
.ps-link { margin-top: auto; font-weight: 600; font-size: .95rem; }

/* career: steps that light up in turn */
.ps-steps { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; gap: 6px; }
.ps-steps li { position: relative; display: flex; align-items: center; gap: 10px; padding: .55rem .7rem; border: 1px solid var(--rule); border-radius: 9px; background: #fff; overflow: hidden; animation: ps-step 12s infinite; }
.ps-steps li:nth-child(2) { animation-delay: 3s; } .ps-steps li:nth-child(3) { animation-delay: 6s; } .ps-steps li:nth-child(4) { animation-delay: 9s; }
.ps-steps b { flex: none; width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; font: 700 14px var(--mono); background: var(--wash); color: var(--ink-2); animation: ps-step-n 12s infinite; animation-delay: inherit; }
.ps-steps span { font-weight: 600; font-size: .95rem; line-height: 1.25; }
.ps-steps i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--paint); animation: ps-step-bar 12s linear infinite; animation-delay: inherit; }
@keyframes ps-step { 0%, 24% { border-color: color-mix(in srgb, var(--paint) 45%, var(--rule)); background: var(--paint-wash); transform: translateX(4px); } 27%, 100% { border-color: var(--rule); background: #fff; transform: none; } }
@keyframes ps-step-n { 0%, 24% { background: var(--paint); color: #fff; } 27%, 100% { background: var(--wash); color: var(--ink-2); } }
@keyframes ps-step-bar { 0% { width: 0; } 25% { width: 100%; } 25.01%, 100% { width: 0; } }

/* tracks: two moving photo tiles */
.ps-track { position: relative; display: block; flex: 1 1 0; min-height: 132px; border-radius: 10px; overflow: hidden; color: #fff; text-decoration: none; margin-top: 8px; isolation: isolate; }
.ps-track img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: ps-kenburns 16s ease-in-out infinite alternate; transition: filter .3s; }
.ps-track-oh img { animation-delay: -8s; }
.ps-track::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,22,30,.86) 0%, rgba(14,22,30,.55) 55%, rgba(14,22,30,.1)); }
.ps-track-copy { position: absolute; left: 14px; right: 46px; bottom: 12px; display: grid; gap: 3px; }
.ps-chip { justify-self: start; font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; background: var(--energy); color: #1b1307; padding: 3px 7px; border-radius: 4px; }
.ps-track-oh .ps-chip { background: #7FB2E8; color: #0d1d2e; }
.ps-track strong { font: 700 1.2rem/1.1 var(--display); letter-spacing: .01em; }
.ps-track em { font-style: normal; font-size: .82rem; color: rgba(255,255,255,.82); line-height: 1.3; }
.ps-go { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); transition: background .2s, transform .2s; }
.ps-track:hover .ps-go { background: var(--paint); border-color: var(--paint); transform: translateX(3px); }
.ps-track:hover img { filter: saturate(1.2) brightness(1.06); }
@keyframes ps-kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.18) translate(-3%, -2%); } }

/* simulator: screen with scan line and live checks */
.ps-screen { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9.4; margin-bottom: .75rem; background: var(--ink); }
.ps-screen img { width: 100%; height: 100%; object-fit: cover; animation: ps-pan 18s ease-in-out infinite alternate; }
.ps-scan { position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(180deg, transparent, color-mix(in srgb, #63B3FF 30%, transparent) 85%, #9BD0FF); mix-blend-mode: screen; animation: ps-scan 3.2s linear infinite; }
.ps-checks { position: absolute; left: 10px; top: 10px; list-style: none; margin: 0; padding: 8px 10px; display: grid; gap: 4px; background: rgba(14,22,30,.78); border-radius: 8px; backdrop-filter: blur(4px); }
.ps-checks li { display: flex; align-items: center; gap: 7px; font: 600 11px var(--mono); letter-spacing: .04em; color: #fff; text-transform: uppercase; }
.ps-checks li::before { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.45); box-sizing: border-box; animation: ps-check 8s infinite; }
.ps-checks li:nth-child(1)::before { animation-delay: .6s; } .ps-checks li:nth-child(2)::before { animation-delay: 1.3s; }
.ps-checks li:nth-child(3)::before { animation-delay: 2s; } .ps-checks li:nth-child(4)::before { animation-delay: 2.7s; }
.ps-lit { position: absolute; right: 10px; bottom: 10px; font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #1b1307; background: #F4C04E; padding: 5px 8px; border-radius: 5px; box-shadow: 0 0 18px #F4C04E; opacity: 0; animation: ps-lit 8s 3.4s infinite; }
.ps-sim .btn { align-self: flex-start; margin-top: auto; }
@keyframes ps-pan { from { transform: scale(1.08) translateX(2%); } to { transform: scale(1.08) translateX(-2%); } }
@keyframes ps-scan { from { transform: translateY(-100%); } to { transform: translateY(250%); } }
@keyframes ps-check { 0%, 6% { background: transparent; border-color: rgba(255,255,255,.45); box-shadow: none; } 10%, 88% { background: #2E9E55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8'/%3E%3C/svg%3E") center / 10px no-repeat; border-color: #2E9E55; box-shadow: 0 0 8px #2E9E55; } 94%, 100% { background: transparent; border-color: rgba(255,255,255,.45); box-shadow: none; } }
@keyframes ps-lit { 0% { opacity: 0; transform: translateY(6px); } 6%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }

@media (max-width: 1000px) {
  .ps-bento { grid-template-columns: 1fr 1fr; }
  .ps-sim { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 18px; }
  .ps-sim .ps-screen { grid-row: 1 / span 5; grid-column: 1; margin: 0; }
  .ps-sim > :not(.ps-screen) { grid-column: 2; }
}
@media (max-width: 680px) {
  .ps-bento { grid-template-columns: 1fr; gap: 14px; }
  .ps-sim { display: flex; }
  .ps-stage { margin-inline: -8px; }
  .pw-svg { max-height: none; }
  .ps-ticker b { font-size: 2rem; }
  .ps-track { min-height: 118px; }
}
@media (prefers-reduced-motion: reduce) {
  .power-story *, .power-story *::before, .power-story *::after { animation: none !important; }
  .pw-draw { stroke-dashoffset: 0; } .pw-flow { opacity: 1; } .pw-win { fill: #F4C04E; } .ps-checks li::before { background: #2E9E55; border-color: #2E9E55; } .ps-lit { opacity: 1; }
}
.pw-svg { max-height: none; }
@media (max-width: 680px) {
  .pw-svg { width: 820px; max-width: none; animation: ps-stage-pan 16s ease-in-out 1s infinite alternate; }
  @keyframes ps-stage-pan { 0%, 8% { transform: translateX(0); } 92%, 100% { transform: translateX(calc(-820px + 100vw - 24px)); } }
}

/* ── Home power story v2 ── */
.ps-title { max-width: none !important; }
.ps-title span { display: block; animation: ps-rise .7s cubic-bezier(.2,.7,.2,1) both; }
.ps-title span:nth-child(2) { animation-delay: .15s; color: var(--paint); }
.ps-title span:nth-child(3) { animation-delay: .3s; }
@keyframes ps-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.power-story .ps-head { margin-bottom: 1.6rem; }

/* career path: four steps that stack into a staircase, with a dot climbing to "Job ready" */
.ps-stairs { --h: 46px; --g: 8px; position: relative; list-style: none; margin: .2rem 0 1rem; padding: 0; height: calc(var(--h) * 4 + var(--g) * 3 + 26px); display: flex; flex-direction: column-reverse; gap: var(--g); padding-top: 26px; }
.ps-stairs li { --i: 0; position: relative; display: flex; align-items: center; gap: 9px; height: var(--h); width: 66%; margin-left: calc(var(--i) * 11.3%); padding: 0 .7rem; border-radius: 8px; background: #fff; border: 1px solid var(--rule); overflow: hidden; transform-origin: left center; animation: ps-build 10s cubic-bezier(.2,.8,.2,1) infinite; animation-delay: calc(var(--i) * .7s); }
.ps-stairs li:nth-child(2) { --i: 1; } .ps-stairs li:nth-child(3) { --i: 2; } .ps-stairs li:nth-child(4) { --i: 3; }
.ps-stairs li::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, var(--paint-wash), color-mix(in srgb, var(--paint) 18%, transparent)); transform: scaleX(0); transform-origin: left; animation: ps-fill 10s ease-out infinite; animation-delay: inherit; }
.ps-stairs li::after { content: ""; position: absolute; left: -1px; top: 100%; width: 3px; height: var(--g); background: var(--paint); opacity: .35; }
.ps-stairs li:first-child::after { display: none; }
.ps-stairs b, .ps-stairs span { position: relative; z-index: 1; }
.ps-stairs b { flex: none; width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; font: 700 13px var(--mono); color: #fff; background: color-mix(in srgb, var(--paint) calc(55% + var(--i) * 15%), var(--energy)); }
.ps-stairs span { font-weight: 600; font-size: .9rem; line-height: 1.2; }
.ps-climber { position: absolute; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--energy); box-shadow: 0 0 0 4px color-mix(in srgb, var(--energy) 25%, transparent), 0 0 14px var(--energy); animation: ps-climb 10s ease-in-out infinite; }
.ps-flag { position: absolute; z-index: 2; right: 0; top: 0; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--paint); padding: 5px 9px; border-radius: 5px; box-shadow: 0 6px 18px -6px var(--paint); opacity: 0; transform: translateY(6px) scale(.9); animation: ps-flag 10s ease infinite; }
.ps-flag::before { content: "★ "; }
@keyframes ps-build { 0% { opacity: 0; transform: translateY(16px) scaleX(.55); } 7%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes ps-fill { 0%, 6% { transform: scaleX(0); } 14%, 88% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
/* dot climbs the left edge of each step: bottom (01) → top (04) → flag */
@keyframes ps-climb {
  0%, 30% { left: 0%; top: 100%; opacity: 0; }
  33% { left: 0%; top: 100%; opacity: 1; }
  38% { left: 0%; top: calc(100% - var(--h) - 1px); }
  42% { left: 11.3%; top: calc(100% - var(--h) - 1px); }
  47% { left: 11.3%; top: calc(100% - var(--h) * 2 - var(--g) - 1px); }
  51% { left: 22.6%; top: calc(100% - var(--h) * 2 - var(--g) - 1px); }
  56% { left: 22.6%; top: calc(100% - var(--h) * 3 - var(--g) * 2 - 1px); }
  60% { left: 33.9%; top: calc(100% - var(--h) * 3 - var(--g) * 2 - 1px); }
  65% { left: 33.9%; top: calc(100% - var(--h) * 4 - var(--g) * 3 - 1px); }
  72% { left: calc(100% - 8px); top: calc(100% - var(--h) * 4 - var(--g) * 3 - 1px); opacity: 1; }
  80%, 100% { left: calc(100% - 8px); top: calc(100% - var(--h) * 4 - var(--g) * 3 - 1px); opacity: 0; }
}
@keyframes ps-flag { 0%, 70% { opacity: 0; transform: translateY(6px) scale(.9); } 74%, 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* design tracks: blinking "Learn more" in each track's color */
.ps-more { position: absolute; right: 12px; bottom: 12px; --mc: var(--energy); font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--mc); border: 1.5px solid var(--mc); background: rgba(14,22,30,.55); padding: 8px 11px; border-radius: 6px; animation: ps-blink 1.2s ease-in-out infinite; transition: background .2s, color .2s; }
.ps-track-oh .ps-more { --mc: #7FB2E8; }
.ps-track:hover .ps-more { animation: none; background: var(--mc); color: #11161c; }
.ps-track-copy { right: 120px; }
@keyframes ps-blink { 0%, 100% { color: var(--mc); border-color: var(--mc); } 50% { color: color-mix(in srgb, var(--mc) 20%, transparent); border-color: color-mix(in srgb, var(--mc) 25%, transparent); } }

@media (max-width: 680px) {
  .ps-stairs li { width: 70%; margin-left: calc(var(--i) * 10%); }
  .ps-stairs span { font-size: .84rem; }
  @keyframes ps-climb { 0%, 100% { opacity: 0; } }
  .ps-track-copy { right: 14px; bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .ps-stairs li::before { transform: scaleX(1); } .ps-flag { opacity: 1; transform: none; } .ps-climber { display: none; }
}
.ps-stairs > .ps-climber, .ps-stairs > .ps-flag { position: absolute; }
.ps-stairs > .ps-flag { font-size: 11px; line-height: 1; font-weight: 700; }
.ps-stairs { --h: 50px; margin-top: auto; }
.ps-stairs li { width: 72%; margin-left: calc(var(--i) * 9.333%); }
.ps-career .ps-link { margin-top: 0; }
@keyframes ps-climb {
  0%, 30% { left: 0%; top: 100%; opacity: 0; }
  33% { left: 0%; top: 100%; opacity: 1; }
  38% { left: 0%; top: calc(100% - var(--h) - 1px); }
  42% { left: 9.333%; top: calc(100% - var(--h) - 1px); }
  47% { left: 9.333%; top: calc(100% - var(--h) * 2 - var(--g) - 1px); }
  51% { left: 18.667%; top: calc(100% - var(--h) * 2 - var(--g) - 1px); }
  56% { left: 18.667%; top: calc(100% - var(--h) * 3 - var(--g) * 2 - 1px); }
  60% { left: 28%; top: calc(100% - var(--h) * 3 - var(--g) * 2 - 1px); }
  65% { left: 28%; top: calc(100% - var(--h) * 4 - var(--g) * 3 - 1px); }
  72% { left: calc(100% - 8px); top: calc(100% - var(--h) * 4 - var(--g) * 3 - 1px); opacity: 1; }
  80%, 100% { left: calc(100% - 8px); top: calc(100% - var(--h) * 4 - var(--g) * 3 - 1px); opacity: 0; }
}
@keyframes ps-blink { 0%, 100% { color: var(--mc); border-color: var(--mc); box-shadow: 0 0 12px -2px var(--mc); } 50% { color: color-mix(in srgb, var(--mc) 35%, transparent); border-color: color-mix(in srgb, var(--mc) 35%, transparent); box-shadow: none; } }
@media (max-width: 680px) { .ps-stairs li { width: 76%; margin-left: calc(var(--i) * 8%); } }
@media (max-width: 680px) { .ps-track { min-height: 178px; } .ps-track-copy { bottom: 54px; } .ps-more { left: 14px; right: auto; } }
/* career staircase: three steps */
.ps-stairs { height: calc(var(--h) * 3 + var(--g) * 2 + 26px); }
.ps-stairs li { width: 72%; margin-left: calc(var(--i) * 14%); }
@keyframes ps-climb {
  0%, 30% { left: 0%; top: 100%; opacity: 0; }
  33% { left: 0%; top: 100%; opacity: 1; }
  39% { left: 0%; top: calc(100% - var(--h) - 1px); }
  44% { left: 14%; top: calc(100% - var(--h) - 1px); }
  50% { left: 14%; top: calc(100% - var(--h) * 2 - var(--g) - 1px); }
  55% { left: 28%; top: calc(100% - var(--h) * 2 - var(--g) - 1px); }
  61% { left: 28%; top: calc(100% - var(--h) * 3 - var(--g) * 2 - 1px); }
  68% { left: calc(100% - 8px); top: calc(100% - var(--h) * 3 - var(--g) * 2 - 1px); opacity: 1; }
  78%, 100% { left: calc(100% - 8px); top: calc(100% - var(--h) * 3 - var(--g) * 2 - 1px); opacity: 0; }
}
@media (max-width: 680px) { .ps-stairs li { width: 76%; margin-left: calc(var(--i) * 12%); } }

/* ── Home career path: growth graphic (three blocks that grow in size and height) ── */
.ps-grow { margin: .2rem -.3rem .8rem; }
.ps-grow svg { display: block; width: 100%; height: auto; overflow: visible; }
.gr-floor { fill: rgba(23, 33, 43, .07); }
.gr-block { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0; animation: gr-rise 1.1s cubic-bezier(.2, .9, .25, 1.08) forwards; }
.gr-block.b1 { animation-delay: .25s; } .gr-block.b2 { animation-delay: .95s; } .gr-block.b3 { animation-delay: 1.65s; }
.gr-block polygon { stroke: rgba(23, 33, 43, .55); stroke-width: 1; stroke-linejoin: round; }
.b1 .gr-l { fill: #A9B7C3; } .b1 .gr-r { fill: #C3CED7; } .b1 .gr-t { fill: url(#gr-g1); }
.b2 .gr-l { fill: #245E9E; } .b2 .gr-r { fill: #3B80C9; } .b2 .gr-t { fill: url(#gr-g2); }
.b3 .gr-l { fill: #B5281F; } .b3 .gr-r { fill: #D9572A; } .b3 .gr-t { fill: url(#gr-g3); }
.gr-shine { fill: #fff; opacity: 0; stroke: none !important; animation: gr-shine 3.6s ease-in-out infinite; }
.b1 .gr-shine { animation-delay: 3.4s; } .b2 .gr-shine { animation-delay: 3.8s; } .b3 .gr-shine { animation-delay: 4.2s; }
@keyframes gr-rise { 0% { transform: scaleY(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: scaleY(1); opacity: 1; } }
@keyframes gr-shine { 0%, 100% { opacity: 0; } 50% { opacity: .38; } }
.gr-dim path { fill: none; stroke: var(--ink-2); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: 0; animation: gr-fade .6s ease forwards; }
.gr-dim.d1 path { animation-delay: 1.1s; } .gr-dim.d2 path { animation-delay: 1.8s; } .gr-dim.d3 path { animation-delay: 2.5s; }
.gr-lbl { font: 600 13.5px var(--ui); fill: var(--ink); opacity: 0; animation: gr-label .6s ease forwards; }
.gr-lbl tspan + tspan { fill: var(--ink-2); font-weight: 500; }
.gr-lbl.l1 { animation-delay: .7s; } .gr-lbl.l2 { animation-delay: 1.4s; } .gr-lbl.l3 { animation-delay: 2.1s; fill: var(--paint); }
@keyframes gr-label { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes gr-fade { to { opacity: .7; } }
.gr-arc { fill: none; stroke: url(#gr-arc); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: gr-draw 1.4s cubic-bezier(.6, 0, .2, 1) 2.4s forwards; }
.gr-comet { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 6 94; stroke-dashoffset: 6; opacity: 0; filter: drop-shadow(0 0 6px #F4C04E) drop-shadow(0 0 2px #fff); animation: gr-cometin .3s ease 3.8s forwards, gr-comet 3.2s cubic-bezier(.45, 0, .3, 1) 3.8s infinite; }
@keyframes gr-draw { to { stroke-dashoffset: 0; } }
@keyframes gr-cometin { to { opacity: 1; } }
@keyframes gr-comet { 0% { stroke-dashoffset: 6; } 70%, 100% { stroke-dashoffset: -100; } }
.gr-halo { opacity: 0; transform-box: fill-box; transform-origin: center; animation: gr-halo-in 1s ease 2.6s forwards, gr-breathe 4s ease-in-out 3.6s infinite; }
@keyframes gr-halo-in { from { opacity: 0; transform: scale(.6); } to { opacity: .8; transform: none; } }
@keyframes gr-breathe { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: .45; transform: scale(.92); } }
.gr-sparks circle { fill: #F4C04E; opacity: 0; animation: gr-spark 3s ease-out infinite; }
.gr-sparks circle:nth-child(1) { animation-delay: 3.2s; } .gr-sparks circle:nth-child(2) { animation-delay: 3.9s; } .gr-sparks circle:nth-child(3) { animation-delay: 4.6s; } .gr-sparks circle:nth-child(4) { animation-delay: 5.3s; }
@keyframes gr-spark { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-42px); } }
.gr-tag { opacity: 0; transform-box: fill-box; transform-origin: center bottom; animation: gr-tag .6s cubic-bezier(.3, 1.6, .5, 1) 2.9s forwards; }
.gr-tag rect { fill: var(--paint); filter: drop-shadow(0 6px 10px rgba(200, 48, 42, .35)); }
.gr-tag text { fill: #fff; font: 700 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
@keyframes gr-tag { from { opacity: 0; transform: translateY(8px) scale(.8); } to { opacity: 1; transform: none; } }
.ps-career .ps-link { margin-top: auto; }
@media (prefers-reduced-motion: reduce) {
  .gr-block, .gr-lbl, .gr-tag { transform: none !important; opacity: 1 !important; } .gr-arc { stroke-dashoffset: 0; } .gr-halo { opacity: .7; } .gr-dim path { opacity: .7; }
}
.ps-grow:not(.grow-on) *, .ps-grow:not(.grow-on) *::before { animation-play-state: paused !important; }
