/* RaptorSense website, in the look of aaronkp.tech: near-black blue-grey, one orange accent, Chakra Petch headings
   over Inter, thin lines and small corners. */
:root {
  --bg: #0c0f15;
  --bg-alt: #10141c;
  --panel: #151a24;
  --panel-2: #1b2130;
  --line: rgba(232, 236, 245, 0.09);
  --line-2: rgba(232, 236, 245, 0.16);
  --text: #e8ecf5;
  --muted: #8c95a8;
  --faint: #8089a0;
  --accent: #ff8f3f;
  --accent-hi: #ffa866;
  --on-accent: #14100c;
  --ok: #3ddc97;
  --radius: 10px;
  --radius-s: 6px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-head: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
img, video { max-width: 100%; height: auto; display: block; }
b, strong { color: var(--text); font-weight: 600; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--panel-2); border: 1px solid var(--line); padding: 0.1em 0.4em; border-radius: 4px; color: var(--text); }
::selection { background: var(--accent); color: var(--on-accent); }

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

.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(12, 15, 21, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { color: var(--text); font: 700 22px/1 var(--font-head); letter-spacing: 0.01em; }
.brand::after { content: "_"; color: var(--accent); margin-left: 1px; }
.brand:hover { color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.18s ease, border-color 0.18s ease; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.top .btn { padding: 10px 16px; }
@media (max-width: 780px) {
  .top .wrap { height: 64px; gap: 18px; }
  .nav { gap: 18px; }
  .nav .wide { display: none; }
  .top .btn { display: none; }
}
@media (max-width: 480px) {
  .top .wrap { gap: 12px; }
  .brand { font-size: 20px; }
  .nav .mid { display: none; }
}
@media (max-width: 360px) { .nav { gap: 12px; } .nav a { font-size: 14px; } }

/* Buttons: solid orange, or a quiet outline */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-s);
  font: 600 14px/1 var(--font-body); color: var(--text);
  border: 1px solid var(--line-2); background: transparent;
  cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; color: var(--text); border-color: var(--muted); background: var(--panel); }
.btn.primary { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.btn.primary:hover { color: var(--on-accent); background: var(--accent-hi); border-color: var(--accent-hi); }
.btn svg { width: 17px; height: 17px; }

/* Type */
.eyebrow { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; padding: 0; list-style: none; overflow: hidden; }
.eyebrow li, .kicker { font: 600 13.6px/1.4 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
/* The dot hangs in the gap before each item, so one that starts a line is clipped instead of leading it. */
.eyebrow li { position: relative; }
.eyebrow li::before { content: "·"; position: absolute; left: -12px; color: var(--faint); }
.kicker { display: block; margin-bottom: 14px; }
h1 { font: 700 clamp(38px, 5.2vw, 68px)/1 var(--font-head); letter-spacing: -0.015em; text-transform: uppercase; margin: 0 0 20px; max-width: 26ch; text-wrap: balance; }
h1 .grad, h2 .grad { color: var(--accent); }
h2 { font: 700 clamp(30px, 3.6vw, 46px)/1.08 var(--font-head); letter-spacing: -0.01em; margin: 0 0 14px; }
h3 { font: 600 19px/1.3 var(--font-head); margin: 0 0 8px; letter-spacing: 0.01em; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 64ch; margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.small { font-size: 14px; color: var(--muted); }
.hero .small { margin-top: 18px; }

/* Hero */
.hero { padding: clamp(40px, 5vw, 64px) 0 40px; }
.hero .wrap { display: grid; gap: 36px; }

/* The keyboard stage, with the orange corner marks of the portfolio's photo */
.stage {
  position: relative; margin: 0; padding: clamp(14px, 2.4vw, 30px);
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--panel);
}
.stage::before, .stage::after { content: ""; position: absolute; width: 26px; height: 26px; border: 0 solid var(--accent); pointer-events: none; }
.stage::before { top: 12px; left: 12px; border-top-width: 3px; border-left-width: 3px; }
.stage::after { right: 12px; bottom: 12px; border-right-width: 3px; border-bottom-width: 3px; }
.stage canvas { width: 100%; height: auto; display: block; }
.now-playing { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--muted); }
.now-playing a { color: var(--text); font-weight: 600; }
.dots { display: flex; gap: 2px; }
/* The bar is thin; the button around it is big enough for a thumb. */
.dots button { width: 24px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 20px; height: 4px; border-radius: 2px; background: var(--line-2); }
.dots button[aria-current="true"]::before { background: var(--accent); }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { padding: 24px 0 24px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font: 700 34px/1.1 var(--font-head); color: var(--text); }
.stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 780px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Sections */
section { padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
section.tight, .hero, .page-head + section { border-top: 0; }
section.tight { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 40px; }
.section-head p { color: var(--muted); max-width: 62ch; margin: 0; }

.shot { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--panel); }
.shot figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.media-pair { display: grid; grid-template-columns: 1.95fr 1fr; gap: 20px; align-items: start; }
.shot video { width: 100%; background: var(--bg); }
@media (max-width: 860px) { .media-pair { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg-alt); padding: 28px; }
.grid .card { border-radius: 0; }
.split .card, .card.alone { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 40px; height: 40px; border-radius: var(--radius-s); display: grid; place-items: center; margin-bottom: 18px; background: rgba(255, 143, 63, 0.1); color: var(--accent); border: 1px solid rgba(255, 143, 63, 0.25); }
.icon svg { width: 21px; height: 21px; }
.icon.sky { background: rgba(255, 143, 63, 0.1); color: var(--accent); }

/* Laptops */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
th, td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 14px var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.yes { color: var(--ok); }
.no { color: var(--faint); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
#preysense { scroll-margin-top: 100px; }

/* Which laptops */
.finder { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--panel); padding: clamp(20px, 3vw, 30px); margin-bottom: 16px; }
.finder[hidden] { display: none; }
.finder label { display: block; font: 600 16px/1.3 var(--font-head); margin-bottom: 10px; }
.finder-row { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; }
.finder input { flex: 1 1 220px; min-width: 0; padding: 12px 16px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--bg-alt); color: var(--text); font: 16px var(--font-body); }
.finder input:focus { outline: none; border-color: var(--accent); }
.finder input::placeholder { color: var(--faint); }
.finder .small { margin: 10px 0 0; overflow-wrap: anywhere; }
.finder-result { color: var(--muted); }
.finder-result:not(:empty) { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.finder-result h4 { margin: 0 0 6px; font: 600 19px/1.3 var(--font-head); color: var(--text); }
.finder-result p { margin: 0 0 14px; max-width: 70ch; }
.finder-result p:last-child { margin-bottom: 0; }
.models { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.models .card { border-radius: 0; padding: 24px; }
.models h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.models ul { list-style: none; margin: 14px 0 0; padding: 0; font-size: 14.5px; color: var(--muted); }
.models li { padding: 4px 8px; margin: 0 -8px; border-radius: 4px; display: flex; justify-content: space-between; gap: 12px; }
.models li b { white-space: nowrap; font-weight: 500; }
.models li.hit { background: rgba(255, 143, 63, 0.14); color: var(--text); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); }
.dot.try { background: var(--accent); }
.sub { margin: 36px 0 14px; }

/* FAQ */
.faq { display: grid; max-width: 880px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 20px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font: 600 22px/1 var(--font-head); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 20px; color: var(--muted); max-width: 72ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; gap: 14px; }
footer p { margin: 0; max-width: 90ch; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer nav a { color: var(--muted); }
footer nav a:hover { color: var(--text); }

/* Animations page */
.page-head { padding: clamp(56px, 8vw, 96px) 0 16px; }
.page-head h1 { max-width: 18ch; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 28px; }
.search { flex: 1 1 260px; position: relative; }
.search input {
  width: 100%; padding: 12px 16px 12px 42px; border-radius: var(--radius-s); border: 1px solid var(--line-2);
  background: var(--bg-alt); color: var(--text); font: 15px var(--font-body);
}
.search input:focus { outline: none; border-color: var(--accent); }
.search input::placeholder { color: var(--faint); }
.search svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 9px 14px; border-radius: var(--radius-s); border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 14px var(--font-body); cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { color: var(--accent); border-color: rgba(255, 143, 63, 0.5); background: rgba(255, 143, 63, 0.08); }
.count { color: var(--faint); font-size: 14px; margin-left: auto; }

.anims { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
@media (max-width: 420px) { .anims { grid-template-columns: 1fr; } }
.anim { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.18s ease; }
.anim:hover { border-color: var(--line-2); }
.anim.target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 143, 63, 0.18); }
.anim .screen { position: relative; padding: 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); cursor: pointer; }
.anim canvas { width: 100%; height: auto; display: block; }
.anim .play { position: absolute; inset: 0; display: none; place-items: center; background: transparent; border: 0; color: var(--text); cursor: pointer; }
.anim .play span { padding: 8px 14px; border-radius: var(--radius-s); background: rgba(12, 15, 21, 0.85); border: 1px solid var(--line-2); font: 600 13px var(--font-body); }
.still .anim .play { display: grid; }
.still .anim.playing .play { display: none; }
.anim .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.anim h3 { margin: 0; overflow-wrap: anywhere; }
.anim .by { font-size: 14px; color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.anim .about { font-size: 14px; color: var(--muted); margin: 2px 0 0; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.tag { font: 600 11.5px/1.5 var(--font-head); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line); }
.tag.music { color: var(--accent); border-color: rgba(255, 143, 63, 0.4); }
.anim .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 14px; }
.anim .btn { padding: 10px 14px; font-size: 13.6px; }
.anim .hint { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; overflow-wrap: anywhere; }
.anim .hint:empty { display: none; }
.link-btn { background: none; border: 0; color: var(--muted); font: 14px var(--font-body); cursor: pointer; padding: 6px 0; margin-left: auto; }
.link-btn:hover { color: var(--text); }
.empty { padding: 48px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty .link-btn { margin-left: 0; color: var(--accent); }
.note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--muted); }
.steps li::before { content: "0" counter(step); display: block; margin-bottom: 12px; color: var(--accent); font: 700 28px/1 var(--font-head); }
.callout { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel); }
.callout p { color: var(--muted); margin: 0; }
@media (max-width: 780px) { .callout { grid-template-columns: 1fr; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
