/* bus.fatehi.dev, x5 Business: the Editorial prototype (design/bus-styles/bus-editorial/, chosen 2026-11-21, spec sp-9),
   an annual-report page in the family's dark palette. Most of it is type; one fine chip-line figure per section draws
   itself as it comes into view. Tokens, buttons, the header and its brand line as edu.fatehi.dev
   (learning-site/src/atlas.css), the palette and the metals as the main page's chip (main-site/src/chip.js, K). */
:root {
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 40px; --s8: 64px;
  --ctl: 40px; --ctl-sm: 32px; --radius: 6px; --radius-lg: 8px;
  --frame: #2A3352; --edge: #48527A; --edge-hi: #6E78A0; --hover: #FFFFFF0D; --press: #FFFFFF17;
  --gold: #D8B05A; --gold-dim: #D8B05A40; --copper: #B8713A; --copper-hi: #EDB07A;
  --archivo: 'Archivo', 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 72px);   /* edu's: the header's edges, and the page's, sit where they sit on every subdomain */
  --page-max: 1480px;
  --strip-h: 56px;
  --col-num: 200px; --col-fig: 320px; --col-gap: clamp(40px, 5vw, 88px);
}
html { scroll-padding-block-start: calc(var(--strip-h) + var(--s5)); scrollbar-gutter: stable; }   /* a jump to a section lands below the sticky header */
.wrap { max-width: var(--page-max); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }   /* the site mark's sprite (was an inline style) */
/* a superscript or subscript (x5) keeps the line's height */
sup, sub { position: relative; font-size: 0.72em; line-height: 0; vertical-align: baseline; }
sup { top: -0.48em; }
sub { top: 0.26em; }

/* the header, edu.fatehi.dev's: the family's wordmark (to fatehi.dev), then this site with its variable on the main
   page's figure (x5), then the navigation. Sticky on a wide screen */
.strip { position: relative; z-index: 20; background: var(--night); border-block-end: 0; box-shadow: inset 0 -1px 0 var(--rule); }
.strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s2) var(--s5); min-height: var(--strip-h); flex-wrap: wrap; padding-block: var(--s2); }
.brand { display: flex; align-items: center; gap: var(--s3); margin: 0; flex: none; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--moon); text-decoration: none; font-size: 1.15rem; font-weight: 420; }
.wordmark svg { width: 28px; height: 28px; flex: none; color: var(--sodium); }
.site { color: var(--moon); text-decoration: none; font-size: 1.15rem; font-weight: 420; padding-inline-start: var(--s3); border-inline-start: 1px solid var(--rule); line-height: 1.3; }
.site i { color: var(--sodium); font-weight: 400; }
.site sub { font-size: 0.62em; top: 0.3em; color: var(--sodium); margin-inline-end: 6px; }
.wordmark:hover, .site:hover { color: #fff; }
.strip nav { flex: none; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s2); font-family: var(--sans); font-size: 0.95rem; }
.strip nav a { --mx: var(--s3); position: relative; display: inline-flex; align-items: center; min-height: 40px; padding-block: 0; padding-inline: var(--mx); color: var(--haze); text-decoration: none; box-shadow: none; transition: color 0.15s; }
.strip nav li:last-child a { padding-inline-end: 0; --mr: 0px; }
.strip nav a::after { content: ''; position: absolute; inset-inline: var(--mx) var(--mr, var(--mx)); inset-block-end: 0; height: 2px; border-radius: 2px 2px 0 0; background: transparent; transition: background-color 0.15s; }
.strip nav a:focus-visible { outline: none; }
.strip nav a:focus-visible::before { content: ''; position: absolute; inset-block: 50%; inset-inline: calc(var(--mx) - 6px) calc(var(--mr, var(--mx)) - 6px); height: 32px; transform: translateY(-50%); border: 2px solid var(--sodium); border-radius: var(--radius); }
.strip nav a:hover { color: var(--moon); }
.strip nav a[aria-current="page"] { color: var(--moon); box-shadow: none; }
.strip nav a[aria-current="page"]::after { background: var(--sodium); }
@media (min-width: 721px) {
  .strip { position: sticky; top: 0; height: var(--strip-h); }
  .strip .wrap { flex-wrap: nowrap; height: 100%; min-height: 0; padding-block: 0; }
  .strip nav a { min-height: var(--strip-h); }   /* the current page's mark sits on the header's edge */
  .strip nav a:hover:not([aria-current])::after { background: #3A4466; }
}
@media (max-width: 720px) {
  .strip .wrap { gap: 0 var(--s4); padding-block: var(--s2) 0; }
  .strip ul { gap: 0 var(--s5); font-size: 0.9rem; }
  .strip nav a { --mx: 0px; min-height: 44px; }
}

/* captions: small monospace capitals */
.cap { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--haze); margin: 0; }
.cap .sep { color: var(--gold); padding-inline: 0.4em; }

/* buttons: edu.fatehi.dev's */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--ctl); padding: 0 var(--s4); border: 1px solid var(--edge); border-radius: var(--radius); background: #FFFFFF06; box-shadow: inset 0 1px 0 #FFFFFF0A; color: var(--moon); text-decoration: none; font-family: var(--sans); font-size: 0.875rem; font-weight: 500; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; }
.btn:hover { border-color: var(--edge-hi); background: var(--hover); color: #fff; }
.btn:active { background: var(--press); box-shadow: none; }
.btn.pri { border-color: var(--sodium); background: var(--sodium); box-shadow: inset 0 1px 0 #FFFFFF59; color: #0B1021; font-weight: 600; }
.btn.pri:hover { border-color: #F6E8C3; background: #F6E8C3; box-shadow: 0 0 18px #E9D49C40, inset 0 1px 0 #FFFFFF73; color: #0B1021; }
.btn .arr { font-size: 1.05em; line-height: 1; transition: transform 0.15s; }
.btn:hover .arr { transform: translateX(2px); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s6) 0 0; }

/* the opening: a large headline, one statement, a table of contents */
.hero { padding-block: clamp(72px, 12vh, 136px) clamp(56px, 9vh, 104px); }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 6.1rem); font-weight: 290; line-height: 1.02; letter-spacing: -0.015em; font-variation-settings: 'opsz' 72; margin: 0; max-width: 15ch; }
/* the statement and the contents start where the sections' text starts: one grid down the page */
.hero .statement { margin-inline-start: calc(var(--col-num) + var(--col-gap)); }
.statement { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.55; font-weight: 340; color: #C9CEDD; max-width: 40ch; margin: var(--s6) 0 0; }
.contents { list-style: none; margin: clamp(56px, 9vh, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block-start: 1px solid var(--gold-dim); }
.contents li + li { border-inline-start: 1px solid var(--rule); }
.contents a { position: relative; display: grid; gap: 6px; padding: var(--s5) var(--s5) var(--s4); color: var(--moon); text-decoration: none; height: 100%; }
.contents li:first-child a { padding-inline-start: 0; }
.contents a::before { content: ''; position: absolute; inset-inline: 0; top: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.contents li:first-child a::before { inset-inline-start: 0; }
.contents a:hover::before, .contents a:focus-visible::before { transform: scaleX(1); }
.contents .no { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--gold); }
.contents .t { font-size: var(--t-xl); font-weight: 340; line-height: 1.2; }
.contents .d { font-family: var(--sans); font-size: 0.9rem; color: var(--haze); line-height: 1.45; }
.contents a:hover .t { color: #fff; }

/* the three offers: number, text, figure */
.offer, .contact { position: relative; padding-block: clamp(72px, 11vh, 128px); border-block-start: 1px solid var(--gold-dim); }
.offer::before, .contact::before { content: ''; position: absolute; top: -1px; inset-inline-start: var(--gutter); width: 72px; height: 1px; background: var(--gold); }
.grid { display: grid; grid-template-columns: var(--col-num) minmax(0, 1fr) var(--col-fig); gap: 0 var(--col-gap); align-items: start; }
.contact .grid { grid-template-columns: var(--col-num) minmax(0, 1fr); }
.num { display: grid; gap: var(--s3); align-content: start; padding-block-start: 6px; }
.num .n { font-size: 4.25rem; line-height: 0.9; font-weight: 260; color: var(--gold); font-variant-numeric: lining-nums; font-variation-settings: 'opsz' 72; }
.only-narrow { display: none; }
.body { max-width: 42rem; }
.body h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 310; line-height: 1.12; letter-spacing: -0.005em; font-variation-settings: 'opsz' 60; }
.lead { font-size: var(--t-lg); line-height: 1.55; font-weight: 340; color: #C9CEDD; margin: var(--s5) 0 0; max-width: 38ch; }

.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s7); margin: var(--s7) 0 0; }
.areas > div { padding-block: var(--s4) var(--s4); border-block-start: 1px solid var(--rule); }
.areas dt { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--moon); }
.areas dd { margin: 4px 0 0; font-size: 0.98rem; line-height: 1.55; color: var(--haze); }

.facts { margin: var(--s7) 0 0; }
.facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--s4); padding-block: var(--s3); border-block-start: 1px solid var(--rule); }
.facts > div:last-child { border-block-end: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--haze); padding-block-start: 4px; }
.facts dd { margin: 0; font-size: 1rem; line-height: 1.5; }

h3.sub { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--haze); margin: var(--s7) 0 0; display: flex; gap: 12px; align-items: baseline; }
.steps { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
.steps li { font-family: var(--sans); font-size: 0.92rem; line-height: 1.45; color: var(--haze); border-block-start: 1px solid var(--gold-dim); padding-block-start: var(--s3); }
.steps .no { display: block; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; margin-block-end: 4px; }

.note { margin: var(--s6) 0 0; font-family: var(--sans); font-size: 0.9rem; color: var(--haze); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.note .k { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--haze); opacity: 0.8; min-width: 4.5rem; }

/* the contact: the page's one call to act */
.contact h2 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); font-weight: 290; letter-spacing: -0.01em; font-variation-settings: 'opsz' 72; }
.contact .num { padding-block-start: 18px; }

/* the figures: fine chip lines in the main page's metals */
.trace { position: sticky; top: calc(var(--strip-h) + var(--s6)); }
.trace svg { display: block; width: 100%; height: auto; overflow: visible; --p: 0; }
.trace figcaption { margin-block-start: var(--s3); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; line-height: 1.5; color: var(--haze); border-block-start: 1px solid var(--rule); padding-block-start: var(--s2); }
.trace .fig { color: var(--gold); margin-inline-end: 0.6em; letter-spacing: 0.1em; text-transform: uppercase; }

.trace .w { fill: none; stroke-width: 1.3; stroke-linecap: square; stroke-linejoin: miter; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p)); transition: stroke 0.4s; }
.trace .w.cu { stroke: #8A5530; }
.trace .w.al { stroke: #4C5363; stroke-width: 0.9; }
.trace .w.au { stroke: #8C7236; stroke-width: 0.8; }
.trace .blk rect { fill: #0C1019; stroke: #3A4256; stroke-width: 1; transition: stroke 0.4s; }
.trace .blk rect.in, .trace .die rect.in { fill: none; stroke: #1B2130; }
.trace .blk.mine rect { stroke: #8A5530; }
.trace .die rect { fill: #0A0D15; stroke: #2E3546; }
.trace .pkg rect { fill: none; stroke: #2A3142; stroke-width: 1; stroke-dasharray: 3 3; }
.trace .leads rect { fill: #3A3220; }
.trace .pads rect { fill: #B8954A; stroke: #6B5424; stroke-width: 1; transition: fill 0.4s; }
.trace .vias circle { fill: #07090F; stroke: #8A5530; stroke-width: 1.2; }
.trace .corners path { fill: none; stroke: var(--gold); stroke-width: 1; }
.trace text { font-family: var(--archivo); }
.trace .plate { font-size: 12.5px; font-weight: 600; letter-spacing: 0.24em; fill: #DCE1E8; text-anchor: middle; font-stretch: 112%; }
.trace .mplate, .trace .vplate text { font-size: 10px; font-weight: 600; letter-spacing: 0.2em; fill: #A3ABB8; text-anchor: middle; dominant-baseline: middle; font-stretch: 112%; }
.trace .mplate.s3 { fill: var(--gold); }
.trace .tag { font-family: var(--mono); font-size: 10px; fill: #7F88A6; text-anchor: middle; letter-spacing: 0.02em; }
.trace .tag.start { text-anchor: start; }
/* the parts appear in four steps as the lines reach them */
.trace .s1 { opacity: clamp(0, calc(var(--p) * 5), 1); }
.trace .s2 { opacity: clamp(0, calc(var(--p) * 5 - 1), 1); }
.trace .s3 { opacity: clamp(0, calc(var(--p) * 5 - 2.5), 1); }
.trace .s4 { opacity: clamp(0, calc(var(--p) * 5 - 3.8), 1); }
/* pointed at: the copper brightens, the pads light, signals run (bus.js) */
.on .trace .w.cu { stroke: var(--copper); }
.on .trace .w.au { stroke: var(--gold); }
.on .trace .pads rect { fill: var(--gold); }
.on .trace .blk rect:not(.in) { stroke: #4E586E; }
.on .trace .blk.mine rect { stroke: var(--copper-hi); }
.trace .sig circle { pointer-events: none; }

/* the Magnephy feature page */
.back { display: inline-flex; gap: 8px; align-items: center; font-family: var(--sans); font-size: 0.9rem; color: var(--haze); text-decoration: none; }
.back:hover { color: var(--moon); }
.feature-head { padding-block: clamp(56px, 9vh, 104px) clamp(40px, 6vh, 72px); }
.feature-head h1 { font-size: clamp(3rem, 6.6vw, 6.4rem); font-weight: 290; line-height: 1; letter-spacing: -0.015em; font-variation-settings: 'opsz' 72; margin: var(--s5) 0 0; }
.feature-head .deck { font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.45; font-weight: 320; font-style: italic; color: #C9CEDD; max-width: 32ch; margin: var(--s5) 0 0; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: var(--s6) 0 0; padding-block-start: var(--s3); border-block-start: 1px solid var(--gold-dim); max-width: 40rem; }
.byline span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--haze); }
.byline b { color: var(--moon); font-weight: 500; }
.wide-fig { padding-block: var(--s7) clamp(56px, 8vh, 96px); }
.wide-fig .trace { position: static; }
.wide-fig .trace svg { max-height: 300px; }
.wide-fig .trace figcaption { max-width: none; }
.article { padding-block: clamp(56px, 8vh, 96px); border-block-start: 1px solid var(--gold-dim); position: relative; }
.article::before { content: ''; position: absolute; top: -1px; inset-inline-start: var(--gutter); width: 72px; height: 1px; background: var(--gold); }
.part { display: grid; grid-template-columns: var(--col-num) minmax(0, 40rem); gap: var(--s4) var(--col-gap); padding-block: var(--s6); }
.part + .part { border-block-start: 1px solid var(--rule); }
.part h2 { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--haze); padding-block-start: 8px; line-height: 1.5; }
.part h2 .no { display: block; color: var(--gold); margin-block-end: 6px; }
.part p { font-size: 1.12rem; line-height: 1.65; }
.part p.note { font-size: 0.9rem; line-height: 1.5; }   /* a side note in a part: as small as the notes on the home page */
.part .src { font-family: var(--sans); font-size: 0.85rem; color: var(--haze); }
.pull { margin: 0; padding-block: clamp(56px, 9vh, 112px); border-block-start: 1px solid var(--gold-dim); text-align: center; }
.pull blockquote { margin: 0 auto; max-width: 24ch; font-size: clamp(1.9rem, 3.8vw, 3.3rem); line-height: 1.18; font-weight: 290; font-style: italic; font-variation-settings: 'opsz' 72; }
.pull figcaption { margin: var(--s5) auto 0; max-width: none; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.pubs { list-style: none; margin: var(--s3) 0 0; padding: 0; }
.pubs li { padding-block: var(--s2); border-block-start: 1px solid var(--rule); font-size: 1rem; line-height: 1.5; }
.pubs .where { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--haze); }

svg.tall { display: none; }
.feat-cap { margin-block-start: var(--s6); }

/* tablets: the figure goes under the text */
@media (max-width: 1100px) {
  .hero .statement { margin-inline-start: 0; }
  :root { --col-num: 120px; }
  .grid { grid-template-columns: var(--col-num) minmax(0, 1fr); }
  .trace { position: static; grid-column: 2; max-width: 360px; margin-block-start: var(--s7); }
  .num .n { font-size: 3.4rem; }
}
/* phones: one column; the number joins the caption above the heading */
@media (max-width: 720px) {
  .grid, .contact .grid { grid-template-columns: minmax(0, 1fr); }
  .num { display: none; }
  .only-narrow { display: block; margin-block-end: var(--s4); }
  .contents { grid-template-columns: minmax(0, 1fr); }
  .contents li + li { border-inline-start: 0; border-block-start: 1px solid var(--rule); }
  .contents a { padding-inline: 0; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 2px 8px; padding-block: var(--s4); }
  .contents .no { grid-row: span 2; padding-block-start: 0.55em; }
  .contents .t { font-size: var(--t-lg); }
  .areas { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  svg.wide { display: none; } svg.tall { display: block; }
  .wide-fig { padding-block-start: 0; }
  .wide-fig .trace { max-width: 300px; margin-inline: auto; }
  .wide-fig .trace svg { max-height: none; }
  .hero .statement, .hero .contents { margin-inline-start: 0; }
  .trace { grid-column: 1; max-width: 300px; margin-inline: auto; width: 100%; }
  .lead { font-size: 1.15rem; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .part { grid-template-columns: minmax(0, 1fr); padding-block: var(--s5); }
  .part p { font-size: 1.05rem; }
  .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arr, .contents a::before, .trace .w, .trace .blk rect, .trace .pads rect { transition: none; }
}
@media print {
  .trace, .actions { display: none; }
  .grid { grid-template-columns: 30mm minmax(0, 1fr); }
}
