@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --ink: #192617;
  --green: #87ff71;
  --yellow: #ffce5c;
  --paper: #f3f2e8;
  --pad: 5vw;
  --dock: 92px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(25, 38, 23, .18) 1px, transparent 1px);
  background-size: 24px 24px;
  padding-bottom: calc(var(--dock) + 22px);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.18; letter-spacing: -.01em; }
figure { margin: 0; }
p { margin: 0 0 1em; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 14vh var(--pad) 17vh;
  background: var(--ink);
  background-image: repeating-linear-gradient(45deg, rgba(135, 255, 113, .07) 0 2px, transparent 2px 14px);
  color: #eef7ea;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 16px;
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--green) 0 24px, var(--yellow) 24px 48px);
  transform: rotate(-2.4deg);
  transform-origin: left bottom;
  z-index: 2;
}

.shp { position: absolute; z-index: 1; pointer-events: none; }
.sq1 {
  top: 8%; right: 6%;
  width: 86px; height: 86px;
  background: var(--yellow);
  transform: rotate(16deg);
  mix-blend-mode: screen;
}
.sq2 {
  top: 30%; right: 26%;
  width: 54px; height: 54px;
  border: 4px dashed var(--green);
  transform: rotate(-14deg);
}
.tri {
  top: 56%; right: 7%;
  width: 0; height: 0;
  border-left: 32px solid transparent;
  border-right: 32px solid transparent;
  border-bottom: 54px solid var(--green);
  transform: rotate(12deg);
  opacity: .9;
}

.hero-collage {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: 50%;
  height: 72%;
  z-index: 0;
}
.ph {
  position: absolute;
  overflow: hidden;
  border: 4px solid var(--green);
  background: #22301f;
  box-shadow: 16px 16px 0 rgba(135, 255, 113, .18);
}
.ph-a { width: 58%; height: 74%; left: 4%; bottom: 0; transform: rotate(-4deg); }
.ph-b {
  width: 50%; height: 58%; left: 33%; bottom: 16%;
  transform: rotate(5deg);
  border-color: var(--yellow);
  box-shadow: -14px 14px 0 rgba(255, 206, 92, .2);
}
.ph-img { display: block; width: 100%; height: 100%; object-fit: cover; }

.hero-copy {
  position: relative;
  z-index: 3;
  margin-left: auto;
  max-width: 620px;
  text-align: right;
}
.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 6vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--green);
}
.lede {
  margin: 0 0 26px auto;
  max-width: 44ch;
  font-size: 1.06rem;
  color: #dbe7d4;
}
.cta {
  display: inline-block;
  padding: 13px 26px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--green);
  transform: rotate(-1.5deg);
  transition: transform .18s ease, box-shadow .18s ease;
}
.cta:hover, .cta:focus-visible {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 11px 11px 0 var(--green);
}

/* ---------- layout ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 54px var(--pad) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 48px;
  align-items: start;
}
.stage { min-width: 0; }

/* ---------- prose ---------- */
.prose section {
  padding: 6px 0 44px;
  border-bottom: 3px dashed rgba(25, 38, 23, .3);
  scroll-margin-top: 18px;
  animation: rise .55s cubic-bezier(.2, .7, .3, 1) both;
}
.prose section:last-child { border-bottom: 0; padding-bottom: 0; }
.prose section:nth-child(1) { animation-delay: .02s; }
.prose section:nth-child(2) { animation-delay: .07s; }
.prose section:nth-child(3) { animation-delay: .12s; }
.prose section:nth-child(4) { animation-delay: .17s; }
.prose section:nth-child(5) { animation-delay: .22s; }
.prose section:nth-child(6) { animation-delay: .27s; }
.prose section:nth-child(7) { animation-delay: .32s; }

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

.prose small {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 3px 11px;
  margin-bottom: 10px;
}
.prose h2 {
  font-size: clamp(1.5rem, 3.3vw, 2.15rem);
  margin: 0 0 .55em;
  font-weight: 700;
}
.prose h3 { font-size: 1.22rem; margin: 1.5em 0 .5em; }
.prose p { margin: 0 0 1.05em; }
.prose a {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--green), var(--green)) no-repeat 0 100% / 100% 2px;
  padding-bottom: 1px;
  transition: background-size .18s ease;
}
.prose a:hover { background-size: 100% 10px; }
.prose strong { background: linear-gradient(transparent 62%, var(--green) 62%); }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--ink); font-weight: 700; }
.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  background: var(--yellow);
  border-left: 9px solid var(--ink);
  font-weight: 500;
}
.prose blockquote p:last-child { margin: 0; }
.prose img {
  display: block;
  margin: 1.4em 0;
  border: 4px solid var(--ink);
  box-shadow: 12px 12px 0 var(--green);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: .96rem; }
.prose th, .prose td { border: 2px solid var(--ink); padding: 9px 11px; text-align: left; }
.prose th { background: var(--green); }
.prose hr { border: 0; border-top: 3px dashed rgba(25, 38, 23, .35); margin: 2em 0; }

/* ---------- rail ---------- */
.rail {
  position: sticky;
  top: 26px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.rail-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-top: 10px solid var(--green);
  padding: 20px 18px;
  box-shadow: 0 14px 30px rgba(25, 38, 23, .16);
  transform: rotate(.6deg);
}
.rail-card small {
  display: block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  margin-bottom: 6px;
}
.rail-card h2 { font-size: 1.35rem; margin: 0 0 10px; }
.rail-card p { margin: 0; font-size: .96rem; line-height: 1.6; color: #3b4a37; }
.rail-tri {
  display: block;
  height: 54px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ---------- footer ---------- */
.foot {
  margin-top: 66px;
  background: var(--ink);
  background-image: radial-gradient(rgba(135, 255, 113, .22) 1px, transparent 1px);
  background-size: 18px 18px;
  color: #eef6ea;
  border-top: 12px solid var(--green);
  padding: 44px var(--pad) 24px;
}
.foot-top {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 26px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}
.foot dl { margin: 0; }
.foot dt {
  font-weight: 700;
  color: var(--green);
  letter-spacing: .16em;
  font-size: .9rem;
  margin-bottom: 6px;
}
.foot dd { margin: 0; }
.foot a {
  display: inline-block;
  padding: 9px 0;
  line-height: 1.35;
  color: #f2f8ee;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.foot a:hover, .foot a:focus-visible { color: var(--yellow); border-bottom-color: var(--yellow); }
.mark {
  display: block;
  width: 52px;
  height: 52px;
  background: var(--green);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  margin-bottom: 12px;
}
.fname { font-size: 1.2rem; font-weight: 700; color: var(--green); margin: 0; }
.foot-bot {
  max-width: 1180px;
  margin: 28px auto 0;
  padding-top: 14px;
  border-top: 2px dashed rgba(255, 255, 255, .35);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .92rem;
}
.foot-bot p { margin: 0; }

/* ---------- dock ---------- */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: var(--ink);
  border-top: 6px solid var(--green);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 26px rgba(25, 38, 23, .22);
}
.dock-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 1180px;
  margin: 0 auto;
}
.grp {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
}
.grp.left { justify-content: flex-end; }
.grp.right { justify-content: flex-start; }
.dock a {
  display: inline-block;
  padding: 11px 10px;
  line-height: 1.2;
  font-size: .96rem;
  color: #eef6ea;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.dock a:hover, .dock a:focus-visible, .dock a[aria-current] {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
}
.dock-brand {
  flex: 0 0 auto;
  margin: 0 8px;
  padding: 9px 15px;
  font-weight: 700;
  color: var(--ink) !important;
  background: var(--green);
  border: 3px solid var(--green);
  transform: rotate(-2deg);
  white-space: nowrap;
}
.dock-brand:hover, .dock-brand:focus-visible { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.has-sub { position: relative; }
.sub {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  display: none;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 156px;
  background: var(--ink);
  border: 3px solid var(--green);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .32);
}
.has-sub:hover .sub,
.has-sub:focus-within .sub { display: block; }
.sub a { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .rail { position: static; max-width: 520px; transform: none; }
  .rail-card { transform: none; }
  .rail-tri { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --dock: 158px; }
  .hero {
    min-height: 0;
    padding: 12vh 6vw 15vh;
    align-items: flex-start;
  }
  .hero-collage { width: 100%; height: 58%; top: 0; bottom: auto; opacity: .4; }
  .ph { border-width: 3px; box-shadow: none; }
  .hero-copy { max-width: none; margin: 0; }
  .hero-copy h1 { font-size: clamp(1.9rem, 9vw, 2.7rem); }
  .lede { font-size: 1rem; }
  .sq1 { width: 62px; height: 62px; top: 4%; }
  .sq2 { display: none; }
  .tri { top: auto; bottom: 26%; }
  .wrap { padding-top: 40px; }
  .prose section { padding-bottom: 34px; }
  .dock-nav { flex-wrap: wrap; gap: 2px; }
  .dock-brand { order: -1; flex: 1 1 100%; text-align: center; margin: 0 0 6px; transform: none; }
  .grp { flex: 1 1 100%; justify-content: flex-start; overflow-x: auto; }
  .has-sub { display: flex; align-items: center; }
  .sub {
    position: static;
    display: flex;
    padding: 0;
    min-width: 0;
    border: 0;
    background: none;
    box-shadow: none;
    gap: 2px;
  }
  .foot-bot { flex-direction: column; }
}

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

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