/* Merit AC / editorial system. Loaded after the functional content styles.
   Motion is progressive: no section is hidden when JavaScript is absent. */
:root {
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --page-w: 1392px;
}
button, input, select, textarea { font: inherit; }
button, input[type="submit"], select { min-height: 44px; }
button, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 100; background: var(--highlight); padding: 12px 20px; color: var(--ink); }
.skip-link:focus { top: 12px; }
header.site { backdrop-filter: blur(18px); border-color: var(--line); }
.site-inner { padding-inline: 40px; }
.brand-mark { gap: 10px; }
.brand-mark .bars { height: 25px; align-items: end; gap: 3px; }
.brand-mark .bars i { width: 6px; border-radius: 0; background: var(--ink); }
.brand-mark sup { font-size: 10px; align-self: start; margin-top: 8px; }
.nav-trigger, .nav-link { min-height: 44px; padding-inline: 10px; font-size: 14px; letter-spacing: -.01em; border-radius: 0; }
.nav-trigger { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; }
.nav-trigger::-webkit-details-marker { display: none; }
.nav-group[open] .nav-trigger::after { transform: rotate(225deg); }
details.nav-group:not([open]) .nav-panel { display: none; }
details.nav-group[open] .nav-panel { display: block; visibility: visible; opacity: 1; transform: none; }
.nav-panel { padding-top: 8px; }
.nav-panel-inner { border: 1px solid var(--line); gap: 32px; }
.nav-col-label { color: var(--muted); font-size: 11px; letter-spacing: .1em; }
.nav-item { min-height: 44px; display: flex; align-items: center; font-size: 14px; }
.nav-actions { gap: 8px; }
.nav-search { font-size: 0; width: 44px; height: 44px; padding: 0; border-color: transparent; background: transparent; }
.nav-search::before { content: ''; width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 50%; display: inline-block; }
.nav-search::after { content: ''; width: 6px; height: 1.5px; background: currentColor; transform: translate(-2px,5px) rotate(45deg); display: inline-block; }
.nav-search kbd { display: none; }
nav.site-nav a.nav-signin { border: 0; background: transparent; min-height: 44px; padding: 0 12px; }
nav.site-nav a.nav-cta { padding: 0 19px; }
.menu-button { display: none; background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 8px 15px; margin-left: auto; }
.page-trail { display: flex; align-items: center; gap: 12px; max-width: var(--page-w); padding: 22px 40px 0; margin: auto; font: 11px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.page-trail a { text-decoration: none; }
main.content { max-width: 840px; padding: 48px 40px 120px; }
main.content.wide { max-width: var(--page-w); }
main.content h1 { margin-bottom: 32px; text-wrap: balance; }
main.content h2 { font-size: clamp(30px,3.4vw,48px); line-height: 1.08; text-wrap: balance; }
main.content h3 { font-weight: 500; letter-spacing: -.025em; }
main.content p { line-height: 1.7; }
main.content .lead { color: var(--muted); font-size: 19px; max-width: 60ch; line-height: 1.65; }
main.content .kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.accent-word { background: none; padding: 0; }
.btn { min-height: 48px; font-weight: 500; letter-spacing: -.015em; box-shadow: none; transition: background .2s, transform .25s; }
.btn:hover { transform: translateY(-2px); }
.cta-row { gap: 12px; flex-wrap: wrap; }
.kicker-pill { border: 0; box-shadow: none; padding: 0; background: transparent; font-size: 12px; }
.kicker-pill b { border-radius: 1px; padding: 3px 7px; }
.hero-center { text-align: left; padding-top: 16px; }
.hero-center h1 { max-width: 20ch; margin-left: 0; }
.hero-center .lead { margin-left: 0; }
.hero-center .cta-row { justify-content: flex-start; }
.hero-wash { gap: 56px; min-height: 530px; margin: 0 0 80px; padding: 0; }
.hero-preview { clip-path: none; min-height: 380px; background: var(--paper-2); border-radius: 3px; }
.hero-preview::after { box-shadow: none; }
.hero-preview img { object-fit: contain; position: relative; height: auto; }
/* Sized to its output, not stretched to the hero's height. The colors are set on
   the <p>s too: main.content p inks every paragraph dark, and on this panel that
   left the brief rows at 1:1 contrast. All pairs below are >= 6.5:1 on --ink. */
.hero-terminal { background: var(--ink); color: #f8f5ef; padding: 36px; border: 0; border-radius: 3px; align-self: center; justify-content: flex-start; }
.hero-terminal p, .hero-terminal .t-note, .hero-terminal .t-figure { color: #f8f5ef; }
.hero-terminal .t-label { color: #a9b8b2; }
.hero-terminal .t-cmd { color: #c3d9bd; }
.hero-terminal .t-cmd::before { color: #9fb0a9; }
.hero-terminal .t-result { color: #f0c2ad; }
.section-head { text-align: left; margin: 88px 0 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.section-head h2, .section-head p { margin-left: 0; }
.section-head p { max-width: 66ch; font-size: 16px; }
.section-head h2 { max-width: 26ch; }
.card { border-radius: 3px; box-shadow: none; border-color: var(--line); background: var(--card); padding: 28px; }
.grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.grid a.tile { background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; padding: 25px; box-shadow: none; min-height: 150px; }
.grid a.tile:hover { transform: none; background: var(--paper-2); box-shadow: none; }
.grid a.tile::after { right: 22px; bottom: 20px; }
.grid-group { margin-top: 40px; }
.grid-group-label { padding-top: 18px; }
.gallery { gap: 40px 24px; }
.gthumb { border: 0; }
.gcard:hover .gthumb { transform: translateY(-4px); box-shadow: none; }
.gcard-body { padding: 18px 0 0; gap: 18px; flex-wrap: wrap; }
.gcard-title { font-weight: 500; letter-spacing: -.035em; }
.gcard-desc { font-size: 14px; line-height: 1.65; max-width: 45ch; }
.gcard-pricenote { font-size: 12px; line-height: 1.6; color: var(--muted); }
.gcard-price { padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center; }
.thumb-art { color: var(--ink); overflow: hidden; }
.thumb-art::after { content: ''; position: absolute; width: 62%; aspect-ratio: 1; border: 1px solid #202a2720; border-radius: 50%; right: -20%; top: -12%; pointer-events: none; }
.thumb-art .ta-mark { font: 11px var(--font-mono); text-transform: uppercase; z-index: 1; }
.thumb-art .ta-mark i { width: 10px; height: 10px; background: var(--ink); border-radius: 0; box-shadow: none; }
.thumb-art .ta-big { font-weight: 500; z-index: 1; }
.thumb-art .ta-lines { gap: 8px; z-index: 1; }
.thumb-art .ta-lines span { border: 0; border-radius: 0; padding: 0; font-size: 11px; background: transparent; }
.thumb-art .ta-lines span + span::before { content: '/'; opacity: .5; margin-right: 8px; }
.gcard:nth-child(4n + 2) .thumb-art { background: #f3c8b9; }
.gcard:nth-child(4n + 3) .thumb-art { background: #d5e7e4; }
.gcard:nth-child(4n + 4) .thumb-art { background: #e8dada; }
.filter-row { gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.filter-row label, .filter-row a { display: inline-flex; align-items: center; min-height: 48px; border: 0; border-radius: 0; background: transparent; padding: 10px 20px; font-size: 14px; }
.cat-input:checked + label { background: var(--ink); }
.plan { box-shadow: none; border-color: var(--line); }
.plan.featured { z-index: 1; }
.plan-top, .plan-features { padding: 28px; }
.plan-name { letter-spacing: -.04em; }
.plan-price { font-weight: 500; letter-spacing: -.07em; }
.plan-features { background: transparent; }
.plan-flag { top: -27px; left: -1px; min-height: 26px; padding: 5px 12px; font: 11px var(--font-mono); }
.price-rows { border-inline: 0; border-radius: 0; box-shadow: none; background: transparent; }
.price-row { padding: 26px 0; }
.price-row-name { font-size: 20px; font-weight: 500; }
.band { padding: 56px; border: 0; }
.band.center { text-align: left; }
.band.center .cta-row { justify-content: flex-start; }
.band h2 { max-width: 16ch; font-size: clamp(38px,5vw,70px); }
.band.ink .btn-secondary { color: var(--paper); border-color: #ffffff66; background: transparent; }
.split { gap: 56px; align-items: center; margin-top: 88px; }
.arch-diagram { gap: 14px; }
.arch-step { border-radius: 0; box-shadow: none; }
.course-howto { gap: 0; }
.course-howto li { border-radius: 0; padding: 22px; }
.course-howto li::before { border-radius: 0; background: var(--highlight); color: var(--ink); }
.course-module { margin-top: 52px; }
.course-module-head { border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.course-progress { padding: 28px; }
.course-progress-bar { border-radius: 0; }
.course-progress-bar span { border-radius: 0; }
nav.toc { background: var(--paper-2); border: 0; border-left: 2px solid var(--ink); border-radius: 0; }
.content pre { border-radius: 3px; border-color: var(--line); }
.content :is(th,td) { padding: 14px 16px; }
.faq details { border-radius: 0; border-inline: 0; }
.faq summary { min-height: 56px; padding-block: 16px; }
footer.site { border: 0; margin: 0; }
.footer-panel { max-width: var(--page-w); margin: auto; padding: 70px 40px 24px; border: 0; border-radius: 0; background: transparent; }
.footer-grid { grid-template-columns: 1.7fr repeat(4,1fr); gap: 32px; }
footer.site .brand-mark .bars i { background: var(--highlight); }
.footer-brand p { color: #cfc3b5; max-width: 28ch; font-size: 15px; line-height: 1.7; }
.footer-col .footer-heading { font: 11px var(--font-mono); color: #cfc3b5; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { min-height: 36px; display: inline-flex; align-items: center; font-size: 13px; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-wordmark { letter-spacing: -.085em; line-height: .92; font-weight: 500; border-bottom: 1px solid #ffffff26; padding: 50px 0 30px; user-select: none; white-space: nowrap; }
.footer-base { border: 0; padding-top: 22px; font-size: 11px; }

/* Homepage: a typographic opening, an interactive build sheet, then a
   deliberate sequence of larger demonstrations and compact catalog rows. */
main.content.merit-home { padding-top: 0; }
.merit-home > * { max-width: none !important; }
.home-meta { display: flex; align-items: center; border-bottom: 1px solid var(--line); font: 11px var(--font-mono); }
.home-meta span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 8px; }
.home-meta a { text-decoration: none; }
.home-hero { position: relative; }
.home-hero h1 { font-size: clamp(56px,7.7vw,112px) !important; max-width: 1100px; line-height: .98 !important; letter-spacing: -.075em !important; margin: 0 0 40px !important; font-weight: 500 !important; text-wrap: initial !important; }
.home-hero h1 .hero-line:last-child { color: #a83d2b; }
.hero-inline-mark { display: inline-flex; gap: 6px; height: .62em; width: .72em; margin: 0 .12em 0 .06em; align-items: end; vertical-align: .02em; }
.hero-inline-mark i { width: 25%; background: var(--highlight); display: block; transform-origin: bottom; animation: merit-rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero-inline-mark i:nth-child(1) { height: 40%; }
.hero-inline-mark i:nth-child(2) { height: 70%; animation-delay: .1s; }
.hero-inline-mark i:nth-child(3) { height: 100%; animation-delay: .2s; }
.home-hero-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.home-hero-bottom p { font-size: 17px; color: var(--muted); margin: 0; max-width: 40ch; }
.home-hero-bottom .cta-row { justify-content: flex-end; margin: 0; }
.home-hero .btn-primary::after { content: '↗'; font-size: 18px; padding-left: 12px; }
.build-sheet { display: grid; grid-template-columns: .83fr 1.17fr; margin: 26px 0 0; overflow: hidden; }
.build-info { display: flex; flex-direction: column; align-items: flex-start; padding: 42px; }
.eyebrow { font: 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.build-info h2 { font-size: clamp(38px,4.5vw,64px) !important; margin: 42px 0 20px; max-width: 9ch; }
.build-info p { font-size: 15px; max-width: 36ch; margin: 0 0 30px; }
.build-info .build-number { font-size: 100px; letter-spacing: -.09em; line-height: 1; margin-top: auto; }
.build-number small { font: 11px var(--font-mono); letter-spacing: .02em; margin-left: 15px; }
.build-workspace { color: var(--paper); min-width: 0; padding: 28px 32px; display: flex; flex-direction: column; }
.workspace-head { display: flex; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid #ffffff24; font: 11px var(--font-mono); letter-spacing: .04em; color: #ddd3c7; }
.day-tabs { display: flex; gap: 0; border-bottom: 1px solid #ffffff24; margin: 20px 0 26px; }
.day-tabs button { color: #cfc3b5; padding: 13px 19px; background: transparent; border: 0; border-bottom: 2px solid transparent; font: 11px var(--font-mono); letter-spacing: .04em; cursor: pointer; }
.build-panel { flex: 1; }
.build-panel h3 { font-size: clamp(22px,2.3vw,31px); color: var(--paper); margin: 0 0 20px; max-width: 26ch; line-height: 1.2; }
.build-panel p { font-size: 13px; color: #ddd3c7; max-width: 60ch; margin-bottom: 24px; }
.artifact-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid #ffffff24; margin: 20px 0 24px; }
.artifact-lines div { padding: 14px; font: 11px var(--font-mono); }
.artifact-lines strong { display: block; margin-top: 8px; font-weight: 400; }
.build-panel a { color: var(--paper); display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-size: 13px; border-bottom: 1px solid #ffffff55; }
.build-panel a::after { content: '↗'; margin-left: 18px; }
.build-foot { border-top: 1px solid #ffffff24; display: flex; justify-content: space-between; padding-top: 20px; margin-top: 24px; font: 11px var(--font-mono); color: #ddd3c7; }
.build-progress { display: flex; gap: 3px; align-items: center; }
.build-progress i { width: 8px; height: 14px; background: #ffffff24; }
.home-proof { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); font: 11px var(--font-mono); }
.home-proof span::before { content: '✓'; margin-right: 8px; }
.home-section { padding: 76px 0 0; }
.home-section-heading { display: grid; gap: 20px; border-top: 1px solid var(--line); padding: 24px 0 32px; }
.home-section-heading > span { font: 11px var(--font-mono); color: var(--muted); }
.home-section-heading h2 { margin: 0; font-size: clamp(30px,3.7vw,52px); }
.home-section-heading a { min-height: 44px; display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.academy-feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.academy-art { min-height: 340px; display: flex; flex-direction: column; overflow: hidden; }
.academy-art > span { font: 11px var(--font-mono); }
.academy-art strong { line-height: 1.02; letter-spacing: -.07em; font-weight: 500; margin: 28px 0 30px; }
.academy-modules { display: flex; gap: 8px; margin-top: auto; }
.academy-modules span { width: 33.33%; border-top: 2px solid var(--ink); padding-top: 13px; font: 11px var(--font-mono); }
.academy-modules b { display: block; font-size: 26px; letter-spacing: -.06em; margin-bottom: 10px; }
.academy-copy h3 { margin: 18px 0; }
.academy-copy p { color: var(--muted); font-size: 16px; max-width: 44ch; }
.academy-copy .home-price { font: 12px var(--font-mono); color: var(--ink); padding: 16px 0; }
.home-products { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.home-products .gthumb { aspect-ratio: 16 / 10; }
.home-products .gcard-title { font-size: 26px; }
.home-products .gcard-desc { font-size: 15px; }
.service-index { border-bottom: 1px solid var(--line); }
.service-index-row { display: grid; grid-template-columns: 64px 1fr 1.3fr auto; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding: 25px 0; }
.service-index-row > span { font: 11px var(--font-mono); color: var(--muted); }
.service-index-row h3 { margin: 0; }
.service-index-row h3 a { text-decoration: none; }
.service-index-row p { margin: 0; font-size: 14px; color: var(--muted); }
.service-index-row > a { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; font: 12px var(--font-mono); text-decoration: none; }
.home-services-intro { margin: -7px 0 26px; font-size: 16px; max-width: 75ch; color: var(--muted); }
.resource-index { display: grid; grid-template-columns: repeat(3,1fr); }
.resource-index a { display: block; text-decoration: none; border-top: 2px solid var(--ink); min-height: 130px; }
.resource-index h3 { margin: 0 0 14px; }
.resource-index p { font-size: 14px; color: var(--muted); margin: 0; max-width: 32ch; }
.home-closing { margin-top: 64px; position: relative; }
.home-closing h2 { color: var(--paper); max-width: 12ch; font-size: clamp(46px,6vw,88px); margin: 24px 0; }
.home-closing .cta-row { margin-top: 24px; }
.home-linkline { border-bottom: 1px solid var(--line); padding: 22px 0; display: flex; flex-wrap: wrap; }
.home-linkline a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.home-linkline a:hover { text-decoration: underline; }
.reveal-ready { animation: merit-reveal .7s cubic-bezier(.16,1,.3,1) both; }
@keyframes merit-reveal { from { opacity: .55; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes merit-rise { from { transform: scaleY(.12); } to { transform: scaleY(1); } }
@media(max-width:1100px) {
  .site-inner { padding-inline: 24px; }
  .menu-button { display: inline-flex; align-items: center; gap: 16px; }
  nav.site-nav { display: flex; position: fixed; inset: var(--topbar-h) 0 0; height: calc(100dvh - var(--topbar-h)); overflow-y: auto; background: var(--paper); padding: 24px; flex-direction: column; align-items: stretch; gap: 4px; }
  .enhanced-nav nav.site-nav { display: none; }
  .enhanced-nav.menu-open nav.site-nav { display: flex; }
  .nav-trigger, .nav-link { font-size: 20px; height: auto; padding: 14px 0; text-transform: none; font-family: var(--font-display); color: var(--ink); }
  .nav-trigger::after { display: inline-block; margin-left: auto; }
  .nav-panel { position: static; padding: 0 0 16px; }
  .nav-panel-inner { border: 0; background: transparent; padding: 0 12px; box-shadow: none; display: flex; gap: 12px; flex-wrap: wrap; }
  .nav-col { flex: 1; min-width: 200px; }
  .nav-item { font-size: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .nav-actions { margin: 16px 0 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .nav-actions a.nav-cta { flex: 1; justify-content: center; }
  .nav-search { font-size: 14px; width: auto; padding: 0 12px; gap: 8px; }
  .nav-search::before, .nav-search::after { display: none; }
  .footer-grid { grid-template-columns: repeat(4,1fr); }
  .footer-brand { grid-column: 1/-1; }
  .home-hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .home-hero-bottom .cta-row { justify-content: flex-start; }
  .build-sheet { grid-template-columns: .85fr 1.15fr; }
  .build-info { padding: 30px; }
  .build-workspace { padding: 26px; }
  .academy-feature { gap: 32px; }
  .service-index-row { grid-template-columns: 38px 1fr auto; gap: 18px; }
  .service-index-row p { grid-column: 2; grid-row: 2; }
  .service-index-row > a { grid-column: 3; grid-row: 1/3; }
}
@media(max-width:720px) {
  .site-inner { padding-inline: 20px; }
  main.content, main.content.wide { padding: 32px 20px 70px; }
  main.content h1 { font-size: clamp(38px,9.8vw,60px); }
  main.content .lead { font-size: 17px; }
  .page-trail { padding: 20px 20px 0; }
  .home-meta { font-size: 10px; gap: 15px; padding: 20px 0; }
  .home-meta > span { display: none; }
  .home-hero h1 { font-size: clamp(43px,10.1vw,73px) !important; letter-spacing: -.07em !important; margin-bottom: 28px !important; }
  .hero-inline-mark { gap: 3px; }
  .home-hero-bottom p { font-size: 15px; }
  .home-hero-bottom .cta-row { align-items: stretch; }
  .home-hero-bottom .btn-primary { flex: 1 1 220px; justify-content: center; }
  .build-sheet { grid-template-columns: 1fr; margin-top: 12px; }
  .build-info { padding: 26px; }
  .build-info h2 { font-size: 43px !important; max-width: 14ch; margin: 30px 0 20px; }
  .build-info .build-number { font-size: 64px; }
  .build-info p { margin-bottom: 22px; }
  .build-workspace { padding: 24px; min-height: 450px; }
  .build-panel h3 { font-size: 26px; }
  .day-tabs button { padding-inline: 16px; }
  .home-proof { justify-content: flex-start; line-height: 1.6; }
  .home-proof span { flex: 1 1 130px; }
  .home-section-heading { padding: 22px 0 26px; }
  .home-section-heading h2 { font-size: 32px; }
  .home-section-heading a { margin-top: -12px; }
  .academy-feature, .home-products { grid-template-columns: 1fr; gap: 28px; }
  .academy-art { min-height: 315px; }
  .academy-copy h3 { font-size: 30px; }
  .home-products .gcard-title { font-size: 24px; }
  .service-index-row { grid-template-columns: 24px 1fr; padding: 24px 0; gap: 8px 12px; }
  .service-index-row h3 { font-size: 21px; }
  .service-index-row > a { grid-row: 3; grid-column: 2; justify-content: space-between; }
  .resource-index { grid-template-columns: 1fr; }
  .resource-index a { min-height: 0; }
  .resource-index h3 { font-size: 26px; }
  .home-closing { margin-top: 44px; }
  .home-closing h2 { font-size: 52px; }
  .home-closing .cta-row { flex-direction: column; }
  .home-closing .btn { justify-content: center; }
  .home-linkline { gap: 0 24px; }
  .gallery, .gallery.four { grid-template-columns: 1fr; gap: 32px; }
  .gcard-body { gap: 12px; }
  .plans, .plans.four, .plans.three { grid-template-columns: 1fr; gap: 28px; }
  .plan + .plan { border-left-width: 1px; }
  .plan-flag { top: -26px; }
  .band { padding: 30px 25px; margin-top: 56px; }
  .band h2 { font-size: 40px; }
  .split { gap: 28px; margin-top: 56px; }
  .hero-wash { gap: 28px; margin: 0 0 40px; padding: 0; }
  .hero-terminal { padding: 26px; }
  .hero-preview { min-height: 200px; }
  .section-head { margin-top: 56px; }
  .grid { grid-template-columns: 1fr; }
  .grid a.tile { min-height: 130px; padding: 22px; }
  .footer-panel { padding: 48px 20px 22px; }
  .footer-grid { grid-template-columns: repeat(2,1fr); gap: 32px 20px; }
  .footer-col a { min-height: 44px; }
  .footer-wordmark { padding-top: 35px; }
  .footer-base { flex-direction: column; gap: 12px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { header.site, footer.site, .page-trail { display: none; } main.content { max-width: none; padding: 0; } .reveal-ready { animation: none; } }
/* Category selectors mirror Products.SECTIONS, including multiword keys. */
.catalog:has(#cat-done-for-you:checked) .gcard:not([data-cat="done-for-you"]),
.catalog:has(#cat-agents:checked) .gcard:not([data-cat="agents"]),
.catalog:has(#cat-software:checked) .gcard:not([data-cat="software"]),
.catalog:has(#cat-consulting:checked) .gcard:not([data-cat="consulting"]) { display: none; }
.page-tabs { display: flex; flex-wrap: wrap; gap: 0 28px; border-block: 1px solid var(--line); margin: 35px 0 48px; padding: 5px 0; max-width: none !important; }
.page-tabs a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font: 12px var(--font-mono); }
.page-tabs a:hover { text-decoration: underline; }
/* Clears the sticky header plus the section sub-nav (measured 123px at desktop
   widths, 184px at 390px), so an in-page link never lands under them. */
[id] { scroll-margin-top: 140px; }
@media (max-width: 700px) { [id] { scroll-margin-top: 200px; } }
.gcard:has(a:hover) .gthumb { transform: translateY(-4px); }
.gcard:has(a:hover) .ta-big { transform: translateX(4px); }
.ta-big { transition: transform .3s var(--ease-out); }
@media(max-width:1100px) {
  html:not(.enhanced-nav) header.site { position: relative; height: auto; }
  html:not(.enhanced-nav) .site-inner { flex-wrap: wrap; }
  html:not(.enhanced-nav) nav.site-nav { position: static; height: auto; width: 100%; flex-basis: 100%; }
}
/* Header control specificity also overrides site.js's original shell rules. */
nav.site-nav .nav-actions .nav-search { font-size: 0; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; flex: none; }
nav.site-nav .nav-actions .nav-search kbd { display: none; }
nav.site-nav .nav-actions .nav-search::before { margin: 0; }
@media(max-width:1100px) { nav.site-nav .nav-actions .nav-search { width: auto; padding: 0 12px; font-size: 14px; } }
.academy-opening { display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center; margin-bottom:64px; }
main.content .academy-opening h1 { font-size:clamp(42px,4.7vw,68px); }
.academy-opening .badge { margin-bottom:22px; }
.academy-syllabus { padding:36px; }
.academy-syllabus > strong { display:block; font-size:46px; line-height:1.04; font-weight:500; letter-spacing:-.06em; padding:36px 0; }
.academy-syllabus ol { padding:0; margin:0; list-style:none; }
.academy-syllabus li { padding:20px 0; border-top:1px solid #ffffff2b; }
.academy-syllabus li span { display:block; color:#ddd3c7; font:11px var(--font-mono); margin-bottom:10px; }
.academy-syllabus li b { font-weight:400; font-size:19px; }
.academy-syllabus > a { display:flex; justify-content:space-between; align-items:center; min-height:44px; margin-top:15px; text-decoration:none; }
.challenge-entry { margin-block:30px; }
.challenge-summary { display:flex; gap:36px; padding:28px 0; margin:32px 0 40px; border-block:1px solid var(--line); }
.challenge-summary span { display:flex; align-items:baseline; gap:12px; font:11px var(--font-mono); text-transform:uppercase; }
.challenge-summary b { font:500 44px var(--font-display); letter-spacing:-.06em; }
@media(max-width:900px) { .academy-opening { grid-template-columns:1fr; gap:32px; } }
@media(max-width:720px) { .challenge-summary { gap:22px; flex-wrap:wrap; } .challenge-summary span { flex-direction:column; gap:4px; font-size:10px; } .challenge-summary b { font-size:38px; } .academy-syllabus { padding:28px; } .academy-syllabus > strong { font-size:44px; } }
.academy-syllabus strong, .academy-syllabus b { color:var(--paper); }
nav.site-nav .nav-actions .nav-search { position:relative; }
nav.site-nav .nav-actions .nav-search::before { position:absolute; left:12px; top:12px; }
nav.site-nav .nav-actions .nav-search::after { position:absolute; left:25px; top:27px; transform:rotate(45deg); }
/* Major destinations each get a deliberate opening, within one palette. */
main.content[data-page="products"] .hero-center { margin:0 0 48px; }
main.content[data-page="pricing"] .hero-center { padding:48px; margin-bottom:40px; }
main.content[data-page="pricing"] .hero-center h1 { max-width:17ch; }
main.content[data-page="services"] .hero-center { padding:48px; margin-bottom:40px; }
main.content[data-page="services"] .hero-center h1 { max-width:19ch; }
.content > .kicker { color:var(--cobalt); }
@media(max-width:720px) {
 .home-hero h1 { grid-row:1; }
 .home-hero-bottom { grid-row:2; }
 .hero-poster-deck { grid-row:3; }
}
main.merit-home .home-closing h2 { line-height:1; letter-spacing:-.065em; }
/* Product-led presentation, informed by Apple Developer's clear hierarchy,
   local navigation and large, inspectable product demonstrations. */
:root { --topbar-h:64px; --radius:18px; --radius-sm:10px; --radius-lg:24px;
}
html { background:#fff; }
body { letter-spacing:-.015em; }
header.site { border-bottom:1px solid #d2d2d755; }
.site-inner { gap:40px; }
.brand-mark { font-size:21px; letter-spacing:-.055em; }
.brand-mark .bars i:nth-child(1) { background:#9bc4bf; }
.brand-mark .bars i:nth-child(2) { background:#7eb3ac; }
.brand-mark .bars i:nth-child(3) { background:#5d9e95; }
nav.site-nav { gap:8px; }
.nav-trigger,.nav-link { font-size:12px; padding-inline:9px; }
.nav-panel-inner { border-radius:18px; background:#fffffffa; border-color:#e8edec; box-shadow:0 24px 60px #1d1d1f18; padding:28px; }
.nav-item { border-radius:8px; }
.nav-item:hover { background:#f4f8f8; color:#20544f; }
nav.site-nav a.nav-signin { font-size:12px; }
nav.site-nav a.nav-cta { background:var(--cobalt); color:#fff; border:0; border-radius:30px; font-size:12px; padding-inline:18px; }
.nav-group[open] .nav-trigger { background:#f5f7f7; border-radius:8px; }
.local-navigation { position:sticky; top:64px; backdrop-filter:blur(20px); z-index:15; border-bottom:1px solid var(--line); }
.local-navigation > div { max-width:1392px; margin:auto; padding:0 40px; min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.local-navigation .local-title { font-size:19px; font-weight:600; letter-spacing:-.035em; text-decoration:none; }
.local-navigation > div > div { display:flex; align-items:center; gap:28px; }
.local-navigation > div > div a { font-size:12px; text-decoration:none; display:inline-flex; min-height:44px; align-items:center; }
.local-navigation a:hover { color:var(--cobalt); }
.page-trail { font-size:10px; padding-top:24px; color:#707078; }
main.content h1 { font-size:clamp(42px,5vw,72px); letter-spacing:-.055em; font-weight:600; line-height:1.05; }
main.content h2 { font-weight:600; letter-spacing:-.045em; }
.btn { border-radius:30px; padding:12px 23px; font-size:14px; }
.btn-primary { color:#fff; background:var(--cobalt); border-color:var(--cobalt); }
.btn-primary:hover,.btn-primary:focus-visible { background:#174b46; color:#fff; border-color:#174b46; }
.btn-secondary { color:var(--cobalt); border-color:var(--cobalt); background:transparent; }
.btn-secondary:hover { color:#174b46; background:#f4f8f8; }
.home-meta { justify-content:center; padding:13px 0; font-family:var(--font-body); font-size:12px; letter-spacing:0; text-transform:none; margin:0 -40px; border:0; }
.home-meta > span { display:none; }
.home-meta a { color:var(--cobalt); }
.home-meta a::after { content:' ›'; padding-left:6px; }
.home-hero { display:block; text-align:center; margin:0; padding:66px 0 42px; overflow:visible; }
.hero-eyebrow { font-size:21px; font-weight:600; letter-spacing:-.025em; display:block; margin-bottom:19px; }
main.merit-home .home-hero h1 { font-size:clamp(60px,7.2vw,100px) !important; line-height:.98 !important; letter-spacing:-.065em !important; font-weight:600 !important; color:var(--ink); margin:0 auto 24px !important; max-width:1050px; }
.home-hero h1 .hero-line { display:inline; animation:none; }
.hero-spectrum { display:inline; background-clip:text; -webkit-background-clip:text; white-space:nowrap; }
.hero-statement { font-size:clamp(24px,3.1vw,42px); font-weight:500; line-height:1.2 !important; color:var(--ink); letter-spacing:-.045em; margin:0 auto 18px; }
.hero-description { font-size:18px; color:var(--muted); max-width:55ch; margin:0 auto 26px; }
.home-hero > .cta-row { justify-content:center; margin-top:25px; gap:24px; }
.hero-text-link { color:var(--cobalt); text-decoration:none; display:inline-flex; min-height:44px; align-items:center; gap:8px; font-size:16px; }
.hero-text-link:hover { text-decoration:underline; }
.hero-text-link span { font-size:25px; }
.product-stage { padding:10px 70px 72px; margin:0 -40px 20px; }
.stage-controls { display:flex; justify-content:center; gap:4px; border:1px solid #e3eeed; border-radius:32px; padding:5px; width:max-content; max-width:100%; margin:0 auto 32px; }
.stage-controls button { border:0; background:transparent; border-radius:25px; padding:10px 22px; font-size:13px; cursor:pointer; white-space:nowrap; }
.stage-controls button[aria-selected="true"] { box-shadow:0 2px 8px #32555015; }
.stage-surface { border:1px solid #fff; border-radius:24px; overflow:hidden; box-shadow:0 3px 7px #2b494506,0 25px 70px #3d68621a; }
.stage-panel { padding:34px 40px 24px; min-height:510px; }
.stage-course-head { display:flex; justify-content:space-between; gap:40px; padding-bottom:28px; }
.stage-overline { display:block; font-size:11px; font-weight:500; letter-spacing:.07em; color:#6a807d; }
main.merit-home .stage-course-head h2 { font-size:46px; line-height:1.04; letter-spacing:-.055em; margin:12px 0 0; }
.stage-course-number { font-size:112px; line-height:1; letter-spacing:-.075em; font-weight:600; }
.stage-course-number > span { display:block; font-size:9px; font-family:var(--font-mono); color:#65a59c; letter-spacing:.13em; text-align:center; }
.stage-lessons { border-top:1px solid #e7f0ef; }
.stage-lessons > a { display:grid; grid-template-columns:48px 1fr 30px; align-items:center; gap:18px; padding:18px 4px; border-bottom:1px solid #e7f0ef; text-decoration:none; transition:background .2s,padding .2s; }
.stage-lessons > a:hover { background:#f9fbfb; padding-inline:12px; }
.stage-day { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; font-size:15px; font-weight:500; }
.stage-lessons .stage-overline { font-size:9px; letter-spacing:.06em; }
.stage-lessons h3 { margin:5px 0 0; font-size:17px; font-weight:500; letter-spacing:-.025em; }
.stage-lesson-arrow { font-size:20px; color:var(--cobalt); }
.stage-caption { display:flex; justify-content:space-between; gap:20px; margin:18px 0 0; font-size:11px; color:#6a807d; align-items:center; }
.stage-caption a { color:var(--cobalt); min-height:32px; display:inline-flex; align-items:center; text-decoration:none; }
.stage-operator { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; padding:45px; background:#fbfdfd; }
main.merit-home .stage-operator h2 { font-size:48px; margin:20px 0; }
.stage-operator p { font-size:15px; color:var(--muted); max-width:35ch; }
.stage-link { color:var(--cobalt); min-height:44px; display:inline-flex; align-items:center; font-size:14px; text-decoration:none; }
.stage-terminal { color:#fff; padding:30px; border-radius:16px; box-shadow:0 16px 30px #1f35321a; }
.stage-terminal .stage-overline { color:#b4d3cf; font-size:9px; }
.stage-terminal .terminal-command { font:16px var(--font-mono); padding-block:20px; }
.stage-terminal dl { margin:0; }
.stage-terminal dl > div { border-top:1px solid #ffffff20; padding:15px 0; }
.stage-terminal dt { color:#c3dbd8; font-size:12px; margin-bottom:7px; }
.stage-terminal dd { margin:0; font-size:26px; font-weight:500; letter-spacing:-.04em; }
.stage-terminal dd small { color:#b4d3cf; font-size:13px; margin-left:10px; }
.stage-terminal > p:last-child { padding-top:12px; }
.stage-measure { background:#f9fbfb; padding-bottom:18px; }
.stage-measure-head { display:flex; align-items:center; justify-content:space-between; padding-bottom:22px; }
main.merit-home .stage-measure h2 { font-size:36px; margin:10px 0 0; }
.stage-measure img { display:block; width:100%; height:auto; border-radius:12px; border:1px solid #e5eeed; }
.challenge-preview-heading { text-align:center; padding-top:48px; }
.challenge-preview-heading .eyebrow { color:var(--cobalt); }
main.merit-home .challenge-preview-heading h2 { font-size:48px; margin:15px 0 32px; }
.build-sheet { border-radius:24px; box-shadow:0 10px 40px #29444009; border:1px solid #e8eeed; margin-top:0; }
.build-info { background:#f4f8f8; color:#27423f; }
.build-info h2,.build-info p { color:#27423f; }
.build-info .eyebrow { color:#5f9b93; }
.build-workspace { background:#213734; }
.workspace-status { color:#c9dfdc; }
.day-tabs button[aria-selected='true'] { color:#d5e7e4; border-color:#b6d4d0; }
.artifact-lines { border-color:#ffffff20; border-radius:10px; overflow:hidden; background:#ffffff20; }
.artifact-lines div { background:#213734; }
.artifact-lines strong { color:#d5e7e4; }
.build-progress i:nth-child(-n+3) { background:#bcd8d4; }
.home-proof { justify-content:center; gap:28px; border:0; color:#73737c; padding:24px 0; font-family:var(--font-body); font-size:11px; }
.home-proof span::before { color:#6e9f98; }
.home-section { padding-top:90px; }
.home-section-heading { border:0; grid-template-columns:1fr auto; align-items:end; padding-bottom:32px; }
.home-section-heading > span { display:none; }
main.merit-home .home-section-heading h2 { font-size:48px; font-weight:600; letter-spacing:-.05em; }
.home-section-heading a { color:var(--cobalt); font-size:14px; }
.academy-art { border-radius:24px; padding:40px; }
.academy-art strong { font-size:62px; }
.academy-modules span { border-color:#b2d1cd; }
.academy-copy h3 { font-size:36px; font-weight:600; }
.home-linkline { border-color:#ecf0ef; gap:20px 30px; }
.home-linkline a { color:var(--cobalt); font-size:13px; }
.home-products .gcard { border:1px solid #e8edec; border-radius:22px; overflow:hidden; background:#fff; box-shadow:0 8px 30px #26403d07; }
.home-products .gcard-body { padding:24px; }
.home-products .gcard:first-child .thumb-art { color:#284440; }
.gthumb { border-radius:20px; background:#f5f7f7; }
.home-products .gthumb { border-radius:0; }
.thumb-art { background:#f6f9f9; padding:24px; gap:16px; }
.thumb-art::after { display:none; }
.thumb-art .ta-big { font-size:29px; line-height:1.08; max-width:18ch; letter-spacing:-.045em; }
.ta-app-icon { width:66px; height:66px; display:grid; place-items:center; border-radius:18px; color:#fff; box-shadow:inset 0 1px 1px #ffffff66,0 8px 18px #4b807924; }
.ta-app-icon svg { width:38px; height:38px; }
.thumb-art .ta-mark { font-family:var(--font-body); font-size:11px; letter-spacing:0; }
.thumb-art .ta-mark i { display:none; }
.thumb-art .ta-lines { font-size:10px; }
.thumb-art .ta-lines span { font:10px var(--font-body); color:#5c807b; }
.home-products .gcard:first-child .thumb-art .ta-big { font-size:42px; }
.gcard-title { text-decoration:none; font-size:21px; }
.gcard-title:hover { text-decoration:underline; }
.gcard-price { border-radius:24px; border-color:var(--cobalt); color:var(--cobalt); font-size:12px; }
.service-index { border:1px solid #e8edec; border-radius:22px; padding-inline:26px; background:#fbfcfc; }
.service-index-row:first-child { border-top:0; }
.service-index-row h3 { font-size:21px; font-weight:500; }
.service-index-row > a { color:var(--cobalt); }
.resource-index { gap:20px; }
.resource-index a { border:0; border-radius:20px; padding:28px; }
.resource-index a:hover { background:#f4f8f8; }
.resource-index h3 { font-size:25px; font-weight:600; }
.home-closing { background:#f5f7f7; color:var(--ink); border-radius:26px; margin:65px 0 0; padding:58px; text-align:center; }
.home-closing .eyebrow { color:var(--cobalt); }
main.merit-home .home-closing h2 { color:var(--ink); font-size:64px; max-width:14ch; margin:24px auto; }
.home-closing p { color:var(--muted); }
.home-closing .cta-row { justify-content:center; }
.home-closing .btn-primary { color:#fff; background:var(--cobalt); border-color:var(--cobalt); }
.home-closing .btn-secondary { color:var(--cobalt); border-color:var(--cobalt); }
main.content[data-page="products"] .hero-center { color:var(--ink); border-radius:24px; text-align:center; padding:54px; }
main.content[data-page="products"] .hero-center h1 { color:var(--ink); margin-inline:auto; max-width:20ch; }
main.content[data-page="products"] .hero-center .lead { color:var(--muted); margin-inline:auto; }
main.content[data-page="products"] .hero-center .cta-row { justify-content:center; }
main.content[data-page="products"] .hero-center .btn-primary { color:#fff; background:var(--cobalt); border-color:var(--cobalt); }
main.content[data-page="products"] .hero-center .btn-secondary { color:var(--cobalt); border-color:var(--cobalt); }
main.content[data-page="pricing"] .hero-center { border-radius:24px; text-align:center; }
main.content[data-page="pricing"] .hero-center :is(h1,.lead) { margin-inline:auto; }
main.content[data-page="services"] .hero-center { color:var(--ink); border-radius:24px; }
main.content[data-page="services"] .hero-center h1 { color:var(--ink); }
main.content[data-page="services"] .hero-center :is(.lead,.kicker) { color:var(--muted); }
main.content[data-page="services"] .hero-center .btn-primary { background:var(--cobalt); color:#fff; border-color:var(--cobalt); }
main.content[data-page="services"] .hero-center .btn-secondary { border-color:var(--cobalt); color:var(--cobalt); }
.plan { border-radius:20px; overflow:visible; }
.plans { gap:18px; }
.plan + .plan { border-left-width:1px; }
.plan.featured { box-shadow:0 6px 24px #4b7f780d; }
.plan.featured .plan-top { border-radius:20px 20px 0 0; }
.plan-flag { border-radius:12px; background:var(--cobalt); color:#fff; }
.plan-name { font-size:21px; font-weight:600; }
.plan-price { font-size:48px; }
.plan-features { border-radius:0 0 20px 20px; }
.band { border-radius:24px; }
.band.ink { background:#213936; }
.band.ink .btn-primary { background:#fff; color:#205b56; }
.academy-syllabus { border-radius:24px; color:#27423f; }
.academy-syllabus :is(strong,b) { color:#27423f; }
.academy-syllabus li { border-color:#d2e5e2; }
.academy-syllabus :is(.eyebrow,li span) { color:#5a9991; }
.academy-syllabus > a { color:var(--cobalt); }
.course-progress { background:#f4f8f8; color:#27423f; border-radius:18px; }
.course-progress :is(.course-progress-note,.tile-meta) { color:#5a9991; }
.course-progress .btn { background:var(--cobalt); color:#fff; }
.course-progress-bar { background:#ddebe9; }
.course-progress-bar span { background:#7db2ab; }
footer.site { background:#f5f7f7; color:#55555e; }
footer.site :is(.brand-mark,.footer-col a,.footer-base p) { color:#55555e; }
footer.site .brand-mark .bars i:nth-child(n) { background:#76afa7; }
.footer-brand p,.footer-col .footer-heading { color:#666671; }
.footer-brand .btn { border-color:#a5a5b0; color:#55555e; }
.footer-wordmark { color:#d8dfde; border-color:#dde3e2; font-size:clamp(64px,13vw,180px); padding-top:28px; }
.footer-base p { color:#777780 !important; }
@media(min-width:1101px) { .gallery.four { grid-template-columns:repeat(4,minmax(0,1fr)); } .gallery.four .gcard:first-child { grid-column:auto; } }
@media(max-width:1100px) {
 .nav-trigger,.nav-link { font-size:20px; padding-block:14px; }
 .local-navigation > div { padding-inline:24px; }
 .stage-operator { gap:25px; }
 .stage-panel { padding-inline:28px; }
}
@media(max-width:720px) {
 :root { --topbar-h:64px; }
 .local-navigation > div { padding:12px 20px; flex-wrap:wrap; gap:7px; }
 .local-navigation .local-title { font-size:17px; }
 .local-navigation > div > div { gap:18px; overflow:auto; width:100%; white-space:nowrap; }
 .local-navigation > div > div a { font-size:11px; min-height:32px; }
 .home-meta { margin-inline:-20px; }
 .home-hero { margin:0; padding:42px 0 32px; }
 main.merit-home .home-hero h1 { font-size:clamp(48px,12vw,72px) !important; letter-spacing:-.06em !important; line-height:1.03 !important; }
 .home-hero h1 .hero-line { display:block; }
 .hero-spectrum { display:block; }
 .hero-eyebrow { font-size:17px; margin-bottom:18px; }
 .hero-statement { font-size:27px; max-width:20ch; line-height:1.1 !important; margin-bottom:17px; }
 .hero-description { font-size:15px; max-width:34ch; }
 .home-hero > .cta-row { flex-direction:column; align-items:center; gap:10px; }
 .home-hero .btn-primary { font-size:13px; }
 .product-stage { margin:0 -20px; padding:0 20px 42px; }
 .stage-controls { gap:0; padding:4px; margin-bottom:22px; }
 .stage-controls button { padding:10px 12px; font-size:10px; }
 .stage-surface { border-radius:20px; }
 .stage-panel { padding:24px 20px 20px; min-height:540px; }
 .stage-course-head { padding-bottom:22px; gap:16px; }
 main.merit-home .stage-course-head h2 { font-size:31px; }
 .stage-course-number { font-size:70px; }
 .stage-course-number > span { font-size:6px; letter-spacing:.04em; }
 .stage-overline { font-size:9px; }
 .stage-lessons > a { grid-template-columns:30px 1fr 15px; gap:12px; padding-block:18px; }
 .stage-day { width:30px; height:30px; font-size:12px; border-radius:9px; }
 .stage-lessons h3 { font-size:14px; line-height:1.25; }
 .stage-lessons .stage-overline { font-size:8px; }
 .stage-caption { flex-wrap:wrap; gap:5px; font-size:10px; }
 .stage-operator { grid-template-columns:1fr; gap:24px; }
 main.merit-home .stage-operator h2 { font-size:36px; margin-block:14px; }
 .stage-terminal { padding:24px; }
 .stage-measure-head { flex-wrap:wrap; }
 main.merit-home .stage-measure h2 { font-size:30px; }
 .stage-measure img { margin-top:20px; }
 .stage-measure { min-height:540px; }
 main.merit-home .challenge-preview-heading h2 { font-size:36px; }
 .build-sheet { border-radius:20px; }
 .home-proof { gap:10px; padding-block:20px; }
 .home-section { padding-top:54px; }
 .home-section-heading { grid-template-columns:1fr; gap:8px; padding-bottom:22px; }
 main.merit-home .home-section-heading h2 { font-size:34px; }
 .home-section-heading a { grid-column:1; }
 .academy-art { border-radius:20px; padding:28px; }
 .academy-art strong { font-size:44px; }
 .home-products .gcard:first-child .thumb-art .ta-big { font-size:33px; }
 .home-products .gthumb { aspect-ratio:1.2; }
 .service-index { padding-inline:20px; border-radius:20px; }
 .resource-index { gap:14px; }
 .resource-index a { padding:26px; }
 .home-closing { margin:42px 0 0; padding:34px 24px; }
 main.merit-home .home-closing h2 { font-size:42px; }
 .home-closing .cta-row { align-items:stretch; }
 main.content[data-page="products"] .hero-center,main.content[data-page="pricing"] .hero-center,main.content[data-page="services"] .hero-center { margin-inline:0; padding:32px 24px; border-radius:20px; }
 .gallery,.gallery.four { gap:32px; }
 .gthumb { aspect-ratio:1.25; }
 .thumb-art .ta-big { font-size:32px; }
 .plans { gap:32px; }
 .footer-wordmark { font-size:17vw; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }

nav.site-nav a.nav-cta { min-height:44px; }
.stage-caption a,.footer-col a,.local-navigation > div > div a { min-height:44px; }
.stage-panel:not([hidden]) { animation:stage-resolve .4s cubic-bezier(.16,1,.3,1) both; }
@keyframes stage-resolve { from { opacity:.6; transform:translateY(8px); } to { opacity:1; transform:none; } }
@media(prefers-reduced-motion:reduce) { .stage-panel:not([hidden]) { animation:none; } }

.ta-app-icon { flex:none; }
.gallery .gthumb { aspect-ratio:1.05; }
@media(min-width:1101px) { .gallery.four .gcard:first-child .gthumb { aspect-ratio:1.05; } }

html:not(.enhanced-nav) .menu-button { display:none; }

/* Merit palette: petrol, copper, ivory. Component layout is unchanged. */
:root { --paper:#f8f5ef; --paper-2:#efeee7; --paper-3:#e2e5dd; --ink:#202a27; --muted:#62695f; --muted-2:#6d7369; --line:#dbded4; --line-strong:#b8c1b4; --brand:#202a27; --brand-soft:#445b51; --card:#fffdf8; --header-bg:#f8f5eff0; --highlight:#b9603c; --highlight-ink:#fffdf8; --cobalt:#205b56; --vermilion:#b9603c; --focus:#205b56; }
html,body { background:var(--paper); }
header.site { background:var(--header-bg); }
.home-hero { background:var(--paper); }
.hero-spectrum { background:none; color:#a65334; -webkit-text-fill-color:#a65334; }
.hero-eyebrow,.hero-statement { color:var(--ink); }
.home-meta { background:#efeee7; }
.product-stage { background:linear-gradient(180deg,#f8f5ef 5%,#eef2e9 55%,#e9efe7 82%,#f8f5ef 100%); }
.stage-controls { background:#eaece5; border-color:#dce2d7; }
.stage-controls button { color:#626e61; }
.stage-controls button[aria-selected="true"] { background:#fffdf8; color:#284a40; }
.stage-surface { background:#fffdf8; border-color:#fffdf8; }
.stage-panel { background:#fffdf8; }
.stage-operator,.stage-measure { background:#f3f4ed; }
.stage-course-head h2 span { color:#4f7869; }
.stage-course-number { color:#d9e5d8; }
.stage-day { background:#e8f0e5; color:#416d58; }
.stage-terminal { background:#203934; }
.stage-terminal .terminal-command { color:#c3d9bd; }
.stage-terminal .stage-overline,.stage-terminal dt,.stage-terminal dd small { color:#c6d3bc; }
.academy-art { background:linear-gradient(145deg,#e7eee1,#edf0e4); }
.academy-art strong { color:#42684f; }
.ta-app-icon { background:linear-gradient(145deg,#698e7f,#285c50); }
.gcard:nth-child(4n+1) .thumb-art { background:#eaf0e4; }
.gcard:nth-child(4n+2) .thumb-art { background:#f0e5db; }
.gcard:nth-child(4n+3) .thumb-art { background:#e5eae0; }
.gcard:nth-child(4n+4) .thumb-art { background:#eeeae1; }
.gcard:nth-child(4n+2) .ta-app-icon { background:linear-gradient(145deg,#c38b67,#a15d3d); }
.gcard:nth-child(4n+3) .ta-app-icon { background:linear-gradient(145deg,#879377,#5e7053); }
.gcard:nth-child(4n+4) .ta-app-icon { background:linear-gradient(145deg,#7a9690,#46675f); }
.home-products .gcard:first-child .thumb-art { background:#e6eee3; }
.home-products .gcard:first-child .thumb-art .ta-big,.home-products .gcard:first-child .thumb-art .ta-mark { color:#2a493b; }
.home-closing,footer.site { background:#efeee7; }
.local-navigation { background:#f8f5efeb; }
main.content[data-page="products"] .hero-center { background:#ebf0e6; }
main.content[data-page="pricing"] .hero-center { background:#f2e9df; }
main.content[data-page="services"] .hero-center { background:#ebeee4; }
.plan { background:#fffdf8; }
.plan.featured .plan-top { background:#e7eee1; }
.plan.featured { border-color:#a7bba5; }
.resource-index a { background:#efeee7; }
.academy-syllabus { background:#e7eee1; }
.brand-mark .bars i:nth-child(n), footer.site .brand-mark .bars i:nth-child(n) { background:#a65b3b; }

/* Merit identity: the folded M and copper full stop. */
:root { --font-display:"Manrope","Geist",system-ui,sans-serif; }
.merit-symbol { display:block; flex:none; width:34px; height:34px; }
.brand-mark { gap:11px; }
.merit-wordmark { display:inline-flex; align-items:baseline; gap:3px; font-family:var(--font-display); font-size:30px; font-weight:800; letter-spacing:-.07em; line-height:1; color:var(--ink); }
.merit-ac { align-self:flex-start; padding:4px 0 0 4px; font-size:10px; font-weight:700; letter-spacing:.06em; }
.merit-wordmark sup { font:9px var(--font-body); letter-spacing:0; margin:2px 0 0 1px; }
.home-hero h1 { font-family:var(--font-display); font-weight:700 !important; letter-spacing:-.065em !important; }
.hero-eyebrow { display:inline-flex; align-items:center; gap:10px; font-family:var(--font-mono); font-size:11px; letter-spacing:.15em; text-transform:uppercase; }
.hero-eyebrow::before { content:""; width:22px; height:22px; background:url('/brand/merit-symbol.svg') center/contain no-repeat; }
.academy-art { position:relative; overflow:hidden; }
.academy-art::after { content:""; position:absolute; width:290px; height:290px; right:-70px; bottom:-60px; background:url('/brand/merit-symbol.svg') center/contain no-repeat; opacity:.08; pointer-events:none; }
.academy-art > * { position:relative; z-index:1; }
.ta-app-icon { border-radius:12px 12px 12px 2px; background:#205b56; box-shadow:none; }
.gcard:nth-child(4n+2) .ta-app-icon { background:#a65334; }
.gcard:nth-child(4n+3) .ta-app-icon { background:#536a54; }
.gcard:nth-child(4n+4) .ta-app-icon { background:#3f6664; }
.footer-wordmark { display:flex; align-items:baseline; gap:.03em; font-family:var(--font-display); font-weight:800; color:#205b56; letter-spacing:-.085em; }
.footer-wordmark > span { font-size:.17em; align-self:flex-start; letter-spacing:0; padding-top:.25em; }
.footer-wordmark > i { display:block; width:.085em; height:.085em; background:#b9603c; border-radius:50%; margin-left:.02em; }
footer.site .brand-mark .merit-wordmark { color:#205b56; }
@media(max-width:700px) { .merit-wordmark { font-size:27px; } .merit-symbol { width:30px; height:30px; } }

@media(min-width:701px) { .home-hero .hero-spectrum { margin-left:.16em; } }

/* The full product range is visible before the course detail. */
.home-range { display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-block:1px solid var(--line); margin:0 0 24px; text-align:left; }
.home-range > a { display:flex; flex-direction:column; gap:12px; padding:25px 24px; color:var(--ink); text-decoration:none; border-right:1px solid var(--line); min-width:0; }
.home-range > a:last-child { border-right:0; }
.home-range > a:hover { background:var(--paper-2); }
.home-range a > span { font:11px var(--font-mono); letter-spacing:.08em; color:var(--cobalt); }
.home-range strong { font:600 19px var(--font-display); letter-spacing:-.04em; }
.home-range small { font-size:12px; color:var(--muted); line-height:1.6; }
.software-directory { display:grid; grid-template-columns:repeat(3,1fr); gap:0; border-top:1px solid var(--line); margin-top:40px; }
.software-directory > a { padding:28px 24px; border-bottom:1px solid var(--line); text-decoration:none; color:var(--ink); display:flex; flex-direction:column; }
.software-directory > a:hover { background:var(--paper-2); }
.software-directory h3 { margin:0 0 12px; font-size:23px; display:flex; justify-content:space-between; }
.software-directory h3 > span { color:var(--cobalt); font-size:18px; }
.software-directory p { font-size:14px; color:var(--muted); line-height:1.65; margin:0 0 20px; }
.software-price { margin-top:auto; font:12px var(--font-mono); color:var(--cobalt); display:flex; justify-content:space-between; gap:12px; }
.software-price > span { font:12px var(--font-body); }
#home-software { scroll-margin-top:90px; }
@media(max-width:900px) { .home-range { grid-template-columns:repeat(2,1fr); } .home-range > a:nth-child(2) { border-right:0; } .software-directory { grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px) { .home-range > a { padding:20px 12px; gap:10px; } .home-range strong { font-size:17px; } .home-range small { font-size:11px; } .software-directory { grid-template-columns:1fr; } .software-directory > a { padding:24px 10px; } }

@media(max-width:700px) { .home-hero .hero-spectrum { white-space:normal; } }

/* Final identity: an outlined editorial wordmark, with no adjacent emblem. */
.merit-logo { display:block; width:116px; height:34px; object-fit:contain; }
.brand-mark { min-height:44px; }
.hero-eyebrow::before { display:none; }
.footer-wordmark { padding-top:48px; }
.footer-wordmark > img { width:min(75%,850px); height:auto; display:block; }
@media(max-width:700px) { .merit-logo { width:108px; height:32px; } .footer-wordmark > img { width:90%; } }

.merit-logo { width:154px; height:36px; }
@media(max-width:700px) { .merit-logo { width:142px; height:34px; } }

.merit-logo { width:184px; height:38px; }
@media(max-width:700px) { .merit-logo { width:168px; height:36px; } }

/* Product facts panel (src/content/components/ProductFacts.jsx): one row per
   pre-purchase question, label column + answer, stacked on phones. */
.product-facts { margin: 72px 0 56px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.product-facts h2 { margin: 0 0 8px; }
.product-facts .facts-note { color: var(--muted); font-size: 15px; max-width: 68ch; margin: 0 0 20px; }
.product-facts dl { margin: 0; }
.product-facts dl > div { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 6px 32px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.product-facts dt { font: 600 12px/1.6 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.product-facts dd { margin: 0; max-width: 68ch; }
.product-facts dd ul { margin: 0; padding-left: 1.1em; }
.product-facts dd li + li { margin-top: 4px; }
@media (max-width: 700px) {
  .product-facts { margin: 48px 0 40px; }
  .product-facts dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
}

/* Side-by-side comparison table (pages/TrainingCompare.jsx). Tracks are columns;
   below ~800px the table scrolls inside its own frame, never the page. */
.compare-table-wrap { overflow-x: auto; margin: 16px 0 40px; border: 1px solid var(--line); border-radius: 3px; }
.compare-table-wrap:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
main.content table.compare-table { display: table; width: 100%; min-width: 760px; max-width: none; border-collapse: collapse; font-size: 15px; margin: 0; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare-table thead th { font-weight: 600; background: var(--paper-2); }
.compare-table tbody th { font: 600 12px/1.6 var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); width: 150px; }
.compare-table tr:last-child > * { border-bottom: 0; }

/* Catalog by need (pages/Products.jsx + data/needs.js): CSS-only filter, one
   rule per need id. Browsers without :has() show every card. */
.catalog:has(#cat-finish:checked) .gcard:not([data-cat="finish"]),
.catalog:has(#cat-books:checked) .gcard:not([data-cat="books"]),
.catalog:has(#cat-spend:checked) .gcard:not([data-cat="spend"]),
.catalog:has(#cat-secure:checked) .gcard:not([data-cat="secure"]),
.catalog:has(#cat-learn:checked) .gcard:not([data-cat="learn"]),
.catalog:has(#cat-marketing:checked) .gcard:not([data-cat="marketing"]),
.catalog:has(#cat-tools:checked) .gcard:not([data-cat="tools"]) { display: none; }
.catalog-key { font-size: 14px; color: var(--muted); max-width: 80ch; margin: 16px 0 24px; }

/* How an offer runs, and its evidence-based status (data/offerTags.js). */
.gcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.gcard-tags span { font: 600 11px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 3px; padding: 2px 6px; }
.gcard-tags .is-status { color: #8a3b12; border-color: rgba(138, 59, 18, .35); background: rgba(194, 65, 12, .06); }

/* Homepage: Finish band and needs grid (pages/Home.jsx). */
.home-finish { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin: 48px 0 0; padding: 40px; background: var(--card, #fffdf8); border: 1px solid var(--line-strong); border-left: 4px solid var(--vermilion); border-radius: 3px; }
.home-finish .eyebrow { color: #8a3b12; }
.home-finish h2 { margin: 10px 0 12px; font-size: clamp(28px, 3.2vw, 44px); max-width: 20ch; }
.home-finish p { margin: 0; max-width: 62ch; color: var(--ink); }
.home-finish .cta-row { margin: 0; justify-content: flex-end; }
.home-needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.home-need { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.home-need h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.home-need p { margin: 0; font-size: 14px; color: var(--muted); }
.home-need ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.home-need li a { display: inline-flex; min-height: 32px; align-items: center; color: var(--cobalt); font-weight: 600; }
.home-need-more { margin-top: auto; font: 12px var(--font-mono); color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .home-finish { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; }
  .home-finish .cta-row { justify-content: flex-start; flex-direction: column; align-items: stretch; }
  .home-finish .btn { justify-content: center; }
}
