:root {
  --bg: #050816;
  --surface: rgba(10, 17, 31, 0.7);
  --surface-strong: rgba(14, 24, 40, 0.92);
  --line: rgba(151, 172, 209, 0.22);
  --line-strong: rgba(203, 255, 72, 0.45);
  --text: #eef3ff;
  --muted: #98abc9;
  --signal: #cbff48;
  --hot: #ff5a4f;
  --teal: #64d2d4;
  --warm: #f0b66d;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 28px;
  --max-width: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-space: clamp(84px, 10vw, 152px);
  --header-height: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(17, 122, 130, 0.24), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(255, 90, 79, 0.2), transparent 26%),
    radial-gradient(circle at 62% 82%, rgba(203, 255, 72, 0.12), transparent 22%),
    linear-gradient(180deg, #04070f 0%, #07111d 34%, #050816 100%);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.02) 46%, rgba(255, 255, 255, 0) 82%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0) 100%);
  opacity: 0.4;
  z-index: 0;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 4px, 4px 100%;
  mix-blend-mode: soft-light;
  opacity: 0.12;
  z-index: 1;
}

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

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

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header,
.site-footer,
.hero,
.manifesto,
.transmission,
.system,
.launch {
  width: min(var(--max-width), calc(100vw - (var(--gutter) * 2)));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-height);
  position: sticky;
  top: 0;
  padding-top: 12px;
  backdrop-filter: blur(18px);
  z-index: 10;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 8px 0 auto;
  height: calc(100% - 16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(11, 19, 32, 0.78), rgba(8, 14, 24, 0.48));
  z-index: -1;
}

.brand,
h1,
h2,
h3 {
  font-family: "Syne", "Zen Kaku Gothic New", sans-serif;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a,
.header-cta {
  position: relative;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a::after,
.header-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--signal), transparent);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
}

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

.header-cta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero,
.manifesto,
.transmission,
.system,
.launch {
  padding-block: var(--section-space);
}

.hero {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(48px, 9vw, 120px);
}

.eyebrow,
.section-label,
.meta-label,
.hero-notes span,
.tag-row span,
.placeholder-note,
.site-footer {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.section-label {
  margin: 0 0 20px;
  color: var(--signal);
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-size: clamp(3.6rem, 10vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  max-width: 8ch;
}

.hero-kicker {
  margin: 28px 0 16px;
  max-width: 20ch;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.18;
  font-weight: 700;
}

.hero-body,
.manifesto-body,
.manifesto-lead,
.project-intro,
.system-card__copy p,
.launch-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-body {
  max-width: 58ch;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition:
    transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 200ms ease,
    background 200ms ease,
    border-color 200ms ease;
}

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

.button--primary {
  color: #08100a;
  background: linear-gradient(135deg, var(--signal), #f8ffdb);
  box-shadow: 0 12px 36px rgba(203, 255, 72, 0.18);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.7rem;
}

.hero-stage {
  position: relative;
  min-height: 680px;
  perspective: 1200px;
}

.hero-ring {
  position: absolute;
  inset: 8% 10% auto auto;
  width: clamp(260px, 42vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(203, 255, 72, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(99, 210, 212, 0.08),
    0 0 100px rgba(99, 210, 212, 0.08);
  animation: ring-spin 22s linear infinite;
}

.hero-ring::before,
.hero-ring::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 90, 79, 0.22);
}

.hero-ring::after {
  inset: 30%;
  border-style: solid;
  border-color: rgba(238, 243, 255, 0.08);
}

.stage-card,
.manifesto-visual,
.frame-card,
.system-card,
.launch-visual,
.project-brief,
.manifesto-copy {
  background: linear-gradient(180deg, rgba(13, 22, 38, 0.92), rgba(8, 12, 22, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stage-card {
  position: absolute;
  overflow: hidden;
}

.stage-card img {
  height: 100%;
  object-fit: cover;
}

.stage-card figcaption,
.manifesto-visual figcaption,
.frame-card figcaption,
.launch-visual figcaption {
  padding: 14px 16px 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.stage-card--main {
  inset: 11% 6% 15% 14%;
  transform: rotate(-3deg);
}

.stage-card--model {
  width: min(38vw, 340px);
  aspect-ratio: 0.78;
  top: 0;
  right: 4%;
  transform: rotate(6deg);
}

.stage-card--ship {
  width: min(30vw, 320px);
  aspect-ratio: 1.05;
  right: -2%;
  bottom: 4%;
  transform: rotate(10deg);
}

.crop-orbit {
  height: 100%;
  object-fit: cover;
  object-position: center 74%;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.92fr;
  grid-template-areas:
    "copy warm"
    "copy quiet";
  gap: clamp(18px, 2vw, 24px);
}

.manifesto-copy {
  grid-area: copy;
  padding: clamp(24px, 4vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
}

.manifesto-lead {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.18rem, 2.4vw, 1.72rem);
  line-height: 1.45;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-row span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.7rem;
}

.manifesto-visual {
  min-height: 320px;
}

.manifesto-visual--warm {
  grid-area: warm;
}

.manifesto-visual--quiet {
  grid-area: quiet;
}

.manifesto-visual img {
  height: 100%;
  object-fit: cover;
}

.transmission-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(20px, 2.5vw, 28px);
  align-items: start;
}

.project-brief {
  position: sticky;
  top: 120px;
  padding: clamp(24px, 4vw, 38px);
}

.project-meta {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.meta-label {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--signal);
  font-size: 0.68rem;
}

.project-meta strong {
  display: block;
  font-size: 1rem;
  line-height: 1.6;
}

.frame-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

.frame-card {
  min-height: 320px;
}

.frame-card img,
.launch-visual img {
  height: calc(100% - 54px);
  object-fit: cover;
}

.frame-card--wide {
  grid-column: 1 / -1;
  min-height: 480px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

.system-card {
  display: grid;
  min-height: 100%;
}

.system-card img {
  aspect-ratio: 1.08;
  object-fit: cover;
}

.system-card__copy {
  padding: 20px 20px 24px;
}

.system-card__copy h3 {
  margin: 10px 0 10px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.signal-strip {
  display: flex;
  gap: 32px;
  overflow: hidden;
  margin-top: 28px;
  padding: 16px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: rgba(238, 243, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-strip span {
  flex: 0 0 auto;
  animation: marquee 22s linear infinite;
}

.launch-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(20px, 2.5vw, 28px);
  align-items: stretch;
}

.launch-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.placeholder-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.72rem;
}

.launch-visual {
  min-height: 520px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 48px;
  color: var(--muted);
  font-size: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

body.studio-enabled .reveal {
  opacity: 1;
  transform: none;
}

.studio-panel {
  position: fixed;
  top: 24px;
  right: 24px;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(8, 14, 24, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  z-index: 40;
}

.studio-panel__title,
.studio-panel__section h3 {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.studio-panel__title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--signal);
}

.studio-panel__status {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.studio-panel__section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-panel__section h3 {
  margin: 0 0 12px;
  font-size: 0.72rem;
}

.studio-panel label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.studio-panel textarea,
.studio-panel input[type="number"],
.studio-panel input[type="range"] {
  width: 100%;
}

.studio-panel textarea,
.studio-panel input[type="number"] {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.studio-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.studio-panel__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.studio-panel button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.studio-panel button:hover,
.studio-panel button:focus-visible {
  border-color: rgba(203, 255, 72, 0.38);
}

body.studio-enabled [data-lp-editable],
body.studio-enabled [data-lp-movable],
body.studio-enabled [data-lp-section] {
  cursor: crosshair;
}

body.studio-enabled [data-lp-editable]:hover,
body.studio-enabled [data-lp-movable]:hover,
body.studio-enabled [data-lp-section]:hover {
  outline: 1px solid rgba(203, 255, 72, 0.45);
  outline-offset: 4px;
}

.studio-selected {
  outline: 2px solid rgba(255, 90, 79, 0.7) !important;
  outline-offset: 6px !important;
}

@keyframes ring-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - 32px));
  }
}

@media (max-width: 1100px) {
  .hero,
  .transmission-layout,
  .launch-grid,
  .manifesto-grid,
  .system-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-grid {
    grid-template-areas:
      "copy"
      "warm"
      "quiet";
  }

  .hero {
    padding-top: 36px;
  }

  .hero-stage {
    min-height: 560px;
  }

  .project-brief {
    position: static;
  }

  .system-grid {
    gap: 20px;
  }
}

@media (max-width: 820px) {
  .site-header {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 0;
  }

  .site-header::after {
    border-radius: 28px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    padding-inline: 14px;
  }

  .hero-stage {
    min-height: 500px;
  }

  .stage-card--main {
    inset: 12% 4% 14% 6%;
  }

  .stage-card--model {
    width: 44vw;
    max-width: 250px;
  }

  .stage-card--ship {
    width: 42vw;
    max-width: 230px;
    right: 2%;
  }

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

  .frame-card--wide {
    min-height: 380px;
  }

  .launch-visual {
    min-height: 360px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .hero,
  .manifesto,
  .transmission,
  .system,
  .launch {
    width: min(var(--max-width), calc(100vw - 28px));
  }

  .hero-kicker {
    max-width: 100%;
  }

  .hero-stage {
    min-height: 420px;
  }

  .hero-ring {
    width: 88%;
    right: 6%;
  }

  .stage-card--main {
    inset: 10% 0 16% 0;
  }

  .stage-card--model,
  .stage-card--ship {
    transform: none;
  }

  .stage-card--model {
    width: 46%;
    top: -2%;
    right: 2%;
  }

  .stage-card--ship {
    width: 48%;
    right: -1%;
    bottom: 3%;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .launch-actions {
    gap: 12px;
  }

  .studio-panel {
    top: auto;
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
    max-height: 56vh;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

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