/* stb · tokens */
:root {
  --stb-ink: #0d1b2a;
  --stb-ink-deep: #08131f;
  --stb-ink-soft: #1b2c3e;
  --stb-sky: #6ec1e4;
  --stb-blue: #6087c9;
  --stb-blue-deep: #4b6fa6;
  --stb-tan: #cd853f;
  --stb-tan-deep: #9a5f2a;
  --stb-green: #61ce70;
  --stb-paper: #ffffff;
  --stb-wash: #f2f5f7;
  --stb-warm: #faf6ef;
  --stb-line: #dde5eb;
  --stb-text: #39434f;
  --stb-muted: #5f6a76;
  --stb-radius: 6px;
  --stb-radius-sm: 3px;
  --stb-shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06), 0 8px 22px rgba(13, 27, 42, 0.06);
  --stb-shadow-md: 0 2px 6px rgba(13, 27, 42, 0.08), 0 20px 45px rgba(13, 27, 42, 0.12);
  --stb-max: 1180px;
  --stb-gap: 24px;
  --stb-font-body: "Roboto", Arial, sans-serif;
  --stb-font-head: "Rubik", Arial, sans-serif;
  --stb-font-display: "Bebas Neue", Impact, sans-serif;
  --stb-font-slab: "Roboto Slab", Georgia, serif;
  --stb-font-mono: "Cascadia Code", "Consolas", "Liberation Mono", monospace;
}

/* stb · reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--stb-paper);
  color: var(--stb-text);
  font-family: var(--stb-font-body);
  font-size: 1.02rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--stb-tan-deep);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1.15em;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--stb-ink);
  font-family: var(--stb-font-head);
  line-height: 1.15;
}

strong {
  color: var(--stb-ink);
}

::selection {
  background: var(--stb-sky);
  color: var(--stb-ink);
}

:focus-visible {
  outline: 3px solid var(--stb-tan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* stb · utilities */
.stb-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.stb-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  padding: 12px 20px;
  background: var(--stb-ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--stb-radius);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.stb-skip:focus {
  transform: translateY(0);
  color: #fff;
  text-decoration: none;
}

.stb-wrap {
  width: 100%;
  max-width: var(--stb-max);
  margin: 0 auto;
  padding: 0 24px;
}

.stb-band {
  padding: clamp(62px, 8vw, 104px) 0;
}

.stb-band--wash {
  background: var(--stb-wash);
  border-top: 1px solid var(--stb-line);
  border-bottom: 1px solid var(--stb-line);
}

.stb-band--warm {
  background: var(--stb-warm);
  border-top: 1px solid #efe5d6;
  border-bottom: 1px solid #efe5d6;
}

.stb-band--ink {
  background: var(--stb-ink);
  color: #dbe5ee;
}

.stb-band--ink h2,
.stb-band--ink h3 {
  color: #fff;
}

.stb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--stb-tan-deep);
  font-family: var(--stb-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

.stb-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

.stb-band--ink .stb-kicker {
  color: var(--stb-sky);
}

.stb-title {
  font-size: clamp(1.85rem, 3.4vw, 2.95rem);
  font-weight: 700;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}

.stb-lede {
  max-width: 62ch;
  color: var(--stb-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.stb-band--ink .stb-lede {
  color: #b9c7d4;
}

.stb-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px 56px;
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.stb-section-head .stb-lede {
  margin: 0;
}

.stb-rule {
  width: 100%;
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--stb-line);
}

/* stb · buttons */
.stb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--stb-radius);
  font-family: var(--stb-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.stb-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.stb-btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.stb-btn--solid {
  background: var(--stb-ink);
  border-color: var(--stb-ink);
  color: #fff;
}

.stb-btn--solid:hover,
.stb-btn--solid:focus-visible {
  background: var(--stb-tan);
  border-color: var(--stb-tan);
  color: var(--stb-ink);
  box-shadow: var(--stb-shadow-sm);
}

.stb-btn--tan {
  background: var(--stb-tan);
  border-color: var(--stb-tan);
  color: var(--stb-ink);
}

.stb-btn--tan:hover,
.stb-btn--tan:focus-visible {
  background: var(--stb-sky);
  border-color: var(--stb-sky);
  color: var(--stb-ink);
}

.stb-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.stb-btn--ghost:hover,
.stb-btn--ghost:focus-visible {
  background: #fff;
  border-color: #fff;
  color: var(--stb-ink);
}

.stb-btn--line {
  background: transparent;
  border-color: var(--stb-ink);
  color: var(--stb-ink);
}

.stb-btn--line:hover,
.stb-btn--line:focus-visible {
  background: var(--stb-ink);
  color: #fff;
}

.stb-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* stb · header */
.stb-shell {
  position: relative;
  z-index: 10;
}

.stb-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--stb-line);
  backdrop-filter: blur(10px);
}

.stb-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--stb-tan) 0%, var(--stb-sky) 52%, var(--stb-blue) 100%);
}

.stb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--stb-max);
  margin: 0 auto;
  padding: 13px 24px;
}

.stb-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  line-height: 0;
}

.stb-brand img {
  width: auto;
  height: 42px;
}

.stb-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stb-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stb-nav a {
  position: relative;
  display: block;
  padding: 10px 11px;
  border-radius: var(--stb-radius-sm);
  color: var(--stb-ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.stb-nav a:hover {
  background: var(--stb-warm);
  color: var(--stb-tan-deep);
  text-decoration: none;
}

.stb-nav a[aria-current="page"] {
  color: var(--stb-tan-deep);
}

.stb-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--stb-tan);
}

.stb-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--stb-line);
  border-radius: var(--stb-radius);
  background: #fff;
  color: var(--stb-ink);
  cursor: pointer;
}

.stb-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: background 0.2s ease;
}

.stb-toggle span::before,
.stb-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.stb-toggle span::before {
  top: -6px;
}

.stb-toggle span::after {
  top: 6px;
}

.stb-toggle[aria-expanded="true"] span {
  background: transparent;
}

.stb-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.stb-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* stb · hero */
.stb-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 84vh;
  padding: clamp(90px, 12vw, 150px) 0 clamp(100px, 13vw, 170px);
  overflow: hidden;
  background: var(--stb-ink);
  color: #fff;
  text-align: center;
}

.stb-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.stb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 19, 31, 0.82) 0%, rgba(8, 19, 31, 0.44) 42%, rgba(8, 19, 31, 0.9) 100%),
    linear-gradient(90deg, rgba(13, 27, 42, 0.55), rgba(13, 27, 42, 0.2));
}

.stb-hero__inner {
  width: 100%;
  max-width: 900px;
  padding: 0 24px;
}

.stb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--stb-sky);
  font-family: var(--stb-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.34em;
  line-height: 1;
  text-transform: uppercase;
}

.stb-hero__eyebrow::before,
.stb-hero__eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.stb-hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  color: #fff;
  font-family: var(--stb-font-display);
  font-size: clamp(3.3rem, 8.4vw, 6.9rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
}

.stb-hero__lede {
  max-width: 58ch;
  margin: 26px auto 0;
  color: #dbe6ee;
  font-family: var(--stb-font-slab);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
}

.stb-hero .stb-btn-row {
  justify-content: center;
  margin-top: 34px;
}

.stb-hero__note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 34px 0 0;
  padding: 0;
  color: #a9bac9;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  list-style: none;
  text-transform: uppercase;
}

.stb-hero__note li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stb-hero__note li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--stb-tan);
  border-radius: 50%;
}

/* stb · facts strip */
.stb-facts {
  position: relative;
  z-index: 20;
  margin-top: -58px;
}

.stb-facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: var(--stb-ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--stb-radius);
  box-shadow: var(--stb-shadow-md);
}

.stb-fact {
  padding: 26px 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stb-fact:last-child {
  border-right: 0;
}

.stb-fact strong {
  display: block;
  color: var(--stb-sky);
  font-family: var(--stb-font-display);
  font-size: 2.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
}

.stb-fact span {
  display: block;
  margin-top: 6px;
  color: #b9c7d4;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

/* stb · orientation */
.stb-orient {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.stb-orient__copy h2 {
  margin-bottom: 22px;
  font-size: clamp(1.85rem, 3.4vw, 2.9rem);
  text-transform: uppercase;
}

.stb-orient__copy p {
  font-size: 1.02rem;
  line-height: 1.8;
}

.stb-orient__media {
  position: relative;
}

.stb-orient__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--stb-radius);
  box-shadow: var(--stb-shadow-md);
}

.stb-orient__media::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  z-index: -1;
  border: 1px solid var(--stb-tan);
  border-radius: var(--stb-radius);
}

.stb-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.stb-points li {
  padding: 7px 12px;
  border: 1px solid var(--stb-line);
  border-radius: var(--stb-radius-sm);
  background: #fff;
  color: var(--stb-ink);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* stb · cards */
.stb-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stb-line);
  border-radius: var(--stb-radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(205, 133, 63, 0.55);
  box-shadow: var(--stb-shadow-md);
}

.stb-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--stb-blue-deep);
  color: #fff;
}

.stb-card__top--tan {
  background: var(--stb-tan);
  color: var(--stb-ink);
}

.stb-card__top--ink {
  background: var(--stb-ink);
  color: var(--stb-sky);
}

.stb-card__num {
  font-family: var(--stb-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  line-height: 1;
}

.stb-card__icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.stb-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 22px 26px;
}

.stb-card__body h3 {
  margin-bottom: 10px;
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.stb-card__body p {
  margin: 0 0 18px;
  color: var(--stb-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.stb-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--stb-tan-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stb-card__link:hover {
  color: var(--stb-ink);
  text-decoration: none;
}

.stb-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.stb-card:hover .stb-card__link svg {
  transform: translateX(3px);
}

/* stb · chapter cards */
.stb-chapter {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 25px 24px;
  background: #fff;
  border: 1px solid var(--stb-line);
  border-radius: var(--stb-radius);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.stb-chapter::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--stb-tan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.24s ease;
}

.stb-chapter:hover {
  transform: translateY(-4px);
  border-color: rgba(205, 133, 63, 0.5);
  box-shadow: var(--stb-shadow-md);
}

.stb-chapter:hover::before {
  transform: scaleY(1);
}

.stb-chapter__num {
  display: block;
  margin-bottom: 14px;
  color: var(--stb-blue);
  font-family: var(--stb-font-display);
  font-size: 2.1rem;
  letter-spacing: 0.14em;
  line-height: 1;
}

.stb-chapter h3 {
  margin-bottom: 9px;
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stb-chapter p {
  margin: 0 0 20px;
  color: var(--stb-muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

.stb-chapter__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--stb-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stb-chapter__go svg {
  width: 14px;
  height: 14px;
  color: var(--stb-tan);
  transition: transform 0.2s ease;
}

.stb-chapter:hover .stb-chapter__go svg {
  transform: translateX(3px);
}

.stb-chapter:hover,
.stb-chapter:focus-visible {
  text-decoration: none;
}

/* stb · marks */
.stb-marks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stb-mark {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #ece2d4;
  border-radius: var(--stb-radius);
}

.stb-mark__check {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(97, 206, 112, 0.14);
  color: #2f7d3c;
}

.stb-mark__check svg {
  width: 17px;
  height: 17px;
}

.stb-mark h3 {
  margin: 0 0 4px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stb-mark p {
  margin: 0;
  color: var(--stb-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* stb · function grid */
.stb-functions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--stb-radius);
}

.stb-function {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--stb-ink);
  color: #dbe5ee;
  transition: background 0.2s ease;
}

.stb-function:hover {
  background: var(--stb-ink-soft);
  text-decoration: none;
}

.stb-function__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.stb-function__num {
  color: var(--stb-sky);
  font-family: var(--stb-font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}

.stb-function h3 {
  margin: 8px 0 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stb-function p {
  margin: 0 0 18px;
  color: #a9bac9;
  font-size: 0.86rem;
  line-height: 1.65;
}

.stb-function__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--stb-sky);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stb-function__go svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.stb-function:hover .stb-function__go svg {
  transform: translateX(3px);
}

/* stb · pull quote */
.stb-quote {
  margin: 0;
  padding: 30px 32px;
  background: var(--stb-warm);
  border-left: 4px solid var(--stb-tan);
  border-radius: 0 var(--stb-radius) var(--stb-radius) 0;
}

.stb-quote p {
  margin: 0;
  color: var(--stb-ink);
  font-family: var(--stb-font-slab);
  font-size: 1.06rem;
  line-height: 1.7;
}

/* stb · CTA */
.stb-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(30px, 4vw, 46px);
  background: var(--stb-ink);
  border-radius: var(--stb-radius);
  color: #dbe5ee;
  box-shadow: var(--stb-shadow-md);
}

.stb-cta h2 {
  margin-bottom: 8px;
  color: #fff;
  font-family: var(--stb-font-display);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.stb-cta p {
  margin: 0;
  color: #b9c7d4;
  font-size: 0.95rem;
}

/* stb · footer */
.stb-footer {
  background: var(--stb-ink-deep);
  color: #a9bac9;
}

.stb-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 34px;
  max-width: var(--stb-max);
  margin: 0 auto;
  padding: 38px 24px;
}

.stb-footer__brand {
  display: inline-flex;
  flex: none;
  line-height: 0;
}

.stb-footer__brand img {
  width: auto;
  height: 38px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.stb-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stb-footer__nav a {
  color: #c5d0da;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stb-footer__nav a:hover {
  color: var(--stb-sky);
  text-decoration: none;
}

.stb-footer__legal {
  margin: 0;
  color: #8595a4;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.stb-footer__legal span {
  color: var(--stb-sky);
}

/* stb · page head */
.stb-pagehead {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 7vw, 84px) 0 clamp(48px, 6vw, 72px);
  background: var(--stb-ink);
  color: #dbe5ee;
}

.stb-pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
  pointer-events: none;
}

.stb-pagehead::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(110, 193, 228, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

.stb-pagehead__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 30px;
  align-items: end;
}

.stb-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  color: #8595a4;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  list-style: none;
  text-transform: uppercase;
}

.stb-crumbs li::after {
  content: "/";
  margin-left: 8px;
  color: #5d7185;
}

.stb-crumbs li:last-child::after {
  content: "";
  margin: 0;
}

.stb-crumbs a {
  color: #b9c7d4;
}

.stb-crumbs a:hover {
  color: var(--stb-sky);
  text-decoration: none;
}

.stb-crumbs [aria-current="page"] {
  color: var(--stb-sky);
}

.stb-pagehead__chapter {
  display: block;
  margin-bottom: 12px;
  color: var(--stb-sky);
  font-family: var(--stb-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;
}

.stb-pagehead h1 {
  max-width: 20ch;
  color: #fff;
  font-family: var(--stb-font-display);
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.96;
  text-transform: uppercase;
}

.stb-pagehead__lede {
  max-width: 60ch;
  margin: 18px 0 0;
  color: #b9c7d4;
  font-family: var(--stb-font-slab);
  font-size: 1.02rem;
  line-height: 1.72;
}

.stb-pagehead__stamp {
  justify-self: end;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--stb-radius);
  background: rgba(255, 255, 255, 0.04);
  color: #9fb1c1;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  line-height: 1.8;
  text-transform: uppercase;
}

.stb-pagehead__stamp strong {
  display: block;
  color: var(--stb-sky);
  font-family: var(--stb-font-display);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* stb · document layout */
.stb-doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.stb-toc {
  position: sticky;
  top: 100px;
}

.stb-toc h2 {
  margin: 0 0 12px;
  color: var(--stb-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stb-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stbtoc;
  border-left: 2px solid var(--stb-line);
}

.stb-toc li {
  counter-increment: stbtoc;
}

.stb-toc a {
  position: relative;
  display: block;
  padding: 8px 0 8px 16px;
  color: var(--stb-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.stb-toc a::before {
  content: counter(stbtoc, decimal-leading-zero);
  margin-right: 8px;
  color: var(--stb-blue-deep);
  font-family: var(--stb-font-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.stb-toc a:hover {
  color: var(--stb-ink);
  text-decoration: none;
}

.stb-toc a.isActive {
  color: var(--stb-tan-deep);
  font-weight: 600;
}

.stb-toc a.isActive::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--stb-tan);
}

/* stb · prose */
.stb-prose {
  min-width: 0;
  max-width: 76ch;
}

.stb-prose h2 {
  margin: 54px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--stb-line);
  font-size: clamp(1.3rem, 2vw, 1.62rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.stb-prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.stb-prose h3 {
  margin: 30px 0 8px;
  font-size: 1.02rem;
  font-weight: 600;
}

.stb-prose p,
.stb-prose li {
  font-size: 0.98rem;
  line-height: 1.8;
}

.stb-prose ul,
.stb-prose ol {
  padding-left: 1.3em;
}

.stb-prose li {
  margin-bottom: 0.4em;
}

.stb-prose a {
  color: var(--stb-tan-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(154, 95, 42, 0.45);
}

.stb-prose a:hover {
  color: var(--stb-ink);
  text-decoration-color: var(--stb-tan);
}

.stb-prose code {
  padding: 2px 6px;
  background: var(--stb-wash);
  border: 1px solid var(--stb-line);
  border-radius: var(--stb-radius-sm);
  color: var(--stb-ink);
  font-family: var(--stb-font-mono);
  font-size: 0.86em;
}

.stb-chapter-no {
  display: inline-block;
  margin-right: 10px;
  color: var(--stb-blue);
  font-family: var(--stb-font-display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  vertical-align: 2px;
}

.stb-ext {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stb-ext svg {
  width: 12px;
  height: 12px;
  flex: none;
  opacity: 0.8;
}

/* stb · notes and callouts */
.stb-note {
  margin: 26px 0;
  padding: 20px 22px;
  background: var(--stb-warm);
  border: 1px solid #ece2d4;
  border-left: 4px solid var(--stb-tan);
  border-radius: 0 var(--stb-radius) var(--stb-radius) 0;
}

.stb-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stb-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* stb · code panels */
.stb-code {
  margin: 22px 0 26px;
  overflow: hidden;
  background: var(--stb-ink-deep);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--stb-radius);
}

.stb-code__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stb-code__label {
  color: #8fa3b5;
  font-family: var(--stb-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stb-code__copy {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--stb-radius-sm);
  background: transparent;
  color: #b9c7d4;
  font-family: var(--stb-font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.stb-code__copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.stb-code pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  background: transparent;
  border: 0;
  color: #dbe6ee;
  font-family: var(--stb-font-mono);
  font-size: 0.84rem;
  line-height: 1.75;
  tab-size: 2;
}

.stb-code code {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.stb-code .tok-key {
  color: #ffcf8b;
}

.stb-code .tok-str {
  color: #9fe3b2;
}

.stb-code .tok-com {
  color: #7d93a7;
}

.stb-code .tok-fn {
  color: #8fd7f0;
}

/* stb · function reference */
.stb-ref {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 16px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.stb-ref strong {
  color: var(--stb-ink);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* stb · steps */
.stb-step {
  position: relative;
  padding: 0 0 30px 54px;
  border-left: 2px solid var(--stb-line);
}

.stb-step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.stb-step__badge {
  position: absolute;
  left: -19px;
  top: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--stb-ink);
  border-radius: 50%;
  color: var(--stb-sky);
  font-family: var(--stb-font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.stb-step h2 {
  margin: 0 0 10px;
  padding-top: 4px;
  border-top: 0;
  font-size: 1.12rem;
  text-transform: uppercase;
}

.stb-step p,
.stb-step li {
  font-size: 0.95rem;
}

/* stb · FAQ */
.stb-faq {
  display: grid;
  gap: 12px;
  max-width: 80ch;
}

.stb-faq details {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stb-line);
  border-radius: var(--stb-radius);
}

.stb-faq details[open] {
  border-color: rgba(205, 133, 63, 0.5);
  box-shadow: var(--stb-shadow-sm);
}

.stb-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  color: var(--stb-ink);
  font-family: var(--stb-font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.stb-faq summary::after {
  content: "+";
  flex: none;
  color: var(--stb-tan-deep);
  font-family: var(--stb-font-body);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.stb-faq details[open] summary::after {
  transform: rotate(45deg);
}

.stb-faq__body {
  padding: 0 22px 20px;
  color: var(--stb-muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.stb-faq__body p:last-child {
  margin-bottom: 0;
}

/* stb · resource shelf */
.stb-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 0;
  padding: 7px 8px 7px 16px;
  background: #fff;
  border: 1px solid var(--stb-line);
  border-radius: var(--stb-radius);
  box-shadow: var(--stb-shadow-sm);
}

.stb-search svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--stb-muted);
}

.stb-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--stb-ink);
  font-family: var(--stb-font-body);
  font-size: 0.92rem;
}

.stb-search input:focus {
  outline: none;
}

.stb-search__count {
  flex: none;
  padding: 6px 10px;
  background: var(--stb-wash);
  border-radius: var(--stb-radius-sm);
  color: var(--stb-muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stb-shelf {
  columns: 2;
  column-gap: 26px;
}

.stb-shelf__group {
  display: inline-block;
  width: 100%;
  margin: 0 0 26px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--stb-line);
  border-radius: var(--stb-radius);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.stb-shelf__group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stb-line);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stb-shelf__group h2 svg {
  width: 17px;
  height: 17px;
  color: var(--stb-tan-deep);
}

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

.stb-shelf__list li {
  border-bottom: 1px dotted #e5ebf0;
}

.stb-shelf__list li:last-child {
  border-bottom: 0;
}

.stb-shelf__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: start;
  padding: 9px 0;
  color: var(--stb-ink);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
}

.stb-shelf__list a:hover {
  color: var(--stb-tan-deep);
  text-decoration: none;
}

.stb-shelf__list a svg {
  width: 13px;
  height: 13px;
  margin-top: 4px;
  color: var(--stb-blue);
}

.stb-shelf__list span {
  display: block;
  margin-top: 2px;
  color: var(--stb-muted);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.5;
}

.stb-shelf__empty {
  display: none;
  padding: 24px;
  background: var(--stb-warm);
  border: 1px dashed var(--stb-tan);
  border-radius: var(--stb-radius);
  color: var(--stb-ink);
  font-size: 0.92rem;
}

.stb-shelf__empty.isVisible {
  display: block;
}

/* stb · reveal */
.stb-js [data-stb-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stb-js [data-stb-reveal].isVisible {
  opacity: 1;
  transform: translateY(0);
}

/* stb · 404 */
.stb-lost {
  display: grid;
  place-items: center;
  min-height: 72vh;
  padding: 80px 24px;
  background: var(--stb-ink);
  color: #dbe5ee;
  text-align: center;
}

.stb-lost__inner {
  max-width: 640px;
}

.stb-lost__code {
  margin: 0;
  color: var(--stb-sky);
  font-family: var(--stb-font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.stb-lost h1 {
  margin: 14px 0 10px;
  color: #fff;
  font-family: var(--stb-font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.stb-lost p {
  margin: 0 0 24px;
  color: #b9c7d4;
}

.stb-lost__actions {
  justify-content: center;
}

/* stb · responsive */
@media (max-width: 1023px) {
  .stb-nav {
    gap: 0;
  }

  .stb-nav a {
    padding: 9px 8px;
    font-size: 0.64rem;
  }

  .stb-section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .stb-orient {
    grid-template-columns: 1fr;
  }

  .stb-orient__media {
    order: -1;
  }

  .stb-orient__media::after {
    display: none;
  }

  .stb-functions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stb-doc {
    grid-template-columns: 1fr;
  }

  .stb-toc {
    position: static;
    padding: 18px 20px;
    background: var(--stb-wash);
    border: 1px solid var(--stb-line);
    border-radius: var(--stb-radius);
  }

  .stb-toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    border-left: 0;
  }

  .stb-toc a {
    padding: 4px 0;
  }

  .stb-toc a::after {
    display: none;
  }

  .stb-pagehead__inner {
    grid-template-columns: 1fr;
  }

  .stb-pagehead__stamp {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .stb-toggle {
    display: inline-flex;
  }

  .stb-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--stb-line);
    box-shadow: var(--stb-shadow-md);
  }

  .stb-nav.isOpen {
    display: flex;
  }

  .stb-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .stb-nav a {
    padding: 14px 12px;
    font-size: 0.76rem;
    border-radius: var(--stb-radius-sm);
  }

  .stb-nav a[aria-current="page"] {
    background: var(--stb-warm);
  }

  .stb-nav a[aria-current="page"]::after {
    display: none;
  }

  .stb-header__inner {
    position: relative;
  }

  .stb-hero {
    min-height: auto;
    padding: 84px 0 120px;
  }

  .stb-facts {
    margin-top: -48px;
  }

  .stb-facts__grid {
    grid-template-columns: 1fr;
  }

  .stb-fact {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .stb-fact:last-child {
    border-bottom: 0;
  }

  .stb-fact span {
    margin-top: 0;
  }

  .stb-marks {
    grid-template-columns: 1fr;
  }

  .stb-cta {
    grid-template-columns: 1fr;
  }

  .stb-shelf {
    columns: 1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .stb-wrap {
    padding: 0 18px;
  }

  .stb-header__inner {
    padding: 11px 18px;
  }

  .stb-brand img {
    height: 36px;
  }

  .stb-hero h1 {
    font-size: clamp(2.9rem, 15vw, 4.2rem);
  }

  .stb-hero__eyebrow {
    font-size: 1rem;
    letter-spacing: 0.22em;
  }

  .stb-hero__eyebrow::before,
  .stb-hero__eyebrow::after {
    width: 22px;
  }

  .stb-hero__lede {
    font-size: 0.97rem;
  }

  .stb-btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .stb-btn {
    width: 100%;
  }

  .stb-hero .stb-btn-row {
    align-items: stretch;
  }

  .stb-functions {
    grid-template-columns: 1fr;
  }

  .stb-code pre {
    font-size: 0.78rem;
    padding: 16px;
  }

  .stb-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .stb-step {
    padding-left: 44px;
  }

  .stb-step__badge {
    left: -17px;
    width: 32px;
    height: 32px;
  }

  .stb-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.16em;
  }

  .stb-shelf-tools {
    align-items: flex-start;
  }

  .stb-wrap .columns.is-variable {
    --columnGap: 0.75rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .stb-js [data-stb-reveal] {
    opacity: 1;
    transform: none;
  }
}
