:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #666666;
  --line: #dddddd;
  --soft: #f6f6f6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.72;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 44px;
  color: #fff;
  background: rgba(17, 17, 17, .78);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
}

nav a {
  color: rgba(255, 255, 255, .84);
  text-decoration: none;
}

nav a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: url("assets/hero.jpg") center / cover no-repeat;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  animation: heroBlend 50s infinite;
}

.hero-slide:nth-child(1) {
  opacity: .86;
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  object-position: center 42%;
  animation-delay: 10s;
}

.hero-slide:nth-child(3) {
  object-position: center 46%;
  animation-delay: 20s;
}

.hero-slide:nth-child(4) {
  object-position: center 54%;
  animation-delay: 30s;
}

.hero-slide:nth-child(5) {
  object-position: center 48%;
  animation-delay: 40s;
}

@keyframes heroBlend {
  0% {
    opacity: 0;
    transform: scale(1.03);
  }

  4% {
    opacity: .86;
  }

  18% {
    opacity: .86;
  }

  26% {
    opacity: 0;
    transform: scale(1.085);
  }

  92% {
    opacity: 0;
    transform: scale(1.085);
  }

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .08) 58%, rgba(0, 0, 0, .42)),
    linear-gradient(0deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .04) 56%);
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 68px;
}

.hero-content h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 112px;
  font-weight: 500;
  line-height: .95;
  letter-spacing: 0;
}

.hero-content p {
  margin: 18px 0 0;
  font-size: 18px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.profile-section {
  border-top: 0;
}

.profile-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.profile-portrait {
  margin: 0;
}

.profile-portrait img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--ink);
}

.language-button {
  min-width: 44px;
  min-height: 32px;
  border: 0;
  border-left: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.language-button:first-child {
  border-left: 0;
}

.language-button.is-active {
  background: var(--ink);
  color: #fff;
}

.meta-count {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.official-text {
  max-width: 820px;
}

.official-text p {
  margin: 0 0 .62em;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.72;
}

.profile-text p:last-child,
.current-text p:last-child {
  margin-bottom: 0;
}

.official-text .text-note {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.48;
}

.official-text .profile-note {
  margin-bottom: .22em;
}

.official-text .profile-note:first-of-type {
  margin-top: 1.1em;
}

.profile-text > p {
  margin-bottom: .76em;
}

.profile-environment {
  max-width: 760px;
  margin-top: 1.25em;
  padding-top: .75em;
  border-top: 1px solid var(--line);
}

.profile-environment p {
  margin: 0;
}

.profile-environment-title {
  margin-bottom: .28em !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.35 !important;
}

.profile-environment-lines {
  display: grid;
  gap: .12em;
}

.profile-environment-lines p {
  color: var(--ink);
  font-size: 11px !important;
  line-height: 1.42 !important;
}

.profile-environment-lines p:last-child {
  color: var(--muted);
  font-size: 10.5px !important;
}

.official-text .current-note {
  max-width: 920px;
  margin-bottom: .28em;
}

.official-text .current-collab {
  max-width: 920px;
  margin-bottom: .32em;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.58;
}

.official-text .current-collab-start {
  margin-top: 1.65em;
  padding-top: 1.05em;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.cv-listing {
  border-top: 1px solid var(--ink);
}

.cv-group {
  border-bottom: 1px solid var(--line);
}

.cv-group summary {
  min-height: 44px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  list-style: none;
}

.cv-group summary::-webkit-details-marker {
  display: none;
}

.cv-group summary::before {
  content: "+";
  font-size: 16px;
  line-height: 1;
}

.cv-group[open] summary::before {
  content: "-";
}

.cv-group summary strong {
  font-size: 15px;
}

.cv-group summary span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.cv-group-body {
  padding: 0 0 14px 28px;
}

.cv-row {
  margin: 0;
  font-size: 12px;
  line-height: 1.46;
}

.cv-year,
.cv-period {
  margin-top: 8px;
  font-weight: 700;
}

.cv-section {
  display: none;
}

.cv-item + .cv-item {
  margin-top: 2px;
}

.cv-thesis {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.thesis-link {
  display: inline-flex;
  align-items: center;
  width: 30px;
  min-width: 30px;
  height: 18px;
  text-decoration: none;
  vertical-align: middle;
}

.thesis-link img {
  width: 100%;
  max-height: 18px;
  object-fit: contain;
}

.thesis-link:hover {
  opacity: .72;
}

.works-list {
  border-top: 1px solid var(--ink);
}

.work-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.work-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--soft);
}

.work-copy {
  max-width: 720px;
}

.work-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: baseline;
  margin-bottom: .35em;
}

.work-copy h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.18;
}

.work-award-link {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.work-award-link:hover {
  color: var(--ink);
}

.work-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
}

.work-copy .work-meta {
  margin-bottom: .45em;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.external-posts {
  max-width: 760px;
  margin-top: 20px;
}

.external-posts h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.external-posts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.external-posts li {
  font-size: 12px;
  line-height: 1.35;
}

.external-posts a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.external-posts a:hover {
  color: var(--ink);
}

.image-pair {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 28px;
}

.image-pair img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: var(--soft);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(420px, 1.25fr);
  gap: 56px;
  align-items: start;
}

.contact-panel p {
  margin: 0;
  font-size: 15px;
}

.contact-lead {
  max-width: 760px;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.45;
}

.contact-form {
  display: grid;
  gap: 11px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-title {
  margin: 0 0 24px !important;
  font-size: 18px !important;
}

.contact-form label {
  display: grid;
  gap: 5px;
}

.contact-form label span {
  color: var(--muted);
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #999;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.contact-form input {
  min-height: 42px;
  padding: 8px 12px;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
  padding: 10px 12px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--ink);
  outline-offset: 1px;
}

.contact-form button {
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  padding: 8px 0;
}

.contact-form button:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.form-status {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 12px !important;
  text-align: right;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 44px;
  color: #fff;
  background: #111;
  font-size: 12px;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    padding: 15px 24px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
  }

  .hero-content h1 {
    font-size: 72px;
  }

  .profile-layout,
  .work-item,
  .image-pair,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .profile-portrait {
    max-width: 360px;
  }

  .image-pair img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .work-item img {
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content,
  .section {
    width: min(100% - 28px, 1180px);
  }

  .hero-content h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 28px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title-row {
    display: grid;
  }

  .cv-group summary {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .cv-group summary span {
    grid-column: 2;
  }

  .cv-group-body {
    padding-left: 0;
  }

  .site-footer {
    display: grid;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transform: none;
    animation: heroBlendReduced 60s infinite;
  }

  .hero-slide:nth-child(1) {
    opacity: .86;
    animation-delay: 0s;
  }

  .hero-slide:nth-child(2) {
    animation-delay: 12s;
  }

  .hero-slide:nth-child(3) {
    animation-delay: 24s;
  }

  .hero-slide:nth-child(4) {
    animation-delay: 36s;
  }

  .hero-slide:nth-child(5) {
    animation-delay: 48s;
  }

  @keyframes heroBlendReduced {
    0% {
      opacity: 0;
    }

    4% {
      opacity: .86;
    }

    18% {
      opacity: .86;
    }

    26% {
      opacity: 0;
    }

    92% {
      opacity: 0;
    }

    100% {
      opacity: 0;
    }
  }
}
