@font-face { font-family: "IBM Plex Mono"; src: url("assets/site/ibm-plex-mono-400-latin.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/site/ibm-plex-mono-500-latin.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/site/newsreader-latin.woff2") format("woff2"); font-style: normal; font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/site/newsreader-italic-latin.woff2") format("woff2"); font-style: italic; font-weight: 300 700; font-display: swap; }

:root { color-scheme: dark; --ink: #08090e; --surface: #0c0d12; --text: #f2ead9; --muted: #9c917c; --gold: #d4af37; --accent-bright: #d4af37; --line: #262118; --line-bright: #3a3322; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; transition: color 0.25s, border-color 0.25s, filter 0.25s; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
::selection { color: var(--ink); background: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip-link { position: fixed; left: 18px; top: 14px; z-index: 200; padding: 10px 14px; color: var(--ink); background: var(--gold); font: 500 12px/1 "IBM Plex Mono", monospace; transform: translateY(-160%); transition: transform 0.2s; }
.skip-link:focus { transform: translateY(0); }
.site-shell { min-height: 100vh; }
.site-nav.is-scrolled { padding-top: 16px !important; padding-bottom: 16px !important; background: rgba(8, 9, 14, 0.88) !important; border-color: var(--line) !important; backdrop-filter: blur(14px); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; color: var(--gold); background: transparent; border: 1px solid var(--line-bright); border-radius: 2px; cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 17px; height: 1px; margin: 4px auto; content: ""; background: currentColor; transition: transform 0.2s, opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-5px) rotate(-45deg); }
.cursor-glow { will-change: transform; }
.site-grain { opacity: 0.04 !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") !important; background-repeat: repeat !important; }
.hero-orb-wrap { isolation: isolate; }
.hero-orb-wrap.is-visible { transform: translateY(var(--hero-shift, 0px)) !important; }
.presence-orb { display: block; width: 100%; height: 100%; background: transparent; }
.hero-orb { position: relative; z-index: 2; cursor: pointer; }
.contact-orb { opacity: 1; }
.contact-orb-static { display: none; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; -webkit-mask-image: radial-gradient(circle, #000 92%, transparent 100%); mask-image: radial-gradient(circle, #000 92%, transparent 100%); }

@media (max-width: 700px), (pointer: coarse) {
  .contact-orb { display: none; }
  .contact-orb-static { display: block; }
  #top [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.orbital-ring { z-index: 1; pointer-events: none; will-change: transform; }
.orbital-ring-outer { animation: slowSpin 90s linear infinite; }
.orbital-ring-inner { animation: slowSpin 140s linear infinite reverse; }
.orb-status { z-index: 3; }
.hero-orb-wrap.is-engaged .orb-status-dot { box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.08), 0 0 18px rgba(212, 175, 55, 0.75) !important; }
[data-reveal].is-visible { opacity: 1 !important; transform: translateY(0) !important; }
.contact-open.is-visible { transform: translate(var(--magnetic-x, 0px), var(--magnetic-y, 0px)) !important; }

.scp0:hover, .scp8:hover { color: var(--ink) !important; filter: brightness(1.12) !important; }
.scp1:hover, .scp4:hover { color: var(--gold) !important; border-color: var(--gold) !important; }
.scp2:hover { border-color: var(--line-bright) !important; transform: translateY(-4px) !important; }
.scp3:hover { color: var(--gold) !important; }
.scp5:hover { color: inherit !important; border-color: var(--gold) !important; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 32px rgba(212, 175, 55, 0.06) !important; transform: translateY(-5px) !important; }
.scp6:hover { opacity: 1 !important; filter: saturate(1) !important; transform: scale(1.03) !important; }
.scp7:hover { color: inherit !important; border-color: var(--line-bright) !important; transform: translateY(-3px) !important; }
.scp9:focus { border-color: var(--gold) !important; }

.faq-section { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 90px 52px 40px; }
.section-kicker, .contact-kicker { margin-bottom: 20px; color: var(--gold); font: 500 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: 0.28em; }
.faq-section h2 { max-width: 18ch; margin: 0; font: 400 clamp(32px, 4vw, 50px)/1.12 "Newsreader", serif; }
.faq-list { margin-top: 52px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 25px 58px 25px 0; color: var(--text); font: 400 clamp(20px, 2.4vw, 27px)/1.25 "Newsreader", serif; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: 8px; top: 24px; color: var(--gold); content: "+"; font: 400 25px/1 "IBM Plex Mono", monospace; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { max-width: 68ch; margin: -4px 0 26px; color: var(--muted); font: 300 17px/1.7 "Newsreader", serif; }

.contact-modal[hidden] { display: none; }
.contact-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.contact-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(3, 4, 7, 0.82); border: 0; backdrop-filter: blur(14px); cursor: default; }
.contact-dialog { position: relative; width: min(680px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 48px; background: var(--surface); border: 1px solid var(--line-bright); border-radius: 4px; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62); }
.contact-close { position: absolute; right: 18px; top: 14px; width: 42px; height: 42px; padding: 0; color: var(--muted); background: transparent; border: 0; font-size: 30px; line-height: 1; cursor: pointer; }
.contact-dialog h2 { margin: 0; font: 400 clamp(34px, 6vw, 52px)/1.05 "Newsreader", serif; }
.contact-intro { max-width: 50ch; margin: 16px 0 32px; color: var(--muted); font: 300 17px/1.6 "Newsreader", serif; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
#contact-form label { display: grid; gap: 9px; margin-bottom: 18px; color: var(--muted); font: 500 10px/1.4 "IBM Plex Mono", monospace; letter-spacing: 0.16em; text-transform: uppercase; }
#contact-form input, #contact-form select, #contact-form textarea { width: 100%; color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 2px; outline: 0; font: 300 16px/1.5 "Newsreader", serif; letter-spacing: 0; text-transform: none; transition: border-color 0.2s, box-shadow 0.2s; }
#contact-form input, #contact-form select { min-height: 50px; padding: 0 14px; }
#contact-form textarea { min-height: 142px; padding: 13px 14px; resize: vertical; }
#contact-form input:focus, #contact-form select:focus, #contact-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.11); }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 24px; margin: 12px 0; color: var(--muted); font: 400 11px/1.5 "IBM Plex Mono", monospace; letter-spacing: 0.08em; }
.form-status.is-error { color: #ef9b82; }
.form-status.is-success { color: var(--gold); }
.form-submit { width: 100%; min-height: 54px; color: var(--ink); background: var(--gold); border: 0; border-radius: 2px; font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: 0.18em; cursor: pointer; transition: filter 0.2s, opacity 0.2s; }
.form-submit:hover { filter: brightness(1.12); }
.form-submit:disabled { opacity: 0.52; cursor: wait; }
.contact-fallback { margin: 20px 0 0; color: var(--muted); font: 300 14px/1.5 "Newsreader", serif; text-align: center; }
.contact-fallback a { color: var(--gold); }

/* Shared legal and error pages */
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.nav { position: sticky; top: 0; z-index: 20; background: rgba(8, 9, 14, 0.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.nav-inner { width: min(1120px, calc(100% - 40px)); min-height: 78px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; flex-direction: column; color: var(--text); font: 400 28px/0.95 "Newsreader", serif; }
.wordmark small { margin-top: 8px; color: var(--muted); font: 500 8px/1 "IBM Plex Mono", monospace; letter-spacing: 0.22em; text-transform: uppercase; }
.nav .nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font: 500 10px/1 "IBM Plex Mono", monospace; letter-spacing: 0.16em; text-transform: uppercase; }
.btn { display: inline-flex; min-height: 44px; padding: 0 18px; align-items: center; justify-content: center; color: var(--text); border: 1px solid var(--line-bright); font: 500 10px/1 "IBM Plex Mono", monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.btn.primary { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.footer { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); border-top: 1px solid var(--line); font: 400 10px/1.6 "IBM Plex Mono", monospace; letter-spacing: 0.08em; }
.small-links { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.legal-page { padding-top: 72px !important; }
.legal-page h1, .error-title { font-family: "Newsreader", serif; font-weight: 400; }
.legal-content p, .legal-content li, .error-message { font-family: "Newsreader", serif; }
.legal-content strong { color: var(--text); }
.mouse-glow { pointer-events: none; position: fixed; z-index: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,0.055), transparent 66%); }

@keyframes emberPulse { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollCue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes slowSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .site-nav { padding: 18px 22px !important; }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; left: 18px; right: 18px; top: 72px; display: none !important; flex-direction: column; gap: 0 !important; padding: 10px 20px; background: rgba(8, 9, 14, 0.97); border: 1px solid var(--line-bright); box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55); }
  .nav-links.is-open { display: flex !important; }
  .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .product-grid, .research-grid, .builder-grid { grid-template-columns: 1fr !important; }
  .research-grid > :first-child { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .work-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 640px) {
  #top { min-height: auto !important; padding: 78px 18px 72px !important; }
  .hero-orb-wrap { width: min(86vw, 460px) !important; height: min(86vw, 460px) !important; }
  #top h1 { margin-top: 48px !important; }
  #top p { font-size: 17px !important; }
  #products, #research, #work, #builder, .faq-section { padding-left: 20px !important; padding-right: 20px !important; }
  #products { padding-top: 78px !important; }
  #research > div, #builder > div { gap: 36px !important; }
  .research-grid > :first-child, .research-grid > :last-child { padding: 34px 24px !important; }
  .work-grid { grid-template-columns: 1fr !important; }
  .stats-grid > div { padding: 22px 12px !important; }
  .stats-grid > div:nth-child(2) { border-right: 0 !important; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-modal { padding: 10px; }
  .contact-dialog { max-height: calc(100vh - 20px); padding: 40px 20px 28px; }
  .footer-main { align-items: flex-start !important; padding: 30px 20px !important; }
  .footer-main > div:first-child { align-items: flex-start !important; flex-direction: column; }
  .footer-links { row-gap: 16px !important; flex-wrap: wrap; }
  footer > div:last-child { padding-left: 20px !important; padding-right: 20px !important; }
  .nav-inner { min-height: 68px; }
  .nav .nav-links a:not(.primary) { display: none; }
  .footer { padding: 28px 0; align-items: flex-start; flex-direction: column; }
  .legal-nav { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media print {
  .site-nav, .cursor-glow, .site-grain, .contact-modal { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
