/* ============================================================
   Robots Dream — Data-room site
   Palette: near-black + teal accent (no pink)
   Fonts: Space Grotesk (display) · IBM Plex Sans (body) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #07070e;
  --bg-2:      #0a0a13;
  --panel:     #0e0f19;
  --panel-2:   #12131f;
  --glass:     rgba(14, 16, 26, 0.62);

  /* lines */
  --line:      rgba(140, 160, 210, 0.12);
  --line-2:    rgba(45, 212, 191, 0.28);

  /* text */
  --text:      #ECECF5;
  --muted:     #9ea0bd;
  --faint:     #6c6e88;

  /* accent — teal */
  --teal:        #2dd4bf;
  --teal-bright: #5eead4;
  --teal-dim:    #15a08d;
  --cyan:        #22d3ee;
  --glow:        rgba(45, 212, 191, 0.40);

  /* layout */
  --maxw: 1200px;
  --radius: 6px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- shared layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

section { position: relative; }

.section-pad { padding: 96px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.kicker::before { content: "// "; color: var(--teal-dim); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; margin: 0; }

.h-section {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.08;
  max-width: 16ch;
}
.lede { color: var(--muted); font-size: 17px; max-width: 60ch; margin-top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: #04201c;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.4), 0 8px 30px -10px var(--glow);
}
.btn-primary:hover { background: var(--teal-bright); transform: translateY(-1px); box-shadow: 0 0 0 1px var(--teal-bright), 0 12px 34px -8px var(--glow); }
.btn-ghost {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-bright); transform: translateY(-1px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 14, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-2), 0 0 22px -6px var(--glow); }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name strong { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.04em; }
.brand-name span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover { color: var(--teal-bright); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; transition: .2s; }

/* ============================================================
   Hero — full-bleed image + glass manifest console
   ============================================================ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
/* NOTE: swap <img> for <video autoplay muted loop playsinline poster="..."> later — same box */
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,7,14,0.96) 0%, rgba(7,7,14,0.78) 42%, rgba(7,7,14,0.40) 100%),
    linear-gradient(180deg, rgba(7,7,14,0.55) 0%, rgba(7,7,14,0.20) 40%, rgba(7,7,14,0.92) 100%),
    radial-gradient(120% 80% at 80% 30%, rgba(45,212,191,0.14), transparent 60%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  min-height: 600px; padding: 90px 0;
}
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.02; margin: 18px 0 0; max-width: 14ch; }
.hero .lede { margin-top: 22px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* manifest console */
.manifest {
  background: var(--glass);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 22px 24px;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(255,255,255,0.02);
  font-family: var(--font-mono);
}
.manifest-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 6px; }
.manifest-head .label { font-size: 12px; letter-spacing: 0.16em; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 0.12em; color: var(--teal-bright); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px 1px var(--glow); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

.manifest-row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.manifest-row:last-child { border-bottom: 0; }
.manifest-row .k { font-size: 12px; color: var(--faint); }
.manifest-row .v { font-size: 12.5px; color: var(--text); }
.manifest-v-split { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.manifest-flyout {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.manifest-flyout:hover {
  color: var(--teal-bright);
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.06);
  box-shadow: 0 0 12px -4px var(--glow);
}
.manifest-flyout:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ============================================================
   Process strip — 01 / 02 / 03
   ============================================================ */
.process { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.process-step { padding: 40px 34px; border-left: 1px solid var(--line); }
.process-step:first-child { border-left: 0; }
.process-step .num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--teal); margin-bottom: 12px; }
.process-step h3 { font-size: 19px; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ============================================================
   The niche — trade tiles
   ============================================================ */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; filter: saturate(0.9) brightness(0.82); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,14,0.10) 0%, rgba(7,7,14,0.55) 55%, rgba(7,7,14,0.94) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; }
.tile-body .name { font-family: var(--font-display); font-weight: 600; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.tile-body .name::before { content: "▸"; color: var(--teal); font-size: 15px; }
.tile-body .detail { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); margin-top: 4px; }
.tile:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 40px -22px var(--glow); }
.tile:hover img, .tile:hover video { transform: scale(1.05); }
.focus-cta { margin-top: 28px; }

/* ============================================================
   Modality menu — table
   ============================================================ */
.menu { margin-top: 40px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.menu-head, .menu-row { display: grid; grid-template-columns: 90px 230px 1fr; gap: 20px; align-items: center; padding: 16px 24px; }
.menu-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); background: var(--panel); border-bottom: 1px solid var(--line); }
.menu-row { border-bottom: 1px solid var(--line); transition: background .15s ease; }
.menu-row:last-child { border-bottom: 0; }
.menu-row:hover { background: rgba(45,212,191,0.04); }
.menu-row .key { font-family: var(--font-mono); font-size: 12px; color: var(--teal); letter-spacing: 0.08em; }
.menu-row .modality { font-weight: 500; font-size: 15px; color: var(--text); }
.menu-row .detail { color: var(--muted); font-size: 14px; }
.menu-row.enrichment { background: rgba(255,255,255,0.015); border-top: 1px dashed var(--line-2); }
.menu-row.enrichment .key { color: var(--teal); }
.menu-row.enrichment .detail { color: var(--faint); font-style: italic; }

/* ============================================================
   Who it's for — three cards
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* "what's in the data": modality menu (left) + vertical who-it's-for tiles (right) */
.data-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 28px; align-items: start; margin-top: 8px; }
.data-layout .lede { margin-top: 8px; }   /* card row starts here; lede drops the other 8px, so the top card lands between the h2 and the lede */
.data-layout .menu { margin-top: 28px; }
.data-layout .cards { grid-template-columns: 1fr; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 28px 26px; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card .tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--teal); text-transform: uppercase; }
.card h3 { font-size: 19px; margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ============================================================
   For tradespeople
   ============================================================ */
.trades-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--text); font-size: 15.5px; }
.checklist li::before { content: "✓"; color: var(--teal); font-weight: 700; font-family: var(--font-mono); margin-top: 1px; }
.boutique {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--teal);
  border-radius: 8px; padding: 22px 24px; font-size: 15px; color: var(--muted); line-height: 1.6;
}
.boutique b { color: var(--teal-bright); font-weight: 600; }
.trades-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ============================================================
   Final CTA band
   ============================================================ */
.cta-band { text-align: center; border-top: 1px solid var(--line); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 120% at 50% 0%, rgba(45,212,191,0.12), transparent 60%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 auto; max-width: 18ch; }
.cta-band p { color: var(--muted); font-size: 18px; margin: 16px auto 32px; max-width: 50ch; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px 0; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 50%; }
.footer-brand .meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--faint); line-height: 1.5; }
.footer-brand .meta strong { color: var(--muted); font-weight: 500; display: block; letter-spacing: 0.14em; }
.footer-links { display: flex; gap: 22px; font-family: var(--font-mono); font-size: 12.5px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--teal-bright); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps .n { font-family: var(--font-mono); color: var(--teal); font-size: 14px; }
.steps b { font-weight: 600; font-size: 15.5px; }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.contact-meta { font-family: var(--font-mono); font-size: 13px; margin-top: 24px; display: grid; gap: 10px; }
.contact-meta div { display: grid; grid-template-columns: 70px 1fr; gap: 12px; }
.contact-meta .k { color: var(--faint); letter-spacing: 0.1em; }
.contact-meta .v a { color: var(--teal-bright); }

.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 15px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,212,191,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13px; color: var(--faint); margin: 4px 0 20px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-actions .btn { flex: 1 1 160px; justify-content: center; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; }
.form-success { display: none; background: rgba(45,212,191,0.08); border: 1px solid var(--line-2); border-radius: 8px; padding: 22px 24px; color: var(--teal-bright); margin-bottom: 20px; font-size: 17px; line-height: 1.5; }

.page-head { padding: 70px 0 0; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu.open { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; min-height: auto; padding: 60px 0; }
  .manifest { order: 2; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-left: 0; border-top: 1px solid var(--line); }
  .process-step:first-child { border-top: 0; }
  .tiles, .cards { grid-template-columns: 1fr 1fr; }
  .data-layout { grid-template-columns: 1fr; }
  .data-layout .cards { grid-template-columns: repeat(3, 1fr); }
  .trades-panel, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hide-mobile { display: none !important; }
  .menu-head, .menu-row { grid-template-columns: 60px 1fr; }
  .menu-head .detail, .menu-row .detail { grid-column: 2; color: var(--muted); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section-pad { padding: 64px 0; }
  .tiles, .cards { grid-template-columns: 1fr; }
  .data-layout .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* mobile menu */
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 14px 0; }
.mobile-menu a { display: block; padding: 12px 28px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.mobile-menu a:hover { color: var(--teal-bright); }
.mobile-menu .btn { margin: 12px 28px 6px; }
.nav-links .nav-contact, .mobile-menu .nav-contact { color: var(--teal); }

/* accessibility: respect reduced motion (incl. future autoplay video) */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* ============================================================
   Skilled-humans (contributor) page
   ============================================================ */
.sh-wrap { max-width: 820px; margin: 0 auto; }

.skill-fieldset { border: 0; padding: 0; margin: 28px 0 0; }
.skill-fieldset legend { padding: 0; margin-bottom: 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.skill-fieldset legend .legend-hint { color: var(--faint); text-transform: none; letter-spacing: 0; }

.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill-box { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.skill-box input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.skill-box video, .skill-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.7); transition: filter .2s ease; }
.skill-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,14,0.10) 0%, rgba(7,7,14,0.55) 55%, rgba(7,7,14,0.95) 100%); }
.skill-box .skill-name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 14px; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.skill-box::before { content: "✓"; position: absolute; top: 8px; right: 8px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #07070e; font-family: var(--font-mono); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.6); transition: .15s ease; }
.skill-box:hover { transform: translateY(-2px); border-color: var(--line-2); }
.skill-box:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.skill-box:has(:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal), 0 14px 30px -18px var(--glow); }
.skill-box:has(:checked) video, .skill-box:has(:checked) img { filter: saturate(1) brightness(0.88); }
.skill-box:has(:checked)::before { opacity: 1; transform: scale(1); }

/* full-width "Other" selector */
.skill-box.skill-other { grid-column: 1 / -1; aspect-ratio: auto; min-height: 60px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 16px; background: var(--panel); }
.skill-box.skill-other::after { display: none; }
.skill-box.skill-other .skill-name { position: static; padding: 0; }
.skill-box.skill-other .skill-hint { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

.skills-other-field { margin-top: 16px; }
.label-hint { color: var(--faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
.privacy-note { color: var(--faint); }
.refer-note { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; color: var(--muted); font-size: 14.5px; }

@media (max-width: 560px) {
  .skill-grid { grid-template-columns: 1fr 1fr; }
}
