:root {
  color-scheme: dark;
  --bg: #121112;
  --panel: #1a1819;
  --surface: #211c1a;
  --line: #3b302a;
  --text: #f8f3ee;
  --muted: #c5b9b1;
  --brand-orange: #ff6600;
  --accent: #ffa759;
  --accent-light: #ffd0a3;
  --ink: #21130b;
  --max: 1160px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
p { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--ink); }
.wrap { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: 1rem; z-index: 5; padding: .8rem 1rem; background: var(--accent); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: #151314; position: relative; z-index: 2; }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-block; flex: none; }
.brand img { width: 120px; height: auto; background: var(--brand-orange); }
.desktop-nav, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 24px; }
.desktop-nav a, .mobile-nav a, .footer-links a { text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 610; }
.desktop-nav a:hover, .mobile-nav a:hover, .footer-links a:hover, a[aria-current] { color: var(--accent-light); }
.mobile-menu { display: none; }
.mobile-menu summary { cursor: pointer; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 650; }
.mobile-nav { position: absolute; inset: 100% 0 auto; background: var(--panel); border-block: 1px solid var(--line); padding: 12px max(24px, calc((100% - var(--max))/2)); display: grid; gap: 2px; }
.mobile-nav a { display: block; padding: .55rem .2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; border-radius: 8px; min-height: 48px; padding: .65rem 1.05rem; border: 1px solid transparent; font-weight: 720; line-height: 1.25; text-decoration: none; }
.button.primary { background: var(--brand-orange); color: var(--ink); }
.button.primary:hover { background: var(--accent-light); }
.button.secondary { background: #211b18; border-color: #604631; color: var(--accent-light); }
.button.secondary:hover { background: #33241d; border-color: var(--brand-orange); }
.header-cta { min-height: 40px; padding: .55rem .8rem; font-size: .88rem; }
.arrow { font-size: 1.14em; line-height: 1; }
.hero { overflow: hidden; background: radial-gradient(ellipse at 84% 32%, #342017 0, transparent 51%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(28px, 4.3vw, 65px); align-items: center; padding-block: clamp(45px, 6.2vw, 92px); }
.hero.home .hero-grid { padding-block: clamp(46px, 7vw, 104px); }
.eyebrow { display: flex; gap: .58rem; align-items: center; color: var(--accent-light); font-size: .75rem; font-weight: 760; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: .48rem; height: .48rem; background: var(--accent); box-shadow: 0 0 14px #fb8e4a80; border-radius: 50%; flex: none; }
h1 { font-size: clamp(2.65rem, 5.1vw, 4.7rem); font-weight: 790; line-height: .99; margin: .32em 0 .35em; }
.hero:not(.home) h1 { font-size: clamp(2.6rem, 4.55vw, 4.15rem); }
h1 span { color: var(--brand-orange); }
.lead { font-size: clamp(1.03rem, 1.7vw, 1.19rem); max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.75rem; }
.hero-art { border: 1px solid #775138; border-radius: 19px; overflow: hidden; position: relative; box-shadow: 0 28px 80px #0603029c; background: #1c1614; }
.hero-art img, .hero-visual svg { display: block; width: 100%; height: auto; }
.hero-art figcaption { display: flex; justify-content: space-between; gap: 10px; padding: .7rem 1rem; border-top: 1px solid #67452e; color: var(--accent-light); font: 600 .7rem/1.3 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.hero-art figcaption span:last-child { color: #d6ad91; }
.motion-toggle, .motion-label { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .motion-toggle { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
  .motion-label { display: inline-flex; align-items: center; margin-block: -.45rem; padding: .45rem .35rem; cursor: pointer; }
  .motion-label span:last-child, .motion-toggle:checked ~ figcaption .motion-label span:first-child { display: none; }
  .motion-toggle:checked ~ figcaption .motion-label span:last-child { display: inline; }
  .motion-toggle:focus-visible ~ figcaption .motion-label { outline: 2px solid var(--accent-light); }
  .motion-toggle:checked ~ .hero-visual :is(.home-traces, .binary-value, .orbit-light) { animation-play-state: paused; }
}
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .82rem; padding-top: 17px; }
.crumb + .hero-grid { padding-top: clamp(35px, 5vw, 62px); }
.crumb a { text-underline-offset: .2em; }
.cred { border-bottom: 1px solid var(--line); background: var(--panel); }
.cred-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.cred-item { padding: 18px 20px; display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .87rem; }
.cred-item:first-child { padding-left: 0; }
.cred-item + .cred-item { border-left: 1px solid var(--line); }
.cred-item strong { color: var(--text); }
.cred-icon { color: var(--accent); display: grid; place-items: center; border: 1px solid #69452c; border-radius: 8px; width: 32px; height: 32px; flex: none; }
.section { padding-block: clamp(48px, 6.2vw, 88px); }
.section.alt { background: #171516; border-block: 1px solid var(--line); }
.section + .section.tight { padding-top: 0; }
.section-head { margin-bottom: 25px; max-width: 67ch; }
h2 { font-size: clamp(2rem, 3.7vw, 3.1rem); margin: .22em 0 .25em; }
h3 { font-size: 1.28rem; margin: .12em 0 .4em; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 21px; }
a.card { text-decoration: none; }
a.card:hover { border-color: #ac7145; background: var(--surface); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 19px; }
.card-icon { border: 1px solid #67452e; border-radius: 8px; background: #2b201a; color: var(--accent-light); width: 39px; height: 39px; display: grid; place-items: center; }
.card-index { color: #c6a48d; font: 600 .74rem/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.card p { font-size: .94rem; }
.card-link { color: var(--accent-light); margin-top: auto; padding-top: 16px; font-size: .88rem; font-weight: 700; }
.card-media { width: 100%; height: auto; border-radius: 8px; margin-bottom: 17px; }
.person { display: grid; grid-template-columns: 80px 1fr; align-items: start; gap: 16px; }
.person img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.note { border-left: 2px solid var(--accent); padding: 1rem 1.4rem; background: var(--panel); border-radius: 0 12px 12px 0; }
.note p { max-width: 75ch; }
.note a { color: var(--accent-light); text-underline-offset: .2em; }
.note blockquote { margin: 0 0 .65rem; max-width: 70ch; font-size: 1.15rem; }
.note figcaption { color: var(--muted); font-size: .87rem; }
.linklist { display: flex; flex-wrap: wrap; gap: 10px; }
.linklist a { color: var(--accent-light); border: 1px solid var(--line); padding: .7rem .9rem; border-radius: 8px; text-underline-offset: .19em; }
.linklist a:hover { border-color: var(--accent); }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: .95rem; }
.faq summary { cursor: pointer; font-weight: 680; }
.faq p { margin-top: .6rem; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(22px, 4vw, 46px); border: 1px solid #795035; border-radius: 16px; background: radial-gradient(ellipse at 94% 0%, #4a2b1c, transparent 70%), var(--panel); }
.cta-box .button { flex: none; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.contact-grid p + p { margin-top: 8px; }
.contact-grid a { color: var(--accent-light); overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--line); background: #151314; padding-block: 32px; }
.footer-main { display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; align-items: center; }
.footer-main p, .footer-end { font-size: .84rem; }
.footer-main p { margin-top: 8px; }
.footer-links { justify-content: flex-end; }
.footer-end { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.footer-end a { color: var(--muted); }

@media (max-width: 870px) {
  .desktop-nav { display: none; }
  .mobile-menu { display: block; margin-left: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 64px; gap: 8px; }
  .site-header .brand img { width: 104px; }
  .header-cta { display: none; }
  .hero-grid, .footer-main { grid-template-columns: 1fr; }
  .hero-grid { gap: 27px; }
  .hero-art { border-radius: 13px; }
  .cred-inner { grid-template-columns: 1fr; padding-block: 9px; }
  .cred-item, .cred-item:first-child { padding: 6px 0; }
  .cred-item + .cred-item { border-left: 0; }
  .cred-icon { width: 25px; height: 25px; }
  .cred-icon svg { width: 15px; height: 15px; }
  .cta-box { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 500px) {
  .cards, .contact-grid { grid-template-columns: 1fr; }
}
