/* ============================================
   RUTEN Website - Design System & Styles
   Modern, Clean, Neurotech Glassmorphism UI
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   CSS Variables - Design Tokens
   ============================================ */
:root {
  /* Color Palette */
  --color-bg-dark: #222831;
  --color-bg-card: #393E46;
  --color-accent: #00ADB5;
  --color-accent-hover: #00c7d1;
  --color-light: #EEEEEE;
  --color-text-primary: #EEEEEE;
  --color-text-secondary: rgba(238, 238, 238, 0.7);
  --color-text-muted: rgba(238, 238, 238, 0.5);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows - Enhanced for depth */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 173, 181, 0.4);
  --shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Enhanced Glassmorphism */
  --glass-bg: rgba(57, 62, 70, 0.4);
  --glass-bg-light: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-light: rgba(255, 255, 255, 0.15);
  --glass-blur: 24px;
  --glass-blur-strong: 40px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Network background animation canvas */
.network-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", "HG明朝E", var(--font-display), serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
}

/* ============================================
   Layout Utilities
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
  background: transparent;
}

/* Overlay for sections to maintain readability */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(34, 40, 49, 0.7);
  pointer-events: none;
  z-index: 0;
}

.section>.container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  display: inline-block;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  border-radius: 2px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(34, 40, 49, 0.9);
  backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: var(--space-xs) 0;
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

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

.logo-img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-text-primary);
  background: rgba(0, 173, 181, 0.1);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: var(--glass-bg);
  border-radius: var(--radius-xl);
  padding: 4px;
  border: 1px solid var(--glass-border);
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle button.active {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.lang-toggle button:hover:not(.active) {
  color: var(--color-text-primary);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  display: flex;
  align-items: flex-start;
  padding-top: 180px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Overlay for text readability */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(34, 40, 49, 0.3);
  pointer-events: none;
  z-index: 1;
}

/* Matrix-style binary animation canvas */
.matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}

/* Bottom gradient fade to blend into next section */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, transparent, var(--color-bg-dark));
  pointer-events: none;
  z-index: 0;
}

.hero .container,
.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Hero illustration - left side */
.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-loop-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 0 20px rgba(0, 173, 181, 0.3));
}

/* Hero content - right side */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-content h1 {
  margin-bottom: 0;
  font-family: "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", "HG明朝E", serif;
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-content h1 .accent {
  color: var(--color-accent);
}

.hero-content h1[data-lang-content="en"] {
  font-size: 3.5rem;
}

/* Mobile-only image (hidden on desktop) */
.hero-image-mobile {
  display: none;
}

/* Description below headline */
.hero-description {
  margin-top: var(--space-md);
}

.hero-description .lead {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(8px);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Subtle top highlight */
.hero-illustration::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 173, 181, 0.3), transparent);
  pointer-events: none;
}

/* Remove bottom glow - cleaner look */
.hero-illustration::after {
  display: none;
}

.hero-illustration svg {
  width: 70%;
  height: 70%;
  opacity: 0.8;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  opacity: 0.75;
}

/* Animated circles */
.hero-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-circles .circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 173, 181, 0.3);
  animation: pulse 4s ease-in-out infinite;
}

.hero-circles .circle:nth-child(1) {
  width: 100%;
  height: 100%;
  animation-delay: 0s;
}

.hero-circles .circle:nth-child(2) {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  animation-delay: 1s;
}

.hero-circles .circle:nth-child(3) {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  animation-delay: 2s;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.6;
  }
}

/* ============================================
   BMI Explanation Section
   ============================================ */
.bmi-section {
  /* Uses shared section background */
}

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

.bmi-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bmi-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.bmi-loop-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 0 20px rgba(0, 173, 181, 0.3));
}

/* Animated pulse rings - Triangle layout */
.pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(0, 173, 181, 0.4);
  animation: pulse-expand 3s ease-out infinite;
  pointer-events: none;
}

/* Brain position - top center */
.pulse-ring-1 {
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  animation-delay: 0s;
}

/* IPG position - bottom left */
.pulse-ring-2 {
  bottom: 25%;
  left: 20%;
  width: 45px;
  height: 45px;
  animation-delay: 1s;
}

/* Stimulation position - bottom right */
.pulse-ring-3 {
  bottom: 25%;
  right: 20%;
  width: 45px;
  height: 45px;
  animation-delay: 2s;
}

@keyframes pulse-expand {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Animated flow particles - Triangle closed loop */
.flow-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #00ADB5;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ADB5, 0 0 15px #00ADB5;
  pointer-events: none;
}

.flow-1 {
  animation: flow-triangle 4s linear infinite;
}

.flow-2 {
  animation: flow-triangle 4s linear infinite;
  animation-delay: 1.3s;
}

.flow-3 {
  animation: flow-triangle 4s linear infinite;
  animation-delay: 2.6s;
}

/* Triangle flow: Brain (top) → IPG (bottom-left) → Stimulation (bottom-right) → Brain */
@keyframes flow-triangle {
  0% {
    top: 20%;
    left: 50%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  33% {
    top: 70%;
    left: 25%;
    opacity: 1;
  }

  66% {
    top: 70%;
    left: 75%;
    opacity: 1;
  }

  95% {
    opacity: 1;
  }

  100% {
    top: 20%;
    left: 50%;
    opacity: 0;
  }
}

.bmi-content {
  position: relative;
}

.bmi-content .lead {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.bmi-content p {
  margin-bottom: var(--space-md);
}

.bmi-features {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 var(--space-lg);
}

.bmi-features li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
}

.bmi-features li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.8em;
}

.bmi-content .highlight-text {
  background: rgba(0, 173, 181, 0.1);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-md);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: var(--space-lg);
}

/* ============================================
   Problem/Solution Section (Dysphagia)
   ============================================ */
.dysphagia {
  /* Uses shared section background */
}

.dysphagia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.dysphagia-problem,
.dysphagia-solution {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg,
      rgba(57, 62, 70, 0.5) 0%,
      rgba(57, 62, 70, 0.25) 100%);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(var(--glass-blur-strong));
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.dysphagia-problem::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), #00e5ff);
}

.dysphagia-solution::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), #00e5ff);
}

.stat-highlight {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1em;
}

.solution-name {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-accent), #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Clickable dysphagia cards */
.dysphagia-card {
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.dysphagia-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.read-more {
  display: inline-block;
  margin-top: var(--space-md);
  color: var(--color-accent);
  font-weight: 500;
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}

.dysphagia-card:hover .read-more {
  transform: translateX(5px);
}

/* Dysphagia Modal - Larger than news modal */
.dysphagia-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dysphagia-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dysphagia-modal {
  background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(57, 62, 70, 0.95) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border-light);
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.dysphagia-modal-overlay.active .dysphagia-modal {
  transform: translateY(0) scale(1);
}

.dysphagia-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  z-index: 10;
}

.dysphagia-modal-close:hover {
  color: var(--color-accent);
}

.dysphagia-modal-content {
  padding: var(--space-2xl);
}

.dysphagia-modal-title {
  margin-bottom: var(--space-lg);
  color: var(--color-text-primary);
  font-size: 1.8rem;
}

.dysphagia-modal-body {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.dysphagia-modal-body p {
  margin-bottom: var(--space-md);
}

.dysphagia-modal-body .stat-highlight {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.2em;
}

/* ============================================
   Timeline Section - Horizontal Scroll
   ============================================ */
.timeline {
  position: relative;
  overflow: hidden;
}

.timeline-container {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Custom scrollbar styling */
.timeline-container::-webkit-scrollbar {
  height: 8px;
}

.timeline-container::-webkit-scrollbar-track {
  background: rgba(57, 62, 70, 0.5);
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-hover);
}

/* Horizontal timeline line */
.timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), rgba(0, 173, 181, 0.3), var(--color-accent));
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.timeline-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  position: relative;
}

.timeline-date {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-dark);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.timeline-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent);
}

.timeline-content {
  background: linear-gradient(145deg,
      rgba(57, 62, 70, 0.5) 0%,
      rgba(57, 62, 70, 0.25) 100%);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(var(--glass-blur));
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100px;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 100%);
  pointer-events: none;
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: rgba(0, 173, 181, 0.3);
}

.timeline-content h4 {
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
  line-height: 1.4;
}

.timeline-content p {
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   Team Section
   ============================================ */
.team {
  /* Uses shared section background */
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.team-card {
  background: linear-gradient(160deg,
      rgba(57, 62, 70, 0.55) 0%,
      rgba(57, 62, 70, 0.3) 50%,
      rgba(0, 173, 181, 0.05) 100%);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(var(--glass-blur-strong));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

/* Top reflection - liquid glass effect */
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.02) 40%,
      transparent 100%);
  pointer-events: none;
}

/* Bottom accent glow */
.team-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(0, 173, 181, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.team-card:hover {
  transform: translateY(-12px);
  box-shadow:
    var(--shadow-lg),
    var(--shadow-glow),
    inset 0 1px 1px rgba(255, 255, 255, 0.15);
  border-color: rgba(0, 173, 181, 0.3);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--color-bg-card);
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
  border: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo svg {
  width: 60%;
  height: 60%;
  stroke: var(--color-text-muted);
}

.team-name {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.team-role {
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.team-bio {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--color-accent);
  color: var(--color-bg-dark);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.team-linkedin:hover {
  background: var(--color-accent-hover);
  transform: scale(1.05);
  color: var(--color-bg-dark);
}

/* Advisors & Collaborators Subsection */
.team-subsection-title {
  font-size: 1.4rem;
  color: var(--color-text-primary);
  margin: var(--space-2xl) 0 var(--space-lg);
  text-align: center;
}

.team-grid-small {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding: 0 var(--space-lg);
}

/* Collapsible team sections (mobile only) */
.team-collapsible .team-expand-btn {
  display: none;
}

.team-collapsible-content {
  display: block;
}

.team-card-small {
  text-align: center;
  padding: var(--space-md);
  background: linear-gradient(145deg,
      rgba(57, 62, 70, 0.4) 0%,
      rgba(57, 62, 70, 0.2) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border-light);
  transition: all var(--transition-medium);
}

.team-card-small:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 173, 181, 0.3);
}

.team-name-small {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-primary);
}

.team-role-small {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.team-affiliation {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

@media (max-width: 1024px) {
  .team-grid-small {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 480px) {
  .team-grid-small {
    grid-template-columns: 1fr;
  }
}

.team-linkedin svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   Careers Section
   ============================================ */
.careers {
  /* Uses shared section background */
}

.careers-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.careers-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, var(--color-accent), #00e5ff);
  color: var(--color-bg-dark);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-xl);
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  color: var(--color-bg-dark);
}

.btn-primary svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   News Section
   ============================================ */
.news {
  /* Uses shared section background */
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.news-card {
  background: linear-gradient(150deg,
      rgba(57, 62, 70, 0.5) 0%,
      rgba(57, 62, 70, 0.25) 100%);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

/* Glass reflection on top */
.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow:
    var(--shadow-lg),
    var(--shadow-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 173, 181, 0.3);
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-image {
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-card), var(--color-bg-dark));
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-body {
  padding: var(--space-lg);
}

.news-date {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.news-title {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

.news-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* News Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 40, 49, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 1;
}

.modal-close:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.modal-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.modal-content {
  padding: var(--space-xl);
}

.modal-content .news-date {
  margin-bottom: var(--space-sm);
}

.modal-content h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
}

.modal-content .news-subtitle {
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  color: var(--color-text-secondary);
}

.modal-content .news-body-text {
  line-height: 1.8;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding-bottom: var(--space-2xl);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.contact-grid-2col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   Offices Section
   ============================================ */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.office-card {
  background: linear-gradient(155deg,
      rgba(57, 62, 70, 0.5) 0%,
      rgba(57, 62, 70, 0.25) 50%,
      rgba(0, 173, 181, 0.03) 100%);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(var(--glass-blur-strong));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.office-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.office-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--color-accent), #00e5ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.office-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-bg-dark);
}

.office-card h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.contact-card {
  background: linear-gradient(155deg,
      rgba(57, 62, 70, 0.5) 0%,
      rgba(57, 62, 70, 0.25) 50%,
      rgba(0, 173, 181, 0.03) 100%);
  border: 1px solid var(--glass-border-light);
  backdrop-filter: blur(var(--glass-blur-strong));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

/* Glass reflection */
.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 100%);
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(0, 173, 181, 0.25);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-accent), #00e5ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.contact-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-bg-dark);
}

.contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.contact-card p {
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.contact-card a.email-link {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-bg-dark);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-xl);
  font-weight: 600;
  margin-top: var(--space-sm);
  transition: all var(--transition-fast);
}

.contact-card a.email-link:hover {
  background: var(--color-accent-hover);
  transform: scale(1.05);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--color-bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.social-links a:hover svg {
  stroke: var(--color-bg-dark);
}

.social-links svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-text-primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: rgba(57, 62, 70, 0.3);
  border-top: 1px solid var(--glass-border);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.footer-logo span {
  color: var(--color-accent);
}

.footer-logo-img {
  height: 30px;
  width: auto;
}

.footer-copyright {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: var(--space-lg);
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-sns {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-sns-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-sns-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-sns-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-dark);
}

.footer-sns-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* 1-column contact grid */
.contact-grid-1col {
  grid-template-columns: 1fr;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger animation for children */
.stagger-children>* {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.stagger-children.visible>*:nth-child(1) {
  transition-delay: 0.1s;
}

.stagger-children.visible>*:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-children.visible>*:nth-child(3) {
  transition-delay: 0.3s;
}

.stagger-children.visible>*:nth-child(4) {
  transition-delay: 0.4s;
}

.stagger-children.visible>*:nth-child(5) {
  transition-delay: 0.5s;
}

.stagger-children.visible>*:nth-child(6) {
  transition-delay: 0.6s;
}

.stagger-children.visible>*:nth-child(7) {
  transition-delay: 0.7s;
}

.stagger-children.visible>*:nth-child(8) {
  transition-delay: 0.8s;
}

.stagger-children.visible>* {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {

  .hero .container,
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    text-align: center;
  }

  /* Mobile order: Headline -> Visual -> Description */
  .hero-headline {
    grid-column: 1;
    grid-row: 1;
    order: 0;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 2;
    order: 1;
  }

  .hero-description {
    grid-column: 1;
    grid-row: 3;
    order: 2;
  }

  .hero-illustration {
    max-width: 350px;
  }

  /* Background fits height on mobile */
  .hero {
    background-size: auto 100%;
    background-position: center center;
  }

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

  .bmi-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .bmi-illustration svg {
    max-width: 320px;
  }

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

@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
  }

  .nav-links {
    display: none;
  }

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

  .hero {
    min-height: auto;
    padding: 100px var(--space-md) var(--space-2xl);
    overflow: hidden;
  }

  .hero .container,
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 100%;
    padding: 0 var(--space-sm);
  }

  /* Hide desktop illustration on mobile */
  .hero-illustration {
    display: none;
  }

  /* Show mobile image between title and description */
  .hero-image-mobile {
    display: block;
    margin: var(--space-lg) auto;
    max-width: 220px;
  }

  .hero-image-mobile .hero-loop-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 0 20px rgba(0, 173, 181, 0.3));
  }

  .hero-content {
    align-items: center;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    word-break: break-word;
    text-align: center;
  }

  .hero-content h1[data-lang-content="en"] {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .timeline-item {
    flex: 0 0 240px;
  }

  .timeline-icon {
    width: 40px;
    height: 40px;
  }

  .timeline-icon svg {
    width: 18px;
    height: 18px;
  }

  .timeline-content {
    min-height: 80px;
    padding: var(--space-sm);
  }

  .timeline-content h4 {
    font-size: 0.85rem;
  }

  .timeline-content p {
    font-size: 0.8rem;
  }

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

  /* Collapsible team sections on mobile */
  .team-collapsible .team-subsection-title {
    display: none;
  }

  .team-collapsible .team-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    width: calc(100% - var(--space-xl) * 2);
    margin-left: var(--space-xl);
    margin-right: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-lg);
    background: linear-gradient(145deg,
        rgba(0, 173, 181, 0.15) 0%,
        rgba(57, 62, 70, 0.6) 50%,
        rgba(0, 173, 181, 0.1) 100%);
    border: 1px solid rgba(0, 173, 181, 0.4);
    border-radius: var(--radius-lg);
    color: var(--color-text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-medium);
    box-shadow: 0 0 15px rgba(0, 173, 181, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .team-collapsible .team-expand-btn:hover {
    border-color: var(--color-accent);
    box-shadow: 0 0 25px rgba(0, 173, 181, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg,
        rgba(0, 173, 181, 0.25) 0%,
        rgba(57, 62, 70, 0.7) 50%,
        rgba(0, 173, 181, 0.15) 100%);
  }

  .team-collapsible .team-expand-btn .expand-icon {
    transition: transform var(--transition-medium);
  }

  .team-collapsible .team-expand-btn.expanded .expand-icon {
    transform: rotate(180deg);
  }

  .team-collapsible-content {
    display: none;
    overflow: hidden;
  }

  .team-collapsible-content.expanded {
    display: block;
  }

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

  .footer .container {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* Mobile Navigation Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--color-bg-card);
  padding: var(--space-2xl) var(--space-lg);
  transition: right var(--transition-normal);
  z-index: 1001;
  border-left: 1px solid var(--glass-border);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  margin-top: var(--space-xl);
}

.mobile-nav li {
  margin-bottom: var(--space-md);
}

.mobile-nav a {
  color: var(--color-text-primary);
  font-size: 1.25rem;
  font-weight: 500;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(34, 40, 49, 0.8);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}