:root {
  --bg: #0a1210;
  --bg-elev: #121c19;
  --fg: #f2f7f4;
  --fg-soft: #9eb0a8;
  --line: #24332e;
  --accent: #7dcea0;
  --accent-deep: #b8f0d0;
  --warm: #e0c48a;
  --radius: 0;
  --max: 72rem;
  --font: "IBM Plex Sans JP", "Hiragino Sans", sans-serif;
  --display: "Syne", "IBM Plex Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--fg);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #102018;
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: linear-gradient(180deg, rgba(10, 18, 16, 0.72), transparent);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: rgba(242, 247, 244, 0.82);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--accent-deep);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--fg);
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media {
  background: #050908;
}

.hero__video,
.hero__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__poster {
  position: absolute;
  inset: 0;
}

body.js-ready .hero__poster {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__veil {
  background:
    linear-gradient(180deg, rgba(8, 14, 12, 0.28) 0%, rgba(8, 14, 12, 0.18) 40%, rgba(8, 14, 12, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 14, 12, 0.45), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 7rem 1.25rem 5.5rem;
  animation: hero-rise 1s ease both;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-kicker {
  margin: 0 0 0.75rem;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  display: grid;
  gap: 0.2rem;
}

.hero-title__brand {
  font-family: var(--display);
  font-size: clamp(2.8rem, 9vw, 5.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero-title__ja {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--fg-soft);
}

.hero-lead {
  margin: 1.1rem 0 0;
  max-width: 22rem;
  color: rgba(242, 247, 244, 0.88);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__scroll {
  position: absolute;
  right: 1.25rem;
  bottom: 1.4rem;
  z-index: 2;
  color: var(--fg-soft);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--fg);
  color: #102018;
}

.btn--primary:hover {
  background: var(--accent-deep);
}

.btn--ghost {
  border-color: rgba(242, 247, 244, 0.45);
  color: var(--fg);
  background: rgba(10, 18, 16, 0.28);
}

.btn--ghost:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
}

.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) 1.25rem;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 36rem;
}

.section-head--wide {
  max-width: 42rem;
}

.section-kicker {
  margin: 0 0 0.45rem;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
}

.section-role {
  margin: 0.45rem 0 0;
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-lead {
  margin: 0.7rem 0 0;
  color: var(--fg-soft);
}

.section--works {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section--works .section-head {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.work-tile {
  position: relative;
  display: block;
  min-height: clamp(16rem, 32vw, 22rem);
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  background: #07100e;
}

.work-tile--wide {
  grid-column: 1 / -1;
  min-height: clamp(18rem, 42vw, 28rem);
}

.work-tile img,
.work-tile__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.7s ease;
}

.work-tile:hover img,
.work-tile:hover .work-tile__video {
  transform: scale(1.06);
}

.work-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 12, 10, 0.82) 100%);
}

.work-tile__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.1rem 1.15rem 1.2rem;
  display: grid;
  gap: 0.2rem;
}

.work-tile__kind {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 247, 244, 0.72);
  font-weight: 700;
}

.work-tile__title {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
}

.section--tsuricra {
  overflow: hidden;
}

.tsuricra-float {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
}

.tsuricra-float__world,
.tsuricra-float__fish {
  position: absolute;
  will-change: transform;
}

.tsuricra-float__world {
  width: min(38vw, 22rem);
  opacity: 0.55;
  filter: saturate(0.9);
}

.tsuricra-float__world--a {
  top: 8%;
  right: -4%;
}

.tsuricra-float__world--b {
  bottom: 12%;
  left: -6%;
  width: min(42vw, 24rem);
}

.tsuricra-float__fish {
  width: 3.2rem;
  image-rendering: pixelated;
}

.tsuricra-float__fish--1 { top: 22%; left: 12%; }
.tsuricra-float__fish--2 { top: 48%; right: 18%; width: 2.6rem; }
.tsuricra-float__fish--3 { bottom: 28%; left: 28%; width: 4rem; }
.tsuricra-float__fish--4 { top: 18%; right: 30%; width: 3.5rem; }

.tsuricra-feature {
  position: relative;
  display: block;
  margin-top: 0.5rem;
  overflow: hidden;
  text-decoration: none;
  color: var(--fg);
  aspect-ratio: 16 / 9;
  background: #071018;
}

.tsuricra-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.tsuricra-feature:hover img {
  transform: scale(1.03);
}

.tsuricra-links {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  font-weight: 700;
}

.tsuricra-links a {
  color: var(--accent-deep);
  text-decoration: none;
}

.tsuricra-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.tsuricra-history {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  max-width: 42rem;
}

.tsuricra-history__title {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.history-list > li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.history-list__when {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.history-list__body {
  margin: 0;
  color: var(--fg-soft);
  font-size: 0.95rem;
}

.history-list__body > p {
  margin: 0 0 0.55rem;
}

.history-list__label {
  color: var(--fg);
  font-weight: 700;
  font-size: 1.02rem;
}

.history-list__meta {
  font-size: 0.88rem;
  line-height: 1.6;
}

.history-list__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.15rem 0 0 !important;
}

.history-list__links a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.history-list__links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.event-stack {
  display: grid;
  gap: 2.75rem;
}

.event-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: start;
}

.event-feature__media {
  display: block;
  overflow: hidden;
  background: #071018;
  aspect-ratio: 16 / 9;
}

.event-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.event-feature__media:hover img {
  transform: scale(1.03);
}

.event-feature__body h3 {
  margin: 0.15rem 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.event-feature__body > p {
  margin: 0 0 0.85rem;
  color: var(--fg-soft);
}

.event-feature__year {
  margin: 0;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-stats {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.9rem;
}

.event-stats li {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.event-stats span {
  color: var(--fg-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.event-stats strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.event-feature__meta {
  margin: 0 0 0.85rem;
  color: var(--fg-soft);
  font-size: 0.88rem;
}

.event-feature__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0;
}

.event-feature__links a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.event-feature__links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.event-more {
  margin-top: 0.85rem;
  color: var(--fg-soft);
}

.event-more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--fg);
}

.event-more .event-feature__links {
  margin-top: 0.65rem;
}

.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.tool-list li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.tool-list a {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.tool-list a:hover {
  color: var(--accent-deep);
}

.tool-list span {
  color: var(--fg-soft);
  font-size: 0.92rem;
}

.section--commission {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(125, 206, 160, 0.12), transparent 55%),
    var(--bg-elev);
  max-width: none;
  padding-left: max(1.25rem, calc((100% - var(--max)) / 2 + 1.25rem));
  padding-right: max(1.25rem, calc((100% - var(--max)) / 2 + 1.25rem));
}

.about-prose {
  max-width: 40rem;
  color: var(--fg-soft);
}

.about-prose p {
  margin: 0 0 1rem;
}

.about-prose a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}

.about-prose a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 28rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.contact-list span {
  color: var(--fg-soft);
  font-weight: 700;
}

.contact-list a {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 700;
}

.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-handle {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.section--join .contact-list {
  margin-top: 1.25rem;
}

.section--join .contact-note {
  max-width: 40rem;
}

.contact-note {
  margin: 1rem 0 0;
  color: var(--fg-soft);
  font-size: 0.88rem;
  max-width: 36rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  color: var(--fg-soft);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.site-footer a {
  color: var(--fg-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-deep);
}

@media (max-width: 720px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-tile--wide {
    grid-column: auto;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .site-nav {
    font-size: 0.8rem;
    gap: 0.55rem 0.75rem;
  }

  .tsuricra-float__world--a,
  .tsuricra-float__world--b {
    width: 55vw;
    opacity: 0.35;
  }

  .history-list > li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .event-feature {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .work-tile img,
  .work-tile__video,
  .tsuricra-feature img,
  .event-feature__media img,
  .btn,
  .hero__content {
    transition: none;
    animation: none;
  }

  .hero__video {
    display: none;
  }

  body.js-ready .hero__poster {
    opacity: 1;
  }
}
