/* ============================================================
   RoadRunner RF — roadrunnerrf.com
   Single-page static site. No build step, no dependencies.
   ============================================================ */

:root {
  /* Ink / surface */
  --ink:        #0a1119;
  --ink-2:      #101a25;
  --ink-line:   rgba(255, 255, 255, .10);

  --paper:      #ffffff;
  --paper-2:    #f5f6f8;
  --paper-line: #e2e5ea;

  /* Type */
  --text:       #161d26;
  --text-muted: #5b6774;
  --text-on-ink:        #eef2f6;
  --text-on-ink-muted:  #93a2b2;

  /* Accent — desert copper into signal amber */
  --accent:     #d2601a;   /* decorative rules, bars, borders */
  --accent-2:   #e8a33d;
  --accent-ink: #f08a3c;   /* accent text on dark surfaces */
  --accent-deep:#b04e10;   /* accent TEXT on light surfaces — 5.3:1 on white (AA) */

  --maxw: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  line-height: 1.14;
  letter-spacing: -.022em;
  margin: 0;
  font-weight: 640;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .7rem 1.1rem;
  z-index: 100;
  border-radius: 0 0 .4rem 0;
}
.skip:focus { left: 0; }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 17, 25, .82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--ink-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text-on-ink);
}

.brand-mark {
  height: 30px;
  width: auto;
  filter: invert(1);          /* logo art is solid black on transparent */
}

.brand-name {
  font-weight: 680;
  font-size: 1.02rem;
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand-rf {
  color: var(--accent-ink);
  margin-left: .28em;
  font-family: var(--mono);
  font-size: .92em;
  letter-spacing: .02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.4vw, 1.9rem);
}

.site-nav a {
  text-decoration: none;
  font-size: .93rem;
  font-weight: 520;
  color: var(--text-on-ink-muted);
  transition: color .18s ease;
}
.site-nav a:hover { color: var(--text-on-ink); }

/* on small screens keep only Contact — the one link that matters there */
@media (max-width: 560px) {
  .site-nav a:not([href="#contact"]) { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-on-ink);
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(60% 55% at 22% 12%, rgba(210, 96, 26, .30), transparent 62%),
    radial-gradient(48% 48% at 82% 8%,  rgba(232, 163, 61, .16), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  padding-top: clamp(4rem, 11vw, 8.5rem);
  padding-bottom: clamp(7rem, 16vw, 12rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.eyebrow-dark { color: var(--accent-deep); }

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 660;
  text-wrap: balance;
}
.hero h1 .hl {
  background: linear-gradient(180deg, #ffd9a8 0%, var(--accent-2) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: none;
}
@supports not (background-clip: text) {
  .hero h1 .hl { color: var(--accent-2); }
}

.lede {
  margin-top: 1.6rem;
  font-size: clamp(1.02rem, 1.55vw, 1.19rem);
  color: var(--text-on-ink-muted);
  max-width: 62ch;
}

/* quiet email link in the hero — deliberately not a call-to-action button */
.hero-mail {
  display: inline-block;
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 138, 60, .35);
  padding-bottom: .2rem;
  transition: color .18s ease, border-color .18s ease;
}
.hero-mail:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}

/* spectrum trace pinned to the bottom of the hero */
.spectrum {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(120px, 17vw, 205px);
  pointer-events: none;
  z-index: -1;
}
.spectrum-grid line {
  stroke: rgba(255, 255, 255, .055);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.spectrum-trace {
  fill: none;
  stroke: url(#specStroke);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--paper-line);
}

.section-head { max-width: 60ch; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }

.section-head h2,
.about h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
}


/* ---------- capability cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.4rem);
}
@media (max-width: 780px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #cfd5dd;
  box-shadow: 0 18px 40px -26px rgba(16, 26, 37, .55);
}
.card:hover::before { opacity: 1; }

.card-idx {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--accent-deep);
  letter-spacing: .08em;
  display: block;
  margin-bottom: .85rem;
}

.card h3 {
  font-size: 1.16rem;
  margin-bottom: .65rem;
  font-weight: 660;
}

.card p {
  color: var(--text-muted);
  font-size: .97rem;
}

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

.about-body h2 { margin-bottom: 1.5rem; }
.about-body p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.05rem;
  max-width: 64ch;
}
.about-body p:last-child { margin-bottom: 0; }

.about-side {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}
@media (max-width: 860px) {
  .about-side { border-left: 0; padding-left: 0; padding-top: 1.5rem;
                border-top: 1px solid var(--paper-line); }
}

.side-title {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.tags li {
  font-size: .85rem;
  color: var(--text);
  background: var(--paper-2);
  border: 1px solid var(--paper-line);
  padding: .34rem .75rem;
  border-radius: 999px;
  line-height: 1.4;
}
.section .tags li { background: var(--paper-2); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--ink);
  color: var(--text-on-ink);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 120%;
  background: radial-gradient(45% 60% at 50% 100%, rgba(210, 96, 26, .28), transparent 65%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-inner .eyebrow { justify-content: center; margin-bottom: 1.6rem; }

/* the email is the heading — no filler copy around it */
.contact-mail {
  font-family: var(--mono);
  font-size: clamp(1.15rem, 3.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -.01em;
  max-width: 100%;
}
.contact-mail a {
  text-decoration: none;
  color: var(--text-on-ink);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  padding-bottom: .25rem;
  transition: color .2s ease, border-color .2s ease;
  word-break: break-word;
}
.contact-mail a:hover {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--ink-line);
  color: var(--text-on-ink-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding-block: 2.1rem;
  font-size: .87rem;
}

.footer-mark {
  height: 22px;
  width: auto;
  filter: invert(1);
  opacity: .6;
}

.footer-legal { margin-right: auto; }

.footer-mail {
  text-decoration: none;
  color: var(--text-on-ink-muted);
  transition: color .18s ease;
}
.footer-mail:hover { color: var(--accent-ink); }

@media (max-width: 520px) {
  .footer-inner { gap: .7rem; }
  .footer-legal { margin-right: 0; width: 100%; }
}

/* ============================================================
   MOTION — entrance animation, opt-out respected
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    animation: rise .7s cubic-bezier(.22, .8, .3, 1) both;
  }
  .hero-inner > *:nth-child(1) { animation-delay: .04s; }
  .hero-inner > *:nth-child(2) { animation-delay: .12s; }
  .hero-inner > *:nth-child(3) { animation-delay: .20s; }
  .hero-inner > *:nth-child(4) { animation-delay: .28s; }

  .spectrum-trace {
    stroke-dasharray: 1670;
    stroke-dashoffset: 1670;
    animation: sweep 2.4s cubic-bezier(.5, 0, .2, 1) .35s both;
  }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes sweep {
    to { stroke-dashoffset: 0; }
  }
}

@media print {
  .site-header, .spectrum, .hero-glow { display: none; }
  body { color: #000; background: #fff; }
  .hero, .contact, .site-footer { background: #fff; color: #000; }
}
