:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-2: #0d0f13;
  --bg-3: #111419;
  --paper: #f3efe6;
  --paper-2: #ece6da;
  --ink: #15130f;
  --ink-soft: #4f493f;
  --text: #f4f2ee;
  --muted: #9b968d;
  --orange: #f97316;
  --amber: #e8b44a;
  --line: rgba(255, 255, 255, 0.11);
  --line-ink: rgba(21, 19, 15, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-gutter: stable; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
::selection { background: rgba(249, 115, 22, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
* { scrollbar-width: thin; scrollbar-color: rgba(249, 115, 22, 0.35) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(249, 115, 22, 0.28); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(249, 115, 22, 0.45); background-clip: content-box; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--orange); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(8, 9, 11, 0.78);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}
/* Paper pages keep the dark editorial chrome; do not inherit the ink color. */
.theme-paper .site-header { background: #08090b; }
.theme-paper .site-header .brand-text { color: var(--text); }
.theme-paper .site-header .brand-text em { color: var(--muted); }
.theme-paper .site-header .site-nav a { color: #c8c3ba; }
.theme-paper .site-header .site-nav a:hover,
.theme-paper .site-header .site-nav a.is-active { color: #fff; }
.theme-paper .site-header .site-nav .nav-cta,
.theme-paper .site-header .site-nav .nav-cta:hover { color: #1a1208; }
.site-header.is-scrolled { background: rgba(8, 9, 11, 0.94); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28); }
.header-inner {
  max-width: 1180px; margin: 0 auto; height: 68px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  transition: height 200ms ease;
}
.site-header.is-scrolled .header-inner { height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 6px 18px rgba(249, 115, 22, 0.24); }
.brand-text { color: var(--text); font-size: 16px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand-text em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 2px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 10px; border-radius: 8px; font-size: 13px; color: #c8c3ba;
  transition: color 160ms ease, background 160ms ease;
}
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 1px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform 200ms ease;
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta).is-active::after { transform: scaleX(1); }
.site-nav a:hover, .site-nav a.is-active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav .nav-cta {
  margin-left: 10px; padding: 9px 14px; color: #1a1208; font-weight: 700;
  background: linear-gradient(135deg, #fdba74, #f97316);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.22);
}
.site-nav .nav-cta:hover { background: linear-gradient(135deg, #fed7aa, #fb923c); color: #1a1208; }
.menu-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line);
  border-radius: 10px; background: rgba(255, 255, 255, 0.03); color: #fff;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer;
}
.menu-toggle span:not(.sr-only) { width: 17px; height: 1.5px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 999px; font-size: 14px; font-weight: 700;
  border: 1px solid transparent; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #fdba74, #f97316); color: #1a1208;
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.24);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, 0.38) 50%, transparent 76%);
  transform: translateX(-130%); transition: transform 600ms ease; mix-blend-mode: soft-light;
}
.btn-primary:hover::after { transform: translateX(130%); }
.btn-primary:hover { background: linear-gradient(135deg, #fed7aa, #fb923c); box-shadow: 0 16px 40px rgba(249, 115, 22, 0.32); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(249, 115, 22, 0.5); background: rgba(249, 115, 22, 0.08); }
.text-link { color: var(--orange); font-size: 13px; font-weight: 600; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 88vh; display: flex; align-items: center;
  background: var(--bg);
}
.hero-inner {
  position: relative; z-index: 2; max-width: 1180px; width: 100%; margin: 0 auto;
  padding: 92px 24px 80px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 48px; align-items: center;
}
.hero-copy { max-width: 680px; }
.hero .hero-inner h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.06; letter-spacing: -0.045em; }
.hero-visual { margin: 0; width: 100%; max-width: 500px; justify-self: end; }
.hero-visual figcaption {
  margin-top: 14px; text-align: center; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.1em; color: #7f7a72;
}
.hero-orbit {
  position: relative; width: 100%; aspect-ratio: 1; max-width: 500px; margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.16), transparent 58%),
    radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.05), transparent 72%);
}
.hero-orbit__glow {
  position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 70%);
  filter: blur(28px); animation: hero-breathe 6s ease-in-out infinite;
}
.hero-orbit__ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(249, 115, 22, 0.16);
  animation: hero-spin 30s linear infinite;
}
.hero-orbit__ring::after {
  content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px;
  margin-left: -3px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.9);
}
.hero-orbit__ring.r1 { inset: 8%; border-style: dashed; }
.hero-orbit__ring.r2 { inset: 20%; border-color: rgba(255, 255, 255, 0.08); animation-duration: 42s; animation-direction: reverse; }
.hero-orbit__ring.r3 { inset: 32%; border-color: rgba(249, 115, 22, 0.28); animation-duration: 22s; }
.hero-orbit__logo {
  position: absolute; top: 50%; left: 50%; width: clamp(76px, 20%, 104px); height: auto;
  transform: translate(-50%, -50%); border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42), 0 0 50px rgba(249, 115, 22, 0.16);
}
.hero-orbit__label {
  position: absolute; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(8, 9, 11, 0.72); backdrop-filter: blur(8px);
  font-size: 11px; color: #d8d3ca; white-space: nowrap;
}
.hero-orbit__label.l1 { top: 1%; left: 50%; transform: translateX(-50%); }
.hero-orbit__label.l2 { top: 22%; right: 0; }
.hero-orbit__label.l3 { bottom: 22%; right: 0; }
.hero-orbit__label.l4 { bottom: 1%; left: 50%; transform: translateX(-50%); }
.hero-orbit__label.l5 { bottom: 22%; left: 0; }
.hero-orbit__label.l6 { top: 22%; left: 0; }
@keyframes hero-spin { to { transform: rotate(360deg); } }
@keyframes hero-breathe { 0%, 100% { opacity: 0.65; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.04); } }
.hero-scroll {
  position: absolute; left: 50%; bottom: 20px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: #7f7a72;
}
.hero-scroll span {
  width: 1px; height: 34px; background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollline 2.2s ease-in-out infinite;
}
.eyebrow {
  margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange);
}
.hero h1 {
  margin: 0; font-size: clamp(48px, 8.6vw, 112px); line-height: 0.98;
  letter-spacing: -0.055em; font-weight: 800; max-width: 1000px;
}
.hero h1 span {
  background: linear-gradient(100deg, #fff7ed 0%, #fdba74 42%, #f97316 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin: 26px 0 0; max-width: 620px; font-size: clamp(15px, 2vw, 18px); line-height: 1.85; color: #b9b4ab; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { margin: 46px 0 0; display: flex; flex-wrap: wrap; gap: 42px; }
.hero-stats div { display: flex; flex-direction: column; gap: 3px; }
.hero-stats dt { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.hero-stats dd { margin: 0; font-size: 12px; color: var(--muted); }

.grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 62% at 48% 30%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 62% at 48% 30%, #000 35%, transparent 78%);
  animation: grid-drift 30s linear infinite;
}
@keyframes grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 72px 72px, 72px 72px; } }
.hero-aurora {
  position: absolute; z-index: 0; inset: -20% -10% auto; height: 80%;
  background:
    radial-gradient(52% 58% at 58% 10%, rgba(249, 115, 22, 0.23), transparent 68%),
    radial-gradient(38% 42% at 22% 18%, rgba(232, 180, 74, 0.1), transparent 70%);
  filter: blur(24px); animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); opacity: 0.8; }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: 1; }
}
.hero-rings { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.hero-rings i {
  position: absolute; left: 50%; top: 38%; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border: 1px solid rgba(249, 115, 22, 0.16); border-radius: 50%;
  animation: ring 9s ease-out infinite;
}
.hero-rings i:nth-child(2) { animation-delay: 3s; }
.hero-rings i:nth-child(3) { animation-delay: 6s; }
@keyframes ring {
  0% { transform: scale(0.55); opacity: 0; }
  18% { opacity: 0.75; }
  100% { transform: scale(1.65); opacity: 0; }
}
.hero-sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-sparks i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fdba74; box-shadow: 0 0 12px rgba(253, 186, 116, 0.9);
  animation: spark 7s ease-in-out infinite;
}
@keyframes spark {
  0%, 100% { opacity: 0.2; transform: translateY(0) scale(0.8); }
  50% { opacity: 1; transform: translateY(-12px) scale(1.15); }
}

/* Sections -------------------------------------------------------------- */
.section { position: relative; max-width: 1180px; margin: 0 auto; padding: 92px 24px; }
.section-alt { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.15; letter-spacing: -0.035em; }
.section-head p:not(.eyebrow) { margin: 10px 0 0; max-width: 560px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.section-head .text-link { margin-left: auto; }
.cluster-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.story-card {
  position: relative; overflow: hidden; padding: 24px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--bg-2); min-height: 190px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.story-card:hover { transform: translateY(-3px); border-color: rgba(249, 115, 22, 0.4); background: #101318; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.story-card span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--orange); }
.story-card h3 { margin: 26px 0 10px; font-size: 22px; letter-spacing: -0.03em; }
.story-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.cluster-card {
  position: relative; overflow: hidden; padding: 24px; min-height: 190px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
  display: flex; flex-direction: column; transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}
.cluster-card:hover { border-color: rgba(249, 115, 22, 0.42); transform: translateY(-3px); background: #101318; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.cluster-count { font-family: var(--mono); font-size: 11px; color: var(--orange); letter-spacing: 0.08em; }
.cluster-card h3 { margin: 26px 0 8px; font-size: 24px; letter-spacing: -0.03em; }
.cluster-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.cluster-arrow { margin-top: auto; align-self: flex-end; color: var(--orange); font-size: 18px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 230px;
  padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(249, 115, 22, 0.4); background: #101318; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28); }
.card-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }
.card h3 { margin: 18px 0 10px; font-size: 19px; line-height: 1.35; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; padding-top: 18px; font-size: 11px; color: #7f7a72; }
.card-arrow { position: absolute; right: 18px; bottom: 16px; color: rgba(249, 115, 22, 0.7); transition: transform 180ms ease, color 180ms ease; }
.card:hover .card-arrow, .cluster-card:hover .cluster-arrow { transform: translate(2px, -2px); color: var(--orange); }

.spot { --x: 50%; --y: 50%; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(220px circle at var(--x) var(--y), rgba(249, 115, 22, 0.16), transparent 65%);
  transition: opacity 220ms ease;
}
.spot:hover::after { opacity: 1; }

.about-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-band-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.about-band h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.035em; }
.about-band p:not(.eyebrow) { max-width: 720px; margin: 14px 0 0; color: var(--muted); line-height: 1.8; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); padding: 18px 20px; }
.faq summary { cursor: pointer; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.cta-band { padding: 0 24px 100px; }
.cta-inner {
  max-width: 1180px; margin: 0 auto; padding: 54px 40px; border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 22px; background:
    radial-gradient(60% 120% at 80% 0%, rgba(249, 115, 22, 0.2), transparent 60%),
    var(--bg-2);
}
.cta-inner h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.04em; }
.cta-inner p:not(.eyebrow) { margin: 12px 0 24px; color: var(--muted); }

/* Note hero (editorapi.com-style layout) -------------------------------- */
.hero-note { min-height: 92vh; }
.hero-note__in {
  position: relative; z-index: 2; max-width: 1180px; width: 100%; margin: 0 auto;
  padding: 92px 24px 80px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px; align-items: center;
}
.hero__copy { max-width: 620px; }
.hero-note .hero__h1 { font-size: clamp(42px, 6vw, 82px); line-height: 1.08; letter-spacing: -0.045em; }
.hero__h1 .ln > span { white-space: nowrap; }
.hero__sub { margin: 26px 0 0; max-width: 560px; color: #b9b4ab; font-size: clamp(15px, 2vw, 18px); line-height: 1.85; }
.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { margin: 18px 0 0; display: flex; align-items: center; gap: 8px; color: #8d887e; font-size: 12px; }
.hero__trust span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.hero-contact { margin: 18px 0 0; color: #8d887e; font-size: 12px; }
.hero-contact a { color: #d8d3ca; }
.hero-contact a:hover { color: var(--orange); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 20px; align-items: start; }
.contact-form {
  display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line);
  border-radius: 3px; background: rgba(8, 13, 17, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.form-head h3 { margin: 0; color: #f4fbfd; font-size: 24px; letter-spacing: -0.03em; }
.form-head p:not(.eyebrow) { margin: 8px 0 0; color: #8fa0a6; font-size: 12.5px; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--cyan);
}
.form-field.full { grid-column: 1 / -1; }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 2px;
  background: #05070a; color: var(--text); padding: 11px 12px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0; outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(77, 227, 255, 0.08);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #5f7078; }
.form-consent { display: flex; align-items: flex-start; gap: 8px; color: #8fa0a6; font-size: 11.5px; line-height: 1.7; }
.form-consent input { margin-top: 3px; accent-color: var(--orange); }
.form-consent a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.form-status { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; }
.contact-form[data-cloudsite-state="success"] .form-status { color: var(--cyan); }
.contact-form[data-cloudsite-state="error"] .form-status { color: #ff8a8a; }
.form-fallback { margin: 0; color: #6f8088; font-size: 11px; }
.form-fallback a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
.contact-side { display: grid; gap: 14px; }
.contact-side .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-chat { justify-self: start; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.contact-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
a.contact-card:hover { transform: translateY(-3px); border-color: rgba(249, 115, 22, 0.4); background: #101318; }
.contact-card span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.contact-card strong { font-size: 18px; line-height: 1.4; letter-spacing: -0.02em; color: #fff; word-break: break-word; }
.contact-card p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
@media (max-width: 640px) { .contact-card strong { font-size: 16px; } }
.hero__h1 .ln { display: block; overflow: hidden; }
.hero__h1 .ln > span { display: block; }
/* The generic hero rule gradients every span; keep the line wrappers plain. */
.hero-note .hero__h1 .ln,
.hero-note .hero__h1 .ln > span {
  background: none; color: var(--text); -webkit-text-fill-color: currentColor;
}
.hero-note .hero__h1 .hl {
  background: linear-gradient(100deg, #fff7ed 0%, #fdba74 42%, #f97316 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero__art { margin: 0; width: 100%; max-width: 560px; justify-self: end; }
.hero__art svg { width: 100%; height: auto; }
.hero__art figcaption { margin-top: 14px; text-align: right; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: #7f7a72; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: #7f7a72;
}
.hero__scroll span {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollline 2.2s ease-in-out infinite;
}
@keyframes scrollline {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}
.hero-stats dt i { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 2px; }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 62% at 48% 30%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 62% at 48% 30%, #000 35%, transparent 78%);
}
.hero__glow {
  position: absolute; z-index: 0; inset: -20% -10% auto; height: 80%;
  background:
    radial-gradient(52% 58% at 58% 10%, rgba(249, 115, 22, 0.2), transparent 68%),
    radial-gradient(38% 42% at 22% 18%, rgba(232, 180, 74, 0.08), transparent 70%);
  filter: blur(24px);
}
.note-art__orbit { transform-box: view-box; transform-origin: 110px 300px; animation: note-spin 26s linear infinite; }
.note-art__rays { animation: note-breathe 6s ease-in-out infinite; }
@keyframes note-spin { to { transform: rotate(360deg); } }
@keyframes note-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #07080a; }
.ticker__row { display: flex; align-items: center; gap: 24px; width: max-content; padding: 14px 0; animation: ticker 32s linear infinite; }
.ticker__row span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: #8d887e; white-space: nowrap; }
.ticker__row i { color: var(--orange); font-style: normal; font-size: 9px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.draft-banner {
  padding: 10px 24px; text-align: center; font-size: 12px; line-height: 1.6;
  color: #d8c8b4; background: rgba(249, 115, 22, 0.1);
  border-bottom: 1px solid rgba(249, 115, 22, 0.2);
}
.draft-banner span {
  display: inline-block; margin-right: 8px; padding: 1px 6px; border-radius: 999px;
  background: rgba(249, 115, 22, 0.2); color: var(--orange); font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.08em;
}
.draft-banner a { color: var(--orange); font-weight: 600; }
.draft-banner a:hover { text-decoration: underline; }

.note-band {
  padding: 30px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 140% at 18% 0%, rgba(249, 115, 22, 0.14), transparent 62%),
    #0a0b0d;
}
.note-band-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.note-band h2 { margin: 0; font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -0.035em; }
.note-band p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.note-section { max-width: 980px; }
.note-head { max-width: 820px; margin-bottom: 36px; }
.note-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4.6vw, 50px); line-height: 1.15; letter-spacing: -0.035em; }
.note-head p:not(.eyebrow) { margin: 14px 0 0; color: #6b6253; line-height: 1.8; }
.note-updated { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 11px; color: #8a8171; }
.note-prose { max-width: 820px; }

/* Page hero / tutorial index -------------------------------------------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); color: var(--text); }
.page-hero-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 86px 24px 64px; }
.page-hero h1 { margin: 0; font-size: clamp(40px, 7vw, 82px); line-height: 1.02; letter-spacing: -0.05em; }
.page-hero h1 span { color: var(--orange); }
.page-hero .hero-lead { max-width: 680px; }
.tutorial-search {
  margin-top: 30px; display: flex; align-items: center; gap: 14px; max-width: 620px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); padding: 4px 14px;
}
.tutorial-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; padding: 12px 0; font-size: 14px; }
.tutorial-search input::placeholder { color: #7f7a72; }
.tutorial-search span { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.chip-row { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: #c8c3ba; }
.chip:hover { border-color: rgba(249, 115, 22, 0.5); color: #fff; }
.tutorial-list { display: grid; gap: 76px; }
.cluster-section { scroll-margin-top: 90px; }
.cluster-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.cluster-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.cluster-head span { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.empty-search { padding: 40px 0; text-align: center; color: var(--muted); }

/* Article --------------------------------------------------------------- */
.theme-paper { background: var(--paper); color: var(--ink); }
.theme-paper main { background: var(--paper); }
.reading-progress {
  position: fixed; top: 0; left: 0; z-index: 120; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transform: scaleX(0); transform-origin: 0 50%;
}
.article-shell { max-width: 1180px; margin: 0 auto; padding: 34px 24px 76px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; font-size: 12px; color: #8a8171; }
.breadcrumb a { color: #6b6253; }
.breadcrumb a:hover { color: var(--orange); }
.article-head { max-width: 900px; margin-top: 30px; }
.article-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 5.4vw, 64px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 700; }
.article-desc { margin: 18px 0 0; max-width: 760px; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.article-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #7b7161; }
.article-summary {
  max-width: 760px; margin: 30px 0 0; padding: 22px 24px;
  border: 1px solid var(--line-ink); border-left: 3px solid var(--orange);
  border-radius: 0 14px 14px 0; background: rgba(249, 115, 22, 0.055);
}
.article-summary .eyebrow { margin-bottom: 8px; }
.summary-lead { margin: 0; color: #221f19; font-size: 18px; line-height: 1.75; font-weight: 600; }
.article-summary ul { margin: 12px 0 0; padding-left: 18px; color: #5b5244; font-size: 14px; line-height: 1.75; }
.article-sources { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-ink); }
.article-sources .eyebrow { margin-bottom: 8px; }
.article-sources ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.85; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 54px; margin-top: 46px; align-items: start; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.86; color: #221f19; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 48px 0 14px; font-size: 29px; line-height: 1.3; letter-spacing: -0.03em; scroll-margin-top: 92px; }
.prose h3 { margin: 34px 0 10px; font-size: 21px; line-height: 1.4; scroll-margin-top: 92px; }
.prose p { margin: 16px 0; }
.prose a { color: #b45309; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--orange); }
.prose strong { color: #111; }
.prose ul, .prose ol { margin: 16px 0; padding-left: 24px; }
.prose li { margin: 7px 0; }
.prose li.check { list-style: none; margin-left: -24px; display: flex; gap: 9px; align-items: flex-start; }
.prose li.check span { width: 17px; height: 17px; flex: none; margin-top: 5px; border: 1px solid #b9ad99; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; }
.prose li.check.is-done span { background: var(--orange); border-color: var(--orange); }
.prose blockquote { margin: 22px 0; padding: 14px 18px; border-left: 3px solid var(--orange); background: rgba(249, 115, 22, 0.07); color: #5b5244; }
.prose blockquote p { margin: 6px 0; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: rgba(21, 19, 15, 0.07); padding: 2px 5px; border-radius: 4px; }
.prose pre { position: relative; margin: 20px 0; padding: 18px; overflow: auto; background: #15130f; color: #f3efe6; border-radius: 10px; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: 13px; line-height: 1.7; }
.code-copy {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px;
  background: rgba(255, 255, 255, 0.08); color: #f3efe6;
  padding: 4px 8px; font-size: 11px; cursor: pointer;
  opacity: 0; transition: opacity 160ms ease, background 160ms ease;
}
.prose pre:hover .code-copy, .code-copy:focus-visible { opacity: 1; }
.code-copy:hover { background: rgba(249, 115, 22, 0.28); }
.prose a[target="_blank"]::after, .footer-grid a[target="_blank"]::after { content: " ↗"; font-size: 0.82em; opacity: 0.65; }
.prose hr { margin: 38px 0; border: 0; border-top: 1px solid var(--line-ink); }
.prose .table-wrap { margin: 22px 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line-ink); text-align: left; vertical-align: top; }
.prose th { background: rgba(21, 19, 15, 0.05); font-weight: 700; }
.toc { position: sticky; top: 92px; border-left: 1px solid var(--line-ink); padding-left: 18px; }
.toc-title { margin: 0 0 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: #8a8171; text-transform: uppercase; }
.toc a { display: block; padding: 5px 0; font-size: 12px; line-height: 1.5; color: #7b7161; border-left: 2px solid transparent; margin-left: -20px; padding-left: 18px; }
.toc a:hover, .toc a.is-active { color: #b45309; border-left-color: var(--orange); }
.article-cta { margin-top: 54px; padding: 28px; border-radius: 18px; background: #15130f; color: var(--paper); }
.article-cta .eyebrow { color: var(--amber); }
.article-cta h2 { margin: 0; color: var(--paper); font-size: 30px; }
.article-cta p:not(.eyebrow) { margin: 10px 0 20px; color: #b9b1a3; font-size: 14px; }
.related-section { background: var(--paper-2); color: var(--ink); border-top: 1px solid var(--line-ink); }
.related-section .section-head h2 { color: var(--ink); }
.related-section .section-head p:not(.eyebrow) { color: #6b6253; }
.related-section .card { background: #f8f4eb; border-color: var(--line-ink); }
.related-section .card h3 { color: var(--ink); }
.related-section .card p, .related-section .card-meta { color: #6b6253; }
.related-section .card:hover { background: #fffdf7; border-color: rgba(249, 115, 22, 0.4); }
.prose-section { max-width: 900px; }
.prose-section .prose { max-width: 760px; }
.muted { color: #7b7161; font-size: 13px; }

/* Footer ---------------------------------------------------------------- */
.site-footer { background: #07080a; border-top: 1px solid var(--line); color: var(--text); }
.footer-grid {
  max-width: 1180px; margin: 0 auto; padding: 56px 24px 34px;
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px;
}
.footer-brand p { max-width: 420px; margin: 16px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.footer-brand p.footer-contact { margin: 0 0 14px; color: #b9b4ab; font-size: 12px; line-height: 1.8; }
.footer-brand p.footer-contact a { color: #d8d3ca; }
.footer-brand p.footer-contact a:hover { color: var(--orange); }
.footer-cta { color: var(--orange); font-size: 13px; font-weight: 600; }
.footer-grid h3 { margin: 0 0 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #7f7a72; }
.footer-grid > div > a { display: block; padding: 4px 0; font-size: 13px; color: #b9b4ab; }
.footer-grid > div > a:hover { color: #fff; }
.footer-legal {
  max-width: 1180px; margin: 0 auto; padding: 18px 24px 26px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: #7f7a72;
}
.footer-legal a:hover { color: #fff; }

/* Utilities ------------------------------------------------------------- */
.reveal { transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.card-grid > .reveal:nth-child(2), .cluster-grid > .reveal:nth-child(2), .story-grid > .reveal:nth-child(2), .contact-grid > .reveal:nth-child(2) { transition-delay: 60ms; }
.card-grid > .reveal:nth-child(3), .cluster-grid > .reveal:nth-child(3), .story-grid > .reveal:nth-child(3), .contact-grid > .reveal:nth-child(3) { transition-delay: 120ms; }
.card-grid > .reveal:nth-child(4), .cluster-grid > .reveal:nth-child(4), .story-grid > .reveal:nth-child(4), .contact-grid > .reveal:nth-child(4) { transition-delay: 180ms; }
.card-grid > .reveal:nth-child(5), .cluster-grid > .reveal:nth-child(5), .contact-grid > .reveal:nth-child(5) { transition-delay: 240ms; }
.card-grid > .reveal:nth-child(6), .cluster-grid > .reveal:nth-child(6), .contact-grid > .reveal:nth-child(6) { transition-delay: 300ms; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(8, 9, 11, 0.86);
  color: #fff; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(8px);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-2px); border-color: rgba(249, 115, 22, 0.5); }

/* enhance.js theme ------------------------------------------------------ */
#cloudsite-chat-root {
  --cs-accent: #f97316 !important;
  --cs-radius: 16px !important;
  --cs-launcher-radius: 999px !important;
}
#cloudsite-chat-panel .cs-head { background: #f97316 !important; color: #1a1208 !important; }
#cloudsite-chat-panel .cs-head small { color: #2a1a08 !important; opacity: .78 !important; }
#cloudsite-chat-panel .cs-icon-btn { color: #1a1208 !important; font-size: 22px !important; padding: 4px 9px !important; }
#cloudsite-chat-panel .cs-send { background: #f97316 !important; color: #1a1208 !important; }
#cloudsite-cookie {
  background: rgba(8, 9, 11, 0.96) !important;
  border: 1px solid rgba(249, 115, 22, 0.28) !important;
  color: #f4f2ee !important;
  border-radius: 14px !important;
}
#cloudsite-cookie .cs-cookie-actions button:not(.cs-reject) { background: #f97316 !important; color: #1a1208 !important; }
#cloudsite-cookie .cs-cookie-actions button.cs-reject { color: #c8c3ba !important; border-color: rgba(255, 255, 255, 0.2) !important; }
#cloudsite-cookie a { color: #fdba74 !important; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; border-left: 0; border-top: 1px solid var(--line-ink); padding: 18px 0 0; margin-top: 12px; }
  .toc a { margin-left: 0; padding-left: 0; border-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-note__in { grid-template-columns: 1fr; gap: 36px; }
  .hero__art { justify-self: center; max-width: 420px; }
  .hero__art figcaption { text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { justify-self: center; max-width: 420px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-side .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 12px; right: 12px; top: 66px; display: none; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 14px;
    background: rgba(8, 9, 11, 0.98); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 11px 12px; font-size: 14px; }
  .site-nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 72px; }
  .hero-stats { gap: 24px; }
  .cta-inner { padding: 36px 24px; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0 16px; }
  .section, .page-hero-inner, .article-shell { padding-left: 18px; padding-right: 18px; }
  .hero-inner { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 54px); letter-spacing: -0.04em; }
  .hero .hero-inner h1 { font-size: clamp(38px, 10vw, 54px); }
  .hero-orbit__label.l2, .hero-orbit__label.l5, .hero-orbit__label.l6 { display: none; }
  .hero-scroll { display: none; }
  .section-head h2 { font-size: 24px; }
  .hero-lead { font-size: 14px; }
  .hero-stats dt { font-size: 24px; }
  .card-grid, .cluster-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-head h1 { font-size: clamp(30px, 8vw, 40px); }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; }
  .hero-note__in { padding-left: 18px; padding-right: 18px; padding-top: 70px; }
  .hero__sub { font-size: 14px; }
  .hero__scroll { display: none; }
  .note-section { padding-left: 18px; padding-right: 18px; }
  .note-head h2 { font-size: 28px; }
  .code-copy { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grid-lines, .hero-aurora, .hero-rings i, .hero-sparks i,
  .note-art__orbit, .note-art__rays, .ticker__row, .hero__scroll span,
  .hero-orbit__ring, .hero-orbit__glow, .hero-scroll span { animation: none; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .cluster-card:hover { transform: none; }
}

/* ==========================================================================
   TECH REDESIGN
   Fixed chrome, cyan data accents, scanlines, radar hero, cut-corner panels.
   ========================================================================== */

:root {
  --bg: #05070a;
  --bg-2: #090d11;
  --bg-3: #0d1318;
  --paper: #05070a;
  --paper-2: #080c10;
  --ink: #e8f1f4;
  --ink-soft: #9fb0b6;
  --text: #e8f1f4;
  --muted: #7f8f96;
  --orange: #ff7a18;
  --amber: #ffb066;
  --cyan: #4de3ff;
  --line: rgba(120, 210, 230, 0.14);
  --line-ink: rgba(255, 255, 255, 0.12);
  --header-h: 68px;
}

html { overflow-x: clip; }
body {
  padding-top: var(--header-h);
  background:
    radial-gradient(52% 44% at 50% -8%, rgba(77, 227, 255, 0.09), transparent 65%),
    radial-gradient(42% 36% at 88% 0%, rgba(255, 122, 24, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 95; pointer-events: none;
  opacity: 0.22; mix-blend-mode: soft-light;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.035) 0 1px,
    transparent 1px 4px
  );
}
::selection { background: rgba(77, 227, 255, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2, .prose h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
main { animation: page-fade 420ms ease both; }
@keyframes page-fade { from { opacity: 0; } to { opacity: 1; } }

/* Fixed chrome ----------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(5, 7, 10, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.4);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 227, 255, 0.55), rgba(255, 122, 24, 0.55), transparent);
  opacity: 0.55;
}
.header-inner { height: var(--header-h); }
.site-header.is-scrolled .header-inner { height: 60px; }
.header-status {
  display: inline-flex; align-items: center; gap: 7px; margin-left: 18px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: #7f8f96;
}
.header-status i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan); animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 120; width: 100%; height: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  box-shadow: 0 0 14px rgba(77, 227, 255, 0.45);
}

/* Hero ------------------------------------------------------------------- */
.hero { min-height: calc(100vh - var(--header-h)); background: transparent; }
.hero .grid-lines {
  background-image:
    linear-gradient(to right, rgba(77, 227, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(77, 227, 255, 0.07) 1px, transparent 1px);
}
.hero-aurora {
  background:
    radial-gradient(52% 58% at 58% 10%, rgba(77, 227, 255, 0.16), transparent 68%),
    radial-gradient(38% 42% at 22% 18%, rgba(255, 122, 24, 0.1), transparent 70%);
}
.hero h1 { text-shadow: 0 0 50px rgba(77, 227, 255, 0.08); }
.hero h1 span {
  background: linear-gradient(100deg, #eaffff 0%, #4de3ff 34%, #ffb066 68%, #ff7a18 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: tech-gradient 9s ease-in-out infinite;
}
@keyframes tech-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-lead { color: #9fb0b6; }
.hero-contact { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: #7f8f96; }
.hero-stats dt { font-family: var(--mono); color: #f4fbfd; }
.hero-stats dd { color: var(--cyan); font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; }

.hero-orbit { transition: transform 260ms ease; transform-style: preserve-3d; }
.hero-orbit > * { z-index: 1; }
.hero-orbit::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(77, 227, 255, 0.2) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(77, 227, 255, 0.2) 50%, transparent 50.2%);
  mask-image: radial-gradient(circle, #000 0 56%, transparent 76%);
  -webkit-mask-image: radial-gradient(circle, #000 0 56%, transparent 76%);
}
.hero-orbit::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(77, 227, 255, 0.16) 82%, transparent 90%);
  mask-image: radial-gradient(circle, transparent 51%, #000 52% 55%, transparent 57%);
  -webkit-mask-image: radial-gradient(circle, transparent 51%, #000 52% 55%, transparent 57%);
  animation: hero-scan 7s linear infinite;
}
@keyframes hero-scan { to { transform: rotate(360deg); } }
.hero-orbit__ring { border-color: rgba(77, 227, 255, 0.2); }
.hero-orbit__ring::after { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.hero-orbit__ring.r3 { border-color: rgba(255, 122, 24, 0.3); }
.hero-orbit__glow { background: radial-gradient(circle, rgba(77, 227, 255, 0.16), rgba(255, 122, 24, 0.08), transparent 70%); }
.hero-orbit__logo { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 122, 24, 0.18); }
.hero-orbit__label {
  border-color: rgba(77, 227, 255, 0.24); background: rgba(5, 8, 11, 0.82);
  color: #c9f6ff; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
}
.hero-scroll { color: #6f8088; }
.hero-scroll span { background: linear-gradient(to bottom, var(--cyan), transparent); }

/* Section chrome --------------------------------------------------------- */
.section { padding-top: 100px; padding-bottom: 100px; }
.section-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.eyebrow {
  color: var(--cyan); font-family: var(--mono); letter-spacing: 0.18em;
  text-shadow: 0 0 18px rgba(77, 227, 255, 0.18);
}
.eyebrow::before { content: "// "; color: var(--orange); }
.section-head h2, .page-hero h1, .cta-inner h2 { color: #f4fbfd; }
.section-head p:not(.eyebrow) { color: #8fa0a6; }
.text-link { color: var(--cyan); }
.text-link:hover { color: #bff6ff; }

/* Panels / cards --------------------------------------------------------- */
.card, .cluster-card, .story-card, .contact-card {
  border-radius: 3px;
  border-color: var(--line);
  background-color: rgba(8, 13, 17, 0.78);
  background-image:
    linear-gradient(rgba(77, 227, 255, 0.55), rgba(77, 227, 255, 0.55)),
    linear-gradient(rgba(77, 227, 255, 0.55), rgba(77, 227, 255, 0.55)),
    linear-gradient(rgba(255, 122, 24, 0.5), rgba(255, 122, 24, 0.5)),
    linear-gradient(rgba(255, 122, 24, 0.5), rgba(255, 122, 24, 0.5)),
    linear-gradient(180deg, rgba(16, 26, 32, 0.72), rgba(5, 8, 11, 0.94));
  background-size: 14px 1px, 1px 14px, 14px 1px, 1px 14px, 100% 100%;
  background-position: left top, left top, right bottom, right bottom, 0 0;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.card:hover, .cluster-card:hover, .story-card:hover, .contact-card:hover {
  border-color: rgba(77, 227, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(77, 227, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.42);
}
.card::before, .cluster-card::before, .story-card::before, .contact-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(77, 227, 255, 0.07) 50%, transparent 100%);
  transform: translateY(-100%); transition: transform 700ms ease;
}
.card:hover::before, .cluster-card:hover::before, .story-card:hover::before, .contact-card:hover::before {
  transform: translateY(100%);
}
.card-kicker, .cluster-count, .story-card span, .contact-card span { color: var(--cyan); }
.card h3, .cluster-card h3, .story-card h3, .contact-card strong { color: #f4fbfd; }
.card p, .cluster-card p, .story-card p, .contact-card p { color: #8fa0a6; }
.card-meta { color: #6f8088; }
.card-arrow, .cluster-arrow { color: rgba(77, 227, 255, 0.7); }
.spot::after {
  background: radial-gradient(220px circle at var(--x) var(--y), rgba(77, 227, 255, 0.13), transparent 65%);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  border-radius: 2px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  padding: 14px 20px;
}
.btn-primary {
  background: linear-gradient(135deg, #ffb066, #ff5a00);
  color: #120800;
  box-shadow: 0 0 0 1px rgba(255, 122, 24, 0.35), 0 0 30px rgba(255, 122, 24, 0.18);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ffc48c, #ff6a12);
  box-shadow: 0 0 0 1px rgba(255, 122, 24, 0.5), 0 0 38px rgba(255, 122, 24, 0.26);
}
.btn-ghost { border-color: rgba(77, 227, 255, 0.28); color: var(--text); background: rgba(77, 227, 255, 0.04); }
.btn-ghost:hover { border-color: var(--cyan); background: rgba(77, 227, 255, 0.08); }
.site-nav .nav-cta { border-radius: 2px; background: linear-gradient(135deg, #ffb066, #ff5a00); color: #120800; }

/* Ticker ----------------------------------------------------------------- */
.ticker { background: #040608; border-color: var(--line); }
.ticker__row span { color: #8fa0a6; font-size: 10px; letter-spacing: 0.12em; }
.ticker__row i { color: var(--cyan); }

/* Page hero -------------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(77, 227, 255, 0.08), transparent 60%),
    radial-gradient(40% 60% at 10% 0%, rgba(255, 122, 24, 0.06), transparent 60%),
    transparent;
  color: var(--text);
}
.page-hero h1 span {
  background: linear-gradient(100deg, #eaffff, #4de3ff 48%, #ffb066 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .hero-lead { color: #9fb0b6; }

/* Dark article / legal pages -------------------------------------------- */
.theme-paper { background: transparent; color: var(--text); }
.theme-paper main { background: transparent; }
.theme-paper .article-head h1 { color: #f4fbfd; }
.theme-paper .article-desc { color: #9fb0b6; }
.theme-paper .article-meta, .theme-paper .breadcrumb { color: #7f8f96; }
.theme-paper .breadcrumb a { color: #9fb0b6; }
.theme-paper .prose { color: #c6d4d8; }
.theme-paper .prose h2, .theme-paper .prose h3 { color: #f4fbfd; }
.theme-paper .prose strong { color: #fff; }
.theme-paper .prose a { color: #ffb066; }
.theme-paper .prose blockquote { background: rgba(77, 227, 255, 0.05); border-color: var(--cyan); color: #b9c7cc; }
.theme-paper .prose code { background: rgba(255, 255, 255, 0.07); color: #ffcf9e; }
.theme-paper .prose pre { background: #020405; border: 1px solid var(--line); }
.theme-paper .prose th { background: rgba(255, 255, 255, 0.04); }
.theme-paper .prose th, .theme-paper .prose td { border-color: var(--line-ink); }
.theme-paper .prose hr { border-color: var(--line-ink); }
.theme-paper .article-summary { background: rgba(77, 227, 255, 0.05); border-color: var(--cyan); }
.theme-paper .summary-lead { color: #fff; }
.theme-paper .article-summary ul { color: #9fb0b6; }
.theme-paper .article-sources { border-color: var(--line-ink); }
.theme-paper .toc { border-color: var(--line-ink); }
.theme-paper .toc a { color: #7f8f96; }
.theme-paper .toc a:hover, .theme-paper .toc a.is-active { color: var(--cyan); border-color: var(--cyan); }
.theme-paper .related-section { background: #040608; border-color: var(--line); color: var(--text); }
.theme-paper .related-section .section-head h2 { color: #f4fbfd; }
.theme-paper .related-section .section-head p { color: var(--muted); }
.theme-paper .related-section .card { background-color: rgba(8, 13, 17, 0.8); border-color: var(--line); }
.theme-paper .related-section .card h3 { color: #f4fbfd; }
.theme-paper .related-section .card p, .theme-paper .related-section .card-meta { color: var(--muted); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #040608; border-color: var(--line); }
.site-footer::before {
  content: ""; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 227, 255, 0.4), rgba(255, 122, 24, 0.4), transparent);
}
.footer-grid h3 { color: var(--cyan); }
.footer-grid > div > a { color: #9fb0b6; }
.footer-grid > div > a:hover { color: #fff; }
.footer-brand p, .footer-contact { color: #7f8f96; }
.footer-cta { color: var(--cyan); }
.footer-legal { border-color: var(--line); color: #6f8088; }
.footer-legal a:hover { color: var(--cyan); }

/* Contact / CTA / FAQ ---------------------------------------------------- */
.about-band { border-color: var(--line); }
.cta-inner {
  border: 1px solid rgba(77, 227, 255, 0.24);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(77, 227, 255, 0.05), transparent 45%),
    radial-gradient(60% 120% at 80% 0%, rgba(255, 122, 24, 0.14), transparent 60%),
    rgba(8, 13, 17, 0.9);
}
.faq details { border-color: var(--line); background: rgba(8, 13, 17, 0.72); border-radius: 3px; }
.faq summary::after { color: var(--cyan); }
.contact-card strong { color: #f4fbfd; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1150px) {
  .header-status { display: none; }
}
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  body { padding-top: var(--header-h); }
  .site-nav {
    top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: #05070a; border-color: rgba(77, 227, 255, 0.2);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  }
}
@media (max-width: 640px) {
  .hero-orbit::before, .hero-orbit::after { opacity: 0.55; }
  .article-summary { padding: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-side .contact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  main, .hero h1 span, .hero-orbit::after, .header-status i { animation: none; }
  .hero-orbit { transition: none; }
  .card::before, .cluster-card::before, .story-card::before, .contact-card::before { display: none; }
  .btn-primary::after { display: none; }
}
