/* ============================================================
   Style — Cinematic Viral Portfolio (Obsidian + Crimson Cyber)
   Matches Demo Video Layout & Dynamic Design Sequence
   ============================================================ */

@import './tokens.css';

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-height) + var(--space-4));
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-1);
  background-color: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;
}

/* Accessible Focus Visible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p {
  max-width: 68ch;
}

a {
  color: var(--accent-hi);
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--text-1);
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.875em;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

/* ── Section Headers ── */
.section-header {
  margin-bottom: var(--space-12);
}

.section-index {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  color: var(--accent);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: var(--space-1);
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.02em;
  margin-top: var(--space-1);
  color: var(--text-1);
}

.section-intro {
  color: var(--text-2);
  margin-top: var(--space-3);
  max-width: 58ch;
  font-size: 1.0625rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-subhead);
  font-size: var(--text-small);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 46, 68, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  box-shadow: 0 0 28px rgba(255, 46, 68, 0.65);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(19, 23, 32, 0.8);
  color: var(--text-1);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-hi);
  box-shadow: 0 0 16px rgba(255, 46, 68, 0.2);
  transform: translateY(-2px);
}

/* ── Panels & Cards ── */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 20, 0.6);
}

.panel-body {
  padding: var(--space-6);
}

/* Corner Ticks Motif */
.corner-ticks::before,
.corner-ticks::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
  z-index: 3;
}

.corner-ticks::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.corner-ticks::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

/* ── Tags & Status Chips ── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-1);
  background: rgba(255, 46, 68, 0.1);
  border: 1px solid rgba(255, 46, 68, 0.25);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.status-chip--active {
  color: var(--success);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-chip--progress {
  color: var(--warning);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-chip--concept {
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: top var(--duration-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  padding: var(--space-3) var(--space-6);
  background: var(--bg-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  font-size: var(--text-small);
  color: var(--text-1);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-base) var(--ease-out);
  box-shadow: 0 0 24px rgba(255, 46, 68, 0.35);
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

/* ============================================================
   INFINITE MARQUEE TICKER BARS (from Video Demo)
   ============================================================ */
.marquee-bar {
  overflow: hidden;
  background: #000000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) 0;
  position: relative;
  white-space: nowrap;
  display: flex;
}

.marquee-track {
  display: flex;
  gap: var(--space-8);
  animation: marquee-scroll 24s linear infinite;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--text-1);
  text-transform: uppercase;
}

.marquee-item,
.m-item {
  display: inline-flex;
  align-items: center;
  color: var(--text-1);
}

.marquee-sep,
.m-sep {
  color: var(--accent);
  margin: 0 var(--space-3);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   PRIMARY NAVIGATION (SUPPORTS BOTH BEM & LEGACY CLASSES)
   ============================================================ */
.header,
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(7, 8, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: transform var(--duration-base) var(--ease-out);
}

.header.nav-hidden,
.site-header.nav-hidden {
  transform: translateY(-100%);
}

.header__inner,
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.brand,
.nav__monogram {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.brand__mark,
.nav__monogram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text-1);
}

.brand__accent {
  color: var(--accent);
}

.brand__name {
  font-family: var(--font-subhead);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-2);
  text-transform: uppercase;
  margin-left: 4px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list,
.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin: 0;
  padding: 0;
}

.nav__link {
  font-family: var(--font-subhead);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  position: relative;
  padding: var(--space-2) 0;
  text-decoration: none;
  transition: color var(--duration-fast);
}

.nav__link:hover,
.nav__link[aria-current="true"] {
  color: #FFFFFF;
}

.nav__link[aria-current="true"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.header__actions,
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.replay-btn:hover {
  border-color: var(--accent);
  color: var(--accent-hi);
  box-shadow: 0 0 10px rgba(255, 46, 68, 0.25);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-pill);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-decoration: none;
}

.status-indicator__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-ring 2s infinite;
}

.scroll-progress-bar,
.nav__progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  box-shadow: 0 0 8px var(--accent);
  z-index: 1001;
  pointer-events: none;
  transition: width 0.05s linear;
}

.menu-toggle,
.nav__hamburger {
  display: none;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle__line,
.nav__hamburger-bar {
  width: 18px;
  height: 2px;
  background: var(--text-1);
  transition: all var(--duration-fast);
}

@media (max-width: 1023px) {
  .nav { display: none; }
  .menu-toggle,
  .nav__hamburger { display: flex; }
  .brand__name { display: none; }
}

.mobile-menu,
.menu-sheet {
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: rgba(7, 8, 10, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: var(--space-8) var(--gutter);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open,
.menu-sheet.is-open {
  display: flex;
}

.mobile-menu__list,
.menu-sheet__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0;
}

.mobile-menu__link,
.menu-sheet__link {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--text-1);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  display: block;
  text-decoration: none;
}

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ============================================================
   HERO SECTION (CENTERED CINEMATIC HERO - WILL MARUITI FRAMER STYLE)
   ============================================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-height) + var(--space-8));
  padding-bottom: var(--space-12);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Huge Watermark Backdrop "PORTFOLIO" - Centered directly behind hero */
.hero-watermark {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(6.5rem, 19vw, 16rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 46, 68, 0.04);
  line-height: 0.85;
  pointer-events: none;
  z-index: 0;
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
}

.hero__centered {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 0 var(--space-4);
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 16px;
  background: rgba(255, 46, 68, 0.08);
  border: 1px solid rgba(255, 46, 68, 0.3);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-hi);
  margin-bottom: var(--space-4);
  letter-spacing: 0.06em;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 9.5vw, 7.8rem);
  line-height: 0.92;
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.highlight-crimson {
  color: var(--accent);
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--cyan);
  margin-bottom: var(--space-4);
  letter-spacing: 0.06em;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: var(--space-8);
  max-width: 58ch;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

/* Centered Glass Telemetry Metric Dock */
.hero-dock {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 15, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  gap: var(--space-6);
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--space-2);
}

.dock-val {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--accent);
  line-height: 1;
}

.dock-label {
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.dock-divider {
  width: 1px;
  height: 36px;
  background: var(--line);
}

@media (max-width: 640px) {
  .hero-dock {
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
    width: 100%;
    max-width: 340px;
  }
  .dock-divider {
    width: 60%;
    height: 1px;
  }
}

.network-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.net-line {
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  animation: net-dash 15s linear infinite;
}

@keyframes net-dash {
  to { stroke-dashoffset: -100; }
}

.net-node__ring {
  fill: var(--bg-1);
  stroke: var(--line);
  stroke-width: 1.5;
}

.net-node__dot {
  fill: var(--accent);
}

.net-node__label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-1);
  text-anchor: middle;
}

.net-node__status {
  font-family: var(--font-mono);
  font-size: 8px;
  fill: var(--text-3);
  text-anchor: middle;
}

.net-center__glow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0.5;
}

.net-center__outer {
  fill: var(--bg-2);
  stroke: var(--accent);
  stroke-width: 2;
}

.net-center__inner {
  fill: var(--accent-dim);
}

.net-center__text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  fill: var(--text-1);
  text-anchor: middle;
}

.net-center__sub {
  font-family: var(--font-mono);
  font-size: 7.5px;
  fill: var(--accent-hi);
  text-anchor: middle;
}

@media (max-width: 1023px) {
  .hero__centered {
    max-width: 100%;
    padding: 0 var(--space-4);
  }
}

/* ============================================================
   SYSTEMS ARCHITECTURE & CORE DISCIPLINE (ABOUT SECTION)
   ============================================================ */
.about-section {
  background: var(--bg-1);
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.discipline-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
}

.discipline-card:hover {
  border-color: rgba(255, 46, 68, 0.45);
  box-shadow: 0 0 25px rgba(255, 46, 68, 0.15);
  transform: translateY(-3px);
}

.discipline-term {
  background: #07080A;
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) var(--space-4);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: var(--space-2);
}

.term-dot-mini {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.discipline-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.code-kw {
  color: var(--accent-hi);
  font-weight: 600;
}

.code-str {
  color: var(--cyan);
}

.code-com {
  color: var(--text-3);
  font-style: italic;
}

.code-ok {
  color: var(--success);
  font-weight: 700;
}

.discipline-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-1);
  margin-bottom: var(--space-2);
}

.discipline-desc {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.55;
  margin-bottom: var(--space-4);
  flex: 1;
}

.discipline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

@media (max-width: 960px) {
  .discipline-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ============================================================
   CYBERSECURITY CONCEPTS
   ============================================================ */
.security-section {
  background: var(--bg-0);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.panel--network {
  grid-column: 1 / -1;
}

.topology-wrapper {
  display: flex;
  justify-content: center;
  padding: var(--space-4) 0;
}

.topology-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
}

.topo-line {
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.topo-packet {
  fill: var(--accent);
}

.topo-node {
  fill: var(--bg-2);
  stroke: var(--line);
  stroke-width: 1.5;
}

.topo-node--router {
  stroke: var(--accent);
  fill: var(--accent-dim);
}

.topo-label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-1);
}

.recon-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.recon-item {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.recon-tool-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-hi);
  margin-bottom: var(--space-1);
}

.recon-tool-desc {
  font-size: 0.75rem;
  color: var(--text-2);
}

.hash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.hash-col {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.hash-col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-hi);
  margin-bottom: var(--space-2);
}

.hash-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-2);
}

.manifest-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-4);
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
}

.flow-step {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-1);
  white-space: nowrap;
}

.flow-arrow {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel--network { grid-column: 1; }
  .recon-cards { grid-template-columns: 1fr; }
  .hash-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   THINGS I'VE SHIPPED (PROJECTS IN VIDEO DEMO)
   ============================================================ */
.projects-section {
  background: var(--bg-1);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

@media (max-width: 1160px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--duration-base) var(--ease-out);
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(255, 46, 68, 0.2);
  transform: translateY(-4px);
}

.project-preview {
  height: 180px;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  overflow: hidden;
}

.project-card .panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-2);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.project-note {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-3);
  margin-bottom: var(--space-3);
}

.project-actions {
  margin-top: auto;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ============================================================
   FAST HANDS. REAL RESULTS. (BENCHMARK STAT SECTION FROM VIDEO)
   ============================================================ */
.results-section {
  background: #000000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--space-16) 0;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-8);
}

.results-left {
  display: flex;
  flex-direction: column;
}

.results-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.95;
  margin-bottom: var(--space-3);
}

.results-title span {
  color: var(--accent);
}

.big-percentage {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.85;
  color: #FFFFFF;
}

.big-percentage span {
  color: var(--accent);
}

.telemetry-status-box {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bench-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(34, 41, 56, 0.4);
  padding-bottom: var(--space-2);
}

.bench-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.bench-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-2);
}

.bench-val {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-hi);
}

@media (max-width: 768px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   THE TOOLKIT (SKILLS FROM VIDEO DEMO)
   ============================================================ */
.toolkit-section {
  background: var(--bg-0);
}

.toolkit-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

.toolkit-card,
.skill-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  transition: all var(--duration-base);
}

.toolkit-card:hover,
.skill-panel:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 46, 68, 0.2);
  transform: translateY(-3px);
}

.toolkit-cat-title,
.skill-category-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-4);
  color: var(--text-1);
}

.skill-pill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-2);
  border: 1px solid rgba(34, 41, 56, 0.7);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-2);
  transition: all 0.2s;
}

.skill-pill:hover {
  border-color: var(--accent);
  color: var(--text-1);
  background: rgba(255, 46, 68, 0.04);
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skill-item {
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}

.skill-item:first-child {
  border-top: none;
  padding-top: 0;
}

.skill-item__name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-hi);
  display: block;
  margin-bottom: 2px;
}

.skill-item__desc {
  font-size: 0.8125rem;
  color: var(--text-2);
}

@media (max-width: 1023px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .skills-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LEARNING JOURNEY (TIMELINE)
   ============================================================ */
.journey-section {
  background: var(--bg-1);
}

.timeline-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.timeline-log {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-6);
  position: relative;
}

.timeline-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.timeline-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-marker__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
}

.timeline-item--active .timeline-marker {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.timeline-item--active .timeline-marker__dot {
  background: var(--accent);
}

.timeline-connector {
  position: absolute;
  top: 24px;
  bottom: -32px;
  width: 2px;
  background: var(--line);
}

.timeline-item--active .timeline-connector {
  background: linear-gradient(to bottom, var(--accent), var(--line));
}

.timeline-card {
  transition: all var(--duration-base);
}

.timeline-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-2);
}

.timeline-desc {
  color: var(--text-2);
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ============================================================
   LET'S CONNECT (CONTACT + 3D PARTICLE CONSTELLATION)
   ============================================================ */
.contact-section {
  background: #000000;
  position: relative;
  overflow: hidden;
  padding: var(--space-24) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: stretch;
}

.contact-card,
.contact-viz {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-1);
  border: 1px solid var(--line);
}

.contact-card .panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-item {
  margin-bottom: var(--space-6);
}

.contact-label {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
  display: block;
  margin-bottom: var(--space-2);
}

.email-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.contact-value {
  font-size: 0.9375rem;
  color: var(--text-1);
  word-break: break-all;
}

.contact-value.text-muted {
  color: var(--text-3);
}

.btn-copy {
  padding: 6px 14px;
  min-height: 38px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  touch-action: manipulation;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-3);
  display: block;
  margin-top: 4px;
}

.contact-link {
  font-size: 0.875rem;
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-status-terminal {
  margin-top: auto;
  background: #07080A;
  border: 1px solid var(--line);
  padding: var(--space-4);
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--text-2);
}

.term-green {
  color: var(--success);
  font-weight: 700;
}

.canvas-wrapper {
  flex: 1;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #050505;
  overflow: hidden;
}

#particle-sphere-canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 440px;
  max-height: 440px;
  cursor: grab;
  touch-action: none;
}

#particle-sphere-canvas:active {
  cursor: grabbing;
}

.canvas-hint {
  text-align: center;
  padding: var(--space-3);
  font-size: 0.6875rem;
  color: var(--text-3);
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER (MASSIVE OUTLINE WATERMARK FROM VIDEO DEMO)
   ============================================================ */
.footer,
.site-footer {
  border-top: 1px solid var(--line);
  background: #050608;
  padding: var(--space-16) 0 var(--space-8) 0;
  position: relative;
  overflow: hidden;
}

.footer__inner {
  position: relative;
}

.footer__watermark {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 13vw, 11rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 46, 68, 0.04);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 2;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 380px;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-3);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer__link {
  font-family: var(--font-subhead);
  font-size: 0.8125rem;
  color: var(--text-2);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(34, 41, 56, 0.6);
  padding-top: var(--space-6);
  font-size: 0.75rem;
  color: var(--text-3);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .footer__content {
    flex-direction: column;
    gap: var(--space-6);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   ACTIVE COLLABORATIVE LAUNCH OVERLAY (MATCHING VIDEO DEMO)
   - 12 Cursors with pure pointers (NO tag boxes)
   - Real-time Selection Box with resize handles
   - Active typing animation
   - Alignment guidelines
   ============================================================ */
.launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: #000000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.launch-overlay.dismissed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: none !important;
}

.launch-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: rgba(7, 8, 10, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.launch-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse-ring 1.8s infinite;
}

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

.launch-phase-text {
  font-size: 0.75rem;
  color: var(--accent-hi);
  letter-spacing: 0.1em;
}

.skip-intro-btn {
  min-height: 38px;
  padding: var(--space-1) var(--space-4);
  font-size: 0.75rem;
  border-color: var(--line);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.skip-kbd {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 2px 5px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-3);
}

/* ============================================================
   HIGH-TECH UNIFIED CYBER TERMINAL HUD (DESKTOP, TABLET & MOBILE)
   ============================================================ */
.launch-stage {
  position: absolute;
  inset: 56px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  overflow: hidden;
  z-index: 10;
}

.cyber-terminal-hud {
  width: 100%;
  max-width: 680px;
  background: #0B0D12;
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: 0 0 50px rgba(0, 229, 255, 0.12), 0 20px 60px rgba(0, 0, 0, 0.95);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  margin: auto;
  transform: translateZ(0);
}

.terminal-header {
  height: 42px;
  background: #131720;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  user-select: none;
}

.terminal-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.term-dot.red { background: #FF5F56; box-shadow: 0 0 6px rgba(255, 95, 86, 0.6); }
.term-dot.yellow { background: #FFBD2E; box-shadow: 0 0 6px rgba(255, 189, 46, 0.6); }
.term-dot.green { background: #27C93F; box-shadow: 0 0 6px rgba(39, 201, 63, 0.6); }

.terminal-title {
  font-size: 0.75rem;
  color: var(--text-2);
  letter-spacing: 0.08em;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-badge {
  font-size: 0.625rem;
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.1em;
  font-weight: 600;
  white-space: nowrap;
}

.terminal-screen {
  padding: var(--space-5);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #07080A;
  font-size: 0.8125rem;
  line-height: 1.5;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.term-line {
  font-family: var(--font-mono);
  color: var(--text-2);
  word-break: break-word;
}

.term-line.prompt {
  color: var(--cyan);
  font-weight: 600;
}

.term-caret {
  color: var(--accent);
  margin-right: 6px;
  font-weight: 700;
}

.log-tag {
  color: var(--text-3);
  font-size: 0.75rem;
}

.log-ok {
  color: var(--success);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(39, 201, 63, 0.5);
}

.terminal-footer {
  padding: var(--space-3) var(--space-5);
  background: #0D0F14;
  border-top: 1px solid var(--line);
}

.term-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.term-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(34, 41, 56, 0.85);
  border-radius: 3px;
  overflow: hidden;
}

.term-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--accent));
  box-shadow: 0 0 14px var(--accent);
  transition: width 0.05s linear;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .launch-topbar {
    padding: 0 var(--space-3);
  }

  .launch-phase-text {
    font-size: 0.625rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .skip-intro-btn {
    min-height: 32px;
    padding: 2px var(--space-2);
    font-size: 0.6875rem;
  }

  .skip-kbd {
    display: none;
  }

  .cyber-terminal-hud {
    max-width: 100%;
    border-radius: var(--radius-sm);
  }

  .terminal-header {
    height: 36px;
    padding: 0 var(--space-3);
  }

  .terminal-title {
    font-size: 0.625rem;
    max-width: 200px;
  }

  .terminal-badge {
    display: none;
  }

  .terminal-screen {
    padding: var(--space-3);
    min-height: 220px;
    font-size: 0.6875rem;
    gap: 7px;
  }

  .terminal-footer {
    padding: var(--space-2) var(--space-3);
  }

  .term-progress-label {
    font-size: 0.6875rem;
    margin-bottom: 5px;
  }
}

/* ============================================================
   INTERACTIVE SECURITY LAB CONSOLE
   ============================================================ */
.lab-section {
  background: var(--bg-0);
  padding: var(--space-16) 0;
}

.lab-console {
  background: var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: var(--space-6);
}

.lab-tab-bar {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 20, 0.85);
}

.lab-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  border: none;
  border-right: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}

.lab-tab:hover {
  color: var(--text-1);
  background: rgba(255, 46, 68, 0.04);
}

.lab-tab.active {
  color: var(--accent-hi);
  background: var(--bg-1);
  border-bottom: 2px solid var(--accent);
}

.lab-tab .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  transition: all 0.2s;
}

.lab-tab.active .tab-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ============================================================
   TACTICAL SECURITY LAB & MODEL EXHIBITION
   ============================================================ */
.lab-pane {
  display: none;
  padding: var(--space-6);
}

.lab-pane.active {
  display: block;
}

/* ── Common Model Exhibition Toolbar ── */
.model-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(13, 15, 20, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.model-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.model-step-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.model-nav-btn {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
}

.osi-step-badge {
  padding: 4px 10px;
  background: var(--bg-2);
  border: 1px solid var(--accent);
  color: var(--accent-hi);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
}

/* ── Exhibit 01: OSI 7-Layer Protocol Encapsulation ── */
.model-osi-container {
  display: flex;
  flex-direction: column;
}

.osi-pipeline-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-4);
  min-height: 420px;
}

.osi-layers-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.osi-layer-pill {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  background: #050608;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-mono);
  transition: all 0.2s var(--ease-out);
  min-height: 44px;
}

.osi-layer-pill:hover {
  border-color: var(--line-glow);
  background: rgba(255, 46, 68, 0.05);
}

.osi-layer-pill.active {
  border-color: var(--accent);
  background: rgba(255, 46, 68, 0.12);
  box-shadow: 0 0 12px rgba(255, 46, 68, 0.2);
  border-left: 3px solid var(--accent);
}

.olayer-num {
  font-size: 0.6875rem;
  color: var(--accent-hi);
  font-weight: 700;
}

.olayer-name {
  font-size: 0.8125rem;
  color: var(--text-1);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.olayer-pdu {
  font-size: 0.6875rem;
  color: var(--text-3);
}

.osi-layer-pill.active .olayer-pdu {
  color: var(--text-2);
}

.osi-dissect-panel {
  background: #050608;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--space-4);
  gap: var(--space-3);
}

.osi-dissect-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-2);
  font-size: 0.75rem;
}

.osi-fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.osi-field-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.of-name {
  font-size: 0.625rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.of-val {
  font-size: 0.75rem;
  color: var(--text-1);
  font-weight: 600;
  word-break: break-all;
}

.osi-hex-box {
  background: #030405;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.osi-hex-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 4px;
}

.osi-knowledge-note {
  background: rgba(13, 15, 20, 0.6);
  border-left: 2px solid var(--accent);
  padding: 8px 12px;
  font-size: 0.6875rem;
  line-height: 1.55;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ── Exhibit 02: x86 Memory Stack Architecture & Buffer Defense ── */
.model-stack-container {
  display: flex;
  flex-direction: column;
}

.model-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.preset-btn {
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  min-height: 32px;
}

.stack-sim-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-4);
  min-height: 420px;
}

.stack-visual-panel,
.stack-controls-panel {
  background: #050608;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stack-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-2);
  font-size: 0.6875rem;
  color: var(--text-3);
}

.stack-memory-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: var(--space-2) 0;
}

.stack-cell {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #080a0e;
  transition: all 0.25s var(--ease-out);
}

.scell-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.625rem;
  color: var(--text-3);
  margin-bottom: 4px;
}

.scell-val {
  font-size: 0.8125rem;
  color: var(--text-1);
  font-weight: 600;
  word-break: break-all;
}

.stack-cell--eip {
  border-left: 3px solid #ff1744;
  background: rgba(255, 23, 68, 0.06);
}

.stack-cell--ebp {
  border-left: 3px solid #eab308;
  background: rgba(234, 179, 8, 0.05);
}

.stack-cell--canary {
  border-left: 3px solid #00e5ff;
  background: rgba(0, 229, 255, 0.06);
}

.stack-cell--buffer {
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.06);
}

.stack-cell.corrupted {
  border-color: #ff1744 !important;
  background: rgba(255, 23, 68, 0.2) !important;
  animation: cell-alert-pulse 1s infinite alternate;
}

.stack-cell.canary-safe {
  border-color: #00e5ff !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

@keyframes cell-alert-pulse {
  0% { box-shadow: 0 0 6px rgba(255, 23, 68, 0.2); }
  100% { box-shadow: 0 0 16px rgba(255, 23, 68, 0.6); }
}

.stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.6875rem;
  color: var(--text-3);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(34, 41, 56, 0.5);
}

.sleg-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sleg-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.sleg--buf { background: #10b981; }
.sleg--canary { background: #00e5ff; }
.sleg--ebp { background: #eab308; }
.sleg--eip { background: #ff1744; }

.stack-input-wrapper {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.stack-toggles-box {
  margin-top: 2px;
}

.stack-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  color: var(--cyan);
  cursor: pointer;
}

.stack-diag-box {
  background: #030405;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sdiag-title {
  font-size: 0.6875rem;
  color: var(--text-3);
}

.stack-diag-log {
  margin: 0;
  color: var(--text-2);
  font-size: 0.6875rem;
  line-height: 1.5;
  max-height: 140px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* ── Legacy Packet Stream & Crypto Console (Kept for compatibility) ── */
.packet-console {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pconsole-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(13, 15, 20, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.pconsole-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pconsole-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pfilter-btn {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
}

.pfilter-btn:hover {
  color: var(--text-1);
  border-color: var(--line-glow);
}

.pfilter-btn.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent-hi);
  box-shadow: 0 0 10px rgba(255, 46, 68, 0.2);
}

.pconsole-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--space-4);
  min-height: 380px;
}

.pstream-panel,
.pdecode-panel {
  background: #050608;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pstream-header {
  display: grid;
  grid-template-columns: 65px 55px 125px 20px 125px 1fr;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

.pstream-feed {
  flex: 1;
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pstream-row {
  display: grid;
  grid-template-columns: 65px 55px 125px 20px 125px 1fr;
  align-items: center;
  gap: 6px;
  padding: 6px var(--space-3);
  font-size: 0.6875rem;
  color: var(--text-2);
  border-bottom: 1px solid rgba(34, 41, 56, 0.35);
  cursor: pointer;
  transition: background 0.15s;
}

.pstream-row:hover {
  background: rgba(255, 46, 68, 0.08);
}

.pstream-row.active {
  background: rgba(255, 46, 68, 0.16);
  border-left: 3px solid var(--accent);
}

.pstream-row .badge-tcp { color: var(--accent-hi); }
.pstream-row .badge-udp { color: var(--cyan); }
.pstream-row .badge-icmp { color: var(--warning); }

.pdecode-title {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-1);
}

.pdecode-content {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: 0.75rem;
  flex: 1;
}

.decode-sec {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dsec-name {
  font-size: 0.6875rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.hex-dump {
  background: #030405;
  border: 1px solid var(--line);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--text-2);
  margin: 0;
  overflow-x: auto;
}

.pdecode-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(13, 15, 20, 0.6);
  border-top: 1px solid var(--line);
}

/* ── 2. Live Cryptographic Hasher Lab ── */
.crypto-lab-console {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.crypto-input-bar {
  background: #050608;
  border: 1px solid var(--line);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.crypto-input-row {
  display: flex;
  gap: var(--space-3);
}

.crypto-input {
  flex: 1;
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.crypto-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 46, 68, 0.25);
}

.crypto-entropy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: 0.75rem;
  color: var(--text-2);
  margin-top: 4px;
}

.entropy-bar-track {
  flex: 1;
  max-width: 220px;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.entropy-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  transition: width 0.25s, background-color 0.25s;
}

.crypto-hashes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.hash-result-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hash-hex {
  font-size: 0.75rem;
  color: var(--text-1);
  word-break: break-all;
  background: #040507;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.hash-meta {
  font-size: 0.6875rem;
  line-height: 1.6;
}

.crypto-live-note {
  font-size: 0.75rem;
  color: var(--text-3);
  margin-top: var(--space-2);
}

.metric-chip {
  padding: 4px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  color: var(--cyan);
}

.crypto-matrix-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  width: 100%;
}

.crypto-row {
  display: grid;
  grid-template-columns: 130px 1fr 200px;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(34, 41, 56, 0.4);
}

.crypto-col-algo {
  font-size: 0.8125rem;
  color: var(--text-1);
}

.crypto-col-bar {
  height: 10px;
  background: rgba(34, 41, 56, 0.6);
  border-radius: 2px;
  overflow: hidden;
}

.cbar {
  height: 100%;
  border-radius: 2px;
}

.crypto-col-res {
  font-size: 0.6875rem;
  text-align: right;
  letter-spacing: 0.04em;
}

.crypto-note {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.lab-pane-viz {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lab-pane-desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topo-node-group {
  cursor: pointer;
  transition: transform 0.2s;
}

.topo-node-group:hover {
  transform: scale(1.05);
}

.topo-node--server {
  fill: #10B981;
  stroke: #059669;
}

.topo-node--firewall {
  fill: #EF4444;
  stroke: #DC2626;
}

.footer__copy,
.footer__meta {
  color: var(--text-3);
  font-size: 0.75rem;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.mobile-menu__footer {
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  margin-top: auto;
}

.replay-text,
.status-indicator__text {
  font-size: 0.75rem;
}

/* ============================================================
   RESPONSIVE DESIGN ACROSS ALL DEVICES (MOBILE, TABLET, DESKTOP)
   ============================================================ */

/* Global container and layout limits */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .telemetry-grid {
    grid-template-columns: 1fr;
  }

  .toolkit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .lab-pane-inner {
    grid-template-columns: 1fr;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  /* Vertical rhythm & section padding: tightened to 32px */
  .section,
  .about-section,
  .projects-section,
  .lab-section,
  .contact-section {
    padding: var(--space-8) 0;
  }

  .results-section {
    padding: var(--space-8) 0;
  }

  .section-header {
    margin-bottom: var(--space-4);
  }

  .section-index {
    font-size: 0.6875rem;
    margin-bottom: 2px;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    line-height: 1.05;
  }

  .section-intro {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-top: 4px;
    max-width: 100%;
  }

  .section-label {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }

  /* Hero scale & proportions */
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-3));
    padding-bottom: var(--space-4);
    min-height: auto;
  }

  .hero-status-pill {
    font-size: 0.625rem;
    padding: 3px 8px;
    margin-bottom: var(--space-2);
  }

  .hero-headline {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.04;
    margin-bottom: var(--space-2);
  }

  .hero-sub {
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: var(--space-4);
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: var(--space-2);
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    font-size: 0.8125rem;
  }

  .hero-dock {
    padding: 8px 12px;
    margin-top: var(--space-4);
    width: 100%;
    max-width: 320px;
    gap: 8px;
  }

  .dock-item {
    padding: 0 4px;
  }

  .dock-val {
    font-size: 1.15rem;
  }

  .dock-label {
    font-size: 0.5625rem;
    letter-spacing: 0.06em;
  }

  .hero-watermark {
    font-size: 2.8rem;
    top: 8%;
    opacity: 0.025;
  }

  /* Projects & cards compacting */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .project-preview {
    height: 105px;
    padding: var(--space-2);
  }

  .project-title {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }

  .project-desc {
    font-size: 0.75rem;
    line-height: 1.45;
    margin-bottom: var(--space-3);
  }

  .panel-body {
    padding: 12px 14px;
  }

  .panel-header {
    padding: 6px 12px;
  }

  .panel-header .label {
    font-size: 0.625rem;
  }

  .project-tags {
    gap: 4px;
    margin-bottom: var(--space-3);
  }

  .tag {
    font-size: 0.625rem;
    padding: 2px 6px;
  }

  .project-actions {
    margin-top: 8px;
    gap: 6px;
  }

  .project-actions .btn {
    min-height: 42px;
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  /* Systems architecture cards (#about) */
  .discipline-grid {
    gap: var(--space-4);
  }

  .discipline-card {
    padding: 14px;
  }

  .discipline-heading {
    font-size: 1.05rem;
    margin-bottom: 4px;
  }

  .discipline-desc {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  .discipline-code {
    font-size: 0.625rem;
    padding: 8px 10px;
    margin-top: 8px;
    line-height: 1.4;
  }

  /* Toolkit (#skills) */
  .toolkit-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .toolkit-card .panel-body {
    padding: 12px 14px;
  }

  .toolkit-cat-title {
    font-size: 0.8125rem;
    margin-bottom: 8px;
  }

  .skill-pill-list {
    gap: 5px;
  }

  .skill-pill {
    padding: 4px 8px;
    font-size: 0.6875rem;
  }

  /* Fast Hands / Results section */
  .results-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .results-title {
    font-size: 1.35rem;
    line-height: 1.1;
  }

  .big-percentage {
    font-size: 3.2rem;
    line-height: 1;
    margin: 4px 0;
  }

  .telemetry-status-box {
    padding: 12px 14px;
  }

  .bench-row {
    padding: 4px 0;
    font-size: 0.6875rem;
  }

  /* Security Lab & Model Exhibition */
  .lab-console {
    margin-top: var(--space-3);
  }

  .lab-pane {
    padding: 10px 12px;
  }

  .lab-tab {
    padding: 8px 10px;
    font-size: 0.625rem;
  }

  .model-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
    margin-bottom: var(--space-3);
  }

  .model-status {
    font-size: 0.625rem;
  }

  .model-step-controls {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
  }

  .model-nav-btn {
    flex: 1;
    min-height: 44px;
    padding: 4px 6px;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .osi-step-badge {
    width: 100%;
    text-align: center;
    order: -1;
    font-size: 0.625rem;
    padding: 3px 6px;
  }

  .osi-pipeline-grid,
  .stack-sim-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    min-height: auto;
  }

  .osi-layers-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .osi-layer-pill {
    padding: 6px 8px;
    min-height: 44px;
  }

  .olayer-num {
    font-size: 0.5625rem;
  }

  .olayer-name {
    font-size: 0.6875rem;
  }

  .olayer-pdu {
    font-size: 0.5625rem;
  }

  .osi-dissect-panel {
    padding: 10px;
    gap: 6px;
  }

  .osi-dissect-header {
    font-size: 0.6875rem;
    padding-bottom: 4px;
  }

  .osi-fields-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .osi-field-card {
    padding: 4px 8px;
  }

  .of-name {
    font-size: 0.5625rem;
  }

  .of-val {
    font-size: 0.6875rem;
  }

  .osi-hex-box {
    padding: 6px 8px;
    gap: 4px;
  }

  .osi-hex-title {
    font-size: 0.625rem;
  }

  .osi-hex-dump {
    font-size: 0.5625rem;
    line-height: 1.3;
    max-height: 85px;
  }

  .osi-knowledge-note {
    padding: 6px 8px;
    font-size: 0.625rem;
    line-height: 1.45;
  }

  /* Exhibit 02 Stack Simulator */
  .stack-visual-panel,
  .stack-controls-panel {
    padding: 10px;
    gap: 6px;
  }

  .stack-visual-header {
    font-size: 0.625rem;
    padding-bottom: 4px;
  }

  .stack-memory-column {
    gap: 4px;
    margin: 4px 0;
  }

  .stack-cell {
    padding: 6px 8px;
  }

  .scell-meta {
    font-size: 0.5625rem;
    margin-bottom: 2px;
  }

  .scell-val {
    font-size: 0.6875rem;
  }

  .model-presets {
    width: 100%;
    gap: 4px;
  }

  .preset-btn {
    flex: 1;
    min-height: 44px;
    padding: 4px 6px;
    font-size: 0.625rem;
    text-align: center;
    justify-content: center;
  }

  .stack-input-wrapper {
    flex-direction: column;
    gap: 6px;
  }

  .stack-input-wrapper .btn {
    width: 100%;
    min-height: 44px;
    font-size: 0.75rem;
  }

  .stack-legend {
    gap: 6px;
    font-size: 0.5625rem;
    padding-top: 4px;
  }

  .stack-diag-box {
    padding: 6px 8px;
  }

  .sdiag-title {
    font-size: 0.625rem;
  }

  .stack-diag-log {
    font-size: 0.5625rem;
    line-height: 1.35;
    max-height: 90px;
  }

  /* Learning Journey Timeline */
  .timeline-wrapper {
    padding-left: 0;
  }

  .timeline-item {
    padding-bottom: 16px;
  }

  .timeline-badge {
    font-size: 0.5625rem;
    padding: 2px 6px;
  }

  .timeline-title {
    font-size: 0.875rem;
    margin-top: 2px;
  }

  .timeline-desc {
    font-size: 0.75rem;
    line-height: 1.45;
  }

  /* Contact & 3D Constellation canvas */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .contact-panel {
    padding: 12px 14px;
  }

  .channel-val {
    font-size: 0.8125rem;
  }

  .status-terminal {
    padding: 8px 10px;
    font-size: 0.625rem;
  }

  .canvas-wrapper {
    min-height: 180px !important;
    height: 180px !important;
  }

  #particle-sphere-canvas {
    max-width: 100%;
    max-height: 180px;
  }

  .canvas-hint {
    font-size: 0.5625rem;
    padding: 4px;
  }

  /* Mobile Slide-out Menu */
  .mobile-menu {
    padding: var(--space-4) var(--gutter);
  }

  .mobile-menu__link {
    font-size: 1.25rem;
    padding: 6px 0;
  }

  .mobile-menu__list {
    gap: 0;
  }

  .mobile-menu__footer {
    padding-top: var(--space-2);
    margin-top: var(--space-2);
  }

  /* Buttons & touch targets */
  .btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Footer */
  .footer,
  .site-footer {
    padding: var(--space-5) 0 var(--space-4) 0;
  }

  .footer__watermark {
    font-size: 2.2rem;
    bottom: 2px;
    opacity: 0.025;
  }

  .footer__links {
    gap: var(--space-2) var(--space-3);
    font-size: 0.75rem;
  }

  .footer__tagline {
    font-size: 0.75rem;
  }

  .footer__bottom {
    font-size: 0.625rem;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

