/* =====================================================
   Personal Homepage — Inspired by academic lab sites
   ===================================================== */

/* ── Variables ── */
/* Light mode — default */
:root {
  --gold:        #8c6c34;
  --gold-light:  #3c2a08;
  --gold-dim:    rgba(140,108,52,0.1);
  --blue:        #2a4a8c;
  --blue-dark:   #1a3060;
  --blue-light:  rgba(42,74,140,0.08);
  --navy:        #1e1c18;
  --text:        #1e1c18;
  --muted:       #7a7268;
  --border:      rgba(0,0,0,0.1);
  --bg-white:    #f4f2ed;
  --bg-light:    #ece9e2;
  --radius:      4px;
  --shadow:      0 2px 12px rgba(0,0,0,0.08), 0 8px 32px rgba(0,0,0,0.05);
  --nav-h:       0px;
  --sidebar-w:   280px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:'Times New Roman', Times, Georgia, serif;
  --max-w:       100%;
  --nav-bg:      rgba(236,233,226,0.98);
  --footer-bg:   #e0ddd6;
}

/* Dark mode */
[data-theme="dark"] {
  --gold:        rgba(255,255,255,0.65);
  --gold-light:  #ffffff;
  --gold-dim:    rgba(255,255,255,0.07);
  --blue:        #ffffff;
  --blue-dark:   #cccccc;
  --blue-light:  rgba(255,255,255,0.08);
  --navy:        #0c0c0c;
  --text:        #d8d4cc;
  --muted:       #888888;
  --border:      rgba(255,255,255,0.12);
  --bg-white:    #1a1a20;
  --bg-light:    #22222a;
  --shadow:      0 2px 12px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.35);
  --nav-bg:      rgba(20,20,26,0.98);
  --footer-bg:   #141418;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; font-size: 20px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 1.1rem;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5%;
}

/* =====================================================
   NAVIGATION
   ===================================================== */
/* ── Sidebar + content layout ── */
.main-layout {
  display: flex;
  align-items: flex-start;
}
.main-content {
  flex: 1;
  min-width: 0;
}

.navbar {
  position: sticky;
  top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  flex-shrink: 0;
  background: var(--nav-bg);
  border-right: 1px solid var(--border);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
  overflow-y: auto;
}
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s, font-size 0.2s;
  transform-origin: left center;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: var(--gold-dim);
  border-left-color: var(--gold);
  text-decoration: none;
  font-size: 1.28rem;
}
.nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 300;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

/* =====================================================
   HERO — 3-up sliding carousel
   ===================================================== */
.hero {
  position: relative;
  height: 220px;
  background: var(--bg-white);
  overflow: hidden;
  padding: 0.5rem 0;
}

.hero-track-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.hero-track {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 8px;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Default slide */
.hero-slide {
  flex-shrink: 0;
  height: 72%;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  opacity: 0.55;
  transition: opacity 0.3s, height 0.3s;
}

/* 2nd and 4th */
.hero-slide:nth-child(2),
.hero-slide:nth-child(4) {
  height: 86%;
  opacity: 0.78;
}

/* Center — prominent */
.hero-slide:nth-child(3) {
  height: 100%;
  opacity: 1;
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  position: relative;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hero-slide:hover img {
  transform: scale(1.18);
}
.hero-slide-empty {
  background: var(--bg-light);
}

/* Arrows */
.hero-arrow {
  position: absolute;
  top: calc(50% + 0.3rem);
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  opacity: 0.7;
}
.hero-arrow:hover { background: rgba(0,0,0,0.75); opacity: 1; }
.hero-prev { left: 0.5rem; }
.hero-next { right: 0.5rem; }

/* Dot indicators */
.hero-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.45rem;
}
.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.hero-dot.active {
  background: white;
  transform: scale(1.35);
}

/* Avatar */
.hero-avatar { flex-shrink: 0; }
.avatar-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 3px solid rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 2px;
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero text */
.hero-body { flex: 1; color: white; }
.hero-name {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: 6px;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  color: white;
  text-shadow: none;
}
.hero-kanji {
  font-size: 1.6rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  margin-left: 1rem;
  letter-spacing: 3px;
}
.hero-role {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: 1px;
}
.hero-role a { color: rgba(255,255,255,0.75); text-decoration: underline dotted; }
.hero-role a:hover { color: white; }
.hero-bio {
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.85;
}
.hero-bio strong { color: white; font-weight: 600; }

/* Pills */
.hero-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  transition: all 0.2s;
  cursor: pointer;
}
.pill:hover { background: var(--blue-light); color: var(--gold-light); text-decoration: none; border-color: var(--gold); }
.pill-primary { background: var(--text); border-color: var(--text); color: var(--bg-white); font-weight: 600; }
.pill-primary:hover { opacity: 0.85; text-decoration: none; }
.pill-dark { background: var(--bg-light); border-color: var(--border); }


/* =====================================================
   SECTIONS — shared
   ===================================================== */
.page-section { padding-top: 60px; }
.section { padding: 80px 0; }
.section-white { background: var(--bg-white); }
.section-light { background: var(--bg-light); }

.sec-heading {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 2.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 2.5px solid var(--blue);
  display: inline-block;
  color: var(--navy);
}
.sec-lead {
  font-size: 1rem;
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
  text-align: center;
}

/* =====================================================
   NEWS
   ===================================================== */
.news-feed { display: flex; flex-direction: column; }
.news-row {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.news-date {
  flex-shrink: 0;
  min-width: 72px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.news-row p { font-size: 0.94rem; }

/* =====================================================
   PROFILE (About Me) — Japanese academic layout
   ===================================================== */
.profile-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.profile-name-block {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 4px;
  line-height: 2;
}
.profile-name-block ruby { display: inline-block; text-align: center; }
.profile-name-block rt {
  font-size: 0.42em;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 400;
}
.profile-roman {
  font-family: var(--font);
  font-size: 0.5em;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 1px;
  margin-left: 1rem;
}
.profile-body {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.profile-photo-col {
  flex-shrink: 0;
  width: 150px;
}
.profile-photo {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
}
.profile-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.profile-section { display: flex; flex-direction: column; gap: 0.75rem; }
.profile-sec-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.edu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.edu-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  font-size: 1rem;
  line-height: 1.55;
  align-items: baseline;
}
.edu-list li time {
  color: var(--muted);
  font-size: 0.9em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.profile-research-desc {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
}
.profile-pills { margin-top: 0.25rem; }

/* =====================================================
   RESEARCH
   ===================================================== */
.research-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.res-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  border-top: 2px solid transparent;
}
.res-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-top-color: var(--gold);
  border-color: rgba(201,169,110,0.4);
}
.res-icon { font-size: 2rem; margin-bottom: 1rem; }
.res-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.res-card p { font-size: 1rem; color: var(--muted); line-height: 1.7; }

/* =====================================================
   PUBLICATIONS
   ===================================================== */
.pub-card {
  display: flex;
  gap: 2rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.pub-thumbnail {
  width: 200px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--border);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pub-thumbnail img { width: 100%; height: 130px; object-fit: cover; display: block; }
.pub-thumb-placeholder { font-size: 2.5rem; position: absolute; }
.pub-thumbnail:has(img):not(.no-img) .pub-thumb-placeholder { display: none; }
.pub-thumbnail.no-img img { display: none; }

.pub-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-blue  { background: var(--blue-light); color: var(--blue); }
.tag-gray  { background: #f3f4f6; color: var(--muted); }
.tag-green { background: #dcfce7; color: #16a34a; }

.pub-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.pub-authors { font-size: 1rem; color: var(--muted); margin-bottom: 0.25rem; }
.pub-venue { font-size: 0.95rem; color: var(--muted); font-style: italic; margin-bottom: 0.75rem; }
.pub-abstract {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pub-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pub-btn {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s;
  background: var(--bg-white);
}
.pub-btn:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

.pub-more { text-align: center; color: var(--muted); font-size: 1rem; margin-top: 1rem; }

/* =====================================================
   RESEARCH LIST SECTIONS
   ===================================================== */
.pub-section {
  margin-bottom: 3rem;
  counter-reset: pub-counter;
}
.pub-section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.pub-entry {
  counter-increment: pub-counter;
  padding: 1.25rem 0 1.25rem 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}
.pub-entry:last-child { border-bottom: none; }
.pub-entry::before {
  content: counter(pub-counter);
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 1.8rem;
  text-align: right;
}
.pub-entry .pub-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0.4rem 0 0.35rem;
  line-height: 1.55;
}
.pub-entry .pub-authors {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  opacity: 0.8;
}
.pub-entry .pub-venue {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.6rem;
}
.pub-entry .pub-btns { margin-top: 0.5rem; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.contact-item p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
}

/* =====================================================
   RESEARCH OVERVIEW — interactive components
   ===================================================== */
.overview-lead {
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}
.ro-wrap {
  background: #07080f;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  color: #cdd6f4;
  font-family: var(--font);
}

/* Tag bar */
.ro-tagbar {
  display: flex;
  gap: 0;
  background: #0d0f1a;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  overflow-x: auto;
}
.ro-tagbar span {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  border-right: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.ro-tagbar span:hover { color: #fff; background: rgba(255,255,255,0.04); }

/* Main grid */
.ro-grid {
  display: grid;
  grid-template-columns: 1fr 170px 1fr;
  grid-template-rows: auto auto;
  gap: 6px;
  background: #07080f;
  position: relative;
}
.ro-p1 { grid-column: 1; grid-row: 1; border: 1.5px solid rgba(30,144,255,0.55); }
.ro-hub { grid-column: 2; grid-row: 1 / 3; }
.ro-p2 { grid-column: 3; grid-row: 1; border: 1.5px solid rgba(34,197,94,0.55); }
.ro-p3 { grid-column: 1; grid-row: 2; border: 1.5px solid rgba(168,85,247,0.55); }
.ro-p4 { grid-column: 3; grid-row: 2; border: 1.5px solid rgba(245,158,11,0.55); }

.ro-p1:hover { outline-color: rgba(30,144,255,0.7) !important; }
.ro-p2:hover { outline-color: rgba(34,197,94,0.7) !important; }
.ro-p3:hover { outline-color: rgba(168,85,247,0.7) !important; }
.ro-p4:hover { outline-color: rgba(245,158,11,0.7) !important; }

/* Panels */
.ro-panel {
  background: #0b0d18;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.ro-panel-hd {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}
.ro-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #1e90ff;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ro-num-g { background: #22c55e; }
.ro-num-p { background: #a855f7; }
.ro-num-y { background: #f59e0b; color: #000; }

/* Hub */
.ro-hub {
  background: #07080f;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
}
.ro-hub-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border: 1.5px solid #1e90ff;
  border-radius: 8px;
  padding: 1.25rem 1rem;
  background: rgba(30,144,255,0.06);
  box-shadow: 0 0 24px rgba(30,144,255,0.15);
  width: 100%;
}
.ro-hub-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 0 12px rgba(30,144,255,0.6);
}
.ro-hub-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}
.ro-hub-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 1.2rem;
}
.ro-hub-item small {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* Pipeline (Panel 1) */
.ro-pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.ro-pipe-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 70px;
}
.ro-pipe-step > span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.ro-pipe-arr {
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  padding-top: 1.5rem;
  flex-shrink: 0;
}
.ro-vidthumb {
  width: 100%;
  max-width: 90px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.12);
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.ro-annot-box {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}
.ro-atag {
  background: rgba(30,144,255,0.15);
  border: 1px solid rgba(30,144,255,0.3);
  border-radius: 3px;
  font-size: 0.62rem;
  padding: 2px 5px;
  color: #7fb3ff;
  text-align: center;
}
.ro-event-chips { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.ro-ec { font-size: 0.62rem; padding: 2px 5px; border-radius: 3px; text-align: center; }
.ro-ec-serve  { background: rgba(34,197,94,0.2);  color: #4ade80; }
.ro-ec-rally  { background: rgba(59,130,246,0.2); color: #60a5fa; }
.ro-ec-smash  { background: rgba(239,68,68,0.2);  color: #f87171; }
.ro-ec-drop   { background: rgba(168,85,247,0.2); color: #c084fc; }
.ro-ds-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.6);
  width: 100%;
}
.ro-pipe-footer {
  display: flex;
  gap: 1rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.5rem;
}

/* Eval grid (Panel 2) */
.ro-eval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  flex: 1;
}
.ro-eval-cell {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ro-cell-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.ro-stat-bars { display: flex; flex-direction: column; gap: 5px; }
.ro-stat-row {
  display: grid;
  grid-template-columns: 55px 1fr 38px;
  gap: 4px;
  align-items: center;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.5);
}
.ro-bwrap { display: flex; flex-direction: column; gap: 2px; }
.ro-ba, .ro-bb {
  height: 4px;
  border-radius: 2px;
  transition: width 0.6s ease;
}
.ro-ba { background: #22c55e; }
.ro-bb { background: #1e90ff; }
.ro-bvals { font-size: 0.6rem; color: rgba(255,255,255,0.35); text-align: right; }
.ro-legend { display: flex; gap: 0.75rem; font-size: 0.65rem; margin-top: 2px; }
.ro-leg-a { color: #22c55e; }
.ro-leg-b { color: #1e90ff; }
.ro-radar { width: 100%; max-height: 110px; display: block; }

/* Heatmap */
.ro-heatmap {
  position: relative;
  background: #0a1628;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.ro-hm-spot {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,100,0,0.85) 0%, rgba(255,200,0,0.5) 40%, transparent 70%);
  transform: translate(-50%, -50%);
}
.ro-hm-b .ro-hm-spot,
.ro-hm-spot.ro-hm-b {
  background: radial-gradient(circle, rgba(0,100,255,0.85) 0%, rgba(0,200,255,0.5) 40%, transparent 70%);
}

/* Tactical */
.ro-tactical { flex: 1; }
.ro-court-svg { width: 100%; display: block; background: #0d1a12; border-radius: 4px; border: 1px solid rgba(255,255,255,0.08); }

/* Multi-sport (Panel 4) */
.ro-multi-body {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex: 1;
}
.ro-sport-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.ro-sport-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffd700;
  text-align: center;
}
.ro-sport-img-wrap { width: 100%; border-radius: 5px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.ro-sport-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ro-shot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  justify-content: center;
}
.ro-shot-tags span {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  padding: 2px 5px;
}
.ro-multi-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  flex-shrink: 0;
}
.ro-transfer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 0.75rem 0.5rem;
}
.ro-transfer-arrows {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  color: rgba(255,200,0,0.7);
}
.ro-transfer-sub { font-size: 0.62rem; color: rgba(255,255,255,0.4); }
.ro-multi-footer {
  font-size: 0.78rem;
  color: #ffd700;
  text-align: center;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.5rem;
}

/* Captioning (Panel 3) */
.ro-caption-rows { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.ro-caption-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.03);
  border-radius: 5px;
  padding: 0.5rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.ro-cap-vid {
  width: 110px;
  flex-shrink: 0;
  border-radius: 4px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}
.ro-cap-text { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.ro-cap-sport { font-size: 0.72rem; font-weight: 600; color: #7fb3ff; }
.ro-cap-quote {
  font-size: 0.8rem;
  color: #e2e8f0;
  line-height: 1.5;
  font-style: italic;
}
.ro-cap-conf { font-size: 0.65rem; color: #22c55e; }

/* Flow */
.ro-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.6rem;
  flex-wrap: wrap;
}
.ro-flow-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
}
.ro-flow-item small { font-size: 0.62rem; color: rgba(255,255,255,0.5); line-height: 1.3; }
.ro-flow-arr { color: rgba(255,255,255,0.2); font-size: 0.9rem; flex-shrink: 0; }

/* Footer bar */
.ro-footer-bar {
  display: flex;
  background: #0d0f1a;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.ro-fb-item {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ro-fb-item:last-child { border-right: none; }
.ro-fb-label { font-weight: 700; color: rgba(255,255,255,0.7); font-size: 0.75rem; }

/* Dataset scale stats (Panel 1) */
.ro-ds-scale {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.6rem;
}
.ro-ds-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(30,144,255,0.07);
  border-radius: 5px;
  padding: 0.35rem 0.25rem;
}
.ro-ds-val {
  font-size: 1rem;
  font-weight: 700;
  color: #7fb3ff;
  line-height: 1;
}
.ro-ds-stat > span:last-child {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* Form Over Time (Panel 2) */
.ro-eval-full { grid-column: 1 / -1; }
.ro-form-chart {
  width: 100%;
  height: 55px;
  display: block;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Caption text-only row (Panel 3) */
.ro-cap-text-only {
  background: rgba(168,85,247,0.06);
  border-color: rgba(168,85,247,0.15);
}
.ro-cap-icon {
  font-size: 1.6rem;
  width: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ro-cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Multi-sport stats (Panel 4) */
.ro-multi-stats {
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 0.6rem;
}
.ro-mstat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(245,158,11,0.07);
  border-radius: 5px;
  padding: 0.35rem 0.25rem;
}
.ro-mstat-val {
  font-size: 1rem;
  font-weight: 700;
  color: #fcd34d;
  line-height: 1;
}
.ro-mstat > span:last-child {
  font-size: 0.58rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .ro-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .ro-hub { grid-column: 1; grid-row: auto; }
  .ro-p1, .ro-p2, .ro-p3, .ro-p4 { grid-column: 1; grid-row: auto; }
  .ro-footer-bar { flex-direction: column; }
  .ro-fb-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
}

/* =====================================================
   RESEARCH OVERVIEW — panel hover popup
   ===================================================== */
.ro-panel {
  cursor: default;
  transition: outline 0.15s ease;
  outline: 1.5px solid transparent;
}
.ro-panel:hover { outline-color: rgba(30,144,255,0.35); }

.ro-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.ro-popup-box {
  pointer-events: none;
  background: #0c0e1c;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  box-shadow: 0 32px 96px rgba(0,0,0,0.92), 0 0 0 1px rgba(30,144,255,0.12),
              inset 0 1px 0 rgba(255,255,255,0.05);
  max-height: 82vh;
  overflow-y: auto;
  color: #cdd6f4;
  font-family: var(--font);
  transform: scale(0.88) translateY(16px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34,1.4,0.64,1), opacity 0.2s ease;
}
.ro-popup-overlay.ro-popup-show .ro-popup-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}
/* zoom scales every child element proportionally — no per-element overrides needed */
.ro-popup-inner {
  zoom: 1.65;
  padding: 1.5rem 1.75rem;
}

/* =====================================================
   FEATURED RESEARCH
   ===================================================== */
.feat-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.feat-video-wrap {
  flex-shrink: 0;
  width: 420px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.feat-video {
  width: 100%;
  display: block;
}
.feat-info { flex: 1; min-width: 0; }
.feat-chips {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.feat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.45;
  margin-bottom: 0.9rem;
}
.feat-desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}
.feat-authors {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 1.1rem;
  opacity: 0.75;
}
.feat-btns { display: flex; gap: 0.5rem; }

@media (max-width: 860px) {
  .feat-card { flex-direction: column; }
  .feat-video-wrap { width: 100%; }
}

/* =====================================================
   LAB PAGE
   ===================================================== */
.lab-affil {
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 2rem;
}
.lab-overview {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: center;
}
.lab-section-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.lab-members {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.lab-member {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.lab-member-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold-dim);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  overflow: hidden;
}
.lab-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lab-member-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.lab-member-kanji {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--muted);
  margin-left: 0.5rem;
}
.lab-member-role {
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.lab-member-bio {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}
.lab-collab-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.lab-collab-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.lab-collab-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}
.lab-collab-abbr {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.9rem;
}
.lab-collab-pi {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.1rem;
}
.lab-collab-affil {
  font-size: 0.85rem;
  color: var(--muted);
}
.lab-collab-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}
.lab-collab-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.lab-collab-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  align-self: flex-start;
}
.lab-collab-link:hover { text-decoration: underline; }

.lab-join {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.lab-join p {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
}

/* =====================================================
   COLLABORATE / CONTACT PAGE
   ===================================================== */
.contact-intro {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.contact-collabs { margin-bottom: 3rem; }
.contact-collabs-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.contact-card-icon { font-size: 1.8rem; line-height: 1; }
.contact-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 1px;
}
.contact-card-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}
.contact-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.contact-card-list li {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 1.1rem;
  position: relative;
}
.contact-card-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 5px;
}
.contact-cta { margin-top: 0.5rem; align-self: flex-start; }

.contact-direct {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.contact-direct-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.contact-direct-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-direct-item {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  font-size: 0.97rem;
}
.contact-direct-label {
  flex-shrink: 0;
  min-width: 100px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-direct-item a { color: var(--blue); }

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

/* =====================================================
   DISCLAIMER
   ===================================================== */
.disclaimer-box {
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}
.disclaimer-box strong { color: var(--text); }
.disclaimer-box a { color: var(--blue); }

/* =====================================================
   GALLERY
   ===================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-white);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.07);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  cursor: default;
}
.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.gallery-item figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: rgba(201,169,110,0.12);
  color: var(--gold);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* =====================================================
   HERO IMAGE POPUP
   ===================================================== */
.hero-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.hero-popup.open { display: flex; }

.hero-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.hero-popup-img {
  position: relative;
  z-index: 1;
  max-width: 70vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  cursor: zoom-out;
  animation: popup-in 0.28s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes popup-in {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  background: var(--footer-bg);
  color: var(--muted);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1rem;
}
footer a { color: rgba(255,255,255,0.6); }
footer a:hover { color: white; }

/* =====================================================
   NAV CONTROLS — language switcher
   ===================================================== */
.nav-controls {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid var(--border);
}
.theme-toggle {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0.85rem auto 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  line-height: 1;
}
.theme-toggle:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: var(--gold-dim);
}
.lang-pills {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  font-family: var(--font);
  line-height: 1;
  white-space: nowrap;
}
.l-btn:hover {
  background: rgba(201,169,110,0.15);
  color: var(--gold-light);
}
.l-btn.active {
  background: rgba(201,169,110,0.2);
  color: var(--gold-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* =====================================================
   SECTION TITLES & ORNAMENTS
   ===================================================== */
.sec-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  text-align: center;
}
.sec-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.sec-ornament span {
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
  flex: none;
}
.sec-ornament span:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}
.sec-ornament i {
  color: var(--gold);
  font-style: normal;
  font-size: 0.9rem;
}
.section-alt { background: var(--bg-light); }

/* =====================================================
   HERO AVATAR
   ===================================================== */
.hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.avatar-ring {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,169,110,0.08);
  box-shadow: 0 0 24px rgba(201,169,110,0.2);
}
.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.avatar-core {
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  letter-spacing: 3px;
}
.avatar-deco-top,
.avatar-deco-bot {
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
  line-height: 1;
  user-select: none;
}
.avatar-deco-top { margin-bottom: 0.45rem; }
.avatar-deco-bot { margin-top:    0.45rem; }

/* =====================================================
   HERO EXTRA
   ===================================================== */
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 0.4rem;
  line-height: 1.15;
  color: var(--gold-light);
}
.hero-kanji {
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--muted);
  margin-left: 0.75rem;
  letter-spacing: 2px;
}
.hero-role {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}
.about-header { margin-bottom: 1.25rem; }
.hero-pills {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.hero-bottom { position: relative; }
.hero-line {
  height: 1px;
  background: rgba(255,255,255,0.07);
}

/* =====================================================
   NEWS ITEMS
   ===================================================== */
.news-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
  border-left: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.news-item:hover {
  border-left-color: var(--gold);
  background: var(--gold-dim);
}
.news-item:last-child { border-bottom: none; }
.news-item p { font-size: 1.05rem; }

/* =====================================================
   RESEARCH GRID
   ===================================================== */
.res-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* =====================================================
   PUBLICATION CHIPS & LAYOUT
   ===================================================== */
.pub-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.73rem;
  font-weight: 600;
}
.chip-blue  { background: var(--blue-light); color: var(--blue); }
.chip-gray  { background: rgba(0,0,0,0.07); color: var(--muted); }
.chip-green { background: rgba(22,163,74,0.12); color: #16a34a; }
[data-theme="dark"] .chip-green { color: #4ade80; }

.pub-thumb {
  width: 200px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-thumb-icon { font-size: 2.5rem; }
.pub-info { flex: 1; min-width: 0; }
.pub-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 860px) {
  .profile-body   { flex-direction: column; }
  .profile-photo-col { width: 130px; }
  .edu-list li    { grid-template-columns: 1fr; gap: 0.15rem; }
  .research-grid  { grid-template-columns: 1fr; }
  .res-grid       { grid-template-columns: 1fr; }
  .pub-card       { flex-direction: column; }
  .pub-thumbnail  { width: 100%; min-height: 160px; }
  .pub-thumbnail img { height: 160px; }
  .pub-thumb      { width: 100%; min-height: 120px; }
}

@media (max-width: 860px) {
  .main-layout    { display: block; }
  .navbar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .navbar.open    { transform: translateX(0); }
  .nav-toggle     { display: flex; }
  .hero-content   { flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
  .hero-name      { font-size: 2.2rem; }
  .hero-pills     { justify-content: center; }
  .hero-bio       { font-size: 0.95rem; }
  .contact-grid   { flex-direction: column; gap: 2rem; }
  .footer-inner   { flex-direction: column; text-align: center; }
  .sec-title      { font-size: 1.35rem; }
  .news-item      { flex-direction: column; gap: 0.2rem; }
  .about-layout   { grid-template-columns: 1fr; }
  .res-grid       { grid-template-columns: 1fr; }
  .pub-card       { flex-direction: column; }
  .pub-thumb      { width: 100%; min-height: 120px; }
}
