/* ==========================================================
   ARCFOUNDRY
   Complexity, engineered into clarity.
   ========================================================== */

:root {
  --background: #06101d;
  --background-deep: #030a12;
  --background-soft: #0a1726;
  --surface: rgba(10, 27, 45, 0.72);
  --surface-solid: #0c1b2c;

  --text: #f1f6fa;
  --muted: #95a8bb;
  --muted-bright: #b9c8d6;

  --accent: #63cfff;
  --accent-bright: #bcecff;
  --accent-dark: #071725;
  --ember: #ff8a4c;

  --line: rgba(124, 185, 221, 0.14);
  --line-strong: rgba(124, 195, 235, 0.3);

  --shadow:
    0 24px 80px rgba(0, 0, 0, 0.28);

  --max-width: 1180px;
  --header-height: 88px;

  --transition:
    180ms ease;
}

/* ==========================================================
   RESET
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    linear-gradient(
      var(--line) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      var(--line) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 72% 12%,
      rgba(27, 116, 166, 0.2),
      transparent 32%
    ),
    var(--background);
  background-size:
    48px 48px,
    48px 48px,
    auto,
    auto;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

p {
  margin-top: 0;
}

::selection {
  color: var(--accent-dark);
  background: var(--accent-bright);
}

/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  color: var(--background);
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================
   SHARED LAYOUT
   ========================================================== */

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

.section {
  position: relative;
  padding: 140px 0;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 70px;
}

.section-heading-wide {
  max-width: 920px;
}

.section-heading h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 720;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.section-heading > p:last-child,
.contact-copy > p:last-child {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(6, 16, 29, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 8px rgba(99, 207, 255, 0.16))
    drop-shadow(0 0 16px rgba(255, 138, 76, 0.08));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.61rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  position: relative;
  color: var(--muted-bright);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    color var(--transition),
    transform var(--transition);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-contact {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
}

.site-nav .nav-contact::after {
  display: none;
}

.site-nav .nav-contact:hover {
  color: var(--accent-bright);
  background: rgba(99, 207, 255, 0.06);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--text);
  transition:
    transform var(--transition),
    opacity var(--transition);
}

/* ==========================================================
   HERO
   ========================================================== */

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 12%;
  right: -15%;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(99, 207, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(350px, 0.85fr);
  gap: 80px;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding: 90px 0 70px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(4rem, 7.6vw, 7.7rem);
  font-weight: 740;
  letter-spacing: -0.065em;
  line-height: 0.89;
}

.hero h1 span {
  display: block;
  color: var(--accent-bright);
}

.hero-copy {
  max-width: 670px;
  margin-top: 40px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.hero-copy p {
  margin-bottom: 14px;
}

.hero-copy .hero-belief {
  margin: 27px 0;
  color: var(--muted-bright);
  font-size: 1.06em;
}

.hero-copy .hero-belief strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  font-size: 0.88rem;
  font-weight: 760;
  text-decoration: none;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    box-shadow var(--transition);
}

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

.button-primary {
  color: var(--accent-dark);
  background: var(--accent);
  border-color: var(--accent);
}

.button-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 10px 40px rgba(99, 207, 255, 0.18);
}

.button-secondary {
  color: var(--text);
  background: rgba(99, 207, 255, 0.035);
}

.button-secondary:hover {
  border-color: rgba(99, 207, 255, 0.6);
  background: rgba(99, 207, 255, 0.075);
}

/* ==========================================================
   HERO BLUEPRINT
   ========================================================== */

.hero-blueprint {
  position: relative;
  aspect-ratio: 0.9;
  min-height: 530px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(
      rgba(99, 207, 255, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(99, 207, 255, 0.07) 1px,
      transparent 1px
    ),
    rgba(6, 18, 31, 0.62);
  background-size: 24px 24px;
  box-shadow: var(--shadow);
}

.hero-blueprint::before,
.hero-blueprint::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero-blueprint::before {
  inset: 10%;
  border: 1px dashed rgba(99, 207, 255, 0.16);
  border-radius: 50%;
}

.hero-blueprint::after {
  inset: 19%;
  border: 1px solid rgba(99, 207, 255, 0.1);
  border-radius: 50%;
}

.blueprint-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--accent);
  opacity: 0.65;
}

.corner-top-left {
  top: 20px;
  left: 20px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner-top-right {
  top: 20px;
  right: 20px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner-bottom-left {
  bottom: 20px;
  left: 20px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner-bottom-right {
  right: 20px;
  bottom: 20px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.blueprint-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 78%;
  height: 78%;
  transform: translate(-50%, -50%);
}

.blueprint-crosshair::before,
.blueprint-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(99, 207, 255, 0.12);
}

.blueprint-crosshair::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.blueprint-crosshair::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
}

.blueprint-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.blueprint-label {
  position: absolute;
  top: 43px;
  left: 42px;
  color: var(--muted);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blueprint-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(99, 207, 255, 0.5);
  background: rgba(99, 207, 255, 0.045);
  transform: rotate(45deg);
}

.blueprint-core img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  transform: rotate(-45deg);
  filter:
    drop-shadow(0 0 12px rgba(99, 207, 255, 0.2))
    drop-shadow(0 0 20px rgba(255, 138, 76, 0.14));
}

.blueprint-orbit {
  position: absolute;
  inset: 17%;
  border: 1px dashed rgba(99, 207, 255, 0.21);
  border-radius: 50%;
  animation: orbit-spin 40s linear infinite;
}

.blueprint-orbit span {
  position: absolute;
  padding: 5px 8px;
  color: var(--muted-bright);
  background: var(--background-soft);
  border: 1px solid var(--line);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: orbit-counter-spin 40s linear infinite;
}

.blueprint-orbit span:nth-child(1) {
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.blueprint-orbit span:nth-child(2) {
  top: 50%;
  right: -28px;
  transform: translateY(-50%);
}

.blueprint-orbit span:nth-child(3) {
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.blueprint-orbit span:nth-child(4) {
  top: 50%;
  left: -29px;
  transform: translateY(-50%);
}

.blueprint-title-block {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 0.65fr;
  border-top: 1px solid var(--line-strong);
  background: rgba(3, 12, 21, 0.88);
}

.blueprint-title-block > div {
  min-height: 66px;
  padding: 12px 14px;
  border-right: 1px solid var(--line);
}

.blueprint-title-block > div:last-child {
  border-right: 0;
}

.blueprint-title-block span,
.blueprint-title-block strong {
  display: block;
}

.blueprint-title-block span {
  margin-bottom: 6px;
  color: var(--muted);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.52rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.blueprint-title-block strong {
  font-size: 0.67rem;
  letter-spacing: 0.03em;
}

.hero-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 34px;
  color: var(--muted);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 90px;
  height: 1px;
  background: var(--line-strong);
}

/* ==========================================================
   COMPLEXITY STAGE
   ========================================================== */

.problem-section {
  background:
    linear-gradient(
      180deg,
      rgba(5, 14, 25, 0.78),
      rgba(7, 20, 34, 0.93)
    );
}

.complexity-stage {
  display: grid;
  grid-template-columns: 1fr 90px 0.92fr;
  gap: 36px;
  align-items: center;
  min-height: 520px;
  padding: 56px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(
      rgba(99, 207, 255, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(99, 207, 255, 0.045) 1px,
      transparent 1px
    ),
    rgba(5, 15, 26, 0.74);
  background-size: 24px 24px;
  box-shadow: var(--shadow);
}

.complexity-items {
  position: relative;
  min-height: 390px;
}

.complexity-item {
  position: absolute;
  min-width: 150px;
  padding: 14px 17px;
  color: var(--muted-bright);
  background: rgba(13, 32, 51, 0.9);
  border: 1px solid rgba(148, 174, 198, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.complexity-item span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.54rem;
}

.item-one {
  top: 3%;
  left: 8%;
  transform: rotate(-2deg);
}

.item-two {
  top: 28%;
  right: 3%;
  transform: rotate(2deg);
}

.item-three {
  top: 47%;
  left: 0;
  transform: rotate(1deg);
}

.item-four {
  right: 12%;
  bottom: 8%;
  transform: rotate(-2deg);
}

.item-five {
  top: 13%;
  right: 17%;
  transform: rotate(1deg);
}

.item-six {
  bottom: 9%;
  left: 19%;
  transform: rotate(2deg);
}

.alignment-path {
  position: relative;
  height: 100%;
  min-height: 300px;
}

.alignment-path::before,
.alignment-path::after {
  content: "";
  position: absolute;
  top: 50%;
}

.alignment-path::before {
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    transparent
  );
}

.alignment-path::after {
  right: -1px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: translateY(-4px) rotate(45deg);
}

.alignment-path span {
  position: absolute;
  top: calc(50% - 2px);
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent);
  animation: data-travel 2.6s ease-in-out infinite;
}

.system-result {
  padding: 28px;
  border: 1px solid rgba(99, 207, 255, 0.55);
  background: rgba(99, 207, 255, 0.055);
}

.system-result > p {
  margin: 0 0 24px;
  color: var(--accent-bright);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.system-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.system-result-grid span {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 12px;
  color: var(--muted-bright);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.73rem;
}

.statement-panel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  margin-top: 38px;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.statement-panel p,
.statement-panel strong {
  margin: 0;
}

.statement-panel p {
  color: var(--muted);
}

.statement-panel strong {
  color: var(--accent-bright);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

/* ==========================================================
   METHOD
   ========================================================== */

.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.method-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 25px;
  min-height: 260px;
  padding: 38px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(8, 23, 38, 0.48);
  transition:
    background var(--transition),
    transform var(--transition);
}

.method-card:hover {
  background: rgba(13, 37, 59, 0.68);
}

.method-number {
  color: var(--accent);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.69rem;
  letter-spacing: 0.15em;
}

.method-card h3 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.method-card p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* ==========================================================
   SYSTEMS
   ========================================================== */

.systems-section {
  background: rgba(3, 11, 20, 0.5);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.system-card {
  display: flex;
  flex-direction: column;
  min-height: 570px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(
      rgba(99, 207, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(99, 207, 255, 0.04) 1px,
      transparent 1px
    ),
    rgba(7, 22, 36, 0.78);
  background-size: 24px 24px;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.system-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 207, 255, 0.55);
  box-shadow: var(--shadow);
}

.system-card-future {
  opacity: 0.76;
}

.system-card-header,
.system-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.system-card-header {
  min-height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line-strong);
}

.status {
  color: var(--muted);
}

.status-live {
  color: var(--accent-bright);
}

.status-live::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px var(--accent);
}

.system-card-body {
  flex: 1;
  padding: 34px 28px;
}

.system-industry {
  margin-bottom: 13px;
  color: var(--accent);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.system-card h3 {
  margin: 0 0 25px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  letter-spacing: -0.05em;
}

.system-card-body > p:not(.system-industry) {
  color: var(--muted);
  line-height: 1.75;
}

.system-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}

.system-features li {
  min-height: 55px;
  display: flex;
  align-items: center;
  padding: 10px;
  color: var(--muted-bright);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.69rem;
}

.system-card-footer {
  min-height: 58px;
  padding: 0 20px;
  color: var(--muted);
  border-top: 1px solid var(--line-strong);
}

/* ==========================================================
   PRINCIPLE
   ========================================================== */

.principle-section {
  overflow: hidden;
}

.principle-panel {
  position: relative;
  max-width: 1040px;
  padding: 70px;
  border-left: 1px solid var(--accent);
}

.principle-panel::before {
  content: "AF / PRINCIPLE 001";
  position: absolute;
  top: 75px;
  right: 0;
  color: rgba(99, 207, 255, 0.18);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
}

.principle-panel blockquote {
  margin: 0;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.principle-panel blockquote span,
.principle-panel blockquote strong {
  display: block;
}

.principle-panel blockquote span {
  color: var(--muted-bright);
}

.principle-panel blockquote strong {
  color: var(--accent-bright);
}

.principle-panel > p:last-child {
  max-width: 650px;
  margin: 45px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

/* ==========================================================
   CONTACT
   ========================================================== */

.contact-section {
  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(27, 116, 166, 0.17),
      transparent 31%
    ),
    rgba(4, 13, 23, 0.65);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 100px;
  align-items: end;
}

.contact-action {
  padding-bottom: 6px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 82px;
  padding: 0 4px;
  color: var(--accent-bright);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 720;
  text-decoration: none;
  transition:
    padding var(--transition),
    color var(--transition);
}

.contact-link:hover {
  padding-right: 12px;
  padding-left: 12px;
  color: var(--text);
}

.contact-action p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.7;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
  padding: 75px 0 28px;
  background: var(--background-deep);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 70px;
  padding-bottom: 70px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-grid p {
  color: var(--muted);
}

.footer-belief p,
.footer-belief strong {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  letter-spacing: -0.025em;
}

.footer-belief strong {
  display: block;
  color: var(--accent-bright);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 28px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 25px;
  color: rgba(149, 168, 187, 0.7);
  border-top: 1px solid var(--line);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================
   REVEAL ANIMATIONS
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

/* ==========================================================
   KEYFRAMES
   ========================================================== */

@keyframes orbit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-counter-spin {
  from {
    rotate: 0deg;
  }

  to {
    rotate: -360deg;
  }
}

@keyframes data-travel {
  0% {
    left: 0;
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    left: calc(100% - 5px);
    opacity: 0;
  }
}

/* ==========================================================
   LEGAL DOCUMENTS
   ========================================================== */

.legal-hero {
  padding: 120px 0 70px;
  border-bottom: 1px solid var(--line-strong);
  background:
    radial-gradient(
      circle at 78% 25%,
      rgba(27, 116, 166, 0.17),
      transparent 28%
    ),
    rgba(4, 13, 23, 0.42);
}

.legal-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 740;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.legal-metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  max-width: 760px;
  margin-top: 65px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.legal-metadata > div {
  min-height: 78px;
  padding: 15px 18px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.legal-metadata span,
.legal-metadata strong {
  display: block;
}

.legal-metadata span {
  margin-bottom: 8px;
  color: var(--muted);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-metadata strong {
  color: var(--muted-bright);
  font-size: 0.76rem;
}

.legal-section {
  padding: 90px 0 140px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 760px);
  gap: clamp(55px, 9vw, 130px);
  align-items: start;
}

.legal-index {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  max-height: calc(100vh - var(--header-height) - 68px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: rgba(5, 16, 28, 0.72);
}

.legal-index > p {
  margin-bottom: 17px;
  color: var(--accent);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-index nav {
  display: grid;
}

.legal-index a {
  padding: 10px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.61rem;
  line-height: 1.45;
  text-decoration: none;
  transition:
    color var(--transition),
    padding var(--transition);
}

.legal-index a:hover {
  padding-left: 5px;
  color: var(--accent-bright);
}

.legal-content {
  min-width: 0;
}

.legal-block {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 28px;
  padding: 0 0 75px;
  margin-bottom: 75px;
  border-bottom: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.legal-block:last-child {
  margin-bottom: 0;
}

.legal-number {
  padding-top: 8px;
  color: var(--accent);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.legal-block h2 {
  margin: 0 0 28px;
  font-size: clamp(1.9rem, 4vw, 3.15rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1;
}

.legal-block h3 {
  margin: 42px 0 16px;
  color: var(--muted-bright);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.legal-block p,
.legal-block li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.9;
}

.legal-block p {
  margin-bottom: 20px;
}

.legal-block ul {
  margin: 25px 0 30px;
  padding: 0;
  list-style: none;
}

.legal-block li {
  position: relative;
  padding: 10px 0 10px 25px;
  border-top: 1px solid var(--line);
}

.legal-block li:last-child {
  border-bottom: 1px solid var(--line);
}

.legal-block li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.legal-block .legal-emphasis {
  margin: 32px 0;
  padding: 22px 25px;
  color: var(--accent-bright);
  background: rgba(99, 207, 255, 0.055);
  border-left: 1px solid var(--accent);
  font-size: 1.05rem;
  font-weight: 680;
}

.legal-contact {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 23, 38, 0.48);
  font-style: normal;
}

.legal-contact strong {
  margin-bottom: 5px;
}

.legal-contact a {
  width: fit-content;
  color: var(--accent-bright);
  text-decoration: none;
}

.legal-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-index {
    position: static;
    max-height: none;
  }

  .legal-index nav {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}

@media (max-width: 600px) {
  .legal-hero {
    padding: 80px 0 55px;
  }

  .legal-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  .legal-metadata {
    grid-template-columns: 1fr;
    margin-top: 45px;
  }

  .legal-section {
    padding: 60px 0 95px;
  }

  .legal-index nav {
    grid-template-columns: 1fr;
  }

  .legal-block {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 55px;
    margin-bottom: 55px;
  }

  .legal-number {
    padding-top: 0;
  }
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1000px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 70px;
    padding-top: 100px;
  }

  .hero-blueprint {
    width: min(100%, 620px);
    min-height: 600px;
  }

  .complexity-stage {
    grid-template-columns: 1fr;
  }

  .complexity-items {
    min-height: 430px;
  }

  .alignment-path {
    min-height: 80px;
  }

  .alignment-path::before {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    height: auto;
    background: linear-gradient(
      transparent,
      var(--accent),
      transparent
    );
  }

  .alignment-path::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-4px) rotate(135deg);
  }

  .alignment-path span {
    top: 0;
    left: calc(50% - 2px);
    animation: data-travel-vertical 2.6s ease-in-out infinite;
  }

  .systems-grid {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-nav {
    grid-column: 1 / -1;
  }

  @keyframes data-travel-vertical {
    0% {
      top: 0;
      opacity: 0;
    }

    15% {
      opacity: 1;
    }

    85% {
      opacity: 1;
    }

    100% {
      top: calc(100% - 5px);
      opacity: 0;
    }
  }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 720px) {
  :root {
    --header-height: 72px;
  }

  .site-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .section {
    padding: 95px 0;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .site-nav {
  position: fixed;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 200;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;

  padding: 28px 20px;

  background:
    linear-gradient(
      rgba(3, 10, 18, 0.98),
      rgba(3, 10, 18, 0.98)
    ),
    var(--background-deep);

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55);

  transform: translateX(100%);
  transition: transform 260ms ease;
}
   
   .site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #030a12;
}

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a,
.site-nav .nav-contact {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 0 12px;

  color: var(--text);
  background: rgba(10, 23, 38, 0.7);

  border: 0;
  border-bottom: 1px solid var(--line-strong);

  font-size: 1.1rem;
}

  .site-nav a::after {
    display: none;
  }

  .hero-layout {
    min-height: auto;
    padding: 80px 0 65px;
  }

  .hero h1 {
    font-size: clamp(3.45rem, 16vw, 5.3rem);
  }

  .hero-blueprint {
    min-height: 450px;
  }

  .blueprint-orbit {
    inset: 20%;
  }

  .blueprint-orbit span:nth-child(2) {
    right: -45px;
  }

  .blueprint-orbit span:nth-child(4) {
    left: -46px;
  }

  .blueprint-title-block {
    grid-template-columns: 1fr 0.75fr;
  }

  .blueprint-title-block > div:nth-child(3) {
    display: none;
  }

  .hero-footer {
    justify-content: space-between;
  }

  .hero-scroll-line {
    flex: 1;
  }

  .complexity-stage {
    min-height: auto;
    padding: 22px;
  }

  .complexity-items {
    min-height: 540px;
  }

  .complexity-item {
    min-width: 140px;
  }

  .item-one {
    top: 2%;
    left: 1%;
  }

  .item-two {
    top: 21%;
    right: 0;
  }

  .item-three {
    top: 42%;
    left: 3%;
  }

  .item-four {
    right: 2%;
    bottom: 3%;
  }

  .item-five {
    top: 10%;
    right: 2%;
  }

  .item-six {
    bottom: 19%;
    left: 2%;
  }

  .statement-panel {
    display: block;
  }

  .statement-panel strong {
    display: block;
    margin-top: 12px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    grid-template-columns: 45px 1fr;
    min-height: auto;
    padding: 28px 22px;
  }

  .principle-panel {
    padding: 45px 20px 45px 28px;
  }

  .principle-panel blockquote {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .principle-panel::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .footer-nav {
    grid-column: auto;
  }

  .footer-bottom {
    display: block;
  }

  .footer-bottom span {
    display: block;
    margin-top: 10px;
  }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

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

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

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