@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root {
  --neon: #69ff69;
  --cyan: #00ffff;
  --ink: #172617;
  --deep: #0a140a;
  --txt: #e2ffe2;
  --dim: #9dc79d;
  --line: rgba(105, 255, 105, .28);
  --chrome: linear-gradient(135deg, #e8fff4 0%, #9bb8a4 30%, #ffffff 47%, #5d7a64 63%, #d6f2dd 100%);
  --mono: 'Didact Gothic', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --deco: 'Poiret One', 'Didact Gothic', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.75;
  color: var(--txt);
  background-color: var(--deep);
  background-image:
    radial-gradient(58vw 58vw at 10% -12%, rgba(105, 255, 105, .18), transparent 68%),
    radial-gradient(52vw 52vw at 104% 6%, rgba(0, 255, 255, .16), transparent 68%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
  overflow-x: clip;
}

div[id] { scroll-margin-top: 104px; }

a { color: var(--cyan); }

.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .4rem;
  padding: .55rem clamp(12px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 20, 9, .97), rgba(9, 20, 9, .8));
  backdrop-filter: blur(9px);
}

.hd::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .8;
}

.hd-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin: 0;
  padding: 0;
}

.hd-nav--l p { justify-content: flex-end; }

.hd-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .85rem;
  font-size: 16px;
  letter-spacing: .04em;
  white-space: nowrap;
  color: var(--txt);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
}

.hd-nav a:hover,
.hd-nav a:focus-visible {
  color: var(--neon);
  border-color: var(--neon);
  background: rgba(105, 255, 105, .09);
  box-shadow: 0 0 16px rgba(105, 255, 105, .38);
}

.hd-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
  min-width: 0;
}

.hd-nav--r p { justify-content: flex-end; }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .9rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand-glint {
  font-family: var(--deco);
  font-size: clamp(21px, 2.6vw, 29px);
  letter-spacing: .17em;
  color: transparent;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, .55));
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1.15rem;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
  text-decoration: none;
  color: #06140a;
  border: 1px solid #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--neon), var(--cyan));
  box-shadow: 0 0 20px rgba(0, 255, 255, .45);
}

.cta:hover { box-shadow: 0 0 26px rgba(105, 255, 105, .8); }

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 214px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 42px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(12px, 3vw, 28px) 44px;
}

.side {
  position: sticky;
  top: 104px;
  padding: 16px 14px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(105, 255, 105, .09), rgba(0, 255, 255, .05)),
    rgba(10, 22, 10, .6);
}

.side-h {
  margin: 0;
  font-family: var(--deco);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(105, 255, 105, .45);
}

.side .subtitle {
  margin: .15rem 0 .9rem;
  font-size: 16px;
  letter-spacing: .08em;
  color: var(--dim);
}

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

.side-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .55rem;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  background: linear-gradient(90deg, rgba(105, 255, 105, .05), transparent);
}

.side-list a:hover,
.side-list a:focus-visible {
  color: var(--neon);
  border-left-color: var(--neon);
  background: linear-gradient(90deg, rgba(105, 255, 105, .18), transparent);
}

.doc { min-width: 0; }

.doc > div {
  position: relative;
  padding: clamp(26px, 4vw, 50px) 0;
  border-top: 1px solid rgba(105, 255, 105, .16);
}

.doc > div:first-child {
  border-top: 0;
  padding-top: clamp(18px, 3vw, 40px);
}

.doc > div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 74px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.doc > div:first-child::before { display: none; }

.hero {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  right: -3vw;
  bottom: -.06em;
  margin: 0;
  font-family: var(--deco);
  font-size: clamp(58px, 15vw, 186px);
  line-height: .74;
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 255, 255, .3);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.hero-txt {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  text-align: right;
}

.hero h1 {
  margin: 0 0 .7rem;
  font-family: var(--deco);
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: .02em;
  color: var(--neon);
  text-shadow:
    0 0 24px rgba(105, 255, 105, .55),
    2px 2px 0 rgba(0, 255, 255, .4);
}

.hero-desc {
  max-width: 38ch;
  margin: 0 0 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--dim);
}

.hero-art {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.collage {
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: var(--chrome);
  filter: drop-shadow(0 0 18px rgba(0, 255, 255, .35));
}

.collage img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.15) contrast(1.05);
}

.collage.c1 { transform: rotate(-2.4deg); }

.collage.c2 {
  width: 76%;
  margin-left: auto;
  transform: rotate(1.8deg);
}

.hero--noart { grid-template-columns: 1fr; }

.hero--noart .hero-txt { grid-column: 1; }

.doc h2 {
  margin: 0 0 .35rem;
  font-family: var(--deco);
  font-size: clamp(24px, 3.3vw, 36px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: .03em;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(105, 255, 105, .42);
}

.doc h3 {
  margin: 1.6rem 0 .35rem;
  font-size: 20px;
  letter-spacing: .05em;
  color: var(--cyan);
}

.doc p { margin: 0 0 1rem; }

.doc .subtitle,
.doc .subhead,
.doc .lead,
.doc .desc {
  margin: 0 0 1.1rem;
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--dim);
}

.doc ul,
.doc ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.doc li { margin: .35rem 0; }

.doc li::marker { color: var(--cyan); }

.doc a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 255, 255, .45);
}

.doc a:hover {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.doc blockquote {
  margin: 1rem 0;
  padding: .3rem 0 .3rem 1rem;
  border-left: 3px solid var(--cyan);
  color: var(--dim);
}

.doc img { max-width: 100%; height: auto; }

.doc time {
  font-size: 16px;
  letter-spacing: .09em;
  color: var(--cyan);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.doc th,
.doc td {
  padding: .6rem .5rem;
  border: 1px solid var(--line);
  text-align: left;
}

.doc th { color: var(--neon); }

.ft {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(12px, 3vw, 28px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px) clamp(12px, 3vw, 28px) 26px;
  border-top: 1px solid var(--line);
  background: radial-gradient(58vw 26vw at 46% 0, rgba(0, 255, 255, .14), transparent 72%);
}

.ft p { margin: 0; }

.ft-brand {
  font-family: var(--deco);
  font-size: clamp(30px, 5vw, 56px);
  line-height: .95;
  letter-spacing: .06em;
  color: transparent;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
}

.ft-col {
  display: grid;
  align-content: start;
  gap: 1px;
}

.ft-col a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: .35rem 0;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
}

.ft-col a:hover,
.ft-col a:focus-visible { color: var(--neon); }

.ft-copy {
  grid-column: 1 / -1;
  display: block;
  padding-top: 14px;
  border-top: 1px solid rgba(105, 255, 105, .16);
  font-size: 16px;
  letter-spacing: .1em;
  color: var(--dim);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .doc { order: 1; }
  .side { order: 2; position: static; }
  .side-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 20px;
  }
  .hero-txt {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
  }
  .hero-desc { margin: 0; }
  .hero-art { grid-column: 1; grid-row: 2; }
  .collage.c2 { width: 86%; }
  .ft { grid-template-columns: 1fr 1fr; }
  .ft-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .hd {
    position: static;
    grid-template-columns: minmax(0, 1fr);
    gap: .25rem;
  }
  .brand { justify-self: center; }
  .hd-nav--l p,
  .hd-nav--r p { justify-content: center; }
  .hd-right {
    flex-direction: column;
    align-items: stretch;
  }
  .hd-right .cta { justify-content: center; }
  .hd-nav a { padding: .45rem .7rem; }
  body { font-size: 16px; }
  .side-list { grid-template-columns: minmax(0, 1fr); }
  .hero-bg { font-size: clamp(46px, 19vw, 100px); opacity: .75; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
