:root {
  --ink: #1b2522;
  --muted: #65706b;
  --paper: #f4f1ea;
  --paper-deep: #e8e4da;
  --paper-card: #fcfbfa;
  --accent: #c5533e;
  --accent-light: rgba(197, 83, 62, 0.08);
  --line: rgba(27, 37, 34, 0.16);
  --display: 'Shippori Mincho', serif;
  --sans: 'Manrope', sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.7; }
a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  width: 100%;
  padding: 28px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: 13px var(--mono);
  letter-spacing: -1px;
  font-weight: 500;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-sub {
  font: 9px var(--mono);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 48px;
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.main-nav a { position: relative; }
.main-nav a::after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  content: '';
  transition: width .3s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-index, .eyebrow, .section-number, .image-label, .profile-meta span, .contact-side {
  font: 10px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.header-index { color: var(--muted); }
.section-pad { padding-right: 9vw; padding-left: 9vw; }

/* Typography */
h1, h2, h3, blockquote { font-family: var(--display); font-weight: 500; }
h1 {
  margin: 30px 0 24px;
  font-size: clamp(3.2rem, 5.8vw, 6.2rem);
  line-height: 1.2;
  letter-spacing: -.05em;
}
h1 em { color: var(--accent); font-style: normal; }
h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.4vw, 4.6rem);
  line-height: 1.25;
  letter-spacing: -.05em;
}
h2 span { color: var(--accent); }

/* Eyebrows & Section Headings */
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.eyebrow-line { display: inline-block; width: 34px; height: 1px; background: var(--accent); }
.section-heading { display: flex; align-items: center; gap: 24px; margin-bottom: 56px; }
.section-heading .eyebrow { margin: 0; }
.section-number { color: var(--accent); }
.section-description {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 5vw;
  min-height: 860px;
  padding-top: 170px;
  padding-bottom: 110px;
  overflow: hidden;
  align-items: center;
}
.hero-copy { padding-left: 2vw; padding-bottom: 20px; }
.hero-lede {
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 16px;
  line-height: 2;
}
.hero-actions {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}
.text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  font: 11px var(--mono);
  letter-spacing: .05em;
  transition: color .3s ease, border-color .3s ease;
}
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link span { color: var(--accent); font-size: 16px; transition: transform .3s ease; }
.text-link:hover span { transform: translateX(3px); }
.text-link.secondary {
  border-bottom-color: transparent;
  color: var(--muted);
}
.text-link.secondary:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

.hero-visual { position: relative; width: 100%; max-width: 600px; margin-left: auto; }
.vertical-note {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: -36px;
  color: var(--muted);
  writing-mode: vertical-rl;
  font: 9px var(--mono);
  letter-spacing: .2em;
}
.hero-main-card {
  position: relative;
  box-shadow: 0 24px 60px rgba(27, 37, 34, 0.15);
  background: var(--ink);
  border-radius: 2px;
  overflow: hidden;
}
.hero-image-card {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}
.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.88);
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.hero-image-card:hover img { transform: scale(1.05); }
.hero-image-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 22, 20, .6));
  content: '';
  pointer-events: none;
}
.hero-sub-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--paper-card);
  border-top: 1px solid var(--line);
  font: 10px var(--mono);
}
.badge-title { color: var(--ink); font-weight: 500; letter-spacing: .08em; }
.badge-desc { color: var(--muted); }
.hero-stamp {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: -28px;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid var(--accent);
  background: var(--paper);
  border-radius: 50%;
  color: var(--accent);
  font: 16px var(--display);
  line-height: .9;
  text-align: center;
  transform: rotate(-12deg);
  box-shadow: 0 8px 24px rgba(27, 37, 34, 0.08);
}
.hero-stamp span { font: 8px var(--mono); letter-spacing: .08em; }

/* 01: About / Intro */
.intro { padding-top: 130px; padding-bottom: 140px; background: var(--paper-deep); }
.intro-grid { display: grid; grid-template-columns: .95fr 1fr; gap: 10vw; align-items: start; }
.intro-left { display: flex; flex-direction: column; }
.intro-highlight-box {
  margin-top: 40px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 2px solid var(--accent);
  border-radius: 0 2px 2px 0;
}
.highlight-tag {
  display: inline-block;
  color: var(--accent);
  font: 10px var(--mono);
  letter-spacing: .15em;
  margin-bottom: 8px;
}
.intro-highlight-box p {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.8;
}
.intro-body { max-width: 500px; }
.intro-body p { color: var(--muted); font-size: 14px; line-height: 2.1; margin-bottom: 20px; }
.intro-body .lead-copy { color: var(--ink); font-family: var(--display); font-size: 18px; line-height: 1.9; }
.profile-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.profile-meta span { display: block; margin-bottom: 8px; color: var(--muted); }
.profile-meta strong { font-size: 12px; font-weight: 600; color: var(--ink); }

/* 02: Research Section */
.research-section { padding-top: 130px; padding-bottom: 140px; }
.research-overview { margin-bottom: 60px; }
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.research-card {
  display: flex;
  flex-direction: column;
  padding: 44px 40px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(27, 37, 34, 0.04);
  transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(27, 37, 34, 0.09);
  border-color: rgba(197, 83, 62, 0.4);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.group-tag {
  font: 11px var(--mono);
  color: var(--accent);
  letter-spacing: .12em;
}
.location-badge {
  font: 10px var(--mono);
  padding: 3px 10px;
  background: var(--paper-deep);
  color: var(--muted);
  border-radius: 12px;
}
.research-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  line-height: 1.3;
}
.group-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font: 11px var(--mono);
  letter-spacing: .06em;
}
.group-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin-bottom: 28px;
}
.research-topics {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  border-top: 1px solid var(--line);
}
.research-topics li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.research-topics li strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.research-topics li span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.card-footer-box {
  margin-top: auto;
  padding: 16px 20px;
  background: var(--paper-deep);
  border-radius: 2px;
}
.footer-label {
  display: block;
  font: 9px var(--mono);
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: 4px;
}
.card-footer-box p {
  margin: 0;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.7;
}

/* Facility & Collab Strip */
.facility-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 48px;
  padding: 36px 40px;
  background: var(--paper-deep);
  border-left: 3px solid var(--accent);
}
.strip-label {
  display: block;
  font: 10px var(--mono);
  color: var(--accent);
  letter-spacing: .15em;
  margin-bottom: 10px;
}
.facility-col h4 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}
.facility-col p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* 03: Members Section */
.members-section {
  padding-top: 130px;
  padding-bottom: 140px;
  background: var(--paper-deep);
}
.members-header { margin-bottom: 50px; }
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.faculty-card {
  padding: 32px 26px;
  background: var(--paper-card);
  border-top: 2px solid var(--accent);
  box-shadow: 0 8px 24px rgba(27, 37, 34, 0.05);
  display: flex;
  flex-direction: column;
}
.faculty-role {
  font: 10px var(--mono);
  color: var(--accent);
  letter-spacing: .12em;
  margin-bottom: 12px;
}
.faculty-card h3 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -.02em;
}
.faculty-en {
  margin: 0 0 20px;
  color: var(--muted);
  font: 11px var(--mono);
}
.faculty-info {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faculty-info div { display: flex; justify-content: space-between; gap: 8px; }
.faculty-info span { color: var(--muted); font: 10px var(--mono); }
.faculty-info strong { font-size: 11px; font-weight: 500; text-align: right; }

/* Students Block */
.students-block {
  margin-top: 40px;
  padding: 40px;
  background: var(--paper-card);
  border: 1px solid var(--line);
}
.students-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.category-title {
  display: block;
  font: 10px var(--mono);
  color: var(--accent);
  letter-spacing: .14em;
  margin-bottom: 8px;
}
.students-col h4 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
}
.student-grade {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.grade-label {
  display: inline-block;
  font: 10px var(--mono);
  color: var(--muted);
  margin-bottom: 6px;
}
.student-grade p {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.8;
}
.student-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

/* 04: Events Section */
.events-section { padding-top: 130px; padding-bottom: 140px; }
.events-header { margin-bottom: 60px; }
.calendar-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.calendar-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: color .3s ease;
}
.calendar-item:hover { color: var(--accent); }
.calendar-month {
  font: 12px var(--mono);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .08em;
}
.calendar-content h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: var(--display);
}
.calendar-content p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Quote Section */
.quote-section {
  display: grid;
  place-items: center;
  min-height: 480px;
  padding-top: 100px;
  padding-bottom: 100px;
  color: var(--paper);
  background: var(--ink);
  text-align: center;
}
.quote-mark { height: 20px; color: var(--accent); font: 70px var(--display); line-height: .5; }
blockquote {
  margin: 24px 0 18px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.25;
  letter-spacing: -.03em;
}
.quote-section p { color: #9ba39f; font: 10px var(--mono); letter-spacing: .12em; }

/* 05: Access & Contact */
.contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 560px;
  padding-top: 120px;
  padding-bottom: 100px;
}
.contact-inner { max-width: 800px; }
.contact-inner h2 { margin-top: 20px; margin-bottom: 40px; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.access-details {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  margin-top: 40px;
}
.access-card h4, .access-links h4 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: 18px;
}
.access-card .postal {
  margin: 0 0 6px;
  font: 12px var(--mono);
  color: var(--muted);
}
.access-card .desc {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.8;
}
.divider-line {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.link-list li {
  margin-bottom: 14px;
}
.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color .3s ease, border-color .3s ease;
}
.link-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.link-list a span {
  color: var(--accent);
  font-size: 14px;
}
.contact-side {
  color: var(--muted);
  line-height: 1.8;
  text-align: right;
  padding-top: 40px;
}
.contact-side span { color: var(--accent); }

/* Site Footer */
.site-footer {
  padding: 28px 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--ink); }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: .15s; }
.delay-2 { transition-delay: .3s; }

/* Responsive */
@media (max-width: 1024px) {
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .calendar-timeline { grid-template-columns: 1fr; }
  .access-details { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header { padding: 20px 6vw; }
  .main-nav { display: none; }
  .header-index { margin-left: auto; }
  .section-pad { padding-right: 6vw; padding-left: 6vw; }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
  }
  .hero-copy { padding: 0 0 50px; }
  h1 { font-size: clamp(2.8rem, 11vw, 4.5rem); }
  .hero-visual { max-width: 100%; margin-top: 30px; }
  .hero-image-card { height: 320px; }
  .vertical-note { display: none; }
  .hero-stamp { left: -10px; bottom: 10px; transform: scale(.8) rotate(-12deg); }

  .intro { padding-top: 80px; padding-bottom: 90px; }
  .intro-grid { display: block; }
  .intro-body { margin-top: 40px; }
  .profile-meta { grid-template-columns: 1fr; gap: 12px; }

  .research-section { padding-top: 80px; padding-bottom: 90px; }
  .research-grid { grid-template-columns: 1fr; }
  .facility-strip { grid-template-columns: 1fr; padding: 24px; gap: 24px; }

  .members-section { padding-top: 80px; padding-bottom: 90px; }
  .faculty-grid { grid-template-columns: 1fr; }
  .students-inner { grid-template-columns: 1fr; gap: 30px; }
  .students-block { padding: 24px; }

  .events-section { padding-top: 80px; padding-bottom: 90px; }
  .calendar-item { grid-template-columns: 75px 1fr; }

  .quote-section { min-height: 360px; }

  .contact {
    display: block;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .contact-side { margin-top: 50px; text-align: left; }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
