/* SilverHawk site — shared styles. System fonts only (no third-party font requests). */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --text: #15181d;
  --muted: #5b6370;
  --line: #d9dde3;
  --steel: #8a94a3;
  --accent: #0a8ea3;          /* hawk eye cyan (darkened for contrast on light) */
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 142, 163, 0.12);
  --ok: #2f8a57;
  --run: #0a8ea3;
  --next: #8a94a3;
  --contour: rgba(21, 24, 29, 0.10);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: var(--font);
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116;
    --surface: #161a21;
    --surface-2: #1d222b;
    --text: #e8ebef;
    --muted: #9aa3b1;
    --line: #2a303b;
    --steel: #aab3c0;
    --accent: #22d3e6;
    --accent-ink: #06181b;
    --accent-soft: rgba(34, 211, 230, 0.14);
    --run: #22d3e6;
    --ok: #4cb37a;
    --contour: rgba(232, 235, 239, 0.09);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1116; --surface: #161a21; --surface-2: #1d222b; --text: #e8ebef; --muted: #9aa3b1;
  --line: #2a303b; --steel: #aab3c0; --accent: #22d3e6; --accent-ink: #06181b; --run: #22d3e6;
  --accent-soft: rgba(34, 211, 230, 0.14); --ok: #4cb37a; --contour: rgba(232, 235, 239, 0.09);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 88%, transparent);
  position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand img, .brand svg { width: 28px; height: 28px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav span { text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav .soon { opacity: .55; cursor: default; }
.nav .soon small { font-size: 11px; margin-left: 4px; }
@media (max-width: 560px) { .nav .soon { display: none; } .brand span.word { display: none; } }

main { flex: 1; }
section { padding: 56px 0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.muted { color: var(--muted); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.btn:hover { border-color: var(--steel); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.05); }

/* Hero */
.hero { padding-top: 48px; padding-bottom: 16px; }
.hero-grid { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero-logo { width: 220px; height: auto; margin: 0 0 18px -8px; }
@media (min-width: 880px) { .hero-logo { width: 260px; } }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); text-wrap: balance; }
.hero h1 .tag { display: block; font-size: .42em; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: 10px; }
.sky { position: relative; aspect-ratio: 1 / 1; max-width: 540px; width: 100%; margin: 0 auto; }
.sky svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sky .contour { fill: none; stroke: var(--contour); stroke-width: 1.2; }
.sky .contour.inner { stroke: var(--accent-soft); stroke-width: 1.6; }
.sky .target { fill: var(--accent); }
.sky .target-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: .6; transform-origin: 200px 200px; animation: pulse 3.2s ease-out infinite; }
.sky .orbit { transform-origin: 200px 200px; animation: circle 14s linear infinite; }
.sky .hawk { fill: var(--steel); }
.sky .trail { fill: none; stroke: var(--steel); stroke-width: 1; stroke-dasharray: 2 6; opacity: .45; }
@keyframes circle { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sky .orbit, .sky .target-ring { animation: none; } }

/* Cards and grids */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }

/* Flight log (status) */
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.log li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 480px) { .log li { grid-template-columns: 1fr; gap: 4px; } }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.done { color: var(--ok); }
.pill.run { color: var(--run); }
.pill.run::before { animation: blink 1.6s ease-in-out infinite; }
.pill.next { color: var(--next); }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pill.run::before { animation: none; } }
.log strong { display: block; }
.log span.d { color: var(--muted); font-size: 15px; }

/* Publications */
.pub { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pub { grid-template-columns: 150px 1fr; } }
.pub .thumb { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; align-self: start; max-width: 150px; }
.pub .meta { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.pub h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pub .authors { font-size: 15px; margin-bottom: 8px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-right: 6px; }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.doi { font-family: var(--mono); font-size: 14px; word-break: break-all; }
details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); }
details p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.stack { display: grid; gap: 16px; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; color: var(--muted); background: transparent; }

/* Videos */
.video .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); margin-bottom: 14px; display: grid; place-items: center; }
.video .frame img { width: 100%; height: 100%; object-fit: cover; }
.video .frame .play { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: rgba(0,0,0,.6); display: grid; place-items: center; }
.video .frame .soonlabel { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.video a.cover { text-decoration: none; display: block; }
.video .n { font-family: var(--mono); color: var(--accent); font-size: 13px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); margin-top: 32px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 10px; font: inherit; cursor: pointer; }

/* Footer identity block */
.site-footer .legal { display: grid; gap: 2px; }
.site-footer .legal strong { color: var(--text); font-size: 15px; letter-spacing: .02em; }

/* Slider (home) */
.slider { position: relative; }
.slider .viewport { overflow-x: auto; scroll-snap-type: x mandatory; display: flex; gap: 16px; scrollbar-width: none; border-radius: var(--radius); }
.slider .viewport::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 720px) { .slide { grid-template-columns: 1.2fr 1fr; } }
.slide .art { aspect-ratio: 16 / 9; background: var(--surface-2); position: relative; display: grid; place-items: center; overflow: hidden; }
.slide .art img { width: 100%; height: 100%; object-fit: cover; }
.slide .art .big { font-size: clamp(2.4rem, 8vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; color: var(--accent); position: relative; z-index: 1; }
.slide .art svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide .art svg.bg path { fill: none; stroke: var(--contour); stroke-width: 1.2; }
.slide .txt { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.slide .txt .eyebrow { margin-bottom: 8px; }
.slide .txt p { color: var(--muted); margin: 0; }
.slider .ctrl { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.slider .dots { display: flex; gap: 8px; }
.slider .dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.slider .dots button[aria-current="true"] { background: var(--accent); width: 24px; border-radius: 6px; }
.slider .arrows { display: flex; gap: 8px; }
.slider .arrows button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-size: 18px; line-height: 1; }
.slider .arrows button:hover { border-color: var(--steel); }

/* Display font (test: Bell MT, same family as the logo lettering; falls back to Georgia where not installed) */
h1, h2, .brand .word { font-family: var(--display); }

/* Theme-aware logos: two images, one shown per theme (honours the manual toggle) */
.on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none; }
  :root:not([data-theme="light"]) .on-dark { display: block; }
}
:root[data-theme="dark"] .on-light { display: none; }
:root[data-theme="dark"] .on-dark { display: block; }
.brand .on-dark, .brand .on-light { width: 32px; height: 32px; }

/* Built for / with */
.built { padding: 36px 0 8px; }
.built .row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; border-top: 1px solid var(--line); padding-top: 28px; }
.built .lbl { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.built ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; margin: 0; padding: 0; }
.built li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.built img { height: 36px; width: auto; }
.built img.round { width: 36px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.built .tm { flex-basis: 100%; font-size: 12.5px; color: var(--muted); margin: 0; }

/* Statement band (home) */
.statement { padding: 24px 0 40px; }
.statement .wrap { border-left: 3px solid var(--accent); padding-left: 24px; }
.statement h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.statement p { color: var(--muted); max-width: 42em; font-size: 1.1rem; margin: 0; }

/* Hero run: evaluated points, best-so-far path */
.sky .evaldot { fill: var(--accent); transition: opacity .6s; }
.sky .evaldot.flash { animation: evalflash .9s ease-out both; }
@keyframes evalflash { 0% { r: 7; opacity: 0; } 25% { r: 6; opacity: 1; } 100% { r: 3; opacity: .9; } }
.sky .bestpath { fill: none; stroke: var(--accent); stroke-width: 1.4; opacity: .55; stroke-linejoin: round; }
.sky .bestdot { fill: none; stroke: var(--accent); stroke-width: 1.8; transition: opacity .3s; }
.sky .hud { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font: 12px/1 var(--mono); color: var(--muted); letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .sky .evaldot.flash { animation: none; } }
@media (min-width: 880px) { .sky { margin-right: -28px; } }

/* Soundtrack player: small pill, bottom-left */
.player { position: fixed; left: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 6px; padding: 5px 8px 5px 5px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  backdrop-filter: blur(8px); font-size: 12px; color: var(--muted); }
.player .p-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; padding: 0; }
.player .p-btn:hover { background: var(--surface-2); }
.player .p-btn:focus-visible, .player input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.player.is-on .p-btn:first-child { color: var(--accent); }
.player .p-label { letter-spacing: .06em; text-transform: uppercase; font-weight: 600; font-size: 11px; padding: 0 4px; }
.player input[type=range] { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: var(--accent); cursor: pointer; height: 4px; }
.player:hover input[type=range], .player:focus-within input[type=range] { width: 84px; opacity: 1; margin: 0 4px; }
@media (hover: none) { .player input[type=range] { width: 72px; opacity: 1; margin: 0 4px; } }
@media (max-width: 480px) { .player .p-label { display: none; } .player { left: 10px; bottom: 10px; } }

/* Independence note (home) and About */
.indep { padding: 8px 0 0; }
.indep p { margin: 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); }
.indep p strong { color: var(--text); }
.indep a { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.indep a:hover { text-decoration: underline; }
.about .card h3 { margin-bottom: 8px; }
.about .card a:not(.btn) { color: var(--accent); }
.about .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
