:root {
  --c-bg: #0e0f11;
  --c-surface: #16181b;
  --c-text: #c7ccd1;
  --c-heading: #f2f0eb;
  --c-accent: #3fa06b;
  --c-spark: #f25c05;
  --c-mute: #5c6670;
  --c-line: rgba(63, 160, 107, 0.24);
  --font-display: "Shippori Antique B1", sans-serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-util: "Oswald", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  background: var(--c-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

button {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

h1,
h2 {
  color: var(--c-heading);
  font-family: var(--font-display);
  font-weight: 400;
}

h1 {
  font-size: clamp(2.05rem, 9vw, 3.4rem);
  line-height: 1.3;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.4rem, 6vw, 1.8rem);
  line-height: 1.6;
  letter-spacing: 0;
  text-wrap: balance;
}

.site-header {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 16px;
  z-index: 20;
}

.brand {
  display: block;
  width: min(190px, 52vw);
}

.brand img {
  width: 100%;
  height: auto;
  filter: invert(1) brightness(1.45);
}

.hero {
  position: relative;
  display: grid;
  align-content: center;
  gap: 22px;
  min-height: 100dvh;
  padding: calc(84px + env(safe-area-inset-top)) 16px calc(30px + env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 15, 17, 0.18) 0%, rgba(14, 15, 17, 0.06) 43%, rgba(14, 15, 17, 0.9) 100%);
  transition: opacity 0.5s ease;
}

.hero-media video,
.video-poster,
.video-poster img {
  position: absolute;
  inset: 0;
}

.hero-media {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: #000;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  animation: mediaIn 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 0.22s forwards;
}

.hero-media video {
  width: 100%;
  height: 100%;
  background: var(--c-bg);
  object-fit: contain;
}

.video-poster {
  z-index: 3;
  background: #000;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero.is-playing .video-poster {
  visibility: hidden;
  opacity: 0;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  width: clamp(64px, 18vw, 88px);
  height: clamp(64px, 18vw, 88px);
  padding: 0;
  place-items: center;
  border: 1px solid var(--c-accent);
  border-radius: 2px;
  background: rgba(14, 15, 17, 0.55);
  backdrop-filter: blur(2px);
  color: var(--c-heading);
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
}

.play-btn svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  align-self: auto;
  max-width: 560px;
  transition: opacity 0.5s ease;
}

.scroll-cue,
.tc {
  font-family: var(--font-util);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-company {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: var(--c-text);
  line-height: 1.75;
}

.hero-company h2 {
  color: var(--c-heading);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.hero-company p {
  font-size: 0.86rem;
}

.hero-company dl {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--c-line);
  padding-top: 10px;
}

.hero-company dl div {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr);
  gap: 10px;
}

.hero-company dt {
  color: var(--c-mute);
  font-family: var(--font-util);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-company dd {
  color: var(--c-heading);
  font-size: 0.82rem;
  line-height: 1.7;
}

.scroll-cue {
  position: absolute;
  right: 20px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 4;
  color: var(--c-mute);
  writing-mode: vertical-rl;
}

.hero.is-playing::before,
.hero.is-playing .hero-copy,
.hero.is-playing .scroll-cue {
  opacity: 0;
  pointer-events: none;
}

.load-in {
  opacity: 0;
  transform: translateY(16px);
  animation: loadIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-company.load-in {
  animation-delay: 0.18s;
}

.scroll-cue.load-in {
  animation-delay: 0.32s;
}

.section {
  border-top: 1px solid var(--c-line);
  padding: clamp(72px, 18vw, 120px) 20px;
  background:
    linear-gradient(180deg, rgba(22, 24, 27, 0.5), rgba(14, 15, 17, 0));
}

.message,
.cta {
  display: grid;
  gap: 28px;
  max-width: 720px;
  margin-inline: auto;
}

.message.section {
  border-top: 0;
  background: transparent;
}

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

.message-list {
  display: grid;
  gap: 10px;
  color: var(--c-text);
  line-height: 1.9;
}

.message-title span {
  display: block;
}

.message-list p {
  max-width: 40em;
}

.message-strong {
  color: var(--c-heading);
  font-weight: 500;
  margin-top: 8px;
}

.scenes {
  padding-inline: 0;
}

.scenes h2 {
  max-width: 720px;
  margin: 0 auto 28px;
  padding-inline: 20px;
}

.scenes h2 span {
  display: block;
}

.film-strip {
  display: grid;
  gap: 28px;
  padding: 0 20px;
}

.frame {
  width: 100%;
  max-width: none;
}

.frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 2px;
  object-fit: cover;
}

.frame figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  border-top: 1px solid var(--c-line);
  margin-top: 12px;
  padding-top: 12px;
  color: var(--c-text);
  font-size: 0.88rem;
  line-height: 1.8;
}

.tc {
  color: var(--c-accent);
}

.scene-title {
  color: var(--c-heading);
  font-weight: 500;
}

.scene-text {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.cta {
  justify-items: start;
  background:
    linear-gradient(rgba(14, 15, 17, 0.88), rgba(14, 15, 17, 0.95)),
    url("assets/images/scene-genba.webp") center / cover;
}

.cta img {
  width: 72px;
  height: 72px;
  filter: invert(1) brightness(1.6);
}

.cta-title span {
  display: block;
}

.cta-event {
  color: var(--c-heading);
  font-weight: 500;
}

.cta-actions {
  display: grid;
  gap: 14px;
  width: 100%;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 500;
  line-height: 1.5;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.22), transparent 36%);
  opacity: 0.45;
}

.button::after {
  content: "";
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid rgba(242, 240, 235, 0.75);
  outline-offset: 3px;
}

.button.primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 38%),
    linear-gradient(135deg, #3fa06b, #2c7a4f);
  color: #04110c;
}

.button.primary:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(135deg, #4cb07a, #35895b);
}

.button.secondary {
  border-color: rgba(63, 160, 107, 0.48);
  background:
    linear-gradient(135deg, rgba(63, 160, 107, 0.16), rgba(63, 160, 107, 0.05)),
    rgba(14, 15, 17, 0.72);
  color: var(--c-heading);
}

.button.secondary:hover {
  border-color: rgba(63, 160, 107, 0.78);
  background:
    linear-gradient(135deg, rgba(63, 160, 107, 0.22), rgba(63, 160, 107, 0.08)),
    rgba(18, 20, 23, 0.86);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--c-line);
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  color: var(--c-mute);
  font-family: var(--font-util);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.has-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes mediaIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes loadIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 768px) {
  .site-header {
    left: 32px;
  }

  .brand {
    width: 240px;
  }

  .hero {
    align-content: center;
    justify-items: center;
    min-height: 100dvh;
    padding: 110px 32px 48px;
  }

  .hero-media {
    position: relative;
    width: min(960px, 78vw);
    max-width: none;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--c-line);
    background: var(--c-bg);
  }

  .hero-media video {
    position: static;
    width: 100%;
    height: 100%;
  }

  .hero-copy {
    position: absolute;
    left: max(32px, calc((100vw - 960px) / 2));
    bottom: 48px;
    max-width: 470px;
  }

  .hero-sub span {
    display: inline;
  }

  .hero-sub span + span::before {
    content: " / ";
  }

  .scroll-cue {
    right: 32px;
  }

  .section {
    padding-inline: 32px;
  }

  .film-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    justify-content: center;
    padding: 0 32px 8px;
    scroll-padding-inline: 32px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .film-strip::-webkit-scrollbar {
    display: none;
  }

  .frame {
    flex-basis: min(31vw, 380px);
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .cta-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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