/* ============================================================
   BRAINFORGE — style.css
   Jony Ive standard. Every pixel has a reason.
   ============================================================ */

/* --- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- TOKENS ------------------------------------------------ */
:root {
  --black:       #000000;
  --surface:     #080808;
  --white:       rgba(255, 255, 255, 0.92);
  --mid:         rgba(255, 255, 255, 0.38);
  --dim:         rgba(255, 255, 255, 0.18);
  --ghost:       rgba(255, 255, 255, 0.06);
  --rule:        rgba(255, 255, 255, 0.07);
  --amber:       #E8A020;
  --amber-dim:   rgba(232, 160, 32, 0.14);

  --font:        'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max:         1080px;
  --pad-x:       clamp(24px, 5vw, 80px);
  --pad-section: clamp(88px, 12vw, 160px);
}

/* --- BASE -------------------------------------------------- */
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1;
  overflow-x: hidden;
}

.br-desktop { display: block; }

/* --- NAV --------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad-x);
  transition: padding 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  padding: 18px var(--pad-x);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-color: var(--rule);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: opacity 0.2s;
}

.nav-logo:hover { opacity: 0.6; }

.logo-mark {
  width: 30px; height: 30px;
  background: var(--amber);
  color: #000;
  font-size: 14px;
  font-weight: 800;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-mark-sm {
  width: 24px; height: 24px;
  font-size: 12px;
  border-radius: 6px;
}

.nav-contact {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  letter-spacing: -0.01em;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-contact:hover {
  color: var(--white);
  border-color: var(--dim);
}

/* --- HERO -------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad-x);
  padding-bottom: clamp(72px, 10vw, 120px);
  padding-top: 140px;
}

.hero-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--amber);
  opacity: 0.6;
}

.hero-title {
  font-size: clamp(40px, 11.5vw, 128px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-optical-sizing: auto;
  overflow-wrap: break-word;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.t-white { color: var(--white); }
.t-amber { color: var(--amber); }

.hero-body {
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  color: var(--mid);
  line-height: 1.65;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
  max-width: 520px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #000;
  background: var(--amber);
  padding: 14px 28px;
  border-radius: 9px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cta-primary::after {
  content: '→';
  font-weight: 400;
  transition: transform 0.25s ease;
}

.cta-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.cta-primary:hover::after { transform: translateX(3px); }

/* --- RULE -------------------------------------------------- */
.rule {
  width: 100%;
  height: 1px;
  background: var(--rule);
}

/* --- STATEMENT --------------------------------------------- */
.statement {
  padding: var(--pad-section) var(--pad-x);
}

.statement-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.statement p {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.28;
  color: var(--white);
  max-width: 800px;
}

/* --- CAPABILITIES ------------------------------------------ */
.capabilities {
  padding: var(--pad-section) var(--pad-x);
}

.cap-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.cap-header {
  margin-bottom: 64px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.cap-list {
  display: flex;
  flex-direction: column;
}

.cap-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
  transition: background 0.3s;
}

.cap-item:first-child { border-top: 1px solid var(--rule); }

.cap-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--dim);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.cap-body strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.cap-body p {
  font-size: 14px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.65;
  letter-spacing: -0.005em;
  max-width: 560px;
}

/* --- WHO WE WORK WITH -------------------------------------- */
.whom {
  padding: var(--pad-section) var(--pad-x);
}

.whom-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.whom-inner > .eyebrow {
  display: block;
  margin-bottom: 52px;
}

.whom-lines {
  margin-bottom: 60px;
}

.whom-line {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transition: color 0.3s;
}

.whom-line:first-child { border-top: 1px solid var(--rule); }
.whom-line.whom-dim { color: var(--dim); }

.whom-line:hover { color: var(--white); }

.whom-note {
  max-width: 520px;
  padding-top: 16px;
}

.whom-note p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.link-underline {
  font-size: 14px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(232, 160, 32, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, opacity 0.2s;
  display: inline-block;
}

.link-underline:hover {
  border-color: var(--amber);
  opacity: 0.8;
}

/* --- CONTACT ----------------------------------------------- */
.contact {
  padding: var(--pad-section) var(--pad-x);
}

.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.contact-inner > .eyebrow {
  display: block;
  margin-bottom: 32px;
}

.contact-title {
  font-size: clamp(56px, 9vw, 110px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-optical-sizing: auto;
  color: var(--white);
  margin-bottom: 44px;
}

.contact-email {
  display: inline-block;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--amber);
  border-bottom: 1px solid rgba(232, 160, 32, 0.25);
  padding-bottom: 4px;
  transition: border-color 0.2s, opacity 0.2s;
  margin-bottom: 20px;
}

.contact-email:hover {
  border-color: var(--amber);
  opacity: 0.8;
}

.contact-note {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: -0.005em;
  font-weight: 400;
}

/* --- FOOTER ------------------------------------------------ */
.footer {
  padding: 40px var(--pad-x);
  border-top: 1px solid var(--rule);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo { opacity: 0.5; transition: opacity 0.2s; }
.footer-logo:hover { opacity: 1; }

.footer-sub {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: -0.01em;
}

.footer-copy {
  font-size: 13px;
  color: var(--dim);
  margin-left: auto;
}

/* --- ANIMATION --------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cap-item:nth-child(1) .cap-body { transition-delay: 0ms; }
.cap-item:nth-child(2) .cap-body { transition-delay: 60ms; }
.cap-item:nth-child(3) .cap-body { transition-delay: 120ms; }
.cap-item:nth-child(4) .cap-body { transition-delay: 180ms; }
.cap-item:nth-child(5) .cap-body { transition-delay: 240ms; }
.cap-item:nth-child(6) .cap-body { transition-delay: 300ms; }

/* --- RESPONSIVE -------------------------------------------- */
@media (max-width: 768px) {
  .br-desktop { display: inline; }

  .hero {
    align-items: flex-start;
    padding-top: 120px;
  }

  .cap-item {
    grid-template-columns: 44px 1fr;
    gap: 0 20px;
    padding: 28px 0;
  }

  .whom-line { font-size: 22px; padding: 12px 0; }
  .footer-copy { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -0.035em; }
  .cap-item { grid-template-columns: 1fr; gap: 10px 0; }
  .cap-num { padding-top: 0; }
}
