:root {
  --ink: #1b1d20;
  --slate: #2c3036;
  --ash: #5a6068;
  --mist: #8b9198;
  --rule: #c9c4ba;
  --paper: #f3f1eb;
  --plaster: #faf8f3;
  --stone: #e4e0d7;
  --steel: #4a5560;
  --mark: #8a4a2a;
  --ok: #4d6a4e;
  --hold: #8a6a32;
  --off: #7a4e4a;
  --max: 1180px;
  --gutter: 28px;
  --serif: Georgia, "Times New Roman", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Consolas", "Microsoft YaHei", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.75;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(27, 29, 32, 0.035) 1px, transparent 1px) 0 0 / calc(100% / 12) 100%,
    linear-gradient(var(--stone), var(--paper) 42%, var(--plaster));
}

body > * { position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-underline-offset: 0.22em; }
a:hover { color: var(--ink); }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0 0 0.45em;
}

.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.sr {
  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(--ink);
  color: var(--plaster);
  padding: 8px 14px;
}

.skip:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
}

.folio {
  border-bottom: 1px solid var(--rule);
  background: var(--plaster);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

.folio-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 243, 0.94);
  border-bottom: 1px solid var(--rule);
}

.mast.is-stuck { box-shadow: 0 10px 24px rgba(27, 29, 32, 0.06); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border: 1px solid var(--rule);
}

.brand span {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.lane ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.lane a {
  display: inline-block;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--slate);
  font-size: 0.92rem;
}

.lane a:hover,
.lane a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }

.lane a.cta {
  background: var(--ink);
  color: var(--plaster);
  margin-left: 6px;
  box-shadow: none;
}

.lane a.cta:hover { background: var(--slate); color: var(--plaster); }

.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  padding: 7px 12px;
  font-size: 0.85rem;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.chip {
  border: 1px solid var(--rule);
  padding: 4px 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  background: var(--plaster);
}

.chip-on { border-color: var(--ink); color: var(--ink); }

.hero {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: end;
}

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mark);
  margin-bottom: 10px;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.lead { font-size: 1.05rem; color: var(--slate); max-width: 40em; }
.lead + .acts { margin-top: 28px; }

.acts { display: flex; flex-wrap: wrap; gap: 12px; }

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  border: 1px solid var(--ink);
  font-size: 0.92rem;
}

.btn { background: var(--ink); color: var(--plaster); }
.btn:hover { background: var(--slate); color: var(--plaster); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--stone); color: var(--ink); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid var(--rule);
}

.metric {
  padding: 18px 16px 0 0;
  border-right: 1px solid var(--rule);
}

.metric:last-child { border-right: 0; padding-right: 0; }

.metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.metric span { font-size: 0.86rem; color: var(--ash); }

.geo {
  position: relative;
  margin: 0;
}

.geo::before,
.geo::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.geo::before {
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.geo::after {
  right: 0;
  bottom: 0;
  width: 28px;
  height: 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.geo img {
  width: 100%;
  aspect-ratio: 880 / 700;
  object-fit: cover;
  clip-path: polygon(0 7%, 86% 0, 100% 16%, 100% 100%, 14% 100%, 0 84%);
  background: var(--stone);
}

.geo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
}

section { padding: 72px 0; border-bottom: 1px solid var(--rule); }

.head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.head p { max-width: 36em; color: var(--ash); margin: 0; }

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: var(--gutter);
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.entry,
.card,
.plat {
  background: var(--plaster);
  border: 1px solid var(--rule);
  padding: 22px 20px 24px;
}

.entry { text-decoration: none; color: inherit; display: block; }
.entry:hover,
.card:hover { border-color: var(--ink); }

.entry h3,
.card h3,
.plat h3 { font-size: 1.15rem; }

.idx {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
  margin-bottom: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.frame { margin: 0; position: relative; }

.frame img {
  width: 100%;
  aspect-ratio: 880 / 700;
  object-fit: cover;
  clip-path: polygon(8% 0, 100% 0, 100% 88%, 92% 100%, 0 100%, 0 12%);
  background: var(--stone);
}

.checks { list-style: none; }
.checks li {
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 8px;
  height: 1px;
  background: var(--ink);
}

.checks h3 { font-size: 1.05rem; margin-bottom: 4px; }
.checks p { margin: 0; color: var(--slate); }

.page-hero { padding-top: 48px; }
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 16px;
}

.crumbs a { color: inherit; }

.trail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.trail a {
  background: var(--plaster);
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.trail a:hover,
.trail a.is-here { background: var(--stone); }

.trail .n {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mist);
  margin-bottom: 8px;
}

.trail .t { display: block; font-family: var(--serif); font-size: 1.1rem; }
.trail .h { display: block; margin-top: 6px; color: var(--ash); font-size: 0.88rem; }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

.pair article {
  border: 1px solid var(--rule);
  background: var(--plaster);
  padding: 22px;
}

.pair header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--serif);
}

.pair ol { padding-left: 18px; color: var(--slate); }

.seal {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
}

.seal-hold { color: var(--hold); }
.seal-off { color: var(--off); }

.cite {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--ash);
  font-size: 0.92rem;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  background: var(--plaster);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 8px;
  font-family: var(--serif);
  font-size: 1.08rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  float: right;
  font-family: var(--mono);
  color: var(--ash);
}

.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 8px 20px; color: var(--slate); max-width: 46em; }

footer {
  background: var(--slate);
  color: #d6d2ca;
  padding: 56px 0 28px;
  border-bottom: 0;
}

footer a { color: #ece8df; }
footer a:hover { color: #fff; }
footer .brand { color: #f4f1ea; }
footer .brand small { color: #b7b2a8; }
footer h3 {
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7b2a8;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
  gap: 32px;
}

.foot-grid ul { list-style: none; }
.foot-grid li { margin: 8px 0; }

.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(201, 196, 186, 0.28);
  font-size: 0.82rem;
  color: #b7b2a8;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .grid-4,
  .pair,
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .trail { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--rule); padding: 16px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .lane {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--plaster);
    border-bottom: 1px solid var(--rule);
    padding: 8px 20px 16px;
  }
  .lane.is-open { display: block; }
  .lane ul { flex-direction: column; align-items: stretch; }
  .lane a.cta { margin-left: 0; }
  .hero-grid,
  .split,
  .grid-4,
  .grid-2,
  .pair,
  .foot-grid,
  .trail { grid-template-columns: 1fr; }
  .head { flex-direction: column; align-items: start; }
  .hero,
  section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
