:root {
  color-scheme: dark;
  --ink: #f3eee6;
  --muted: #989088;
  --muted-bright: #c9beb1;
  --base: #08090c;
  --panel: rgba(14, 21, 17, 0.88);
  --equipment: #0b120d;
  --equipment-deep: #060a07;
  --line: rgba(121, 242, 159, 0.15);
  --line-bright: rgba(121, 242, 159, 0.36);
  --mint: #79f29f;
  --mint-deep: #28b968;
  --amber: #efb75d;
  --cyan: #5eddb0;
  --red: #a97554;
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--base);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 5px;
}

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

.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: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #07110c;
  background: var(--mint);
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.atmosphere {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: 0 0 auto;
  height: min(920px, 100vh);
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 17%, rgba(50, 193, 104, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(9, 16, 12, 0.98), rgba(7, 10, 8, 0.7) 52%, rgba(13, 18, 15, 0.88));
}

.atmosphere::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  top: 92px;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: auto;
  left: auto;
  width: min(36vw, 430px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint));
  opacity: 0.38;
}

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 64px;
  height: 1px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(88, 200, 201, 0.62);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(121, 242, 159, 0.56);
  border-radius: 2px;
  box-shadow: inset 0 0 12px rgba(121, 242, 159, 0.08);
  transform: rotate(45deg);
}

.brand-mark span {
  width: 9px;
  height: 9px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(121, 242, 159, 0.62);
}

.brand-mark::after {
  position: absolute;
  width: 1px;
  height: 21px;
  content: "";
  background: var(--cyan);
  transform: rotate(-45deg);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  position: relative;
  color: var(--muted-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

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

.language-menu {
  position: relative;
  z-index: 20;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.language-menu summary {
  min-width: 38px;
  padding: 5px 8px;
  border: 1px solid var(--line-bright);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  list-style: none;
  cursor: pointer;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  margin-left: 5px;
  color: var(--mint);
  content: "+";
}

.language-menu[open] summary {
  border-color: var(--mint);
  color: var(--mint);
}

.language-menu[open] summary::after {
  content: "−";
}

.language-menu summary:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 5px;
}

.language-options {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 164px;
  padding: 8px;
  border: 1px solid var(--line-bright);
  background: #0b110d;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

.language-options a {
  padding: 9px 11px;
  color: var(--muted-bright);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.language-options a::after {
  display: none;
}

.language-options a:hover,
.language-options a:focus-visible,
.language-options a[aria-current="page"] {
  color: var(--mint);
  background: rgba(121, 242, 159, 0.06);
}

.hero {
  position: relative;
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 64px;
  padding-block: 92px 82px;
}

.landing-page .hero::before {
  position: absolute;
  top: 96px;
  left: -38px;
  color: var(--muted);
  content: "WORLDLINE 1.048596";
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.eyebrow,
.section-number {
  margin: 0 0 24px;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 26px;
  height: 1px;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(121, 242, 174, 0.55);
}

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

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(3.45rem, 7.2vw, 6.8rem);
  text-wrap: balance;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 4vw, 4.1rem);
}

.landing-page h1,
.landing-page h2,
.landing-page .briefing-item h3 {
  font-family: "Arial Narrow", "Liberation Sans Narrow", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.intro {
  max-width: 590px;
  margin-bottom: 38px;
  color: var(--muted-bright);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  font-weight: 650;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  color: #061109;
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 10px 26px rgba(40, 185, 104, 0.14);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #a0ffbc;
  border-color: #a0ffbc;
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.035);
}

.hero-object {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: 34px 0 20px 34px;
}

.landing-page .hero-object::before,
.landing-page .hero-object::after {
  position: absolute;
  left: 0;
  color: var(--muted-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-page .hero-object::before {
  top: 10px;
  content: "DIVERGENCE";
}

.landing-page .hero-object::after {
  bottom: 0;
  content: "EXT;GATE AND LAB";
}

.portal {
  position: relative;
  display: grid;
  width: min(470px, 100%);
  min-height: 326px;
  place-items: center;
  padding: 62px 34px 34px;
  border: 1px solid var(--line-bright);
  background: linear-gradient(155deg, #111a13, var(--equipment-deep));
  box-shadow: 13px 13px 0 rgba(0, 0, 0, 0.22), inset 0 0 0 8px rgba(0, 0, 0, 0.18);
}

.portal::before,
.portal::after {
  position: absolute;
  content: "";
}

.portal::before {
  top: 17px;
  left: 22px;
  width: 7px;
  height: 7px;
  border: 1px solid #3b493e;
  border-radius: 50%;
  background: #111713;
}

.portal::after {
  top: 21px;
  right: 32px;
  left: 46px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--mint);
  content: "READING 1.048596";
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-align: right;
}

.portal-ring {
  position: absolute;
  pointer-events: none;
}

.ring-one {
  inset: 48px 18px 18px;
  border: 1px solid rgba(121, 242, 159, 0.1);
}

.ring-two {
  top: 73px;
  bottom: 43px;
  left: 25px;
  width: 4px;
  background: repeating-linear-gradient(180deg, var(--line-bright) 0 3px, transparent 3px 10px);
}

.portal-core {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 220px;
  padding: 25px 24px 23px;
  overflow: hidden;
  border: 1px solid rgba(121, 242, 159, 0.36);
  background: #050b07;
  box-shadow: inset 0 0 34px rgba(121, 242, 159, 0.035);
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 7px 16px;
}

.portal-core::before,
.portal-core::after {
  position: absolute;
  content: "";
}

.portal-core::before {
  top: 13px;
  right: 13px;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(121, 242, 159, 0.72);
}

.portal-core::after {
  right: 23px;
  bottom: 20px;
  left: 23px;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent 74%);
}

.instrument-label,
.instrument-domain,
.portal-core small {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.instrument-label {
  align-self: end;
  margin-top: 0;
  color: var(--cyan);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
}

.portal-core .divergence-readout {
  display: flex;
  grid-column: 1 / -1;
  align-items: stretch;
  margin: 8px 0 3px;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.65rem, 4vw, 2.85rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
  text-shadow: 0 0 7px rgba(121, 242, 159, 0.48);
}

.portal-core .divergence-readout > span:not(.sr-only) {
  display: grid;
  min-width: 0.78em;
  padding: 0.13em 0.08em;
  place-items: center;
  border: 1px solid rgba(121, 242, 159, 0.24);
  border-right: 0;
  background: linear-gradient(#0b160e, #061009);
  box-shadow: inset 0 0 10px rgba(121, 242, 159, 0.035);
}

.portal-core .divergence-readout > span:not(.sr-only):last-child {
  border-right: 1px solid rgba(121, 242, 159, 0.24);
}

.portal-core .divergence-readout > i {
  display: grid;
  width: 0.34em;
  place-items: end center;
  padding-bottom: 0.15em;
  font-style: normal;
}

.instrument-domain {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.portal-core small {
  grid-column: 1 / -1;
  margin-top: 1px;
  color: var(--muted-bright);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.portal-logo {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 1px;
  transform: rotate(45deg);
}

.portal-logo i {
  display: block;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(88, 200, 201, 0.7);
}

.orbit-dot {
  position: absolute;
  z-index: 2;
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(121, 242, 174, 0.64);
}

.dot-one { top: 25px; right: 17px; }
.dot-two { right: 25px; bottom: 24px; width: 5px; height: 5px; background: var(--amber); }
.dot-three { bottom: 23px; left: 17px; width: 5px; height: 5px; background: #34453a; box-shadow: none; }

.signal-status {
  position: relative;
  display: grid;
  min-height: 78px;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(4, 1fr);
}

.signal-status::before {
  position: absolute;
  top: -3px;
  left: 0;
  width: 88px;
  height: 5px;
  content: "";
  background: var(--mint);
  box-shadow: 0 0 12px rgba(121, 242, 159, 0.34);
}

.signal-status p {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.signal-status p:first-of-type { padding-left: 0; }
.signal-status p:last-child { padding-right: 0; border-right: 0; }
.signal-status span { color: var(--muted); font-size: 0.58rem; letter-spacing: 0.12em; }
.signal-status strong { color: var(--mint); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; }
.landing-page .signal-status p:nth-child(3) strong { color: var(--amber); }

.gadget {
  position: relative;
  padding-block: 72px 16px;
  overflow-anchor: none;
}

.gadget-toggle {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gadget-frame {
  position: relative;
  display: grid;
  padding: 58px 38px 38px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0e1912, #070b09);
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
  align-items: center;
  gap: 52px;
}

.gadget-frame::before {
  position: absolute;
  top: 17px;
  right: 38px;
  left: 38px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-bright);
  content: "WORLDLINE SHIFT CONSOLE";
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.gadget-frame::after {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px rgba(239, 183, 93, 0.48);
  content: "";
}

.worldline-lightning {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
}

.worldline-lightning::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 63% 42%, rgba(226, 255, 245, 0.88), rgba(99, 225, 255, 0.2) 19%, transparent 48%);
}

.worldline-lightning i {
  position: absolute;
  top: -12%;
  width: 11px;
  height: 82%;
  background: #dffff7;
  clip-path: polygon(48% 0, 100% 0, 61% 38%, 96% 38%, 22% 100%, 42% 53%, 6% 53%);
  filter: drop-shadow(0 0 5px rgba(111, 238, 255, 0.95));
}

.worldline-lightning i:nth-child(1) { left: 22%; transform: rotate(13deg); }
.worldline-lightning i:nth-child(2) { left: 61%; height: 95%; transform: rotate(-16deg); }
.worldline-lightning i:nth-child(3) { left: 82%; height: 66%; transform: rotate(7deg); }

.gadget.is-shifting .worldline-lightning {
  animation: worldline-flash 3.1s steps(2, end) both;
}

.gadget.is-shifting .worldline-lightning i:nth-child(1) { animation: worldline-bolt 310ms steps(2, end) 6; }
.gadget.is-shifting .worldline-lightning i:nth-child(2) { animation: worldline-bolt 230ms steps(2, end) 120ms 8; }
.gadget.is-shifting .worldline-lightning i:nth-child(3) { animation: worldline-bolt 370ms steps(2, end) 280ms 5; }

@keyframes worldline-flash {
  0%, 14%, 31%, 48%, 66%, 82%, 100% { opacity: 0; }
  7%, 22%, 39%, 57%, 74%, 91% { opacity: 0.78; }
}

@keyframes worldline-bolt {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.gadget-copy .section-number {
  margin-bottom: 16px;
}

.gadget-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.gadget-copy > p:not(.section-number) {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.change-window-panel {
  display: grid;
  max-width: 420px;
  margin-top: 24px;
  padding: 17px 18px;
  border: 1px solid var(--line-bright);
  background: rgba(5, 12, 8, 0.72);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.change-window-panel span {
  color: var(--muted-bright);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.change-window-setter {
  display: grid;
  grid-row: 1 / 3;
  grid-column: 2;
  grid-template-columns: 34px auto 34px;
  align-items: stretch;
  gap: 5px;
}

.change-window-setter button,
.change-window-time {
  color: var(--mint);
  border: 1px solid rgba(121, 242, 159, 0.22);
  background: #061009;
  font-weight: 500;
  font-family: inherit;
}

.change-window-setter button {
  min-width: 34px;
  padding: 0;
  font-size: 1.1rem;
  cursor: pointer;
  touch-action: manipulation;
}

.change-window-setter button:hover,
.change-window-setter button:focus-visible,
.change-window-time:focus-visible {
  border-color: var(--mint);
  outline: 1px solid var(--mint);
  outline-offset: 2px;
}

.change-window-setter button:disabled {
  color: #50645a;
  cursor: not-allowed;
  opacity: 0.55;
}

.change-window-time {
  box-sizing: content-box;
  width: 9ch;
  height: 1.25em;
  padding: 6px 8px;
  font-size: 1.32rem;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.change-window-panel .timer-state {
  grid-row: 2;
  grid-column: 1;
  min-height: 2.9em;
  color: var(--cyan);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
}

.change-window-panel .timer-help {
  grid-row: 3;
  grid-column: 1 / -1;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.gadget.is-shifting .change-window-time,
.gadget.has-result .change-window-time {
  color: var(--amber);
  border-color: rgba(239, 183, 93, 0.48);
}

.gadget-device {
  display: grid;
  gap: 14px;
}

.gadget-screen {
  position: relative;
  min-height: 192px;
  padding: 24px 24px 52px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
  background: #07100a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.gadget-screen > :not(i) {
  position: relative;
  z-index: 1;
}

.gadget-state {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gadget-armed {
  display: none;
}

.gadget-readout {
  display: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #1c3624;
}

.gadget-shuffle {
  margin-top: 16px;
}

.gadget-shuffle > span {
  display: block;
  color: var(--cyan);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gadget-shuffle .shuffle-value {
  width: 9ch;
  margin-inline: auto;
  color: var(--mint);
  text-align: center;
  text-shadow: 0 0 7px rgba(121, 242, 159, 0.34);
  font-variant-numeric: tabular-nums;
}

.gadget-readout > span {
  display: block;
  color: var(--mint);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gadget-screen strong {
  display: block;
  margin-top: 12px;
  color: #426c4e;
  font-size: clamp(1.65rem, 3.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1;
}

.gadget-screen small {
  display: block;
  margin-top: 10px;
  color: #9bb0a1;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  line-height: 1.55;
}

.gadget-screen i {
  position: absolute;
  z-index: 0;
  right: 24px;
  bottom: 16px;
  left: 24px;
  height: 10px;
  border-bottom: 1px solid #274b33;
  background: linear-gradient(90deg, #274b33 0 16%, transparent 16% 22%, #274b33 22% 38%, transparent 38% 44%, #274b33 44% 66%, transparent 66%);
  opacity: 0.42;
}

.gadget-tuner {
  display: grid;
  padding: 12px 0 2px;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.gadget-dial {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  background:
    radial-gradient(circle, #0a130d 0 48%, transparent 49%),
    repeating-conic-gradient(from -48deg, var(--line-bright) 0 2deg, transparent 2deg 18deg);
}

.gadget-dial::after {
  position: absolute;
  inset: 28px;
  content: "";
  background: var(--mint);
  border-radius: 50%;
}

.gadget-dial i {
  position: absolute;
  bottom: 50%;
  left: calc(50% - 1px);
  width: 2px;
  height: 25px;
  background: var(--mint);
  transform: rotate(-42deg);
  transform-origin: 50% 100%;
}

.worldline-bands {
  display: grid;
  min-width: 0;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.worldline-bands > span {
  display: grid;
  min-width: 0;
  min-height: 52px;
  padding: 8px 9px;
  align-content: center;
  border: 1px solid var(--line);
  color: var(--muted-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-align: center;
  gap: 4px;
}

.worldline-bands b {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.worldline-bands small {
  margin: 0;
  color: var(--muted);
  font-size: 0.54rem;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.worldline-bands [aria-current="true"] {
  border-color: var(--mint);
  color: var(--mint);
  background: rgba(121, 242, 159, 0.07);
}

.worldline-bands [data-band="steins"][aria-current="true"] {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(239, 183, 93, 0.07);
}

.gadget-control {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
}

.gadget-control i {
  position: relative;
  width: 46px;
  height: 24px;
  border: 1px solid var(--line-bright);
  background: #0a100c;
}

.gadget-control i::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  content: "";
  background: #536057;
}

.gadget-toggle:focus-visible ~ .gadget-frame .gadget-control {
  outline: 2px solid var(--mint);
  outline-offset: 5px;
}

.gadget-toggle:checked ~ .gadget-frame {
  border-color: var(--line-bright);
}

.gadget-toggle:checked ~ .gadget-frame .gadget-offline {
  display: none;
}

.gadget.is-running .gadget-armed {
  display: block;
}

.gadget.is-shifting .gadget-armed {
  display: none;
}

.gadget.result-alpha .readout-alpha,
.gadget.result-beta .readout-beta,
.gadget.result-steins .readout-steins {
  display: block;
}

.gadget-toggle:checked ~ .gadget-frame .gadget-screen strong {
  color: var(--mint);
  text-shadow: 0 0 7px rgba(121, 242, 159, 0.42);
}

.gadget-toggle:checked ~ .gadget-frame .gadget-screen small {
  color: var(--cyan);
}

.gadget-toggle:checked ~ .gadget-frame .gadget-screen > i {
  border-color: var(--mint);
  background: linear-gradient(90deg, var(--mint) 0 16%, transparent 16% 22%, var(--mint) 22% 38%, transparent 38% 44%, var(--mint) 44% 66%, transparent 66% 72%, var(--mint) 72% 100%);
  opacity: 0.82;
}

.gadget-toggle:checked ~ .gadget-frame .gadget-control i {
  border-color: var(--mint);
  background: rgba(121, 242, 159, 0.08);
}

.gadget-toggle:checked ~ .gadget-frame .gadget-control i::after {
  left: 26px;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(121, 242, 159, 0.42);
}

.gadget.is-shifting .gadget-dial i { animation: worldline-dial-scan 320ms linear infinite; }
.gadget.result-alpha .gadget-dial i { transform: rotate(-42deg); }
.gadget.result-beta .gadget-dial i { transform: rotate(0deg); }
.gadget.result-steins .gadget-dial i { transform: rotate(42deg); }

@keyframes worldline-dial-scan {
  to { transform: rotate(318deg); }
}

.services {
  padding-block: 112px;
}

.section-heading {
  display: grid;
  margin-bottom: 54px;
  grid-template-columns: 1fr 0.8fr;
  column-gap: 40px;
}

.section-heading .section-number {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p:last-child {
  max-width: 420px;
  align-self: end;
  margin-bottom: 5px;
  color: var(--muted);
  line-height: 1.7;
}

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

.landing-page .service-grid::before {
  display: grid;
  min-height: 38px;
  grid-row: 2;
  grid-column: 1 / -1;
  border: 1px solid rgba(239, 183, 93, 0.22);
  color: var(--amber);
  content: "BOUNDARY";
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  place-items: center;
}

html[lang="de"] .landing-page .hero::before,
html[lang="swg"] .landing-page .hero::before,
html[lang="bar"] .landing-page .hero::before {
  content: "ZEITLINIE 1.048596";
}

html[lang="de"] .landing-page .hero-object::before,
html[lang="swg"] .landing-page .hero-object::before,
html[lang="bar"] .landing-page .hero-object::before {
  content: "DIVERGENZ";
}

html[lang="de"] .landing-page .hero-object::after,
html[lang="bar"] .landing-page .hero-object::after {
  content: "EXT;GATE UND LAB";
}

html[lang="swg"] .landing-page .hero-object::after {
  content: "EXT;GATE OND LAB";
}

html[lang="de"] .landing-page .portal::after,
html[lang="swg"] .landing-page .portal::after,
html[lang="bar"] .landing-page .portal::after {
  content: "MESSWERT 1.048596";
}

html[lang="de"] .landing-page .gadget-frame::before,
html[lang="swg"] .landing-page .gadget-frame::before,
html[lang="bar"] .landing-page .gadget-frame::before {
  content: "ZEITLINIENWAHL";
}

html[lang="de"] .landing-page .service-grid::before {
  content: "GRENZE";
}

html[lang="swg"] .landing-page .service-grid::before {
  content: "GRENZ";
}

html[lang="bar"] .landing-page .service-grid::before {
  content: "GRENZN";
}

.landing-page .service-card:first-of-type {
  grid-row: 1;
  grid-column: 1 / -1;
  min-height: 220px;
  border-top-color: rgba(239, 183, 93, 0.6);
}

.landing-page .service-card:nth-of-type(2) { grid-row: 3; grid-column: 1; }
.landing-page .service-card:nth-of-type(3) { grid-row: 3; grid-column: 2; }
.landing-page .service-card:nth-of-type(4) { grid-row: 4; grid-column: 1; }
.landing-page .service-card:nth-of-type(5) { grid-row: 4; grid-column: 2; }

.landing-page .service-card:first-of-type .card-index,
.landing-page .service-card:first-of-type .card-content small {
  color: var(--amber);
}

.service-card {
  position: relative;
  display: flex;
  min-height: 258px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
}

.card-index {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.card-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin-top: auto;
}

.card-content strong {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.card-content small {
  margin-top: 2px;
  color: var(--mint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-content > span {
  max-width: 540px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.briefing {
  padding-block: 12px 92px;
}

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

.briefing-item {
  position: relative;
  min-height: 250px;
  padding: 38px 30px 30px;
  border: 1px solid var(--line);
  background: rgba(11, 18, 13, 0.78);
}

.briefing-item::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 88px;
  height: 4px;
  background: var(--mint);
  content: "";
  opacity: 0.72;
}

.briefing-item > span {
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.briefing-item h3 {
  margin: 28px 0 14px;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 500;
  line-height: 1.12;
}

.briefing-item p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.72;
}

.principles {
  padding-block: 40px 118px;
}

.principles-card {
  display: grid;
  padding: 58px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #0d1710;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}

.principles-card h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 3.6vw, 3.5rem);
}

.operator-profile > p:not(.section-number) {
  max-width: 490px;
  color: var(--muted-bright);
  font-size: 0.88rem;
  line-height: 1.7;
}

.profile-links {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-links a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.profile-links a:hover,
.profile-links a:focus-visible {
  border-color: var(--mint);
  background: rgba(121, 242, 159, 0.06);
}

.principle-list p {
  display: grid;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 40px 0.55fr 1fr;
  align-items: baseline;
  gap: 18px;
}

.principle-list p:first-child { padding-top: 0; }
.principle-list p:last-child { padding-bottom: 0; border-bottom: 0; }
.principle-list p > span { color: var(--mint); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.66rem; }
.principle-list strong { font-size: 0.9rem; font-weight: 600; }
.principle-list small { color: var(--muted); font-size: 0.81rem; line-height: 1.55; }

.site-footer {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  flex-wrap: wrap;
  gap: 24px;
  padding-block: 26px;
}

.site-footer p { margin: 0; }

.footer-signal {
  margin-inline-start: 12px;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted-bright);
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  color: var(--mint);
}

.footer-note {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-note span {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(121, 242, 174, 0.8);
}

/* Legal pages use the same assets and security policy as the landing page. */
.legal-main {
  padding-block: 90px 120px;
}

.legal-hero {
  position: relative;
  max-width: 860px;
  padding-bottom: 72px;
}

.legal-hero::after {
  position: absolute;
  bottom: 34px;
  left: 0;
  width: min(220px, 44vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--mint), var(--cyan), transparent);
  box-shadow: 0 0 8px rgba(121, 242, 159, 0.22);
}

.legal-hero h1 {
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 8vw, 7.4rem);
}

.legal-hero .intro {
  margin-bottom: 0;
}

.legal-layout {
  display: grid;
  padding-top: 62px;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: 80px;
}

.legal-summary {
  position: relative;
  align-self: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.legal-summary::after {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(88, 200, 201, 0.7);
}

.legal-summary .section-number {
  margin-bottom: 20px;
}

.legal-summary address {
  color: var(--muted-bright);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.75;
}

.legal-summary address strong {
  color: var(--ink);
}

.legal-facts {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 12px;
  color: var(--muted-bright);
  font-size: 0.84rem;
  list-style: none;
}

.legal-facts li {
  position: relative;
  padding-left: 18px;
}

.legal-facts li::before {
  position: absolute;
  top: 0.56em;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--mint);
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(121, 242, 174, 0.62);
}

.legal-section {
  display: grid;
  padding: 0 0 46px;
  margin-bottom: 46px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 24px;
}

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

.legal-index {
  margin: 7px 0 0;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.legal-section h2 {
  margin-bottom: 22px;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.legal-section p,
.legal-section li,
.legal-section address {
  color: var(--muted-bright);
  font-size: 0.94rem;
  line-height: 1.8;
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section address {
  margin-bottom: 20px;
  font-style: normal;
}

.legal-section ul {
  padding-left: 20px;
}

.legal-section a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(121, 242, 174, 0.35);
  text-underline-offset: 4px;
}

.legal-section a:hover {
  text-decoration-color: var(--mint);
}

.legal-note {
  padding-top: 28px;
  padding-right: 28px;
  padding-left: 28px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(121, 242, 159, 0.03);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

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

@media (max-width: 1260px) {
  .landing-page .hero::before { display: none; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 72px;
  }

  .hero-object { min-height: 390px; padding-left: 0; }
  .portal { width: min(470px, 100%); }
  .signal-status { grid-template-columns: repeat(2, 1fr); }
  .signal-status p { min-height: 58px; }
  .signal-status p:nth-child(2) { border-right: 0; }
  .signal-status p:first-of-type { padding-left: 22px; }
  .signal-status p:last-child { padding-right: 22px; }
  .gadget-frame { grid-template-columns: 1fr; gap: 32px; }
  .service-grid { grid-template-columns: 1fr; }
  .landing-page .service-grid::before {
    min-height: 38px;
    grid-row: 2;
    writing-mode: horizontal-tb;
  }
  .landing-page .service-card:first-of-type { grid-row: 1; grid-column: 1; }
  .landing-page .service-card:nth-of-type(2) { grid-row: 3; grid-column: 1; }
  .landing-page .service-card:nth-of-type(3) { grid-row: 4; grid-column: 1; }
  .landing-page .service-card:nth-of-type(4) { grid-row: 5; grid-column: 1; }
  .landing-page .service-card:nth-of-type(5) { grid-row: 6; grid-column: 1; }
  .service-card,
  .landing-page .service-card:first-of-type { min-height: 0; }
  .service-card .card-content { margin-top: 32px; }
  .briefing-grid { grid-template-columns: 1fr; }
  .briefing-item { min-height: 0; }
  .principles-card { grid-template-columns: 1fr; gap: 48px; padding: 42px; }
  .legal-layout { grid-template-columns: 1fr; gap: 42px; }
  .legal-summary { max-width: 420px; }
}

@media (max-width: 620px) {
  :root { --shell: min(100% - 30px, 1180px); }
  .site-header { min-height: 72px; gap: 12px; }
  nav { min-width: 0; gap: 10px; }
  nav a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-size: 0.72rem;
  }
  .language-menu summary {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
  }
  .language-options { top: calc(100% + 4px); }
  .language-options a { min-height: 44px; }
  .brand { font-size: 0; gap: 0; }
  .brand-mark { width: 32px; height: 32px; }
  .hero { min-height: 0; padding-block: 48px 64px; }
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.13em; }
  h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); line-height: 1.02; }
  .intro { font-size: 0.98rem; line-height: 1.65; }
  .hero-actions { display: grid; width: 100%; }
  .hero-actions .button { width: 100%; min-height: 48px; }
  .hero-object { min-height: 310px; padding: 24px 0 18px; }
  .landing-page .hero-object::before { top: 0; font-size: 0.62rem; }
  .landing-page .hero-object::after { font-size: 0.62rem; }
  .portal { min-height: 275px; padding: 54px 18px 24px; }
  .portal::after { right: 24px; left: 38px; font-size: 0.6rem; }
  .portal-core { width: 100%; min-height: 184px; padding-inline: 14px; }
  .portal-core .divergence-readout { font-size: clamp(1.45rem, 8vw, 2.25rem); }
  .signal-status p {
    min-height: 66px;
    padding: 10px 12px !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
  }
  .gadget { padding-top: 44px; }
  .gadget-frame { padding: 54px 18px 24px; gap: 26px; }
  .gadget-frame::before { right: 32px; left: 20px; font-size: 0.6rem; }
  .gadget-copy h2 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .gadget-copy > p:not(.section-number) { font-size: 0.84rem; line-height: 1.62; }
  .change-window-panel {
    width: 100%;
    max-width: none;
    margin-top: 20px;
    padding: 15px;
    grid-template-columns: 1fr;
  }
  .change-window-setter {
    width: 100%;
    grid-row: 2;
    grid-column: 1;
    margin-top: 10px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    justify-self: stretch;
  }
  .change-window-setter button { min-width: 44px; min-height: 44px; }
  .change-window-time {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 6px;
    font-size: 1.18rem;
  }
  .change-window-panel .timer-state {
    grid-row: 3;
    grid-column: 1;
    min-height: 3em;
    margin-top: 10px;
  }
  .change-window-panel .timer-help {
    grid-row: 4;
    font-size: 0.64rem;
  }
  .gadget-screen { min-height: 252px; padding: 20px 18px 46px; }
  .gadget-screen small { overflow-wrap: anywhere; }
  .gadget-tuner { padding-top: 6px; grid-template-columns: 1fr; gap: 12px; }
  .gadget-dial { width: 60px; height: 60px; }
  .gadget-dial { justify-self: center; }
  .gadget-dial::after { inset: 23px; }
  .gadget-dial i { height: 21px; }
  .worldline-bands { grid-template-columns: 1fr; }
  .worldline-bands > span { min-height: 48px; }
  .worldline-bands small { font-size: 0.62rem; }
  .gadget-control {
    width: 100%;
    min-height: 52px;
    padding-top: 4px;
    justify-content: space-between;
  }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > p:last-child { margin-top: 18px; }
  .services { padding-block: 72px; }
  .service-card,
  .landing-page .service-card:first-of-type { min-height: 0; padding: 22px 20px; }
  .card-content { margin-top: 28px; }
  .briefing { padding-bottom: 72px; }
  .briefing-item { padding: 30px 22px 24px; }
  .briefing-item h3 { margin-top: 22px; }
  .principles { padding-block: 28px 72px; }
  .principles-card { padding: 30px 24px; }
  .principle-list p { grid-template-columns: 32px 1fr; }
  .principle-list small { grid-column: 2; }
  .profile-links a { display: inline-flex; min-height: 44px; align-items: center; }
  .site-footer {
    min-height: 130px;
    padding-block: 28px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
  }
  .footer-links { order: -1; gap: 10px 18px; }
  .footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
  .footer-signal { display: block; margin: 8px 0 0; }
  .legal-main { padding-block: 64px 84px; }
  .legal-hero { padding-bottom: 48px; }
  .legal-hero h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); overflow-wrap: anywhere; }
  .legal-layout { padding-top: 44px; }
  .legal-summary { width: 100%; padding: 24px 20px; }
  .legal-section { grid-template-columns: 28px minmax(0, 1fr); gap: 14px; }
  .legal-section h2 { font-size: clamp(1.45rem, 8vw, 2rem); overflow-wrap: anywhere; }
  .legal-section p,
  .legal-section li,
  .legal-section address { font-size: 0.91rem; line-height: 1.7; overflow-wrap: anywhere; }
  .legal-note { padding: 24px 18px 30px; }
}

@media (max-width: 420px) {
  :root { --shell: min(100% - 24px, 1180px); }
  .site-header { gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  nav { gap: 6px; }
  nav a { padding-inline: 4px; font-size: 0.67rem; }
  .language-menu summary { min-width: 42px; padding-inline: 5px; }
  .language-options { right: -2px; min-width: 156px; }
  .hero { padding-top: 40px; }
  .hero-actions { gap: 10px; }
  .portal { padding-inline: 14px; }
  .portal-core { padding-inline: 10px; }
  .portal-core .divergence-readout { font-size: clamp(1.3rem, 7.4vw, 1.75rem); }
  .signal-status span { font-size: 0.62rem; letter-spacing: 0.06em; }
  .signal-status strong { font-size: 0.68rem; }
  .gadget-frame { padding-inline: 14px; }
  .gadget-frame::before { right: 24px; left: 14px; }
  .change-window-panel { padding: 14px 12px; }
  .gadget-screen { min-height: 280px; padding-inline: 14px; }
  .gadget-shuffle .shuffle-value { font-size: clamp(1.65rem, 11vw, 2.2rem); }
  .principles-card { padding-inline: 20px; }
  .legal-section { grid-template-columns: 1fr; gap: 8px; }
  .legal-index { margin-top: 0; }
}

@media (hover: none) and (pointer: coarse) {
  .button:hover,
  .button:focus-visible { transform: none; }
  .language-menu summary,
  .change-window-setter button,
  .gadget-control,
  .profile-links a,
  .footer-links a { -webkit-tap-highlight-color: rgba(121, 242, 159, 0.18); }
}

@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; }
  .worldline-lightning { display: none; }
  .gadget.is-shifting .gadget-dial i { animation: none !important; }
}

@media (forced-colors: active) {
  .brand-mark,
  .button,
  .service-card,
  .principles-card,
  .legal-summary,
  .legal-note,
  .signal-status,
  .gadget-frame,
  .gadget-screen,
  .change-window-setter button,
  .change-window-time,
  .gadget-control i,
  .gadget-dial,
  .worldline-bands > span,
  .briefing-item {
    border: 1px solid CanvasText;
    clip-path: none;
  }

  .brand-mark,
  .portal-core,
  .footer-note span,
  .eyebrow span,
  .signal-status strong,
  .gadget-screen strong {
    forced-color-adjust: auto;
  }

  .landing-page .service-grid::before,
  .portal,
  .portal-core {
    border: 1px solid CanvasText;
    clip-path: none;
  }

  .worldline-bands [aria-current="true"] {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }

  .worldline-lightning { display: none; }

  a,
  .button,
  .legal-section a {
    color: LinkText;
    text-decoration-color: LinkText;
  }
}

@media print {
  @page { margin: 18mm; }

  *, *::before, *::after {
    animation: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html,
  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  .atmosphere,
  .skip-link,
  .site-header,
  .site-footer,
  .gadget {
    display: none !important;
  }

  .landing-page .hero {
    display: block;
    min-height: 0;
    padding: 0 0 8mm;
  }

  .landing-page .hero-object,
  .landing-page .signal-status,
  .landing-page .service-grid::before {
    display: none !important;
  }

  .landing-page .services,
  .landing-page .briefing,
  .landing-page .principles {
    padding: 6mm 0;
  }

  .landing-page .section-heading,
  .landing-page .service-grid,
  .landing-page .briefing-grid,
  .landing-page .principles-card {
    display: block;
  }

  .landing-page main,
  .landing-page main *,
  .landing-page main a {
    color: #000 !important;
    text-shadow: none !important;
  }

  .landing-page .service-card,
  .landing-page .briefing-item,
  .landing-page .principles-card {
    min-height: 0;
    margin-bottom: 5mm;
    padding: 5mm;
    break-inside: avoid-page;
    border: 1px solid #777;
    background: transparent;
    clip-path: none;
  }

  .landing-page main a {
    text-decoration: underline;
  }

  .legal-main {
    width: 100%;
    padding: 0;
  }

  .legal-hero,
  .legal-layout {
    padding: 0 0 10mm;
    border: 0;
  }

  .legal-layout {
    display: block;
  }

  .legal-summary {
    max-width: none;
    margin: 0 0 8mm;
    padding: 5mm;
    color: #000;
    background: transparent;
    border: 1px solid #777;
  }

  .legal-content {
    border-top: 1px solid #777;
  }

  .legal-section,
  .legal-note {
    break-inside: avoid-page;
    padding: 6mm 0;
    color: #000;
    background: transparent;
    border-color: #aaa;
  }

  .legal-section h1,
  .legal-section h2,
  .legal-section p,
  .legal-section li,
  .legal-section address,
  .legal-hero h1,
  .legal-hero p,
  .legal-facts,
  .legal-facts li {
    color: #000;
  }

  .legal-section a {
    color: #000;
    text-decoration: underline;
  }
}
