/* RadNab Technologies — shared styles
   Direction: industrial / field-equipment. Charcoal chassis, signal-amber accent,
   LCD-style readouts, radio-wave motif. */

:root {
  --bg: #121417;
  --bg-2: #181b1f;
  --panel: #1d2126;
  --line: #2c3238;
  --line-2: #3a4148;
  --text: #e9e6df;
  --muted: #9aa1a8;
  --dim: #6b7279;
  --amber: #f0a43a;
  --amber-hot: #ffbe5c;
  --amber-ink: #1a1206;
  --lcd: #b9d98a;
  --lcd-bg: #1b2414;
  --danger: #ff7a6b;
  --ok: #8fd08a;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-hot); }
img, svg { display: block; max-width: 100%; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--amber); color: var(--amber-ink); padding: 8px 12px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- labels / type ---------- */
.tag {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
}
.tag::before { content: ""; width: 22px; height: 1px; background: currentColor; }

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .005em;
  margin: 0;
}
h1 { font-size: clamp(52px, 8.4vw, 116px); }
h2 { font-size: clamp(38px, 5.2vw, 68px); }
h3 { font-size: 26px; font-weight: 700; line-height: 1.05; }

.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 58ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 15px 22px;
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  background: var(--amber); color: var(--amber-ink);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--amber-hot); color: var(--amber-ink); transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(240,164,58,.55); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--amber); color: var(--amber); box-shadow: none; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,20,23,.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; color: var(--amber); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 25px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 9.5px; letter-spacing: .28em; color: var(--muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { padding: 10px 16px; font-size: 12px; color: var(--amber-ink); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--radius); padding: 8px 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::after { /* horizon line */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 26px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--f-mono); font-size: 12.5px; color: var(--dim); letter-spacing: .06em; }
.hero-meta span::before { content: "▪"; color: var(--amber); margin-right: 8px; }

/* radio waves backdrop */
.waves { position: absolute; right: -240px; top: 50%; width: 900px; height: 900px; transform: translateY(-50%); pointer-events: none; opacity: .55; }
.waves circle { fill: none; stroke: var(--line-2); stroke-width: 1; transform-origin: 450px 450px; animation: pulse 6s ease-out infinite; opacity: 0; }
.waves circle:nth-child(2) { animation-delay: 1.5s; }
.waves circle:nth-child(3) { animation-delay: 3s; }
.waves circle:nth-child(4) { animation-delay: 4.5s; }
@keyframes pulse { 0% { transform: scale(.15); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }

/* the radio readout */
.readout {
  position: relative;
  background: linear-gradient(180deg, #23282e, #1a1e22);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
}
.readout-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; color: var(--dim); margin-bottom: 14px; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); display: inline-block; margin-right: 8px; animation: blink 2.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.lcd {
  background: var(--lcd-bg);
  border: 1px solid #2b3a20;
  border-radius: 6px;
  padding: 18px 18px 16px;
  color: var(--lcd);
  font-family: var(--f-mono);
  box-shadow: inset 0 0 30px rgba(0,0,0,.6);
  text-shadow: 0 0 8px rgba(185,217,138,.35);
}
.lcd-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; letter-spacing: .12em; opacity: .85; }
.lcd-ch { font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: 1; margin: 10px 0 4px; letter-spacing: .02em; }
.lcd-name { font-size: 15px; letter-spacing: .18em; min-height: 1.4em; }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 18px; }
.bars i { width: 5px; background: var(--lcd); opacity: .25; }
.bars i:nth-child(1) { height: 25%; } .bars i:nth-child(2) { height: 45%; } .bars i:nth-child(3) { height: 65%; } .bars i:nth-child(4) { height: 85%; } .bars i:nth-child(5) { height: 100%; }
.bars i.on { opacity: 1; }
.readout-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.readout-keys span { border: 1px solid var(--line-2); border-radius: 4px; padding: 9px 0; text-align: center; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--muted); background: #20252a; }
.readout-keys span.active { color: var(--amber); border-color: var(--amber); }
.readout-caption { margin-top: 14px; font-size: 13px; color: var(--dim); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .readout { max-width: 440px; }
  .waves { right: -420px; }
}

/* ---------- page load stagger ---------- */
.rise { opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .28s; } .d4 { animation-delay: .4s; } .d5 { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .reveal { opacity: 1; transform: none; }
}

/* ---------- sections ---------- */
section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; }
.section-head p { color: var(--muted); margin: 0; max-width: 52ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 18px; } }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service {
  position: relative;
  padding: 34px 30px 38px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.service:hover { background: var(--bg-2); }
.service::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--amber); transition: width .35s ease; }
.service:hover::after { width: 100%; }
.service .num { font-family: var(--f-mono); font-size: 12px; color: var(--dim); letter-spacing: .14em; }
.service h3 { margin: 18px 0 12px; }
.service p { color: var(--muted); margin: 0; font-size: 15.5px; }
.service .recurring { display: inline-block; margin-top: 16px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(240,164,58,.4); padding: 4px 8px; border-radius: 3px; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* industries */
.industries-band { background: var(--bg-2); border-block: 1px solid var(--line); }
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.industry { background: var(--bg-2); padding: 28px 26px; display: flex; gap: 18px; align-items: flex-start; }
.industry svg { width: 34px; height: 34px; flex: none; color: var(--amber); }
.industry h3 { font-size: 22px; margin-bottom: 6px; }
.industry p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .industries { grid-template-columns: 1fr; } }

/* process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.step { position: relative; padding-right: 26px; }
.step .dot { width: 47px; height: 47px; border-radius: 50%; border: 1px solid var(--amber); background: var(--bg); display: grid; place-items: center; font-family: var(--f-mono); font-size: 13px; color: var(--amber); position: relative; }
.step h3 { margin: 24px 0 10px; font-size: 24px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 34px; }
  .process::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 1px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 14px); }
  .step { display: grid; grid-template-columns: 47px 1fr; column-gap: 22px; padding: 0; }
  .step h3 { margin: 10px 0 8px; }
  .step p { grid-column: 2; }
}

/* why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.why-list li { display: grid; grid-template-columns: 56px 1fr; padding: 26px 0; border-bottom: 1px solid var(--line); }
.why-list .k { font-family: var(--f-mono); font-size: 12px; color: var(--amber); padding-top: 6px; letter-spacing: .12em; }
.why-list h3 { font-size: 24px; margin-bottom: 8px; }
.why-list p { margin: 0; color: var(--muted); font-size: 15.5px; }
.why-quote { font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; text-transform: uppercase; margin: 22px 0 0; }
.why-quote span { color: var(--amber); }
@media (max-width: 960px) { .why { grid-template-columns: 1fr; gap: 40px; } }

/* roadmap */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.phase { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--panel); position: relative; }
.phase.now { border-color: var(--amber); }
.phase .when { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.phase.now .when { color: var(--amber); }
.phase h3 { margin: 12px 0 10px; font-size: 24px; }
.phase p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .roadmap { grid-template-columns: 1fr; } }

/* partner CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--amber); color: var(--amber-ink);
  padding: clamp(56px, 7vw, 88px) 0;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 14px);
}
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.4fr auto; gap: 36px; align-items: center; }
.cta-band .tag { color: var(--amber-ink); }
.cta-band h2 { margin: 14px 0 12px; }
.cta-band p { margin: 0; max-width: 60ch; font-size: 17px; }
.cta-band .btn { background: var(--amber-ink); color: var(--amber); border-color: var(--amber-ink); }
.cta-band .btn:hover { background: #000; color: var(--amber-hot); box-shadow: none; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 30px; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 16px 18px; }
.contact-card dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.contact-card dd { margin: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 36px; } .contact-card dl { grid-template-columns: 1fr; gap: 4px; } .contact-card dd { margin-bottom: 12px; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--dim); font-size: 13.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--amber); }

/* ---------- partners page ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(48px, 7vw, 96px); margin: 20px 0 22px; }
.page-hero h1 em { font-style: normal; color: var(--amber); }

.partner-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 48px; }
.partner-types div { background: var(--bg); padding: 20px 18px; }
.partner-types b { display: block; font-family: var(--f-display); font-size: 20px; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; margin-bottom: 6px; }
.partner-types span { color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .partner-types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .partner-types { grid-template-columns: 1fr; } }

.apply-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; align-items: start; }
.apply-aside { position: sticky; top: 100px; }
.apply-aside ol { list-style: none; counter-reset: a; padding: 0; margin: 26px 0 0; }
.apply-aside li { counter-increment: a; position: relative; padding: 0 0 22px 46px; color: var(--muted); font-size: 15.5px; }
.apply-aside li::before { content: "0" counter(a); position: absolute; left: 0; top: 1px; font-family: var(--f-mono); font-size: 12px; color: var(--amber); letter-spacing: .1em; }
.apply-aside li b { color: var(--text); display: block; font-weight: 600; }
@media (max-width: 960px) { .apply-layout { grid-template-columns: 1fr; gap: 40px; } .apply-aside { position: static; } }

/* form */
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 3.5vw, 40px); }
.form fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.form legend { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; padding: 0; display: flex; gap: 10px; align-items: center; width: 100%; }
.form legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field label .opt, .field .label .opt { font-weight: 400; color: var(--dim); font-size: 13px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit; font-size: 16px;
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240,164,58,.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: 13px; margin-top: 6px; }
.field.invalid .err { display: block; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .checks { grid-template-columns: 1fr; } }
.check, .field label.check { display: flex; font-weight: 400; margin-bottom: 0; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: border-color .15s ease, color .15s ease; }
.check:hover { border-color: var(--line-2); color: var(--text); }
.check input { accent-color: var(--amber); width: 17px; height: 17px; margin: 3px 0 0; flex: none; }
.check:has(input:checked) { border-color: var(--amber); color: var(--text); }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios .check { flex: 1 1 120px; }
.consent { border: 0; background: none; padding: 0; }
.consent:hover { border: 0; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 26px; }
.form-foot small { color: var(--dim); max-width: 42ch; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.notice { display: none; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 26px; font-size: 15px; }
.notice.show { display: block; }
.notice.error { border: 1px solid var(--danger); color: #ffd1cb; background: rgba(255,122,107,.08); }

.success { display: none; text-align: left; }
.success.show { display: block; }
.success .lcd { margin-bottom: 26px; }
.success h3 { font-size: 34px; margin-bottom: 12px; }
.success p { color: var(--muted); }
