/* AIthlete Labs — Volt Lab
   Layout: full-bleed dark bands, 1200px inner column, condensed display type doing the shouting,
   volt used for actions and one statement band per page. Single dark look by design. */
:root {
  --bg: #0B0B0A;
  --panel: #151513;
  --line: #2C2C28;
  --fg: #F4F4EE;
  --muted: #BDBDB3;
  --volt: #D4FF00;
  --on-volt: #0B0B0A;

  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: 2.5rem;
  --step-4: clamp(2.75rem, 6vw, 3.75rem);
  --step-5: clamp(4rem, 13vw, 8.5rem);

  --wrap: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
/* Volt tap flash on phones instead of the browser's default blue-grey box */
a, button { -webkit-tap-highlight-color: rgba(212, 255, 0, 0.2); }
a:hover { color: var(--volt); }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 0.95; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--volt); color: var(--on-volt); padding: 10px 14px; z-index: 50; }

/* Wordmark */
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; text-decoration: none; color: var(--fg); line-height: 1; white-space: nowrap; }
.wordmark .i { color: var(--volt); }
.wordmark .labs { font-weight: 600; color: var(--muted); }
.wordmark:hover { color: var(--fg); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; padding-block: 18px; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 500; margin-left: auto; }
/* Instagram handle: always visible, including on phones where the nav collapses */
.ig-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); font-family: var(--font-data); font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.ig-link svg { width: 20px; height: 20px; color: var(--volt); flex: none; }
.ig-link:hover { border-color: var(--volt); }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { color: var(--volt); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--fg); min-height: 44px; min-width: 44px; padding: 0 14px; font: inherit; font-weight: 600; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-volt { background: var(--volt); color: var(--on-volt); }
.btn-volt:hover { color: var(--on-volt); background: #E4FF55; }
.btn-line { border-color: #5C5C55; color: var(--fg); background: transparent; }
.btn-line:hover { border-color: var(--volt); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-ig { gap: 10px; }
.btn-ig svg { width: 20px; height: 20px; color: var(--volt); flex: none; }

.eyebrow { font-family: var(--font-data); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--volt); }
.lede { font-size: var(--step-1); color: #DADAD2; max-width: 36rem; }
.muted { color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #05070D; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
/* Sky stays clear at the top; the copy sits on the dark treeline */
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,13,0) 0%, rgba(5,7,13,0) 38%, rgba(5,7,13,0.55) 62%, rgba(5,7,13,0.92) 100%); }
/* Top gap scales with screen height too, so the headline is visible on load on laptops */
.hero .wrap { position: relative; padding-block: clamp(120px, min(30vw, 30vh), 380px) 72px; display: grid; gap: 26px; }
.hero .lede { color: var(--fg); }
/* Three short statements, one per line; a small gap keeps them distinct when they wrap on phones */
.hero-points span { display: block; }
.hero-points span + span { margin-top: 0.3em; }
.hero h1 { font-size: var(--step-5); line-height: 0.86; }
/* "Run it. AI it." on one line on desktop, stacked on smaller screens */
.hero-line { display: block; }
@media (min-width: 1000px) { .hero-line { display: inline; } }
.hero h1 .volt { color: var(--volt); }
.hero-caption { position: relative; font-family: var(--font-data); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Ticker strip */
.strip { border-bottom: 1px solid var(--line); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.04em; }
.strip .sep { color: var(--volt); }

/* Sections */
.section { padding-block: 96px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: 44px; max-width: 46rem; }
.section-head h2 { font-size: var(--step-4); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
/* Four cards: 4 across on desktop, 2x2 on tablets, stacked on phones (never 3 + 1) */
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-4 .card { padding: 26px; }
.cards-4 .card h3 { font-size: clamp(1.75rem, 6.5vw, 2rem); }
@media (max-width: 1080px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards-4 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-width: 0; }
a.card:hover { border-color: var(--volt); color: var(--fg); }
a.card:hover .more { color: var(--volt); }
.card h3 { font-size: clamp(1.75rem, 6.5vw, 2.2rem); overflow-wrap: anywhere; }
h1, h2 { overflow-wrap: anywhere; }
.card p { color: #CFCFC6; }
.card .tag { font-family: var(--font-data); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--volt); }
.card .more { margin-top: auto; padding-top: 10px; font-weight: 600; }

/* Volt statement band */
.band { background: var(--volt); color: var(--on-volt); }
.band .wrap { padding-block: 84px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.band .statement { flex: 999 1 520px; min-width: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.band .support { flex: 1 1 280px; font-size: var(--step-1); font-weight: 500; }
.band a { color: var(--on-volt); font-weight: 700; }

/* Split media block (sky photo, etc.) */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 360px; min-width: 0; }
.split-copy { display: grid; gap: 18px; }
.split-copy h2 { font-size: var(--step-4); }
.frame { position: relative; aspect-ratio: 4 / 5; max-width: 100%; background: #05070D; border: 1px solid var(--line); overflow: hidden; }
.frame canvas, .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-family: var(--font-data); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg); background: rgba(5,7,13,0.7); }

/* Lists */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 12px; height: 12px; margin-top: 8px; background: var(--volt); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; counter-reset: step; }
.steps li { border-top: 2px solid var(--volt); padding-top: 18px; display: grid; gap: 10px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-data); color: var(--volt); font-size: 0.9rem; }
.steps h3 { font-size: var(--step-2); }
.steps p { color: #CFCFC6; }

/* Scorecard sample */
.scorecard { background: var(--panel); border: 1px solid var(--line); font-family: var(--font-data); font-size: 0.92rem; max-width: 100%; }
.scorecard header { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--muted); }
.scorecard dl { margin: 0; padding: 6px 18px 14px; }
.scorecard .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.scorecard .row:last-child { border-bottom: 0; }
.scorecard dt { color: var(--muted); }
.scorecard dd { margin: 0; text-align: right; }
.scorecard .helps { color: var(--volt); }
.scorecard .hinders { color: #FF9A5C; }

/* Page hero (inner pages) */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: 80px 64px; display: grid; gap: 22px; }
.page-hero h1 { font-size: clamp(3.25rem, 10vw, 6.5rem); line-height: 0.9; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-intro { flex: 1 1 320px; min-width: 0; display: grid; gap: 18px; align-content: start; }
.contact-intro h2 { font-size: var(--step-4); }
.contact-form { flex: 999 1 500px; min-width: 0; display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea { width: 100%; background: var(--panel); border: 1px solid #3A3A35; color: var(--fg); padding: 14px; font: inherit; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--volt); outline: none; box-shadow: 0 0 0 2px var(--volt); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.form-status { padding: 16px 18px; border: 1px solid var(--volt); background: var(--panel); display: grid; gap: 10px; }
.form-status p { color: var(--fg); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-small { min-height: 40px; padding: 0 14px; font-size: 0.95rem; }
.error { color: #FF9A5C; font-size: 0.9rem; }

.dm-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none; }
.dm-link svg { width: 22px; height: 22px; }

/* Prose pages */
.prose { max-width: 44rem; display: grid; gap: 18px; }
.prose h2 { font-size: var(--step-3); margin-top: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 40px; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.footer-col { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--muted); }
.footer-col a:hover { color: var(--volt); }
.footer-col .footer-ig { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-family: var(--font-data); font-size: 0.9rem; }
.footer-ig svg { width: 20px; height: 20px; color: var(--volt); }
.footer-col .title { font-family: var(--font-data); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg); }
.site-footer .small { font-size: 0.9rem; color: var(--muted); }

/* Phone */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; order: 2; }
  .ig-link { margin-left: auto; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 20; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(24px, env(safe-area-inset-right, 0px)) 20px max(24px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
  .site-header { position: relative; }
  .section { padding-block: 72px; }
  .hero .wrap { padding-block: 72px 64px; }
}

/* Narrow phones: icon only in the header so the bar doesn't overflow */
@media (max-width: 420px) {
  .ig-link { padding: 0 11px; }
  .ig-link span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
