:root {
  color-scheme: dark;
  --bg: #080b10;
  --bg-soft: #10151c;
  --panel: rgba(14, 18, 24, 0.86);
  --panel-strong: rgba(20, 25, 32, 0.96);
  --ink: #fff4cf;
  --muted: #c8b985;
  --quiet: #90845f;
  --gold: #f0c773;
  --teal: #6bd0c6;
  --red: #e9785f;
  --blue: #77a8ff;
  --line: rgba(240, 199, 115, 0.28);
  --line-soft: rgba(240, 199, 115, 0.14);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.44);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(107, 208, 198, 0.12), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(233, 120, 95, 0.1), transparent 24%),
    linear-gradient(180deg, #080b10 0%, #0d1118 42%, #080b10 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(240, 199, 115, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 199, 115, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 78%);
  content: "";
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255, 244, 207, 0.48) 1px, transparent 1.5px),
    radial-gradient(circle, rgba(107, 208, 198, 0.4) 1px, transparent 1.5px);
  background-position:
    10px 20px,
    56px 72px;
  background-size:
    132px 132px,
    190px 190px;
  opacity: 0.24;
  content: "";
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: #05070a;
  color: var(--ink);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.brand,
.home-nav,
.hero-actions,
.hero-metrics,
.home-filter,
.home-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, var(--gold) 48%, var(--gold) 52%, transparent 53%),
    linear-gradient(transparent 47%, var(--gold) 48%, var(--gold) 52%, transparent 53%);
  box-shadow: 0 0 0 8px rgba(240, 199, 115, 0.05);
}

.home-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.home-nav,
.hero-metrics,
.poster-stage {
  scrollbar-width: none;
}

.home-nav::-webkit-scrollbar,
.hero-metrics::-webkit-scrollbar,
.poster-stage::-webkit-scrollbar {
  display: none;
}

.home-nav a,
.secondary-action,
.home-filter button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.58);
  color: var(--ink);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.home-nav a:hover,
.home-nav a:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible,
.home-filter button:hover,
.home-filter button:focus-visible {
  border-color: rgba(240, 199, 115, 0.78);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 34px;
  align-items: center;
  min-height: 560px;
  padding: 36px 0 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
}

.hero-lead {
  max-width: 740px;
  margin: 26px 0 0;
  color: #e4d4a3;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 800;
  line-height: 1.9;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action {
  border: 1px solid rgba(240, 199, 115, 0.9);
  border-radius: 999px;
  background: var(--gold);
  color: #11100b;
  padding: 13px 18px;
  font-weight: 1000;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(240, 199, 115, 0.22);
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-metrics span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.52);
  color: var(--muted);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 900;
}

.hero-metrics strong {
  color: var(--ink);
  font-size: 16px;
}

.poster-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  justify-self: end;
  width: min(390px, 100%);
  transform: translateY(var(--scroll-shift, 0)) rotate(-1.5deg);
}

.poster-stage img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(240, 199, 115, 0.34);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.poster-stage img:nth-child(2),
.poster-stage img:nth-child(4) {
  transform: translateY(36px);
}

.current-hub,
.purpose-panel,
.entry-panel,
.roadmap,
.policy-panel {
  margin: 0 0 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(107, 208, 198, 0.08), transparent 42%),
    var(--panel);
  padding: 22px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) 1fr;
  gap: 6px 24px;
  align-items: end;
  margin-bottom: 16px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.policy-panel h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
}

.section-heading p:not(.eyebrow),
.policy-grid p {
  margin: 0;
  color: #ddcc9b;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.8;
}

.feature-hub {
  display: grid;
  grid-template-columns: minmax(190px, 270px) minmax(0, 1fr);
  gap: 22px;
  border: 1px solid rgba(240, 199, 115, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(233, 120, 95, 0.14), transparent 48%),
    rgba(5, 7, 10, 0.6);
  padding: 16px;
  text-decoration: none;
}

.feature-hub:hover,
.feature-hub:focus-visible {
  border-color: rgba(240, 199, 115, 0.8);
  outline: none;
}

.feature-art img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(240, 199, 115, 0.28);
  border-radius: var(--radius);
  object-fit: cover;
}

.feature-body {
  display: grid;
  align-content: center;
  gap: 16px;
}

.status-pill,
.roadmap-tag {
  justify-self: start;
  border: 1px solid rgba(107, 208, 198, 0.48);
  border-radius: 999px;
  color: var(--teal);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
}

.feature-body h3 {
  max-width: 760px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.16;
}

.feature-body p {
  max-width: 780px;
  margin: 0;
  color: #e0ce9b;
  font-weight: 780;
  line-height: 1.85;
}

.feature-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.feature-stats div {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(8, 11, 16, 0.64);
  padding: 12px;
}

.feature-stats dt {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 1000;
}

.feature-stats dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 1000;
}

.home-filter {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.home-filter button {
  cursor: pointer;
}

.home-filter button.is-active {
  border-color: var(--gold);
  background: rgba(240, 199, 115, 0.16);
}

.purpose-grid,
.entry-grid,
.roadmap-grid,
.policy-grid {
  display: grid;
  gap: 10px;
}

.purpose-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.purpose-grid a,
.entry-grid a,
.roadmap-grid article {
  display: grid;
  align-content: start;
  min-height: 148px;
  border: 1px solid rgba(240, 199, 115, 0.22);
  border-radius: var(--radius);
  background: rgba(5, 7, 10, 0.54);
  padding: 14px;
  text-decoration: none;
}

.purpose-grid a {
  gap: 10px;
}

.entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.entry-grid a {
  gap: 9px;
  min-height: 132px;
  background:
    linear-gradient(145deg, rgba(107, 208, 198, 0.08), transparent 48%),
    rgba(5, 7, 10, 0.54);
}

.purpose-grid a.is-hidden {
  display: none;
}

.purpose-grid a:hover,
.purpose-grid a:focus-visible,
.entry-grid a:hover,
.entry-grid a:focus-visible {
  border-color: rgba(240, 199, 115, 0.76);
  transform: translateY(-2px);
  outline: none;
}

.purpose-grid span,
.entry-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
}

.purpose-grid strong,
.entry-grid strong {
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 22px;
  line-height: 1.26;
}

.purpose-grid small,
.entry-grid small,
.roadmap-grid p {
  color: #d8c790;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.65;
}

.roadmap-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.roadmap-grid article {
  gap: 10px;
}

.roadmap-grid h3 {
  font-size: 24px;
  line-height: 1.22;
}

.roadmap-grid p {
  margin: 0;
}

.franchise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.mini-hub {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(240, 199, 115, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(107, 208, 198, 0.12), transparent 42%),
    rgba(5, 7, 10, 0.6);
  color: var(--ink);
  text-decoration: none;
}

.mini-hub:hover,
.mini-hub:focus-visible {
  border-color: rgba(240, 199, 115, 0.78);
  transform: translateY(-2px);
  outline: none;
}

.mini-hub img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.mini-hub-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.mini-hub-body h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
}

.mini-hub-body p,
.mini-hub-body small {
  margin: 0;
  color: #dccb9a;
  font-weight: 780;
  line-height: 1.7;
}

.mini-hub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-hub-meta span {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(8, 11, 16, 0.58);
  color: var(--muted);
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 1000;
}

.franchise-page .hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.82fr);
  min-height: 500px;
}

.franchise-page .hero h1 {
  font-size: clamp(40px, 5vw, 70px);
}

.poster-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(430px, 100%);
  justify-self: end;
}

.poster-strip img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(240, 199, 115, 0.3);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.poster-strip img:first-child {
  grid-row: span 2;
}

.poster-strip img:nth-child(2),
.poster-strip img:nth-child(3) {
  aspect-ratio: 16 / 11;
}

.route-board,
.source-panel,
.faq-strip {
  margin: 0 0 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(119, 168, 255, 0.08), transparent 40%),
    var(--panel);
  padding: 22px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.24);
}

.lane-grid,
.timeline-list,
.source-list,
.faq-grid {
  display: grid;
  gap: 10px;
}

.lane-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lane-card,
.timeline-item,
.source-list a,
.faq-grid article {
  border: 1px solid rgba(240, 199, 115, 0.2);
  border-radius: var(--radius);
  background: rgba(5, 7, 10, 0.56);
  padding: 14px;
}

.lane-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
}

.lane-card h3,
.timeline-item h3,
.faq-grid h3 {
  font-size: 24px;
  line-height: 1.22;
}

.lane-card ol,
.timeline-item ul {
  margin: 0;
  padding-left: 20px;
  color: #dac995;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.75;
}

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

.timeline-item {
  display: grid;
  gap: 10px;
}

.timeline-item .year {
  color: var(--gold);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.timeline-item p,
.faq-grid p,
.source-panel p {
  margin: 0;
  color: #dccb9a;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.75;
}

.source-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-list a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.5;
  text-decoration: none;
}

.source-list a:hover,
.source-list a:focus-visible {
  border-color: rgba(240, 199, 115, 0.78);
  outline: none;
}

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

.policy-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) 1fr;
  gap: 18px;
  align-items: start;
}

.policy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-grid p {
  border-left: 2px solid rgba(240, 199, 115, 0.42);
  padding-left: 14px;
}

.policy-grid a {
  color: var(--ink);
  font-weight: 1000;
  text-underline-offset: 3px;
}

.home-footer {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px 0 36px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
}

.home-footer a {
  color: var(--muted);
  text-decoration: none;
}

.home-footer a:hover,
.home-footer a:focus-visible {
  color: var(--ink);
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .poster-stage img {
    animation: posterFloat 7s ease-in-out infinite;
  }

  .poster-stage img:nth-child(2) {
    animation-delay: -1.2s;
  }

  .poster-stage img:nth-child(3) {
    animation-delay: -2.4s;
  }

  .poster-stage img:nth-child(4) {
    animation-delay: -3.6s;
  }
}

@keyframes posterFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 28px;
  }

  .poster-stage {
    width: min(620px, 100%);
    margin: 0 auto;
  }

  .section-heading,
  .policy-panel {
    grid-template-columns: 1fr;
  }

  .purpose-grid,
  .entry-grid,
  .roadmap-grid,
  .franchise-grid,
  .lane-grid,
  .timeline-list,
  .source-list,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .home-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0;
  }

  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .home-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .home-nav a,
  .secondary-action,
  .home-filter button {
    flex: 0 0 auto;
    padding: 9px 11px;
    font-size: 12px;
  }

  .hero {
    gap: 22px;
    padding: 18px 0 24px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 40px);
    line-height: 1.08;
  }

  .hero-lead {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.62;
  }

  .hero-actions {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 16px;
  }

  .primary-action,
  .secondary-action {
    padding: 11px 12px;
    font-size: 13px;
    text-align: center;
  }

  .hero-metrics {
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 4px;
  }

  .hero-metrics span {
    flex: 0 0 auto;
    padding: 7px 10px;
  }

  .poster-stage {
    display: flex;
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    transform: none;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
  }

  .poster-stage img {
    flex: 0 0 min(30vw, 118px);
    width: min(30vw, 118px);
    max-width: min(30vw, 118px);
    scroll-snap-align: start;
  }

  .poster-stage img:nth-child(2),
  .poster-stage img:nth-child(4) {
    transform: none;
  }

  .franchise-page .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .franchise-page .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .franchise-page .hero-actions a {
    width: 100%;
  }

  .poster-strip {
    display: flex;
    width: min(100%, calc(100vw - 20px));
    gap: 8px;
    overflow-x: auto;
    justify-self: stretch;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
  }

  .poster-strip img,
  .poster-strip img:first-child,
  .poster-strip img:nth-child(2),
  .poster-strip img:nth-child(3) {
    flex: 0 0 min(58vw, 210px);
    width: min(58vw, 210px);
    aspect-ratio: 2 / 3;
    scroll-snap-align: start;
  }

  .current-hub,
  .purpose-panel,
  .entry-panel,
  .roadmap,
  .policy-panel,
  .route-board,
  .source-panel,
  .faq-strip {
    padding: 16px;
  }

  .feature-hub,
  .purpose-grid,
  .entry-grid,
  .roadmap-grid,
  .franchise-grid,
  .lane-grid,
  .timeline-list,
  .source-list,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .feature-art {
    width: min(280px, 100%);
    margin: 0 auto;
  }

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