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

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

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

body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: 'Outfit', 'Work Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: .01em;
}

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

a { color: inherit; }

p { margin: 0 0 1.1em; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}

menu { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 3px;
}

[id] { scroll-margin-top: 7rem; }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #000000;
  padding: 0 1.25rem;
}

.top > * {
  max-width: 1200px;
  margin: 0 auto;
}

.brandrow {
  padding: 1rem 0 .75rem;
  border-bottom: 1px solid rgba(0, 0, 0, .16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: #000000;
  color: #ffffff;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-glyph {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  background: #000000;
  border-radius: 3px;
}

.navrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  flex-wrap: wrap;
}

.drop { position: relative; }

.drop > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid #000000;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .04em;
  background: #ffffff;
  transition: background .22s ease, color .22s ease;
  user-select: none;
}

.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::marker { content: ''; }

.drop > summary::after {
  content: '';
  width: .5rem;
  height: .5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .22s ease;
}

.drop[open] > summary { background: #000000; color: #ffffff; }
.drop[open] > summary::after { transform: translateY(1px) rotate(-135deg); }

.drop-list {
  position: absolute;
  top: calc(100% + .4rem);
  left: 0;
  z-index: 45;
  min-width: 15rem;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 10px;
  padding: .4rem;
  display: grid;
  gap: 2px;
}

.drop-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .75rem;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.3;
  border-radius: 6px;
  transition: background .2s ease, color .2s ease;
}

.drop-list a:hover,
.drop-list a:focus-visible {
  background: #000000;
  color: #ffffff;
}

.contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 1rem;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .04em;
  border-radius: 10px;
  background: #000000;
  color: #ffffff;
  transition: opacity .22s ease;
}

.contact:hover { opacity: .78; }

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

.main { padding: 0 1.25rem; }

.hero,
.doc {
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: center;
  min-height: 70vh;
  padding: 3.5rem 0;
  border-bottom: 1px solid #000000;
}

.hero-copy { text-align: center; }

.kicker {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .26em;
  margin-bottom: 1.4rem;
}

.kicker > span {
  display: inline-block;
  border-bottom: 1px solid #000000;
  padding-bottom: .35rem;
}

.hero-title {
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.035em;
  margin-bottom: 1.2rem;
  overflow-wrap: break-word;
}

.hero-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 34ch;
  margin: 0 auto;
  color: rgba(0, 0, 0, .82);
}

.hero-fig {
  margin: 0;
  border-radius: 10px;
  background: #000000;
  overflow: hidden;
  min-height: 46vh;
  display: grid;
  place-items: stretch;
  will-change: transform;
}

.hero-img {
  width: 100%;
  height: 100%;
  min-height: 46vh;
  object-fit: cover;
}

.dotgrid {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 46vh;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: center;
}

/* ---------- doc: rail + prose ---------- */

.doc {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  padding: 3.5rem 0 4.5rem;
}

.rail {
  position: sticky;
  top: 8.5rem;
  background: #000000;
  color: #ffffff;
  border-radius: 10px;
  padding: 1.1rem 1rem 1.25rem;
}

.rail-h {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .28em;
  margin: 0 0 .75rem .4rem;
}

.rail-h > span { display: inline-block; }

.rail-list { display: grid; gap: 1px; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .5rem;
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  transition: background .2s ease, color .2s ease;
}

.rail-list li:last-child a { border-bottom: 0; }

.rail-list a:hover,
.rail-list a:focus-visible {
  background: #ffffff;
  color: #000000;
}

.prose {
  min-width: 0;
  font-size: 1.0625rem;
  line-height: 1.78;
}

.prose > article + article {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid #000000;
}

.prose > article:first-child { padding-top: 0; }

.prose h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.prose h2 > span,
.prose h3 > span {
  display: inline-block;
  border-bottom: 3px solid #000000;
  padding-bottom: .18em;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.prose p { margin: 0 0 1.15em; }

.prose a {
  text-decoration: underline;
  text-underline-offset: .2em;
  font-weight: 500;
}

.prose a:hover { background: #000000; color: #ffffff; text-decoration: none; }

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

.prose li { margin-bottom: .45em; }

.prose figure {
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #000000;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: .4rem 0 .4rem 1.2rem;
  border-left: 4px solid #000000;
  font-weight: 500;
}

.prose code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  background: rgba(0, 0, 0, .07);
  padding: .1em .35em;
  border-radius: 4px;
  font-size: .95em;
}

.prose strong { font-weight: 600; }

.prose hr {
  border: 0;
  border-top: 1px solid #000000;
  margin: 2.5rem 0;
}

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

.foot {
  border-top: 1px solid #000000;
  padding: 2.5rem 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  font-size: 1rem;
}

.foot p { margin: 0; }

.foot-a { font-weight: 600; letter-spacing: -.01em; }
.foot-b { text-align: center; }
.foot-c { text-align: right; }

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.foot a:hover { border-bottom-color: #000000; }

.foot-bar {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, .16);
  color: rgba(0, 0, 0, .74);
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s ease, transform .55s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- breakpoints ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    min-height: 0;
    padding: 2.5rem 0;
  }
  .hero-fig,
  .hero-img,
  .dotgrid { min-height: 38vh; }
  .doc {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.5rem 0 3.5rem;
  }
  .rail { position: static; }
  .rail-list { grid-template-columns: 1fr 1fr; gap: 1px 1rem; }
  .rail-list a { border-bottom: 1px solid rgba(255, 255, 255, .22); }
}

@media (max-width: 620px) {
  .top { padding: 0 1rem; }
  .main { padding: 0 1rem; }
  .brand { font-size: 1.2rem; }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-desc { max-width: none; }
  .rail-list { grid-template-columns: 1fr; }
  .foot {
    grid-template-columns: 1fr;
    gap: .35rem;
    text-align: center;
    padding: 2rem 1rem 1.75rem;
  }
  .foot-a,
  .foot-b,
  .foot-c { text-align: center; }
  .drop-list { min-width: 13rem; }
}

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

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