/* ============================================================================
   THEME TOGGLE STYLES
   ============================================================================ */

.theme-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--color-blue);
  border-radius: 0;
  width: 36px;
  height: 36px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  color: var(--color-blue);
}

.theme-toggle:hover {
  background-color: var(--color-blue);
  color: var(--color-bg);
  box-shadow: var(--glow-blue);
}

.theme-icon {
  width: 20px;
  height: 20px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .theme-toggle {
    width: 32px;
    height: 32px;
    padding: 5px;
  }

  .theme-icon {
    width: 18px;
    height: 18px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle {
    transition: none;
  }
}
/* ============================================================================
   NAVBAR STYLES
   ============================================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.navbar-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.brand-text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-shadow: var(--text-glow-blue);
  border-bottom: 1px solid var(--color-blue);
  box-shadow: 0 1px 8px rgba(26, 127, 255, 0.3);
  padding-bottom: 2px;
  animation: nerv-pulse 3s infinite;
}

@keyframes nerv-pulse {
  0%, 100% { box-shadow: 0 1px 8px rgba(26, 127, 255, 0.3); }
  50% { box-shadow: 0 1px 8px rgba(26, 127, 255, 0.15); }
}

.brand-text:hover {
  color: var(--color-cyan);
}

.nav-desktop {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-muted);
  background: none;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
}

@media (hover: hover) {
  .nav-link:hover {
    color: var(--color-cyan);
    text-shadow: var(--text-glow-cyan);
  }
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .navbar-text {
    display: none;
  }
}

/* ============================================================================ */
/* BASE STYLES - Hamburger & Mobile Menu */
/* ============================================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--color-cyan);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg);
  z-index: 99;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
  overflow: hidden;
}

/* Decorative kanji watermark */
.mobile-menu::before {
  content: '選択';
  position: absolute;
  font-family: var(--font-japanese);
  font-size: clamp(80px, 25vw, 30vw);
  color: rgba(0, 102, 255, 0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.menu-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  background: none;
  border: none;
  color: var(--color-cyan);
  cursor: pointer;
  font-weight: 700;
  padding: 8px;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

@media (hover: hover) {
  .menu-close:hover {
    color: var(--color-white);
  }
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.menu-link {
  font-family: var(--font-display);
  font-size: clamp(18px, 6vw, 32px);
  color: var(--color-cyan);
  background: none;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (hover: hover) {
  .menu-link:hover {
    color: var(--color-white);
  }
}

/* ============================================================================ */
/* RESPONSIVE BREAKPOINTS */
/* ============================================================================ */

/* Mobile: 0-768px */
@media (max-width: 768px) {
  .navbar {
    height: 60px;
  }

  .nav-desktop {
    display: none;
  }

  .navbar-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger-line {
    width: 20px;
    height: 2px;
    background-color: var(--color-cyan);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
  }
}

/* Tablet & Desktop: 769px+ */
@media (min-width: 769px) {
  .navbar {
    height: 64px;
  }

  .nav-desktop {
    display: flex;
    gap: 2rem;
    align-items: center;
  }

  .nav-link {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-muted);
    background: none;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
  }

  .nav-link:hover {
    color: var(--color-cyan);
    text-shadow: var(--text-glow-cyan);
  }

  .navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .brand-text,
  .nav-link,
  .hamburger-line,
  .menu-close,
  .menu-link {
    transition: none;
  }
}
/* ============================================================================
   BOOT SEQUENCE STYLES
   ============================================================================ */

.boot-container {
  position: fixed;
  inset: 0;
  background-color: var(--color-black);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: var(--section-padding-x);
  z-index: 10000;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-cyan);
  line-height: 1.8;
}

/* NERV Logo - Hexagon */
.nerv-logo {
  position: absolute;
  top: clamp(16px, 3vh, 30px);
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.nerv-logo svg {
  filter: drop-shadow(0 0 8px rgba(0, 207, 255, 0.3));
}

/* Boot Output Terminal */
.boot-output {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
  overflow-x: hidden;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-left: var(--section-padding-x, 40px);
  margin-bottom: 60px;
}

.boot-line {
  color: var(--color-cyan);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  text-shadow: 0 0 4px rgba(0, 207, 255, 0.2);
  line-height: 1.6;
}

.boot-line.active {
  animation: glow-pulse-cyan 1s ease-in-out infinite;
}

/* Blinking Cursor */
.cursor {
  display: inline-block;
  margin-left: 3px;
  animation: blink 0.75s step-end infinite;
  color: var(--color-cyan);
  text-shadow: 0 0 6px rgba(0, 207, 255, 0.6);
}

/* Status Indicator */
.boot-status {
  position: absolute;
  bottom: clamp(20px, 5vh, 60px);
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-cyan);
  box-shadow: var(--glow-cyan);
  animation: pulse-slow 2s ease-in-out infinite;
}

.status-text {
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
}

/* Animations */
@keyframes blink {
  0%, 49%, 100% {
    opacity: 1;
  }
  50%, 99% {
    opacity: 0;
  }
}

@keyframes glow-pulse-cyan {
  0%, 100% {
    text-shadow: 0 0 4px rgba(0, 207, 255, 0.2);
  }
  50% {
    text-shadow: 0 0 12px rgba(0, 207, 255, 0.6);
  }
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Very short landscape screens */
@media (max-height: 500px) {
  .nerv-logo {
    display: none;
  }
  .boot-output {
    margin-bottom: 30px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .boot-container {
    font-size: var(--text-xs);
  }

  .boot-output {
    gap: 0.3em;
    padding-left: 20px;
  }

  .boot-status {
    left: 20px;
  }

  .nerv-logo {
    width: 60px;
    height: 60px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .boot-line.active,
  .cursor,
  .status-dot {
    animation: none;
  }
}
/* ============================================================================
   SpeedLines.css
   Manga-style speed lines using conic-gradient radial burst
   ============================================================================ */

.speed-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(0, 102, 255, 0.08) 0deg 2deg,
    transparent 2deg 8deg
  );
  border-radius: 50%;
}
/* ============================================================================
   MangaPanel.css
   Brutalist panel variants with hard shadows and hover lift effects
   ============================================================================ */

.manga-panel {
  border-radius: 0;
  transition: all 0.15s ease-out;
}

/* DARK VARIANT - Blue borders + blue shadow + neon glow */
.manga-panel-dark {
  background-color: var(--color-bg-2);
  border: 2px solid var(--color-blue);
  box-shadow: var(--shadow-brutal-blue);
  color: var(--color-white);
}

.manga-panel-dark:hover {
  box-shadow: var(--glow-blue);
}

/* LIGHT VARIANT - Black borders + black shadow + cream bg */
.manga-panel-light {
  background-color: var(--color-bg-3);
  border: 2.5px solid var(--color-border);
  box-shadow: var(--shadow-brutal);
  color: var(--color-white);
}

.manga-panel-light:hover {
  border-color: var(--color-blue);
}

/* ACCENT VARIANT - Red bg + black border + cream text */
.manga-panel-accent {
  background-color: var(--color-manga-red);
  border: 2.5px solid var(--color-border);
  box-shadow: var(--shadow-brutal);
  color: var(--color-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 8px 16px;
}

.manga-panel-accent:hover {
  box-shadow: 0 0 12px rgba(232, 0, 45, 0.5);
}

/* OFFSET HOVER - Lift effect with growing shadow */
.manga-panel-offset {
  cursor: pointer;
}

.manga-panel-offset:hover {
  transform: translate(-3px, -3px);
}

.manga-panel-dark.manga-panel-offset:hover {
  box-shadow: 9px 9px 0px var(--color-blue), var(--glow-blue);
}

.manga-panel-light.manga-panel-offset:hover {
  box-shadow: 9px 9px 0px var(--color-white);
}

.manga-panel-accent.manga-panel-offset:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0px var(--color-white);
}
/* ============================================================================
   HERO SECTION STYLES
   ============================================================================ */

.hero {
  min-height: 100vh;
  min-height: 100dvh;        /* accounts for mobile browser toolbars */
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  padding: var(--section-padding-y) var(--section-padding-x);
  position: relative;
  overflow: hidden;
}

/* Hexagon grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Corner accent - top left - UPGRADED */
.hero::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  top: 40px;
  left: 40px;
  border-top: 3px solid var(--color-blue);
  border-left: 3px solid var(--color-blue);
  box-shadow: var(--glow-blue);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 480px) {
  .hero::after {
    width: 40px;
    height: 40px;
    top: 16px;
    left: 16px;
  }
}

/* Section number bg text */
.hero-section-number {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--color-white);
  opacity: 0.04;
  top: 50%;
  transform: translateY(-50%);
  left: -2vw;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--max-width);
  gap: 1.2rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* System Label - removed (using global style) */

/* Hero Heading */
.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  justify-content: center;
}

.hero-heading-line-1 {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-muted);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  font-weight: 400;
  text-shadow: none;
}

.hero-heading-line-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 10vw, var(--text-hero));
  color: var(--color-white);
  letter-spacing: 0.02em;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: var(--shadow-brutal-blue);
}

/* Subline */
.hero-subline {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.7rem;
  font-weight: 400;
  word-break: break-word;
  white-space: normal;
  text-align: center;
}

@media (max-width: 480px) {
  .hero-subline {
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
  }
}

/* Divider */
.hero-divider {
  width: 160px;
  height: 1px;
  background: var(--border-bright);
  margin: 0.8rem 0;
}

/* Status Text */
.hero-status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0.5rem 0;
}

/* Social Links */
.hero-socials {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted);
  transition: all 150ms ease;
  text-decoration: none;
}

.social-icon {
  width: 28px;
  height: 28px;
  color: var(--color-muted);
  transition: all 150ms ease;
}

.social-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 150ms ease;
}

@media (hover: hover) {
  .social-link:hover .social-icon {
    color: var(--color-blue);
    filter: none;
  }

  .social-link:hover .social-label {
    color: var(--color-blue);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2rem;
  animation: pulse-slow 2s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@media (max-height: 700px) {
  .scroll-indicator {
    display: none;
  }
}

/* Manga Accent Badges */
.hero-accent-badge {
  position: absolute;
  top: 80px;
  right: 40px;
  z-index: 10;
}

@media (max-width: 480px) {
  .hero-accent-badge {
    top: 16px;
    right: 16px;
    transform: scale(0.75);
    transform-origin: top right;
  }
}

.accent-badge-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.accent-kanji {
  font-family: var(--font-japanese);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--color-panel-cream);
  font-weight: 700;
}

.accent-text {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-panel-cream);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Floating Bottom-Left Panel */
.hero-floating-panel {
  position: absolute;
  bottom: clamp(60px, 10vh, 120px);
  left: var(--section-padding-x);
  z-index: 10;
}

.floating-panel-content {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-cyan);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: var(--text-glow-cyan);
  white-space: normal;
}

@media (max-width: 480px) {
  .hero-floating-panel {
    display: none;
  }

  .floating-panel-content {
    white-space: normal;
    font-size: 10px;
  }
}

/* Responsive */

/* Mobile: 0-768px */
@media (max-width: 768px) {
  .hero {
    padding: var(--section-padding-y) 1rem;
  }

  .hero-content {
    gap: 1rem;
  }

  .hero-socials {
    gap: 1.5rem;
  }

  .hero-divider {
    width: 120px;
  }
}

/* Tablet & Desktop: 768px+ */
@media (min-width: 768px) {
  .hero {
    padding: var(--section-padding-y) var(--section-padding-x);
  }

  .hero-content {
    gap: 1.5rem;
  }

  .hero-socials {
    gap: 2rem;
  }

  .hero-divider {
    width: 160px;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator {
    animation: none;
  }
}
/* ============================================================================
   ABOUT SECTION STYLES - Light Panel Redesign
   Cream background + dark text + manga aesthetic + asymmetric layout
   ============================================================================ */

.about {
  background-color: var(--color-bg);
  padding: var(--section-padding-y) var(--section-padding-x);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--color-border);
  border-bottom: 3px solid var(--color-border);
}

/* ==== DECORATIVE ELEMENTS ==== */

/* Decorative "Developer" kanji background */
.about::before {
  content: '開発者';
  position: absolute;
  font-family: var(--font-japanese);
  font-size: clamp(80px, 15vw, 180px);
  color: var(--color-text);
  opacity: 0.04;
  letter-spacing: 0.2em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* Halftone screentone overlay */
.about::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(0, 0, 0, 0.06) 1px,
    transparent 1px
  );
  background-size: 8px 8px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

/* Section number bg text */
.about-section-number {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--color-text);
  opacity: 0.04;
  top: 50%;
  transform: translateY(-50%);
  left: -2vw;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

/* Rotated section label - page edge effect */
.about-rotated-label {
  display: none;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  opacity: 0.4;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ==== LAYOUT ==== */

.about-container {
  display: grid;
  gap: 1.5rem;
  max-width: 1100px;
  width: 100%;
  position: relative;
  z-index: 2;
  align-items: start;
}

/* ==== LEFT COLUMN - Bio in MangaPanel ==== */

.about-bio {
  border: 2.5px solid var(--color-border);
  box-shadow: var(--shadow-brutal);
  padding: 1.5rem;
  background-color: var(--color-bg-3);
  position: relative;
  overflow: hidden;
}

/* Halftone inside bio panel */
.about-bio::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    var(--screentone) 1px,
    transparent 1px
  );
  background-size: 8px 8px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.about-bio p {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 2;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Standard highlight — blue */
.about-bio .highlight {
  color: var(--color-blue);
  font-weight: 700;
}

/* Red emphasis — manga chaos */
.about-bio .emphasis-red {
  color: var(--color-manga-red);
  font-size: 1.1em;
  font-weight: 700;
}

/* ==== RIGHT COLUMN ==== */

.about-right-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ==== DATA BLOCKS ==== */

.about-right-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 2px solid var(--color-blue);
  margin-bottom: 0.8rem;
}

/* Bio Data Row */
.bio-data {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  border: 2.5px solid var(--color-panel-border);
  margin-bottom: 1rem;
}

.bio-data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.8rem;
  border-bottom: 3px solid var(--color-panel-border);
  position: relative;
}

.bio-data-item:last-child {
  border-bottom: none;
}

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

.bio-value {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}



/* ==== Skills Tags ==== */

.skills-tags-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 2px solid var(--color-blue);
  margin-bottom: 0.5rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  align-items: center;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #0a0a0a;
  background-color: var(--color-white);
  border: 1.5px solid var(--color-white);
  padding: 4px 12px;
  border-radius: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 150ms ease;
  cursor: pointer;
  white-space: nowrap;
}

@media (hover: hover) {
  .skill-tag:hover {
    background-color: var(--color-blue);
    border-color: var(--color-blue);
    color: #ffffff;
  }
}

/* ==== EDUCATION LOG ==== */

.edu-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding-left: 12px;
  border-left: 2px solid var(--color-blue);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.edu-log {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 2.5px solid var(--color-panel-border);
  margin-bottom: 1rem;
}

.edu-entry {
  display: flex;
  flex-direction: column;
  border-bottom: 2px solid var(--color-panel-border);
  position: relative;
}

.edu-entry:last-child {
  border-bottom: none;
}

/* Red left accent bar on each entry — manga chapter marker */
.edu-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-manga-red);
}

.edu-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.8rem 0.2rem 1rem;
  background-color: rgba(0, 0, 0, 0.04);
}

.edu-id {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-manga-red);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.edu-status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1px 6px;
  border: 1px solid;
}

.edu-status-active {
  color: var(--color-cyan);
  border-color: var(--color-cyan);
}

.edu-status-complete {
  color: var(--color-muted);
  border-color: var(--color-muted);
}

.edu-entry-body {
  padding: 0.5rem 0.8rem 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.edu-unit {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.edu-sublabel {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

.edu-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.3rem;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.edu-duration {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edu-metric {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.edu-metric-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.edu-metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-manga-red);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ==== SYSTEM LABEL OVERRIDES in light panel ==== */
.about .system-label {
  color: var(--color-blue);
  text-shadow: none;
  border-left-color: var(--color-blue);
  margin-bottom: 1rem;
}

/* ==== RESPONSIVE ==== */

/* Mobile: 0-768px */
@media (max-width: 768px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-bio {
    padding: 1rem;
  }

  .about-bio p {
    line-height: 1.8;
    font-size: var(--text-sm);
  }

  .skills-tags {
    gap: 0.4rem;
  }

  .skill-tag {
    padding: 3px 10px;
    font-size: var(--text-xs);
  }

  /* Mobile education adjustments */
  .edu-label {
    font-size: var(--text-xs);
    padding-left: 10px;
    margin-bottom: 0.4rem;
    margin-top: 0.8rem;
  }

  .edu-entry-header {
    padding: 0.3rem 0.6rem 0.15rem 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .edu-status {
    align-self: flex-start;
    font-size: var(--text-xs);
  }

  .edu-entry-body {
    padding: 0.4rem 0.6rem 0.5rem 0.8rem;
    gap: 0.1rem;
  }

  .edu-unit {
    font-size: var(--text-xs);
  }

  .edu-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    justify-content: flex-start;
  }
}

/* Tablet: 768px-1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-bio {
    padding: 1.5rem;
  }

  .skills-tags {
    gap: 0.5rem;
  }

  .skill-tag {
    padding: 4px 11px;
    font-size: var(--text-xs);
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .about-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-bio {
    padding: 2rem;
  }
}

@media (min-width: 1100px) {
  .about-rotated-label {
    display: block;
  }
}


/* ============================================================================
   SKILLS SECTION STYLES
   ============================================================================ */

.skills {
  background-color: var(--color-bg);
  padding: var(--section-padding-y) var(--section-padding-x);
  position: relative;
  overflow: hidden;
}

/* Section number bg text */
.skills-section-number {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--color-white);
  opacity: 0.04;
  top: 50%;
  transform: translateY(-50%);
  right: -2vw;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

/* Rotated page-edge label */
.skills-rotated-label {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  opacity: 0.4;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Grid background */
.skills::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(26, 127, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 127, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.skills-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  width: 100%;
}

.skills-category-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.skills-panel {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  padding-top: 0.5rem;
  /* Red accent line at top - manga chapter header */
  border-top: 2px solid var(--color-manga-red);
}

.category-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.category-accent {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-manga-red);
  flex-shrink: 0;
}

.category-skills {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-bottom: 0;
  border-bottom: none;
}

.skill-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
  cursor: pointer;
  transition: all 200ms ease;
}

@media (hover: hover) {
  .skill-item:hover .skill-prefix {
    color: var(--color-cyan);
    text-shadow: var(--text-glow-cyan, 0 0 8px currentColor);
  }

  .skill-item:hover .skill-name {
    color: var(--color-cyan);
    text-shadow: var(--text-glow-cyan, 0 0 8px currentColor);
  }
}

.skill-prefix {
  color: var(--color-muted);
  font-weight: 400;
  flex-shrink: 0;
}

.skill-name {
  color: var(--color-white);
  font-weight: 400;
  min-width: 0;
  word-break: break-word;
}

/* Responsive */

/* Mobile: 0-768px */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .skills-container {
    gap: 1rem;
  }

  .category-label {
    font-size: var(--text-xs);
  }

  .skill-item {
    font-size: var(--text-sm);
  }
}

/* Tablet: 768px–1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .skills-container {
    gap: 1.5rem;
  }

  .category-label {
    font-size: var(--text-sm);
  }

  .skill-item {
    font-size: var(--text-base);
  }
}

/* Desktop: 1024px–1279px (symmetric 2-col) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .skills-container {
    gap: 2rem;
  }

  .category-label {
    font-size: var(--text-sm);
  }

  .skill-item {
    font-size: var(--text-base);
  }
}

/* Wide Desktop: 1280px+ (asymmetric 2fr 1fr) */
@media (min-width: 1280px) {
  .skills-grid {
    grid-template-columns: 2fr 1fr;
    gap: 1.2rem;
  }

  .skills-container {
    gap: 2rem;
  }

  .category-label {
    font-size: var(--text-sm);
  }

  .skill-item {
    font-size: var(--text-base);
  }
}

@media (min-width: 900px) {
  .skills-rotated-label {
    display: block;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .skill-item {
    transition: none;
  }
}
/* ============================================================================
   PROJECTS SECTION STYLES - Light Panel Redesign
   Off-white background + manga chapter headers + light panels
   ============================================================================ */

.projects {
  background-color: var(--color-bg-2);
  padding: var(--section-padding-y) var(--section-padding-x);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--color-border);
  border-bottom: 3px solid var(--color-border);
}

/* Section number bg text */
.projects-section-number {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--color-white);
  opacity: 0.04;
  top: 50%;
  transform: translateY(-50%);
  right: -2vw;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

/* Rotated page-edge label */
.projects-rotated-label {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  opacity: 0.4;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Halftone screentone overlay */
.projects::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    var(--screentone) 1px,
    transparent 1px
  );
  background-size: 8px 8px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

/* Decorative "Projects" kanji - right side */
.projects::after {
  content: 'プロジェクト';
  position: absolute;
  font-family: var(--font-japanese);
  font-size: 14px;
  color: rgba(0, 0, 0, 0.12);
  writing-mode: vertical-rl;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.projects-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.projects-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.project-row {
  border: 2.5px solid var(--color-border);
  box-shadow: var(--shadow-brutal);
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 150ms ease-out;
  position: relative;
}

@media (hover: hover) {
  .project-row:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-brutal);
  }
}

/* Manga Chapter Header Bar */
.project-header {
  background-color: var(--color-white);
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
}

.project-id {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.project-status {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  padding: 2px 8px;
  border: 1px solid;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: transparent;
}

.project-status.status-live {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
}

.project-status.status-wip {
  border-color: var(--color-warning);
  color: var(--color-warning);
}

/* Project Content Area */
.project-content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-white);
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}

.project-description {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
  min-width: 0;
  word-break: break-word;
}

/* Project Features List */
.project-features {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0;
}

.project-feature-item {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.feature-bullet {
  color: var(--color-manga-red);
  flex-shrink: 0;
}

.feature-text {
  color: var(--color-muted);
  line-height: 1.5;
  min-width: 0;
  word-break: break-word;
}

.project-stack {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  margin: 0.5rem 0;
}

.stack-label {
  color: var(--color-blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.stack-items {
  color: var(--color-blue);
  letter-spacing: 0.05em;
  min-width: 0;
  word-break: break-word;
}

.project-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.project-link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 150ms ease;
}

.project-link:hover {
  color: var(--color-blue);
}

/* Responsive */

/* Mobile: 0-768px */
@media (max-width: 768px) {
  .project-content {
    padding: 16px 20px;
  }

  .project-title {
    font-size: var(--text-lg);
  }

  .project-description {
    font-size: var(--text-sm);
  }

  .project-stack {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .project-links {
    gap: 1rem;
  }

  .projects::after {
    display: none;
  }
}

/* Tablet & Desktop: 768px+ */
@media (min-width: 768px) {
  .project-content {
    padding: 20px 24px;
  }

  .project-title {
    font-size: var(--text-xl);
  }

  .project-description {
    font-size: var(--text-base);
  }

  .projects::after {
    display: block;
  }
}

@media (min-width: 900px) {
  .projects-rotated-label {
    display: block;
  }
}

/* Desktop: 1024px+ — 2-column grid */
@media (min-width: 1024px) {
  .projects-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .project-row:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .project-features {
    display: flex;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .project-row {
    transition: none;
  }
}
/* ============================================================================
   EXPERIENCE SECTION STYLES
   Dark section with manga badge dots and vertical Japanese text
   ============================================================================ */

.experience {
  background-color: var(--color-bg);
  padding: var(--section-padding-y) var(--section-padding-x);
  position: relative;
  overflow: hidden;
}

/* Section number bg text */
.experience-section-number {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--color-white);
  opacity: 0.04;
  top: 50%;
  transform: translateY(-50%);
  right: -2vw;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

/* Rotated page-edge label */
.experience-rotated-label {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  opacity: 0.4;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.experience-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 60px;
  --timeline-offset: 60px;
}

/* Vertical timeline line */
.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: auto;
  height: calc(100% - 32px);
  width: 1px;
  background-color: var(--color-blue);
  opacity: 0.2;
}

/* Vertical Japanese text "経験" along the timeline */
.timeline-japanese {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-japanese);
  font-size: 13px;
  color: rgba(0, 102, 255, 0.15);
  writing-mode: vertical-rl;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

@media (max-width: 600px) {
  .timeline-japanese {
    display: none;
  }
}

.timeline-entry {
  display: flex;
  gap: 1.2rem;
  position: relative;
  padding-bottom: 1rem;
}

/* Manga badge dot — numbered, red, brutal, no border-radius */
.timeline-badge {
  position: absolute;
  left: calc(-1 * var(--timeline-offset) + 14px);
  top: 0;
  width: 32px;
  height: 32px;
  background-color: var(--color-manga-red);
  border: 2px solid #ffffff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #ffffff;
  font-weight: 700;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.entry-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.entry-title {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  color: var(--color-white);
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.entry-org {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: none;
}

.entry-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: none;
}

.entry-description {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0.5rem 0 0 0;
  line-height: 1.8;
}

.timeline-entry:last-child {
  padding-bottom: 0;
}

/* Responsive */
@media (min-width: 900px) {
  .experience-rotated-label {
    display: block;
  }
}

/* Mobile: 0-768px */
@media (max-width: 768px) {
  .timeline {
    padding-left: 44px;
    gap: 1.5rem;
    --timeline-offset: 44px;
  }

  .timeline-badge {
    width: 26px;
    height: 26px;
    font-size: 9px;
  }

  .entry-title {
    font-size: var(--text-base);
  }

  .entry-description {
    font-size: var(--text-sm);
  }

  .entry-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .timeline-japanese {
    display: none;
  }
}

/* Tablet & Desktop: 768px+ */
@media (min-width: 768px) {
  .timeline {
    padding-left: 60px;
    gap: 2rem;
    --timeline-offset: 60px;
  }

  .timeline-badge {
    width: 32px;
    height: 32px;
    font-size: var(--text-xs);
  }

  .entry-title {
    font-size: var(--text-base);
  }

  .entry-description {
    font-size: var(--text-sm);
  }

  .entry-meta {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .timeline-japanese {
    display: block;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .timeline-badge {
    box-shadow: none;
  }
}
/* ============================================================================
   PROFICIENCY SECTION STYLES - Light Panel Redesign
   Cream background + dark text + manga aesthetic
   ============================================================================ */

.proficiency {
  background-color: var(--color-bg);
  padding: var(--section-padding-y) var(--section-padding-x);
  border-top: 3px solid var(--color-border);
  border-bottom: 3px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

/* Section number bg text */
.proficiency-section-number {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  color: var(--color-white);
  opacity: 0.04;
  top: 50%;
  transform: translateY(-50%);
  left: -2vw;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

/* Rotated page-edge label */
.proficiency-rotated-label {
  display: none;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  opacity: 0.4;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Halftone screentone overlay */
.proficiency::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    var(--screentone) 1px,
    transparent 1px
  );
  background-size: 8px 8px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

.proficiency-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: relative;
  z-index: 2;
}

.proficiency-heading {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-white);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 400px;
  min-height: 280px;
  position: relative;
}

/* シンク率 badge - overlaps chart top-right */
.sync-rate-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.sync-rate-kanji {
  font-family: var(--font-japanese);
  font-size: var(--text-sm);
  color: var(--color-panel-cream);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Concentric circle background */
.chart-wrapper::before {
  content: '';
  position: absolute;
  width: min(400px, 90vw);
  height: min(400px, 90vw);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 
    0 0 0 80px rgba(0, 0, 0, 0.05),
    0 0 0 160px rgba(0, 0, 0, 0.03),
    0 0 0 240px rgba(0, 0, 0, 0.02);
  pointer-events: none;
  z-index: 0;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
  position: relative;
  z-index: 3;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  min-width: 100px;
}

.legend-name {
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.legend-name::after {
  content: ' //';
  color: var(--color-blue);
  font-weight: 700;
}

.legend-value {
  color: var(--color-white);
  font-weight: 700;
}

/* Responsive */

/* True Mobile: 0-480px */
@media (max-width: 480px) {
  .proficiency-heading {
    font-size: var(--text-lg);
  }

  .proficiency-container {
    gap: 1.2rem;
  }

  .chart-wrapper {
    height: 260px;
    min-height: 220px;
  }

  .chart-wrapper::before {
    width: min(280px, 85vw);
    height: min(280px, 85vw);
  }

  .sync-rate-badge {
    top: 6px;
    right: 6px;
    transform: scale(0.85);
    transform-origin: top right;
  }

  .legend {
    gap: 0.75rem;
  }

  .legend-item {
    font-size: var(--text-xs);
  }
}

/* Mobile: 481px-768px */
@media (max-width: 768px) {
  .proficiency-container {
    gap: 1.5rem;
  }

  .proficiency-heading {
    font-size: var(--text-xl);
  }

  .chart-wrapper {
    height: 320px;
    min-height: 260px;
  }

  .legend {
    gap: 1rem;
    padding: 0.8rem 0;
  }

  .legend-item {
    font-size: var(--text-xs);
  }
}

/* Tablet & Desktop: 768px+ */
@media (min-width: 768px) {
  .proficiency-container {
    gap: 2rem;
  }

  .proficiency-heading {
    font-size: var(--text-2xl);
  }

  .chart-wrapper {
    height: 400px;
    min-height: 280px;
  }

  .legend {
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .legend-item {
    font-size: var(--text-sm);
  }
}

@media (min-width: 900px) {
  .proficiency-rotated-label {
    display: block;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .chart-wrapper,
  .legend {
    transition: none;
  }
}
/* ============================================================================
   CONTACT SECTION STYLES
   ============================================================================ */

.contact {
  background-color: var(--color-bg);
  padding: var(--section-padding-y) var(--section-padding-x);
  position: relative;
  overflow: hidden;
}

/* Section number bg text */
.contact-section-number {
  position: absolute;
  font-family: var(--font-display);
  font-size: 20vw;
  color: var(--color-white);
  opacity: 0.04;
  top: 50%;
  transform: translateY(-50%);
  right: -2vw;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  user-select: none;
}

/* Rotated page-edge label */
.contact-rotated-label {
  display: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  opacity: 0.4;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Decorative 連絡 accent badge */
.contact-accent-badge {
  position: absolute;
  top: clamp(16px, 3vh, 80px);
  right: clamp(16px, 3vw, 40px);
  z-index: 10;
}

@media (max-width: 480px) {
  .contact-accent-badge {
    display: none;
  }
}

.contact-badge-kanji {
  font-family: var(--font-japanese);
  font-size: 28px;
  color: var(--color-panel-cream);
  font-weight: 700;
  text-align: center;
}

.contact-badge-sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-panel-cream);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

/* Heading wrapper with speed lines */
.contact-heading-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.contact-speed-lines {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.contact-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-white);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: var(--shadow-brutal-blue);
  position: relative;
  z-index: 1;
}

.contact-subline {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
  line-height: 1.8;
  max-width: 600px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.5rem 0;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
  border: 1px solid var(--color-blue-dim);
  border-radius: 0;
  background-color: transparent;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

@media (hover: hover) {
  .contact-link:hover {
    border-color: var(--color-cyan);
    background-color: rgba(0, 102, 255, 0.05);
    box-shadow: inset 12px 0 8px -8px rgba(0, 238, 255, 0.2);
  }
}

.contact-link:hover .contact-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Form styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 500px;
  padding: 1.5rem 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: var(--text-glow-blue);
}

.form-input,
.form-textarea {
  background-color: transparent;
  border: 1px solid var(--color-blue-dim);
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: 0.8rem;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-input:focus,
.form-textarea:focus {
  outline: 2px solid var(--color-blue);
  outline-offset: -1px;
  border-color: var(--color-cyan);
  background-color: rgba(0, 102, 255, 0.05);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-muted);
  opacity: 0.6;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-red);
  margin-top: 0.25rem;
}

.submit-button {
  align-self: flex-start;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--color-cyan);
  background-color: transparent;
  color: var(--color-cyan);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-shadow: var(--text-glow-cyan);
}

.submit-button:hover {
  background-color: rgba(0, 207, 255, 0.1);
  box-shadow: var(--glow-cyan);
}

.submit-button:active {
  transform: scale(0.98);
}

.success-message {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-cyan);
  padding: 1rem;
  border: 1px solid var(--color-cyan);
  background-color: rgba(0, 207, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive */

/* Mobile: 0-768px */
@media (max-width: 768px) {
  .contact-heading {
    font-size: var(--text-2xl);
  }

  .contact-subline {
    font-size: var(--text-sm);
  }

  .contact-links {
    gap: 0.6rem;
  }

  .contact-link {
    padding: 0.6rem;
    gap: 1rem;
  }

  .contact-value {
    font-size: var(--text-xs);
  }

  .form-input,
  .form-textarea {
    padding: 0.6rem;
    font-size: var(--text-sm);
  }

  .submit-button {
    padding: 0.6rem 1.2rem;
    font-size: var(--text-xs);
  }

  .contact-accent-badge {
    display: none;
  }
}

/* Tablet & Desktop: 769px+ */
@media (min-width: 769px) {
  .contact-heading {
    font-size: var(--text-3xl);
  }

  .contact-subline {
    font-size: var(--text-base);
  }

  .contact-links {
    gap: 0.8rem;
  }

  .contact-link {
    padding: 0.8rem;
    gap: 1.5rem;
  }

  .contact-value {
    font-size: var(--text-sm);
  }

  .form-input,
  .form-textarea {
    padding: 0.6rem;
    font-size: var(--text-base);
  }

  .submit-button {
    padding: 0.8rem 1.5rem;
    font-size: var(--text-sm);
  }
}

@media (min-width: 1100px) {
  .contact-rotated-label {
    display: block;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .contact-link,
  .form-input,
  .form-textarea,
  .submit-button,
  .contact-arrow {
    transition: none;
  }
}
/* ============================================================================
   TransitionRibbon.css
   Full-width chapter break dividers between sections
   ============================================================================ */

.transition-ribbon {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.ribbon-dark-to-light {
  background-color: var(--color-white);
}

.ribbon-light-to-dark {
  background-color: var(--color-blue);
}

.ribbon-content {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.5em;
  white-space: nowrap;
}

.ribbon-dark-to-light .ribbon-content {
  color: rgba(255, 255, 255, 0.1);
}

.ribbon-light-to-dark .ribbon-content {
  color: rgba(0, 0, 0, 0.2);
}
/* ============================================================================
   NERV MAGI SYSTEM // DESIGN TOKENS - DUAL PALETTE
   Neo-brutalist minimal + Neon Genesis Evangelion aesthetic
   Light: "NERV PAPER" | Dark: "NERV CORE"
   ============================================================================ */

/* ====== LIGHT MODE — "NERV PAPER" ====== */
:root {
  /* Backgrounds */
  --color-bg:       #F0EDE6;   /* aged manga paper */
  --color-bg-2:     #E8E4DC;   /* slightly darker paper */
  --color-bg-3:     #FFFFFF;   /* pure white panels */
  --color-bg-4:     #D6E4F0;   /* cold blue tint panel */

  /* Text */
  --color-white:    #0A0A0F;   /* near black — primary text */
  --color-muted:    #4A5568;   /* mid gray — secondary text */
  --color-faint:    #8A9BB0;   /* lightest text, labels */

  /* Anime / NGE accents */
  --color-blue:     #0047CC;   /* NERV electric blue */
  --color-cyan:     #007FA3;   /* muted teal — readable on light */
  --color-red:      #CC1200;   /* NGE danger red */
  --color-warning:  #C45000;   /* NERV orange */
  --color-green:    #006B3C;   /* system nominal green */

  /* Brutalist */
  --color-border:   #0A0A0F;   /* hard black borders */
  --color-black:    #0A0A0F;

  /* Shadows — hard offset, no blur */
  --shadow-brutal:      4px 4px 0px #0A0A0F;
  --shadow-brutal-blue: 4px 4px 0px #0047CC;
  --shadow-brutal-red:  4px 4px 0px #CC1200;

  /* Borders */
  --border:         2px solid #0A0A0F;
  --border-thin:    1px solid rgba(0,0,0,0.15);
  --border-blue:    2px solid #0047CC;
  --border-red:     2px solid #CC1200;

  /* Glows — subtle on light bg */
  --glow-blue:      0 0 8px rgba(0, 71, 204, 0.3);
  --glow-red:       0 0 8px rgba(204, 18, 0, 0.3);
  --text-glow-blue: 0 0 4px rgba(0, 71, 204, 0.4);
  --text-glow-cyan: 0 0 4px rgba(0, 127, 163, 0.4);

  /* Screentone / texture */
  --screentone:     rgba(0, 0, 0, 0.035);

  /* Legacy aliases for compatibility */
  --color-panel-light: #FFFFFF;
  --color-panel-cream: #F0EDE6;
  --color-panel-border: #0A0A0F;
  --color-manga-red: #CC1200;
  --border-bright: 1px solid rgba(0, 71, 204, 0.6);
  --border-cyan: 1px solid #007FA3;
  --color-blue-dim: rgba(0, 71, 204, 0.2);

  /* FONTS */
  --font-mono: 'Share Tech Mono', monospace;
  --font-display: 'Bebas Neue', sans-serif;
  --font-japanese: 'Zen Antique Soft', serif;

  /* SPACING */
  --section-padding-x: clamp(20px, 5vw, 100px);
  --section-padding-y: clamp(40px, 6vw, 80px);
  --max-width: 1100px;

  /* TYPOGRAPHY SCALE - clamp(mobile, ideal, desktop) */
  --text-xs: clamp(11px, 1.3vw, 13px);
  --text-sm: clamp(13px, 1.6vw, 15px);
  --text-base: clamp(15px, 1.8vw, 17px);
  --text-lg: clamp(18px, 2.2vw, 22px);
  --text-xl: clamp(26px, 3.4vw, 32px);
  --text-2xl: clamp(32px, 4.4vw, 48px);
  --text-3xl: clamp(48px, 6.6vw, 72px);
  --text-hero: clamp(60px, 10vw, 120px);
}

/* ====== DARK MODE — "NERV CORE" ====== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Backgrounds */
    --color-bg:       #04060D;   /* near black, cold blue undertone */
    --color-bg-2:     #080D18;   /* section bg */
    --color-bg-3:     #0C1220;   /* card / panel bg */
    --color-bg-4:     #111827;   /* elevated surface */

    /* Text */
    --color-white:    #D8E8FF;   /* off white, cold blue tint */
    --color-muted:    #5A7899;   /* readable mid tone */
    --color-faint:    #2E4560;   /* dimmest text, labels */

    /* Anime / NGE accents */
    --color-blue:     #1A7FFF;   /* electric blue */
    --color-cyan:     #00EEFF;   /* neon cyan — use for highlights */
    --color-red:      #FF1A1A;   /* danger red */
    --color-warning:  #FF6600;   /* NERV orange */
    --color-green:    #00FF88;   /* system nominal */

    /* Brutalist */
    --color-border:   #1A7FFF;   /* blue borders on dark */
    --color-black:    #000000;

    /* Shadows — hard offset with color */
    --shadow-brutal:      4px 4px 0px #000000;
    --shadow-brutal-blue: 4px 4px 0px #1A7FFF;
    --shadow-brutal-red:  4px 4px 0px #FF1A1A;

    /* Borders */
    --border:         1px solid rgba(26, 127, 255, 0.25);
    --border-thin:    1px solid rgba(26, 127, 255, 0.15);
    --border-blue:    1px solid #1A7FFF;
    --border-red:     1px solid #FF1A1A;

    /* Glows — neon on dark bg */
    --glow-blue:      0 0 16px rgba(26, 127, 255, 0.6);
    --glow-red:       0 0 16px rgba(255, 26, 26, 0.5);
    --text-glow-blue: 0 0 8px rgba(26, 127, 255, 0.8);
    --text-glow-cyan: 0 0 8px rgba(0, 238, 255, 0.7);

    /* Screentone / texture */
    --screentone:     rgba(0, 0, 0, 0.04);

    /* Legacy aliases for compatibility */
    --color-panel-light: #0C1220;
    --color-panel-cream: #04060D;
    --color-panel-border: #1A7FFF;
    --color-manga-red: #FF1A1A;
    --border-bright: 1px solid rgba(26, 127, 255, 0.7);
    --border-cyan: 1px solid #00EEFF;
    --color-blue-dim: rgba(26, 127, 255, 0.2);
  }
}

/* ====== MANUAL DATA ATTRIBUTE OVERRIDES ====== */
[data-theme="light"] {
  --color-bg:       #F0EDE6;
  --color-bg-2:     #E8E4DC;
  --color-bg-3:     #FFFFFF;
  --color-bg-4:     #D6E4F0;
  --color-white:    #0A0A0F;
  --color-muted:    #4A5568;
  --color-faint:    #8A9BB0;
  --color-blue:     #0047CC;
  --color-cyan:     #007FA3;
  --color-red:      #CC1200;
  --color-warning:  #C45000;
  --color-green:    #006B3C;
  --color-border:   #0A0A0F;
  --color-black:    #0A0A0F;
  --shadow-brutal:      4px 4px 0px #0A0A0F;
  --shadow-brutal-blue: 4px 4px 0px #0047CC;
  --shadow-brutal-red:  4px 4px 0px #CC1200;
  --border:         2px solid #0A0A0F;
  --border-thin:    1px solid rgba(0,0,0,0.15);
  --border-blue:    2px solid #0047CC;
  --border-red:     2px solid #CC1200;
  --glow-blue:      0 0 8px rgba(0, 71, 204, 0.3);
  --glow-red:       0 0 8px rgba(204, 18, 0, 0.3);
  --text-glow-blue: 0 0 4px rgba(0, 71, 204, 0.4);
  --text-glow-cyan: 0 0 4px rgba(0, 127, 163, 0.4);
  --screentone:     rgba(0, 0, 0, 0.035);
  --color-panel-light: #FFFFFF;
  --color-panel-cream: #F0EDE6;
  --color-panel-border: #0A0A0F;
  --color-manga-red: #CC1200;
  --border-bright: 1px solid rgba(0, 71, 204, 0.6);
  --border-cyan: 1px solid #007FA3;
  --color-blue-dim: rgba(0, 71, 204, 0.2);
}

[data-theme="dark"] {
  --color-bg:       #04060D;
  --color-bg-2:     #080D18;
  --color-bg-3:     #0C1220;
  --color-bg-4:     #111827;
  --color-white:    #D8E8FF;
  --color-muted:    #5A7899;
  --color-faint:    #2E4560;
  --color-blue:     #1A7FFF;
  --color-cyan:     #00EEFF;
  --color-red:      #FF1A1A;
  --color-warning:  #FF6600;
  --color-green:    #00FF88;
  --color-border:   #1A7FFF;
  --color-black:    #000000;
  --shadow-brutal:      4px 4px 0px #000000;
  --shadow-brutal-blue: 4px 4px 0px #1A7FFF;
  --shadow-brutal-red:  4px 4px 0px #FF1A1A;
  --border:         1px solid rgba(26, 127, 255, 0.25);
  --border-thin:    1px solid rgba(26, 127, 255, 0.15);
  --border-blue:    1px solid #1A7FFF;
  --border-red:     1px solid #FF1A1A;
  --glow-blue:      0 0 16px rgba(26, 127, 255, 0.6);
  --glow-red:       0 0 16px rgba(255, 26, 26, 0.5);
  --text-glow-blue: 0 0 8px rgba(26, 127, 255, 0.8);
  --text-glow-cyan: 0 0 8px rgba(0, 238, 255, 0.7);
  --screentone:     rgba(0, 0, 0, 0.04);
  --color-panel-light: #0C1220;
  --color-panel-cream: #04060D;
  --color-panel-border: #1A7FFF;
  --color-manga-red: #FF1A1A;
  --border-bright: 1px solid rgba(26, 127, 255, 0.7);
  --border-cyan: 1px solid #00EEFF;
  --color-blue-dim: rgba(26, 127, 255, 0.2);
}

/* ============================================================================
   GLOBAL RESET & BASE STYLES
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-white);    /* now resolves to #0A0A0A */
  font-family: var(--font-mono);
  font-size: var(--text-base);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* SCAN-LINE OVERLAY — very faint on light bg */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.015) 3px,
    rgba(0, 0, 0, 0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

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

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: var(--color-white);    /* resolves to #0A0A0A */
  text-decoration: none;
  transition: color 150ms ease;
  font-family: inherit;
}

a:hover {
  color: var(--color-blue);
}

/* ============================================================================
   FORMS & INPUTS
   ============================================================================ */

input,
textarea,
select {
  background-color: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  border-radius: 0;
  color: #0A0A0A;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: 12px 16px;
  width: 100%;
  transition: all 150ms ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: var(--shadow-brutal-blue);
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

button {
  background-color: #0A0A0A;
  border: 2px solid #0A0A0A;
  border-radius: 0;
  color: var(--color-panel-cream);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  padding: 12px 32px;
  text-transform: uppercase;
  transition: all 150ms ease;
  box-shadow: var(--shadow-brutal);
}

button:hover {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  box-shadow: var(--shadow-brutal-blue);
}

button:active {
  transform: scale(0.98);
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.system-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-blue);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: none;
  display: block;
  margin-bottom: 0.5rem;
  padding-left: 12px;
  border-left: 2px solid var(--color-blue);
  box-shadow: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--section-padding-x);
  padding-right: var(--section-padding-x);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

main {
  width: 100%;
  min-height: 100vh;
}

section {
  padding: var(--section-padding-y) var(--section-padding-x);
}
/* ============================================================================
   ANIMATIONS
   ============================================================================ */

/* Typewriter Effect */
@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 49%, 100% {
    opacity: 1;
  }
  50%, 99% {
    opacity: 0;
  }
}

/* Pulse - slow breathing effect */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Glow pulse */
@keyframes glow-pulse {
  0%, 100% {
    box-shadow: var(--glow-blue);
  }
  50% {
    box-shadow: var(--glow-blue), 0 0 20px rgba(0, 102, 255, 0.3);
  }
}

/* Glow pulse cyan */
@keyframes glow-pulse-cyan {
  0%, 100% {
    box-shadow: var(--glow-cyan);
  }
  50% {
    box-shadow: var(--glow-cyan), 0 0 20px rgba(0, 207, 255, 0.3);
  }
}

/* Scan line animation */
@keyframes scan {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

/* Utility classes */
.typewriter {
  overflow: hidden;
  border-right: 0.15em solid var(--color-cyan);
  white-space: nowrap;
  animation: typewriter 0.3s steps(44, end), blink 0.75s step-end infinite;
}

.pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

.glow-pulse {
  animation: glow-pulse 2s ease-in-out infinite;
}

.glow-pulse-cyan {
  animation: glow-pulse-cyan 2s ease-in-out infinite;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
