/* TroyByte visual system */
:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg-soft: #111722;
  --surface: #171e2a;
  --surface-2: #202938;
  --ink: #090c12;
  --ink-2: #c8d0dc;
  --muted: #96a1b2;
  --line: rgba(247, 242, 232, 0.13);
  --line-strong: rgba(247, 242, 232, 0.26);
  --blue: #4b74ff;
  --blue-dark: #9bb2ff;
  --lime: #c8ff3d;
  --lime-soft: #33431b;
  --rust: #e07b52;
  --paper: #f7f2e8;
  --paper-2: #202938;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-hard: 8px 8px 0 rgba(3, 5, 9, 0.92);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --shell: min(1120px, calc(100vw - 40px));
  --header-h: 76px;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); text-size-adjust: 100%; }
section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 4%, rgba(200, 255, 61, 0.1), transparent 28rem),
    radial-gradient(circle at 92% 9%, rgba(75, 116, 255, 0.13), transparent 30rem),
    linear-gradient(180deg, var(--bg) 0%, #0e141e 48%, #090d14 100%);
  color: var(--paper);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.125rem);
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: 8px;
}
.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;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--lime);
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }
.section-pad { padding: clamp(3.5rem, 5.5vw, 5.5rem) 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: rgba(11, 15, 23, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.1);
}
.site-header.is-scrolled {
  background: rgba(9, 12, 18, 0.95);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 800; letter-spacing: -0.04em; font-size: 1.15rem; }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  grid-template-rows: repeat(2, 10px);
  gap: 3px;
  padding: 7px;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}
.brand-mark span { background: var(--paper); border-radius: 3px; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { background: var(--blue); }
.site-nav { display: flex; align-items: center; gap: 0.35rem; }
.site-nav a {
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 700;
}
.site-nav a:hover { background: rgba(247, 242, 232, 0.08); color: var(--paper); }
.site-nav .nav-cta { background: var(--lime); color: var(--ink); border: 1px solid var(--lime); }
.site-nav .nav-cta:hover { background: var(--blue-dark); color: var(--ink); border-color: var(--blue-dark); }
.nav-toggle { display: none; width: 46px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); position: relative; }
.nav-toggle span:not(.sr-only) { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform 180ms ease, top 180ms ease; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(42deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-42deg); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.theme-toggle:hover { background: var(--surface-2); border-color: var(--lime); }
.theme-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.hero { position: relative; isolation: isolate; padding: clamp(3.4rem, 6vw, 5.25rem) 0 1.5rem; min-height: auto; }
.hero-grid, .contact-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); }
p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; overflow-wrap: normal; word-break: normal; line-height: 0.96; letter-spacing: -0.065em; }
h1 { max-width: 11ch; font-size: clamp(4rem, 7vw, 6.3rem); }
h1 em { font-style: normal; color: var(--blue); text-shadow: 0.035em 0.035em 0 var(--lime); }
h2 { max-width: 18ch; font-size: clamp(2.25rem, 4.2vw, 4.25rem); line-height: 0.99; letter-spacing: -0.055em; text-wrap: balance; }
h3 { font-size: clamp(1.45rem, 2vw, 2.1rem); letter-spacing: -0.045em; line-height: 1.04; }
.hero-lede { max-width: 38rem; margin: 1.5rem 0 0; color: var(--ink-2); font-size: clamp(1.16rem, 1vw + 0.95rem, 1.55rem); line-height: 1.42; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 52px;
  padding: 0.9rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.button-primary { background: var(--lime); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--blue-dark); font-weight: 800; text-decoration: underline; text-decoration-thickness: 0.11em; text-underline-offset: 0.28em; }
.text-link:hover { color: var(--paper); }

.hero-system {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #070a10;
  color: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 8px 8px 0 #030509;
  overflow: hidden;
}
.system-bar, .system-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.8vw, 0.78rem);
  color: rgba(247, 242, 232, 0.68);
}
.system-bar { border-bottom: 1px solid var(--line); }
.system-footer { flex-wrap: wrap; border-top: 1px solid var(--line); }
.system-footer span { display: inline-flex; align-items: center; gap: 0.4rem; }
.system-footer i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(200,255,61,0.7); }
.status { display: inline-flex; align-items: center; gap: 0.4rem; }
.status i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.build-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(150px, 0.85fr);
  min-height: 370px;
  background-image: radial-gradient(circle at 18px 18px, rgba(247,242,232,0.1) 1px, transparent 1.5px);
  background-size: 28px 28px;
}
.build-editor { min-width: 0; padding: 1.15rem; border-right: 1px solid var(--line); background: rgba(13, 18, 28, 0.84); }
.editor-heading { display: flex; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: #111722; color: var(--muted); font-family: var(--mono); font-size: 0.68rem; }
.editor-heading span:first-child { color: var(--paper); }
.code-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0a0f17; }
.code-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; min-height: 3.65rem; border-bottom: 1px solid var(--line); }
.code-list li:last-child { border-bottom: 0; }
.code-list li > span { align-self: stretch; display: grid; place-items: center; border-right: 1px solid var(--line); color: #647086; font-family: var(--mono); font-size: 0.65rem; }
.code-list code { min-width: 0; padding: 0.7rem; color: #8f9aab; font-family: var(--mono); font-size: clamp(0.62rem, 1vw, 0.72rem); white-space: nowrap; }
.code-list code b { color: var(--blue-dark); font-weight: 700; }
.build-flow { display: grid; align-content: center; gap: 0.45rem; padding: 1rem; background: rgba(7, 10, 16, 0.46); }
.flow-step { display: flex; align-items: center; gap: 0.65rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.flow-step-live { border-color: rgba(200,255,61,0.6); background: linear-gradient(135deg, rgba(200,255,61,0.13), var(--surface)); }
.flow-icon { flex: 0 0 auto; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 7px; background: var(--blue); color: white; font-family: var(--mono); font-size: 0.58rem; font-weight: 700; }
.flow-step-live .flow-icon { background: var(--lime); color: var(--ink); }
.flow-step strong, .flow-step small { display: block; }
.flow-step strong { font-size: 0.78rem; line-height: 1.2; }
.flow-step small { margin-top: 0.18rem; color: var(--muted); font-family: var(--mono); font-size: 0.58rem; }
.flow-arrow { color: var(--lime); font-family: var(--mono); line-height: 1; text-align: center; }
.capability-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(2.5rem, 4vw, 4rem); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); box-shadow: 6px 6px 0 #030509; overflow: hidden; }
.capability-strip span { padding: 1rem; text-align: center; font-family: var(--mono); font-size: clamp(0.7rem, 1vw, 0.9rem); font-weight: 700; border-right: 1px solid var(--line); }
.capability-strip span:last-child { border-right: 0; }

.operator {
  background:
    radial-gradient(circle at 14% 18%, rgba(203, 255, 61, 0.08), transparent 24rem),
    radial-gradient(circle at 90% 80%, rgba(75, 116, 255, 0.12), transparent 28rem),
    #070a10;
  color: var(--paper);
}
.operator-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.operator-copy h2 { max-width: 13ch; }
.operator-copy > p { max-width: 38rem; margin: 1.4rem 0 0; color: rgba(255, 250, 240, 0.72); font-size: 1.08rem; }
.operator-profile { padding: 0.4rem 0 0.4rem clamp(1.5rem, 4vw, 3.5rem); border-left: 1px solid rgba(247, 242, 232, 0.22); }
.operator-profile h3 { font-size: clamp(2rem, 3vw, 3.1rem); }
.operator-role { margin: 0.65rem 0 0; color: rgba(255, 250, 240, 0.78); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.4; }
.operator-location { margin: 0.3rem 0 0; color: rgba(255, 250, 240, 0.58); font-size: 0.95rem; }
.operator-profile-copy { max-width: 32rem; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(247, 242, 232, 0.14); color: rgba(255, 250, 240, 0.72); }
.operator-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 1.25rem; }
.operator-links .text-link { min-height: 44px; color: #9bb2ff; }
.operator-links .text-link:hover { color: var(--lime); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr); gap: 2rem; align-items: end; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.section-head > p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.section-pad.services { padding-bottom: clamp(2.5rem, 4vw, 3.5rem); background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
.service-card, .process-grid li, .project-form {
  border: 1px solid var(--line-strong);
  background: rgba(23, 30, 42, 0.9);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.service-card { position: relative; padding: clamp(1.1rem, 2.4vw, 1.7rem); border-radius: var(--radius); min-height: 100%; }
.service-card:nth-child(2) { transform: translateY(2rem); background: var(--surface-2); color: var(--paper); }
.service-card:nth-child(2) p, .service-card:nth-child(2) li { color: var(--ink-2); }
.card-number { position: absolute; top: 1rem; right: 1rem; color: var(--muted); font-family: var(--mono); font-weight: 700; }
.service-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.4rem; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 1.5rem; font-weight: 700; }
.service-card p { color: var(--muted); }
.service-card ul { margin: 1.3rem 0 0; padding: 0; list-style: none; }
.service-card li { position: relative; padding-left: 1.1rem; margin-top: 0.6rem; color: var(--ink-2); }
.service-card li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.4rem; height: 0.4rem; background: var(--blue); border-radius: 50%; }
.specialty-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgba(247, 242, 232, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 84% 12%, rgba(75, 116, 255, 0.2), transparent 22rem),
    linear-gradient(135deg, #080c13, #151d2a);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.specialty-card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(247, 242, 232, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 242, 232, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(120deg, transparent 15%, black 100%);
  content: "";
}
.specialty-copy, .specialty-list { position: relative; z-index: 1; }
.specialty-card h3 { max-width: 15ch; font-size: clamp(1.85rem, 3vw, 3.2rem); text-wrap: balance; }
.specialty-card p { max-width: 40rem; color: rgba(255, 250, 240, 0.74); }
.specialty-card .button { margin-top: 1rem; }
.specialty-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.specialty-list li {
  position: relative;
  padding: 0.85rem 0.9rem 0.85rem 2.1rem;
  border: 1px solid rgba(247, 242, 232, 0.14);
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.06);
  color: rgba(255, 250, 240, 0.82);
}
.specialty-list li::before { position: absolute; top: 1.15rem; left: 0.9rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lime); content: ""; }

.evidence { background: linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.evidence-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.25rem, 2.8vw, 2rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(23, 30, 42, 0.9);
  color: var(--paper);
  box-shadow: var(--shadow);
}
.evidence-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--blue); content: ""; }
.evidence-stat { display: block; margin-bottom: 0.65rem; color: var(--blue-dark); font-family: var(--mono); font-size: clamp(1.2rem, 2.4vw, 1.75rem); line-height: 1.15; }
.evidence-card h3 { max-width: 18ch; }
.evidence-card > p, .evidence-wide-copy p { color: var(--muted); }
.evidence-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 0.4rem; min-height: 44px; margin-top: auto; color: var(--lime); font-weight: 800; text-decoration: underline; text-underline-offset: 0.25em; }
.evidence-link:hover { color: var(--blue-dark); }
.evidence-card-wide .evidence-link:hover { color: #9bb2ff; }
.evidence-card-wide .evidence-stat { color: #9bb2ff; }
.evidence-card-wide .evidence-wide-copy p { color: rgba(255, 250, 240, 0.72); }
.evidence-card-wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(2rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 84% 12%, rgba(75, 116, 255, 0.22), transparent 24rem),
    #080c13;
}
.evidence-card-wide::before { background: linear-gradient(90deg, var(--blue), var(--lime)); }
.evidence-wide-copy { display: flex; flex-direction: column; justify-content: center; }
.evidence-wide-copy p { margin-top: 0; }



.process { background: var(--bg); }
.process-grid { counter-reset: process; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.process-grid li { padding: 1.2rem; border-radius: var(--radius); }
.process-grid span { display: block; margin-bottom: 1.5rem; color: var(--blue-dark); font-family: var(--mono); font-weight: 700; }
.process-grid h3 { font-size: clamp(1.25rem, 1.6vw, 1.6rem); }
.process-grid p { color: var(--muted); }

.contact { position: relative; isolation: isolate; background: #070a10; color: var(--paper); }
.contact-grid { opacity: 0.16; mask-image: none; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header-h) + 2rem); }
.contact-copy h2 { max-width: 12ch; }
.contact-copy p { max-width: 34rem; color: rgba(255,250,240,0.74); font-size: 1.12rem; }
.direct-email { display: inline-flex; margin-top: 1rem; color: var(--lime); font-weight: 800; text-decoration: underline; text-underline-offset: 0.25em; }
.direct-email:hover { color: #9bb2ff; }
.contact-trust { display: grid; gap: 0.65rem; max-width: 32rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.contact-trust li { display: flex; align-items: center; gap: 0.75rem; color: rgba(255, 250, 240, 0.82); }
.contact-trust span { display: grid; flex: 0 0 auto; place-items: center; width: 2rem; height: 2rem; border: 1px solid rgba(247, 242, 232, 0.2); border-radius: 50%; color: var(--lime); font-family: var(--mono); font-size: 0.62rem; font-weight: 700; }
.project-form { display: grid; gap: 0.8rem; padding: clamp(1rem, 2vw, 1.5rem); border-color: rgba(255,255,255,0.2); border-radius: var(--radius); background: rgba(255,250,240,0.08); backdrop-filter: blur(12px); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.project-form label { display: grid; gap: 0.35rem; }
.project-form label span { color: rgba(255,250,240,0.86); font-size: 0.94rem; font-weight: 800; }
.project-form small { color: rgba(255,250,240,0.55); font-weight: 500; }
input, textarea, select {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px;
  background: rgba(255,250,240,0.94);
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.form-submit { justify-self: start; margin-top: 0.2rem; }
.form-submit:disabled { cursor: wait; opacity: 0.68; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.form-note, .form-status { margin: 0; color: rgba(255,250,240,0.66); font-size: 0.85rem; line-height: 1.45; }
.form-status:not(:empty) { padding: 0.8rem 1rem; border: 1px solid rgba(203,255,61,0.45); border-radius: 14px; color: var(--lime); }
.form-status[data-state="error"] { border-color: rgba(255,168,145,0.55); color: #ffb49f; }

.site-footer { padding: 2rem 0; background: #0f131b; color: rgba(255,250,240,0.74); }
.footer-row { display: grid; grid-template-columns: auto minmax(160px, 1fr) auto auto; gap: 1rem 1.5rem; align-items: center; }
.footer-brand { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.footer-links a { color: var(--paper); font-weight: 700; }
.footer-links a:hover { color: var(--lime); }
.copyright { margin: 0; font-family: var(--mono); font-size: 0.8rem; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f0e4;
  --bg-soft: #fff9ec;
  --surface: #fffaf0;
  --surface-2: #efe7d7;
  --ink-2: #313847;
  --muted: #667082;
  --line: rgba(20, 24, 33, 0.16);
  --line-strong: rgba(20, 24, 33, 0.34);
  --blue-dark: #1439ba;
  --shadow: 0 24px 70px rgba(20, 24, 33, 0.12);
}
html[data-theme="light"] body {
  background:
    radial-gradient(circle at 8% 4%, rgba(203, 255, 61, 0.24), transparent 26rem),
    radial-gradient(circle at 92% 9%, rgba(35, 92, 255, 0.13), transparent 28rem),
    linear-gradient(180deg, var(--bg) 0%, #f9f3e8 48%, #efe6d4 100%);
  color: var(--ink);
}
html[data-theme="light"] .site-header { background: rgba(246, 240, 228, 0.86); }
html[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 249, 236, 0.95);
  box-shadow: 0 10px 34px rgba(20, 24, 33, 0.09);
}
html[data-theme="light"] .site-nav a { color: var(--ink-2); }
html[data-theme="light"] .site-nav a:hover { background: rgba(20, 24, 33, 0.07); color: var(--ink); }
html[data-theme="light"] .site-nav .nav-cta { color: var(--ink); }
html[data-theme="light"] .theme-toggle { background: rgba(255, 250, 240, 0.78); color: var(--ink); }
html[data-theme="light"] .theme-toggle:hover { background: white; }
html[data-theme="light"] .capability-strip {
  background: rgba(255, 250, 240, 0.78);
  color: var(--ink);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .site-nav .nav-cta:hover { background: var(--blue-dark); color: white; border-color: var(--blue-dark); }
html[data-theme="light"] .service-card,
html[data-theme="light"] .process-grid li {
  background: rgba(255, 250, 240, 0.82);
  color: var(--ink);
  box-shadow: var(--shadow);
}
html[data-theme="light"] .service-card:nth-child(2) {
  background: var(--ink);
  color: var(--paper);
}
html[data-theme="light"] .service-card:nth-child(2) p,
html[data-theme="light"] .service-card:nth-child(2) li { color: rgba(255, 250, 240, 0.72); }
html[data-theme="light"] .text-link:hover { color: var(--ink); }
html[data-theme="light"] .operator-links .text-link:hover { color: var(--lime); }
html[data-theme="light"] .project-form { background: rgba(255, 250, 240, 0.08); color: var(--paper); }

@media (max-width: 920px) {
  :root { --shell: min(100vw - 32px, 720px); }
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    inset: calc(100% + 10px) 16px auto;
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: rgba(17, 23, 34, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
  }
  .site-nav.is-open, [data-nav].is-open { opacity: 1; transform: translateY(0); pointer-events: auto; visibility: visible; }
  .site-nav a { padding: 0.85rem 1rem; }
  .site-nav .theme-toggle { width: 100%; justify-content: flex-start; padding: 0.85rem 1rem; }
  html[data-theme="light"] .site-nav { background: rgba(255, 249, 236, 0.98); }
  .hero { min-height: auto; }
  .hero-layout, .section-head, .contact-layout { grid-template-columns: 1fr; }
  .operator-layout { grid-template-columns: 1fr; gap: 2rem; }
  .operator-profile { padding: 2rem 0 0; border-top: 1px solid rgba(247, 242, 232, 0.22); border-left: 0; }
  .hero-system { transform: none; }
  .capability-strip { grid-template-columns: repeat(2, 1fr); border-radius: 24px; }
  .capability-strip span:nth-child(2) { border-right: 0; }
  .capability-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(2) { transform: none; }
  .specialty-card { grid-template-columns: 1fr; }
  .evidence-card-wide { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-copy { position: static; }
  .footer-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100vw - 28px); --header-h: 68px; }
  body { overflow-x: hidden; }
  .section-pad { padding: 3.25rem 0; }
  .brand { font-size: 1.05rem; }
  h1 { font-size: clamp(3rem, 15vw, 4rem); }
  h2 { font-size: clamp(2rem, 8.5vw, 2.65rem); line-height: 1; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-card-wide { grid-column: auto; }
  .hero { padding-top: 2.5rem; }
  .hero-actions, .field-row { display: grid; grid-template-columns: 1fr; }
  .button, .text-link { width: 100%; justify-content: center; }
  .operator-links .text-link { width: auto; justify-content: flex-start; }
  .build-workspace { grid-template-columns: 1fr; }
  .build-editor { display: none; }
  .build-flow { padding: 1rem; }
  .system-footer { justify-content: flex-start; }
  .capability-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 20px; }
  .capability-strip span { border-right: 1px solid var(--line); border-bottom: 0; }
  .capability-strip span:nth-child(2n) { border-right: 0; }
  .capability-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .specialty-list { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .process-grid li { padding: 1rem; }
  .process-grid p { font-size: 0.9rem; line-height: 1.45; }
  .project-form { border-radius: 22px; }
  .form-submit { width: 100%; }
}

@media (max-width: 360px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-grid p { font-size: 0.95rem; }
}

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