/* 홈: 데스크톱은 장면마다 한 화면 리듬, 낮은 화면과 모바일은 자연스럽게 확장 */
.home-page main {
  padding: 0;
}

.home-scene {
  position: relative;
  min-height: calc(100svh - var(--site-header-height));
  display: grid;
  overflow: clip;
  isolation: isolate;
}

.home-hero {
  min-height: 100svh;
  background: var(--night);
}

.scene-media,
.scene-media img,
.scene-scrim,
.grid-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-media {
  z-index: -3;
}

.scene-media img {
  object-fit: cover;
}

.scene-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgb(6 7 10 / 90%) 0%, rgb(6 7 10 / 58%) 50%, rgb(6 7 10 / 34%) 100%),
    linear-gradient(0deg, rgb(6 7 10 / 92%) 0%, transparent 48%, rgb(6 7 10 / 28%) 100%);
}

.roles-scene .scene-scrim {
  background:
    linear-gradient(90deg, rgb(6 7 10 / 94%) 0%, rgb(6 7 10 / 72%) 48%, rgb(6 7 10 / 44%) 100%),
    linear-gradient(0deg, rgb(6 7 10 / 94%) 0%, transparent 60%);
}

.location-scene .scene-scrim {
  background: linear-gradient(90deg, rgb(6 7 10 / 94%) 0%, rgb(6 7 10 / 60%) 52%, rgb(6 7 10 / 45%) 100%);
}

.app-scene .scene-scrim {
  background:
    linear-gradient(90deg, rgb(6 7 10 / 94%) 0%, rgb(6 7 10 / 62%) 50%, rgb(6 7 10 / 46%) 100%),
    linear-gradient(0deg, rgb(6 7 10 / 82%), transparent 55%);
}

.recent-scene .scene-media img {
  object-position: center 52%;
  filter: saturate(0.82) contrast(1.04) brightness(0.76);
}

.recent-scene .scene-scrim {
  background:
    linear-gradient(90deg, rgb(5 14 24 / 90%) 0%, rgb(6 20 35 / 72%) 42%, rgb(6 20 35 / 58%) 66%, rgb(5 14 24 / 80%) 100%),
    linear-gradient(0deg, rgb(5 14 24 / 88%) 0%, rgb(5 14 24 / 24%) 56%, rgb(5 14 24 / 52%) 100%);
}

.journey-scene .scene-media img {
  object-position: center 48%;
  filter: saturate(0.78) contrast(1.05) brightness(0.82);
}

.journey-scene .scene-scrim {
  background:
    linear-gradient(90deg, rgb(6 15 25 / 84%) 0%, rgb(6 14 24 / 56%) 44%, rgb(6 10 18 / 60%) 70%, rgb(6 7 10 / 78%) 100%),
    linear-gradient(0deg, rgb(6 7 10 / 80%) 0%, rgb(6 7 10 / 12%) 56%, rgb(6 7 10 / 40%) 100%);
}

.ledger-scene .scene-media img { object-position: 62% center; filter: saturate(0.74) contrast(1.08) brightness(0.7); }
.ledger-scene .scene-scrim { background: linear-gradient(90deg, rgb(6 15 25 / 82%) 0%, rgb(6 18 31 / 52%) 43%, rgb(6 10 18 / 48%) 70%, rgb(6 7 10 / 72%) 100%), linear-gradient(0deg, rgb(6 7 10 / 82%) 0%, rgb(6 7 10 / 16%) 55%, rgb(6 7 10 / 36%) 100%); }
.grid-scene {
  background: #163a5f;
}

.grid-field {
  z-index: -2;
  opacity: 0.22;
  background-image:
    linear-gradient(rgb(255 255 255 / 12%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 12%) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, black, transparent 84%);
}

.recent-scene .grid-field {
  opacity: 0.16;
}

.journey-scene .grid-field {
  opacity: 0.12;
}

.scene-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 96px), 1280px);
  min-height: inherit;
  display: grid;
  align-content: center;
  padding-right: var(--rail-safe);
  padding-block: clamp(96px, 11svh, 132px) clamp(76px, 9svh, 108px);
}

.hero-shell {
  align-content: end;
  padding-top: calc(var(--site-header-height) + clamp(80px, 14svh, 150px));
  padding-bottom: clamp(72px, 10svh, 116px);
}

.split-scene {
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: clamp(54px, 7vw, 118px);
}

.scene-copy {
  max-width: 660px;
}

.scene-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: rgb(255 255 255 / 66%);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.scene-kicker > span {
  width: 28px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--signal);
}

.scene-copy h2,
.footer-scene-intro h2 {
  margin-bottom: 28px;
  color: var(--white);
  font-size: clamp(2.55rem, 4.6vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -0.065em;
}
.home-page :is(h1, h2, h3), .scene-kicker, .ledger-source, .location-grid small, .location-grid > p, .ledger-flow span { overflow-wrap: normal; word-break: keep-all; }
.location-copy > p.scene-kicker { max-width: none; color: rgb(255 255 255 / 66%); font-size: 12px; line-height: 1.4; }
.scene-copy > p:not(.scene-kicker, .journey-note) {
  max-width: 610px;
  color: rgb(255 255 255 / 72%);
  font-size: clamp(16px, 1.1vw, 19px);
  line-height: 1.7;
}
.hero-copy {
  max-width: 920px;
}

.hero-copy h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(3.75rem, 7vw, 7.1rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
}

.hero-promise {
  max-width: 700px;
  margin-bottom: 30px;
  color: rgb(255 255 255 / 74%);
  font-size: clamp(17px, 1.25vw, 21px);
}

.hero-promise strong {
  display: block;
  margin-bottom: 7px;
  color: var(--white);
  font-size: 1.08em;
}

.hero-anchor { margin-top: 14px; }

.hero-scope {
  position: absolute;
  right: var(--rail-safe);
  bottom: 32px;
  max-width: 460px;
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

.home-page .btn {
  min-height: 52px;
  padding-inline: 24px;
  border-radius: 9px;
}

.recent-scene .latest-posts-panel {
  min-height: 0;
  gap: 10px;
  padding: 26px 28px;
  border-color: rgb(255 255 255 / 9%);
  border-radius: 22px;
  background: rgb(10 11 14 / 91%);
  box-shadow: 0 28px 70px rgb(0 0 0 / 24%);
}

.recent-scene .latest-posts-status {
  min-height: 28px;
}

.recent-scene .latest-posts-panel::before {
  opacity: 0.08;
}

.recent-scene .latest-posts-panel:not(.has-cards) .latest-posts-viewport {
  height: 0;
  margin-block: 0;
  padding-block: 0;
}

.recent-scene .latest-post-card {
  border-color: rgb(255 255 255 / 9%);
  background: var(--night-raised);
}

.roles-shell {
  gap: 24px;
}

.roles-shell .scene-copy {
  max-width: 820px;
}

.roles-shell .scene-copy h2 {
  font-size: clamp(2.45rem, 4vw, 4.25rem);
}

.roles-scene .dual-role-rail {
  grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr);
}

.roles-scene .dual-role-rail::before,
.roles-scene .dual-role-rail::after {
  background: rgb(255 255 255 / 22%);
}

.roles-scene .role-lane {
  min-height: 238px;
  padding: 25px 28px;
  border-color: rgb(255 255 255 / 10%);
  background: rgb(20 22 27 / 92%);
}

.roles-scene .role-label {
  margin-bottom: 13px;
  border-color: rgb(30 111 239 / 32%);
  background: rgb(30 111 239 / 13%);
  color: #71a9ff;
}

.roles-scene .role-lane h3 {
  margin-bottom: 18px;
  color: var(--white);
  font-size: 21px;
}

.roles-scene .role-detail {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: var(--night-muted);
  font-size: 14px;
}

.roles-scene .role-lane ol {
  gap: 10px;
}

.roles-scene .role-lane li {
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-color: rgb(255 255 255 / 10%);
}

.roles-scene .role-lane li span {
  color: var(--night-text);
}

.roles-scene .role-lane li small {
  color: var(--night-muted);
}

.roles-scene .agreement-node {
  width: 118px;
  height: 118px;
  border-color: rgb(30 111 239 / 62%);
  background: var(--night);
  box-shadow: 0 0 0 10px rgb(10 11 14 / 74%);
}

.role-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.roles-scene .saved-signals {
  border-color: rgb(255 255 255 / 16%);
}

.roles-scene .saved-signals > div {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 14px 0;
  border-color: rgb(255 255 255 / 10%);
}

.roles-scene .saved-signals > div + div {
  padding-left: 18px;
  border-color: rgb(255 255 255 / 10%);
}

.roles-scene .saved-signals span {
  margin: 0;
  color: #71a9ff;
  font-size: 20px;
}

.roles-scene .saved-signals strong {
  color: var(--white);
  font-size: 14px;
}

.roles-scene .saved-signals p {
  margin: 0;
  color: var(--night-muted);
  font-size: 12px;
}

.proposal-preview {
  position: relative;
}

.proposal-preview summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 9px;
  background: var(--night-panel);
  color: var(--night-text);
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  list-style: none;
}

.proposal-preview summary::-webkit-details-marker {
  display: none;
}

.proposal-preview summary::after {
  content: "+";
  margin-left: 12px;
  color: #71a9ff;
}

.proposal-preview[open] {
  grid-column: 1 / -1;
}

.proposal-preview[open] summary::after {
  content: "−";
}

.proposal-preview .proposal-mini {
  width: min(360px, 100%);
  margin-top: 14px;
  border-color: rgb(255 255 255 / 12%);
}

.journey-layout {
  grid-template-columns: minmax(300px, 0.74fr) minmax(560px, 1.26fr);
}

.journey-note {
  max-width: 560px;
  color: rgb(255 255 255 / 68%);
  font-size: 14px;
}

.journey-board {
  padding: 34px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 22px;
  background: rgb(10 11 14 / 92%);
  box-shadow: 0 28px 70px rgb(0 0 0 / 20%);
}

.journey-board .journey-timeline {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.journey-board .journey-timeline .timeline-step {
  min-height: 225px;
  padding: 28px 13px 18px;
  border-color: rgb(255 255 255 / 10%);
}

.journey-board .journey-timeline .timeline-step::before {
  box-shadow: 0 0 0 5px var(--night), 0 0 0 6px var(--signal);
}

.journey-board .journey-timeline h3 {
  min-height: 48px;
  margin: 22px 0 10px;
  color: var(--white);
  font-size: 15px;
}

.journey-board .journey-timeline p {
  color: var(--night-muted);
  font-size: 12px;
}

.journey-board .lifecycle-exception {
  margin-top: 22px;
  padding: 18px 20px 18px 42px;
  border-color: rgb(255 255 255 / 12%);
  background: var(--night-raised);
  color: var(--night-text);
}

.journey-board .lifecycle-exception::before {
  top: 24px;
  left: 20px;
}

.journey-board .lifecycle-exception strong {
  color: var(--white);
  font-size: 14px;
}

.journey-board .lifecycle-exception p {
  color: var(--night-muted);
  font-size: 12px;
}

.journey-board .lifecycle-exception a {
  color: #71a9ff;
  font-size: 12px;
}

.location-scene .location-grid {
  min-height: 360px;
  padding: 42px;
  border-color: rgb(255 255 255 / 10%);
  background: rgb(20 22 27 / 92%);
  box-shadow: 0 28px 70px rgb(0 0 0 / 24%);
}

.location-scene .exact-point small,
.location-scene .location-grid > p {
  color: var(--night-muted);
}

.location-scene .location-grid > p strong {
  color: var(--white);
}

.location-scene .public-grid span {
  border-color: rgb(255 255 255 / 18%);
}

.location-scene .grid-arrow {
  color: rgb(255 255 255 / 42%);
}

.ledger-scene .ledger-layout {
  grid-template-columns: minmax(320px, 0.8fr) minmax(560px, 1.2fr);
}

.ledger-scene .evidence-ledger {
  padding: 34px;
  border-color: rgb(255 255 255 / 9%);
  background: rgb(10 11 14 / 55%);
  box-shadow: 0 28px 70px rgb(0 0 0 / 20%);
}

.ledger-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.ledger-flow span {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 14px;
  background: var(--night-raised);
  color: var(--night-text);
  font-size: 13px;
  font-weight: 780;
}

.ledger-flow span:nth-of-type(2) {
  border-color: rgb(30 111 239 / 48%);
  background: rgb(30 111 239 / 17%);
  color: #8bb7ff;
}

.ledger-flow i {
  color: var(--night-subtle);
  font-style: normal;
}

.ledger-scene .ledger-head {
  border-color: rgb(255 255 255 / 12%);
  color: var(--night-muted);
}

.ledger-scene .evidence-ledger li {
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px 0;
  border-color: rgb(255 255 255 / 10%);
}

.ledger-scene .evidence-ledger li > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.ledger-copy > p.scene-kicker { max-width: none; color: rgb(255 255 255 / 66%); font-size: 12px; line-height: 1.4; }

.ledger-copy > p.ledger-status {
  width: fit-content; margin: -2px 0 18px; padding: 8px 12px; border: 1px solid rgb(139 183 255 / 45%); border-radius: 7px;
  background: rgb(10 11 14 / 55%); color: #dbe8ff; font-size: 13px; font-weight: 800;
}
.ledger-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ledger-tags li {
  padding: 7px 11px;
  border: 1px solid rgb(30 111 239 / 34%);
  border-radius: 999px;
  background: rgb(30 111 239 / 11%);
  color: #8bb7ff;
  font-size: 11px;
  font-weight: 760;
}

.ledger-scene .evidence-ledger .ledger-key {
  color: #71a9ff;
}

.ledger-scene .evidence-ledger strong {
  color: var(--white);
}

.ledger-scene .evidence-ledger small {
  color: var(--night-muted);
}

.ledger-flow small { color: inherit; font-size: 10px; font-weight: 650; }

.ledger-scene .evidence-ledger li > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #71a9ff;
  font-size: 11px;
  font-weight: 760;
}

.ledger-source { color: #71a9ff; font-size: 11px; font-weight: 760; }

.ledger-result {
  margin: 16px 0 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.ledger-foot {
  margin: 18px 0 0;
  color: var(--night-subtle);
  font-size: 11px;
}

.home-scene.release-cta {
  padding: 0;
  background: var(--night);
}

.app-layout {
  grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.1fr);
}

.store-board {
  padding: 34px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-radius: 22px;
  background: rgb(20 22 27 / 92%);
  box-shadow: 0 28px 70px rgb(0 0 0 / 22%);
}

.store-board > div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 2px 16px;
  align-items: center;
  min-height: 88px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--night-raised);
}

.store-board > div + div {
  margin-top: 14px;
}

.store-symbol {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 12px;
  color: var(--night-muted);
}

.store-board strong {
  color: var(--white);
  font-size: 17px;
}

.store-board small {
  color: var(--night-muted);
  font-size: 12px;
}

.store-board > p {
  margin: 18px 0 0;
  color: var(--night-subtle);
  font-size: 11px;
}

.home-footer-scene {
  min-height: calc(100svh - var(--site-header-height));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(110px, 16svh, 170px);
  background: var(--night-deep);
}

.footer-scene-intro {
  padding-right: var(--rail-safe);
  padding-bottom: clamp(68px, 10svh, 110px);
}

.footer-scene-intro h2 {
  max-width: 760px;
  margin: 0;
}

.home-footer-scene site-footer {
  margin-top: auto;
}

/* 데스크톱 장면 rail */
.scene-rail {
  position: fixed;
  z-index: 80;
  top: 50%;
  right: 26px;
  width: 178px;
  padding: 16px 10px;
  transform: translateY(-50%);
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.scene-rail:hover,
.scene-rail:focus-within {
  border-color: rgb(255 255 255 / 8%);
  background: rgb(10 11 14 / 82%);
  backdrop-filter: blur(16px);
}

.scene-rail > p {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin: 0 4px 7px;
  color: rgb(255 255 255 / 54%);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.scene-rail > p strong {
  color: rgb(255 255 255 / 82%);
}

.scene-rail ol {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scene-rail a {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr 30px;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 56%);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.scene-rail a::after {
  content: "";
  width: 20px;
  height: 3px;
  justify-self: end;
  border-radius: 999px;
  background: rgb(255 255 255 / 30%);
  transition: width 180ms ease, background-color 180ms ease;
}

.scene-rail a span {
  opacity: 0;
  text-align: right;
  transform: translateX(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.scene-rail:hover a span,
.scene-rail:focus-within a span,
.scene-rail a[aria-current] span {
  opacity: 1;
  transform: none;
}

.scene-rail a[aria-current] {
  color: var(--white);
}

.scene-rail a[aria-current]::after {
  width: 30px;
  background: var(--signal);
}

.scene-nav-mobile,
.scene-nav-mobile-spacer {
  display: none;
}
