:root {
  color-scheme: dark;
  --bg: #0f1115;
  --fg: #f5f2ea;
  --muted: #b7b0a3;
  --line: rgba(245, 242, 234, 0.18);
  --panel: rgba(15, 17, 21, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family:
    Inter, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", Meiryo,
    sans-serif;
}

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

.site-header {
  min-height: 42vh;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 64px clamp(20px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.site-kicker,
.site-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.site-header h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.92;
}

.image-sections {
  width: 100%;
}

.image-section {
  position: relative;
  min-height: 220vh;
  overflow: clip;
  isolation: isolate;
}

.image-section__media {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  overflow: hidden;
}

.mask-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mask-scene__image--base {
  opacity: 1;
}

.mask-scene__image--top {
  opacity: 1;
}

.mask-reveal {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    height 80ms linear,
    y 80ms linear;
}

.image-section__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.72), transparent 55%),
    linear-gradient(0deg, rgba(15, 17, 21, 0.24), rgba(15, 17, 21, 0.24));
}

.image-section__content {
  position: sticky;
  top: 0;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: -100vh auto 0;
  display: grid;
  align-content: center;
  gap: 18px;
  justify-items: start;
  pointer-events: none;
}

.image-section__label {
  margin: 0;
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  backdrop-filter: blur(12px);
}

.image-section__title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.75rem, 12vw, 10rem);
  line-height: 0.88;
}

.image-section__text {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.8;
}

@media (max-width: 700px) {
  .site-header {
    min-height: 36vh;
    padding-block: 48px;
  }

  .image-section {
    min-height: 200vh;
  }

  .image-section__content {
    width: min(100% - 32px, 1120px);
  }

  .image-section__media::after {
    background:
      linear-gradient(0deg, rgba(15, 17, 21, 0.68), transparent 70%),
      linear-gradient(0deg, rgba(15, 17, 21, 0.28), rgba(15, 17, 21, 0.28));
  }
}
