:root {
  color-scheme: dark;
  --ink: #f0f2f1;
  --muted: #8a9593;
  --paper: #0a0c0b;
  --line: #1e2422;
  --mint: #00e0a8;
  --mint-bright: #00ffa8;
  --mint-dim: #00a87a;
  --cyan: #33d4eb;
  --coral: #ff7d6f;
  --coral-ink: #2c0906;
  --gold: #d9a847;
  --white: #ffffff;
  --surface: #111413;
  --surface-hover: #181d1c;
  --section: #0a0c0b;
  --section-alt: #111413;
  --nav-text: rgba(240, 242, 241, 0.72);
  --card-outline: rgba(255, 255, 255, 0.12);
  --card-hover-outline: rgba(255, 255, 255, 0.35);
  --note-border: rgba(255, 255, 255, 0.1);
  --note-text: rgba(255, 255, 255, 0.8);
  --note-bg: rgba(255, 255, 255, 0.04);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --btn-ink: #070909;
  --btn-text-on-ink: #ffffff;
  --section-divider: linear-gradient(90deg, transparent, rgba(0, 224, 168, 0.15), transparent);
  --hero-glow: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0, 224, 168, 0.06), transparent);
}

.light-theme {
  color-scheme: light;
  --ink: #070909;
  --muted: #596362;
  --paper: #f7faf8;
  --line: #dce8e3;
  --mint: #00c89d;
  --mint-bright: #00e0a8;
  --mint-dim: #008f74;
  --cyan: #1fb7cf;
  --coral: #ff6d5d;
  --coral-ink: #2c0906;
  --gold: #c79b39;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f0f3f1;
  --section: #f7faf8;
  --section-alt: #ffffff;
  --nav-text: rgba(7, 9, 9, 0.74);
  --card-outline: rgba(7, 9, 9, 0.1);
  --card-hover-outline: rgba(7, 9, 9, 0.22);
  --note-border: rgba(7, 9, 9, 0.12);
  --note-text: rgba(7, 9, 9, 0.78);
  --note-bg: rgba(7, 9, 9, 0.04);
  --shadow-color: rgba(7, 9, 9, 0.15);
  --btn-ink: #070909;
  --btn-text-on-ink: #ffffff;
  --section-divider: linear-gradient(90deg, transparent, rgba(0, 200, 157, 0.12), transparent);
  --hero-glow: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0, 200, 157, 0.04), transparent);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  --signal-x: 50%;
  --signal-y: 30%;
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-transitioning {
  --theme-transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-transitioning * {
  transition: background var(--theme-transition) !important,
              border-color var(--theme-transition) !important,
              color var(--theme-transition) !important,
              box-shadow var(--theme-transition) !important;
}

body.theme-transitioning::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--paper);
  opacity: 0;
  animation: themeFlash 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes themeFlash {
  0% { opacity: 0.6; }
  100% { opacity: 0; }
}

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

*:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

button:focus-visible {
  outline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 224, 168, 0.12);
}

.light-theme input:focus-visible,
.light-theme textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 200, 157, 0.1);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
  padding: 14px max(28px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(20px);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.site-header:hover {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}

.light-theme .site-header:hover {
  box-shadow: 0 1px 8px rgba(7, 9, 9, 0.06);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--section-divider);
  opacity: 0.4;
  pointer-events: none;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.control-panel {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surface), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(16px);
  position: relative;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.control-panel:hover {
  border-color: rgba(0, 224, 168, 0.15);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.25),
    0 0 24px rgba(0, 224, 168, 0.05),
    inset 0 1px 0 rgba(0, 224, 168, 0.08);
}

.light-theme .control-panel {
  background: linear-gradient(135deg, var(--surface), var(--paper));
  box-shadow:
    0 2px 12px rgba(7, 9, 9, 0.08),
    inset 0 1px 0 rgba(7, 9, 9, 0.02);
}

.light-theme .control-panel:hover {
  border-color: var(--line);
  box-shadow:
    0 4px 16px rgba(7, 9, 9, 0.1),
    inset 0 1px 0 rgba(7, 9, 9, 0.04);
}

.control-section {
  display: flex;
  align-items: center;
  gap: 0;
}

.control-divider {
  width: 1px;
  height: 32px;
  margin: 0 4px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
  flex-shrink: 0;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(136px, 16vw, 200px);
  height: 44px;
  overflow: hidden;
  padding: 4px 0;
  position: relative;
}

.brand::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover::after {
  transform: scaleX(1);
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.brand:hover img {
  opacity: 0.8;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border-radius: 10px;
  background: transparent;
  position: relative;
  min-width: 84px;
  height: 36px;
}

.theme-toggle-track {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mint-dim), var(--mint));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow:
    0 0 16px rgba(0, 224, 168, 0.3),
    0 0 8px rgba(0, 224, 168, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.light-theme .theme-toggle-track {
  background: linear-gradient(135deg, var(--mint), var(--mint-bright));
  box-shadow:
    0 0 12px rgba(0, 200, 157, 0.2),
    0 0 6px rgba(0, 200, 157, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.theme-toggle-track[data-side="light"] {
  transform: translateX(100%);
}

.theme-toggle-glow {
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: var(--mint);
  filter: blur(12px);
  opacity: 0.3;
  pointer-events: none;
  animation: themeGlowPulse 3s ease-in-out infinite;
}

@keyframes themeGlowPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.1); }
}

.light-theme .theme-toggle-glow {
  background: var(--mint);
  opacity: 0.15;
}

.theme-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
  opacity: 0.5;
}

.theme-toggle button.is-active {
  opacity: 1;
  color: var(--white);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.light-theme .theme-toggle button.is-active {
  color: var(--white);
}

.theme-toggle button:hover {
  opacity: 0.9;
}

.theme-toggle button svg {
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.theme-toggle button.is-active svg {
  transform: scale(1.05);
  filter: drop-shadow(0 0 6px currentColor);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border-radius: 8px;
  background: transparent;
  position: relative;
  min-height: 36px;
}

.language-switcher button {
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, opacity 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  opacity: 0.6;
}

.light-theme .language-switcher button {
  opacity: 0.55;
}

.language-switcher button:hover {
  opacity: 0.85;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.light-theme .language-switcher button:hover {
  background: rgba(7, 9, 9, 0.04);
}

.language-switcher button.is-active {
  opacity: 1;
  color: var(--mint);
  background: rgba(0, 224, 168, 0.08);
  box-shadow:
    0 0 8px rgba(0, 224, 168, 0.1),
    inset 0 0 0 1px rgba(0, 224, 168, 0.15);
  text-shadow: 0 0 8px rgba(0, 224, 168, 0.3);
}

.light-theme .language-switcher button.is-active {
  color: var(--mint-dim);
  background: rgba(0, 200, 157, 0.1);
  box-shadow:
    0 0 6px rgba(0, 200, 157, 0.08),
    inset 0 0 0 1px rgba(0, 200, 157, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  color: var(--nav-text);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-current::after {
  transform: scaleX(1);
}

.nav a:hover,
.nav a.is-current {
  color: var(--ink);
}

.nav a:focus-visible {
  color: var(--ink);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 84vh;
  padding: 132px max(28px, calc((100vw - 1180px) / 2)) 96px;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 76px 0 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 38%, rgba(0, 224, 168, 0.06) 50%, transparent 62%),
    repeating-linear-gradient(90deg, rgba(240, 242, 241, 0.02) 0 1px, transparent 1px 80px);
  background-position: var(--signal-x) var(--signal-y), center;
  background-size: 46% 100%, 100% 100%;
  background-repeat: no-repeat, repeat;
  opacity: 0.5;
  pointer-events: none;
  animation: signalSweep 7s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--paper));
  z-index: -1;
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 76px 0 0;
  z-index: -2;
  background: transparent;
}

.hero-bg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 224, 168, 0.12), transparent);
  top: 0;
  animation: heroScanLine 12s linear infinite;
  pointer-events: none;
}

.light-theme .hero-bg::before {
  background: linear-gradient(90deg, transparent, rgba(0, 200, 157, 0.08), transparent);
  opacity: 0.5;
}

@keyframes heroScanLine {
  0% { top: 76px; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { top: calc(100vh - 76px); opacity: 0; }
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  animation: heroItemIn 0.6s ease-out 0.2s both;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 8.8rem;
  line-height: 0.82;
  font-weight: 950;
  letter-spacing: -0.03em;
  text-shadow: 0 0 80px rgba(0, 224, 168, 0.08), 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: heroItemIn 0.6s ease-out 0.3s both;
}

.light-theme h1 {
  text-shadow: none;
}

h2 {
  margin-bottom: 0;
  font-size: 3.9rem;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.58rem;
  line-height: 1.08;
  font-weight: 860;
  letter-spacing: -0.01em;
}

.live-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em;
  margin-bottom: 18px;
  padding: 10px 14px;
  border: 1px solid var(--mint);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 224, 168, 0.06);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  animation: heroItemIn 0.6s ease-out 0.4s both;
}

.live-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(0, 224, 168, 0.5);
  animation: liveIndicatorPulse 2s ease-in-out infinite;
}

@keyframes liveIndicatorPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(0, 224, 168, 0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 12px rgba(0, 224, 168, 0.7); }
}

.light-theme .live-indicator {
  box-shadow: 0 0 6px rgba(0, 200, 157, 0.4);
}

.light-theme .live-line:hover {
  box-shadow: none;
}

.live-line:hover {
  box-shadow: 0 0 24px rgba(0, 224, 168, 0.1), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.light-theme .live-line {
  box-shadow: none;
}

.lead {
  max-width: 590px;
  margin-bottom: 34px;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.65;
  font-weight: 400;
  animation: heroItemIn 0.6s ease-out 0.5s both;
}

#rotating-word {
  min-width: 9.4em;
  color: var(--mint);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  animation: heroItemIn 0.6s ease-out 0.6s both;
}

.hero-actions::after {
  content: "";
  flex: 1 1 200px;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
  opacity: 0.5;
}

@keyframes heroItemIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button.primary,
.contact-form button {
  color: var(--paper);
  background: linear-gradient(135deg, var(--mint), var(--mint-bright));
  border: 1px solid var(--mint);
  box-shadow: 0 2px 12px rgba(0, 224, 168, 0.15);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.button.primary:hover,
.button.primary:focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible {
  box-shadow:
    0 6px 20px rgba(0, 224, 168, 0.25),
    0 0 24px rgba(0, 224, 168, 0.1);
}

.light-theme .button.primary,
.light-theme .contact-form button {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(7, 9, 9, 0.15);
}

.light-theme .button.primary:hover,
.light-theme .button.primary:focus-visible {
  box-shadow:
    0 6px 20px rgba(7, 9, 9, 0.25),
    0 0 16px rgba(7, 9, 9, 0.08);
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.light-theme .button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--mint);
  box-shadow: 0 0 20px rgba(0, 224, 168, 0.1);
}

.button.portal-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  border: 1px solid transparent;
  position: relative;
  z-index: 1;
}

.button.portal-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--mint-bright), var(--cyan));
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.button.portal-btn:hover::before,
.button.portal-btn:focus-visible::before {
  opacity: 0.4;
  filter: blur(12px);
}

.button.portal-btn:hover,
.button.portal-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 224, 168, 0.2),
    0 0 16px rgba(0, 224, 168, 0.1);
  outline: none;
}

.light-theme .button.portal-btn:hover,
.light-theme .button.portal-btn:focus-visible {
  box-shadow:
    0 6px 20px rgba(0, 200, 157, 0.18),
    0 0 12px rgba(0, 200, 157, 0.08);
}

.button.smex-btn {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--gold);
  font-weight: 900;
  position: relative;
}

.light-theme .button.smex-btn {
  background: var(--paper);
}

.button.smex-btn:hover,
.button.smex-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 168, 71, 0.2);
  outline: none;
  background: rgba(217, 168, 71, 0.08);
}

.button.portal-cta-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  border-color: transparent;
  font-weight: 900;
}

.button.portal-cta-btn:hover,
.button.portal-cta-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--shadow-color);
}

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

.button.primary:hover,
.button.primary:focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible {
  box-shadow:
    0 8px 24px var(--shadow-color),
    0 0 30px rgba(0, 224, 168, 0.08);
}

.status-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin-top: 32px;
}

.status-panel article {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(160deg, #181e1e, #121514);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme .status-panel article {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 2px 6px rgba(7, 9, 9, 0.05);
}

.status-panel article:hover {
  transform: translateY(-2px);
  border-color: var(--mint);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(0, 224, 168, 0.08);
}

.status-panel strong {
  display: block;
  margin-bottom: 2px;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--mint);
  animation: heartbeatPulse 4s ease-in-out infinite;
}

.status-panel article:nth-child(2) strong {
  animation-delay: 1.3s;
}

.status-panel article:nth-child(3) strong {
  animation-delay: 2.6s;
}

@keyframes heartbeatPulse {
  0%, 100% { text-shadow: none; }
  5% { text-shadow: 0 0 12px rgba(0, 224, 168, 0.3); }
  10% { text-shadow: none; }
}

.light-theme .status-panel strong {
  animation: none;
}

.status-panel article:last-child strong::after {
  content: "%";
}

.status-panel span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.signal-ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--section);
  position: relative;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.signal-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.signal-ticker::before,
.signal-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 1;
  pointer-events: none;
}

.signal-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--section), transparent);
}

.signal-ticker::after {
  right: 0;
  background: linear-gradient(270deg, var(--section), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 32s linear infinite;
  will-change: transform;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.ticker-track span {
  flex: 0 0 auto;
  padding: 16px 32px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ticker-track span:hover {
  color: var(--mint);
}

.ticker-track span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 14px;
  background: var(--mint);
  transform: rotate(45deg);
  vertical-align: 0.08em;
  box-shadow: 0 0 8px rgba(0, 224, 168, 0.4);
}

.system-bar {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--section);
  padding: 10px max(28px, calc((100vw - 1180px) / 2));
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.system-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  max-width: 1180px;
  margin: 0 auto;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(0, 224, 168, 0.6);
  flex-shrink: 0;
  animation: systemPulse 2s ease-in-out infinite;
}

.status-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  animation: systemActivityBurst 8s ease-out infinite;
}

@keyframes systemActivityBurst {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  2% { opacity: 0.4; }
  10% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
  100% { opacity: 0; }
}

.light-theme .status-dot {
  box-shadow: 0 0 6px rgba(0, 200, 157, 0.5);
}

.light-theme .status-dot::after {
  animation: none;
}

@keyframes systemPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.system-divider {
  display: inline-block;
  width: 1px;
  height: 10px;
  background: var(--line);
  flex-shrink: 0;
}

.system-bar-spacer {
  flex: 1;
}

.system-time {
  color: var(--mint);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.intro,
.company-line,
.work-band,
.services,
.contact {
  padding: 92px max(28px, calc((100vw - 1180px) / 2));
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: end;
  background: var(--section);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--section-divider);
  margin-top: 0;
}

.intro p,
.contact p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.company-line {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--section-alt);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-line::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--section-divider);
}

.company-line h2 {
  font-size: 2.7rem;
  background: linear-gradient(135deg, var(--ink), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.light-theme .company-line h2 {
  background: none;
  -webkit-text-fill-color: var(--ink);
  color: var(--ink);
}

.company-text {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 720;
  line-height: 1.4;
  opacity: 0.92;
}

.work-band {
  background: var(--section);
  color: var(--ink);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.work-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--section-divider);
  pointer-events: none;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}

.work-band .section-kicker {
  color: var(--mint);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.work-card,
.service-list article {
  min-height: 260px;
  padding: 28px;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, outline-color 0.2s ease, background 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.work-card span {
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--mint);
  opacity: 0.8;
}

.light-theme .work-card span {
  color: var(--muted);
  opacity: 1;
}

.work-card p,
.service-list p {
  margin-bottom: 0;
  line-height: 1.6;
}

.work-card.dark {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #1a2020, #141818);
  color: var(--ink);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.light-theme .work-card.dark {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 2px 8px rgba(7, 9, 9, 0.06);
}

.work-card.dark h3 {
  color: var(--ink);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.work-card.dark p {
  color: var(--ink);
  opacity: 0.85;
}

.work-card.mint {
  color: #05211c;
  background: var(--mint);
}

.work-card.mint span,
.work-card.mint p {
  color: rgba(5, 33, 28, 0.85);
}

.work-card.coral {
  color: var(--coral-ink);
  background: var(--coral);
}

.work-card.coral span,
.work-card.coral p {
  color: rgba(44, 9, 6, 0.8);
}

.work-card:hover,
.work-card:focus-visible,
.work-card.is-active {
  transform: translateY(-6px);
  outline: 2px solid rgba(0, 224, 168, 0.3);
  outline-offset: 3px;
}

.work-card:focus-visible {
  outline-color: var(--mint);
}

.work-card:hover {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(0, 224, 168, 0.08);
}

.light-theme .work-card:hover,
.light-theme .work-card:focus-visible,
.light-theme .work-card.is-active {
  outline: 3px solid var(--card-hover-outline);
}

.light-theme .work-card:hover {
  box-shadow: 0 12px 32px var(--shadow-color);
}

.work-card:focus-visible {
  box-shadow: 0 0 0 5px rgba(0, 224, 168, 0.2);
}

.work-note {
  max-width: 780px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--note-border);
  border-radius: 8px;
  color: var(--note-text);
  background: var(--note-bg);
  font-weight: 750;
  line-height: 1.6;
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.services {
  background: var(--section);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
  transition: border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-list article {
  min-height: 220px;
  border-radius: 0;
  background: linear-gradient(160deg, #181e1e, #121514);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s ease, box-shadow 0.2s ease;
}

.service-list article:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 16px rgba(0, 224, 168, 0.06);
}

.light-theme .service-list article {
  background: var(--surface);
}

.light-theme .service-list article:hover {
  box-shadow: 0 8px 24px var(--shadow-color);
}

.service-list h3 {
  color: var(--ink);
}

.service-list p {
  color: var(--muted);
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: start;
  background: var(--section-alt);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--section-divider);
  pointer-events: none;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: linear-gradient(160deg, #181e1e, #121514);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme .contact-form {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 2px 8px rgba(7, 9, 9, 0.06);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 15px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--mint);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 224, 168, 0.12);
}

.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;
}

.chat-widget {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  display: grid;
  justify-items: end;
  gap: 12px;
  max-width: calc(100vw - 40px);
}

.chat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid var(--mint);
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  box-shadow:
    0 18px 44px var(--shadow-color),
    0 0 20px rgba(0, 224, 168, 0.15);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-toggle::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(0, 224, 168, 0.5);
  animation: chatPulse 2s ease-in-out infinite;
}

@keyframes chatPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0, 224, 168, 0.5); }
  50% { box-shadow: 0 0 20px rgba(0, 224, 168, 0.8); }
}

.light-theme .chat-toggle::before {
  box-shadow: 0 0 8px rgba(0, 200, 157, 0.4);
}

.chat-panel {
  width: min(390px, calc(100vw - 40px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 28px 80px var(--shadow-color);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.chat-header h2 {
  font-size: 1.42rem;
}

.chat-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 300px;
  max-height: 42vh;
  overflow-y: auto;
  padding: 18px;
  background: var(--paper);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.chat-message.bot {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chat-message.user {
  justify-self: end;
  color: var(--white);
  background: var(--ink);
}

.chat-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 14px;
  background: var(--paper);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-prompts button {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-theme .chat-prompts button {
  box-shadow: none;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-form input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-form button {
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chat-toggle:hover,
.chat-toggle:focus-visible,
.chat-close:hover,
.chat-close:focus-visible,
.chat-prompts button:hover,
.chat-prompts button:focus-visible,
.chat-form button:hover,
.chat-form button:focus-visible {
  transform: translateY(-1px);
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.brief-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.brief-meter span {
  display: block;
  width: var(--brief-level, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--coral));
  transition: width 0.3s ease;
}

.form-hint {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

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

.can-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

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

@keyframes signalSweep {
  0%,
  100% {
    background-position: 8% var(--signal-y), center;
  }

  50% {
    background-position: 96% var(--signal-y), center;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 18px;
    gap: 10px;
  }

  .brand {
    width: 140px;
    padding: 2px 0;
  }

  .nav {
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.72rem;
  }

  .header-controls {
    gap: 6px;
  }

  .control-panel {
    padding: 3px;
    border-radius: 10px;
  }

  .control-divider {
    height: 26px;
    margin: 0 2px;
  }

  .theme-toggle {
    min-width: 72px;
    height: 32px;
  }

  .language-switcher button {
    min-width: 28px;
    min-height: 28px;
    padding: 0 8px;
    font-size: 0.66rem;
  }

  .system-bar {
    padding: 8px 18px;
  }

  .system-bar-inner {
    font-size: 0.65rem;
    gap: 6px;
  }

  .hide-sm {
    display: none;
  }

  .hero {
    align-items: start;
    min-height: auto;
    padding: 230px 18px 72px;
  }

  .hero-bg {
    inset: 164px 0 0;
    background: transparent;
  }

  .hero::before {
    inset: 164px 0 0;
    background-size: 72% 100%, 100% 100%;
  }

  .light-theme .hero::before {
    background:
      linear-gradient(90deg, transparent 0 42%, rgba(0, 200, 157, 0.08) 50%, transparent 58%),
      repeating-linear-gradient(90deg, rgba(7, 9, 9, 0.02) 0 1px, transparent 1px 80px);
    opacity: 0.4;
  }

  h1 {
    font-size: 4.15rem;
    text-shadow: none;
  }

  h2 {
    font-size: 2.35rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .lead {
    font-size: 1.08rem;
  }

  .status-panel {
    grid-template-columns: 1fr;
  }

  .status-panel article {
    min-height: 82px;
  }

  .intro,
  .company-line,
  .work-band,
  .services,
  .contact {
    padding: 68px 20px;
  }

  .intro,
  .company-line,
  .contact,
  .section-heading {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .company-line h2 {
    font-size: 2.05rem;
  }

  .company-text {
    font-size: 1.12rem;
  }

  .work-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .work-card,
  .service-list article {
    min-height: 210px;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .contact-form button,
  .portal-btn,
  .smex-btn {
    width: 100%;
  }

  .system-bar {
    padding: 6px 14px;
  }

  .system-bar-inner {
    font-size: 0.6rem;
    gap: 4px;
  }

  .contact-form {
    padding: 18px;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-panel {
    width: calc(100vw - 28px);
  }

  .chat-messages {
    height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  body.theme-transitioning::before {
    animation: none;
    opacity: 0;
  }

  .hero-content > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

.portal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #070a09;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.portal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.portal-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.portal-boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(420px, 90vw);
}

.boot-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.boot-brand-name {
  font-size: 2.4rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  animation: bootFadeIn 0.6s ease-out 0.2s forwards;
}

.boot-brand-sub {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  opacity: 0;
  animation: bootFadeIn 0.5s ease-out 0.5s forwards;
}

@keyframes bootFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.boot-progress {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: bootFadeIn 0.4s ease-out 0.7s forwards;
}

.boot-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 224, 168, 0.4);
  transition: width 0.15s linear;
}

.boot-log {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(240, 242, 241, 0.6);
  max-height: 140px;
  overflow: hidden;
  opacity: 0;
  animation: bootFadeIn 0.3s ease-out 0.9s forwards;
}

.boot-log-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  animation: logEntryIn 0.3s ease-out forwards;
}

.boot-log-entry .log-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 6px rgba(0, 224, 168, 0.5);
  flex-shrink: 0;
}

.boot-log-entry.log-ok .log-dot {
  background: var(--mint);
}

.boot-log-entry.log-warn .log-dot {
  background: var(--gold);
}

.boot-log-entry .log-text {
  color: rgba(240, 242, 241, 0.5);
}

.boot-log-entry .log-text strong {
  color: rgba(240, 242, 241, 0.75);
  font-weight: 600;
}

@keyframes logEntryIn {
  to { opacity: 1; transform: translateY(0); }
}

.boot-status {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
  opacity: 0;
  animation: bootFadeIn 0.4s ease-out 0.8s forwards;
}

.boot-status.status-active::after {
  content: "";
  display: inline-block;
  width: 12px;
  margin-left: 6px;
  background: var(--mint);
  height: 2px;
  animation: statusBlink 0.8s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; width: 12px; }
  50% { opacity: 0.3; width: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-overlay {
    transition: none !important;
  }

  .portal-boot,
  .boot-brand-name,
  .boot-brand-sub,
  .boot-progress,
  .boot-log,
  .boot-status,
  .boot-log-entry {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .boot-progress-bar {
    transition: none !important;
    width: 100% !important;
  }
}
