:root {
  --pine: #16352e;
  --moss: #2f5d50;
  --mist: #eef2ea;
  --paper: #f7f6f1;
  --river: #4f7f8c;
  --ink: #1c2421;
  --mute: #5d6a64;
  --line: #d5ddd4;
  --max: #168afd;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--paper); color: var(--ink);
  font-family: "Sora", system-ui, sans-serif; line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
video { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: "Newsreader", serif; font-weight: 400; line-height: 1.1; }

.btn-max {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--max); color: #fff; font-weight: 700;
  padding: 0.85rem 1.25rem; border-radius: 999px; margin-top: 1rem;
}

.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.5rem; background: rgba(247,246,241,0.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.mark {
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  font-weight: 700; color: var(--pine); letter-spacing: -0.02em;
}

.hero {
  position: relative; height: 78vh; min-height: 520px; max-height: 920px; overflow: hidden;
}
.hero video,
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.hero-media::-webkit-media-controls { display: none !important; }
.hero-copy {
  position: absolute; inset: auto 0 0; padding: 3rem 1.5rem 2.2rem;
  background: linear-gradient(transparent, rgba(22,53,46,0.92) 55%);
  color: #eef5f0;
}
.kicker { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; margin-bottom: 0.5rem; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); max-width: 18ch; }
.hero-copy > p:last-child { margin-top: 0.5rem; opacity: 0.8; }

.route-nav {
  display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.9rem 1.5rem;
  background: var(--pine); color: #e8efe9; font-size: 0.85rem;
  position: sticky; top: var(--header-h, 58px); z-index: 20;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.route-nav::-webkit-scrollbar { display: none; }
.route-nav a { white-space: nowrap; opacity: 0.75; padding: 0.35rem 0.6rem; border-radius: 999px; }
.route-nav a:hover { opacity: 1; background: rgba(255,255,255,0.1); }

.stage {
  min-height: 90vh; padding: 4rem 1.5rem;
  display: flex; flex-direction: column; justify-content: center;
  border-bottom: 1px solid var(--line);
}
.stage.alt { background: var(--mist); }
.stage-num {
  font-family: "Newsreader", serif; color: var(--river);
  font-size: 1.4rem; margin-bottom: 1.5rem;
}
.stage-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.stage-grid.reverse { direction: rtl; }
.stage-grid.reverse > * { direction: ltr; }
.stage h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1rem; color: var(--pine); }
.stage p { color: var(--mute); max-width: 34rem; }
.cap {
  margin-top: 1.2rem !important; font-size: 0.85rem !important;
  color: var(--river) !important; font-style: italic;
  font-family: "Newsreader", serif;
}
.stage figure {
  border-radius: 16px; overflow: hidden;
  box-shadow: 18px 18px 0 rgba(22, 53, 46, 0.1);
}
.stage img { width: 100%; height: min(58vh, 480px); object-fit: cover; }
.stage figcaption {
  padding: 0.7rem 1rem; background: #fff; font-size: 0.85rem; color: var(--mute);
}

.control { padding: 4.5rem 1.5rem; background: var(--pine); color: #eef5f0; }
.control h2 { margin-bottom: 1.5rem; font-size: clamp(2rem, 4vw, 3rem); }
.control-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.control-card {
  position: relative; border-radius: 14px; overflow: hidden; min-height: 260px;
  background: rgba(255,255,255,0.06);
}
.control-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.45; transition: opacity 0.4s, transform 0.6s;
  transform: scale(1.06);
}
.control-card:hover img { opacity: 0.75; transform: scale(1); }
.control-card > div {
  position: relative; z-index: 1; height: 100%; padding: 1.3rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(transparent, rgba(10,30,26,0.92));
}
.control-card i {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid var(--river); margin-bottom: 0.7rem;
  position: relative; transition: background 0.3s, border-color 0.3s;
}
.control-card.in i, .control-card:hover i {
  background: var(--river); border-color: var(--river);
}
.control-card.in i::after, .control-card:hover i::after {
  content: ""; position: absolute; left: 0.22rem; top: 0.05rem;
  width: 0.28rem; height: 0.5rem; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.control-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.control-card p { color: rgba(238,245,240,0.72); font-size: 0.9rem; }

.terms { padding: 4.5rem 1.5rem; background: var(--mist); }
.terms-sheet {
  max-width: 900px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 2.2rem;
}
.stamp {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--river); border: 1px solid var(--river);
  padding: 0.25rem 0.55rem; border-radius: 999px; margin-bottom: 1rem;
}
.terms h2 { margin-bottom: 1.5rem; font-size: clamp(2rem, 4vw, 3rem); color: var(--pine); }
.terms-columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin-bottom: 1.8rem;
}
.terms-columns h3 {
  font-family: "Newsreader", serif; font-weight: 400; font-size: 1.45rem;
  color: var(--pine); margin-bottom: 0.35rem;
}
.terms-columns p { color: var(--mute); font-size: 0.95rem; }
.legal {
  color: var(--mute);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}
.legal li { margin: 0; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s ease var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.stage.reveal { opacity: 1; transform: none; }
.stage.reveal .stage-grid > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.stage.reveal.in .stage-grid > * { opacity: 1; transform: none; }
.stage.reveal.in .stage-grid > *:last-child { transition-delay: 0.12s; }

@media (max-width: 900px) {
  .stage-grid, .stage-grid.reverse, .control-grid, .terms-columns { grid-template-columns: 1fr; direction: ltr; }
  .stage-grid figure { order: -1; }
  .stage { min-height: auto; padding: 3rem 1.25rem; }
  .stage img { height: 260px; }
  .stage figure { box-shadow: 10px 10px 0 rgba(22, 53, 46, 0.18); }
  .hero { height: 70vh; min-height: 420px; }
  .top .btn-max { padding: 0.55rem 0.9rem; font-size: 0.85rem; margin-top: 0; }
}
