:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-deep: #02040a;
  --navy: #07111d;
  --charcoal: #11161f;
  --surface: rgba(15, 20, 30, 0.78);
  --surface-strong: rgba(20, 27, 39, 0.92);
  --border: rgba(180, 198, 220, 0.14);
  --border-strong: rgba(208, 180, 102, 0.32);
  --text: #f4f0e7;
  --muted: #a8b0bd;
  --soft: #d7dde7;
  --gold: #d8ad4f;
  --gold-bright: #f1cc72;
  --blue: #557fa7;
  --electric: #2fa8ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(47, 168, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 10% 2%, rgba(216, 173, 79, 0.12), transparent 24rem),
    linear-gradient(180deg, #06101c 0%, var(--bg) 34%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 4px;
}

.site-header,
.site-footer,
.section-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(180, 198, 220, 0.08);
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.96), rgba(5, 7, 11, 0.72));
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
}

.brand-monogram {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(216, 173, 79, 0.18), rgba(47, 168, 255, 0.08));
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a,
.site-footer a {
  min-height: 40px;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.site-nav a:hover,
.site-footer a:hover,
.email-link:hover {
  color: var(--gold-bright);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(216, 173, 79, 0.24);
  background: rgba(216, 173, 79, 0.055);
}

.section-shell {
  padding: clamp(76px, 8vw, 98px) 0;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(330px, 0.87fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
  min-height: calc(100vh - 78px);
  padding-top: 70px;
}

.hero-copy {
  max-width: 760px;
}

.doctrine-line {
  margin: 0 0 22px;
  color: var(--gold-bright);
  font-size: clamp(1rem, 2.6vw, 1.16rem);
  font-weight: 750;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.9rem, 6vw, 5.05rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 12px;
  color: var(--soft);
  font-size: 1.25rem;
  line-height: 1.18;
}

.hero-subheadline,
.section-heading p,
.framework-copy p,
.contact-section p {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-subheadline {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading p,
.framework-copy p,
.contact-section p,
.platform-hero-copy .hero-subheadline {
  max-width: 680px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 800;
  will-change: transform;
  transition:
    transform 190ms var(--ease),
    border-color 190ms var(--ease),
    background 190ms var(--ease),
    box-shadow 190ms var(--ease),
    color 190ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #11100c;
  box-shadow: 0 14px 42px rgba(216, 173, 79, 0.22);
}

.button-primary:hover {
  box-shadow: 0 18px 54px rgba(216, 173, 79, 0.3);
}

.button-secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
}

.button-secondary:hover {
  border-color: rgba(47, 168, 255, 0.42);
  background: rgba(47, 168, 255, 0.07);
}

.premium-card,
.step-card,
.platform-strip article,
.system-layer,
.testimonial-card {
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.premium-card:hover,
.platform-strip article:hover,
.system-layer:hover {
  border-color: rgba(216, 173, 79, 0.28);
  transform: translateY(-2px);
}

.systems-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 24% 20%, rgba(216, 173, 79, 0.15), transparent 13rem),
    radial-gradient(circle at 74% 70%, rgba(47, 168, 255, 0.18), transparent 14rem),
    linear-gradient(145deg, rgba(12, 20, 32, 0.94), rgba(3, 7, 13, 0.96));
  box-shadow: var(--shadow);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 78%);
}

.workflow-panel {
  position: absolute;
  width: min(42%, 190px);
  min-height: 82px;
  padding: 17px;
  border: 1px solid rgba(183, 201, 225, 0.15);
  background: rgba(7, 12, 20, 0.8);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.workflow-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-panel strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.panel-intake {
  top: 56px;
  left: 36px;
}

.panel-analysis {
  top: 160px;
  right: 42px;
}

.panel-approval {
  bottom: 152px;
  left: 50px;
}

.panel-execution {
  right: 44px;
  bottom: 54px;
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold-bright);
  background: var(--bg);
  box-shadow: 0 0 22px rgba(216, 173, 79, 0.56);
  transform: rotate(45deg);
}

.node-one {
  top: 132px;
  left: 48%;
}

.node-two {
  top: 278px;
  right: 33%;
  border-color: var(--electric);
  box-shadow: 0 0 22px rgba(47, 168, 255, 0.55);
}

.node-three {
  bottom: 196px;
  left: 35%;
}

.node-four {
  right: 18%;
  bottom: 148px;
  border-color: var(--electric);
}

.line {
  position: absolute;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(47, 168, 255, 0.72), rgba(216, 173, 79, 0.56), transparent);
}

.line-one {
  top: 142px;
  left: 39%;
  width: 190px;
  transform: rotate(24deg);
}

.line-two {
  top: 296px;
  left: 30%;
  width: 240px;
  transform: rotate(-20deg);
}

.line-three {
  right: 18%;
  bottom: 148px;
  width: 210px;
  transform: rotate(27deg);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.58fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading-wide {
  max-width: 820px;
  display: block;
}

.value-grid,
.use-case-grid {
  display: grid;
  gap: 16px;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.use-case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.premium-card,
.testimonial-card,
.step-card,
.framework-section,
.contact-section {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(18, 24, 34, 0.88), rgba(7, 11, 18, 0.84));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.2);
}

.premium-card {
  min-height: 220px;
  padding: 28px;
}

.premium-card p,
.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.value-card {
  border-top-color: var(--border-strong);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
}

.step-card {
  min-height: 280px;
  padding: 28px;
  border: 0;
  box-shadow: none;
}

.step-card + .step-card {
  border-left: 1px solid var(--border);
}

.step-number {
  display: block;
  margin-bottom: 54px;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.proof-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.testimonial-card {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(32px, 6vw, 58px);
  border-color: rgba(216, 173, 79, 0.22);
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--gold-bright), rgba(47, 168, 255, 0.7));
}

.testimonial-card p {
  margin-bottom: 24px;
  color: var(--soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.testimonial-card footer {
  color: var(--muted);
  font-weight: 750;
}

.framework-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.64fr);
  gap: 34px;
  align-items: center;
  padding: clamp(32px, 6vw, 62px);
}

.standard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.standard-badges span {
  border: 1px solid rgba(216, 173, 79, 0.28);
  background: rgba(216, 173, 79, 0.075);
  padding: 10px 12px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.contact-section {
  background:
    radial-gradient(circle at 92% 12%, rgba(47, 168, 255, 0.16), transparent 18rem),
    linear-gradient(145deg, rgba(22, 28, 39, 0.96), rgba(5, 8, 14, 0.96));
}

.contact-section .button {
  justify-self: end;
  min-width: 220px;
}

.contact-section h2 {
  max-width: 780px;
}

.email-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold-bright);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 22px;
  padding: 38px 0 46px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.05rem;
}

.site-footer p {
  margin-bottom: 6px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.9rem;
}

.platform-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 6vw, 74px);
  min-height: calc(100vh - 78px);
  padding-top: 72px;
}

.platform-hero-copy {
  max-width: 820px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(34px, 6vw, 74px);
  min-height: calc(88vh - 78px);
  padding-top: 72px;
}

.page-hero-copy {
  max-width: 840px;
}

.proof-signal,
.workflow-pattern {
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 90% 8%, rgba(47, 168, 255, 0.14), transparent 16rem),
    linear-gradient(145deg, rgba(18, 24, 34, 0.92), rgba(5, 8, 14, 0.92));
  box-shadow: var(--shadow);
}

.proof-signal {
  display: grid;
  gap: 14px;
  padding: clamp(26px, 5vw, 44px);
}

.proof-signal span,
.comparison-card span,
.evidence-placeholder span,
.translation-grid span,
.service-stack-card > span,
.case-study-step span,
.layer-grid span {
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-signal strong {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}

.proof-signal p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.workflow-pattern {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background-color: rgba(180, 198, 220, 0.12);
}

.workflow-pattern span {
  display: grid;
  min-height: 74px;
  place-items: center;
  background: linear-gradient(145deg, rgba(16, 22, 32, 0.96), rgba(5, 8, 14, 0.96));
  color: var(--soft);
  font-weight: 800;
}

.workflow-pattern span:nth-child(7) {
  grid-column: 1 / -1;
  color: var(--gold-bright);
}

.platform-map,
.platform-strip article,
.system-layer,
.supervision-section,
.deployment-section,
.developer-links {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(18, 24, 34, 0.9), rgba(5, 8, 14, 0.9));
}

.platform-map {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.platform-map::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 78%);
}

.map-row,
.map-core {
  position: relative;
  z-index: 1;
}

.map-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.map-row:not(.map-row-top) {
  grid-template-columns: 1fr;
}

.map-row span,
.map-core {
  border: 1px solid rgba(180, 198, 220, 0.15);
  background: rgba(2, 5, 10, 0.78);
  padding: 14px;
  color: var(--soft);
  font-weight: 760;
}

.map-core {
  display: grid;
  gap: 8px;
  min-height: 150px;
  align-content: center;
  border-color: rgba(216, 173, 79, 0.35);
  background:
    radial-gradient(circle at 85% 0%, rgba(47, 168, 255, 0.15), transparent 16rem),
    rgba(2, 5, 10, 0.86);
}

.map-core span {
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-core strong {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.04;
}

.platform-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.platform-strip article {
  min-height: 310px;
  padding: 28px;
}

.platform-strip span {
  display: block;
  margin-bottom: 62px;
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.platform-strip h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.platform-strip p,
.system-layer span,
.supervision-section p,
.continuity-section p,
.deployment-section p,
.developer-links p,
.deployment-steps {
  color: var(--muted);
}

.system-layers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.system-layer {
  display: grid;
  gap: 18px;
  min-height: 230px;
  padding: 26px;
  border: 0;
  background: linear-gradient(145deg, rgba(16, 22, 32, 0.95), rgba(5, 8, 14, 0.95));
}

.system-layer strong {
  color: var(--text);
  font-size: 1.1rem;
}

.supervision-section,
.deployment-section,
.developer-links {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.72fr);
  gap: 34px;
  align-items: center;
  padding: clamp(30px, 6vw, 58px);
}

.supervision-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.supervision-list span,
.developer-link-grid a {
  border: 1px solid rgba(216, 173, 79, 0.25);
  background: rgba(216, 173, 79, 0.07);
  padding: 11px 12px;
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 760;
}

.continuity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.deployment-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  font-size: 1.05rem;
}

.deployment-steps li::marker {
  color: var(--gold-bright);
  font-weight: 900;
}

.developer-links {
  background:
    radial-gradient(circle at 96% 12%, rgba(216, 173, 79, 0.11), transparent 17rem),
    linear-gradient(145deg, rgba(13, 18, 27, 0.94), rgba(4, 7, 13, 0.96));
}

.developer-link-grid {
  display: grid;
  gap: 10px;
}

.developer-link-grid a {
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
}

.developer-link-grid a:hover {
  color: var(--gold-bright);
  border-color: rgba(216, 173, 79, 0.45);
  background: rgba(216, 173, 79, 0.1);
}

.before-after-grid,
.translation-grid,
.foundry-section,
.evidence-section {
  display: grid;
  gap: 16px;
}

.before-after-grid,
.translation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-card,
.case-study-step,
.service-stack-card,
.layer-grid article,
.translation-grid article,
.evidence-placeholder {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(18, 24, 34, 0.9), rgba(5, 8, 14, 0.9));
}

.comparison-card {
  min-height: 270px;
  padding: clamp(26px, 4vw, 40px);
}

.comparison-card-after {
  border-color: rgba(216, 173, 79, 0.3);
  background:
    radial-gradient(circle at 88% 12%, rgba(216, 173, 79, 0.12), transparent 16rem),
    linear-gradient(145deg, rgba(18, 24, 34, 0.94), rgba(5, 8, 14, 0.94));
}

.comparison-card h3,
.case-study-step h3,
.service-stack-card h3 {
  margin-top: 24px;
}

.comparison-card p,
.case-study-step p,
.service-stack-card p,
.translation-grid p,
.layer-grid p,
.evidence-section p {
  color: var(--muted);
}

.evidence-section,
.foundry-section {
  grid-template-columns: minmax(0, 0.76fr) minmax(300px, 0.84fr);
  align-items: center;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 96% 8%, rgba(47, 168, 255, 0.12), transparent 18rem),
    linear-gradient(145deg, rgba(13, 18, 27, 0.94), rgba(4, 7, 13, 0.96));
  padding: clamp(30px, 6vw, 58px);
}

.evidence-grid {
  display: grid;
  gap: 12px;
}

.evidence-placeholder {
  min-height: 112px;
  padding: 20px;
}

.evidence-placeholder strong {
  display: block;
  margin-top: 18px;
  color: var(--soft);
  font-size: 1.1rem;
}

.case-study-grid,
.service-stack-grid,
.layer-grid {
  display: grid;
  gap: 16px;
}

.case-study-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-study-step {
  min-height: 250px;
  padding: 26px;
}

.translation-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: center;
}

.translation-grid article {
  padding: 24px;
}

.translation-grid article:last-child {
  border-color: rgba(216, 173, 79, 0.3);
}

.service-stack-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-stack-card {
  min-height: 390px;
  padding: 28px;
}

.service-stack-card ul {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.service-stack-card li::marker {
  color: var(--gold-bright);
}

.foundry-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  background: var(--border);
}

.foundry-flow li {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(5, 8, 14, 0.94);
  color: var(--soft);
  font-weight: 800;
  text-align: center;
}

.layer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.layer-grid article {
  min-height: 190px;
  padding: 24px;
}

.layer-grid p {
  margin-top: 18px;
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms var(--ease), transform 680ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-section,
  .platform-hero,
  .page-hero,
  .section-heading,
  .framework-section,
  .contact-section,
  .supervision-section,
  .deployment-section,
  .evidence-section,
  .foundry-section,
  .translation-section,
  .developer-links,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-section,
  .platform-hero,
  .page-hero {
    min-height: auto;
    padding-top: 48px;
  }

  .systems-visual {
    min-height: 440px;
  }

  .value-grid,
  .steps-grid,
  .use-case-grid,
  .platform-strip,
  .system-layers,
  .before-after-grid,
  .translation-grid,
  .service-stack-grid,
  .case-study-grid,
  .layer-grid,
  .continuity-grid {
    grid-template-columns: 1fr;
  }

  .foundry-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-card + .step-card {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  body {
    background:
      radial-gradient(circle at 92% 6%, rgba(47, 168, 255, 0.13), transparent 18rem),
      radial-gradient(circle at 6% 1%, rgba(216, 173, 79, 0.1), transparent 16rem),
      linear-gradient(180deg, #06101c 0%, var(--bg) 36%, var(--bg-deep) 100%);
  }

  .site-header,
  .site-footer,
  .section-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    position: sticky;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 10px;
  }

  .brand-mark {
    min-height: 36px;
    gap: 9px;
  }

  .brand-monogram {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 7px;
    border: 1px solid rgba(180, 198, 220, 0.12);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.76rem;
  }

  .section-shell {
    padding: 58px 0;
  }

  .hero-section {
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .platform-hero {
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .page-hero {
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .doctrine-line {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  h1 {
    margin-bottom: 18px;
    font-size: clamp(2.25rem, 10.8vw, 3rem);
    line-height: 1.03;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    line-height: 1.04;
  }

  h3 {
    font-size: 1.14rem;
  }

  .hero-subheadline,
  .section-heading p,
  .framework-copy p,
  .contact-section p {
    font-size: 1.03rem;
    line-height: 1.55;
  }

  .hero-subheadline {
    margin-bottom: 22px;
  }

  .cta-row,
  .contact-section .button {
    width: 100%;
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 56px;
    padding: 15px 18px;
    font-size: 0.96rem;
  }

  .systems-visual {
    min-height: 180px;
    opacity: 0.82;
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.26);
  }

  .platform-map {
    padding: 20px;
  }

  .map-row {
    grid-template-columns: 1fr;
  }

  .map-core {
    min-height: 120px;
  }

  .visual-grid {
    background-size: 32px 32px;
  }

  .workflow-panel {
    width: 44%;
    min-height: 54px;
    padding: 10px;
  }

  .workflow-panel span {
    margin-bottom: 2px;
    font-size: 0.61rem;
  }

  .workflow-panel strong {
    font-size: 0.78rem;
  }

  .panel-intake {
    top: 18px;
    left: 16px;
  }

  .panel-analysis {
    top: 54px;
    right: 16px;
  }

  .panel-approval {
    bottom: 52px;
    left: 16px;
  }

  .panel-execution {
    right: 16px;
    bottom: 18px;
  }

  .node,
  .line {
    opacity: 0.62;
  }

  .node-one {
    top: 68px;
  }

  .node-two {
    top: 92px;
  }

  .node-three {
    bottom: 72px;
  }

  .node-four {
    bottom: 54px;
  }

  .line-one {
    top: 74px;
    width: 124px;
  }

  .line-two {
    top: 108px;
    width: 150px;
  }

  .line-three {
    bottom: 58px;
    width: 130px;
  }

  .section-heading {
    gap: 14px;
    margin-bottom: 22px;
  }

  .premium-card,
  .step-card,
  .platform-strip article,
  .system-layer,
  .service-stack-card,
  .case-study-step,
  .comparison-card,
  .layer-grid article {
    min-height: auto;
    padding: 22px;
  }

  .platform-strip span {
    margin-bottom: 34px;
  }

  .value-grid,
  .use-case-grid {
    gap: 14px;
  }

  .premium-card p,
  .step-card p {
    font-size: 0.98rem;
    line-height: 1.52;
  }

  .steps-grid {
    gap: 0;
  }

  .step-number {
    margin-bottom: 24px;
  }

  .framework-section,
  .contact-section,
  .testimonial-card,
  .supervision-section,
  .deployment-section,
  .evidence-section,
  .foundry-section,
  .developer-links {
    padding: 24px;
  }

  .proof-signal {
    padding: 24px;
  }

  .workflow-pattern,
  .foundry-flow {
    grid-template-columns: 1fr;
  }

  .workflow-pattern span:nth-child(7) {
    grid-column: auto;
  }

  .contact-section .button {
    justify-self: stretch;
    min-width: 0;
  }

  .testimonial-card p {
    font-size: clamp(1.32rem, 6.5vw, 1.62rem);
    line-height: 1.22;
  }

  .standard-badges {
    gap: 8px;
  }

  .standard-badges span {
    padding: 9px 10px;
    font-size: 0.84rem;
  }
}

@media (max-width: 370px) {
  .site-header,
  .site-footer,
  .section-shell {
    width: min(calc(100% - 20px), var(--max-width));
  }

  .site-nav a {
    padding-inline: 3px;
    font-size: 0.72rem;
  }

  h1 {
    font-size: clamp(2.08rem, 10.5vw, 2.35rem);
  }

  .hero-subheadline,
  .section-heading p,
  .framework-copy p,
  .contact-section p {
    font-size: 1rem;
  }

  .systems-visual {
    min-height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
