:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #52606d;
  --quiet: #7b8794;
  --line: #d9e2ec;
  --paper: #f7faf7;
  --panel: #ffffff;
  --panel-soft: #eef5ff;
  --red: #ef3f4b;
  --red-dark: #bd2434;
  --blue: #1f6feb;
  --blue-dark: #164ea6;
  --yellow: #f7d154;
  --code: #0f172a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 8%, rgba(31, 111, 235, 0.13), transparent 24rem),
    linear-gradient(180deg, #fbfdfb 0%, var(--paper) 100%);
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.space {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.eu-field,
.eu-ring {
  position: absolute;
  will-change: transform;
}

.eu-field {
  inset: -20vh -10vw;
  background-repeat: repeat;
}

.eu-field-a {
  opacity: 0.24;
  background-image:
    radial-gradient(circle, rgba(31, 111, 235, 0.34) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(247, 209, 84, 0.42) 0 1px, transparent 1.7px);
  background-size: 108px 108px, 180px 180px;
  background-position: 18px 24px, 72px 86px;
}

.eu-field-b {
  opacity: 0.16;
  background-image:
    linear-gradient(90deg, rgba(31, 111, 235, 0.13) 1px, transparent 1px),
    linear-gradient(180deg, rgba(31, 111, 235, 0.13) 1px, transparent 1px);
  background-size: 120px 120px;
  background-position: 40px 30px;
}

.eu-ring {
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.46;
  transform-origin: center;
  --star-radius: clamp(120px, 18vw, 260px);
}

.eu-ring-one {
  width: clamp(340px, 40vw, 620px);
  right: -9vw;
  top: 12vh;
  --star-radius: clamp(124px, 18vw, 260px);
}

.eu-ring-two {
  width: clamp(220px, 26vw, 420px);
  left: -7vw;
  top: 58vh;
  opacity: 0.30;
  --star-radius: clamp(82px, 12vw, 170px);
}

.eu-ring span {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--yellow);
  font-size: clamp(14px, 1.8vw, 24px);
  line-height: 1;
  text-shadow: 0 2px 10px rgba(247, 209, 84, 0.42);
}

.eu-ring span:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg) translateY(calc(-1 * var(--star-radius))) rotate(0deg); }
.eu-ring span:nth-child(2) { transform: translate(-50%, -50%) rotate(30deg) translateY(calc(-1 * var(--star-radius))) rotate(-30deg); }
.eu-ring span:nth-child(3) { transform: translate(-50%, -50%) rotate(60deg) translateY(calc(-1 * var(--star-radius))) rotate(-60deg); }
.eu-ring span:nth-child(4) { transform: translate(-50%, -50%) rotate(90deg) translateY(calc(-1 * var(--star-radius))) rotate(-90deg); }
.eu-ring span:nth-child(5) { transform: translate(-50%, -50%) rotate(120deg) translateY(calc(-1 * var(--star-radius))) rotate(-120deg); }
.eu-ring span:nth-child(6) { transform: translate(-50%, -50%) rotate(150deg) translateY(calc(-1 * var(--star-radius))) rotate(-150deg); }
.eu-ring span:nth-child(7) { transform: translate(-50%, -50%) rotate(180deg) translateY(calc(-1 * var(--star-radius))) rotate(-180deg); }
.eu-ring span:nth-child(8) { transform: translate(-50%, -50%) rotate(210deg) translateY(calc(-1 * var(--star-radius))) rotate(-210deg); }
.eu-ring span:nth-child(9) { transform: translate(-50%, -50%) rotate(240deg) translateY(calc(-1 * var(--star-radius))) rotate(-240deg); }
.eu-ring span:nth-child(10) { transform: translate(-50%, -50%) rotate(270deg) translateY(calc(-1 * var(--star-radius))) rotate(-270deg); }
.eu-ring span:nth-child(11) { transform: translate(-50%, -50%) rotate(300deg) translateY(calc(-1 * var(--star-radius))) rotate(-300deg); }
.eu-ring span:nth-child(12) { transform: translate(-50%, -50%) rotate(330deg) translateY(calc(-1 * var(--star-radius))) rotate(-330deg); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px clamp(20px, 5vw, 76px);
  background: rgba(251, 253, 251, 0.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand,
.nav,
.actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.nav {
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a {
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
}

.nav .octicon {
  display: inline-block;
  vertical-align: middle;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  background: var(--panel);
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(17, 24, 39, 0.12);
}

.button.primary {
  color: white;
  border-color: var(--red-dark);
  background: var(--red);
}

.btn-icon {
  gap: 7px;
}


.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 rgba(17, 24, 39, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(58px, 9vw, 118px) clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 930px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(3rem, 8.4vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  font-weight: 650;
}

.why-panel {
  max-width: 820px;
  margin-top: 28px;
  padding: 22px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff9d7;
  box-shadow: 8px 8px 0 rgba(17, 24, 39, 0.10);
}

.why-panel p {
  margin: 0;
  color: #354052;
}

.why-panel strong {
  color: var(--ink);
}

.actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.repo-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 12px 12px 0 rgba(17, 24, 39, 0.12);
}

.repo-orbit {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.repo-orbit img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.repo-card dl {
  margin: 0;
}

.repo-card div:not(.repo-orbit) {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.repo-card div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--quiet);
  font-size: 0.84rem;
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 900;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
}

.feature-band,
.blog-section {
  background: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 32px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.04rem;
}

.grid,
.skill-grid,
.command-grid,
.gs-slider,
.timeline,
.thesis-grid,
.blog-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.skill-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-grid,
.thesis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.grid article,
.skill-grid article,
.command-grid article,
.gs-slider article,
.timeline article,
.thesis-grid article,
.blog-card,
.trust-panel {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 7px 7px 0 rgba(17, 24, 39, 0.10);
}

.grid article,
.skill-grid article,
.command-grid article,
.gs-slider article,
.timeline article,
.thesis-grid article {
  min-height: 190px;
  padding: 22px;
}

.grid p,
.skill-grid p,
.gs-slider p,
.timeline p,
.thesis-grid p,
.steps,
.blog-card p:not(.blog-meta),
.trust-panel p {
  color: var(--muted);
}

.skill-grid span,
.timeline span,
.blog-meta {
  display: block;
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
}

.steps {
  margin: 0;
  padding-left: 22px;
  font-size: 1.07rem;
}

.steps li + li {
  margin-top: 14px;
}

.steps strong {
  color: var(--ink);
}

pre {
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: #dfffe7;
  background: var(--code);
  box-shadow: 7px 7px 0 rgba(17, 24, 39, 0.10);
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94rem;
}

.command-grid pre,
.gs-slider pre {
  margin-top: 18px;
  box-shadow: none;
}

.plugin-list {
  grid-template-columns: repeat(7, minmax(220px, 1fr));
  overflow-x: auto;
  padding-bottom: 8px;
}

/* Getting Started — horizontal slider, cards 2× the plugin-list min-width */
.gs-slider {
  grid-template-columns: repeat(5, minmax(440px, 1fr));
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.gs-slider article {
  scroll-snap-align: start;
}

.gs-slider article pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
}

/* Getting Started — understanding / errors two-up panels */
.gs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 76px);
  margin-top: 3rem;
}

.gs-split ul { padding-left: 1.25rem; }
.gs-split li { margin-bottom: .75rem; line-height: 1.6; }

.trust-panel {
  padding: clamp(22px, 4vw, 34px);
  background: #fff9d7;
}

.draft {
  padding: 16px;
  border: 2px solid var(--blue-dark);
  border-radius: 8px;
  color: var(--ink) !important;
  background: #eaf2ff;
  font-weight: 900;
}

.thesis {
  background: #f2f6ff;
}

.thesis-grid span {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: #ffd6dc;
  font-weight: 950;
  box-shadow: 4px 4px 0 rgba(17, 24, 39, 0.10);
}

.blog-grid {
  grid-template-columns: 2fr 1fr;
}

.blog-card {
  overflow: hidden;
}

.blog-feature {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1fr);
}

.blog-image {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 340px;
  padding: 24px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(239, 63, 75, 0.62), transparent 48%),
    radial-gradient(circle at 72% 28%, rgba(247, 209, 84, 0.9), transparent 0 10%, transparent 34%),
    repeating-linear-gradient(135deg, rgba(17, 24, 39, 0.08) 0 1px, transparent 1px 14px),
    #eaf2ff;
  border-right: 2px solid var(--ink);
}

.blog-image span {
  position: relative;
  z-index: 1;
  font-size: clamp(1.6rem, 4vw, 3.6rem);
  font-weight: 950;
  line-height: 0.95;
}

.blog-copy {
  padding: clamp(22px, 4vw, 32px);
}

.blog-card h3 {
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue-dark);
  font-weight: 950;
}

.text-link:hover {
  color: var(--ink);
}

.blog-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.faq-section {
  border-top: 1px solid var(--border, #e8e8ec);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1.5px solid var(--border, #e8e8ec);
}

.faq-item:first-child {
  border-top: 1.5px solid var(--border, #e8e8ec);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311182b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s;
}

.faq-item[open] .faq-q::after {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin-bottom: 0; }

.faq-a ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.faq-a li { margin-bottom: 6px; }

.faq-a strong { color: var(--ink); }

.faq-a code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84em;
  color: var(--blue-dark);
  background: var(--panel);
  border: 1px solid var(--border, #e8e8ec);
  border-radius: 3px;
  padding: 1px 5px;
}

.docs-section {
  border-top: 1px solid var(--border, #e8e8ec);
}

.docs-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.docs-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.docs-chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--panel);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.01em;
}

.press-section {
  border-top: 1px solid var(--border, #e8e8ec);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.press-ticker {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.press-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  padding: 8px 0;
  will-change: transform;
  -webkit-animation: press-scroll 28s linear infinite;
  animation: press-scroll 28s linear infinite;
}

.press-ticker:hover .press-track {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

@-webkit-keyframes press-scroll {
  from { -webkit-transform: translateX(0);    transform: translateX(0); }
  to   { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

@keyframes press-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.press-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.press-badge:hover {
  opacity: 1;
}

.press-badge img {
  display: block;
  height: 44px;
  width: auto;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .press-track { animation: none; }
  .press-ticker {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.footer {
  padding: clamp(42px, 7vw, 72px) clamp(20px, 5vw, 76px) 28px;
  color: var(--muted);
  background: #101827;
  border-top: 6px solid var(--red);
}

.footer-grid {
  grid-template-columns: minmax(260px, 1.3fr) minmax(180px, 0.7fr) minmax(220px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: white;
  font-weight: 950;
}

.footer-logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.footer h2 {
  margin: 0 0 18px;
  color: white;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer p,
.footer a,
.footer-list {
  color: #cbd5e1;
}

.footer-links,
.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  position: relative;
  padding-left: 18px;
}

.footer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(34px, 6vw, 56px);
  padding-top: 20px;
  border-top: 1px solid rgba(203, 213, 225, 0.22);
  color: #94a3b8;
  font-size: 0.92rem;
}

/* Demo section */
.demo-section {
  background: linear-gradient(175deg, rgba(31, 111, 235, 0.04) 0%, transparent 60%);
}

.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

/* Terminal */
.demo-terminal {
  border: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(17, 24, 39, 0.12);
  position: sticky;
  top: 94px;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: #1e293b;
  border-bottom: 1px solid #2d3f55;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.term-dot:nth-child(1) { background: #ef4444; }
.term-dot:nth-child(2) { background: #f7d154; }
.term-dot:nth-child(3) { background: #22c55e; }

.term-title {
  flex: 1;
  text-align: center;
  color: #4b6a8a;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  pointer-events: none;
  user-select: none;
}

.term-body {
  min-height: 480px;
  max-height: 560px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 22px 24px;
  background: var(--code);
  color: #dfffe7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.72;
}

.term-cmd-line {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
}

#term-output,
#term-output-2 {
  white-space: pre-wrap;
  word-break: break-word;
}

.typed-cursor { color: #dfffe7; }

.t-prompt { color: #34d399; font-weight: 700; user-select: none; }
.t-dim    { color: #4b6a8a; }
.t-role   { color: #60a5fa; font-weight: 700; }
.t-tag    { color: #64748b; font-style: italic; }
.t-star   { color: #f7d154; }

/* Document panel */
.demo-document {
  position: sticky;
  top: 94px;
}

.doc-sheet {
  border: 2px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
  background: var(--panel);
  box-shadow: 12px 12px 0 rgba(17, 24, 39, 0.12);
}

.doc-letterhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background: var(--blue);
  color: white;
  border-bottom: 2px solid var(--ink);
}

.doc-badge {
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}

.doc-ref {
  font-size: 0.76rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  opacity: 0.82;
}

.doc-title-block {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.doc-institution {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--quiet);
}

.doc-name {
  margin: 0 0 4px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.doc-subject {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.doc-body {
  margin: 0;
}

.doc-row {
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(7px);
  will-change: opacity, transform;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.doc-row.doc-visible {
  opacity: 1;
  transform: none;
}

.doc-row dt {
  padding-top: 2px;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--quiet);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.4;
}

.doc-row dd {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.55;
}

.doc-row-position {
  background: #fff9d7;
}

.doc-row-position dd {
  font-weight: 700;
}

.doc-footer {
  margin: 0;
  padding: 12px 20px;
  font-size: 0.72rem;
  color: var(--quiet);
  background: #f8fafc;
  opacity: 0;
  transition: opacity 0.5s ease 0.15s;
}

.doc-footer.doc-visible {
  opacity: 1;
}

/* Accordion */
.doc-accordion {
  border-top: 2px solid var(--line);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.doc-accordion.doc-visible {
  opacity: 1;
  transform: none;
}

@keyframes doc-ready-pulse {
  0%, 100% { background-color: #f8fafc; }
  50%       { background-color: #dbeafe; }
}

.doc-accordion.doc-ready .doc-accord-btn {
  animation: doc-ready-pulse 1.4s ease-in-out 3;
}

.doc-accordion.doc-ready .doc-accord-btn::before {
  opacity: 1;
}

.doc-accord-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s;
}

.doc-accord-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--blue);
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}

.doc-accord-btn:hover {
  background: var(--panel-soft);
}

.doc-accord-chevron {
  flex-shrink: 0;
  color: var(--quiet);
  transition: transform 0.3s ease;
}

.doc-accord-btn[aria-expanded="true"] .doc-accord-chevron {
  transform: rotate(180deg);
}

.doc-accord-body {
  max-height: 0;
  overflow: hidden;
  will-change: max-height;
  transition: max-height 0.45s ease;
}

.doc-accord-body.doc-accord-open {
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Full decision text */
.doc-full-text {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  line-height: 1.68;
  color: var(--muted);
}

.doc-com-ref {
  margin: 0 0 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.71rem;
  color: var(--quiet);
}

.doc-full-text h4 {
  margin: 14px 0 6px;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.doc-full-text h4:first-of-type {
  margin-top: 10px;
}

.doc-full-text p {
  margin: 0 0 7px;
}

.doc-full-text ol {
  margin: 4px 0 10px;
  padding-left: 18px;
}

.doc-full-text ol li {
  margin-bottom: 6px;
}

.doc-full-text .doc-sig {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-style: italic;
  color: var(--quiet);
}

.doc-full-text .doc-gen-note {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 8px;
  background: var(--blue);
  color: white;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .split,
  .skill-grid,
  .command-grid,
  .gs-slider,
  .gs-split,
  .thesis-grid,
  .demo-split,
  .blog-grid,
  .blog-feature,
  .footer-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .blog-image {
    min-height: 260px;
    border-right: 0;
    border-bottom: 2px solid var(--ink);
  }

  .demo-terminal,
  .demo-document {
    position: static;
  }

  .term-body {
    min-height: 320px;
    max-height: 420px;
    font-size: 0.76rem;
  }

  .doc-row {
    grid-template-columns: 90px 1fr;
  }

  .blog-more {
    justify-content: flex-start;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .button {
    width: 100%;
  }

  .repo-card div:not(.repo-orbit) {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
