/* Website type: Newsreader for display, Helvetica Neue (Inter where it is not installed) for text, and the EDX
   monospace kept for small labels, chips and the terminal. Load after technical.css. The set is chosen by
   html[data-type="e"] in each page's markup.
   The hero canvas and its slack readout still read --type-display / --type-text (EDX), so the animation is unchanged. */

/* ---------- Type sets ---------- */
html[data-type]{--font-mono:"EDX Display",ui-monospace,SFMono-Regular,Menlo,monospace;--display-scale:1;--display-weight:560;--display-tracking:-.03em;--statement-tracking:-.022em}
html[data-type=e]{--font-display:"Newsreader",Georgia,"Times New Roman",serif;--font-text:"Helvetica Neue","Inter",Helvetica,Arial,sans-serif;--display-weight:400;--display-tracking:-.03em;--statement-tracking:-.012em;--display-scale:1.1}

/* Reading scale for proportional type (the monospace scale ran smaller). */
html[data-type] body.home{--reading-size:clamp(1.0625rem,.98rem + .3vw,1.25rem);--section-size:clamp(1.75rem,1.15rem + 1.7vw,2.75rem);font-family:var(--font-text);font-weight:400;font-optical-sizing:auto;text-rendering:optimizeLegibility}

/* Display face for headings and statements; text face for reading, navigation and buttons. */
html[data-type] body.home :is(h1,h2,h3,.statement,.lede-display){font-family:var(--font-display);font-weight:var(--display-weight);letter-spacing:var(--display-tracking)}
html[data-type] body.home :is(p,li,input,textarea,nav,footer,.lede,.kicker,.menu-toggle,.text-link,.button,.announce){font-family:var(--font-text);text-transform:none}
html[data-type] body.home :is(nav a,button[type=submit],.field label,.form-card h3){font-family:var(--font-text);text-transform:none}
/* Statements are often <p>: keep them on the display face after the reading rule above. */
html[data-type] body.home :is(.statement,.lede-display){font-family:var(--font-display)}
/* Monospace stays only for small uppercase labels, chips, "Details +", the terminal door and the ">_ Terminal" nav item. */
html[data-type] body.home :is(.section-name,.mono-label,.eyebrow,.chip,.chips>*,.details-toggle,.term-door,nav a.nav-term){font-family:var(--font-mono)}
html[data-type] body.home:not(.content-page) .section-label h2{font-family:var(--font-mono)}
html[data-type] body.home .statement{text-wrap:balance}

/* ---------- Announcement bar ---------- */
body.home .announce{position:relative;z-index:0;display:block;padding:.55rem clamp(1rem,4vw,2rem);background:color-mix(in srgb,var(--accent) 9%,var(--bg));border-bottom:1px solid color-mix(in srgb,var(--accent) 20%,var(--bg));color:var(--accent-ink);font-size:.8125rem;line-height:1.45;text-align:center;text-decoration:none;text-wrap:balance;transition:background .15s ease}
body.home .announce>span:first-child{font-weight:600}
body.home .announce b{font-weight:600}
body.home .announce:hover{background:color-mix(in srgb,var(--accent) 15%,var(--bg))}
body.home .announce:hover b{text-decoration:underline;text-underline-offset:.2em}
body.home .announce:focus-visible{outline-offset:-3px}

/* ---------- Sticky header ----------
   The header (logo, nav, ">_ Terminal", "Talk to us", theme toggle, Menu) stays at the top on every page.
   position:sticky keeps its slot in the flow, so nothing jumps when it sticks; the announcement bar above scrolls away.
   home.js adds .is-stuck once the header reaches the top and writes --edx-header-h for scroll-padding.
   The full-bleed bar is a pseudo-element: a backdrop-filter on the header itself would become the containing block
   of the fixed mobile menu and break it. */
html{scroll-padding-top:calc(var(--edx-header-h,4.875rem) + .75rem)}
body.home{overflow-x:clip}
html[data-type] body.home header{position:sticky;top:0;z-index:50;padding-block:clamp(.75rem,1.1vw,1rem)}
body.home header::before{content:"";position:absolute;z-index:-1;top:0;bottom:-1px;left:calc(50% - 50vw);right:calc(50% - 50vw);background:color-mix(in srgb,var(--bg) 94%,transparent);-webkit-backdrop-filter:saturate(1.2) blur(20px);backdrop-filter:saturate(1.2) blur(20px);border-bottom:1px solid var(--rule);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility 0s linear .2s}
body.home header.is-stuck::before{opacity:1;visibility:visible;transition:opacity .2s ease}
html[data-theme=dark] body.home header::before{background:color-mix(in srgb,var(--bg) 92%,transparent)}
/* Anchor targets already get scroll-padding; drop the old extra offset. */
body.home.content-page .text-section:target{scroll-margin-top:0}
@media(prefers-reduced-motion:reduce){body.home header::before{transition:none}}

/* ---------- Header and navigation ---------- */
html[data-type] body.home nav a{font-size:.9375rem;font-weight:450;letter-spacing:-.003em;text-transform:none;color:var(--ink-soft)}
html[data-type] body.home nav a:hover{color:var(--ink)}
html[data-type] body.home nav a[aria-current=page]{color:var(--ink);font-weight:560}
html[data-type] body.home nav a[aria-current=page]::before{content:none}
html[data-type] body.home nav a.nav-term{font-size:.8125rem;font-weight:500;letter-spacing:0;color:var(--ink)}
html[data-type] body.home nav a.nav-term b{margin-right:.45ch;font-weight:600;color:var(--accent)}
html[data-type] body.home nav a.nav-term:hover{color:var(--accent-ink)}
html[data-type] body.home nav a.nav-cta{align-self:center;min-height:2.5rem;padding:0 1.15rem;border-radius:999px;background:var(--ink);color:var(--bg);font-weight:500;transition:background .15s ease,color .15s ease}
html[data-type] body.home nav a.nav-cta:hover{background:var(--accent);color:#0b0c0b}
/* On Talk to us the pill is the current page: it carries the accent square the other tabs show. */
html[data-type] body.home :is(nav a.nav-cta,.header-cta)[aria-current=page]::after{content:"";display:inline-block;flex:none;width:.4rem;height:.4rem;margin-left:.55rem;vertical-align:middle;background:var(--accent)}
html[data-type] body.home :is(nav a.nav-cta,.header-cta)[aria-current=page]:hover::after{background:#0b0c0b}
html[data-type] body.home .menu-toggle{font-size:.9375rem;font-weight:500;letter-spacing:0}
/* The theme toggle is round, like the pills beside it (technical.css squared it). */
html[data-type] body.home .theme-toggle{border-radius:999px;min-width:44px;justify-content:center}
/* "Talk to us" stays in the bar at every width: in the nav from 960px, as a compact pill beside Menu below that.
   It sits above the open menu overlay (like the logo and Menu), so the overlay drops its own copy. */
.header-cta{display:none}
@media(max-width:60rem){
 html[data-type] body.home .header-cta{display:inline-flex;align-items:center;justify-content:center;order:-1;flex:none;min-height:2.25rem;padding:0 .9rem;border-radius:999px;background:var(--ink);color:var(--bg);font:500 .875rem/1 var(--font-text);letter-spacing:0;text-decoration:none;white-space:nowrap;position:relative;z-index:30;transition:background .15s ease,color .15s ease}
 html[data-type] body.home .header-cta:hover{background:var(--accent);color:#0b0c0b}
 html[data-type] body.home .header-cta:focus-visible{outline-offset:3px}
 html[data-type] body.home nav a.nav-cta{display:none}
}
/* Small phones: Menu keeps only its sign (the word stays as its accessible name) so logo, pill, toggle and Menu fit. */
@media(max-width:23.4375rem){
 html[data-type] body.home .header-controls{gap:12px}
 html[data-type] body.home .menu-toggle{gap:0;font-size:0;justify-content:center}
 html[data-type] body.home .menu-toggle span{font-size:1.5rem}
}
@media(max-width:20rem){
 html[data-type] body.home .logo{--mark-size:1.5rem}
 html[data-type] body.home :is(.header-row,.header-controls){gap:8px}
 html[data-type] body.home .header-cta{padding:0 .6rem;font-size:.8125rem}
}
@media(min-width:60.0625rem){html[data-type] body.home nav{align-items:center;gap:clamp(1.25rem,2vw,2rem)}}
/* The full nav fits from 960px; below that it collapses into the existing menu toggle. */
@media(min-width:60.0625rem) and (max-width:64rem){
 html[data-type] body.home .menu-toggle{display:none}
 html[data-type] body.home .theme-toggle{order:2}
 html[data-type] body.home nav{position:static;inset:auto;z-index:auto;flex-direction:row;padding:0;background:none;visibility:visible;opacity:1;overflow:visible}
 html[data-type] body.home nav a{padding:0;border-top:0;font-size:.9375rem;line-height:1.2}
 html[data-type] body.home nav a.nav-term{font-size:.8125rem}
}
@media(max-width:60rem){
 html[data-type] body.home nav{padding-top:calc(var(--nav-top,8.5rem) + 1rem)}
 html[data-type] body.home nav a{font-family:var(--font-display);font-size:clamp(1.5rem,1rem + 2vw,2rem);font-weight:var(--display-weight);letter-spacing:var(--statement-tracking);color:var(--ink)}
 html[data-type] body.home nav a.nav-term{font-family:var(--font-mono);font-size:clamp(1.125rem,.9rem + 1vw,1.375rem);letter-spacing:0}
 html[data-type] body.home nav a.nav-cta{align-self:flex-start;justify-content:center;margin-top:1.75rem;min-height:3.25rem;padding:0 1.75rem;border-top:0;font-family:var(--font-text);font-size:1.125rem;font-weight:500;letter-spacing:0;color:var(--bg)}
 html[data-type] body.home nav a[aria-current=page]:not(.nav-cta)::after{content:"";display:inline-block;width:.45rem;height:.45rem;margin-left:.65rem;vertical-align:middle;background:var(--accent)}
}

/* ---------- Hero: headline and kicker centred above the full-width animation ---------- */
html[data-type] body.home .hero-heading{text-align:center}
html[data-type] body.home .hero-heading h1{margin:0 auto;max-width:none;font-size:calc(clamp(2.5rem,1rem + 4.6vw,5.75rem) * var(--display-scale));line-height:1.04;text-wrap:balance}
html[data-type] body.home .hero-heading h1::after{content:none;display:none;animation:none}
html[data-type] body.home .hero-heading h1 span{color:var(--accent-display)}
html[data-type] body.home .prompt{display:none}
html[data-type] body.home .hero-heading .kicker{margin:clamp(.9rem,1.6vw,1.35rem) auto 0;font-size:clamp(1.0625rem,.95rem + .45vw,1.375rem);line-height:1.45;letter-spacing:-.005em;color:var(--ink-soft)}
html[data-type] body.home .hero{padding-block:clamp(2.5rem,4.6vw,5rem) clamp(2rem,3vw,3rem)}
html[data-type] body.home .stage{margin-top:clamp(1.25rem,2.6vw,2.5rem)}
@media(min-width:60.0625rem){html[data-type] body.home .hero{padding-top:clamp(1.75rem,3vw,3rem)}html[data-type] body.home .stage{margin-top:clamp(.5rem,1.2vw,1.25rem)}}
/* Small phones: one-line headline in every type set. */
@media(max-width:23.4375rem){html[data-type] body.home .hero-heading h1{font-size:calc(2.125rem * var(--display-scale))}}

/* ---------- Hero: the whole animation fits the first screen ----------
   home.js writes --hero-canvas-top (the canvas's distance from the top of the document, so it follows fonts,
   the announcement bar wrapping and the header). The canvas keeps the artwork's 9:4 frame when there is room and
   otherwise gets shorter; silicon-hero.js fits the scene with min(w/900, h/400) and redraws at devicePixelRatio
   on every resize, so the artwork only ever gets smaller, never cropped.
   The setup-slack readout hangs at 302/400 of the canvas height plus ~3.75rem of text and air, hence 400/302.
   Compact scenes (stage under 640px) are 600×460 with the readout down to 350/460, hence 460/350. */
html[data-type] body.home #silicon-hero canvas{aspect-ratio:auto;height:clamp(var(--hero-canvas-min,15rem),calc((100svh - var(--hero-canvas-top,22rem) - 3.75rem) * 1.3245),calc(100cqi * 4 / 9))}
@container(max-width:639px){html[data-type] body.home #silicon-hero canvas{height:clamp(var(--hero-canvas-min,12rem),calc((100svh - var(--hero-canvas-top,22rem) - 3.75rem) * 1.314),calc(100cqi * 46 / 60))}}
/* Short, wide desktop and laptop screens (where the 9:4 stage is height-bound): tighten the space above the stage
   first; the canvas has its own top margin built in. Squarer screens such as 1024×768 are width-bound and keep the
   default spacing. */
@media(min-width:60.0625rem) and (max-height:56rem) and (min-aspect-ratio:3/2){
 html[data-type] body.home .hero{padding-top:clamp(.75rem,3svh,2.25rem)}
 html[data-type] body.home .hero-heading h1{font-size:calc(min(clamp(2.5rem,1rem + 4.6vw,5.75rem),10.5svh) * var(--display-scale))}
 html[data-type] body.home .hero-heading .kicker{margin-top:clamp(.4rem,1.4svh,1rem);font-size:clamp(1rem,.5rem + 1.4svh,1.375rem)}
 html[data-type] body.home .term-door-row{margin-top:clamp(.75rem,2.2svh,1.5rem)}
 html[data-type] body.home .stage{margin-top:0}
}
@media(min-width:60.0625rem) and (max-height:46rem) and (min-aspect-ratio:3/2){
 html[data-type] body.home .hero{padding-top:clamp(.75rem,2.6svh,1.5rem)}
 html[data-type] body.home .hero-heading h1{font-size:calc(min(clamp(2.5rem,1rem + 4.6vw,5.75rem),9.6svh) * var(--display-scale))}
 html[data-type] body.home .term-door{min-height:2.25rem;padding-block:.3rem}
 html[data-type] body.home{--hero-canvas-min:13rem}
}
/* Tablets and phones: the same squeeze, scaled to the short side. */
@media(max-width:60rem) and (max-height:50rem){
 html[data-type] body.home .hero{padding-top:clamp(1rem,3.5svh,2.5rem)}
 html[data-type] body.home .stage{margin-top:clamp(.5rem,2svh,1.25rem)}
}
@media(max-width:60rem) and (max-height:42rem){
 html[data-type] body.home .hero-heading .kicker{margin-top:.5rem}
 html[data-type] body.home .term-door-row{margin-top:.75rem}
 html[data-type] body.home{--hero-canvas-min:10rem}
}

/* Phones held sideways (and other very short, wide screens): one-line announcement, tighter heading, no terminal
   door (the nav has ">_ Terminal"), and a lower canvas floor so the calculator, SoC and slack readout fit. */
@media(max-height:30rem) and (orientation:landscape){
 body.home .announce{padding-block:.3rem;font-size:.75rem;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 html[data-type] body.home header{padding-block:.4rem}
 html[data-type] body.home .hero{padding-top:.5rem;padding-bottom:1rem}
 html[data-type] body.home .hero-heading h1{font-size:calc(min(clamp(2rem,1rem + 4.6vw,5.75rem),9svh) * var(--display-scale))}
 html[data-type] body.home .hero-heading .kicker{margin-top:.25rem;font-size:clamp(.875rem,3.6svh,1.125rem)}
 html[data-type] body.home .term-door-row{display:none}
 html[data-type] body.home .stage{margin-top:0}
 html[data-type] body.home{--hero-canvas-min:7rem}
}

/* Terminal door: a subtle pill under the kicker. The backtick hint shows on desktop pointers only. */
body.home .term-door-row{display:flex;justify-content:center;margin-top:clamp(1.1rem,2.2vw,1.75rem)}
body.home .term-door{display:inline-flex;align-items:center;gap:.65rem;min-height:2.5rem;padding:.45rem 1.05rem;border:1px solid var(--rule);border-radius:999px;background:color-mix(in srgb,var(--surface) 55%,var(--bg));font-size:.8125rem;font-weight:500;line-height:1.2;letter-spacing:0;color:var(--ink-soft);text-decoration:none;white-space:nowrap;transition:border-color .15s ease,color .15s ease,background .15s ease}
body.home .term-door b{font-weight:600;color:var(--accent)}
body.home .term-door .term-door-go{color:var(--ink)}
body.home .term-door kbd{display:none;min-width:1.4rem;padding:.2rem .4rem;border:1px solid var(--rule);border-radius:.3rem;background:var(--bg);font:inherit;font-size:.75rem;line-height:1;text-align:center;color:var(--ink-faint)}
body.home .term-door:hover{border-color:color-mix(in srgb,var(--ink) 35%,transparent);background:var(--surface);color:var(--ink)}
body.home .term-door:hover .term-door-go{color:var(--accent-ink)}
@media(hover:hover) and (pointer:fine) and (min-width:48rem){body.home .term-door{padding-right:.5rem}body.home .term-door kbd{display:inline-block}}
@media(max-width:22rem){body.home .term-door{gap:.5rem;padding-inline:.8rem;font-size:.75rem}}

/* ---------- Home sections: mono label, display statement, reading text ---------- */
html[data-type] body.home .section-label{align-items:flex-start;padding-top:.45rem}
html[data-type] body.home:not(.content-page) .section-label :is(h2,.section-name){display:flex;align-items:center;gap:.7rem;margin:0;font-family:var(--font-mono);font-size:.75rem;font-weight:500;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-faint)}
html[data-type] body.home:not(.content-page) .section-label :is(h2,.section-name)::before{content:"";flex:none;width:.4rem;height:.4rem;background:var(--accent)}
html[data-type] body.home .section-copy .statement{margin:0 0 1.25rem;font-size:calc(var(--section-size) * var(--display-scale));line-height:1.14;font-weight:var(--display-weight);letter-spacing:var(--statement-tracking);color:var(--ink)}
html[data-type] body.home .section-copy .statement-lg{margin:0;font-size:calc(clamp(1.75rem,1.05rem + 2vw,3rem) * var(--display-scale));line-height:1.16;letter-spacing:var(--statement-tracking)}
html[data-type] body.home .section-copy-wide{max-width:58rem}
html[data-type] body.home .section-copy p:not(.statement){font-size:var(--reading-size);line-height:1.65;letter-spacing:0;color:var(--ink-soft)}
html[data-type=e] body.home .section-copy p:not(.statement){letter-spacing:.003em}
html[data-type] body.home .section-copy p+p:not(.statement){margin-top:1rem}

/* Home page sections (index.html): every section reads the same calm way. One lead line in the display face at a
   moderate size and regular weight, then reading paragraphs in the text face and the softer ink. The selectors
   carry `p.` so they outrank the `.section-copy p:not(.statement)` reading rule above. */
html[data-type] body.home .home-copy{max-width:41rem}
html[data-type] body.home .section-copy p.home-lead{margin:0 0 clamp(1.125rem,.95rem + .5vw,1.5rem);font-family:var(--font-display);font-size:clamp(1.625rem,1.3rem + 1.05vw,2.375rem);font-weight:400;line-height:1.22;letter-spacing:var(--statement-tracking);text-transform:none;color:var(--ink);text-wrap:balance}
html[data-type] body.home .section-copy p.home-body{max-width:38rem;font-size:var(--reading-size);line-height:1.65;color:var(--ink-soft);text-wrap:pretty}
html[data-type] body.home .home-copy .home-section-actions{margin-top:clamp(1.5rem,1.2rem + .8vw,2rem)}
/* Footnote in "Beyond the frontier" (2026-11-02): a small raised numeral on "Carbon-based" in the lead, and the note
   under the body, set like the section labels (EDX mono, small caps-height uppercase, tracked, faint ink). Its
   hairline starts at the text's left edge and runs just past the end of the note. Newsreader has no superior figures
   (no sups feature), so the lead's numeral is sized and raised by hand; line-height:0 keeps both raised numerals
   from opening up the line spacing. */
html[data-type] body.home .home-lead .fn-ref{margin-left:.03em;font-size:.5em;font-weight:400;line-height:0;letter-spacing:0;vertical-align:.78em;font-variant-numeric:lining-nums;color:var(--accent-ink)}
html[data-type] body.home .section-copy.home-copy p.home-footnote{width:fit-content;max-width:100%;margin-top:clamp(2rem,1.6rem + 1vw,2.75rem);padding:.85rem 1.75rem 0 0;border-top:1px solid var(--rule);font-family:var(--font-mono);font-size:.75rem;font-weight:500;line-height:1.6;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-faint);text-wrap:balance}
html[data-type] body.home .home-footnote .fn-num{display:inline-block;margin-right:.5em;font-size:.85em;line-height:0;letter-spacing:0;vertical-align:.45em;color:var(--accent-ink)}
/* The hidden "note" words are for screen readers only: copying the section leaves them out. */
html[data-type] body.home :is(.fn-ref,.fn-num) .sr-only{-webkit-user-select:none;user-select:none}


/* Links read as text with an arrow, not as boxed buttons. */
html[data-type] body.home .home-section-actions{justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:.25rem 2rem;margin-top:1.75rem}
html[data-type] body.home .text-link{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;margin:0;padding:0;border:0;background:none;font-size:var(--reading-size);font-weight:500;letter-spacing:0;text-transform:none;color:var(--ink);text-decoration:none}
html[data-type] body.home .text-link:hover{background:none;color:var(--accent-ink)}
html[data-type] body.home .text-link span{color:var(--accent-ink);transition:transform .15s ease}
html[data-type] body.home .text-link:hover span{transform:translateX(3px)}
html[data-type] body.home button.text-link{cursor:pointer;line-height:1.2}

/* ---------- Footer ---------- */
html[data-type] body.home footer{justify-content:flex-start;gap:.5rem 1.75rem;font-size:.875rem;letter-spacing:0;text-transform:none;color:var(--ink-faint)}
html[data-type] body.home footer>:first-child{margin-right:auto}
html[data-type] body.home footer a{font-size:.875rem;letter-spacing:0;text-transform:none;color:var(--ink-soft)}
html[data-type] body.home footer a:hover{color:var(--accent-ink)}
/* Social link: the X logo, then the handle. */
html[data-type] body.home footer .fsocial{display:inline-flex;align-items:center;gap:.4em}
html[data-type] body.home footer .fsocial svg{flex:none;width:.8125em;height:.8125em;fill:currentColor}

/* ---------- Signals: today's rails and section wires, clearly visible ---------- */
.home .wire-base{opacity:.12}
html[data-theme=dark] .home .wire-base{opacity:.18}
.home .wire-pulses{opacity:.8;stroke-width:1.5}
html[data-theme=dark] .home .wire-pulses{opacity:.85}
.home .section-wire .wire-pulses{opacity:.85;stroke-width:1.6}
@media(max-width:40rem){.home .wire-base{opacity:.1}.home .section-wire .wire-pulses{opacity:.75}}
/* Phones: slimmer rails with a clear gap from the content frame. */
@media(max-width:30rem){.home .wire-rail{width:.625rem}.home .wire-left{left:2px}.home .wire-right{right:2px}}
