/*
 * Stillwater System landing page
 * Copyright (C) 2026 Jeffrey C. Russell — AGPL-3.0-only
 */

:root {
  --bg: #05080d;
  --bg-soft: #090e16;
  --panel: rgba(15, 22, 33, 0.76);
  --panel-solid: #0f1621;
  --line: rgba(175, 206, 230, 0.14);
  --line-strong: rgba(175, 206, 230, 0.28);
  --text: #f2f6f9;
  --muted: #99a7b5;
  --faint: #667482;
  --cyan: #28c8ff;
  --cyan-soft: #57a9ff;
  --gold: #f2ac35;
  --red: #ed3541;
  --sea: #00dded;
  --max: 1240px;
  --radius: 28px;
  --pointer-x: 50vw;
  --pointer-y: 20vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(27, 110, 164, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 36%, rgba(206, 130, 22, 0.08), transparent 26rem),
    var(--bg);
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  color: #041019;
  background: var(--cyan);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--bg);
  background: var(--text);
  border-radius: 9px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.ambient {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 13, 0.04), rgba(5, 8, 13, 0.72) 72%, var(--bg));
}

.ambient-grid {
  position: absolute;
  inset: -20%;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(93, 153, 196, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 153, 196, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 30%, black 0%, transparent 68%);
  transform: perspective(800px) rotateX(52deg) translateY(-12%);
  transform-origin: center top;
}

.pointer-glow {
  position: absolute;
  width: 50rem;
  height: 50rem;
  left: var(--pointer-x);
  top: var(--pointer-y);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 151, 220, 0.13), transparent 64%);
  transform: translate(-50%, -50%);
  transition: opacity 240ms ease;
}

.ghost-logo {
  position: absolute;
  width: clamp(110px, 13vw, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 32%;
  opacity: 0.045;
  filter: saturate(0.55) contrast(1.15);
  box-shadow: 0 0 80px rgba(38, 190, 255, 0.15);
  will-change: transform;
  transform: translate3d(var(--move-x, 0), var(--move-y, 0), 0) rotate(var(--spin, 0deg));
  transition: opacity 500ms ease, filter 500ms ease;
}

.ghost-logo.is-near {
  opacity: 0.12;
  filter: saturate(0.9) contrast(1.1);
}

.ghost-1 { left: -3%; top: 12%; --spin: -12deg; }
.ghost-2 { right: 4%; top: 7%; --spin: 8deg; }
.ghost-3 { left: 5%; top: 52%; --spin: 7deg; }
.ghost-4 { right: -2%; top: 43%; --spin: -8deg; }
.ghost-5 { left: 37%; top: 76%; --spin: 13deg; }
.ghost-6 { right: 22%; top: 89%; --spin: -5deg; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 32px), 1180px);
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 12px 0 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  transform: translateX(-50%);
  transition: background 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.site-header.scrolled {
  background: rgba(7, 11, 17, 0.82);
  border-color: var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand b {
  color: var(--muted);
  font-weight: 500;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(80, 189, 245, 0.35);
  border-radius: 50%;
  color: #dff5ff;
  background: linear-gradient(145deg, #172434, #080d14);
  box-shadow: inset 0 0 18px rgba(40, 200, 255, 0.16), 0 0 28px rgba(40, 200, 255, 0.08);
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: italic;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(168, 197, 219, 0.1);
  border-radius: 13px;
  background: rgba(7, 11, 17, 0.34);
}

.site-header nav a,
.header-cta {
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 180ms ease, background 180ms ease;
}

.site-header nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.header-cta {
  justify-self: end;
  color: #071018;
  background: var(--text);
}

.header-cta:hover {
  background: var(--cyan);
}

.hero {
  position: relative;
  width: min(calc(100% - 48px), var(--max));
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
  padding: 148px 0 110px;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow,
.section-index {
  margin: 0 0 22px;
  color: #a6b8c7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 31px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero h1,
.statement h2,
.systems-heading h2,
.principles h2,
.about h2,
.closing h2 {
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(54px, 7vw, 108px);
}

h1 em,
.closing em {
  color: transparent;
  background: linear-gradient(105deg, #a9eaff 4%, #2bc9ff 45%, #6ca4ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hero-lede {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #041019;
  background: var(--text);
  border-color: var(--text);
}

.button-primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}

.button-quiet {
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.button-quiet:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 7px 10px;
  color: var(--faint);
  border: 1px solid rgba(170, 204, 229, 0.1);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 600px;
  transform-style: preserve-3d;
}

.visual-halo {
  position: absolute;
  width: min(52vw, 690px);
  aspect-ratio: 1;
  border: 1px solid rgba(84, 184, 242, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(39, 175, 235, 0.12), transparent 57%),
    repeating-radial-gradient(circle, rgba(92, 175, 225, 0.13) 0 1px, transparent 1px 56px);
  animation: halo-breathe 7s ease-in-out infinite;
}

.portfolio-stage {
  position: relative;
  width: min(54vw, 730px);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(132, 199, 238, 0.19);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(12, 25, 39, 0.96), rgba(3, 7, 12, 0.98)),
    #020407;
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.52), 0 0 80px rgba(21, 143, 205, 0.1);
  transform: translateZ(22px) rotateY(-4deg) rotateX(2deg);
}

.portfolio-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.1) 47%, transparent 64%);
  transform: translateX(-120%);
  animation: sheen 8s ease-in-out infinite 1.5s;
}

.stage-wordmark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  transform: translate(-50%, -50%);
}

.stage-brand-mark,
.about-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(75, 191, 248, 0.34);
  border-radius: 50%;
  color: #d7f5ff;
  background: radial-gradient(circle at 35% 28%, #204b67, #091522 64%, #04090e);
  box-shadow: 0 0 48px rgba(35, 180, 244, 0.2), inset 0 0 24px rgba(68, 193, 249, 0.12);
  font-family: Georgia, serif;
  font-size: 48px;
  font-style: italic;
  font-weight: 700;
}

.stage-wordmark strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.stage-wordmark small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stage-product {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(8, 15, 24, 0.76);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-product img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.stage-stillwater { top: 8%; left: 7%; }
.stage-frettrack { top: 8%; right: 7%; }
.stage-wrose { right: 7%; bottom: 8%; }
.stage-ai1sad { bottom: 8%; left: 7%; }
.stage-amm { left: 50%; bottom: 7%; transform: translateX(-50%); }

.amm-monogram {
  color: var(--cyan);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.orbit {
  position: absolute;
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(6, 10, 16, 0.74);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3), inset 0 0 28px rgba(43, 189, 249, 0.08);
  backdrop-filter: blur(12px);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.orbit::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(130, 198, 237, 0.25);
  border-radius: inherit;
}

.orbit-one { top: 4%; right: 2%; animation: float 6s ease-in-out infinite; }
.orbit-two { bottom: 8%; left: -3%; animation: float 7s ease-in-out infinite -2s; }
.orbit-three { right: 10%; bottom: 0; width: 72px; height: 72px; animation: float 5.5s ease-in-out infinite -1s; }

.scroll-cue {
  position: absolute;
  right: 0;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--faint);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(100%);
  transform-origin: right bottom;
}

.scroll-cue i {
  width: 62px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.scroll-cue i::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
  animation: scroll-line 2.4s ease-in-out infinite;
}

.statement,
.principles,
.about,
.closing {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.statement {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 0.32fr 1.1fr 0.55fr;
  align-items: center;
  gap: clamp(26px, 4vw, 70px);
  padding: 120px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-index {
  align-self: start;
  margin-top: 12px;
  color: var(--faint);
}

.statement h2,
.systems-heading h2,
.principles h2,
.about h2,
.closing h2 {
  font-size: clamp(42px, 5.5vw, 82px);
}

.statement > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.systems {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  padding: 150px 0;
}

.systems-heading {
  max-width: 850px;
  margin-bottom: 78px;
}

.systems-heading > p:last-child {
  max-width: 530px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.system-stack {
  display: grid;
  gap: 30px;
}

.system-card {
  --accent: var(--cyan);
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: 76px minmax(320px, 0.88fr) minmax(300px, 1.12fr);
  align-items: center;
  gap: 42px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 66px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 83% 52%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 35, 0.96), rgba(7, 11, 18, 0.88));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.25);
  transform-style: preserve-3d;
  transition: border-color 350ms ease, box-shadow 350ms ease;
}

.system-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, black 58%);
}

.system-card:hover,
.system-card.in-view {
  border-color: color-mix(in srgb, var(--accent) 36%, transparent);
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.36), 0 0 70px color-mix(in srgb, var(--accent) 8%, transparent);
}

.system-frettrack { --accent: var(--gold); }
.system-wrose { --accent: var(--red); }
.system-ai1sad { --accent: var(--sea); }
.system-amm { --accent: #18d7c5; }

.card-number {
  position: relative;
  z-index: 1;
  align-self: start;
  padding-top: 6px;
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.card-number::after {
  content: "";
  display: block;
  width: 1px;
  height: 150px;
  margin: 22px 0 0 7px;
  background: linear-gradient(var(--accent), transparent);
}

.card-copy {
  position: relative;
  z-index: 2;
  transform: translateZ(28px);
}

.status {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 42px;
  padding: 7px 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.status.live span {
  animation: live-pulse 1.8s ease-out infinite;
}

.product-kind {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.system-card h3 {
  margin: 0 0 24px;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 640;
  letter-spacing: -0.055em;
  line-height: 1;
}

.card-copy > p:not(.product-kind) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c5d0d9;
  font-size: 13px;
}

.feature-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px color-mix(in srgb, var(--accent) 65%, transparent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 4px;
  color: var(--text);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
  font-size: 13px;
  font-weight: 650;
}

.text-link span {
  color: var(--accent);
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.card-art {
  position: relative;
  z-index: 1;
  min-height: 470px;
  display: grid;
  place-items: center;
  transform: translateZ(36px);
}

.card-art::before,
.card-art::after {
  content: "";
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: 50%;
}

.card-art::before {
  width: min(38vw, 480px);
  aspect-ratio: 1;
  animation: spin-slow 28s linear infinite;
  border-style: dashed;
}

.card-art::after {
  width: min(31vw, 390px);
  aspect-ratio: 1;
  box-shadow: 0 0 90px color-mix(in srgb, var(--accent) 12%, transparent);
}

.card-art img {
  position: relative;
  z-index: 2;
  width: min(29vw, 350px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 25%;
  filter: saturate(0.92) contrast(1.04);
  box-shadow: 0 34px 75px rgba(0, 0, 0, 0.55), 0 0 54px color-mix(in srgb, var(--accent) 12%, transparent);
  transition: transform 500ms cubic-bezier(.2,.8,.2,1), filter 500ms ease;
}

.system-card:hover .card-art img,
.system-card.in-view .card-art img {
  transform: scale(1.045) rotate(1deg);
  filter: saturate(1.05) contrast(1.06);
}

.art-disc {
  position: absolute;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 66%);
}

.amm-art img {
  width: min(23vw, 270px);
  opacity: 0.22;
  filter: hue-rotate(105deg) saturate(1.6);
}

.brain-grid {
  position: absolute;
  z-index: 3;
  width: min(30vw, 365px);
  aspect-ratio: 1;
  border: 1px solid rgba(24, 215, 197, 0.24);
  border-radius: 48% 52% 42% 58%;
  background:
    radial-gradient(circle at 38% 34%, rgba(24, 215, 197, 0.23), transparent 12%),
    radial-gradient(circle at 61% 48%, rgba(24, 215, 197, 0.18), transparent 13%),
    radial-gradient(circle at 44% 70%, rgba(24, 215, 197, 0.15), transparent 10%);
  box-shadow: inset 0 0 80px rgba(24, 215, 197, 0.08), 0 0 55px rgba(24, 215, 197, 0.08);
  animation: brain-morph 8s ease-in-out infinite alternate;
}

.brain-grid span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ffcf0;
  box-shadow: 0 0 15px #18d7c5;
}

.brain-grid span:nth-child(1) { left: 28%; top: 31%; }
.brain-grid span:nth-child(2) { right: 25%; top: 35%; }
.brain-grid span:nth-child(3) { left: 45%; top: 49%; }
.brain-grid span:nth-child(4) { left: 30%; bottom: 28%; }
.brain-grid span:nth-child(5) { right: 29%; bottom: 25%; }
.brain-grid span:nth-child(6) { right: 15%; top: 55%; }

.principles {
  padding: 150px 0;
  border-top: 1px solid var(--line);
}

.principles-intro {
  max-width: 900px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 76px;
}

.principle {
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(16, 24, 35, 0.74), rgba(7, 11, 17, 0.45));
  transition: transform 250ms ease, border-color 250ms ease, background 250ms ease;
}

.principle:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(20, 31, 45, 0.85), rgba(8, 13, 20, 0.7));
}

.principle-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 78px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 22px;
}

.principle h3 {
  margin: 0 0 14px;
  font-size: 19px;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.about {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
  padding: 140px 0;
  border-top: 1px solid var(--line);
}

.about-image {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 42%, rgba(33, 176, 237, 0.16), transparent 36%),
    linear-gradient(145deg, #0d1723, #05080d);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
  transform-style: preserve-3d;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(34, 196, 255, 0.12), transparent 36%, rgba(238, 164, 47, 0.08));
}

.about-image > * {
  position: relative;
  z-index: 1;
}

.about-image p {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  letter-spacing: -0.05em;
}

.about-image ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 420px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-image li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-copy > p:not(.section-index) {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.about-copy .button {
  margin-top: 34px;
}

.closing {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0;
  border-top: 1px solid var(--line);
}

.closing h2 {
  max-width: 1050px;
  font-size: clamp(62px, 10vw, 150px);
}

.closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 62px;
}

.closing-links a {
  padding-bottom: 5px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  font-size: 14px;
  transition: color 180ms ease, border-color 180ms ease;
}

.closing-links a:hover {
  color: var(--text);
  border-color: var(--cyan);
}

footer {
  width: min(calc(100% - 48px), var(--max));
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}

footer p {
  margin: 0;
  text-align: center;
}

footer > a:last-child {
  justify-self: end;
}

.reveal {
  --reveal-y: 34px;
  opacity: 0;
  transition: opacity 850ms cubic-bezier(.2,.8,.2,1), transform 850ms cubic-bezier(.2,.8,.2,1);
}

.reveal.visible {
  --reveal-y: 0px;
  opacity: 1;
}

[data-tilt] {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: translateY(var(--reveal-y, 0px)) perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 180ms ease-out;
}

@keyframes halo-breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.7; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes sheen {
  0%, 18% { transform: translateX(-120%); }
  42%, 100% { transform: translateX(130%); }
}

@keyframes float {
  0%, 100% { transform: translate3d(0, -5px, 26px); }
  50% { transform: translate3d(0, 12px, 26px); }
}

@keyframes scroll-line {
  0% { transform: translateX(-28px); opacity: 0; }
  35%, 65% { opacity: 1; }
  100% { transform: translateX(72px); opacity: 0; }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  100% { box-shadow: 0 0 0 8px transparent; }
}

@keyframes brain-morph {
  0% { border-radius: 48% 52% 42% 58%; transform: rotate(-3deg) scale(0.97); }
  100% { border-radius: 56% 44% 53% 47%; transform: rotate(3deg) scale(1.03); }
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 150px;
  }

  .hero-copy {
    max-width: 800px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .portfolio-stage {
    width: min(88vw, 760px);
  }

  .visual-halo {
    width: min(84vw, 690px);
  }

  .statement {
    grid-template-columns: 0.35fr 1fr;
  }

  .statement > p:last-child {
    grid-column: 2;
  }

  .system-card {
    grid-template-columns: 45px 1fr;
  }

  .card-art {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 390px;
    opacity: 0.42;
  }

  .card-copy,
  .card-number {
    grid-row: 2;
  }

  .card-copy {
    grid-column: 2;
  }

  .card-art img {
    width: min(48vw, 330px);
  }

  .card-art::before { width: min(62vw, 460px); }
  .card-art::after { width: min(51vw, 380px); }

  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero,
  .statement,
  .systems,
  .principles,
  .about,
  .closing,
  footer {
    width: min(calc(100% - 30px), var(--max));
  }

  .hero {
    min-height: auto;
    gap: 48px;
    padding: 140px 0 80px;
  }

  .hero h1 {
    font-size: clamp(49px, 16vw, 78px);
  }

  .hero-visual {
    min-height: 390px;
  }

  .portfolio-stage {
    width: 100%;
    min-height: 380px;
    transform: none;
    border-radius: 18px;
  }

  .stage-wordmark {
    top: 46%;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .stage-brand-mark {
    width: 70px;
    height: 70px;
    font-size: 40px;
  }

  .stage-wordmark strong {
    font-size: 23px;
  }

  .stage-product {
    padding: 7px 9px 7px 7px;
    font-size: 8px;
  }

  .stage-product img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .stage-stillwater { top: 5%; left: 4%; }
  .stage-frettrack { top: 5%; right: 4%; }
  .stage-wrose { right: 4%; bottom: 5%; }
  .stage-ai1sad { bottom: 5%; left: 4%; }
  .stage-amm { bottom: 5%; }

  .orbit {
    width: 72px;
    height: 72px;
  }

  .orbit-three {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  .statement {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 90px 0;
  }

  .statement > p:last-child {
    grid-column: auto;
  }

  .statement h2,
  .systems-heading h2,
  .principles h2,
  .about h2 {
    font-size: clamp(40px, 12vw, 62px);
  }

  .systems,
  .principles {
    padding: 100px 0;
  }

  .systems-heading {
    margin-bottom: 48px;
  }

  .system-card {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
    border-radius: 22px;
  }

  .card-number,
  .card-copy,
  .card-art {
    grid-column: 1;
    grid-row: auto;
  }

  .card-number {
    display: none;
  }

  .card-art {
    grid-row: 1;
    min-height: 300px;
    opacity: 0.72;
  }

  .card-copy {
    grid-row: 2;
  }

  .status {
    margin-bottom: 28px;
  }

  .system-card h3 {
    font-size: clamp(42px, 14vw, 64px);
  }

  .card-copy > p:not(.product-kind) {
    font-size: 15px;
  }

  .card-art img {
    width: min(62vw, 260px);
  }

  .brain-grid {
    width: min(68vw, 280px);
  }

  .principle-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .principle {
    min-height: 240px;
  }

  .principle-icon {
    margin-bottom: 46px;
  }

  .about {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 90px 0;
  }

  .closing {
    min-height: 72vh;
    padding: 100px 0;
  }

  .closing h2 {
    font-size: clamp(56px, 18vw, 92px);
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 38px 0;
  }

  footer p {
    text-align: left;
  }

  footer > a:last-child {
    justify-self: start;
  }

  .ghost-logo {
    width: 120px;
    opacity: 0.035;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    --reveal-y: 0px;
    opacity: 1;
  }

  [data-tilt] {
    transform: none;
  }
}
