/* Razor Butter Studios — Landing Page */

:root {
  --bg: #050505;
  --bg-elevated: #0c0c0c;
  --surface: #111111;
  --border: rgba(122, 165, 165, 0.18);
  --border-strong: rgba(122, 165, 165, 0.35);
  --accent: #7aa5a5;
  --accent-dim: #5a8585;
  --accent-glow: rgba(122, 165, 165, 0.45);
  --text: #d0dede;
  --text-muted: rgba(208, 222, 222, 0.62);
  --text-dim: rgba(208, 222, 222, 0.42);
  --font-display: "Rajdhani", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --topbar-h: 72px;
  --header-h: 0px;
  --banner-h: 0px;
  --max-w: 1400px;
  --section-px: clamp(1.5rem, 4vw, 3rem);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 1rem);
  font-size: 16px;
}

body {
  --spot-x: -999px;
  --spot-y: -999px;
  --spot-r: 240px;

  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Atmospheric overlays */
.site-spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: #090b0c url("../assets/site-spotlight.jpg") center 42% / cover no-repeat;
  transition: opacity 0.15s var(--ease);
  -webkit-mask-image: radial-gradient(
    circle var(--spot-r) at var(--spot-x) var(--spot-y),
    #000 0,
    #000 70%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle var(--spot-r) at var(--spot-x) var(--spot-y),
    #000 0,
    #000 70%,
    transparent 100%
  );
}

body.is-spotlight-active .site-spotlight {
  opacity: 1;
}

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

.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    linear-gradient(rgba(122, 165, 165, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 165, 165, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
}

/* Unified top bar (banner image + navigation) */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: var(--topbar-h);
  overflow: hidden;
  background: #090b0c url("../assets/rbs-banner-bg.jpg") center / cover no-repeat;
  border-bottom: 1px solid rgba(122, 165, 165, 0.22);
}

.site-topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 8, 8, 0.18) 0%, rgba(5, 5, 5, 0.72) 100%);
  pointer-events: none;
}

.site-topbar__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.site-topbar__aside {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
  min-width: 0;
}

.site-topbar__aside--project {
  margin-left: auto;
}

.site-topbar__ticker {
  margin: 0;
  min-width: 0;
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  color: rgba(232, 240, 244, 0.82);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.site-topbar__ticker strong {
  color: #ffffff;
  font-weight: 500;
}

.site-topbar__live {
  color: #52c997;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.3rem;
}

.site-topbar__live::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.3rem;
  margin-bottom: 1px;
  border-radius: 50%;
  background: #52c997;
  box-shadow: 0 0 6px rgba(82, 201, 151, 0.55);
  vertical-align: middle;
}

.site-topbar__date {
  color: #ffffff;
  font-weight: 500;
}

.site-topbar__sep {
  margin: 0 0.3rem;
  color: rgba(122, 165, 165, 0.55);
}

.btn-topbar {
  flex-shrink: 0;
  border-color: rgba(232, 240, 244, 0.28);
  color: rgba(232, 240, 244, 0.88);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-topbar:hover,
.btn-topbar:focus-visible {
  color: #ffffff;
  border-color: rgba(122, 165, 165, 0.55);
  background: rgba(122, 165, 165, 0.12);
}

.access-timer {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.55);
  max-width: 420px;
}

.access-timer__label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.access-timer__value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.08em;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
  margin-bottom: 0.65rem;
}

.access-timer__value--ended { color: var(--text-dim); text-shadow: none; }

.access-timer__note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.access-timer--ended {
  border-color: var(--border);
}

.access-timer--ended .access-timer__value {
  font-size: 1rem;
}

.project-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  z-index: 2;
}

.project-badges .project-badge {
  position: static;
}

.badge-new {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(5, 5, 5, 0.85);
}

.project-hero-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-hero-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.project-hero-tag--new {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.project-hero-tag--live {
  color: var(--bg);
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

@media (max-width: 1200px) {
  .site-topbar__utilities { display: none; }
  .site-topbar__ticker { max-width: 14rem; }
}

@media (max-width: 960px) {
  .site-topbar__ticker { display: none; }
}

@media (max-width: 768px) {
  :root { --topbar-h: 64px; }

  .site-topbar__ticker { display: none; }
}

/* Header navigation (inside top bar) */

.brand {
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0;
  transition: opacity 0.2s var(--ease);
}

.brand:hover { opacity: 0.82; }

.brand-logo {
  width: 44px; height: 44px; object-fit: cover;
  border-radius: 2px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

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

.brand-name {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: #eef6f6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.brand-sub {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.35em;
  text-transform: uppercase; color: rgba(208, 222, 222, 0.72);
}

.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  min-width: 0;
}

.nav-link {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(232, 240, 244, 0.72);
  position: relative; padding: 0.35rem 0 0.5rem;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.nav-link:hover,
.nav-link.active { color: var(--accent); }

.nav-link.active::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.header-actions { display: none; }

.mobile-menu-btn {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block; width: 22px; height: 2px; background: var(--accent);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border-strong);
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary {
  background: transparent; color: var(--accent);
  border-color: var(--accent-dim);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: rgba(122, 165, 165, 0.08);
  box-shadow: 0 0 20px rgba(122, 165, 165, 0.15), 0 0 40px rgba(122, 165, 165, 0.08);
  border-color: var(--accent);
}

.btn:focus-visible,
.link-arrow:focus-visible,
.nav-link:focus-visible,
.link-btn:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.btn-outline {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(122, 165, 165, 0.05);
}
.btn-sm { font-size: 0.65rem; }

.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text-muted);
  transition: color 0.25s, border-color 0.25s;
}

.icon-btn:hover { color: var(--accent); border-color: var(--accent-dim); }

/* Hero */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px) 1fr;
  align-items: center;
  gap: 2rem;
  padding: calc(var(--topbar-h) + 2.5rem) var(--section-px) 5rem;
  max-width: var(--max-w); margin: 0 auto;
}

.hero-left {
  max-width: 400px;
  display: flex; flex-direction: column;
}

.eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 40px var(--accent-glow);
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 0.95rem; font-weight: 400; line-height: 1.7;
  color: var(--text-muted); margin-bottom: 2rem;
  max-width: 36em;
}

/* Portal */
.hero-center {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 380px;
  overflow: hidden;
}

.portal {
  position: relative; width: min(340px, 80vw); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  animation: portal-float 8s ease-in-out infinite;
}

@keyframes portal-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.portal-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--border);
}

.portal-ring-outer {
  inset: -20%; animation: pulse-ring 4s ease-in-out infinite;
  border-color: rgba(122, 165, 165, 0.12);
}

.portal-ring-mid {
  inset: -8%; animation: pulse-ring 4s ease-in-out infinite 0.5s;
  border-color: rgba(122, 165, 165, 0.2);
}

.portal-ring-inner {
  inset: 4%;
  border-color: var(--accent-dim);
  box-shadow:
    0 0 30px rgba(122, 165, 165, 0.15),
    inset 0 0 30px rgba(122, 165, 165, 0.05);
}

.portal-core {
  position: relative; z-index: 2;
  width: 72%; aspect-ratio: 1; border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 60px rgba(122, 165, 165, 0.25);
  background: radial-gradient(circle at 50% 40%, #0a1212 0%, #050505 70%);
}

.portal-logo {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.92;
  animation: portal-breathe 6s ease-in-out infinite;
}

.portal-reflection {
  position: absolute; bottom: -18%; left: 50%; transform: translateX(-50%) scaleY(-1);
  width: 60%; height: 20%;
  background: linear-gradient(to bottom, rgba(122,165,165,0.08), transparent);
  filter: blur(8px); opacity: 0.5;
  border-radius: 50%;
}

.hud-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(122, 165, 165, 0.06);
  pointer-events: none;
}

.hud-circle-1 { inset: -35%; }
.hud-circle-2 { inset: -55%; border-style: dashed; opacity: 0.5; }

.hud-ticks {
  position: absolute; inset: -42%;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0deg 4deg,
    rgba(122, 165, 165, 0.08) 4deg 5deg
  );
  mask: radial-gradient(circle, transparent 68%, black 69%);
  animation: slow-spin 120s linear infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

@keyframes portal-breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.03); filter: brightness(1.08); }
}

@keyframes slow-spin { to { transform: rotate(360deg); } }

/* HUD sidebar */
.hero-hud {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}

.hud-data div {
  display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.hud-data dt {
  color: var(--text-dim); text-transform: uppercase;
}

.hud-data dd { color: var(--text-muted); text-align: right; }
.status-ok { color: var(--accent) !important; }

.crosshair {
  position: relative; width: 24px; height: 24px; margin-top: 1.5rem;
  margin-left: auto; opacity: 0.4;
}

.crosshair span {
  position: absolute; background: var(--accent);
}

.crosshair span:first-child {
  top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%);
}

.crosshair span:last-child {
  left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%);
}

/* Projects */
.projects {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 1rem var(--section-px) 4.5rem;
}

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap;
}

.section-head h2 {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
}

.link-arrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.link-arrow::after { content: "→"; }
.link-arrow:hover,
.link-btn:hover { gap: 0.6rem; color: var(--text); }

.link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.link-btn::after { content: "→"; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.project-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(122, 165, 165, 0.06);
}

.project-image {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: #0a0a0a;
}

.project-image img {
  width: 100%; height: 100%; object-fit: contain;
  filter: saturate(0.7) brightness(0.75);
  transition: transform 0.5s var(--ease), filter 0.5s;
}

.project-card:hover .project-image img,
.project-card:hover .placeholder-scene {
  transform: scale(1.04);
  filter: saturate(0.85) brightness(0.85);
}

.placeholder-scene {
  width: 100%; height: 100%;
  transition: transform 0.5s var(--ease), filter 0.5s;
}

.placeholder-scene-echoes {
  background:
    radial-gradient(ellipse at 50% 70%, rgba(122,165,165,0.25) 0%, transparent 50%),
    linear-gradient(180deg, #0a0f0f 0%, #050505 100%);
}

.placeholder-scene-null {
  background:
    radial-gradient(circle at 50% 15%, rgba(200,210,210,0.12) 0%, transparent 25%),
    linear-gradient(180deg, #0c0c0c 0%, #060606 100%);
}

.project-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-family: var(--font-mono); font-size: 0.58rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(4px);
}

.badge-dev { color: var(--accent); border-color: var(--accent-dim); }
.badge-soon { color: var(--text-muted); }
.badge-exp { color: var(--accent-dim); border-color: var(--border); }

.manifesto-q {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-dim); margin: 0.85rem 0; line-height: 1.75;
}

.info-text p + p { margin-top: 0.75rem; }

.stats-focus {
  font-size: 0.6rem !important; text-align: right; max-width: 148px;
  line-height: 1.45; letter-spacing: 0.02em; color: var(--accent) !important;
}

.project-body {
  padding: 1.35rem 1.35rem 1.6rem;
  flex: 1; display: flex; flex-direction: column;
}

.project-body h3 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text);
  margin-bottom: 0.55rem;
}

.project-body p {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 1.25rem; flex: 1;
}

.project-access-note {
  font-family: var(--font-mono);
  font-size: 0.62rem !important;
  letter-spacing: 0.06em;
  color: var(--text-dim) !important;
  margin-bottom: 0.85rem !important;
  flex: none !important;
}

.project-access-note span {
  color: var(--accent);
}

.project-body .link-btn { margin-top: auto; align-self: flex-start; }

/* Info grid */
.info-grid {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--section-px) 4rem;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: transparent;
  border: none;
}

.info-card {
  position: relative;
  background: var(--bg-elevated);
  padding: 1.85rem 1.6rem;
  display: flex; flex-direction: column;
  min-height: 300px;
}

.info-card-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.15;
  background:
    radial-gradient(circle at 80% 20%, rgba(122,165,165,0.3) 0%, transparent 50%),
    repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg 10deg, rgba(122,165,165,0.05) 10deg 11deg);
}

.info-text {
  position: relative; z-index: 1;
  font-size: 0.88rem; line-height: 1.65; color: var(--text-muted);
  flex: 1; margin-bottom: 1.25rem;
}

.info-title {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.info-sub {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem;
}

.info-card .link-arrow { margin-top: auto; align-self: flex-start; }

.stats-list { flex: 1; margin-bottom: 1rem; }

.stats-list div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.stats-list dt {
  font-size: 0.72rem; color: var(--text-muted);
  letter-spacing: 0.04em;
}

.stats-list dd {
  font-family: var(--font-mono); font-size: 0.85rem;
  font-weight: 500; color: var(--accent);
}

.stats-list div:last-child { border-bottom: none; }

/* Newsletter */
.newsletter-form {
  display: flex;
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.newsletter-form:focus-within {
  border-color: var(--accent-dim);
  box-shadow: 0 0 0 1px rgba(122, 165, 165, 0.12);
}

.newsletter-form input {
  flex: 1; min-width: 0;
  background: transparent; border: none;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text); padding: 0.75rem 1rem;
  outline: none;
}

.newsletter-form input::placeholder { color: var(--text-dim); }

.newsletter-form button {
  flex-shrink: 0;
  width: 44px; display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--border); color: var(--accent);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.newsletter-form button:hover,
.newsletter-form button:focus-visible {
  background: rgba(122, 165, 165, 0.1);
  color: var(--text);
}

.form-feedback {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.08em;
  min-height: 1.4em; line-height: 1.4;
  margin-bottom: 0.85rem;
}

.form-feedback--ok { color: var(--accent); }
.form-feedback--err { color: #d48484; }

.info-card--newsletter .barcode { margin-top: auto; }

/* Page sections */
.page-section {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  padding: 3.5rem var(--section-px);
  border-top: 1px solid var(--border);
}

.page-section-inner {
  max-width: 540px;
}

.section-body {
  font-size: 0.95rem; line-height: 1.7; color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.section-label {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 1rem;
}

.contact-form { max-width: 100%; }

/* Reveal animations */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .portal, .portal-logo, .portal-ring-outer, .portal-ring-mid,
  .hud-ticks, .status-dot { animation: none !important; }
}

/* Modal */
.modal[hidden] { display: none; }

.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative; z-index: 1;
  width: min(440px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  padding: 2rem 1.75rem;
  box-shadow: 0 0 60px rgba(122, 165, 165, 0.12);
  animation: modal-in 0.35s var(--ease);
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px; font-size: 1.5rem; line-height: 1;
  color: var(--text-muted); transition: color 0.2s;
}

.modal-close:hover,
.modal-close:focus-visible { color: var(--accent); }

.modal-label {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-dim); margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.5rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
}

.modal-body {
  font-size: 0.9rem; line-height: 1.6; color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-btn { width: 100%; justify-content: center; }

/* Subpages */
.subpage {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  padding: calc(var(--topbar-h) + 3rem) var(--section-px) 4rem;
  min-height: 60vh;
}

.subpage-back {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 2rem; transition: color 0.2s;
}

.subpage-back:hover { color: var(--accent); }
.subpage-back::before { content: "←"; }

.subpage-meta {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 0.75rem;
}

.subpage-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 30px var(--accent-glow);
}

.subpage-body {
  font-size: 0.95rem; line-height: 1.7; color: var(--text-muted);
}

.subpage-body p + p { margin-top: 1rem; }

.barcode {
  display: flex; gap: 2px; height: 32px; margin-bottom: 0.5rem; opacity: 0.35;
}

.barcode span {
  flex: 1; background: var(--accent);
  min-width: 2px;
}

.barcode span:nth-child(odd) { flex: 0.5; }
.barcode span:nth-child(3n) { flex: 1.5; }

.archive-id {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.15em; color: var(--text-dim);
  margin-top: auto;
}

/* Footer */
.site-footer {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.25rem 2rem;
  max-width: var(--max-w); margin: 0 auto;
  padding: 1.75rem var(--section-px) 2.25rem;
  border-top: 1px solid var(--border);
}

.copyright {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.08em; color: var(--text-dim);
  line-height: 1.55; max-width: 22rem;
}

.footer-nav {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
}

.footer-nav a {
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.08em; color: var(--text-dim);
  padding: 0.2rem 0;
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--accent); }

.system-status {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.08em; color: var(--text-dim);
  text-transform: uppercase;
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(122, 165, 165, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}

.inline-link:hover { text-decoration-color: var(--accent); }

.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  animation: status-blink 3s ease-in-out infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Mobile nav open state */
body.nav-open { overflow: hidden; }

body.nav-open .mobile-menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
body.nav-open .mobile-menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 1280px) {
  .main-nav { gap: clamp(0.65rem, 1.2vw, 1.1rem); }
  .nav-link { font-size: 0.65rem; letter-spacing: 0.1em; }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-bottom: 3.5rem;
  }

  .hero-left {
    max-width: 540px; margin: 0 auto;
    align-items: center;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-left .btn { align-self: center; }
  .hero-hud { display: none; }
  .hero-center { min-height: 300px; order: -1; }

  .project-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-card--newsletter { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: center; gap: 0.25rem;
    margin: 0;
    padding: 1.5rem 2rem 2rem;
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s;
  }

  .nav-link {
    font-size: 0.78rem; letter-spacing: 0.16em;
    padding: 0.65rem 0; width: 100%; text-align: center;
  }

  body.nav-open .main-nav {
    transform: translateY(0); opacity: 1; pointer-events: auto;
  }

  .mobile-menu-btn { display: flex; }
}

@media (max-width: 768px) {
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 0.75rem; }
  .brand-sub { font-size: 0.58rem; }

  .hero-title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .hero-desc { font-size: 0.9rem; }

  .btn, .newsletter-form button {
    min-height: 44px;
  }

  .newsletter-form input {
    min-height: 44px; font-size: 16px;
  }

  .project-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; padding-bottom: 3rem; }

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

  .copyright { max-width: none; }

  .footer-nav { justify-content: center; }

  .stats-list div { flex-wrap: wrap; }
  .stats-focus { max-width: none; text-align: left; }

  .info-card { min-height: auto; padding: 1.5rem 1.25rem; }

  .portal { width: min(260px, 72vw); }
  .hero-center { min-height: 240px; }

  .page-section { padding: 3rem var(--section-px); }
}

@media (max-width: 480px) {
  .site-topbar__inner { padding: 0 1rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .brand-text { display: none; }
}
