:root {
  --ink: #192617;
  --ink-deep: #0c1610;
  --neon: #87ff71;
  --cyan: #01cdfe;
  --pink: #ff71ce;
  --paper: #e9ffe9;
  --dim: rgba(233, 255, 233, 0.66);
  --line: rgba(135, 255, 113, 0.22);
  --max: 1060px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: "Cormorant Infant", "Songti SC", "Noto Serif SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 88% -12%, rgba(1, 205, 254, 0.22), transparent 56%),
    radial-gradient(circle at 4% 6%, rgba(255, 113, 206, 0.14), transparent 52%),
    linear-gradient(180deg, #101d13 0%, #192617 46%, #0c1610 100%);
}

.vhs {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.22) 0,
    rgba(0, 0, 0, 0.22) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}

a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover { color: #fff; }

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

h1, h2, h3 { font-weight: 400; line-height: 1.22; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 22, 16, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(9px);
}

.brandline { padding: 0.45rem clamp(1rem, 4vw, 2.4rem) 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  color: var(--paper);
  border-bottom: 0;
  text-shadow: 0 0 10px rgba(135, 255, 113, 0.4);
}

.brand:hover { color: var(--neon); }

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border: 1px solid var(--line);
}

.navbar { padding: 0 clamp(1rem, 4vw, 2.4rem); }

.navbar p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin: 0 0 0.45rem;
}

.navbar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  font-size: 1rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
}

.navbar a:hover,
.navbar a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-height: 70vh;
  padding: 3.6rem clamp(1rem, 4vw, 2.4rem) 0;
  overflow: hidden;
  text-align: right;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 52ch;
  margin-left: auto;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8.6vw, 5.6rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow:
    0 0 14px rgba(135, 255, 113, 0.55),
    0 0 44px rgba(1, 205, 254, 0.45);
}

.lede {
  margin: 0.9rem 0 0;
  color: var(--dim);
  font-size: 1.05rem;
}

.hero-fig {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 2.4rem 0 0;
}

.hero-img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: hue-rotate(-8deg) saturate(1.12) contrast(1.05);
}

.sun {
  position: absolute;
  top: -6px;
  right: 5%;
  z-index: 0;
  width: min(46vw, 250px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 56%,
    #fff4f9 0%,
    var(--pink) 38%,
    rgba(255, 113, 206, 0.14) 66%,
    transparent 72%
  );
  opacity: 0.85;
  pointer-events: none;
  will-change: transform;
}

.grid-floor {
  position: absolute;
  right: -20%;
  bottom: -46px;
  left: -20%;
  z-index: 0;
  height: 230px;
  background-image:
    linear-gradient(rgba(1, 205, 254, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 205, 254, 0.42) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(320px) rotateX(64deg) translateY(var(--py, 0px));
  transform-origin: 50% 100%;
  opacity: 0.45;
  pointer-events: none;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2.4rem);
}

.prose { min-width: 0; }

.prose section {
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px dashed rgba(135, 255, 113, 0.16);
  scroll-margin-top: 150px;
}

.prose section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h2 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  color: #fff;
  text-shadow: 0 0 14px rgba(1, 205, 254, 0.35);
}

.prose h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.28rem;
  color: var(--cyan);
}

small {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.34em;
  color: var(--neon);
}

.prose p { margin: 0 0 1.05rem; color: rgba(233, 255, 233, 0.88); }

.prose ul,
.prose ol { margin: 0 0 1.1rem; padding-left: 1.2rem; }

.prose li { margin: 0.35rem 0; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(1, 205, 254, 0.45);
}

.prose a:hover { color: #fff; }

.prose strong { color: var(--neon); font-weight: 600; }

.prose blockquote {
  margin: 1.4rem 0;
  padding: 0.8rem 1.1rem;
  border-left: 3px solid var(--neon);
  background: rgba(135, 255, 113, 0.07);
  color: var(--dim);
}

.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.prose figure { margin: 1.4rem 0; }

.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }

.prose th,
.prose td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.rail {
  position: sticky;
  top: 148px;
  padding: 1.1rem 1rem 1.2rem;
  background: rgba(1, 205, 254, 0.06);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--neon);
}

.rail h2 {
  margin: 0.15rem 0 0.7rem;
  font-size: 1.35rem;
  color: #fff;
}

.rail ul { margin: 0; padding: 0; list-style: none; }

.rail li { border-top: 1px solid rgba(135, 255, 113, 0.14); }

.rail a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  color: var(--paper);
  border-bottom: 0;
}

.rail a:hover { color: var(--neon); }

.base {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(1, 205, 254, 0.07), transparent 62%),
    var(--ink-deep);
}

.fgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2.4rem);
}

.fcol address {
  font-style: normal;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.fcol ul { margin: 0; padding: 0; list-style: none; }

.fcol li a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 1rem;
  color: var(--paper);
  border-bottom: 1px solid transparent;
}

.fcol li a:hover,
.fcol li a:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.sub {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.sub label {
  font-size: 1rem;
  letter-spacing: 0.24em;
  color: var(--neon);
}

.sub input {
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 1rem;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid var(--line);
  border-radius: 0;
}

.sub input::placeholder { color: rgba(233, 255, 233, 0.45); }

.sub button {
  min-height: 44px;
  padding: 0.5rem 1.5rem;
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--neon);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.sub button:hover { background: var(--cyan); }

.footbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2.4rem) 2.2rem;
  font-size: 1rem;
  color: var(--dim);
  border-top: 1px solid rgba(135, 255, 113, 0.14);
}

.footbar p { margin: 0; }

.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .content { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .topbar { position: static; }
  .prose section { scroll-margin-top: 1rem; }
  .hero { min-height: 0; padding-top: 2.6rem; }
  .prose h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .navbar a { padding: 0.35rem 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { transition: none; opacity: 1; transform: none; }
  .grid-floor { transform: perspective(320px) rotateX(64deg); }
}

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