:root {
  color-scheme: dark;
  --ink: #f4efe4;
  --muted: #b9ad9a;
  --soft: #d8cdbd;
  --charcoal: #0b0a08;
  --charcoal-2: #17120d;
  --line: rgba(244, 239, 228, 0.18);
  --red: #e33d25;
  --green: #88d16a;
  --cobalt: #3867ff;
  --paper: #eee4d2;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--charcoal);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  text-rendering: geometricPrecision;
}

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

main {
  overflow: visible;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 32px 24px 42px;
  background: #0d0b08;
  isolation: isolate;
  scroll-snap-align: start;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to bottom, rgba(11, 10, 8, 0), var(--charcoal));
  z-index: 1;
  pointer-events: none;
}

#nomadCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.topbar {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mark {
  position: relative;
  isolation: isolate;
  width: 60px;
  height: 60px;
  display: inline-grid;
  place-items: center;
  background: var(--cobalt);
  color: var(--charcoal);
  font-weight: 900;
  font-size: 1.08rem;
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(244, 239, 228, 0.16);
  animation: mark-breathe 4.2s ease-in-out infinite;
}

.mark span {
  position: absolute;
  inset: 7px 5px 5px 7px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 10, 8, 0.75);
  background:
    linear-gradient(135deg, rgba(56, 103, 255, 0.16), transparent 46%),
    var(--ink);
  box-shadow: inset -5px -5px 0 rgba(56, 103, 255, 0.18);
}

.mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  background: var(--green);
  box-shadow: -9px -9px 0 var(--red);
  animation: mark-corner 3s steps(2, end) infinite;
}

.mark:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(11, 10, 8, 0.48);
  backdrop-filter: blur(16px);
}

.nav-links a,
.nav-menu-trigger {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 0;
  color: var(--soft);
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--paper);
  color: var(--charcoal);
  outline: none;
}

.nav-menu {
  position: relative;
}

.nav-menu-trigger {
  gap: 7px;
}

.nav-menu-trigger span {
  color: var(--green);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.nav-menu-trigger:hover,
.nav-menu-trigger:focus-visible,
.nav-menu.is-open .nav-menu-trigger {
  background: var(--paper);
  color: var(--charcoal);
  outline: none;
}

.nav-menu.is-open .nav-menu-trigger span {
  transform: rotate(45deg);
}

.share-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: -1px;
  z-index: 4;
  width: 220px;
  padding: 7px;
  border: 1px solid rgba(244, 239, 228, 0.3);
  border-top: 3px solid var(--blue);
  background: rgba(11, 10, 8, 0.96);
  box-shadow: 6px 6px 0 rgba(227, 61, 37, 0.78);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.share-menu a {
  min-height: 44px;
  width: 100%;
  padding: 0 11px;
  color: var(--ink);
  font-size: 0.86rem;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(252px, 0.46fr);
  grid-template-rows: auto auto;
  column-gap: clamp(34px, 8vw, 112px);
  row-gap: 34px;
  padding: 86px 0 116px;
}

.hero-heading {
  grid-column: 1 / -1;
}

.kicker,
.section-label {
  margin: 0;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.9rem;
  color: var(--green);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kicker span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 20px;
  background: var(--green);
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 900;
}

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

h1 {
  max-width: none;
  margin: 24px 0 30px;
  font-size: 8rem;
  line-height: 0.86;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.cn-name {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 9px 13px 8px;
  background: var(--red);
  color: var(--paper);
  font-size: 2.4rem;
  line-height: 1.05;
  font-weight: 900;
}

.motto {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  max-width: 330px;
  margin: 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--red);
}

.motto p {
  margin: 0 0 9px;
  color: var(--paper);
  font-size: 1.16rem;
  line-height: 1.42;
  font-weight: 900;
  text-wrap: balance;
}

.motto p:nth-child(2) {
  color: var(--soft);
}

.motto p:nth-child(3) {
  color: var(--green);
}

.motto p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  line-height: 1;
  cursor: default;
}

.button.primary {
  background: var(--ink);
  color: var(--charcoal);
}

.button.ghost {
  background: rgba(11, 10, 8, 0.2);
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.field-section {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 104px 24px 84px;
  background: var(--paper);
  color: var(--charcoal);
  scroll-snap-align: start;
}

.field-section::before {
  content: "止";
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 8vh;
  color: rgba(227, 61, 37, 0.028);
  font-size: clamp(7rem, 16vw, 14rem);
  font-weight: 950;
  line-height: 0.8;
  pointer-events: none;
}

.field-section:focus {
  outline: none;
}

.field-poster {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  min-height: calc(100svh - 188px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-content: center;
  align-items: start;
  column-gap: clamp(48px, 8vw, 112px);
  padding-top: 18px;
}

.field-section .section-label {
  position: absolute;
  top: 34px;
  left: max(24px, calc((100vw - 1080px) / 2));
  z-index: 2;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  background: var(--red);
  color: var(--paper);
  font-weight: 900;
}

.field-section .section-label::before {
  content: "";
  position: absolute;
  top: -34px;
  left: 50%;
  width: 2px;
  height: 34px;
  background: rgba(11, 10, 8, 0.32);
  transform: translateX(-50%);
}

.field-section .section-label::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  transform: translateX(-50%);
}

.field-heading {
  grid-column: 1;
  position: relative;
}

.field-index {
  position: absolute;
  top: -28px;
  left: 0;
  margin: 0;
  color: rgba(11, 10, 8, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.field-title {
  margin: 0;
  font-size: clamp(2.35rem, 3.5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 950;
}

.field-title-line {
  display: block;
  width: max-content;
  max-width: 100%;
}

.field-title .title-key {
  display: inline-block;
  margin: 0 0.02em;
  font-size: 1.16em;
  line-height: 0.82;
  transform: translateY(0.02em);
}

.title-key-blue {
  color: var(--cobalt);
}

.title-key-red {
  color: var(--red);
}

.field-title-in {
  margin-top: 22px;
  transform: translateX(clamp(20px, 3vw, 44px));
}

.field-copy {
  grid-column: 2;
  max-width: 560px;
  margin-top: 0;
  padding-top: 2px;
}

.field-copy p {
  margin-bottom: 16px;
  color: rgba(11, 10, 8, 0.58);
  font-size: 1rem;
  line-height: 1.78;
}

.field-copy .field-lead {
  margin-bottom: 22px;
  color: var(--charcoal);
  font-size: 1.28rem;
  line-height: 1.45;
  font-weight: 900;
}

.field-copy .field-quote {
  color: rgba(11, 10, 8, 0.68);
  font-weight: 800;
}

.field-copy p:last-child {
  margin-bottom: 0;
}

.footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #080705;
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes mark-breathe {
  0%,
  100% {
    transform: translate(0, 0);
    background: var(--cobalt);
  }

  50% {
    transform: translate(2px, -2px);
    background: #2d57d9;
  }
}

@keyframes mark-corner {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.75rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
    column-gap: 42px;
  }

  .cn-name {
    font-size: 2rem;
  }

  .field-poster {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 34px;
  }

  .field-heading {
    grid-column: 1;
    grid-row: 1;
  }

  .field-copy {
    grid-column: 1;
    grid-row: 2;
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
    padding: 18px 18px 28px;
  }

  .topbar {
    align-items: center;
  }

  .nav-links {
    display: flex;
    gap: 0;
    padding: 2px;
    background: rgba(11, 10, 8, 0.64);
  }

  .nav-links a,
  .nav-menu-trigger {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .mark {
    width: 52px;
    height: 52px;
    font-size: 0.96rem;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    row-gap: 30px;
    padding: 76px 0 68px;
  }

  h1 {
    max-width: 100%;
    font-size: 2.4rem;
    margin: 20px 0 26px;
    line-height: 0.95;
  }

  .cn-name {
    font-size: 1.55rem;
  }

  .motto {
    grid-column: 1;
    grid-row: 2;
    max-width: 100%;
    padding-left: 14px;
  }

  .motto p {
    font-size: 1.08rem;
    line-height: 1.5;
  }

  .hero-actions {
    grid-column: 1;
    grid-row: 3;
  }

  .button {
    width: 100%;
  }

  .field-section {
    min-height: 100svh;
    padding: 112px 18px 58px;
  }

  .field-section::before {
    right: -18px;
    bottom: 10vh;
    font-size: 9.6rem;
  }

  .field-poster {
    min-height: calc(100svh - 170px);
    row-gap: 24px;
  }

  .field-section .section-label {
    top: 24px;
    left: 18px;
    width: 58px;
    height: 58px;
    font-size: 0.86rem;
  }

  .field-section .section-label::before {
    top: -24px;
    height: 24px;
    width: 1px;
  }

  .field-section .section-label::after {
    top: 8px;
    width: 6px;
    height: 6px;
  }

  .field-heading {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .field-index {
    top: -22px;
    font-size: 0.64rem;
  }

  .field-title {
    font-size: 2rem;
    line-height: 1.02;
  }

  .field-title-in {
    margin-top: 14px;
    transform: translateX(22px);
  }

  .field-copy .field-lead {
    margin-bottom: 14px;
    font-size: 1.06rem;
  }

  .field-copy p {
    font-size: 0.94rem;
    line-height: 1.72;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  .mark::before,
  .mark::after {
    animation: none;
  }

  .mark {
    animation: none;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2.62rem;
  }

  .cn-name {
    font-size: 1.38rem;
  }

  .field-title {
    font-size: 1.78rem;
  }

  .field-title-in {
    margin-top: 12px;
    transform: translateX(18px);
  }
}
