/* ============================================================
   Backlight Ventures — marketing site
   ------------------------------------------------------------
   Tokens live in css/tokens.css (design system source of truth).
   This file only adds site-level layout, sections, and a few
   page-only utilities. Nothing here invents new colors or type;
   it composes the tokens.

   The site is a single page with anchored sections:
     1  Hero          — dark, breathing dot, big claim
     2  Manifesto     — dark, BL flare, positioning
     3  Journey       — light, TR flare, 3 phases
     4  Phases        — dark, BL flare, two-column cards
     5  Metrics       — dark, three stats
     6  Portfolio     — light, logo strip
     7  Contact       — dark, BL flare, form
     8  Footer
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bl-bg-pure);
  color: var(--bl-fg);
  font-family: var(--bl-font);
  letter-spacing: var(--bl-tracking);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* The "·" separator used in nav and footer — kept dim by default */
.dot-sep { color: var(--bl-fg-dim-30); margin: 0 8px; }

/* ============================================================
   NAV — fixed, fades over hero on scroll
   ============================================================ */
nav.bl-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 28px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  transition: background 240ms var(--bl-ease);
}
nav.bl-nav.is-scrolled {
  background: rgba(0,0,0,0.78);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
}
nav.bl-nav .left { display: flex; align-items: center; gap: 18px; }
nav.bl-nav .left .bl-dot { --bl-dot-size: 26px; }
nav.bl-nav .left .wm {
  font-size: 22px; font-weight: var(--bl-w-medium); letter-spacing: var(--bl-tracking);
}
nav.bl-nav .right {
  display: flex; align-items: center; gap: 32px;
  font-size: 14px; font-weight: var(--bl-w-medium);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bl-fg-dim-60);
}
nav.bl-nav .right a { transition: opacity 160ms var(--bl-ease); }
nav.bl-nav .right a:hover { opacity: 1; color: var(--bl-fg); }
nav.bl-nav .right .cta { color: var(--bl-fg); display: flex; align-items: center; gap: 10px; }
nav.bl-nav .right .cta::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--bl-fg);
  box-shadow: 0 0 12px 2px rgba(255,255,255,0.55);
}

/* ============================================================
   Reused: section frame + eyebrow
   ============================================================ */
.section {
  position: relative;
  padding: 180px 48px;
  overflow: hidden;
}
.section + .section { border-top: 1px solid var(--bl-fg-dim-06); }
.section .container { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }

.section--light {
  background: #FAFAF7;
  color: var(--bl-ink);
  border-top-color: rgba(10,10,10,0.06);
}
.section--light + .section--light { border-top-color: rgba(10,10,10,0.06); }
.section--light + .section:not(.section--light) { border-top-color: var(--bl-fg-dim-06); }

.eyebrow {
  font-size: 13px; font-weight: var(--bl-w-medium);
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--bl-fg-dim-40);
  margin-bottom: 36px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--bl-line);
}
.section--light .eyebrow { color: rgba(10,10,10,0.45); }
.section--light .eyebrow::before { background: var(--bl-line); }

/* Contact section eyebrow ("GET IN TOUCH") sits in lime — strongest CTA */
.contact .eyebrow { color: var(--bl-line); }

/* Period and keyword accent — lime in both dark and light contexts.
   .period is the final punctuation; .accent wraps highlighted words. */
.period,
.accent { color: var(--bl-line); }
.section--light .period,
.section--light .accent { color: var(--bl-line); }

/* ============================================================
   HERO — single point of light + claim
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  overflow: hidden;
  padding: 140px 24px 100px;
}
.hero-stage {
  position: relative;
  width: 100%; max-width: 1100px;
  display: flex; flex-direction: column; align-items: center;
  gap: 72px;
  z-index: 2;
}
.hero-dot {
  width: 110px; height: 110px; border-radius: var(--bl-r-dot);
  background: #000;
  box-shadow:
    0 0 40px 12px   rgba(255,255,255,0.30),
    0 0 100px 32px  rgba(255,255,255,0.22),
    0 0 200px 60px  rgba(255,255,255,0.13),
    0 0 340px 100px rgba(255,250,235,0.08),
    0 0 540px 160px rgba(255,250,235,0.04);
  animation: hero-breathe 3000ms var(--bl-ease) infinite alternate;
}
@keyframes hero-breathe {
  from {
    box-shadow:
      0 0 40px 12px   rgba(255,255,255,0.30),
      0 0 100px 32px  rgba(255,255,255,0.22),
      0 0 200px 60px  rgba(255,255,255,0.13),
      0 0 340px 100px rgba(255,250,235,0.08),
      0 0 540px 160px rgba(255,250,235,0.04);
  }
  to {
    box-shadow:
      0 0 60px 16px   rgba(255,255,255,0.45),
      0 0 140px 48px  rgba(255,255,255,0.32),
      0 0 280px 90px  rgba(255,255,255,0.18),
      0 0 480px 140px rgba(255,250,235,0.12),
      0 0 700px 220px rgba(255,250,235,0.06);
  }
}
.hero-ring {
  position: absolute; inset: -120px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  animation: ring-rotate 28s linear infinite;
  pointer-events: none;
}
.hero-ring::before, .hero-ring::after {
  content: ""; position: absolute; border-radius: 50%; inset: 0; border: 1px solid rgba(255,255,255,0.04);
}
.hero-ring::before { inset: -60px; }
.hero-ring::after  { inset: -140px; border-color: rgba(255,255,255,0.025); }
@keyframes ring-rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.claim {
  text-align: center;
  font-size: clamp(48px, 9vw, 140px);
  font-weight: var(--bl-w-light);
  line-height: 0.96;
  letter-spacing: var(--bl-tracking);
  max-width: 1400px;
  margin: 0;
  text-wrap: balance;
}
.sub-claim {
  margin: 28px 0 0;
  text-align: center;
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: var(--bl-w-regular);
  color: var(--bl-fg-dim-60);
  max-width: 760px;
  line-height: var(--bl-lh-body);
}
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: var(--bl-w-medium);
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--bl-fg-dim-30);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  animation: scroll-bob 2400ms ease-in-out infinite;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--bl-fg-dim-40) 0%, transparent 100%);
}
@keyframes scroll-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}

/* ============================================================
   CORNER LENS FLARE — SVG, anchored at TR or BL of a section
   ============================================================ */
.corner-flare {
  position: absolute;
  width: 1100px; height: 1100px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  animation: flare-breathe var(--bl-dur-glow) var(--bl-ease) infinite alternate;
}
.corner-flare.bl { bottom: -360px; left: -360px; transform: scaleY(-1); }
.corner-flare.tr { top: -360px; right: -360px; transform: scaleX(-1); }

.section--light .corner-flare {
  opacity: 0.55;
  filter: invert(1) hue-rotate(190deg) saturate(0.4) brightness(0.95);
  mix-blend-mode: multiply;
}
@keyframes flare-breathe {
  from { opacity: 0.78; }
  to   { opacity: 0.95; }
}
.section--light .corner-flare { animation-name: flare-breathe-light; }
@keyframes flare-breathe-light {
  from { opacity: 0.40; }
  to   { opacity: 0.60; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 84px);
  font-weight: var(--bl-w-light);
  line-height: 1.04;
  letter-spacing: var(--bl-tracking);
  text-wrap: balance;
  max-width: 1100px;
}
.manifesto h2 em {
  font-style: normal;
  font-weight: var(--bl-w-regular);
  color: var(--bl-fg);
}
.manifesto p {
  margin-top: 32px;
  max-width: 720px;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: var(--bl-lh-body);
  color: var(--bl-fg-dim-60);
}

/* ============================================================
   JOURNEY — 3 phases on light background
   ============================================================ */
.journey h2 {
  margin: 0;
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: var(--bl-w-light);
  line-height: 1.0;
  letter-spacing: var(--bl-tracking);
  max-width: 900px;
}
.journey .nodes {
  margin-top: 96px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px;
  position: relative;
}
.journey .nodes::before {
  content: "";
  position: absolute;
  top: 16px; left: 18px; right: 18px;
  height: 1px;
  background: var(--bl-line);
  opacity: 0.6;
}
.journey .node { display: flex; flex-direction: column; gap: 24px; }
.journey .node .tick {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bl-ink);                            /* black core */
  box-shadow: 0 0 0 8px rgba(10,10,10,0.06);             /* original soft black halo */
  position: relative; z-index: 2;
}
.journey .node .ord {
  font-family: var(--bl-font-mono);
  font-size: 14px; font-weight: var(--bl-w-medium);
  letter-spacing: 0.08em;
  color: var(--bl-line);                                 /* "01 · / 02 · / 03 ·" stay lime ordinals */
}
.journey .node .ord .lbl { color: var(--bl-ink); opacity: 0.55; }  /* BEFORE/DURING/AFTER in black */
.journey .node h3 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 40px);
  font-weight: var(--bl-w-regular);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.journey .node p {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: var(--bl-lh-body);
  color: rgba(10,10,10,0.62);
}
.aphorism {
  margin-top: 120px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: var(--bl-w-light);
  line-height: 1.15;
  letter-spacing: var(--bl-tracking);
  max-width: 900px;
}
/* The unclassed inner span is the second line ("The goal is autonomy.")
   — it drops to a new row. The .period span stays inline so the lime
   period sticks to the last word of the first line. */
.aphorism > span:not(.period) { display: block; color: rgba(10,10,10,0.55); margin-top: 4px; }

/* ============================================================
   PHASES — two-column "Phase 1 / Phase 2" (hexa-style stages)
   ============================================================ */
.phases h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: var(--bl-w-light);
  line-height: 1.0;
  letter-spacing: var(--bl-tracking);
  max-width: 900px;
}
.phases .grid {
  margin-top: 96px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--bl-fg-dim-10);
  border-bottom: 1px solid var(--bl-fg-dim-10);
}
.phases .cell {
  padding: 56px 56px 64px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
}
.phases .cell + .cell { border-left: 1px solid var(--bl-fg-dim-10); }
.phases .cell .ord {
  font-family: var(--bl-font-mono);
  font-size: 13px; font-weight: var(--bl-w-medium);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bl-fg-dim-40);
}
.phases .cell .duration {
  font-size: 64px; font-weight: var(--bl-w-light);
  letter-spacing: var(--bl-tracking); line-height: 1;
  display: flex; align-items: baseline; gap: 10px;
}
.phases .cell .duration .unit { font-size: 22px; color: var(--bl-line); }
.phases .cell h3 {
  margin: 0;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: var(--bl-w-regular);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.phases .cell p {
  margin: 0;
  font-size: 16px;
  line-height: var(--bl-lh-body);
  color: var(--bl-fg-dim-60);
  max-width: 460px;
}
.phases .cell ul {
  margin: 8px 0 0; padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
}
.phases .cell ul li {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 15px; color: var(--bl-fg-dim-80);
}
.phases .cell ul li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--bl-fg-dim-40);
  transform: translateY(-3px);
  flex: none;
}

/* ============================================================
   METRICS — three stats laid out wide
   ============================================================ */
.metrics .grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px;
  border-top: 1px solid var(--bl-fg-dim-10);
  padding-top: 80px;
}
.metrics .stat { display: flex; flex-direction: column; gap: 18px; }
.metrics .stat .figure {
  font-size: clamp(64px, 8vw, 140px);
  font-weight: var(--bl-w-light);
  line-height: 1;
  letter-spacing: var(--bl-tracking);
}
.metrics .stat .label {
  font-size: 14px; font-weight: var(--bl-w-medium);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bl-fg-dim-40);
}
.metrics .stat .note {
  font-size: 15px; color: var(--bl-fg-dim-60);
  line-height: var(--bl-lh-body); max-width: 320px;
}

/* ============================================================
   PORTFOLIO — logo strip on light bg
   ============================================================ */
.portfolio h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 48px);
  font-weight: var(--bl-w-light);
  line-height: 1.05;
  letter-spacing: var(--bl-tracking);
  max-width: 760px;
}
.portfolio .logos {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid rgba(10,10,10,0.08);
  border-left: 1px solid rgba(10,10,10,0.08);
}
.portfolio .logos .logo {
  border-right: 1px solid rgba(10,10,10,0.08);
  border-bottom: 1px solid rgba(10,10,10,0.08);
  height: 140px;
  display: grid; place-items: center;
  padding: 28px;
  filter: grayscale(100%) contrast(1.0);
  opacity: 0.55;
  transition: opacity 240ms var(--bl-ease), filter 240ms var(--bl-ease);
}
.portfolio .logos .logo:hover { opacity: 1; filter: grayscale(0%); }
.portfolio .logos .logo img { max-height: 56px; max-width: 100%; object-fit: contain; }

/* ============================================================
   CONTACT — form on dark, BL flare
   ============================================================ */
.contact .container {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 96px;
  align-items: start;
}
.contact .intro h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: var(--bl-w-light);
  line-height: 1.0;
  letter-spacing: var(--bl-tracking);
}
.contact .intro p {
  margin-top: 24px;
  font-size: 16px; line-height: var(--bl-lh-body);
  color: var(--bl-fg-dim-60);
  max-width: 380px;
}
.contact .intro .footnote {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--bl-fg-dim-10);
  font-size: 14px;
  color: var(--bl-fg-dim-40);
}
.contact .intro .footnote a {
  color: var(--bl-fg-dim-80);
  border-bottom: 1px solid var(--bl-fg-dim-20);
  transition: border-color 160ms var(--bl-ease);
}
.contact .intro .footnote a:hover { border-color: var(--bl-fg); }

form.bl-form { display: flex; flex-direction: column; gap: 36px; }
.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field label {
  font-size: 12px; font-weight: var(--bl-w-medium);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bl-line);
}
.field label .req { color: var(--bl-line); }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bl-fg-dim-20);
  color: var(--bl-fg);
  font-family: inherit; letter-spacing: -0.005em;
  font-size: 18px; font-weight: var(--bl-w-regular);
  padding: 12px 0;
  transition: border-color 240ms var(--bl-ease);
  resize: none;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--bl-fg);
}
.field input::placeholder, .field textarea::placeholder { color: var(--bl-fg-dim-30); }
.field textarea { min-height: 88px; }

.field-file .file-zone {
  display: flex; align-items: center; gap: 16px;
  border: 1px dashed var(--bl-fg-dim-20);
  padding: 20px 24px;
  cursor: pointer;
  transition: border-color 240ms var(--bl-ease);
}
.field-file .file-zone:hover, .field-file .file-zone.dragover { border-color: var(--bl-fg); }
.field-file .file-zone .ic { width: 22px; height: 22px; flex: none; color: var(--bl-fg); }
.field-file .file-zone .label-stack {
  display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1;
}
.field-file .file-zone .primary {
  font-size: 15px; font-weight: var(--bl-w-medium);
  color: var(--bl-fg-dim-80);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.field-file .file-zone .secondary { font-size: 12px; color: var(--bl-fg-dim-40); }
.field-file input[type="file"] { display: none; }

button.submit {
  margin-top: 8px;
  align-self: flex-start;
  background: var(--bl-fg);
  color: var(--bl-ink);
  border: none;
  font-family: inherit;
  font-size: 16px; font-weight: var(--bl-w-medium); letter-spacing: -0.005em;
  padding: 18px 36px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 160ms var(--bl-ease), transform 160ms var(--bl-ease);
  display: flex; align-items: center; gap: 12px;
}
button.submit::after {
  content: "→"; font-size: 18px;
  transition: transform 240ms var(--bl-ease);
}
button.submit:hover { opacity: 0.85; }
button.submit:hover::after { transform: translateX(4px); }
button.submit:active { transform: scale(0.98); }

.submitted {
  padding: 56px 0;
  border-top: 1px solid var(--bl-fg);
  border-bottom: 1px solid var(--bl-fg-dim-10);
  display: none;
  flex-direction: column; gap: 16px;
}
.submitted .pulse {
  width: 32px; height: 32px; border-radius: var(--bl-r-dot);
  background: var(--bl-fg);
  box-shadow: 0 0 24px 4px rgba(255,255,255,0.45);
  animation: bl-breathe var(--bl-dur-glow) var(--bl-ease) infinite alternate;
}
.submitted h3 { margin: 0; font-size: 32px; font-weight: var(--bl-w-regular); letter-spacing: -0.025em; }
.submitted p { margin: 0; font-size: 16px; color: var(--bl-fg-dim-60); line-height: 1.5; }
body.is-submitted form.bl-form { display: none; }
body.is-submitted .submitted { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.bl-foot {
  padding: 56px 48px 64px;
  border-top: 1px solid var(--bl-fg-dim-06);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--bl-fg-dim-30);
}
footer.bl-foot a { color: var(--bl-fg-dim-60); transition: opacity 160ms var(--bl-ease); }
footer.bl-foot a:hover { opacity: 1; color: var(--bl-fg); }
footer.bl-foot .legal { letter-spacing: 0.06em; text-transform: uppercase; }
footer.bl-foot .left  { display: flex; align-items: center; gap: 14px; }
footer.bl-foot .right { display: flex; align-items: center; gap: 32px; }
footer.bl-foot .right a { letter-spacing: 0.06em; text-transform: uppercase; }
footer.bl-foot .left .bl-dot { --bl-dot-size: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .section { padding: 110px 24px; }
  nav.bl-nav { padding: 20px 24px; }
  nav.bl-nav .right a:not(.cta) { display: none; }
  .hero { padding: 110px 24px 80px; }
  .hero-stage { gap: 56px; }
  .hero-dot { width: 84px; height: 84px; }
  .journey .nodes { grid-template-columns: 1fr; gap: 56px; }
  .journey .nodes::before { display: none; }
  .phases .grid { grid-template-columns: 1fr; }
  .phases .cell + .cell { border-left: none; border-top: 1px solid var(--bl-fg-dim-10); }
  .metrics .grid { grid-template-columns: 1fr; gap: 56px; }
  .portfolio .logos { grid-template-columns: repeat(3, 1fr); }
  .contact .container { grid-template-columns: 1fr; gap: 56px; }
  footer.bl-foot { padding: 36px 24px; flex-direction: column; gap: 14px; align-items: flex-start; }
}
@media (max-width: 560px) {
  .portfolio .logos { grid-template-columns: repeat(2, 1fr); }
  .portfolio .logos .logo { height: 110px; padding: 20px; }
  .phases .cell { padding: 40px 28px 48px; }
  .phases .cell .duration { font-size: 48px; }
}
