:root {
  --bg-deep: #070811;
  --bg-elevated: #0d0f1d;
  --bg-card: rgba(15, 18, 34, 0.72);
  --iris-primary: #6366f1;
  --iris-bright: #818cf8;
  --iris-pale: #a5b4fc;
  --iris-glow: rgba(79, 70, 229, 0.42);
  --text-main: #f8fafc;
  --text-muted: rgba(226, 232, 240, 0.66);
  --text-dim: rgba(165, 180, 252, 0.46);
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-iris: rgba(129, 140, 248, 0.28);
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', 'SFMono-Regular', Consolas, monospace;
  --max-w: 1240px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle architectural background grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 8, 17, 0.82);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.35));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  color: var(--iris-pale);
  margin-top: 3px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-telemetry {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--iris-pale);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--hairline-iris);
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.07);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--iris-primary);
  box-shadow: 0 0 10px var(--iris-primary);
  animation: pulse 2.6s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.62;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 17, 0.78) 0%, rgba(7, 8, 17, 0.38) 45%, rgba(7, 8, 17, 0.96) 100%),
    radial-gradient(ellipse at 65% 48%, rgba(99, 102, 241, 0.22), transparent 62%);
}

#atmosphere-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  padding: 6.5rem 0 4rem;
  max-width: 840px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--iris-pale);
  margin-bottom: 1.5rem;
}

.eyebrow-bar {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--iris-primary), var(--iris-pale));
}

.hero-headline {
  font-size: clamp(2.5rem, 5.6vw, 4.75rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-headline .iris-gradient {
  background: linear-gradient(90deg, #ffffff 0%, var(--iris-pale) 55%, var(--iris-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--iris-primary), #4f46e5);
  color: #ffffff;
  border-color: rgba(165, 180, 252, 0.35);
  box-shadow: 0 0 28px -6px var(--iris-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px -2px rgba(99, 102, 241, 0.65);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  border-color: var(--iris-pale);
  background: rgba(99, 102, 241, 0.09);
}

/* Hero Telemetry Strip */
.hero-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline);
  background: rgba(7, 8, 17, 0.76);
  backdrop-filter: blur(10px);
}

.hero-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--hairline);
}

.strip-cell {
  padding: 1.15rem 1.25rem;
  border-right: 1px solid var(--hairline);
}

.strip-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.strip-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Section Layout */
.section {
  padding: 6.5rem 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--iris-pale);
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Manifesto Section */
.manifesto-lead {
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 900px;
  color: var(--text-main);
  margin-bottom: 3.5rem;
}

.manifesto-lead span {
  color: var(--iris-pale);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
  background: var(--bg-card);
}

.pillar-card {
  padding: 2.25rem;
  border-right: 1px solid var(--hairline);
  transition: background 0.25s ease;
}

.pillar-card:last-child {
  border-right: none;
}

.pillar-card:hover {
  background: rgba(99, 102, 241, 0.05);
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--iris-bright);
  letter-spacing: 0.16em;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.pillar-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* Unannounced Project Dossier */
.project-showcase {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border: 1px solid var(--hairline-iris);
  background: var(--bg-elevated);
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.85);
}

.project-visual {
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-showcase:hover .project-visual img {
  transform: scale(1.03);
}

.visual-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  background: rgba(7, 8, 17, 0.82);
  border: 1px solid var(--hairline);
  color: var(--iris-pale);
}

.project-details {
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
}

.dossier-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--iris-pale);
  padding: 0.3rem 0.65rem;
  background: rgba(99, 102, 241, 0.12);
  border-left: 2px solid var(--iris-primary);
  width: fit-content;
}

.project-details h3 {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.85rem;
}

.project-details p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-top: 0.85rem;
}

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.spec-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.spec-item strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-main);
}

/* R&D Journal / Lab Notes */
.journal-list {
  display: grid;
  gap: 1rem;
}

.journal-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  color: inherit;
  font-family: inherit;
}

.journal-row:hover {
  border-color: var(--iris-bright);
  background: rgba(99, 102, 241, 0.07);
  transform: translateX(4px);
}

.journal-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--iris-pale);
  letter-spacing: 0.12em;
}

.journal-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.journal-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.journal-arrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iris-pale);
}

/* Brand & Press Kit Section */
.brand-kit-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.asset-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.asset-card {
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  border-radius: 6px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.asset-preview {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  background: #05060c;
  padding: 1rem;
}

.asset-preview.light-checker {
  background: #f1f5f9;
}

.asset-preview img {
  max-height: 64px;
  width: auto;
}

.asset-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.asset-name {
  font-size: 0.82rem;
  font-weight: 700;
}

.asset-dl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--iris-pale);
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--hairline-iris);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.asset-dl:hover {
  background: rgba(99, 102, 241, 0.2);
}

.palette-panel {
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.swatch-list {
  display: grid;
  gap: 0.75rem;
}

.swatch-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: border-color 0.2s ease;
}

.swatch-btn:hover {
  border-color: var(--iris-pale);
}

.swatch-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.swatch-chip {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Dispatch / Contact Section */
.connect-box {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border: 1px solid var(--hairline-iris);
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(99, 102, 241, 0.16), transparent 65%),
    var(--bg-elevated);
}

.dispatch-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dispatch-input {
  flex: 1;
  min-width: 220px;
  padding: 0.9rem 1.1rem;
  background: rgba(7, 8, 17, 0.9);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.dispatch-input:focus {
  outline: none;
  border-color: var(--iris-primary);
}

.form-feedback {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--iris-pale);
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

.footer-brand-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-studio-name {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-main);
  font-size: 0.86rem;
  white-space: nowrap;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--iris-pale);
}

.footer-nav-links a {
  white-space: nowrap;
  transition: color 0.2s ease;
}

.footer-nav-links a:hover {
  color: var(--text-main);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-links a {
  white-space: nowrap;
  padding: 0.25rem 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--iris-pale);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.76rem;
  opacity: 0.68;
}

.footer-email {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--iris-pale);
}

/* Modal Reader for R&D Logs */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 5, 12, 0.84);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  max-width: 680px;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline-iris);
  border-radius: 6px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.9);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
  border-color: var(--iris-pale);
}

.modal-body p {
  margin-top: 1rem;
  color: var(--text-muted);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .hero-strip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pillars-grid,
  .project-showcase,
  .brand-kit-grid,
  .connect-box {
    grid-template-columns: 1fr;
  }
  .pillar-card {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .journal-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 560px) {
  .asset-cards,
  .hero-strip-grid,
  .spec-list {
    grid-template-columns: 1fr;
  }
  .connect-box {
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
  }
  .dispatch-input {
    min-width: 0;
    width: 100%;
  }
  .modal-panel {
    padding: 1.5rem;
  }
  .footer-top,
  .footer-brand-group {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.15rem;
  }
}
