@font-face {
  font-family: "Glossy Display";
  src: url("./assets/fonts/glossy-display-light.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Glossy Display";
  src: url("./assets/fonts/glossy-display-italic.otf") format("opentype");
  font-display: swap;
  font-style: italic;
  font-weight: 300;
}

@font-face {
  font-family: "MNews Ming";
  src: url("./assets/fonts/mnews-light.otf") format("opentype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

:root {
  --night: #120f0d;
  --night-soft: rgba(18, 15, 13, 0.74);
  --paper: #f2e9dc;
  --paper-soft: rgba(242, 233, 220, 0.74);
  --paper-faint: rgba(242, 233, 220, 0.52);
  --line: rgba(242, 233, 220, 0.16);
  --moss: #6f8a73;
  --clay: #c1775a;
  --blue: #8db8c0;
  --butter: #e5c77f;
  --shadow: rgba(6, 5, 4, 0.34);
  --font-cn-display: "MNews Ming", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --font-en-display: "Glossy Display", "Didot", "Bodoni 72", "Times New Roman", serif;
  --font-ui: "MNews Ming", "PingFang SC", "Microsoft YaHei", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--night);
  font-family: var(--font-ui);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(242, 233, 220, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 233, 220, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, black, transparent 74%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.showcase-shell {
  min-height: 100vh;
  overflow: hidden;
  max-width: 100vw;
  background:
    radial-gradient(circle at 12% 72%, rgba(111, 138, 115, 0.2), transparent 24rem),
    radial-gradient(circle at 82% 78%, rgba(193, 119, 90, 0.18), transparent 22rem),
    var(--night);
}

.hero {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100vw;
  min-height: 88vh;
  isolation: isolate;
  overflow: hidden;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-video {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08) brightness(0.72);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(18, 15, 13, 0.64), rgba(18, 15, 13, 0.16) 38%, rgba(18, 15, 13, 0.92)),
    radial-gradient(circle at 72% 28%, rgba(141, 184, 192, 0.26), transparent 22rem),
    radial-gradient(circle at 22% 32%, rgba(229, 199, 127, 0.14), transparent 18rem);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42vh;
  background: linear-gradient(180deg, transparent, var(--night));
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 22px 34px;
  transition: background 240ms ease, border-color 240ms ease, padding 240ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid rgba(242, 233, 220, 0.1);
  background: rgba(18, 15, 13, 0.78);
  backdrop-filter: blur(18px);
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(242, 233, 220, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--paper) 0 2px, transparent 3px),
    conic-gradient(from 120deg, var(--moss), var(--blue), var(--clay), var(--moss));
  box-shadow: 0 0 22px rgba(141, 184, 192, 0.32);
}

.desktop-nav {
  justify-self: center;
  display: inline-flex;
  gap: 3px;
  border: 1px solid rgba(242, 233, 220, 0.12);
  border-radius: 999px;
  padding: 5px;
  background: rgba(10, 8, 7, 0.5);
  backdrop-filter: blur(16px);
}

.desktop-nav a {
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--paper-faint);
  font-size: 13px;
  font-weight: 300;
  transition: background 180ms ease, color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  outline: 0;
  color: var(--paper);
  background: rgba(242, 233, 220, 0.1);
}

.header-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 300;
  transition: transform 190ms ease, background 190ms ease, border-color 190ms ease, color 190ms ease;
}

.header-cta {
  min-height: 38px;
  padding: 0 18px;
  color: var(--night);
  background: var(--paper);
  font-size: 13px;
}

.header-cta:hover,
.header-cta:focus-visible,
.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible {
  outline: 0;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
}

.mobile-menu {
  display: none;
}

.hero-content {
  align-self: center;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 84px;
  text-align: center;
}

.kicker {
  color: var(--butter);
  font-family: var(--font-en-display);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px auto 0;
  max-width: 850px;
  color: var(--paper);
  font-family: var(--font-cn-display);
  font-size: 60px;
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--paper-soft);
  font-size: 17px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 0 22px;
  font-size: 14px;
}

.primary-action {
  color: var(--night);
  background: var(--paper);
  box-shadow: 0 20px 44px rgba(6, 5, 4, 0.24);
}

.secondary-action {
  border: 1px solid rgba(242, 233, 220, 0.24);
  color: var(--paper);
  background: rgba(242, 233, 220, 0.08);
  backdrop-filter: blur(14px);
}

.hero-artwork {
  position: absolute;
  right: 34px;
  bottom: 30px;
  display: grid;
  grid-template-columns: 82px minmax(0, 190px);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(242, 233, 220, 0.16);
  border-radius: 22px;
  padding: 10px;
  background: rgba(18, 15, 13, 0.56);
  box-shadow: 0 18px 48px var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-artwork img {
  display: block;
  width: 82px;
  height: 62px;
  border-radius: 15px;
  object-fit: cover;
}

.hero-artwork span {
  display: block;
  color: var(--paper-faint);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.hero-artwork strong {
  display: block;
  margin-top: 5px;
  color: var(--paper);
  font-family: var(--font-cn-display);
  font-size: 16px;
  font-weight: 300;
}

.hero-artwork p {
  margin-top: 3px;
  color: var(--paper-faint);
  font-size: 12px;
}

.experience,
.system-map {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.experience {
  padding: 58px 0 46px;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 660px;
}

.section-heading h2,
.map-copy h2 {
  color: var(--paper);
  font-family: var(--font-cn-display);
  font-size: 44px;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.entry-tile {
  position: relative;
  display: grid;
  min-height: 320px;
  align-content: end;
  overflow: hidden;
  border: 1px solid rgba(242, 233, 220, 0.12);
  border-radius: 8px;
  padding: 22px;
  background: rgba(242, 233, 220, 0.08);
  box-shadow: 0 24px 60px rgba(6, 5, 4, 0.16);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.entry-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.84;
  transition: transform 420ms ease, opacity 220ms ease;
}

.entry-tile--kiosk::before {
  background:
    linear-gradient(180deg, transparent, rgba(18, 15, 13, 0.86)),
    url("../04-kiosk/assets/artworks/world-forest-1997.png") center / cover;
}

.entry-tile--mobile::before {
  background:
    radial-gradient(circle at 68% 22%, rgba(229, 199, 127, 0.48), transparent 20%),
    radial-gradient(circle at 28% 62%, rgba(141, 184, 192, 0.44), transparent 18%),
    linear-gradient(145deg, rgba(63, 38, 58, 0.86), rgba(21, 38, 34, 0.9));
}

.entry-tile--hardware::before {
  background:
    linear-gradient(135deg, rgba(242, 233, 220, 0.06) 0 25%, transparent 26% 49%, rgba(242, 233, 220, 0.08) 50% 52%, transparent 53%),
    radial-gradient(circle at 66% 36%, rgba(193, 119, 90, 0.46), transparent 19%),
    linear-gradient(150deg, rgba(53, 71, 61, 0.95), rgba(18, 15, 13, 0.92));
  background-size: 42px 42px, auto, auto;
}

.entry-tile:hover,
.entry-tile:focus-visible {
  outline: 0;
  border-color: rgba(242, 233, 220, 0.32);
  background: rgba(242, 233, 220, 0.12);
  transform: translateY(-4px);
}

.entry-tile:hover::before,
.entry-tile:focus-visible::before {
  opacity: 1;
  transform: scale(1.04);
}

.entry-index {
  position: absolute;
  left: 22px;
  top: 20px;
  color: rgba(242, 233, 220, 0.54);
  font-family: var(--font-en-display);
  font-size: 34px;
  font-weight: 300;
}

.entry-tile h3 {
  color: var(--paper);
  font-family: var(--font-cn-display);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.24;
}

.entry-tile p {
  margin-top: 10px;
  color: rgba(242, 233, 220, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.entry-tile b {
  margin-top: 20px;
  color: var(--butter);
  font-family: var(--font-cn-display);
  font-size: 13px;
  font-weight: 300;
}

.system-map {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 42px;
  align-items: start;
  padding: 58px 0 92px;
}

.map-copy {
  position: sticky;
  top: 104px;
}

.map-copy h2 {
  margin-top: 12px;
}

.map-copy p:last-child {
  margin-top: 18px;
  color: var(--paper-soft);
  font-size: 16px;
  line-height: 1.78;
}

.flow-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 112px;
  border: 1px solid rgba(242, 233, 220, 0.12);
  border-radius: 8px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(242, 233, 220, 0.08), rgba(242, 233, 220, 0.035));
}

.flow-list li::before {
  counter-increment: flow;
  content: "0" counter(flow);
  color: rgba(229, 199, 127, 0.78);
  font-family: var(--font-en-display);
  font-size: 34px;
  font-weight: 300;
}

.flow-list span {
  color: var(--paper);
  font-family: var(--font-cn-display);
  font-size: 20px;
  font-weight: 300;
}

.flow-list p {
  color: var(--paper-soft);
  font-size: 14px;
  line-height: 1.62;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding: 18px 20px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    justify-self: end;
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(242, 233, 220, 0.18);
    border-radius: 50%;
    background: rgba(18, 15, 13, 0.46);
  }

  .menu-button span {
    position: absolute;
    width: 17px;
    height: 1px;
    background: var(--paper);
    transition: transform 220ms ease;
  }

  .menu-button span:first-child {
    transform: translateY(-4px);
  }

  .menu-button span:last-child {
    transform: translateY(4px);
  }

  .menu-button.is-open span:first-child {
    transform: rotate(45deg);
  }

  .menu-button.is-open span:last-child {
    transform: rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    top: 74px;
    left: 18px;
    right: 18px;
    z-index: 9;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(242, 233, 220, 0.13);
    border-radius: 18px;
    padding: 10px;
    background: rgba(18, 15, 13, 0.92);
    box-shadow: 0 24px 70px rgba(6, 5, 4, 0.34);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 260ms ease, transform 260ms ease;
    backdrop-filter: blur(18px);
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    border-radius: 12px;
    padding: 13px 14px;
    color: var(--paper-soft);
    font-size: 15px;
    font-weight: 800;
  }

  .mobile-menu a:hover,
  .mobile-menu a:focus-visible {
    outline: 0;
    color: var(--paper);
    background: rgba(242, 233, 220, 0.08);
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .entry-grid,
  .system-map {
    grid-template-columns: 1fr;
  }

  .map-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero {
    align-content: center;
    min-height: auto;
    padding: 94px 0 30px;
  }

  .brand {
    font-size: 14px;
  }

  .hero-content {
    width: min(100% - 34px, 540px);
    align-self: auto;
    padding-top: 0;
  }

  .hero-content .kicker {
    max-width: 300px;
    margin: 0 auto;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero-content h1 {
    max-width: 300px;
    font-size: 26px;
    line-height: 1.16;
  }

  .hero-copy {
    max-width: 300px;
    font-size: 14px;
    word-break: break-all;
  }

  .hero-actions {
    display: grid;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-artwork {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 76px minmax(0, 1fr);
    width: calc(100vw - 34px);
    max-width: 356px;
    margin: 30px 17px 0;
    justify-self: start;
  }

  .experience,
  .system-map {
    width: min(100% - 34px, 540px);
  }

  .section-heading h2,
  .map-copy h2 {
    font-size: 25px;
    word-break: break-all;
  }

  .entry-tile {
    min-height: 270px;
  }

  .flow-list li {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .flow-list li::before {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
