/* Reactor Five — styles */

:root {
  --ink: #0a0b0f;
  --ink-2: #3d4250;
  --muted: #5c6272;
  --accent: #4a52e0;
  --accent-bright: #6a74f5;
  --link: #3f3fd6;
  --paper: #f4f5f8;
  --night: #05070e;
  --on-night: #ffffff;
  --on-night-2: #b9bfd1;
  --on-night-muted: #8e95ad;
  --font-display: Manrope, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1440px;
}

html, body { margin: 0; padding: 0; background: var(--paper); }
* { box-sizing: border-box; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--ink); }
img, svg { max-width: 100%; }

.page {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.eyebrow { font-size: 10px; letter-spacing: 0.3em; color: var(--muted); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background-color: var(--paper);
  background-image:
    linear-gradient(95deg, rgba(246,247,250,0.97) 0%, rgba(246,247,250,0.92) 26%, rgba(246,247,250,0.55) 46%, rgba(246,247,250,0) 66%),
    url('/assets/rf-hero-bg.png');
  background-size: cover, auto 100%;
  background-position: center, calc(100% + 110px) center;
  background-repeat: no-repeat, no-repeat;
  padding: 0 0 clamp(64px, 7vw, 110px);
  min-height: clamp(560px, 68vh, 780px);
  display: flex;
  flex-direction: column;
}

.site-header {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) var(--gutter) 0;
}
.site-header__home { display: inline-flex; }
.site-header__logo { display: block; height: auto; width: min(322px, 68vw); }

.hero__grid {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: clamp(40px, 6vw, 84px) auto 0;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }

.hero__kicker {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.34em;
  font-weight: 600;
  color: var(--accent);
}

.hero__title {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(34px, 5.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 700;
  text-wrap: balance;
}
.hero__title .dot { color: var(--accent); }

.hero__lede {
  margin: 0;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__tagline { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.hero__rule { display: block; width: 56px; height: 1px; background: var(--accent); }
.hero__tagline .eyebrow { font-size: 10.5px; }

.hero__art { position: relative; min-width: 0; min-height: clamp(320px, 42vw, 560px); }

/* ---------- Capabilities ---------- */

.capabilities {
  background: radial-gradient(90% 70% at 50% 0%, #121a30 0%, #0a0f1d 45%, var(--night) 100%);
  background-color: var(--night);
  color: var(--on-night);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.capabilities__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.panel {
  --panel-img: none;
  background-image:
    linear-gradient(180deg, rgba(8,12,24,0.72) 0%, rgba(8,12,24,0.18) 38%, rgba(8,12,24,0) 62%, rgba(8,12,24,0) 80%, var(--night) 100%),
    var(--panel-img);
  background-size: cover, cover;
  background-position: center top, center bottom;
  background-repeat: no-repeat, no-repeat;
  padding: clamp(32px, 3.4vw, 56px) clamp(22px, 2.6vw, 44px) 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}
.panel--media { --panel-img: url('/assets/panel1.png'); }
.panel--tech  { --panel-img: url('/assets/panel2.png'); }
.panel--dev   { --panel-img: url('/assets/panel3.png'); }

.panel__num {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: var(--on-night-muted);
}
.panel__rule { display: block; width: 26px; height: 2px; background: var(--accent-bright); }
.panel__title {
  font-family: var(--font-display);
  margin: 0;
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.panel__text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--on-night-2);
  max-width: 32ch;
  text-wrap: pretty;
}
.panel__spacer { flex: 1; min-height: clamp(190px, 26vw, 360px); }
.panel__tags { font-size: 10px; letter-spacing: 0.3em; line-height: 2.1; color: var(--on-night-muted); }

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--night) 0px, #1a2034 36px, #c9cdd8 110px, #eef0f4 200px, #f6f7fa 55%, #eceef4 100%);
}

.site-footer__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 132px) var(--gutter) clamp(36px, 4vw, 64px);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(28px, 3.5vw, 40px);
  align-items: start;
  border-top: 1px solid rgba(10,11,15,0.12);
  padding-top: clamp(28px, 3vw, 44px);
}

.site-footer__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.site-footer__col--brand { gap: 18px; }
.site-footer__logo { display: block; height: auto; width: min(200px, 56vw); }
.site-footer__brand-line { max-width: 240px; line-height: 2; }
.site-footer__text {
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.site-footer__text--link { color: var(--link); }

.site-footer__bar { border-top: 1px solid rgba(10,11,15,0.1); }
.site-footer__bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter) 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.site-footer__copy { font-size: 12.5px; color: var(--muted); }

/* ---------- Tablet (≤1024) ---------- */

@media (max-width: 1024px) {
  .capabilities__grid { grid-template-columns: minmax(0, 1fr); }
  .panel { min-height: clamp(420px, 62vw, 620px); }

  .hero {
    padding-bottom: 40px;
    min-height: 0;
    background-image:
      linear-gradient(95deg, rgba(246,247,250,0.97) 0%, rgba(246,247,250,0.92) 26%, rgba(246,247,250,0.55) 46%, rgba(246,247,250,0) 66%),
      linear-gradient(180deg, #f5f6f9 0%, #f5f6f9 34%, rgba(245,246,249,0.72) 62%, rgba(245,246,249,0) 100%),
      url('/assets/rf-hero-bg.png');
    background-size: cover, 100% 24%, auto 86%;
    background-position: center, center top, calc(100% + 40px) bottom;
    background-repeat: no-repeat, no-repeat, no-repeat;
  }
  .hero__art { min-height: min(46vw, 340px); }
}

/* ---------- Phone (≤640) ---------- */

@media (max-width: 640px) {
  .hero {
    min-height: 0;
    background-image: none;
    background-color: var(--paper);
    padding-bottom: 0;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: clamp(28px, 7vw, 48px);
    gap: clamp(28px, 5vw, 44px);
  }
  .hero__art {
    min-height: min(78vw, 400px);
    margin: 0 calc(-1 * var(--gutter));
    background-image: url('/assets/rf-hero-bg.png');
    background-size: 150% auto;
    background-position: center bottom;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 18%, rgba(0,0,0,0.62) 38%, rgba(0,0,0,1) 62%);
    mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 18%, rgba(0,0,0,0.62) 38%, rgba(0,0,0,1) 62%);
  }
}

@media (max-width: 520px) {
  .hero__art { min-height: min(92vw, 360px); background-size: 175% auto; }
}
