:root {
  --paper: #f5f3ed;
  --paper-alt: #ebe8df;
  --ink: #151821;
  --muted: #676b73;
  --blue: #2c4cdb;
  --orange: #f15d3a;
  --lime: #c9ef58;
  --line: rgba(21, 24, 33, .18);
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.page-width { width: min(1220px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 max(24px, calc((100vw - 1220px) / 2)); background: rgba(245, 243, 237, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { width: max-content; display: flex; align-items: center; gap: 9px; }
.brand i { width: 22px; height: 22px; display: block; background: var(--blue); border: 6px solid var(--lime); border-radius: 50%; }
.brand strong { font-size: 17px; letter-spacing: -.04em; }
.site-header nav { display: flex; gap: 29px; }
.site-header nav a { position: relative; color: #545861; font-size: 13px; }
.site-header nav a::after { content: ""; position: absolute; right: 100%; bottom: -8px; left: 0; height: 2px; background: var(--orange); transition: right .2s; }
.site-header nav a:hover::after, .site-header nav a.active::after { right: 0; }
.site-header > span { justify-self: end; color: #777a81; font: 400 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }

.hero { display: flex; align-items: center; flex-direction: column; justify-content: center; padding: 88px 0 92px; text-align: center; }
.hero-labels { display: flex; justify-content: center; gap: 10px; margin-bottom: 31px; }
.hero-labels span { padding: 8px 11px; color: #62666f; border: 1px solid var(--line); font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.hero-labels span:first-child { color: white; background: var(--orange); border-color: var(--orange); }
.hero h1 { max-width: 1100px; margin: 0; font-size: clamp(46px, 4.9vw, 68px); font-weight: 600; line-height: 1.02; letter-spacing: -.06em; }
.hero h1 em { color: var(--blue); font-style: normal; }
.resource-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.resource-link { min-width: 170px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 17px; border: 1px solid var(--ink); font-size: 13px; font-weight: 600; }
.resource-link b { font-family: var(--mono); font-size: 11px; }
.resource-link.primary { color: white; background: var(--blue); border-color: var(--blue); transition: background .2s, transform .2s; }
.resource-link.primary:hover { background: #1936ab; transform: translateY(-2px); }

.result-section { padding-top: 110px; padding-bottom: 125px; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
.section-tint { width: 100%; background: var(--paper-alt); }
.section-header { display: grid; grid-template-columns: 90px minmax(280px, 1fr) 1fr; align-items: end; gap: 35px; margin-bottom: 43px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.section-index, .kicker, .video-card figcaption > span, .video-card figcaption small { font-family: var(--mono); text-transform: uppercase; letter-spacing: .065em; }
.section-index { align-self: start; color: var(--blue); font-size: 11px; font-weight: 500; }
.kicker { margin: 0 0 10px; color: var(--orange); font-size: 10px; }
.section-header h2 { margin: 0; font-size: clamp(34px, 3.5vw, 48px); font-weight: 600; line-height: 1.05; letter-spacing: -.05em; }
.section-note { max-width: 500px; justify-self: end; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }

.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 20px; }
.video-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-grid-training .video-card-featured { grid-column: 1 / -1; margin-bottom: 16px; }
.video-grid-training .video-card-featured video { aspect-ratio: 16 / 8; }
.video-grid-training .video-card-featured figcaption h3 { font-size: 21px; }
.video-card { min-width: 0; margin: 0; }
.video-card video { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; color: white; background: #090b10; border: 0; }
.video-grid-wide .video-card video { aspect-ratio: 8 / 3; }
.video-card figcaption { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; padding-top: 15px; }
.video-card figcaption > span { padding-top: 3px; color: var(--blue); font-size: 10px; font-weight: 500; }
.video-card figcaption h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.video-card figcaption small { padding-top: 3px; color: #898c92; font-size: 10px; }

.hardware-section { width: 100%; color: white; background: var(--ink); border-top: 0; }
.section-header-light { border-bottom-color: rgba(255,255,255,.3); }
.section-header-light .section-index { color: var(--lime); }
.section-header-light .section-note { color: #a1a5ae; }
.video-card-dark figcaption > span { color: var(--lime); }
.video-card-dark figcaption small { color: #9297a1; }

footer { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 35px max(24px, calc((100vw - 1220px) / 2)); background: var(--paper); border-top: 1px solid var(--line); }
footer div { display: flex; align-items: baseline; gap: 13px; }
footer strong { color: var(--blue); font-size: 20px; letter-spacing: -.04em; }
footer span, footer p, footer a { color: #777a81; font: 400 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
footer p { margin: 0; }
footer a { justify-self: end; padding-bottom: 4px; border-bottom: 1px solid #a3a198; }

@media (max-width: 950px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .section-header { grid-template-columns: 55px 1fr; }
  .section-note { grid-column: 2; justify-self: start; }
  .video-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .page-width { width: calc(100% - 32px); }
  .site-header { height: 58px; padding: 0 16px; }
  .site-header > span { font-size: 8px; }
  .hero { padding: 70px 0 76px; }
  .hero-labels { flex-wrap: wrap; }
  .hero h1 { font-size: 40px; }
  .resource-link { width: 100%; }
  .result-section { padding: 78px 0 88px; }
  .section-header { grid-template-columns: 1fr; gap: 14px; }
  .section-index, .section-note { grid-column: auto; }
  .section-header h2 { font-size: 36px; }
  .video-grid, .video-grid-three { grid-template-columns: 1fr; gap: 42px; }
  .video-grid-wide .video-card video { aspect-ratio: 8 / 3; }
  .video-card figcaption { grid-template-columns: 44px 1fr auto; }
  .video-grid-training .video-card-featured figcaption h3 { font-size: 18px; }
  footer { grid-template-columns: 1fr auto; padding: 35px 16px; }
  footer div { align-items: flex-start; flex-direction: column; gap: 4px; }
  footer p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
