@import url('https://fonts.googleapis.com/css2?family=Calistoga:ital@0;1&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

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

:root {
  --ink: #000000;
  --paper: #ffffff;
  --rail: 264px;
  --bar: 44px;
  --unit: 8px;
  --pad: clamp(18px, 4vw, 64px);
  --serif: Calistoga, Georgia, "Songti SC", serif;
  --sans: Inter, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1.1em; }

a { color: var(--ink); text-decoration: none; }

img { display: block; max-width: 100%; }

ul, ol { margin: 0; padding: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

/* top strip */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--bar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 var(--pad);
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.bar-mark {
  font-weight: 600;
  letter-spacing: 0.06em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar a {
  color: var(--paper);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 0;
  border-bottom: 1px solid var(--paper);
  white-space: nowrap;
}

/* frame */
.frame {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
}

/* left rail */
.rail {
  grid-column: 1;
  position: fixed;
  top: var(--bar);
  left: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 24px 20px 32px;
  border-right: 2px solid var(--ink);
  background: var(--paper);
  overflow-y: auto;
}

.rail-brand {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.2;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.rail-kicker {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.22em;
  color: var(--ink);
  opacity: 0.55;
  margin-bottom: 2px;
}

.rail-title {
  font-size: 1.45rem;
  margin: 0 0 14px;
}

.pills {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--unit);
}

.pills a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.18s ease, color 0.18s ease;
}

.pills a:hover,
.pills a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}

/* stage */
.stage {
  grid-column: 2;
  padding-top: var(--bar);
  min-width: 0;
  overflow-x: hidden;
  overflow-x: clip;
}

/* hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 96px 24px 150px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: grayscale(1) contrast(1.08);
}

.hero-text {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 26ch;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.1rem, 6.2vw, 4.1rem);
  line-height: 1.06;
  color: var(--paper);
  margin: 0 0 0.45em;
  overflow-wrap: break-word;
}

.hero-desc {
  margin: 0 auto;
  max-width: 38ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--paper);
  opacity: 0.85;
}

.seam {
  position: relative;
  z-index: 3;
  height: 14px;
  width: 100%;
  margin: -58px 0 0;
  background: var(--ink);
  transform: skewY(-1.4deg);
}


/* main / div */
main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding: 0 var(--pad);
}

div {
  grid-column: 1 / span 10;
  max-width: 74ch;
  padding: 56px 0 80px;
  min-width: 0;
  overflow-wrap: break-word;
}

div > section {
  scroll-margin-top: calc(var(--bar) + 24px);
  padding-top: 40px;
  margin-top: 48px;
  border-top: 2px solid var(--ink);
}

div > section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

div h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin: 0 0 0.55em;
}

div h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.4em;
}

div small {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.2em;
  opacity: 0.55;
  margin-bottom: 4px;
}

div p,
div li {
  font-size: 1.0625rem;
  line-height: 1.85;
}

div ul,
div ol {
  padding-left: 1.25em;
  margin: 0 0 1.2em;
}

div li { margin-bottom: 0.4em; }

div a {
  border-bottom: 2px solid var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
  overflow-wrap: break-word;
}

div a:hover { background: var(--ink); color: var(--paper); }

div blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 8px solid var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
}

div blockquote p:last-child { margin-bottom: 0; }

div img {
  width: 100%;
  height: auto;
  margin: 1.6em 0;
  filter: grayscale(1);
}

div strong { font-weight: 700; }

div code,
div pre {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.95em;
}

div pre {
  max-width: 100%;
  overflow-x: auto;
}

div table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
}

div th,
div td {
  border-bottom: 1px solid var(--ink);
  padding: 8px 10px;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}

/* footer */
.foot {
  border-top: 2px solid var(--ink);
  margin-top: 32px;
  padding: 44px var(--pad) 64px;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.foot-col { grid-column: span 3; min-width: 0; }

.foot-col address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.foot-col ul { list-style: none; }

.foot-col li a {
  display: block;
  min-height: 40px;
  padding: 9px 0;
  font-size: 1rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  transition: border-color 0.18s ease, padding-left 0.18s ease;
  overflow-wrap: break-word;
}

.foot-col li a:hover {
  border-bottom-color: var(--ink);
  padding-left: 4px;
}

.foot-legal { text-align: right; }

.foot-legal p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease var(--d, 0ms),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) var(--d, 0ms);
}

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

/* responsive */
@media (max-width: 900px) {
  .frame { grid-template-columns: minmax(0, 1fr); }

  .stage { grid-column: 1; }

  .rail {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
    padding: 16px var(--pad) 12px;
    overflow: visible;
  }

  .rail-brand {
    font-size: 1.15rem;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .rail-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  .pills {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--unit);
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .pills li { flex: 0 0 auto; }

  .pills a { padding: 8px 14px; white-space: nowrap; }

  .hero {
    min-height: 62vh;
    padding: 72px 20px 110px;
    clip-path: polygon(0 0, 100% 0, 100% 91%, 0 100%);
  }

  .seam { margin-top: -40px; }

  main {
    display: block;
    padding: 0 var(--pad);
  }

  div {
    max-width: none;
    padding: 40px 0 56px;
  }

  .foot-col { grid-column: span 6; }

  .foot-legal {
    grid-column: span 12;
    text-align: left;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--ink);
  }
}

@media (max-width: 520px) {
  .bar { gap: 8px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-desc { font-size: 1rem; }
  .foot-grid { gap: 10px; }
  div h2 { font-size: 1.45rem; }
  div blockquote { padding-left: 14px; border-left-width: 6px; }
}

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