:root {
  color-scheme: dark;
  --bg: #0a0f13;
  --bg-deep: #070b0e;
  --surface: #10171c;
  --surface-2: #151e24;
  --surface-3: #1a252c;
  --ink: #f3ecdf;
  --ink-strong: #fffaf0;
  --muted: #a7b0b4;
  --quiet: #758087;
  --line: rgba(235, 231, 216, 0.14);
  --line-strong: rgba(235, 231, 216, 0.26);
  --gold: #c89b45;
  --gold-light: #e2bd72;
  --gold-soft: rgba(200, 155, 69, 0.13);
  --cyan: #79d5d1;
  --cyan-strong: #44bfbd;
  --cyan-soft: rgba(121, 213, 209, 0.12);
  --violet: #9d88e7;
  --violet-soft: rgba(157, 136, 231, 0.12);
  --rose: #d28792;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --header-height: 72px;
  --shell: min(1180px, calc(100vw - 48px));
  --radius: 22px;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --display: "Fraunces", Georgia, serif;
  --font-display: var(--display);
  --ink-muted: var(--muted);
  --violet-light: var(--violet);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f0e8;
  --bg-deep: #ebe7dd;
  --surface: #faf8f2;
  --surface-2: #eeeae0;
  --surface-3: #e6e1d5;
  --ink: #1c2428;
  --ink-strong: #10171b;
  --muted: #5d686d;
  --quiet: #7d878a;
  --line: rgba(28, 36, 40, 0.14);
  --line-strong: rgba(28, 36, 40, 0.26);
  --gold: #9b712a;
  --gold-light: #b88735;
  --gold-soft: rgba(155, 113, 42, 0.11);
  --cyan: #227d7c;
  --cyan-strong: #126f6f;
  --cyan-soft: rgba(34, 125, 124, 0.1);
  --violet: #6450ae;
  --violet-soft: rgba(100, 80, 174, 0.1);
  --rose: #9f5c68;
  --shadow: 0 24px 80px rgba(57, 48, 32, 0.13);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(121, 213, 209, 0.07), transparent 24rem),
    radial-gradient(circle at 86% 34%, rgba(157, 136, 231, 0.06), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

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

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

.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: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink-strong);
  color: var(--bg);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.page-progress {
  position: fixed;
  z-index: 1001;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transform: scaleX(0);
  transform-origin: left center;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(125%);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand {
  min-height: 44px;
}

.brand-name,
.footer-brand strong {
  color: var(--ink-strong);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-meta {
  color: var(--quiet);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

.footer-meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--ink-strong);
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 24px var(--gold-soft);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  position: absolute;
  content: "";
  background: var(--gold-light);
}

.brand-mark::before {
  width: 12px;
  height: 1px;
}

.brand-mark::after {
  width: 1px;
  height: 12px;
}

.brand-mark span::before {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
}

.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  content: "";
  background: var(--gold);
  transition: right 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink-strong);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.site-nav .nav-contact {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
}

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

.theme-toggle,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  cursor: pointer;
}

.theme-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.theme-toggle span {
  position: absolute;
  line-height: 1;
  transition: opacity 160ms ease, transform 160ms ease;
}

.theme-sun {
  opacity: 0;
  transform: rotate(-35deg) scale(0.7);
}

.theme-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-moon {
  opacity: 0;
  transform: rotate(35deg) scale(0.7);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.menu-toggle > span:not(.sr-only) {
  position: absolute;
  width: 16px;
  height: 1px;
  background: var(--ink);
  transition: transform 180ms ease;
}

.menu-toggle > span:nth-of-type(2) { transform: translateY(-3px); }
.menu-toggle > span:nth-of-type(3) { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: rotate(-45deg); }

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--header-height);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}

.hero-art-wrap {
  position: absolute;
  inset: var(--header-height) 0 auto;
  height: clamp(320px, 52vh, 560px);
  overflow: hidden;
}

.hero-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.76) contrast(1.05) brightness(0.72);
  transform: scale(1.015);
}

[data-theme="light"] .hero-art {
  filter: saturate(0.78) contrast(0.98) brightness(0.96);
}

.hero-art-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 12, 0.18), transparent 34%, transparent 66%, rgba(5, 9, 12, 0.2)),
    linear-gradient(to bottom, rgba(7, 11, 14, 0.02), rgba(7, 11, 14, 0.15) 58%, var(--bg-deep));
}

[data-theme="light"] .hero-art-shade {
  background:
    linear-gradient(90deg, rgba(235, 231, 221, 0.08), transparent 34%, transparent 66%, rgba(235, 231, 221, 0.08)),
    linear-gradient(to bottom, rgba(235, 231, 221, 0), rgba(235, 231, 221, 0.04) 58%, var(--bg-deep));
}

.hero-art-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 12, 15, 0.72);
  color: #f8f4e8;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-art-label span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}

.label-human { left: 5vw; top: 22%; }
.label-gateway { left: 50%; top: 12%; transform: translateX(-50%); }
.label-machine { right: 5vw; top: 22%; }
.label-gateway span { background: var(--gold); box-shadow: 0 0 9px var(--gold); }
.label-machine span { background: var(--violet); box-shadow: 0 0 9px var(--violet); }

.hero-copy-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: clamp(42px, 7vw, 100px);
  width: var(--shell);
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto;
  padding: clamp(430px, 53vh, 585px) 0 54px;
}

.eyebrow,
.kicker,
.panel-kicker {
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
}

.eyebrow span {
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero h1,
.section h2 {
  color: var(--ink-strong);
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(3.4rem, 7.2vw, 7rem);
}

.hero h1 em,
.section h2 em {
  color: var(--gold-light);
  font-weight: 500;
}

.hero-lede {
  max-width: 780px;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.14rem, 1.7vw, 1.42rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button-primary {
  border-color: color-mix(in srgb, var(--gold) 72%, var(--line));
  background: linear-gradient(135deg, var(--gold), #a97629);
  color: #0b0f11;
  box-shadow: 0 14px 32px var(--gold-soft);
}

.button-secondary {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.hero-signal {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-signal > div {
  display: grid;
  grid-template-columns: 35px 1fr;
  align-items: center;
  min-height: 61px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.hero-signal > div:last-child {
  border-bottom: 0;
}

.hero-signal span {
  color: var(--gold-light);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.hero-signal strong {
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.section {
  position: relative;
  padding: clamp(90px, 11vw, 150px) 0;
  border-bottom: 1px solid var(--line);
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: clamp(50px, 10vw, 145px);
  align-items: start;
}

.section h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5.4vw, 5.2rem);
}

.section h3 {
  color: var(--ink-strong);
  font-family: var(--display);
  font-weight: 520;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.kicker {
  margin-bottom: 18px;
}

.intro-copy {
  padding-top: 38px;
}

.intro-copy p,
.cgp-heading > p,
.horizon-copy > p,
.contact-copy > p {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.72;
}

.intro-copy .lead,
.cgp-heading .lead {
  color: var(--ink);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.shift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 72px;
}

.shift-card {
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface-2) 96%, transparent), color-mix(in srgb, var(--surface) 94%, transparent));
  transition: transform 220ms ease, border-color 220ms ease;
}

.shift-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.card-index {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 62px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 750;
}

.shift-card h3 {
  margin-bottom: 12px;
  font-size: 1.48rem;
}

.shift-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.section-cgp {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, var(--cyan-soft), transparent 34rem),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
}

.cgp-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: end;
  gap: clamp(48px, 9vw, 120px);
  margin-bottom: 66px;
}

.cgp-heading > p {
  margin-bottom: 8px;
}

.gateway-explorer {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  box-shadow: var(--shadow);
}

.gateway-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--bg-deep);
}

.gateway-tab {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.gateway-tab > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--quiet);
  font-size: 0.62rem;
  font-weight: 750;
}

.gateway-tab strong {
  align-self: end;
  color: inherit;
  font-size: 0.86rem;
  letter-spacing: 0.025em;
}

.gateway-tab small {
  align-self: start;
  color: var(--quiet);
  font-size: 0.68rem;
}

.gateway-tab:hover,
.gateway-tab:focus-visible,
.gateway-tab.is-active {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-strong);
  outline: none;
}

.gateway-tab.is-active > span {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-light);
}

.gateway-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
  min-height: 500px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at center, var(--cyan-soft), transparent 28%),
    var(--bg-deep);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.gateway-visual::before,
.gateway-visual::after {
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: 34%;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.22;
  transition: opacity 300ms ease;
}

.gateway-visual::before { left: -16%; background: var(--gold); }
.gateway-visual::after { right: -16%; background: var(--violet); }

.gateway-visual[data-active-stage="cross"]::before { opacity: 0.38; }
.gateway-visual[data-active-stage="coordinate"]::after { opacity: 0.38; }

.world {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  padding: 56px;
}

.world-label {
  position: absolute;
  top: 4px;
  color: var(--quiet);
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.world-human .world-label { left: 56px; }
.world-machine .world-label { right: 56px; }

.node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(190px, 100%);
  min-height: 54px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 12px 28px rgba(0,0,0,0.16);
}

.world-machine .node {
  justify-self: end;
}

.node i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan-soft);
}

.world-machine .node i {
  border-color: var(--violet);
  box-shadow: 0 0 12px var(--violet-soft);
}

.node b {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.node-person { transform: translateX(12%); }
.node-org { transform: translateX(-4%); }
.node-tools { transform: translateX(18%); }
.node-agents { transform: translateX(-12%); }
.node-services { transform: translateX(4%); }
.node-machines { transform: translateX(-18%); }

.gateway-core {
  position: relative;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: auto;
}

.gateway-core::before {
  position: absolute;
  inset: 20px;
  content: "";
  border: 1px solid color-mix(in srgb, var(--gold) 66%, transparent);
  border-radius: 27px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  box-shadow: 0 0 50px var(--gold-soft), inset 0 0 40px rgba(255,255,255,0.025);
  transform: rotate(45deg);
}

.gateway-core-inner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
}

.gateway-monogram {
  margin-bottom: 6px;
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 620;
  letter-spacing: 0.04em;
}

.gateway-core-inner strong {
  color: var(--ink);
  font-size: 0.64rem;
  line-height: 1.25;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gateway-orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-a { inset: 1px; animation: orbit-spin 18s linear infinite; }
.orbit-b { inset: 12px; border-style: dashed; animation: orbit-spin 22s linear reverse infinite; }

.gateway-orbit::before {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.orbit-b::before {
  top: 12%;
  left: auto;
  right: 12%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.gateway-pulse {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.pulse-a { left: -14px; animation: pulse-drift-left 2.8s ease-in-out infinite; }
.pulse-b { right: -14px; background: var(--violet); box-shadow: 0 0 12px var(--violet); animation: pulse-drift-right 2.8s ease-in-out 1.1s infinite; }

.flow-line {
  position: absolute;
  z-index: 1;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.52;
}

.flow-left { left: 22%; right: 50%; }
.flow-right { left: 50%; right: 22%; background: linear-gradient(90deg, transparent, var(--violet), transparent); }

.gateway-panels {
  margin-top: 18px;
}

.gateway-panel {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  column-gap: 30px;
  row-gap: 12px;
  align-items: start;
  min-height: 170px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
}

.gateway-panel[hidden] {
  display: none;
}

.gateway-panel h3 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}

.gateway-panel > p:last-child {
  grid-column: 2;
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1rem;
}

.section-principles {
  background: linear-gradient(180deg, var(--bg), var(--bg-deep));
}

.principle-stage {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
  margin-top: 80px;
}

.principle-compass {
  position: relative;
  width: min(450px, 100%);
  aspect-ratio: 1;
  margin: auto;
}

.compass-ring,
.compass-axis {
  position: absolute;
  pointer-events: none;
}

.compass-ring {
  border: 1px solid var(--line);
  border-radius: 50%;
}

.ring-one { inset: 4%; }
.ring-two { inset: 22%; border-style: dashed; }

.compass-axis {
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.axis-x { top: 50%; left: 3%; right: 3%; height: 1px; }
.axis-y { top: 3%; bottom: 3%; left: 50%; width: 1px; background: linear-gradient(transparent, var(--line-strong), transparent); }

.compass-center {
  position: absolute;
  z-index: 2;
  inset: 34%;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-soft), var(--surface));
  box-shadow: 0 0 44px var(--gold-soft);
  text-align: center;
}

.compass-center span {
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 1.45rem;
}

.compass-center strong {
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compass-point {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.compass-point b {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.point-top { top: 0; left: 50%; transform: translateX(-50%); }
.point-right { right: -3%; top: 50%; transform: translateY(-50%); }
.point-bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
.point-left { left: -3%; top: 50%; transform: translateY(-50%); }

.principle-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.principle-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.principle-list article > span {
  color: var(--gold-light);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.principle-list h3 {
  margin-bottom: 6px;
  font-size: 1.28rem;
}

.principle-list p {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-horizon {
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 44%, var(--violet-soft), transparent 32rem),
    radial-gradient(circle at 24% 54%, var(--cyan-soft), transparent 30rem),
    var(--bg-deep);
}

.horizon-field {
  position: absolute;
  inset: 0;
  opacity: 0.64;
}

.horizon-field::before {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.horizon-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  background: var(--bg-deep);
  box-shadow: 0 0 24px var(--cyan-soft);
}

.hn-1 { left: 8%; top: 24%; }
.hn-2 { left: 22%; top: 68%; width: 9px; height: 9px; }
.hn-3 { left: 38%; top: 34%; border-color: var(--gold); }
.hn-4 { right: 38%; top: 65%; border-color: var(--violet); }
.hn-5 { right: 22%; top: 30%; }
.hn-6 { right: 8%; top: 70%; width: 9px; height: 9px; border-color: var(--gold); }

.horizon-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  transform-origin: left;
}

.hl-1 { left: 9%; top: 26%; width: 34%; transform: rotate(12deg); }
.hl-2 { left: 23%; top: 68%; width: 30%; transform: rotate(-20deg); }
.hl-3 { right: 19%; top: 31%; width: 27%; transform: rotate(16deg); }
.hl-4 { right: 8%; top: 70%; width: 33%; transform: rotate(-16deg); }

.horizon-copy {
  position: relative;
  z-index: 3;
  max-width: 910px;
  text-align: center;
}

.horizon-copy h2 {
  max-width: none;
  margin-bottom: 30px;
  font-size: clamp(3rem, 6vw, 6.5rem);
}

.horizon-copy > p:last-child {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.18rem;
}

.section-contact {
  padding: clamp(80px, 10vw, 130px) 0;
  background:
    radial-gradient(circle at 14% 40%, var(--cyan-soft), transparent 28rem),
    radial-gradient(circle at 84% 60%, var(--violet-soft), transparent 28rem),
    var(--bg-deep);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(60px, 10vw, 140px);
  align-items: end;
  padding: clamp(36px, 6vw, 78px);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.contact-card h2 {
  font-size: clamp(2.65rem, 5vw, 5.1rem);
}

.contact-copy .button {
  margin-top: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  min-height: 120px;
  padding: 24px max(24px, calc((100vw - 1320px) / 2));
  background: var(--bg-deep);
}

.site-footer p {
  margin: 0;
  color: var(--quiet);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.site-footer p:nth-child(2) {
  text-align: center;
}

.site-footer p:last-child {
  text-align: right;
}

.site-footer .brand-mark {
  width: 24px;
  height: 24px;
}

.back-to-top {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.reveal.is-visible {
  animation: reveal-in 620ms ease both;
}

.shift-card:nth-child(2).is-visible { animation-delay: 80ms; }
.shift-card:nth-child(3).is-visible { animation-delay: 160ms; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes reveal-in {
  from {
    opacity: 0.35;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-drift-left {
  0%, 100% { transform: translateX(-20px); opacity: 0; }
  45% { opacity: 1; }
  70% { transform: translateX(32px); opacity: 0; }
}

@keyframes pulse-drift-right {
  0%, 100% { transform: translateX(20px); opacity: 0; }
  45% { opacity: 1; }
  70% { transform: translateX(-32px); opacity: 0; }
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .site-header {
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    padding: 0 18px;
  }

  .menu-toggle {
    display: inline-grid;
    grid-column: 3;
  }

  .theme-toggle { grid-column: 4; }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 14px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child { border-bottom: 0; }
  .site-nav .nav-contact { border: 0; border-radius: 0; }

  .hero {
    min-height: auto;
  }

  .hero-art-wrap {
    position: relative;
    inset: auto;
    height: 390px;
  }

  .hero-copy-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 38px 0 50px;
  }

  .hero-signal {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-signal > div {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 3px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .hero-signal > div:last-child { border-right: 0; }

  .two-column,
  .cgp-heading,
  .principle-stage,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .intro-copy { padding-top: 0; }

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

  .shift-card {
    min-height: 220px;
  }

  .card-index { margin-bottom: 42px; }

  .gateway-visual {
    grid-template-columns: 1fr 140px 1fr;
    min-height: 440px;
  }

  .world { padding: 44px 22px; }
  .world-human .world-label { left: 22px; }
  .world-machine .world-label { right: 22px; }
  .node { padding: 9px 10px; }
  .node b { font-size: 0.63rem; }

  .gateway-core {
    width: 135px;
    height: 135px;
  }

  .gateway-core::before { inset: 17px; }

  .gateway-panel {
    grid-template-columns: 120px 1fr;
  }

  .gateway-panel > p:last-child {
    grid-column: 2;
  }

  .principle-compass { width: min(420px, 86vw); }

  .contact-copy { max-width: 620px; }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    padding: 35px 20px;
    text-align: center;
  }

  .site-footer p,
  .site-footer p:nth-child(2),
  .site-footer p:last-child { text-align: center; }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
    --header-height: 64px;
  }

  .brand-name { font-size: 0.82rem; }
  .theme-toggle, .menu-toggle { width: 38px; height: 38px; }

  .hero-art-wrap { height: 310px; }
  .hero-art-label { font-size: 0.52rem; }
  .label-human { left: 12px; top: 16px; }
  .label-gateway { top: 16px; }
  .label-machine { right: 12px; top: 16px; }

  .hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero-lede { font-size: 1.08rem; }

  .hero-actions { display: grid; }
  .button { width: 100%; }

  .hero-signal { grid-template-columns: 1fr; }
  .hero-signal > div {
    grid-template-columns: 35px 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .hero-signal > div:last-child { border-bottom: 0; }

  .section { padding: 78px 0; }
  .section h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .shift-grid { margin-top: 46px; }

  .gateway-explorer { padding: 10px; border-radius: 19px; }

  .gateway-tabs {
    grid-template-columns: 1fr;
  }

  .gateway-tab {
    min-height: 58px;
  }

  .gateway-visual {
    grid-template-columns: 1fr 94px 1fr;
    min-height: 390px;
    background-size: 36px 36px, 36px 36px, auto, auto;
  }

  .world {
    gap: 12px;
    padding: 42px 8px;
  }

  .world-label { display: none; }

  .node {
    justify-content: center;
    width: 100%;
    min-height: 47px;
    padding: 7px 6px;
  }

  .node b { font-size: 0.54rem; text-align: center; }
  .node i { display: none; }
  .node-person, .node-org, .node-tools, .node-agents, .node-services, .node-machines { transform: none; }

  .gateway-core { width: 90px; height: 90px; }
  .gateway-core::before { inset: 11px; border-radius: 18px; }
  .gateway-monogram { margin-bottom: 0; font-size: 1.05rem; }
  .gateway-core-inner strong { display: none; }
  .gateway-pulse { display: none; }

  .gateway-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px;
  }

  .gateway-panel > p:last-child { grid-column: 1; }
  .gateway-panel h3 { font-size: 1.6rem; }

  .principle-stage { margin-top: 54px; }
  .principle-compass { width: 82vw; }
  .compass-point { min-width: 88px; min-height: 30px; padding: 5px 8px; }
  .compass-point b { font-size: 0.53rem; }
  .point-left { left: -7%; }
  .point-right { right: -7%; }

  .section-horizon { min-height: 650px; }
  .horizon-copy h2 { font-size: clamp(2.8rem, 13vw, 4.7rem); }

  .contact-card { padding: 28px; }

  .back-to-top { right: 14px; bottom: 14px; }
}

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