:root {
  --bg: #d4cabd;
  --bg-soft: #e1d6c7;
  --bg-panel: rgba(228, 219, 205, 0.42);
  --bg-deep: #131313;
  --text: #1e1a17;
  --text-inverse: #ece7de;
  --muted: #6d645d;
  --line: rgba(52, 42, 34, 0.18);
  --line-inverse: rgba(236, 231, 222, 0.15);
  --accent: #8a6a47;
  --accent-hermes-soft: #f28c28;
  --accent-hermes-mid: #f28c28;
  --accent-hermes-deep: #e07f20;
  --accent-hermes-ground: #c96712;
  --accent-clay: #b16d56;
  --accent-verdigris: #7b9588;
  --accent-slate: #73859b;
  --accent-soft: rgba(138, 106, 71, 0.18);
  --shadow: 0 24px 50px rgba(33, 24, 16, 0.12);
  --header-height: 38px;
  --container: 720px;
  --pad: clamp(10px, 1.28vw, 16px);
  --radius: 18px;
  --ease: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Noto Serif JP", "Source Serif 4", serif;
  --font-display: "Noto Serif JP", "Source Serif 4", serif;
  --font-sans: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 80%;
}

@media (min-width: 921px) {
  html {
    font-size: 70%;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 251, 245, 0.86), transparent 22%),
    radial-gradient(circle at 90% 14%, rgba(234, 219, 201, 0.62), transparent 24%),
    radial-gradient(circle at 42% 82%, rgba(115, 93, 70, 0.18), transparent 34%),
    radial-gradient(circle at 64% 38%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(126deg, rgba(255, 255, 255, 0.34), transparent 32%),
    repeating-linear-gradient(126deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 16px),
    linear-gradient(180deg, #dfd5c8 0%, #d2c5b5 44%, #c7b9a7 100%);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.75;
  overflow-x: hidden;
}

main .section:not(.hero) :is(
  .section-title,
  .section-intro,
  .section-role,
  .statement-card-title,
  .statement-card-body,
  .profile-card-body,
  .metric-value,
  .metric-label,
  .metrics-note,
  .books-stage-year,
  .books-stage-title,
  .books-stage-meta,
  .books-stage-link,
  .book-spine-year,
  .book-spine-title,
  .book-spine-publisher,
  .paper-year,
  .paper-title,
  .paper-authors,
  .paper-venue,
  .paper-abstract-body,
  .paper-link,
  .materials-preview-title,
  .materials-preview-venue,
  .materials-preview-date,
  .material-item-year,
  .talk-card-year,
  .talk-card-site,
  .talk-card-title,
  .talk-card-venue,
  .talks-caption,
  .media-card-year,
  .media-card-title,
  .media-card-outlet,
  .contact-headline,
  .contact-copy,
  .contact-affiliation,
  .contact-link,
  .contact-object-caption,
  .footer-copy,
  .footer-note
) {
  zoom: 0.9;
}

.site-scale {
  position: relative;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-texture,
.site-grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
}

.site-texture {
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.4), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.2), transparent 20%),
    radial-gradient(circle at 72% 74%, rgba(98, 82, 61, 0.24), transparent 28%),
    radial-gradient(circle at 22% 82%, rgba(177, 109, 86, 0.16), transparent 22%),
    radial-gradient(circle at 78% 56%, rgba(123, 149, 136, 0.12), transparent 22%),
    linear-gradient(108deg, rgba(87, 75, 58, 0.12), transparent 28%, rgba(255, 255, 255, 0.05) 68%, transparent 100%),
    repeating-linear-gradient(90deg, rgba(82, 63, 44, 0.035) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 20px);
}

.site-texture::before,
.site-texture::after {
  content: "";
  position: absolute;
  inset: -8%;
  filter: blur(28px);
  opacity: 0.56;
  animation: ambientFloat 28s ease-in-out infinite alternate;
}

.site-texture::before {
  background:
    radial-gradient(circle at 18% 26%, rgba(177, 109, 86, 0.18), transparent 22%),
    radial-gradient(circle at 74% 28%, rgba(123, 149, 136, 0.16), transparent 24%);
}

.site-texture::after {
  background:
    radial-gradient(circle at 72% 72%, rgba(138, 106, 71, 0.2), transparent 22%),
    radial-gradient(circle at 28% 68%, rgba(115, 133, 155, 0.14), transparent 24%);
  animation-duration: 36s;
  animation-direction: alternate-reverse;
}

.site-grain {
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.08' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

@keyframes ambientFloat {
  0% {
    transform: translate3d(-1.5%, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, -3%, 0) scale(1.05);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px var(--pad);
  transition: background-color var(--ease), backdrop-filter var(--ease), border-color var(--ease), transform var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background:
    linear-gradient(180deg, rgba(235, 226, 214, 0.92), rgba(219, 208, 193, 0.88)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 18px);
  backdrop-filter: blur(18px);
  border-color: rgba(72, 61, 50, 0.08);
}

.site-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(40, 32, 25, 0.16);
  border-radius: 50%;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(224, 214, 200, 0.76);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 1px;
  border-radius: 999px;
  border: 1px solid rgba(40, 32, 25, 0.14);
  background: rgba(255, 255, 255, 0.22);
}

.lang-button,
.menu-button,
.contact-button,
.menu-close,
.paper-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.lang-button {
  min-width: 26px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.16em;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  background: transparent;
}

.lang-button.is-active {
  background: var(--accent-hermes-mid);
  color: var(--text);
}

.menu-button,
.contact-button,
.menu-close {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid rgba(40, 32, 25, 0.14);
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-button {
  background: rgba(255, 255, 255, 0.22);
  color: inherit;
  border-color: rgba(40, 32, 25, 0.14);
}

.contact-button {
  background: var(--accent-hermes-mid);
  color: var(--text);
  border-color: rgba(40, 32, 25, 0.14);
}

.menu-close {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(236, 231, 222, 0.12);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  width: min(880px, calc(100vw - 34px));
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(236, 231, 222, 0.08);
  border-radius: 28px;
  color: var(--text-inverse);
  background:
    radial-gradient(circle at top left, rgba(147, 112, 74, 0.14), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.03), transparent 20%),
    linear-gradient(180deg, rgba(32, 29, 27, 0.96), rgba(18, 17, 16, 0.92)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 24px);
  transform: translateY(28px) scale(0.98);
  transition: transform var(--ease);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.menu-overlay.is-open .menu-panel {
  transform: translateY(0) scale(1);
}

.menu-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.menu-caption {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(236, 231, 222, 0.65);
}

.menu-nav {
  display: grid;
  gap: 14px;
}

.menu-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(236, 231, 222, 0.1);
  text-decoration: none;
}

.menu-link-label {
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  line-height: 1.1;
}

.menu-link-meta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 231, 222, 0.44);
}

main {
  padding-top: calc(var(--header-height) - 10px);
}

.section {
  position: relative;
  isolation: isolate;
}

.section-shell {
  width: min(var(--container), calc(100vw - var(--pad) * 2));
  margin: 0 auto;
}

.section-light {
  background:
    linear-gradient(180deg, rgba(251, 246, 239, 0.88), rgba(232, 219, 204, 0.8) 54%, rgba(240, 230, 218, 0.76) 100%),
    radial-gradient(circle at 8% 14%, rgba(255, 255, 255, 0.62), transparent 20%),
    radial-gradient(circle at 90% 18%, rgba(182, 130, 80, 0.24), transparent 18%),
    radial-gradient(circle at 42% 92%, rgba(100, 88, 72, 0.12), transparent 24%),
    linear-gradient(90deg, rgba(98, 78, 58, 0.08), transparent 10%, transparent 90%, rgba(98, 78, 58, 0.09)),
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 14px),
    rgba(244, 236, 226, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(86, 65, 47, 0.12);
}

.section-dark {
  color: var(--text-inverse);
  background:
    radial-gradient(circle at 84% 12%, rgba(161, 116, 72, 0.24), transparent 20%),
    radial-gradient(circle at 12% 86%, rgba(102, 120, 111, 0.15), transparent 20%),
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.07), transparent 20%),
    linear-gradient(180deg, rgba(44, 38, 34, 0.98), rgba(20, 18, 17, 0.99) 52%, rgba(10, 10, 10, 0.99) 100%),
    repeating-linear-gradient(122deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 16px),
    var(--bg-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -140px 160px rgba(0, 0, 0, 0.28);
}

.section-light::before,
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section-light::before {
  background:
    radial-gradient(circle at 30% 8%, rgba(255, 255, 255, 0.28), transparent 22%),
    linear-gradient(90deg, rgba(90, 68, 49, 0.07), transparent 14%, transparent 86%, rgba(90, 68, 49, 0.08)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 18px);
  opacity: 1;
}

.section-dark::before {
  background:
    radial-gradient(circle at 50% 108%, rgba(0, 0, 0, 0.42), transparent 36%),
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.06), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 20px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 24px);
  opacity: 1;
}

.section-light::after,
.section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.section-light::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.36'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.16;
}

.section-dark::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  opacity: 0.09;
}

.section-light > *,
.section-dark > * {
  position: relative;
  z-index: 1;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(24px, 3.6vw, 40px);
}

.section-kicker,
.eyebrow,
.metric-label,
.book-meta,
.contact-link,
.footnote {
  font-family: var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--accent-hermes-soft);
}

.section-light .section-kicker,
.section-light .eyebrow {
  color: var(--accent-hermes-ground);
}

.section-kicker::before,
.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.section-light .section-kicker::before,
.section-light .eyebrow::before {
  opacity: 0.72;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 3.2vw, 2.69rem);
  font-weight: 400;
  line-height: 0.98;
}

.section-intro {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.08vw, 1rem);
}

.section-role {
  max-width: 840px;
  margin: 0;
  color: rgba(39, 31, 24, 0.92);
  font-size: clamp(1rem, 1.24vw, 1.16rem);
  line-height: 1.58;
  letter-spacing: -0.012em;
}

.section-dark .section-role {
  color: rgba(244, 239, 230, 0.9);
}

.section-dark .section-intro {
  color: rgba(236, 231, 222, 0.72);
}

.hero {
  min-height: auto;
  padding: clamp(12px, 2.4vw, 24px) 0 16px;
}

.hero-shell {
  position: relative;
  display: grid;
  gap: 0;
}

.hero-copy {
  position: absolute;
  left: clamp(14px, 2vw, 22px);
  right: auto;
  bottom: clamp(12px, 2vw, 18px);
  z-index: 3;
  width: var(--hero-copy-measure, 18rem);
  max-width: var(--hero-copy-measure, 18rem);
  padding-right: 0;
}

.hero-keywords {
  margin-bottom: 10px;
  max-width: 100%;
  gap: 9px;
  font-size: 0.58rem;
  line-height: 1.46;
  letter-spacing: 0.08em;
  text-wrap: pretty;
  white-space: nowrap;
  color: var(--accent-hermes-soft);
}

.hero-keywords::before {
  width: 16px;
}

.hero-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.82rem, 2.58vw, 2.72rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  color: var(--text-inverse);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.hero-role {
  margin: 12px 0 11px;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 231, 222, 0.82);
}

.hero-lead {
  max-width: 100%;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.26;
  text-wrap: pretty;
  color: rgba(236, 231, 222, 0.74);
}

.hero-media {
  position: relative;
  height: auto;
  aspect-ratio: 1.77;
  min-height: 280px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.12);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 14, 14, 0.76) 0%, rgba(14, 14, 14, 0.54) 28%, rgba(14, 14, 14, 0.16) 62%, rgba(14, 14, 14, 0.1) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.02), rgba(17, 17, 17, 0.34));
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.03);
  will-change: transform;
  z-index: 0;
  filter: grayscale(1) contrast(0.95) brightness(0.82);
}

.section-title,
.statement-card-title,
.hero-name,
.hero-lead,
.book-title,
.books-stage-title,
.material-title,
.materials-preview-title,
.talk-card-title,
.paper-title,
.media-card-title,
.contact-headline,
.contact-copy {
  word-break: normal;
  overflow-wrap: normal;
  line-break: strict;
}

.section-title,
.books-stage-title,
.material-title,
.materials-preview-title,
.talk-card-title,
.media-card-title,
.contact-headline {
  text-wrap: pretty;
}

.hero-lead,
.book-title,
.contact-copy {
  text-wrap: pretty;
}

:lang(ja) .hero-name {
  white-space: nowrap;
  text-wrap: nowrap;
}

:lang(ja) .hero-copy {
  --hero-copy-measure: none;
  right: clamp(18px, 3vw, 28px);
  width: auto;
  max-width: none;
}

:lang(ja) .section-title {
  font-size: clamp(1.25rem, 2.6vw, 2.18rem);
  line-height: 1.02;
}

:lang(ja) .section-intro,
:lang(ja) .section-role {
  font-size: 0.94rem;
  line-height: 1.72;
}

:lang(ja) .hero-lead {
  line-height: 1.34;
  color: rgba(236, 231, 222, 0.7);
}

:lang(ja) .statement-card-title {
  font-size: 0.88rem;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: normal;
}

:lang(ja) .statement-card-body {
  font-size: 0.9rem;
  line-height: 1.9;
}

:lang(ja) .hero-keywords::before {
  width: 16px;
}

:lang(en) .hero-name {
  max-width: 11.5ch;
  text-wrap: pretty;
}

:lang(en) .hero-copy {
  --hero-copy-measure: 24rem;
}

:lang(en) .hero-keywords {
  white-space: nowrap;
}

.statement {
  padding: clamp(34px, 4.6vw, 60px) 0;
}

.statement-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.46fr);
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
}

.statement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.statement-card {
  padding: 18px 18px 20px;
  border-top: 1px solid rgba(236, 231, 222, 0.18);
  background: rgba(255, 255, 255, 0.02);
  min-height: 180px;
}

.statement-card-title {
  margin: 0 0 10px;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.45;
}

.statement-card-body {
  margin: 0;
  color: rgba(236, 231, 222, 0.78);
  font-size: 0.94rem;
  line-height: 1.8;
}

.profile {
  padding: clamp(34px, 4.6vw, 60px) 0;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(22px, 3.8vw, 54px);
  align-items: start;
}

.profile-figure {
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.profile-figure-inner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.14));
  box-shadow: var(--shadow);
}

.profile-figure-inner::after {
  content: "";
  position: absolute;
  inset: auto 16px 16px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  opacity: 0.8;
}

.profile-image {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
}

.profile-grid {
  display: grid;
  gap: 12px;
}

.profile .section-head {
  gap: 10px;
  margin-bottom: clamp(8px, 1.4vw, 14px);
}

.profile-card {
  padding: 14px 18px 15px;
  border-radius: 24px;
  border: 1px solid rgba(60, 48, 38, 0.08);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 12px 24px rgba(63, 48, 32, 0.06);
}

.profile-card-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.76rem;
}

.profile-card-body {
  margin: 0;
}

.metrics-wrap {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  padding: 18px 18px 16px;
  border-top: 1px solid var(--line);
}

.metric-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.1vw, 2.7rem);
  line-height: 0.9;
}

.metric-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.metrics-note {
  margin: 0;
  color: var(--accent-hermes-ground);
  font-family: var(--font-sans);
  font-size: 0.97rem;
  letter-spacing: 0.08em;
  text-align: right;
}

.books {
  padding: clamp(36px, 4.8vw, 62px) 0 clamp(38px, 4.9vw, 64px);
}

.books-layout {
  display: grid;
  gap: clamp(20px, 3vw, 30px);
}

.books .section-head,
.papers .section-head,
.projects .section-head,
.talks-materials-head {
  max-width: none;
}

.books .section-role,
.books .section-intro,
.papers .section-role,
.papers .section-intro,
.projects .section-role,
.projects .section-intro,
.talks-materials-head .section-intro {
  max-width: none;
}

.books-stage {
  display: grid;
  grid-template-columns: minmax(240px, 0.64fr) minmax(0, 1.36fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: center;
}

.books-stage-frame {
  position: relative;
  min-height: clamp(224px, 24.8vw, 312px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(236, 231, 222, 0.1);
  background:
    radial-gradient(circle at 18% 22%, var(--stage-glow, rgba(138, 106, 71, 0.22)), transparent 32%),
    linear-gradient(146deg, var(--stage-top, rgba(138, 106, 71, 0.2)), transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(123, 149, 136, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), var(--stage-bottom, rgba(255, 255, 255, 0.01))),
    rgba(15, 15, 15, 0.48);
  box-shadow: 0 30px 56px rgba(0, 0, 0, 0.2);
}

.books-stage-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 26% 34%, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 22%, rgba(0, 0, 0, 0.14) 100%);
  pointer-events: none;
}

.books-stage-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.16)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 24%, rgba(0, 0, 0, 0.06) 100%);
  pointer-events: none;
}

.books-stage-book {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: inherit;
}

.books-stage-surface {
  position: relative;
  z-index: 1;
  --stage-spine-ratio: 0.068;
  --stage-page-ratio: 0.052;
  width: min(66%, 250px);
  aspect-ratio: var(--stage-book-aspect, 0.71);
  transform: translate3d(0, var(--stage-drift, 0px), 0) perspective(2600px) rotateY(-3deg) rotateZ(-0.2deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.books-stage-surface[data-book-format="large"] {
  --stage-spine-ratio: 0.062;
  --stage-page-ratio: 0.048;
  width: min(70%, 275px);
}

.books-stage-surface[data-book-format="regular"] {
  --stage-spine-ratio: 0.066;
  --stage-page-ratio: 0.05;
  width: min(68%, 261px);
}

.books-stage-surface[data-book-format="shinsho"] {
  --stage-spine-ratio: 0.056;
  --stage-page-ratio: 0.044;
  width: min(56%, 200px);
}

.books-stage-surface[data-book-format="bunko"] {
  --stage-spine-ratio: 0.054;
  --stage-page-ratio: 0.042;
  width: min(50%, 179px);
}

.books-stage-surface[data-book-format="magazine"] {
  --stage-spine-ratio: 0.046;
  --stage-page-ratio: 0.038;
  width: min(60%, 219px);
}

.books-stage-book-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.08)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 18%),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 28px 52px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.books-stage-book-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.2), transparent 15%, transparent 72%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(180deg, transparent 74%, rgba(0, 0, 0, 0.12) 100%);
  pointer-events: none;
}

.books-stage-book-spine,
.books-stage-book-pages {
  position: absolute;
  top: 6px;
  bottom: 6px;
}

.books-stage-book-spine {
  display: none;
}

.books-stage-book-pages {
  right: calc(-1 * (100% * var(--stage-page-ratio, 0.105)));
  width: calc(100% * var(--stage-page-ratio, 0.105));
  border-radius: 0 4px 4px 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(241, 235, 226, 0.98) 0 3px,
      rgba(225, 217, 205, 0.98) 3px 6px
    );
  box-shadow:
    inset 0 0 0 1px rgba(78, 58, 41, 0.08),
    0 0 10px rgba(0, 0, 0, 0.1);
  transform: skewY(3deg) translateX(1px);
  transform-origin: left top;
}

.books-stage-image,
.books-stage-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
}

.books-stage-image {
  object-fit: cover;
  display: block;
  background: rgba(17, 17, 17, 0.12);
}

.books-stage-fallback {
  display: grid;
  place-items: end start;
  padding: 26px;
  background:
    linear-gradient(180deg, var(--stage-top, rgba(138, 106, 71, 0.52)), var(--stage-bottom, rgba(138, 106, 71, 0.18))),
    rgba(255, 255, 255, 0.06);
}

.books-stage-fallback span {
  font-size: clamp(1.12rem, 1.8vw, 1.44rem);
  line-height: 1.35;
}

.books-stage-book:hover .books-stage-surface,
.books-stage-book:focus-visible .books-stage-surface {
  transform: translate3d(0, var(--stage-drift, 0px), 0) perspective(2600px) rotateY(-1.5deg) rotateZ(0deg);
}

.books-stage-image.is-hidden,
.books-stage-fallback.is-hidden {
  display: none;
}

.books-stage-copy {
  display: grid;
  gap: 12px;
  align-content: center;
  min-width: 0;
  padding-left: clamp(6px, 0.9vw, 12px);
}

.books-stage-label {
  color: var(--accent-hermes-soft);
}

.books-stage-year {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.12vw, 2.76rem);
  line-height: 0.9;
  color: var(--accent);
}

.books-stage-title {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: clamp(0.93rem, 1.46vw, 1.54rem);
  line-height: 1.16;
  justify-self: stretch;
}

.books-stage-title--single {
  max-width: none;
  line-height: 1.12;
  white-space: nowrap;
  text-wrap: nowrap;
}

.books-stage-title--multiline {
  max-width: none;
  line-height: 1.1;
  white-space: nowrap;
  text-wrap: nowrap;
}

.books-stage-title--balance {
  max-width: none;
  text-wrap: balance;
}

.books-stage-title--stacked-compact {
  max-width: none;
  font-size: clamp(0.9rem, 1.34vw, 1.41rem);
  line-height: 1.14;
  white-space: nowrap;
  text-wrap: nowrap;
}

html[lang="en"] .books-stage-title {
  line-height: 1.12;
}

html[lang="en"] .books-stage-title--multiline,
html[lang="en"] .books-stage-title--balance {
  text-wrap: pretty;
}

html[lang="en"] .books-stage-title--single {
  letter-spacing: -0.015em;
}

.books-stage-meta {
  margin: 0;
  color: rgba(236, 231, 222, 0.68);
  font-size: 1rem;
}

.books-stage-link {
  width: max-content;
  margin-top: 14px;
}

.bookshelf {
  display: grid;
  gap: 18px;
}

.bookshelf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.bookshelf-label {
  color: var(--accent-hermes-soft);
}

.bookshelf-controls {
  display: flex;
  gap: 10px;
}

.bookshelf-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(236, 231, 222, 0.16);
  background:
    linear-gradient(180deg, rgba(177, 109, 86, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
  color: rgba(236, 231, 222, 0.82);
  font: inherit;
  font-size: 1rem;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.bookshelf-button:hover,
.bookshelf-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(177, 109, 86, 0.34);
  background:
    linear-gradient(180deg, rgba(177, 109, 86, 0.16), rgba(123, 149, 136, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.18);
}

.bookshelf-mask {
  position: relative;
  padding: 27px 18px 20px;
  margin-top: -10px;
  border-radius: 28px;
  border: 1px solid rgba(236, 231, 222, 0.08);
  background:
    radial-gradient(circle at 15% 22%, rgba(177, 109, 86, 0.12), transparent 20%),
    radial-gradient(circle at 76% 20%, rgba(123, 149, 136, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.bookshelf-mask::before,
.bookshelf-mask::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}

.bookshelf-mask::before {
  top: 0;
  height: 45px;
  background:
    linear-gradient(180deg, rgba(19, 19, 19, 0.42), rgba(19, 19, 19, 0)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 58%);
}

.bookshelf-mask::after {
  bottom: 0;
  height: 17px;
  background:
    linear-gradient(90deg, rgba(95, 76, 56, 0.96), rgba(123, 149, 136, 0.18) 34%, rgba(177, 109, 86, 0.18) 72%, rgba(54, 41, 30, 0.98)),
    linear-gradient(180deg, rgba(95, 76, 56, 0.96), rgba(54, 41, 30, 0.98)),
    rgba(42, 31, 24, 0.92);
  box-shadow:
    0 -8px 18px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bookshelf-mask > * {
  position: relative;
  z-index: 1;
}

.bookshelf-track {
  display: flex;
  align-items: end;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.bookshelf-sequence {
  display: flex;
  gap: 10px;
  align-items: end;
  padding-right: 12px;
}

.book-spine {
  position: relative;
  --shelf-spine-aspect: 0.118;
  --shelf-spine-scale: 1.24;
  --spine-height: clamp(190px, 15.55vw, 229px);
  --spine-width: calc(var(--spine-height) * var(--shelf-spine-aspect) * var(--shelf-spine-scale));
  flex: 0 0 var(--spine-width);
  width: var(--spine-width);
  height: var(--spine-height);
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: stretch;
  transform: translate3d(0, 0, 0);
  transform-origin: center bottom;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.book-spine--large {
  --spine-height: clamp(202px, 16.7vw, 248px);
}

.book-spine--regular {
  --spine-height: clamp(192px, 15.55vw, 232px);
}

.book-spine--shinsho {
  --spine-height: clamp(167px, 13.82vw, 200px);
}

.book-spine--bunko {
  --spine-height: clamp(146px, 11.52vw, 171px);
}

.book-spine--magazine {
  --spine-height: clamp(176px, 14.11vw, 205px);
}

.book-spine-ink {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 12px 7px 14px;
  align-items: stretch;
  background: var(--spine-gradient, linear-gradient(180deg, var(--spine-top, rgba(215, 205, 188, 0.98)) 0%, var(--spine-bottom, rgba(183, 171, 154, 0.98)) 100%));
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  border-right: 1px solid var(--spine-edge, rgba(75, 59, 44, 0.22));
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px 4px 0 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 20px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.book-spine--image .book-spine-ink {
  display: block;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.08) 100%),
    var(--book-spine-image) center / 100% 100% no-repeat;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 18px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.book-spine-ink::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 10%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, var(--spine-band, var(--spine-solid, rgba(111, 78, 49, 0.92))), var(--spine-edge, rgba(22, 19, 17, 0.86)));
  opacity: 0.88;
}

.book-spine--image .book-spine-ink::after {
  display: none;
}

.book-spine-ink::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 8%, transparent 16%, transparent 84%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.book-spine--image .book-spine-ink::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 8%, transparent 18%, transparent 84%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%, rgba(0, 0, 0, 0.05) 100%);
}

.book-spine-ink > * {
  position: relative;
  z-index: 2;
}

.book-spine--image .book-spine-ink > * {
  display: none;
}

.book-spine-year,
.book-spine-publisher {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  line-height: 1.2;
  color: var(--spine-meta-color, rgba(38, 31, 25, 0.7));
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.book-spine-title {
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(0.84rem, 0.72rem + 0.18vw, 1rem);
  line-height: 1.02;
  color: var(--spine-title-color, rgba(20, 17, 15, 0.9));
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.book-spine:hover,
.book-spine:focus-visible,
.book-spine.is-hovered {
  transform: translate3d(0, -15px, 0);
}

.book-spine.is-active .book-spine-ink,
.book-spine:hover .book-spine-ink,
.book-spine:focus-visible .book-spine-ink {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 18px 20px rgba(0, 0, 0, 0.18);
}

.book-spine--image.is-active .book-spine-ink,
.book-spine--image:hover .book-spine-ink,
.book-spine--image:focus-visible .book-spine-ink {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 18px 22px rgba(0, 0, 0, 0.22);
}

.book-spine.is-active .book-spine-ink {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 18px 20px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.book-spine--image.is-active .book-spine-ink {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 18px 22px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

:lang(en) .book-spine-title {
  writing-mode: horizontal-tb;
  transform: rotate(90deg);
  transform-origin: center;
  white-space: nowrap;
  font-size: 0.76rem;
}

.papers {
  padding: clamp(38px, 5vw, 66px) 0;
}

.papers-header {
  display: grid;
  gap: 10px;
  align-items: start;
  margin-bottom: 18px;
}

.papers-header .section-head {
  min-width: 0;
}

.papers-header .inline-link {
  justify-self: end;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.paper-list {
  display: grid;
  gap: 0;
}

.paper-item {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
}

.paper-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 30px;
  gap: 18px;
  align-items: start;
  padding: 0 0 6px;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.paper-year {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--accent);
}

.paper-title {
  margin: 0 0 6px;
  font-size: 1.12rem;
  line-height: 1.45;
}

.paper-venue {
  color: var(--muted);
  font-size: 0.95rem;
}

.paper-toggle {
  font-size: 1rem;
  color: var(--muted);
  transition: transform 0.35s ease;
}

.paper-abstract {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.45s ease, opacity 0.4s ease, transform 0.4s ease, padding 0.4s ease;
  padding: 0 0 0 128px;
}

.paper-abstract-card {
  display: grid;
  gap: 14px;
  padding: 20px 22px 18px;
  border-radius: 22px;
  border: 1px solid rgba(58, 46, 36, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.2)),
    linear-gradient(135deg, rgba(123, 149, 136, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 26px rgba(63, 48, 32, 0.08);
}

.paper-abstract-label,
.paper-keywords-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.paper-abstract-label {
  color: var(--accent);
}

.paper-abstract-body {
  padding: 16px 18px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(123, 149, 136, 0.08), rgba(255, 255, 255, 0.52)),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(123, 149, 136, 0.12);
}

.paper-abstract-copy {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.9;
  color: rgba(30, 26, 23, 0.86);
  text-wrap: pretty;
}

.paper-keywords {
  display: grid;
  gap: 10px;
}

.paper-keywords-label {
  color: var(--muted);
}

.paper-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paper-keyword {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(138, 106, 71, 0.1);
  border: 1px solid rgba(138, 106, 71, 0.14);
  color: rgba(52, 43, 36, 0.84);
  font-family: var(--font-sans);
  font-size: 0.73rem;
  letter-spacing: 0.04em;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2px;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(40, 32, 25, 0.14);
  background: var(--accent-hermes-soft);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.paper-item:hover .paper-abstract,
.paper-item:focus-within .paper-abstract,
.paper-item.is-open .paper-abstract {
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 18px;
}

.paper-item:hover .paper-toggle,
.paper-item.is-open .paper-toggle {
  transform: rotate(45deg);
}

.rail-shell {
  display: grid;
  gap: 18px;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rail-label {
  color: var(--accent-hermes-soft);
}

.section-light .rail-label {
  color: var(--accent-hermes-ground);
}

.rail-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rail-button {
  width: 42px;
  height: 42px;
  cursor: pointer;
  border-radius: 999px;
  border: 1px solid rgba(236, 231, 222, 0.18);
  background:
    linear-gradient(180deg, rgba(236, 231, 222, 0.1), rgba(236, 231, 222, 0.04)),
    rgba(236, 231, 222, 0.04);
  color: rgba(236, 231, 222, 0.84);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.rail-button-light {
  border-color: rgba(55, 44, 36, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.2)),
    rgba(255, 255, 255, 0.26);
  color: var(--text);
}

.rail-mask {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.rail-mask::before,
.rail-mask::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(34px, 4vw, 76px);
  z-index: 2;
  pointer-events: none;
}

.rail-mask::before {
  left: 0;
  background: linear-gradient(90deg, rgba(19, 19, 19, 0.86), transparent);
}

.rail-mask::after {
  right: 0;
  background: linear-gradient(270deg, rgba(19, 19, 19, 0.86), transparent);
}

.rail-mask-light::before {
  background: linear-gradient(90deg, rgba(236, 231, 222, 0.94), transparent);
}

.rail-mask-light::after {
  background: linear-gradient(270deg, rgba(236, 231, 222, 0.94), transparent);
}

.talks {
  padding: clamp(38px, 5vw, 66px) 0;
}

.talks-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(20px, 3.2vw, 46px);
  align-items: start;
}

.talks .section-head {
  gap: 13px;
  margin-bottom: clamp(20px, 2.8vw, 30px);
}

.talks .section-role {
  font-size: clamp(0.96rem, 1.14vw, 1.08rem);
  line-height: 1.5;
}

.talks .section-intro {
  max-width: 66ch;
}

.talks-figure {
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.talks-figure-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
}

.talks-figure-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(19, 19, 19, 0.04), rgba(19, 19, 19, 0.34)),
    linear-gradient(135deg, rgba(177, 109, 86, 0.12), transparent 36%);
}

.talks-media {
  width: 100%;
  aspect-ratio: 0.9;
  object-fit: cover;
}

.talks-video {
  display: block;
  background: #0f0f10;
}

.talks-caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: rgba(236, 231, 222, 0.72);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.talks-rail-shell,
.media-rail-shell {
  gap: 16px;
}

.talks-loop-mask {
  overflow: hidden;
  padding: 6px 16px 8px;
  position: relative;
}

.talks-loop-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.talks-sequence {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex: 0 0 auto;
  padding-right: 16px;
}

.media-loop-mask {
  overflow: hidden;
  padding: 6px 16px 8px;
  position: relative;
}

.media-loop-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.media-sequence {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex: 0 0 auto;
  padding-right: 16px;
}

.talk-card,
.media-card {
  position: relative;
  min-height: 132px;
  padding: 14px 16px 15px;
  border-radius: 24px;
  scroll-snap-align: start;
  overflow: hidden;
  display: grid;
  align-content: stretch;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.talk-card {
  flex: 0 0 auto;
  width: clamp(18rem, calc(var(--talk-card-measure, 18) * 0.74rem + 5.2rem), 34rem);
  max-width: 80vw;
  min-height: 114px;
  padding: 11px 13px 12px;
  grid-template-rows: auto minmax(3em, 1fr) auto;
  border: 1px solid rgba(236, 231, 222, 0.12);
  background:
    linear-gradient(180deg, rgba(236, 231, 222, 0.08), rgba(236, 231, 222, 0.02)),
    linear-gradient(135deg, rgba(177, 109, 86, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
  color: inherit;
  text-decoration: none;
}

html[lang="ja"] .talk-card {
  width: clamp(23.4rem, calc(var(--talk-card-measure, 18) * 0.96rem + 6.8rem), 44.2rem);
  max-width: 88vw;
}

.media-card {
  flex: 0 0 auto;
  width: clamp(18rem, 20vw, 22rem);
  max-width: 80vw;
  min-height: 106px;
  padding: 11px 13px 12px;
  border: 1px solid rgba(55, 44, 36, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.26)),
    linear-gradient(135deg, rgba(177, 109, 86, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 28px rgba(63, 48, 32, 0.1);
}

.talk-card::before,
.media-card::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(177, 109, 86, 0.72), rgba(123, 149, 136, 0.08));
}

.talk-card-year,
.media-card-year {
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.talk-card-year {
  margin-bottom: 10px;
  color: rgba(171, 130, 86, 0.84);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1;
}

.media-card-year {
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.talk-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.talk-card-site {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(236, 231, 222, 0.14);
  background: rgba(236, 231, 222, 0.03);
  color: rgba(236, 231, 222, 0.74);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.talk-card-title,
.media-card-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.42;
}

.talk-card-title {
  color: var(--text-inverse);
  display: block;
  width: auto;
  max-width: 100%;
  font-size: 0.98rem;
  line-height: 1.36;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: normal;
  margin: 0 0 10px;
  align-self: start;
  justify-self: start;
}

.talk-card-title--single {
  white-space: nowrap;
}

.talk-card-title--multiline {
  white-space: pre-line;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: normal;
}

.talk-card-venue,
.media-card-outlet {
  font-size: 0.92rem;
  line-height: 1.58;
}

.talk-card-venue {
  color: rgba(236, 231, 222, 0.72);
  margin-top: 0;
  align-self: end;
  width: auto;
  max-width: 100%;
  padding-top: 0;
  font-size: 0.92rem;
  line-height: 1.58;
  white-space: normal;
}

.media-card-outlet {
  color: var(--muted);
}

.talk-card:hover,
.talk-card:focus-within,
.media-card:hover,
.media-card:focus-within {
  transform: translateY(-4px);
}

.talk-card:hover,
.talk-card:focus-within {
  border-color: rgba(177, 109, 86, 0.28);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.24);
}

.media-card:hover,
.media-card:focus-within {
  border-color: rgba(177, 109, 86, 0.26);
  box-shadow: 0 20px 34px rgba(63, 48, 32, 0.14);
}

.talks-materials {
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid rgba(236, 231, 222, 0.12);
}

.talks-materials-head {
  max-width: 860px;
  margin-bottom: 28px;
}

.talks-materials-title {
  margin: 0;
  font-size: clamp(1.64rem, 2.8vw, 3.1rem);
  line-height: 1.04;
}

.talks-materials-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 2.8vw, 38px);
  align-items: start;
}

.materials-preview-column {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
  max-width: 44rem;
}

.materials-preview {
  position: static;
  margin: 0;
}

.materials-preview-stage {
  padding: clamp(14px, 1.5vw, 18px);
  border-radius: 28px;
  border: 1px solid rgba(236, 231, 222, 0.1);
  background:
    radial-gradient(circle at 0% 0%, rgba(177, 109, 86, 0.12), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(123, 149, 136, 0.12), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.materials-preview-paper {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  background: rgba(10, 10, 10, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(236, 231, 222, 0.08),
    0 14px 24px rgba(0, 0, 0, 0.18);
}

.materials-preview-image {
  width: 100%;
  aspect-ratio: 1.24;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 14px;
  background: rgba(251, 248, 243, 0.98);
}

.materials-preview-panel {
  display: grid;
  gap: 8px;
  padding: 16px 18px 15px;
  border-radius: 20px;
  border: 1px solid rgba(236, 231, 222, 0.08);
  background:
    linear-gradient(180deg, rgba(236, 231, 222, 0.035), rgba(236, 231, 222, 0.012)),
    rgba(255, 255, 255, 0.022);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

.materials-preview-label {
  color: var(--accent-hermes-soft);
}

.materials-preview-title {
  margin: 2px 0 0;
  max-width: none;
  font-size: clamp(0.84rem, 1vw, 1.08rem);
  line-height: 1.34;
  white-space: pre-line;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: normal;
  letter-spacing: -0.015em;
}

html[lang="en"] .materials-preview-title {
  white-space: normal;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  letter-spacing: -0.01em;
  max-width: none;
}

.materials-preview-title--compact {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.materials-preview-venue,
.materials-preview-date {
  margin: 0;
  color: rgba(236, 231, 222, 0.72);
}

.materials-preview-venue {
  max-width: 36ch;
  font-size: 0.92rem;
  line-height: 1.45;
}

html[lang="en"] .materials-preview-venue,
html[lang="en"] .materials-preview-date {
  max-width: none;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.materials-preview-date {
  color: rgba(236, 231, 222, 0.5);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.materials-preview-links {
  margin-top: 2px;
  padding: 2px 0 0;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.talks-materials .paper-link {
  border-color: rgba(236, 231, 222, 0.16);
  background: rgba(236, 231, 222, 0.03);
  color: rgba(236, 231, 222, 0.74);
  white-space: nowrap;
  padding: 0.66rem 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.materials-list {
  --materials-list-row-gap: clamp(14px, 1.55vw, 18px);
  --materials-list-column-gap: clamp(10px, 1.1vw, 14px);
  --materials-thumb-width: clamp(82px, 5.6vw, 96px);
  display: grid;
  width: auto;
  max-width: none;
  grid-template-columns: repeat(4, minmax(var(--materials-thumb-width), var(--materials-thumb-width)));
  grid-auto-rows: auto;
  gap: var(--materials-list-row-gap) var(--materials-list-column-gap);
  align-content: start;
  justify-content: start;
  justify-self: start;
}

.material-item {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 7px;
  align-content: start;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.material-item--slot-1,
.material-item--slot-2,
.material-item--slot-3,
.material-item--slot-4 {
  grid-column: auto;
  grid-row: auto;
  opacity: 1;
  transform: none;
}

.material-item-year {
  display: block;
  padding-left: 4px;
  color: rgba(236, 231, 222, 0.5);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.material-thumb-shell {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.48;
  min-height: clamp(146px, 13vw, 182px);
  padding: 6px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(236, 231, 222, 0.08);
  background:
    linear-gradient(180deg, rgba(236, 231, 222, 0.04), rgba(236, 231, 222, 0.015)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.material-thumb-shell::before {
  content: "";
  position: absolute;
  inset: 8px -4px -4px 8px;
  z-index: -1;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.14);
}

.material-thumb-shell img,
.material-thumb-shell video {
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  object-fit: cover;
  object-position: left center;
  border-radius: 18px;
}

.material-thumb-still {
  opacity: 1;
  transition: opacity 0.24s ease;
}

.material-thumb-motion {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  background: transparent;
}

.material-item.is-thumb-playing .material-thumb-still {
  opacity: 0;
}

.material-item.is-thumb-playing .material-thumb-motion {
  opacity: 1;
}

.material-item:hover,
.material-item:focus-visible,
.material-item.is-preview-source {
  transform: none;
  z-index: 4;
  opacity: 1;
}

.material-item:hover .material-item-year,
.material-item:focus-visible .material-item-year,
.material-item.is-preview-source .material-item-year {
  color: rgba(236, 231, 222, 0.68);
}

.material-item:hover .material-thumb-shell,
.material-item:focus-visible .material-thumb-shell,
.material-item.is-preview-source .material-thumb-shell {
  border-color: rgba(177, 109, 86, 0.24);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.projects {
  padding: clamp(36px, 4.8vw, 62px) 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas:
    "main side1"
    "main side2";
  gap: 14px;
  margin-bottom: 22px;
}

.project-figure {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.project-figure:nth-child(1) { grid-area: main; }
.project-figure:nth-child(2) { grid-area: side1; }
.project-figure:nth-child(3) { grid-area: side2; }

.project-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-figure figcaption {
  position: absolute;
  left: 16px;
  bottom: 8px;
  max-width: min(74%, calc(100% - 32px));
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.62);
  color: var(--text-inverse);
  font-family: var(--font-sans);
  font-size: 0.43rem;
  line-height: 1.36;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-figure:nth-child(2) figcaption,
.project-figure:nth-child(3) figcaption {
  bottom: 6px;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  letter-spacing: 0.11em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  padding: 13px 16px 14px;
  border-radius: 24px;
  border: 1px solid rgba(55, 44, 36, 0.08);
  background: rgba(255, 255, 255, 0.36);
}

.project-card h3,
.project-card-title {
  margin: 0 0 8px;
  min-height: calc(1.26em * 2);
  display: block;
  font-size: 0.98rem;
  line-height: 1.26;
  white-space: pre-line;
}

.project-card p {
  margin: 0;
  font-size: clamp(0.74rem, 0.86vw, 0.8rem);
  line-height: 1.68;
  color: rgba(39, 31, 24, 0.86);
}

:lang(en) .project-card h3,
:lang(en) .project-card-title {
  margin-bottom: 6px;
  min-height: calc(1.2em * 1);
}

.media {
  padding: clamp(36px, 4.8vw, 62px) 0;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.media-figure {
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.media-figure-frame {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.media-visual {
  width: 100%;
  aspect-ratio: 0.98;
  object-fit: cover;
  display: block;
}

.media-video {
  object-position: center;
}

.contact {
  padding: clamp(38px, 5vw, 66px) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(141px, 160px);
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
}

.contact-object-wrap {
  margin: 0;
  width: min(100%, 160px);
  justify-self: end;
  margin-top: clamp(34px, 4.8vw, 54px);
}

.contact-object {
  position: relative;
  display: block;
  aspect-ratio: 1.34;
  color: inherit;
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-object-body {
  position: absolute;
  inset: 0;
  border-radius: 19px;
  overflow: hidden;
  border: 1px solid rgba(236, 231, 222, 0.08);
  background:
    radial-gradient(circle at 18% 20%, rgba(177, 109, 86, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008) 20%, rgba(0, 0, 0, 0.06) 100%),
    linear-gradient(155deg, rgba(34, 30, 28, 0.98), rgba(23, 22, 22, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 18px 34px rgba(0, 0, 0, 0.18);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}

.contact-object-shadow,
.contact-object-plate,
.contact-object-outline,
.contact-object-inset,
.contact-object-caption,
.contact-object-arrow {
  position: absolute;
}

.contact-object-shadow {
  inset: 10px -8px -6px 13px;
  border-radius: 16px;
  border: 1px solid rgba(236, 231, 222, 0.04);
  background: rgba(255, 255, 255, 0.012);
  opacity: 0.72;
  z-index: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.contact-object-plate {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0) 36%),
    rgba(255, 255, 255, 0.008);
  z-index: 1;
}

.contact-object-outline {
  inset: 13px 11px;
  border-radius: 16px;
  border: 1.1px solid rgba(247, 241, 233, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(255, 255, 255, 0.015);
  z-index: 3;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease;
}

.contact-object-inset {
  inset: 13px 11px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(241, 233, 221, 0.96), rgba(223, 212, 196, 0.94)),
    rgba(228, 219, 205, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 0 1px rgba(94, 74, 51, 0.08);
  z-index: 2;
}

.contact-object-caption {
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(62, 47, 33, 0.9);
  white-space: nowrap;
  pointer-events: none;
}

.contact-object-arrow {
  right: 11px;
  bottom: 8px;
  z-index: 2;
  font-size: 0.54rem;
  color: rgba(236, 231, 222, 0.52);
  transition: transform 0.35s ease, color 0.35s ease;
}

.contact-object:hover,
.contact-object:focus-visible {
  transform: translateY(-2px);
}

.contact-object:hover .contact-object-body,
.contact-object:focus-visible .contact-object-body {
  border-color: rgba(177, 109, 86, 0.14);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 22px 36px rgba(0, 0, 0, 0.2);
}

.contact-object:hover .contact-object-shadow,
.contact-object:focus-visible .contact-object-shadow {
  transform: translate3d(6px, 0, 0);
  opacity: 0.86;
}

.contact-object:hover .contact-object-outline,
.contact-object:focus-visible .contact-object-outline {
  transform: translate3d(2px, -2px, 0);
  border-color: rgba(248, 243, 235, 0.82);
}

.contact-object:hover .contact-object-arrow,
.contact-object:focus-visible .contact-object-arrow {
  transform: translate3d(2px, -2px, 0);
  color: rgba(248, 243, 235, 0.72);
}

.contact-headline {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.78rem);
  font-weight: 400;
  line-height: 1.18;
}

.contact-copy-column .section-kicker {
  margin-bottom: 28px;
}

.contact-copy-column {
  max-width: 42rem;
}

.contact-copy {
  max-width: none;
  margin: 0 0 14px;
  font-size: clamp(0.9rem, 0.92vw, 0.98rem);
  color: rgba(236, 231, 222, 0.76);
  white-space: nowrap;
}

.contact-affiliation {
  margin: 0 0 18px;
  color: rgba(236, 231, 222, 0.52);
  font-size: 0.96rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(236, 231, 222, 0.22);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(236, 231, 222, 0.8);
  background: transparent;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-top: 34px;
  margin-top: 34px;
  border-top: 1px solid var(--line-inverse);
  color: rgba(236, 231, 222, 0.46);
}

.footer-copy {
  font-size: 0.82rem;
}

.footer-note {
  font-size: 0.72rem;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-parallax] {
  will-change: transform;
}

.site-mark,
.menu-button,
.menu-close,
.menu-link,
.inline-link,
.profile-card,
.paper-link,
.project-card,
.contact-link,
.project-figure img {
  transition-duration: 0.35s;
  transition-timing-function: ease;
}

.site-mark:hover,
.site-mark:focus-visible,
.menu-button:hover,
.menu-button:focus-visible,
.contact-button:hover,
.contact-button:focus-visible,
.menu-close:hover,
.menu-close:focus-visible,
.rail-button:hover,
.rail-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(177, 109, 86, 0.34);
  background:
    linear-gradient(180deg, rgba(177, 109, 86, 0.12), rgba(123, 149, 136, 0.06)),
    rgba(255, 255, 255, 0.32);
}

.menu-button:hover,
.menu-button:focus-visible {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(40, 32, 25, 0.18);
}

.contact-button:hover,
.contact-button:focus-visible {
  background: var(--accent-hermes-deep);
  border-color: rgba(40, 32, 25, 0.18);
}

.menu-link:hover,
.menu-link:focus-visible {
  transform: translateX(8px);
  border-color: rgba(236, 231, 222, 0.22);
}

.inline-link:hover,
.inline-link:focus-visible {
  opacity: 0.72;
  letter-spacing: 0.2em;
}

.profile-card:hover,
.project-card:hover {
  transform: translateY(-4px);
}

.profile-card:hover,
.project-card:hover {
  border-color: rgba(138, 106, 71, 0.18);
  box-shadow: 0 20px 32px rgba(63, 48, 32, 0.1);
}

.material-item:hover .paper-link,
.material-item:focus-within .paper-link {
  border-color: rgba(138, 106, 71, 0.28);
}

.project-figure:hover img,
.project-figure:focus-within img {
  transform: scale(1.035);
}

.paper-link:hover,
.paper-link:focus-visible {
  transform: translateY(-1px);
  background: var(--accent-hermes-deep);
  border-color: rgba(40, 32, 25, 0.18);
  color: var(--text);
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--text-inverse);
  border-color: rgba(177, 109, 86, 0.56);
  letter-spacing: 0.1em;
}

@media (max-width: 920px) {
  .hero-shell,
  .books-stage,
  .statement-layout,
  .profile-layout,
  .talks-layout,
  .media-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    min-height: 320px;
    height: min(46svh, 420px);
  }

  .hero-copy {
    max-width: min(43%, 270px);
  }

  :lang(ja) .hero-copy {
    right: clamp(16px, 2.8vw, 24px);
    width: auto;
    max-width: none;
  }


  .contact-object-wrap {
    width: min(100%, 160px);
    justify-self: start;
    margin-top: 10px;
  }

  .contact-copy {
    white-space: normal;
  }

  .profile-figure,
  .talks-figure,
  .media-figure {
    position: static;
  }

  .books-stage-frame {
    min-height: 288px;
  }

  .books-stage-surface {
    width: min(35.2vw, 224px);
  }

  .books-stage-surface[data-book-format="large"] {
    width: min(38.4vw, 256px);
  }

  .books-stage-surface[data-book-format="regular"] {
    width: min(38.4vw, 251px);
  }

  .books-stage-surface[data-book-format="shinsho"] {
    width: min(30.4vw, 198px);
  }

  .books-stage-surface[data-book-format="bunko"] {
    width: min(27.2vw, 179px);
  }

  .books-stage-surface[data-book-format="magazine"] {
    width: min(32vw, 206px);
  }

  .bookshelf-mask {
    padding: 46px 18px 32px;
  }

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

  .media-card {
    width: min(72vw, 23rem);
    min-height: 102px;
    padding: 10px 12px 11px;
  }

  .talk-card {
    width: min(66vw, clamp(17.8rem, calc(var(--talk-card-measure, 18) * 0.76rem + 5rem), 31rem));
    min-height: 108px;
    padding: 10px 12px 11px;
  }

  html[lang="ja"] .talk-card {
    width: min(82vw, clamp(23.1rem, calc(var(--talk-card-measure, 18) * 0.98rem + 6.5rem), 40.3rem));
  }

  .talk-card-year {
    font-size: 0.72rem;
  }

  .talk-card-title {
    font-size: 1.02rem;
  }

  .talk-card-venue {
    font-size: 0.92rem;
  }

  .talks-materials-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .materials-preview {
    position: static;
  }

  .materials-list {
    width: auto;
    --materials-list-row-gap: 16px;
    --materials-list-column-gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: var(--materials-list-row-gap) var(--materials-list-column-gap);
  }

  .materials-preview-stage {
    min-height: auto;
  }

  .materials-preview-title {
    max-width: none;
  }

  .material-item,
  .material-item--slot-1,
  .material-item--slot-2,
  .material-item--slot-3,
  .material-item--slot-4 {
    grid-column: auto;
    grid-row: auto / span 2;
    transform: none;
    opacity: 1;
  }

  .project-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "main main"
      "side1 side2";
  }
}

@media (max-width: 820px) {
  .site-header {
    padding: 10px var(--pad);
  }

  .statement-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .books-stage {
    gap: 18px;
  }

  .books-stage-frame {
    min-height: 256px;
  }

  .books-stage-surface {
    width: min(41.6vw, 200px);
  }

  .books-stage-title {
    max-width: none;
  }

  .books-stage-title--single {
    white-space: normal;
    text-wrap: balance;
  }

  .books-stage-title--stacked-compact {
    font-size: clamp(1.18rem, 5vw, 1.5rem);
    white-space: nowrap;
    text-wrap: nowrap;
  }

  .bookshelf-mask {
    padding: 23px 16px 17px;
  }

  .book-spine--large {
    --spine-width: 58px;
    --spine-height: 193px;
  }

  .book-spine--regular {
    --spine-width: 50px;
    --spine-height: 169px;
  }

  .book-spine--shinsho {
    --spine-width: 42px;
    --spine-height: 146px;
  }

  .book-spine--bunko {
    --spine-width: 36px;
    --spine-height: 128px;
  }

  .book-spine--magazine {
    --spine-width: 46px;
    --spine-height: 151px;
  }

  .paper-trigger {
    grid-template-columns: 88px minmax(0, 1fr) 24px;
  }

  .hero-copy {
    max-width: none;
  }


  .hero-name {
    font-size: clamp(1.5rem, 3.05vw, 2.06rem);
  }

  .paper-abstract {
    padding-left: 0;
  }

  .media-loop-mask {
    padding-inline: 12px;
    padding-block: 5px 7px;
  }

  .media-card {
    width: min(80vw, 21rem);
    min-height: 98px;
    padding: 10px 12px 11px;
  }

  .materials-preview-panel {
    padding: 20px 20px 18px;
  }

  .materials-preview-title {
    max-width: 100%;
  }

  .materials-list {
    --materials-list-row-gap: 14px;
    --materials-list-column-gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: var(--materials-list-row-gap) var(--materials-list-column-gap);
  }

  .material-thumb-shell {
    min-height: 154px;
    padding: 7px;
    border-radius: 22px;
  }

  .material-thumb-shell img {
    border-radius: 15px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side1"
      "side2";
  }
}

@media (max-width: 620px) {
  .site-mark {
    width: 22px;
    height: 22px;
    font-size: 0.46rem;
  }

  .lang-switch {
    display: none;
  }

  .menu-button,
  .contact-button {
    padding: 4px 8px;
    font-size: 0.48rem;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-shell {
    width: min(var(--container), calc(100vw - 56px));
    min-height: auto;
  }

  .hero-media {
    height: 39svh;
    min-height: 264px;
    border-radius: 24px;
  }

  .hero-keywords {
    margin-bottom: 12px;
    font-size: 0.68rem;
    line-height: 1.38;
    letter-spacing: 0.06em;
  }

  .hero-name {
    font-size: clamp(2.14rem, 10.4vw, 2.88rem);
    line-height: 0.92;
    white-space: nowrap;
  }

  .hero-copy {
    left: 16px;
    right: auto;
    bottom: 16px;
    width: auto;
    max-width: min(80%, 320px);
    padding-right: 0;
  }

  :lang(ja) .hero-copy {
    left: 16px;
    right: 16px;
    max-width: none;
  }

  .hero-role {
    margin: 10px 0 10px;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .papers-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-lead {
    max-width: min(36ch, 100%);
    font-size: 0.92rem;
    line-height: 1.28;
  }

  .talks-sequence {
    gap: 12px;
    padding-right: 10px;
  }

  .media-loop-mask {
    padding-inline: 10px;
    padding-block: 4px 6px;
  }

  .media-sequence {
    gap: 12px;
    padding-right: 10px;
  }

  .media-card {
    width: min(84vw, 18.8rem);
    min-height: 92px;
    padding: 9px 11px 10px;
  }

  .talk-card {
    width: min(84vw, clamp(17rem, calc(var(--talk-card-measure, 18) * 0.72rem + 5rem), 27rem));
    min-height: 100px;
    padding: 9px 11px 10px;
  }

  html[lang="ja"] .talk-card {
    width: min(92vw, clamp(22.1rem, calc(var(--talk-card-measure, 18) * 0.94rem + 6.4rem), 35.1rem));
  }

  .talk-card-year {
    font-size: 0.68rem;
  }

  .talk-card-site {
    min-height: 22px;
    padding-inline: 8px;
    font-size: 0.66rem;
  }

  .talk-card-title {
    font-size: 0.98rem;
    line-height: 1.4;
  }

  .talk-card-venue {
    padding-top: 0;
    font-size: 0.82rem;
  }

  .talks-materials-layout,
  .materials-preview-column,
  .materials-preview,
  .materials-preview-stage,
  .materials-preview-panel,
  .materials-list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .materials-preview-title,
  .materials-preview-venue,
  .materials-preview-date {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  html[lang="en"] .materials-preview-title,
  html[lang="en"] .materials-preview-venue,
  html[lang="en"] .materials-preview-date {
    overflow-wrap: normal;
    word-break: normal;
  }

  .talks-materials .paper-link {
    white-space: normal;
  }

  .books-stage-frame {
    min-height: 280px;
  }

  .books-stage-surface {
    width: min(58vw, 224px);
  }

  .books-stage-surface[data-book-format="regular"] {
    width: min(62vw, 250px);
  }

  .books-stage-surface[data-book-format="shinsho"] {
    width: min(50vw, 204px);
  }

  .books-stage-surface[data-book-format="bunko"] {
    width: min(46vw, 188px);
  }

  .bookshelf-head {
    align-items: flex-start;
  }

  .bookshelf-mask {
    margin-top: -18px;
    padding: 17px 14px 15px;
  }

  .bookshelf-controls {
    gap: 8px;
  }

  .bookshelf-button {
    width: 36px;
    height: 36px;
  }

  .rail-button {
    width: 38px;
    height: 38px;
  }

  .book-spine--large {
    --spine-width: 50px;
    --spine-height: 160px;
  }

  .book-spine--regular {
    --spine-width: 42px;
    --spine-height: 140px;
  }

  .book-spine--shinsho {
    --spine-width: 36px;
    --spine-height: 123px;
  }

  .book-spine--bunko {
    --spine-width: 32px;
    --spine-height: 108px;
  }

  .book-spine--magazine {
    --spine-width: 38px;
    --spine-height: 127px;
  }

  .book-spine-ink {
    padding: 10px 5px 12px;
    gap: 8px;
  }

  .book-spine-title {
    font-size: 0.82rem;
  }

  .book-spine-year,
  .book-spine-publisher {
    font-size: 0.54rem;
  }

  .paper-trigger {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .paper-year {
    grid-column: 1 / -1;
  }

  .materials-preview-stage {
    padding: 16px;
  }

  .contact-object-wrap {
    width: min(100%, 154px);
  }

  .contact-object-outline {
    inset: 13px 11px;
  }

  .contact-object-caption {
    font-size: 1rem;
    font-weight: 700;
  }

  .contact-object-arrow {
    right: 11px;
    bottom: 8px;
  }

  .materials-preview-panel {
    padding: 16px 16px 15px;
  }

  .materials-preview-title {
    font-size: clamp(1.32rem, 6vw, 1.92rem);
  }

  .materials-list {
    --materials-list-row-gap: 12px;
    --materials-list-column-gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: var(--materials-list-row-gap) var(--materials-list-column-gap);
  }

  .material-thumb-shell {
    min-height: 138px;
    padding: 6px;
    border-radius: 20px;
  }

  .material-thumb-shell img {
    border-radius: 14px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
