/* Kimchi Final Boss — $CABBAGE */

:root {
  --bg: #090B08;
  --bg-2: #141811;
  --surface: #1B2118;
  --cabbage: #B5ED39;
  --leaf: #426A1E;
  --gold: #F0BE48;
  --ink: #F5F1E7;
  --muted: #A9ADA1;
  --emerald: #10180c;
  --display: Bahnschrift, "Franklin Gothic Medium", Impact, "Haettenschweiler", sans-serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, serif;
  --gutter: clamp(16px, 3.6vw, 80px);
  --nav-h: calc(64px + env(safe-area-inset-top, 0px));
  --ease: cubic-bezier(0.16, 0.84, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  hyphens: manual;
}

html,
body {
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

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

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin: 0;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cabbage);
  outline-offset: 3px;
}

::selection {
  background: var(--cabbage);
  color: var(--bg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--cabbage);
  color: var(--bg);
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

h1,
h2,
.wordmark,
.nav-links a,
.btn,
.eyebrow,
.label,
.hero-bg-type,
.hero-x,
.subhead,
.footer-name,
.footer-links a,
.join-ticker,
.out-link,
.placeholder-label,
.traits dt,
.origin-watermark,
.footer-ghost,
.ko-mark,
.hero-spine,
.origin-banner figcaption {
  font-family: var(--display);
  font-stretch: condensed;
  font-variation-settings: "wdth" 75, "wght" 700;
  font-weight: 700;
}

h1,
h2,
.footer-name {
  text-transform: uppercase;
  letter-spacing: -0.045em;
  line-height: 0.86;
  color: var(--ink);
}

h1 span,
h2 span,
.footer-name span {
  display: block;
}

h2 {
  font-size: clamp(30px, 7.2vw, 124px);
}

.tone-green {
  color: var(--cabbage);
}

.tone-gold {
  color: var(--gold);
}

.pad {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.label {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.btn-buy {
  background: var(--gold);
  color: var(--bg);
}

.btn-buy:hover,
.btn-buy:focus-visible {
  background: var(--cabbage);
  color: #12160d;
}

.btn-buy:active {
  background: #9ed42a;
}

.btn-line {
  border-color: rgba(245, 241, 231, 0.5);
  color: var(--ink);
}

.btn-line:hover,
.btn-line:focus-visible {
  border-color: var(--cabbage);
  color: var(--cabbage);
}

.btn-nav {
  min-height: 40px;
  padding: 0 14px;
  font-size: 12px;
}

.fine {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 62ch;
}

/* Navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--nav-h);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav.is-scrolled,
.nav.is-open {
  background: var(--bg);
  border-bottom-color: rgba(240, 190, 72, 0.22);
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  line-height: 1;
}

.wordmark .slash {
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 36px);
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--cabbage);
}

.nav-mobile-only {
  display: none;
}

.nav-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-x {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
}

.nav-x:hover,
.nav-x:focus-visible {
  color: var(--cabbage);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.25s ease, background-color 0.25s ease, top 0.25s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: rotate(40deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: rotate(-40deg);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 8px) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 60% at 78% 62%, rgba(240, 190, 72, 0.16), transparent 62%),
    radial-gradient(ellipse 36% 42% at 72% 38%, rgba(181, 237, 57, 0.05), transparent 70%),
    radial-gradient(ellipse 70% 55% at 10% 100%, rgba(66, 106, 30, 0.22), transparent 60%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(245, 241, 231, 0.28) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
}

.hero-bg-type {
  position: absolute;
  z-index: 0;
  left: -0.04em;
  right: 0;
  top: auto;
  bottom: 0;
  margin: 0;
  pointer-events: none;
  user-select: none;
  line-height: 0.74;
  font-size: clamp(72px, 28vw, 180px);
  letter-spacing: -0.07em;
  text-transform: uppercase;
  color: rgba(245, 241, 231, 0.045);
  -webkit-text-stroke: 1.5px rgba(245, 241, 231, 0.2);
  transform: translate3d(var(--shift-x, 0px), var(--shift-y, 0px), 0);
}

.hero-bg-type span {
  display: block;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  right: -8vw;
  top: 8vh;
  width: min(78vw, 1100px);
  height: min(88vh, 980px);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 62% 42%, rgba(240, 190, 72, 0.34), rgba(240, 190, 72, 0.08) 34%, transparent 68%),
    radial-gradient(ellipse at 40% 70%, rgba(181, 237, 57, 0.08), transparent 55%);
}

.hero-spine {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 980px;
  padding-bottom: 8px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  color: var(--muted);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 12px;
}

.eyebrow .slash {
  color: var(--gold);
  padding: 0 0.55em;
}

.hero-title {
  font-size: clamp(40px, 13vw, 104px);
}

.hero-tag {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-variation-settings: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold);
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.2;
}

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

.hero-actions .btn {
  flex: 1 1 160px;
}

.hero-x {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

.hero-x-handle {
  letter-spacing: 0.08em;
  text-transform: none;
}

.hero-x:hover,
.hero-x:focus-visible {
  color: var(--cabbage);
}

.hero-figure {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  height: min(120vw, 680px);
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 92%, rgba(0, 0, 0, 0.45), transparent 46%);
}

.hero-mascot {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* Origin */

.origin {
  position: relative;
  overflow: hidden;
  padding-top: clamp(72px, 11vh, 150px);
  padding-bottom: clamp(56px, 8vh, 120px);
  background: var(--bg);
}

.origin-watermark {
  position: absolute;
  z-index: 0;
  right: -0.05em;
  top: 0.02em;
  pointer-events: none;
  user-select: none;
  font-size: clamp(72px, 16vw, 260px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(181, 237, 57, 0.16);
}

.origin-head,
.origin-banner,
.origin-lines {
  position: relative;
  z-index: 1;
}

.subhead {
  margin-top: 22px;
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: clamp(12px, 1.15vw, 16px);
}

.origin-banner {
  margin: clamp(32px, 5vh, 56px) 0 0;
  border-top: 1px solid rgba(240, 190, 72, 0.42);
  border-bottom: 1px solid rgba(240, 190, 72, 0.42);
}

.origin-banner figcaption {
  padding: 12px max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
  color: var(--gold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 11px;
}

.origin-banner img {
  width: 100%;
  height: auto;
}

.origin-lines {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: clamp(28px, 4vh, 48px);
}

.origin-lines p {
  padding-top: 16px;
  border-top: 1px solid rgba(240, 190, 72, 0.5);
  color: var(--ink);
  font-size: clamp(18px, 1.55vw, 26px);
  line-height: 1.4;
}

.origin-lines p:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-variation-settings: normal;
  color: var(--gold);
  font-size: clamp(26px, 2.5vw, 44px);
  line-height: 1.15;
}

/* Boss */

.boss {
  position: relative;
  padding-top: clamp(72px, 11vh, 150px);
  padding-bottom: clamp(72px, 11vh, 140px);
  background: var(--bg-2);
}

.ko-mark {
  display: none;
}

.boss-layout {
  display: grid;
  gap: 28px;
}

.boss-plate {
  position: relative;
  width: min(100%, 720px);
  margin: 0;
}

.boss-frame {
  position: absolute;
  z-index: 0;
  inset: 16px -16px -16px 16px;
  border: 1px solid rgba(240, 190, 72, 0.65);
  pointer-events: none;
}

.boss-plate img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.boss h2 {
  font-size: clamp(32px, 4.6vw, 92px);
}

.traits {
  margin: 0;
  counter-reset: trait;
}

.traits div {
  position: relative;
  padding: 18px 0 16px;
  border-top: 1px solid rgba(240, 190, 72, 0.38);
  counter-increment: trait;
}

.traits div:last-child {
  border-bottom: 1px solid rgba(240, 190, 72, 0.38);
}

.traits div::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 0;
  background: var(--cabbage);
  transition: width 0.4s ease;
}

.traits dt {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
}

.traits dt::before {
  content: counter(trait, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.traits dd {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 36ch;
}

/* Join */

.join {
  padding-top: clamp(76px, 12vh, 160px);
  padding-bottom: clamp(76px, 12vh, 160px);
  background:
    radial-gradient(900px 520px at 8% 110%, rgba(66, 106, 30, 0.5), transparent 62%),
    radial-gradient(680px 420px at 100% 0%, rgba(240, 190, 72, 0.1), transparent 56%),
    var(--emerald);
}

.join-layout {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.join h2 {
  font-size: clamp(28px, 4.4vw, 72px);
}

.join h2 em {
  font-style: normal;
  color: var(--cabbage);
}

.join-panel {
  min-width: 0;
  width: 100%;
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 48px);
  border-top: 2px solid var(--gold);
}

.join-ticker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.join-ticker span:last-child {
  color: var(--gold);
  font-size: 0.42em;
  letter-spacing: 0.18em;
}

.placeholder-label {
  margin-top: 22px;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
}

.contract-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 18px 0 20px;
  border-bottom: 1px solid rgba(245, 241, 231, 0.35);
}

.contract-value {
  min-width: 0;
  font-family: Consolas, "Cascadia Mono", "Segoe UI", monospace;
  font-size: clamp(16px, 1.8vw, 24px);
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
  user-select: all;
}

.copy-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.copy-status[data-state="success"] {
  color: var(--cabbage);
}

.copy-status[data-state="error"] {
  color: var(--gold);
}

.join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* Chart */

.chart {
  padding-top: clamp(72px, 10vh, 140px);
  padding-bottom: clamp(72px, 10vh, 140px);
  background: var(--bg);
}

.chart-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.out-link {
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  border-bottom: 1px solid rgba(240, 190, 72, 0.5);
  padding-bottom: 4px;
}

.out-link:hover,
.out-link:focus-visible {
  color: var(--cabbage);
  border-bottom-color: var(--cabbage);
}

.chart-frame {
  margin-top: clamp(22px, 4vh, 40px);
  height: clamp(460px, 78vw, 640px);
  background: var(--surface);
  border: 1px solid rgba(240, 190, 72, 0.28);
}

.chart-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--bg);
}

.chart-note {
  margin-top: 14px;
}

/* Footer */

.footer {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 78vh, 900px);
  padding-top: clamp(80px, 12vh, 150px);
  padding-bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 48px));
  background: var(--bg);
  display: flex;
}

.footer-ghost {
  position: absolute;
  z-index: 0;
  left: -0.045em;
  bottom: -0.2em;
  margin: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  font-size: clamp(120px, 28vw, 520px);
  line-height: 0.75;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(181, 237, 57, 0.28);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  width: 100%;
  min-height: clamp(400px, 58vh, 700px);
}

.footer-name {
  font-size: clamp(40px, 11vw, 140px);
}

.footer-tag {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2vw, 28px);
  color: var(--gold);
}

.footer-rule {
  width: 72px;
  height: 2px;
  margin: 22px 0 20px;
  border: 0;
  background: var(--cabbage);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 48px);
}

.footer-links a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(18px, 2vw, 28px);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--cabbage);
}

.disclaimer {
  max-width: 68ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Motion */

.line {
  animation: rise 0.9s var(--ease) both;
}

.line-1 { animation-delay: 0.04s; }
.line-2 { animation-delay: 0.14s; }
.line-3 { animation-delay: 0.26s; }
.line-4 { animation-delay: 0.4s; }
.line-5 { animation-delay: 0.52s; }
.line-6 { animation-delay: 0.64s; }

.hero-mascot {
  animation: rise 1.15s var(--ease) 0.18s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.origin-lines .reveal:nth-child(2) { transition-delay: 0.08s; }
.origin-lines .reveal:nth-child(3) { transition-delay: 0.16s; }

/* Desktop composition */

@media (min-width: 800px) {
  .chart-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .origin-lines {
    grid-template-columns: 0.9fr 1.15fr 1fr;
    gap: clamp(20px, 3vw, 48px);
  }
}

@media (min-width: 1101px) {
  .hero {
    display: block;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-bg-type {
    top: 9vh;
    bottom: auto;
    left: -0.06em;
    width: max-content;
    font-stretch: expanded;
    font-variation-settings: "wdth" 125, "wght" 700;
    font-size: min(18vw, 30vh);
    line-height: 0.74;
    letter-spacing: -0.03em;
    -webkit-text-stroke: 1px rgba(245, 241, 231, 0.32);
    transform: translate3d(var(--shift-x, 0px), var(--shift-y, 0px), 0) scaleX(1.72);
    transform-origin: left top;
  }

  .hero-copy {
    position: absolute;
    z-index: 3;
    left: max(var(--gutter), env(safe-area-inset-left));
    bottom: clamp(24px, 4.5vh, 52px);
    max-width: min(40vw, 680px);
    padding-bottom: 0;
  }

  .hero-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -18% -20% -24% -12%;
    background: radial-gradient(ellipse at 18% 70%, rgba(9, 11, 8, 0.78), rgba(9, 11, 8, 0.2) 55%, transparent 72%);
    pointer-events: none;
  }

  .hero-title {
    font-size: clamp(64px, 6.5vw, 128px);
  }

  .hero-figure {
    position: absolute;
    z-index: 2;
    top: calc(var(--nav-h) + 6px);
    right: 0;
    bottom: auto;
    width: auto;
    height: auto;
    margin: 0;
    display: block;
    background: none;
  }

  .hero-mascot {
    height: calc(100dvh - var(--nav-h) - 4px);
    width: auto;
    max-width: none;
    max-height: none;
    object-position: top right;
  }

  .boss-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.9fr);
    grid-template-areas:
      "plate intro"
      "plate traits";
    column-gap: clamp(36px, 4vw, 88px);
    row-gap: 12px;
    align-items: center;
  }

  .boss-plate {
    grid-area: plate;
    width: min(100%, 90vh);
    justify-self: start;
  }

  .boss-intro {
    grid-area: intro;
    align-self: end;
  }

  .traits {
    grid-area: traits;
    align-self: start;
  }

  .ko-mark {
    display: block;
    position: absolute;
    top: clamp(28px, 4vh, 48px);
    right: max(var(--gutter), env(safe-area-inset-right));
    writing-mode: vertical-rl;
    letter-spacing: 0.5em;
    font-size: 13px;
    color: rgba(181, 237, 57, 0.72);
  }

  .join-layout {
    grid-template-columns: 1fr;
    gap: clamp(36px, 5vh, 72px);
  }

  .contract-field {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
  }

  .chart-frame {
    height: clamp(550px, 36vw, 700px);
  }
}

@media (min-width: 1400px) {
  .join h2 {
    font-size: clamp(72px, 5.2vw, 104px);
  }
}

@media (min-width: 1101px) and (max-height: 820px) {
  .hero-title {
    font-size: clamp(52px, 10vh, 96px);
  }

  .hero-bg-type {
    font-size: min(14vw, 24vh);
    top: 56px;
  }

  .hero-copy {
    bottom: 16px;
  }

  .hero-tag {
    margin-top: 8px;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .hero-mascot {
    height: calc(100dvh - var(--nav-h) - 8px);
  }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-x,
  .btn-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px max(var(--gutter), env(safe-area-inset-right)) 18px max(var(--gutter), env(safe-area-inset-left));
    background: var(--bg);
    border-bottom: 1px solid rgba(240, 190, 72, 0.24);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(245, 241, 231, 0.08);
  }

  .nav-mobile-only {
    display: flex;
  }

  .nav-links .btn-buy {
    margin-top: 14px;
    width: fit-content;
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .origin-watermark {
    display: none;
  }
}

@media (max-width: 380px) {
  .wordmark {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    letter-spacing: 0.08em;
    font-size: 11px;
  }

  .wordmark .slash {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .boss-plate img {
    transition: transform 0.55s ease;
  }

  .boss-plate:hover img {
    transform: translate(-8px, -8px);
  }

  .traits div:hover::after {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .boss-plate:hover img {
    transform: none;
  }
}
