@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root{
  --neon:#87ff71;
  --mustard:#ffce5c;
  --ink:#192617;
  --deep:#0d1a0c;
  --paper:#fbf7ea;
  --line:rgba(25,38,23,.32);
  --shade:0 16px 36px -20px rgba(25,38,23,.6);
  --r:28px;
  --dock:96px;
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  background:var(--paper);
  color:var(--ink);
  font-family:Inter,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.7;
  padding-bottom:var(--dock);
}

img{max-width:100%;height:auto;display:block}
p{margin:0 0 1.05em}
ul,ol{margin:0 0 1.05em;padding-left:1.25em}
li{margin:0 0 .4em}
a{color:inherit}
::selection{background:var(--neon);color:var(--deep)}

h1,h2,h3{
  font-family:"Playfair Display",Georgia,"Songti SC",serif;
  line-height:1.16;
  letter-spacing:-.01em;
  margin:0 0 .4em;
}

:focus-visible{outline:3px dashed var(--ink);outline-offset:3px}

/* ---------- hero ---------- */

.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:100vw;
  margin-left:calc(50% - 50vw);
  min-height:100vh;
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:88px 22px calc(var(--dock) + 64px);
  background:var(--deep);
  color:var(--paper);
  clip-path:polygon(0 0,100% 0,100% 92%,0 100%);
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    radial-gradient(circle at 74% 24%,rgba(135,255,113,.26),transparent 58%),
    linear-gradient(180deg,rgba(13,26,12,.55),rgba(13,26,12,.88));
}

.hero-fig{
  position:absolute;
  inset:0;
  margin:0;
  z-index:0;
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.4;
  filter:saturate(1.2) contrast(1.06);
}

.shapes{position:absolute;inset:0;z-index:1;pointer-events:none}
.sh{position:absolute;display:block}

.sh-tri{
  top:15%;left:7%;
  width:62px;height:62px;
  background:var(--mustard);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  animation:bob 7s ease-in-out infinite;
}

.sh-ring{
  top:19%;right:16%;
  width:76px;height:76px;
  border-radius:50%;
  border:6px dashed var(--neon);
  opacity:.85;
  animation:spin 24s linear infinite;
}

.sh-dot{
  bottom:26%;right:11%;
  width:50px;height:50px;
  border-radius:50%;
  background:var(--neon);
  mix-blend-mode:screen;
  animation:bob 9s ease-in-out infinite reverse;
}

.sh-zig{
  bottom:20%;left:11%;
  width:108px;height:24px;
  background:repeating-linear-gradient(90deg,var(--mustard) 0 7px,transparent 7px 15px);
  clip-path:polygon(0 45%,10% 0,20% 45%,30% 0,40% 45%,50% 0,60% 45%,70% 0,80% 45%,90% 0,100% 45%,100% 100%,0 100%);
}

.ghost{
  position:absolute;
  top:50%;left:50%;
  z-index:1;
  transform:translate(-50%,-50%) rotate(-7deg);
  font-family:"Playfair Display",Georgia,serif;
  font-weight:700;
  font-size:clamp(3.2rem,15vw,10.5rem);
  line-height:1;
  white-space:nowrap;
  color:rgba(135,255,113,.16);
  -webkit-text-stroke:2px rgba(135,255,113,.42);
  pointer-events:none;
  user-select:none;
}

.hero-copy{
  position:relative;
  z-index:2;
  display:grid;
  justify-items:center;
  gap:18px;
  max-width:24ch;
  text-align:center;
}

.hero h1{
  margin:0;
  font-size:clamp(2.1rem,6.4vw,4.4rem);
  background:var(--neon);
  color:var(--deep);
  padding:.08em .2em .12em;
  border-radius:8px;
  box-shadow:9px 9px 0 var(--mustard);
  transform:rotate(-1.6deg);
}

.lede{
  margin:0;
  max-width:32ch;
  font-size:1.02rem;
  color:rgba(251,247,234,.86);
}

.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 26px;
  border-radius:999px;
  background:var(--mustard);
  color:var(--deep);
  font-weight:600;
  text-decoration:none;
  transform:rotate(2deg);
  box-shadow:4px 4px 0 var(--neon);
  transition:transform .2s ease,box-shadow .2s ease;
}

.cta:hover,.cta:focus-visible{
  transform:rotate(-2deg) translateY(-3px);
  box-shadow:7px 9px 0 var(--neon);
}

/* ---------- layout grid ---------- */

main{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  column-gap:44px;
  align-items:start;
  max-width:1240px;
  margin:0 auto;
  padding:0 22px;
}

.hero{grid-column:1 / -1}
main > section[id]{grid-column:1}

/* ---------- content sections ---------- */

main > section[id]{
  padding:52px 0;
  border-bottom:2px dashed var(--line);
  scroll-margin-top:26px;
}

main > section[id]:nth-of-type(even){
  background:rgba(255,206,92,.14);
  border-radius:var(--r);
  padding-inline:22px;
  margin-block:8px;
}

main > section[id]:last-of-type{border-bottom:0}

main h2{
  display:inline-block;
  font-size:clamp(1.42rem,3.4vw,2.05rem);
  background:var(--neon);
  color:var(--deep);
  padding:.06em .28em .1em;
  box-shadow:-6px 6px 0 var(--mustard);
  transform:rotate(-.6deg);
}

main h3{
  font-size:clamp(1.15rem,2.4vw,1.32rem);
  margin-top:1.7em;
  color:var(--deep);
}

hr{
  border:0;
  height:10px;
  max-width:240px;
  margin:16px 0 22px;
  opacity:.5;
  background-image:radial-gradient(var(--ink) 2px,transparent 2px);
  background-size:14px 10px;
}

main > section[id] p{max-width:66ch;font-size:1.05rem}
main > section[id] ul,
main > section[id] ol{max-width:64ch}
main > section[id] li{padding-left:.15em}

main > section[id] a{
  color:#14602f;
  text-decoration:underline;
  text-decoration-color:var(--mustard);
  text-decoration-thickness:3px;
  text-underline-offset:3px;
  transition:color .18s ease,background .18s ease;
}

main > section[id] a:hover{
  color:var(--deep);
  background:var(--mustard);
}

main > section[id] img{
  border-radius:var(--r);
  box-shadow:var(--shade);
  border:2px dashed var(--line);
  margin:1.2em 0;
}

main > section[id] blockquote{
  margin:1.4em 0;
  padding:14px 20px;
  border-left:6px solid var(--neon);
  background:rgba(135,255,113,.16);
  border-radius:0 var(--r) var(--r) 0;
}

main > section[id] figure{margin:1.3em 0}
main > section[id] figcaption{font-size:.85rem;color:rgba(25,38,23,.65);margin-top:.5em}
main > section[id] table{width:100%;border-collapse:collapse;font-size:.95rem}
main > section[id] th,
main > section[id] td{border-bottom:1px dotted var(--line);padding:9px 8px;text-align:left}

/* ---------- right rail ---------- */

.rail{
  grid-column:2;
  grid-row:2 / span 40;
  align-self:start;
  position:sticky;
  top:26px;
  padding-top:52px;
}

.rail-card{
  position:relative;
  display:block;
  background:#fff;
  border:2px dashed var(--ink);
  border-radius:var(--r);
  box-shadow:var(--shade);
  padding:22px 20px 24px;
  transform:rotate(-1.2deg);
}

.rail-card::before{
  content:"";
  position:absolute;
  top:-13px;right:16px;
  width:34px;height:34px;
  background:var(--mustard);
  clip-path:polygon(50% 0,100% 100%,0 100%);
  transform:rotate(18deg);
}

.rail-card h2{
  font-size:1.12rem;
  background:var(--neon);
  padding:.05em .3em;
  display:inline-block;
  margin:0;
}

.rail-card hr{margin:12px 0 14px;max-width:100%}

.jump{
  list-style:none;
  margin:0;
  padding:0;
  font-size:.88rem;
}

.jump a{
  display:flex;
  align-items:center;
  min-height:40px;
  text-decoration:none;
  border-bottom:1px dotted rgba(25,38,23,.34);
  transition:padding-left .18s ease,color .18s ease;
}

.jump a:hover,.jump a:focus-visible{padding-left:7px;color:#14602f}

.sub{display:grid;gap:10px}

.sub-mail{
  min-height:44px;
  padding:0 13px;
  font:inherit;
  font-size:.92rem;
  color:var(--ink);
  background:var(--paper);
  border:2px solid var(--ink);
  border-radius:14px;
}

.sub-btn{
  min-height:44px;
  border:0;
  border-radius:999px;
  background:var(--ink);
  color:var(--neon);
  font:inherit;
  font-weight:600;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease;
}

.sub-btn:hover,.sub-btn:focus-visible{
  transform:rotate(-2deg) translateY(-2px);
  background:var(--deep);
}

.top-link{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  margin-top:14px;
  font-size:.88rem;
  text-decoration:none;
  border-bottom:2px dashed var(--ink);
}

/* ---------- dock footer ---------- */

.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:60;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  background:var(--deep);
  border-top:3px dashed var(--neon);
}

.dock-brand{display:flex;align-items:center}

.dock-logo{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-weight:700;
  font-size:.86rem;
  letter-spacing:.02em;
  color:var(--mustard);
  text-decoration:none;
  white-space:nowrap;
}

.logo-img{height:28px;width:auto;border-radius:8px}

.dock-nav{min-width:0}

.dock-nav dl{
  display:flex;
  gap:8px;
  margin:0;
  padding:4px 2px;
  overflow-x:auto;
  scrollbar-width:none;
}

.dock-nav dl::-webkit-scrollbar{display:none}
.dock-nav dd{margin:0}

.pill{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 15px;
  border-radius:999px;
  border:1.5px solid rgba(135,255,113,.5);
  color:var(--neon);
  font-size:.86rem;
  text-decoration:none;
  white-space:nowrap;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

.pill:hover,.pill:focus-visible{
  background:var(--neon);
  color:var(--deep);
  transform:translateY(-2px) rotate(-2.5deg);
}

.dock-legal{
  font-size:.74rem;
  color:rgba(251,247,234,.58);
  white-space:nowrap;
}

/* ---------- motion ---------- */

@keyframes bob{
  0%,100%{transform:translateY(0) rotate(0)}
  50%{transform:translateY(-16px) rotate(12deg)}
}

@keyframes spin{to{transform:rotate(360deg)}}

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

@media (prefers-reduced-motion: no-preference){
  main > section[id]{animation:rise .55s ease both}
  main > section[id]:nth-of-type(2){animation-delay:.04s}
  main > section[id]:nth-of-type(3){animation-delay:.09s}
  main > section[id]:nth-of-type(4){animation-delay:.14s}
  main > section[id]:nth-of-type(5){animation-delay:.19s}
  main > section[id]:nth-of-type(6){animation-delay:.24s}
  main > section[id]:nth-of-type(7){animation-delay:.29s}
  main > section[id]:nth-of-type(8){animation-delay:.34s}
}

/* ---------- responsive ---------- */

@media (max-width:1080px){
  main{grid-template-columns:minmax(0,1fr) 262px;column-gap:30px}
}

@media (max-width:900px){
  main{display:block;padding:0 20px}
  .hero{padding-top:76px}
  .rail{position:static;padding-top:44px}
  .rail-card{transform:rotate(-.8deg)}
  main > section[id]{padding:44px 0}
  main > section[id]:nth-of-type(even){padding-inline:18px}
  .ghost{font-size:clamp(3rem,17vw,6rem)}
}

@media (max-width:820px){
  .dock{grid-template-columns:auto minmax(0,1fr);gap:10px}
  .dock-legal{display:none}
}

@media (max-width:520px){
  body{font-size:16.5px}
  .hero{clip-path:polygon(0 0,100% 0,100% 94%,0 100%)}
  .sh-tri{width:46px;height:46px;top:12%}
  .sh-ring{width:56px;height:56px;border-width:5px}
  .sh-dot{width:38px;height:38px}
  .sh-zig{width:78px;height:18px}
  .pill{padding:0 13px;font-size:.82rem}
  .dock-logo{font-size:.78rem}
  main > section[id] p{font-size:1rem}
}

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

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