:root {
  --nav-h: 48px;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --bg: #f5f5f7;
  --white: #fff;
  --black: #000;
  --hairline: rgba(0, 0, 0, .12);
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(22, 22, 23, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.nav-inner {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  font-weight: 600;
  letter-spacing: -.02em;
  font-size: 17px;
  margin-right: auto;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 12px;
  color: rgba(255,255,255,.82);
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  font-size: 12px;
  background: var(--blue);
  color: #fff;
  padding: 5px 12px;
  border-radius: 980px;
}
.nav-cta:hover { background: var(--blue-hover); }
.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  padding: 8px 7px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: #fff;
  margin: 6px 0;
  transition: .25s;
}

.hero, .cta-band {
  position: relative;
  overflow: hidden;
  background: var(--stage, #000);
  color: #fff;
  text-align: center;
  isolation: isolate;
}
.hero.theme-light, .cta-band.theme-light, .tile.theme-light { color: var(--text); }
.hero.h-full { min-height: calc(100svh - var(--nav-h)); }
.hero.h-large { min-height: 82svh; }
.hero.h-medium { min-height: 62svh; }
.stage-media, .media-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.media-fallback {
  background:
    radial-gradient(1200px 500px at 50% 0%, rgba(255,255,255,.12), transparent 60%),
    radial-gradient(700px 400px at 80% 90%, rgba(0,113,227,.28), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 40%);
}
.theme-light .media-fallback {
  background:
    radial-gradient(900px 420px at 50% 10%, rgba(0,0,0,.04), transparent 60%),
    radial-gradient(600px 360px at 20% 90%, rgba(0,113,227,.10), transparent 55%);
}
.hero-copy, .cta-band {
  position: relative;
  z-index: 1;
  padding: 64px 24px 48px;
}
.hero.h-full .hero-copy { padding-top: 10vh; }
.kicker {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1, h2, h3 {
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0;
}
.hero h2, .cta-band h2 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  max-width: 16ch;
  margin: 0 auto;
}
.lede {
  max-width: 38ch;
  margin: 14px auto 0;
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.333;
  font-weight: 400;
  opacity: .88;
}
.cta-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 11px 20px;
  border-radius: 980px;
  font-size: 17px;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost {
  border: 1px solid currentColor;
  background: transparent;
}
.btn-link {
  color: #2997ff;
  font-size: 19px;
}
.btn-link::after { content: " ›"; }
.theme-light .btn-link { color: var(--blue); }

.tiles { padding: 14px 14px 0; }
.tile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 1680px;
  margin: 0 auto;
}
.tile {
  position: relative;
  min-height: 580px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--stage, #fff);
  text-align: center;
  isolation: isolate;
}
.tile-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.tile-copy {
  position: relative;
  z-index: 1;
  padding: 48px 28px 24px;
}
.tile h3 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}
.tile p { margin: 10px auto 0; max-width: 32ch; font-size: 17px; opacity: .86; }
.span-2 { grid-column: span 2; min-height: 680px; }

.link-wall, .story, .page-block, .html-block {
  max-width: 980px;
  margin: 0 auto;
  padding: 88px 24px;
}
.link-head, .story-copy { text-align: left; }
.link-wall h2, .story h2, .page-block h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.07;
}
.link-head .lede, .story .lede, .page-block .lede {
  margin-left: 0;
  text-align: left;
}
.link-list {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}
.link-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  padding: 22px 24px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 1px 0 var(--hairline);
  transition: transform .25s ease, box-shadow .25s ease;
}
.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.link-card.highlight {
  background: #1d1d1f;
  color: #fff;
}
.link-label { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.link-desc { grid-column: 1; color: var(--muted); font-size: 15px; }
.link-card.highlight .link-desc { color: rgba(255,255,255,.68); }
.link-arrow {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 22px;
  color: var(--blue);
}

.story {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.story p { font-size: 19px; line-height: 1.47; color: #424245; }
.story-media img {
  width: 100%;
  border-radius: 28px;
  min-height: 360px;
  object-fit: cover;
  background: #e8e8ed;
}
.cta-band { padding: 110px 24px; }
.prose { font-size: 19px; line-height: 1.55; color: #424245; }
.prose p { margin: 0 0 1em; }

/* Blog */
.blog-head {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 24px 8px;
  text-align: left;
}
.blog-head h1 {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.07;
}
.blog-head .lede { margin-left: 0; text-align: left; }
.blog-list {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 88px;
  display: grid;
  gap: 20px;
}
.post-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 1px 0 var(--hairline);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}
.post-cover {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  background: #e8e8ed;
}
.post-body { padding: 24px 28px 24px 0; }
.post-card.no-cover { grid-template-columns: 1fr; }
.post-card.no-cover .post-body { padding: 24px 28px; }
.post-meta { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.post-card h2 {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.12;
}
.post-excerpt {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.post-tags { margin: 14px 0 0; }
.tag {
  display: inline-block;
  padding: 3px 10px;
  margin: 0 6px 6px 0;
  border-radius: 980px;
  background: rgba(0, 113, 227, .08);
  color: var(--blue);
  font-size: 12px;
}
.post-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 88px;
}
.post-page h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}
.post-lede { margin-left: 0; font-size: 19px; }
.post-hero img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 28px;
  margin: 32px 0 8px;
  background: #e8e8ed;
}
.post-page .prose { margin-top: 36px; }
.post-page .prose h2 { font-size: 30px; margin: 1.6em 0 .6em; }
.post-page .prose h3 { font-size: 24px; margin: 1.4em 0 .5em; }
.post-page .prose img { border-radius: 18px; margin: 1em auto; }
.post-page .prose blockquote {
  margin: 1.2em 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--blue);
  color: var(--muted);
}
.post-page .prose pre {
  background: #161617;
  color: #f5f5f7;
  padding: 18px 20px;
  border-radius: 16px;
  overflow: auto;
  font-size: 14px;
}
.post-page .prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose :not(pre) > code {
  background: rgba(0, 0, 0, .06);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: .9em;
}
.post-page .prose a { color: var(--blue); text-decoration: underline; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
}
.post-nav a { color: var(--blue); }
.post-page .cta-row { justify-content: flex-start; }

.site-footer {
  background: #f5f5f7;
  color: #6e6e73;
  font-size: 12px;
  border-top: 1px solid var(--hairline);
}
.footer-inner { max-width: 980px; margin: 0 auto; padding: 28px 24px 48px; }
.footer-blurb { font-size: 14px; color: #1d1d1f; margin: 0 0 24px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.footer-col h4 { margin: 0 0 10px; color: #1d1d1f; font-size: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 7px 0; }
.footer-col a:hover { text-decoration: underline; }
.footer-legal { padding-top: 16px; }
.muted { opacity: .8; }

@media (max-width: 1068px) {
  .tile { min-height: 490px; }
  .span-2 { min-height: 560px; }
}
@media (max-width: 834px) {
  .nav-toggle { display: block; }
  .nav-links, .nav-cta {
    display: none;
  }
  .nav.open .nav-links, .nav.open .nav-cta {
    display: flex;
  }
  .nav.open {
    height: auto;
  }
  .nav.open .nav-inner {
    flex-wrap: wrap;
    padding-bottom: 16px;
  }
  .nav.open .nav-links {
    width: 100%;
    flex-direction: column;
    gap: 14px;
    font-size: 17px;
    padding: 8px 0 6px;
  }
  .tile-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; min-height: 490px; }
  .story { grid-template-columns: 1fr; padding-top: 64px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hero h2 { max-width: 12ch; }
}
@media (max-width: 480px) {
  .hero-copy { padding: 48px 18px 36px; }
  .tile { min-height: 420px; border-radius: 20px; }
  .link-wall, .story, .page-block { padding: 56px 18px; }
  .blog-head, .blog-list { padding-left: 18px; padding-right: 18px; }
  .post-page { padding: 48px 18px 64px; }
  .post-card { grid-template-columns: 1fr; gap: 0; }
  .post-cover { height: 190px; min-height: 0; }
  .post-body { padding: 18px 20px 22px; }
  .footer-cols { grid-template-columns: 1fr; }
  .cta-row { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .link-card { transition: none; }
}
