:root {
  color-scheme: light;
  --ink: #161414;
  --muted: #6b625c;
  --paper: #f7f4ed;
  --porcelain: #fbfaf6;
  --clay: #9d4f37;
  --moss: #3e6045;
  --blue: #253f5f;
  --line: rgba(22, 20, 20, 0.14);
  --shadow: 0 24px 80px rgba(22, 20, 20, 0.16);
  --radius: 8px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP",
    system-ui, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 30;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--porcelain);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--porcelain);
  transition:
    background 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(247, 244, 237, 0.92);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 5px;
  color: currentColor;
  font-size: 11px;
  opacity: 0.72;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 13px;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  place-items: center;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.hero {
  position: relative;
  min-height: 96svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--porcelain);
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(16, 14, 13, 0.82), rgba(16, 14, 13, 0.32) 48%, rgba(16, 14, 13, 0.14)),
    linear-gradient(0deg, rgba(16, 14, 13, 0.64), rgba(16, 14, 13, 0) 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 52px) 0 170px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e8b49d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 600;
  line-height: 1.16;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(56px, 9vw, 132px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(30px, 5vw, 58px);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 3vw, 30px);
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 32px;
  color: rgba(251, 250, 246, 0.88);
  font-size: clamp(16px, 2.1vw, 22px);
}

.hero-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid currentColor;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.button {
  padding: 11px 18px;
  font-weight: 700;
}

.button:hover,
.chip:hover,
.work-card:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--clay);
  background: var(--clay);
  color: var(--porcelain);
}

.button.ghost {
  background: rgba(251, 250, 246, 0.08);
  color: var(--porcelain);
}

.hero-status {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: 26px;
  left: clamp(18px, 4vw, 56px);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(251, 250, 246, 0.32);
  color: rgba(251, 250, 246, 0.86);
  font-size: 13px;
}

.hero-status span {
  padding: 18px 18px 0 0;
}

.research-line,
.workbench,
.profile,
.timeline-section,
.contact {
  padding: clamp(72px, 10vw, 140px) clamp(18px, 4vw, 56px);
}

.research-line {
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 80px);
  background: var(--porcelain);
  border-bottom: 1px solid var(--line);
}

.research-line h2,
.research-line p {
  grid-column: 2;
  max-width: 980px;
}

.research-line .section-kicker {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.research-line p,
.section-heading p,
.statement-copy p,
.profile-copy p,
.contact p {
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 19px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.48fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  max-width: 1360px;
  margin: 0 auto 34px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 26px;
}

.chip {
  min-width: 92px;
  padding: 9px 15px;
  background: transparent;
  color: var(--ink);
}

.chip.active {
  border-color: var(--moss);
  background: var(--moss);
  color: var(--porcelain);
}

.filter-row {
  max-width: 1360px;
  margin: 0 auto 24px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  max-width: 1360px;
  margin: 0 auto;
}

.work-card {
  min-height: 560px;
  grid-column: span 4;
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.work-card:first-child {
  grid-column: span 6;
}

.work-card:nth-child(2) {
  grid-column: span 6;
}

.work-card:hover,
.work-card:focus-visible {
  box-shadow: var(--shadow);
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.work-meta {
  padding: 22px;
}

.work-meta p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.work-tags span,
.timeline-year {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 700;
}

.statement-band {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 0.6fr);
  min-height: 660px;
  background: #eef1ec;
  border-block: 1px solid var(--line);
}

.statement-copy {
  align-self: center;
  padding: clamp(60px, 10vw, 136px) clamp(18px, 6vw, 84px);
}

.statement-image {
  min-height: 440px;
}

.statement-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.72fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  background: var(--porcelain);
}

.profile-media img {
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.profile-facts {
  display: grid;
  gap: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.profile-facts div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--clay);
  font-weight: 700;
}

.profile-facts dd {
  margin: 0;
}

.timeline-section {
  background: #f0f5f7;
}

.timeline {
  display: grid;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(37, 63, 95, 0.18);
}

.timeline h3 {
  margin-bottom: 6px;
  font-size: 22px;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: var(--ink);
  color: var(--porcelain);
}

.contact .section-kicker {
  color: #e8b49d;
}

.contact p {
  color: rgba(251, 250, 246, 0.72);
}

.contact-panel {
  display: grid;
  gap: 16px;
  padding-top: 10px;
}

.contact-link {
  overflow-wrap: anywhere;
  color: var(--porcelain);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #0f0e0d;
  color: rgba(251, 250, 246, 0.68);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.work-dialog {
  width: min(1040px, calc(100% - 28px));
  max-height: min(820px, calc(100svh - 28px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--porcelain);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.work-dialog::backdrop {
  background: rgba(16, 14, 13, 0.62);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(251, 250, 246, 0.46);
  border-radius: var(--radius);
  background: rgba(16, 14, 13, 0.46);
  color: var(--porcelain);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.52fr);
}

.dialog-body img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.dialog-copy {
  padding: clamp(26px, 5vw, 56px);
}

.dialog-copy p {
  color: var(--muted);
}

.dialog-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.dialog-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
}

.dialog-list dt {
  color: var(--clay);
  font-weight: 700;
}

.dialog-list dd {
  margin: 0;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  border-radius: var(--radius);
  background: var(--moss);
  color: var(--porcelain);
  padding: 12px 16px;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--porcelain);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 10px;
  }

  .hero-content {
    padding-bottom: 220px;
  }

  .hero-status,
  .research-line,
  .section-heading,
  .statement-band,
  .profile,
  .contact,
  .dialog-body {
    grid-template-columns: 1fr;
  }

  .hero-status {
    gap: 0;
  }

  .hero-status span {
    padding-top: 10px;
  }

  .research-line h2,
  .research-line p,
  .research-line .section-kicker {
    grid-column: auto;
    grid-row: auto;
  }

  .work-card,
  .work-card:first-child,
  .work-card:nth-child(2) {
    grid-column: span 6;
  }

  .statement-band {
    min-height: 0;
  }

  .statement-image {
    min-height: 360px;
  }

  .profile-media img {
    width: min(360px, 100%);
  }

  .dialog-body img {
    min-height: 360px;
    max-height: 54svh;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(16, 14, 13, 0.86), rgba(16, 14, 13, 0.34)),
      linear-gradient(0deg, rgba(16, 14, 13, 0.72), rgba(16, 14, 13, 0) 48%);
  }

  .hero-content {
    width: calc(100% - 28px);
    padding-bottom: 250px;
  }

  .hero-status {
    grid-template-columns: 1fr;
    font-size: 12px;
  }

  .button,
  .chip {
    width: 100%;
  }

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

  .work-card,
  .work-card:first-child,
  .work-card:nth-child(2) {
    min-height: 0;
    grid-column: auto;
  }

  .work-card img {
    aspect-ratio: 1 / 1;
  }

  .profile-facts div,
  .timeline li,
  .dialog-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
