:root {
  color-scheme: dark;
  --ink: #f8f5ec;
  --muted: rgba(248, 245, 236, 0.68);
  --quiet: rgba(248, 245, 236, 0.43);
  --ground: #030303;
  --cyan: #62f0ff;
  --amber: #f4c45d;
  --red: #ff6a5c;
  --green: #79e18c;
  --scroll: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--ground);
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(270deg, rgba(3, 3, 3, 0.98), rgba(3, 3, 3, 0.64) 46%, rgba(3, 3, 3, 0.18)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.023) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 28px),
    var(--ground);
  color: var(--ink);
  font-family:
    Assistant,
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
  letter-spacing: 0;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(270deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.26) 48%, transparent 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 25%, transparent 70%, rgba(0, 0, 0, 0.58)),
    linear-gradient(90deg, rgba(98, 240, 255, 0.08), transparent 26%, transparent 72%, rgba(244, 196, 93, 0.08));
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

#gen1-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #030303;
}

.site-header {
  position: fixed;
  inset: 28px 32px auto 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: var(--ink);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: inherit;
  direction: ltr;
  text-decoration: none;
}

.brand span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(248, 245, 236, 0.34);
  border-radius: 50%;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
}

.brand strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.9rem;
}

.header-nav a {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: rgba(244, 196, 93, 0.72);
  content: "";
  transition: transform 180ms ease;
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-nav .nav-contact {
  color: var(--ink);
  font-weight: 650;
}

.header-nav .nav-zuga {
  color: var(--ink);
  font-weight: 650;
}

.header-nav .nav-zuga::before {
  display: inline-block;
  margin-left: 7px;
  color: var(--amber);
  content: "∞";
}

.header-nav .nav-contact::before {
  display: inline-block;
  margin-left: 7px;
  color: var(--amber);
  content: "↯";
}

.page-shell {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 112px 32px 42px;
  align-items: center;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.32) 46%, transparent 76%);
}

.hero-copy {
  width: min(760px, 100%);
  justify-self: start;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 1rem;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(4.1rem, 10vw, 9.8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

.he-line {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 650;
  line-height: 1.16;
}

.summary {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.4vw, 1.2rem);
  line-height: 1.74;
}

.signal-formula {
  display: grid;
  gap: 8px;
  width: min(680px, 100%);
  margin-top: 30px;
  padding-right: 18px;
  border-right: 1px solid rgba(244, 196, 93, 0.5);
  color: rgba(248, 245, 236, 0.82);
  font-family:
    "Cascadia Mono",
    "Segoe UI Mono",
    Consolas,
    monospace;
  font-size: 0.92rem;
  line-height: 1.6;
}

.signal-formula span {
  overflow-wrap: anywhere;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 140px;
  padding: 0 22px;
  border: 1px solid rgba(248, 245, 236, 0.34);
  border-radius: 2px;
  background: rgba(248, 245, 236, 0.08);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(98, 240, 255, 0.72);
  background: rgba(98, 240, 255, 0.13);
  outline: none;
  transform: translateY(-1px);
}

.button.primary {
  border-color: rgba(244, 196, 93, 0.58);
  background: rgba(244, 196, 93, 0.12);
}

.pendulum-readout {
  position: absolute;
  right: auto;
  left: clamp(32px, 7vw, 108px);
  bottom: clamp(76px, 11vh, 126px);
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  gap: 12px;
  align-items: center;
  color: var(--quiet);
  font-size: 0.92rem;
}

.pendulum-readout strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.pendulum-readout .axis {
  color: var(--amber);
}

.movement-section,
.method-section,
.contact-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(54px, 104px) minmax(0, 780px);
  gap: clamp(24px, 5vw, 76px);
  min-height: 78svh;
  padding: max(90px, 12vh) clamp(32px, 8vw, 116px) max(110px, 14vh);
  align-items: center;
  border-top: 1px solid rgba(248, 245, 236, 0.08);
  background:
    linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.76) 28%, rgba(0, 0, 0, 0.82) 78%, transparent),
    linear-gradient(180deg, rgba(3, 3, 3, 0.2), rgba(3, 3, 3, 0.58)),
    linear-gradient(90deg, rgba(98, 240, 255, 0.035), transparent 42%, rgba(244, 196, 93, 0.035));
}

.movement-section::before,
.method-section::before,
.contact-section::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at calc(18% + var(--scroll) * 18%) 34%, rgba(98, 240, 255, 0.08), transparent 28%),
    radial-gradient(circle at calc(88% - var(--scroll) * 14%) 64%, rgba(244, 196, 93, 0.07), transparent 26%);
}

.section-number {
  position: relative;
  align-self: start;
  margin: 0;
  color: rgba(244, 196, 93, 0.82);
  direction: ltr;
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.84;
}

.section-copy {
  position: relative;
  max-width: 780px;
}

.section-copy h2 {
  max-width: 800px;
  margin-bottom: 24px;
  color: var(--ink);
  font-family:
    Georgia,
    "Times New Roman",
    serif;
  font-size: clamp(2.15rem, 5.8vw, 5.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-copy p {
  max-width: 700px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.35vw, 1.24rem);
  line-height: 1.75;
}

.axis-strip {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 80px auto 80px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  color: rgba(248, 245, 236, 0.68);
  font-size: 0.96rem;
}

.axis-strip i {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 196, 93, 0.68), transparent);
}

.axis-strip span:nth-child(3) {
  color: var(--amber);
  font-weight: 650;
}

.method-section {
  grid-template-columns: minmax(54px, 104px) minmax(0, 980px);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.method-grid article {
  min-height: 210px;
  padding-top: 22px;
  border-top: 1px solid rgba(248, 245, 236, 0.2);
}

.method-grid span {
  display: block;
  margin-bottom: 30px;
  color: var(--amber);
  direction: ltr;
  font-family:
    "Cascadia Mono",
    "Segoe UI Mono",
    Consolas,
    monospace;
}

.method-grid h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.18rem;
}

.method-grid p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.72;
}

.signal-strip {
  position: fixed;
  right: 32px;
  bottom: 24px;
  left: 32px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--quiet);
  font-size: 0.92rem;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

html[data-depth="reading"] .signal-strip {
  opacity: 0.2;
  transform: translateY(5px);
}

.signal-strip span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-height: 28px;
  white-space: nowrap;
}

.signal-strip strong {
  color: var(--ink);
  direction: ltr;
  font-family:
    "Cascadia Mono",
    "Segoe UI Mono",
    Consolas,
    monospace;
  font-weight: 650;
}

@media (min-width: 1180px) {
  .hero-copy {
    margin-right: 4vw;
  }
}

@media (max-width: 880px) {
  .site-header {
    inset: 22px 20px auto 20px;
    gap: 12px;
  }

  .brand span {
    width: 34px;
    height: 34px;
  }

  .header-nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    min-width: 0;
    max-width: calc(100vw - 126px);
    gap: 10px;
    overflow-x: auto;
    font-size: 0.7rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .hero {
    min-height: 100svh;
    padding: 94px 20px 118px;
    align-items: end;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 22%, rgba(0, 0, 0, 0.76) 40%, rgba(0, 0, 0, 0.88) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 58%, rgba(0, 0, 0, 0.28));
  }

  h1 {
    font-size: 4.4rem;
  }

  .summary {
    margin-top: 20px;
  }

  .signal-formula {
    margin-top: 22px;
    padding-right: 14px;
    font-size: 0.76rem;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    flex: 1 1 150px;
  }

  .pendulum-readout {
    display: none;
  }

  .movement-section,
  .method-section,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
    padding: 106px 20px 104px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.8)),
      linear-gradient(90deg, rgba(98, 240, 255, 0.045), transparent 48%, rgba(244, 196, 93, 0.045));
  }

  .section-number {
    font-size: 3rem;
  }

  .section-copy h2 {
    font-size: 2.46rem;
    line-height: 1;
  }

  .section-copy p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .axis-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 8px;
  }

  .axis-strip i {
    width: 100%;
  }

  .method-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 24px;
  }

  .method-grid article {
    min-height: auto;
    padding: 20px 0;
  }

  .method-grid span {
    margin-bottom: 14px;
  }

  .signal-strip {
    right: 20px;
    bottom: 18px;
    left: 20px;
    gap: 6px 12px;
    font-size: 0.78rem;
  }

  html[data-depth="reading"] .signal-strip {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: 3.65rem;
  }

  .header-nav {
    max-width: calc(100vw - 116px);
    gap: 8px;
  }
}

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

  .button,
  .header-nav a::after,
  .signal-strip {
    transition: none;
  }
}
