/* Home — travel-first left panel: ohang as journey stops */

.atmosphere {
  isolation: isolate;
  color: oklch(98% 0.01 95);
  overflow: hidden;
  min-width: 0;
}

.atmosphere__mark {
  display: none !important;
}

.atmosphere__img {
  transform: scale(1.04);
  animation: photo-breathe 18s ease-in-out infinite alternate;
}

.atmosphere__mist {
  position: absolute;
  inset: -10%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 20% 80%, oklch(90% 0.02 95 / 0.28), transparent 60%),
    radial-gradient(ellipse 55% 40% at 75% 30%, oklch(85% 0.03 200 / 0.18), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 55%, oklch(92% 0.01 95 / 0.12), transparent 50%);
  animation: mist-drift 22s ease-in-out infinite alternate;
}

.atmosphere__veil {
  z-index: 2;
  background:
    linear-gradient(180deg, oklch(16% 0.03 250 / 0.55) 0%, transparent 28%, transparent 55%, oklch(16% 0.03 250 / 0.7) 100%),
    linear-gradient(90deg, oklch(16% 0.03 250 / 0.35) 0%, transparent 35%);
}

.atmosphere__content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-width: 0;
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 44px) clamp(28px, 3.5vw, 40px);
  pointer-events: none;
}

.atmosphere__content a,
.atmosphere__content .journey__stop {
  pointer-events: auto;
}

.atmosphere__brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.atmosphere__wordmark {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: oklch(98% 0.008 95);
  text-shadow: 0 2px 24px oklch(16% 0.03 250 / 0.35);
}

.atmosphere__wordmark span {
  display: block;
  margin-top: 10px;
  font-weight: 400;
  font-size: 0.34em;
  letter-spacing: 0.04em;
  line-height: 1.35;
  opacity: 0.9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.atmosphere__seal {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1.5px solid oklch(94% 0.01 95 / 0.7);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: oklch(97% 0.008 95);
  background: oklch(18% 0.03 250 / 0.28);
  backdrop-filter: blur(6px);
  letter-spacing: 0;
  line-height: 1;
  transform: none;
  opacity: 1;
}

.atmosphere__travel {
  margin: clamp(20px, 2.8vh, 32px) 0 0;
  padding: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: oklch(94% 0.015 95 / 0.92);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Journey map */
.journey {
  position: relative;
  flex: 1;
  margin: clamp(18px, 3vh, 36px) 0 clamp(16px, 2vh, 24px);
  min-height: 260px;
  min-width: 0;
  overflow: hidden;
}

.journey__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.journey__path {
  fill: none;
  stroke: oklch(92% 0.02 95 / 0.55);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  stroke-dashoffset: 240;
  animation: path-draw 2.8s ease-out forwards, path-drift 14s linear 2.8s infinite;
}

.journey__path-soft {
  fill: none;
  stroke: oklch(72% 0.05 168 / 0.35);
  stroke-width: 6;
  stroke-linecap: round;
  filter: blur(4px);
  opacity: 0;
  animation: fade-in 1.2s ease 0.6s forwards;
}

.journey__stops {
  position: absolute;
  inset: 0;
}

.journey__stop {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(148px, 48%);
  opacity: 0;
  transform: translateY(8px);
  animation: stop-in 0.7s ease forwards;
}

.journey__stop:nth-child(1) { left: 2%;  top: 6%;  animation-delay: 0.55s; }
.journey__stop:nth-child(2) { right: 2%; left: auto; top: 10%; animation-delay: 0.85s; max-width: min(148px, 50%); }
.journey__stop:nth-child(3) { right: 2%; left: auto; top: 42%; animation-delay: 1.15s; max-width: min(148px, 50%); }
.journey__stop:nth-child(4) { left: 2%;  top: 52%; animation-delay: 1.45s; }
.journey__stop:nth-child(5) { left: 28%; top: 74%; animation-delay: 1.75s; max-width: min(160px, 55%); }

.journey__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 11px 7px 8px;
  background: oklch(16% 0.028 250 / 0.55);
  border: 1px solid oklch(92% 0.01 95 / 0.22);
  backdrop-filter: blur(10px);
  border-radius: 2px;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.journey__stop.is-active .journey__chip {
  background: oklch(20% 0.04 168 / 0.72);
  border-color: oklch(78% 0.06 168 / 0.65);
  box-shadow: 0 0 0 1px oklch(72% 0.05 168 / 0.25), 0 8px 28px oklch(16% 0.03 250 / 0.35);
}

.journey__glyph {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: oklch(98% 0.01 95);
  flex-shrink: 0;
}

.journey__stop[data-el="wood"]  .journey__glyph { background: oklch(42% 0.08 145); }
.journey__stop[data-el="fire"]  .journey__glyph { background: oklch(52% 0.12 45); }
.journey__stop[data-el="earth"] .journey__glyph { background: oklch(48% 0.06 75); }
.journey__stop[data-el="metal"] .journey__glyph { background: oklch(42% 0.03 95); }
.journey__stop[data-el="water"] .journey__glyph { background: oklch(42% 0.06 230); }

.journey__place {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: oklch(98% 0.008 95);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.journey__el {
  font-family: ui-monospace, "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: oklch(90% 0.02 95 / 0.72);
  padding-left: 2px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.journey__stop.is-active .journey__el {
  color: oklch(78% 0.06 168);
}

.atmosphere__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  margin: auto 0 0;
  min-width: 0;
}

.atmosphere__support {
  margin: 0;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  line-height: 1.55;
  font-weight: 400;
  color: oklch(94% 0.012 95 / 0.9);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.atmosphere__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  color: oklch(98% 0.01 95);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.atmosphere__cta > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.atmosphere__cta-arrow {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid oklch(92% 0.02 95 / 0.45);
  border-radius: 50%;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.atmosphere__cta:hover .atmosphere__cta-arrow {
  background: oklch(98% 0.01 95 / 0.12);
  border-color: oklch(98% 0.01 95 / 0.75);
  transform: translateX(3px);
}

.atmosphere__verse {
  display: none;
}

.home-kicker {
  margin: 10px 0 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-lead {
  margin: -4px 0 18px;
  max-width: 36em;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

h2.subtitle {
  margin-bottom: 10px;
  border-bottom-color: var(--border);
}

h2.subtitle::after {
  background: var(--accent);
}

.plan-card:has(input[value="free"]:checked) {
  background:
    linear-gradient(
      160deg,
      var(--surface) 60%,
      oklch(96% 0.02 170)
    );
  border-color: oklch(72% 0.06 170);
}

.mode-card span,
.plan-card p {
  min-height: 2.4em;
}

@keyframes mist-drift {
  from { transform: translate3d(-2%, 1%, 0) scale(1); }
  to   { transform: translate3d(3%, -2%, 0) scale(1.05); }
}

@keyframes photo-breathe {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(-1.2%, 0.8%, 0); }
}

@keyframes path-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes path-drift {
  to { stroke-dashoffset: -120; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes stop-in {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .atmosphere__content {
    min-height: 52vh;
    padding: 28px 16px 22px;
  }

  .atmosphere__wordmark {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .journey {
    min-height: 200px;
    margin: 14px 0 12px;
  }

  .journey__stop:nth-child(2),
  .journey__stop:nth-child(3) {
    right: 4%;
    left: auto;
  }

  .atmosphere__travel {
    font-size: 0.9rem;
    margin-top: 14px;
  }

  .atmosphere__support {
    font-size: 0.85rem;
  }

  .home-lead {
    margin-bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__img,
  .atmosphere__mist,
  .journey__path,
  .journey__path-soft,
  .journey__stop {
    animation: none !important;
  }

  .atmosphere__img {
    transform: scale(1.05);
  }

  .journey__path {
    stroke-dashoffset: 0;
  }

  .journey__path-soft,
  .journey__stop {
    opacity: 1;
    transform: none;
  }
}
