/* TechOpsZilla theme v1.0.0 */

:root {
  --ink: #070707;
  --carbon: #111111;
  --carbon-2: #181818;
  --bone: #F5F5F2;
  --graphite: #A9A9A5;
  --muted: #8A8A86;
  --line: rgba(245, 245, 242, 0.12);
  --line-strong: rgba(245, 245, 242, 0.24);
  --red: #FF4A1C;
  --red-hot: #FF6A40;
  --red-deep: #E23A0F;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --hh: 72px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 16px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

body.is-locked { overflow: hidden; }

img, svg { display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--red); color: var(--ink); }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.red { color: var(--red); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  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;
  top: 12px; left: 12px;
  z-index: 1200;
  padding: 10px 16px;
  background: var(--red);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Brand mark colours */
.blade-a { fill: var(--bone); }
.blade-b { fill: var(--red); }

/* ---------- Type ---------- */
.h2 {
  font-stretch: 125%;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--graphite);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--ink);
  --btn-border: transparent;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  color: var(--btn-fg);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-border);
  border-radius: 4px;
  transform: skewX(-14deg);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.35s var(--ease);
}
.btn:hover::before { transform: skewX(-14deg) scaleX(1.04); }
.btn:active { transform: translateY(1px); }

.btn-red:hover { --btn-bg: var(--red-hot); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  --btn-border: var(--line-strong);
}
.btn-ghost:hover { --btn-border: var(--bone); }

.btn-ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
}
.btn-ink:hover { --btn-bg: #1d1d1d; }

.btn-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  pointer-events: none;
}
/* Safety net: the loader always disappears, even if JavaScript is off or fails */
.no-js .loader { animation: loader-fallback 0.5s ease 1.4s forwards; }
.js .loader { animation: loader-fallback 0.5s ease 7s forwards; }
.loader.is-gone { display: none; }

.loader-half {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transition: transform 1.05s var(--ease-io);
  will-change: transform;
}
.loader-half-a { clip-path: polygon(0 0, 100% 0, 0 100%); }
.loader-half-b { clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* Red seam along the split */
.loader::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 160vmax; height: 2px;
  background: var(--red);
  transform: translate(-50%, -50%) rotate(-45deg) scaleX(0);
  opacity: 0;
}

.loader-core {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 22px;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-io);
}

.loader-blade-a { fill: var(--bone); animation: blade-in-a 0.9s var(--ease) 0.1s both; }
.loader-blade-b { fill: var(--red);  animation: blade-in-b 0.9s var(--ease) 0.1s both; }
.loader-mark { animation: mark-pulse 1.6s ease-in-out 1s infinite; }

.loader-meter {
  width: 168px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.loader-meter-fill {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}
.loader-count {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}
.no-js .loader-meter, .no-js .loader-count { visibility: hidden; }

.loader.is-done .loader-core { opacity: 0; transform: scale(0.8); }
.loader.is-done::after { animation: seam 0.5s var(--ease) forwards; }
.loader.is-done .loader-half-a { transform: translate(-75%, -75%); transition-delay: 0.22s; }
.loader.is-done .loader-half-b { transform: translate(75%, 75%); transition-delay: 0.22s; }

@keyframes blade-in-a { from { transform: translate(-70px, -70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blade-in-b { from { transform: translate(70px, 70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mark-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(0.95); } }
@keyframes seam {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-45deg) scaleX(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-45deg) scaleX(1); }
}
@keyframes loader-fallback { to { opacity: 0; visibility: hidden; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--hh);
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 7, 7, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark { transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-word {
  font-stretch: 125%;
  font-weight: 900;
  font-style: italic;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  color: var(--graphite);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--bone); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta-mobile { display: none; }

.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-left: 4px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--bone);
  cursor: pointer;
}
.menu-toggle-bar {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.menu-toggle-bar:nth-child(1) { top: 16px; }
.menu-toggle-bar:nth-child(2) { top: 25px; }
.is-open .menu-toggle-bar:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.is-open .menu-toggle-bar:nth-child(2) { top: 20.5px; transform: rotate(-45deg); }

/* Scroll progress bar on the header's bottom edge */
.progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-hot));
  box-shadow: 0 0 12px rgba(255, 74, 28, 0.7);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--hh) + 48px) 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(7, 7, 7, 0), var(--ink));
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.hero-copy { container-type: inline-size; }
.hero-title {
  font-stretch: 125%;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(34px, 9.6vw, 76px);
  /* Never wider than its column, whatever the font metrics: "Imagination" must fit on one line */
  font-size: min(clamp(34px, 9.6vw, 76px), 10.5cqi);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0.02em 0.14em 0.06em 0;
  margin-bottom: -0.04em;
}
.hero-title .line-in { display: inline-block; }

.hero-lede {
  margin-top: 30px;
  max-width: 50ch;
  color: var(--graphite);
  font-size: clamp(17px, 1.45vw, 20px);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  padding-left: 8px;
}
.hero-now {
  margin-top: 40px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 16px;
}
.hero-now-label { color: var(--muted); }
.hero-now-word {
  font-family: var(--mono);
  color: var(--bone);
  border-bottom: 1px solid var(--red);
}
.caret {
  display: inline-block;
  width: 9px; height: 1.1em;
  margin-left: -8px;
  background: var(--red);
  transform: translateY(0.2em);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Hero entrance (only when JavaScript runs; otherwise everything is visible) */
.js .hero-title .line-in { transform: translateY(115%); }
.js .hero-lede, .js .hero-actions, .js .hero-now { opacity: 0; transform: translateY(18px); }
.js .core { opacity: 0; transform: scale(0.82) rotate(-12deg); }

.is-ready .hero-title .line-in { transform: none; transition: transform 1s var(--ease); }
.is-ready .hero-title .line:nth-child(2) .line-in { transition-delay: 0.08s; }
.is-ready .hero-title .line:nth-child(3) .line-in { transition-delay: 0.16s; }
.is-ready .hero-title .line:nth-child(4) .line-in { transition-delay: 0.24s; }
.is-ready .hero-lede, .is-ready .hero-actions, .is-ready .hero-now {
  opacity: 1; transform: none;
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}
.is-ready .hero-lede { transition-delay: 0.45s; }
.is-ready .hero-actions { transition-delay: 0.55s; }
.is-ready .hero-now { transition-delay: 0.65s; }
.is-ready .core { opacity: 1; transform: none; transition: opacity 1s ease 0.2s, transform 1.4s var(--ease) 0.2s; }

/* The Z core: technology orbiting the mark */
.core-wrap {
  justify-self: center;
  width: min(520px, 88vw);
  perspective: 1200px;
}
.core {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  transform-style: preserve-3d;
}
.core-tilt { transition: transform 0.6s var(--ease); }

.core-mark {
  position: absolute;
  left: 50%; top: 50%;
  width: 30%;
  height: 30%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 40px rgba(255, 74, 28, 0.25));
}
.core-mark .blade-a { animation: blade-float-a 6s ease-in-out infinite; }
.core-mark .blade-b { animation: blade-float-b 6s ease-in-out infinite; }
@keyframes blade-float-a { 0%, 100% { transform: none; } 50% { transform: translate(-5px, -5px); } }
@keyframes blade-float-b { 0%, 100% { transform: none; } 50% { transform: translate(5px, 5px); } }

.core-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 46%; height: 46%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 74, 28, 0.28) 0%, rgba(255, 74, 28, 0) 70%);
  animation: glow 5s ease-in-out infinite;
}
@keyframes glow { 0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); } }

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: spin var(--dur) linear infinite;
}
.ring-1 { inset: 24%; --dur: 26s; }
.ring-2 { inset: 12%; --dur: 40s; animation-direction: reverse; border-style: solid; border-color: var(--line); }
.ring-3 { inset: 1%;  --dur: 58s; }

.arm { position: absolute; inset: 0; transform: rotate(var(--a)); }
.a-0   { --a: 0deg; }
.a-30  { --a: 30deg; }
.a-60  { --a: 60deg; }
.a-120 { --a: 120deg; }
.a-150 { --a: 150deg; }
.a-240 { --a: 240deg; }
.a-270 { --a: 270deg; }

.orbiter {
  position: absolute;
  left: 50%; top: 0;
  width: 50px; height: 50px;
  margin: -25px 0 0 -25px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--carbon);
  border: 1px solid var(--line-strong);
  color: var(--bone);
  animation: counter-spin var(--dur) linear infinite;
}
.ring-2 .orbiter { animation-direction: reverse; }
.ring-1 .orbiter { color: var(--red); border-color: rgba(255, 74, 28, 0.45); }
.orbiter svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counter-spin {
  from { transform: rotate(calc(var(--a) * -1)); }
  to   { transform: rotate(calc(var(--a) * -1 - 360deg)); }
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 28px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  display: none;
}
.scroll-cue span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--red);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Ribbon ---------- */
.ribbon-wrap {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 4vw 0;
  margin: -3vw 0;
}
.ribbon {
  position: relative;
  width: 112vw;
  margin: 0 0 0 -6vw;
  padding: 18px 0;
  background: var(--red);
  color: var(--ink);
  transform: rotate(-2deg);
  overflow: hidden;
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
}
.ribbon-group span {
  font-stretch: 125%;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ribbon-group svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(96px, 12vw, 168px);
}
.section-head { margin-bottom: clamp(48px, 6vw, 80px); }

/* Scroll reveal (JavaScript only) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Topics ---------- */
.topics-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.topic {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 6px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.topic:last-child { border-bottom: 1px solid var(--line); }
.topic::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.topic:hover::after { transform: scaleX(1); }

.topic-icon {
  grid-row: span 2;
  width: 32px; height: 32px;
  margin-top: 2px;
  fill: none;
  stroke: var(--graphite);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease, transform 0.5s var(--ease);
}
.topic:hover .topic-icon { stroke: var(--red); transform: rotate(-10deg) scale(1.1); }

.topic-name {
  font-stretch: 115%;
  font-weight: 800;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: transform 0.5s var(--ease), color 0.3s ease;
}
.topic:hover .topic-name { transform: translateX(8px); }

.topic-desc {
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.55;
  max-width: 48ch;
}

/* ---------- Big questions ---------- */
.panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
.panel {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  background: var(--carbon);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.5s var(--ease);
}
.panel:hover { border-color: rgba(255, 74, 28, 0.5); }

.panel-art {
  width: 100%;
  height: auto;
  max-height: 240px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: var(--ink);
  overflow: visible;
}

.panel-title {
  font-stretch: 120%;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.panel-text {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--graphite);
}

.tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--bone);
  font-size: 14px;
  font-weight: 500;
}

/* Panel animations run only while the panel is on screen */
.panel-art * { animation-play-state: paused; }
.panel.is-live .panel-art * { animation-play-state: running; }

/* Mobility */
.art-mobility .road-edge { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.art-mobility .horizon { fill: none; stroke: var(--line); stroke-width: 1.5; }
.art-mobility .road-lane {
  fill: none; stroke: var(--red); stroke-width: 3;
  stroke-dasharray: 10 14;
  animation: lane 0.7s linear infinite;
}
.art-mobility .taxi { animation: hover-y 3.2s ease-in-out infinite; }
.art-mobility .taxi-body { fill: var(--bone); }
.art-mobility .taxi-arm, .art-mobility .taxi-leg { fill: none; stroke: var(--bone); stroke-width: 3; stroke-linecap: round; }
.art-mobility .taxi-rotor {
  fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linecap: round;
  transform-box: fill-box; transform-origin: center;
  animation: rotor 0.18s linear infinite;
}
.art-mobility .taxi-shadow {
  fill: rgba(255, 74, 28, 0.18);
  transform-box: fill-box; transform-origin: center;
  animation: shadow-pulse 3.2s ease-in-out infinite;
}
@keyframes lane { to { stroke-dashoffset: 24; } }
@keyframes hover-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rotor { 50% { transform: scaleX(0.35); } }
@keyframes shadow-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.8); opacity: 0.6; } }

/* Devices */
.art-devices .signal {
  fill: none; stroke: var(--red); stroke-width: 2;
  transform-box: fill-box; transform-origin: center;
  opacity: 0;
  animation: ping 3s var(--ease) infinite;
}
.art-devices .s2 { animation-delay: 1s; }
.art-devices .s3 { animation-delay: 2s; }
.art-devices .device { fill: var(--ink); stroke: var(--bone); stroke-width: 2.5; }
.art-devices .device-lines {
  fill: none; stroke: rgba(245, 245, 242, 0.35); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 32 6;
  animation: feed 2.4s linear infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes feed { to { stroke-dashoffset: -76; } }

/* AI */
.art-ai .net { fill: none; stroke: rgba(245, 245, 242, 0.16); stroke-width: 1.5; }
.art-ai .net-pulse {
  fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 22 600;
  stroke-dashoffset: 622;
  animation: pulse-run 2.6s var(--ease) infinite;
}
.art-ai .p2 { animation-delay: 0.9s; }
.art-ai .p3 { animation-delay: 1.7s; }
.art-ai .nodes circle { fill: var(--ink); stroke: var(--bone); stroke-width: 2; }
@keyframes pulse-run { to { stroke-dashoffset: 0; } }

/* Space */
.art-space .stars circle { fill: var(--bone); animation: twinkle 2.6s ease-in-out infinite; }
.art-space .stars circle:nth-child(2n) { animation-delay: 1.1s; }
.art-space .stars circle:nth-child(3n) { animation-delay: 1.9s; }
.art-space .orbit-path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 4 7; }
.art-space .planet { fill: var(--red); }
.art-space .planet-band { fill: none; stroke: rgba(7, 7, 7, 0.28); stroke-width: 6; stroke-linecap: round; }
.art-space .sat rect { fill: var(--bone); }
.art-space .sat path { fill: none; stroke: var(--bone); stroke-width: 3; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ---------- Mission ---------- */
.mission { padding-block: clamp(110px, 16vw, 220px); }
.manifesto {
  max-width: 22ch;
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.manifesto .word { color: rgba(245, 245, 242, 0.16); transition: color 0.35s ease; }
.manifesto .word.is-lit { color: var(--bone); }
.manifesto .word.is-lit.is-key { color: var(--red); }
.tagline {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--graphite);
  letter-spacing: 0.04em;
}

/* ---------- Newsletter ---------- */
.signup {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  padding: clamp(32px, 6vw, 72px);
  background: var(--red);
  color: var(--ink);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}
.signup .lede { color: rgba(7, 7, 7, 0.82); }
.signup-z {
  position: absolute;
  right: -6%;
  bottom: -30%;
  z-index: -1;
  width: min(560px, 80vw);
  height: auto;
  aspect-ratio: 1;
  fill: var(--red-deep);
  opacity: 0.55;
  transform: rotate(-8deg);
}
.signup-form { align-self: end; }
.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}
.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}
.field {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 54px;
  padding: 0 18px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: #FFF4EF;
  border: 2px solid var(--ink);
  border-radius: 10px;
  outline: none;
  transition: box-shadow 0.2s ease;
}
.field::placeholder { color: #6E5249; }
.field:focus-visible { box-shadow: 0 0 0 4px rgba(7, 7, 7, 0.28); }
.field[aria-invalid="true"] { border-color: #5A0E00; box-shadow: 0 0 0 4px rgba(90, 14, 0, 0.25); }
.signup .btn-red { --btn-bg: var(--ink); --btn-fg: var(--bone); margin-left: 6px; }
.signup .btn-red:hover { --btn-bg: #222; }
.signup :focus-visible { outline-color: var(--ink); }
.form-msg {
  min-height: 1.6em;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(72px, 9vw, 120px) 0 36px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.footer-tagline {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--graphite);
}
.footer-head {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.footer-nav li + li { margin-top: 8px; }
.footer-nav a {
  color: var(--bone);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--red); }

/* Social icons */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-nav .footer-social li + li { margin-top: 0; }
.footer-nav .social-link {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--bone);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease);
}
.footer-nav .social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.footer-nav .social-link:hover {
  color: var(--ink);
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-3px);
}
.footer-nav .social-link:focus-visible {
  border-radius: 50%;
}
.footer-nav .social-link-text {
  width: auto;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
}

.site-footer .container { container-type: inline-size; }
.footer-word {
  margin: clamp(48px, 7vw, 96px) 0 0;
  font-stretch: 125%;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(44px, 12.6vw, 196px);
  font-size: min(196px, 10.2cqi);
  line-height: 0.9;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--muted);
  font-size: 14px;
}
.to-top { margin-left: auto; color: var(--bone); font-weight: 600; text-decoration: none; }
.to-top:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .topic {
    grid-template-columns: 44px minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: 24px;
    align-items: center;
  }
  .topic-icon { grid-row: auto; }
}

@media (min-width: 900px) {
  .panels { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .panel { grid-column: span 5; }
  .panel-wide { grid-column: span 7; }
  .signup { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; }
  .footer-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; }
  .hero-title { font-size: min(clamp(52px, 5.6vw, 84px), 10.5cqi); }
  .hero-canvas {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 38%, #000 62%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.25) 38%, #000 62%);
  }
  .core-wrap { width: min(520px, 100%); }
  .scroll-cue { display: block; }
  .topics-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .topics-head { position: sticky; top: calc(var(--hh) + 48px); }
}

@media (max-width: 899px) {
  :root { --hh: 64px; }
  .menu-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .nav {
    position: fixed;
    top: var(--hh); left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 32px var(--gutter) 48px;
    background: var(--ink);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.4s var(--ease), visibility 0s linear 0.4s;
  }
  .is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s ease, transform 0.4s var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-link {
    display: block;
    padding: 20px 0;
    color: var(--bone);
    font-stretch: 125%;
    font-weight: 900;
    font-style: italic;
    font-size: 30px;
    letter-spacing: -0.02em;
  }
  .nav-link::after { display: none; }
  .nav-cta-mobile { display: block; border-bottom: 0 !important; padding: 32px 0 0 8px; }
  .brand-word { font-size: 19px; }
}

@media (max-width: 520px) {
  .header-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { padding-top: calc(var(--hh) + 32px); }
  .orbiter { width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 11px; }
  .orbiter svg { width: 20px; height: 20px; }
  .to-top { margin-left: 0; }
}

/* ---------- WordPress ---------- */

/* Signup form: hidden spam trap and busy state */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup-form.is-busy .btn { cursor: progress; opacity: 0.7; }

/* Admin bar (only shown to signed-in users) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 899px) {
  .admin-bar .nav { top: calc(var(--hh) + 32px); }
}
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .admin-bar .nav { top: calc(var(--hh) + 46px); }
}
@media screen and (max-width: 600px) {
  /* On phones the admin bar scrolls away, so hide it on the landing page */
  #wpadminbar { display: none; }
  html:root { margin-top: 0 !important; }
  .admin-bar .site-header { top: 0; }
  .admin-bar .nav { top: var(--hh); }
}

/* Page not found */
.tz-404 {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--gutter);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
}
.tz-404-mark { width: 72px; height: 72px; }
.tz-404 h1 {
  font-stretch: 125%;
  font-weight: 900;
  font-style: italic;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.tz-404 p { max-width: 44ch; color: var(--graphite); font-size: 18px; }
.tz-404 .btn { margin: 8px 0 0 8px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .loader { animation: loader-fallback 0.001ms linear 0.3s forwards !important; }
  .ribbon-track { transform: none; }
  .caret { animation: none; }
}
