/* ============================================================
   VARIABLES
============================================================ */

:root {
  --bg:           #080808;
  --bg-2:         #0d0d0d;
  --bg-3:         #111111;
  --surface:      #161616;
  --border:       #1c1c1c;
  --border-mid:   #242424;

  --text:         #eeebe6;
  --text-2:       #78746f;
  --text-3:       #383430;

  --accent:       #c4a46b;
  --accent-dim:   rgba(196, 164, 107, 0.12);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --section-py:   clamp(56px, 7vw, 96px);
  --gutter:       clamp(24px, 5vw, 64px);
}

/* ============================================================
   RESET
============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }

/* ============================================================
   GLOBAL GRAIN OVERLAY
============================================================ */

.grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 400px 400px;
}

/* ============================================================
   LAYOUT CONTAINERS
============================================================ */

.container-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
}

/* ============================================================
   NAVIGATION
============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 500;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.5; }

.nav-cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(238, 235, 230, 0.16);
  padding: 8px 16px;
  border-radius: 5px;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover {
  border-color: rgba(238, 235, 230, 0.3);
  background: rgba(238, 235, 230, 0.04);
}

/* ============================================================
   HERO — full-bleed plinko background
============================================================ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  pointer-events: none;
  z-index: 0;
}

#plinko-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero-canvas-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 75% at 0% 100%, rgba(8,8,8,0.9) 0%, transparent 100%),
    linear-gradient(to top, rgba(8,8,8,0.55) 0%, transparent 48%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gutter) clamp(52px, 6vw, 84px);
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.026em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-sub {
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-sub p {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-2);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-or {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
}

/* ============================================================
   BUTTONS
============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  background: var(--accent);
  padding: 11px 22px;
  border-radius: 5px;
  letter-spacing: 0.01em;
  transition: opacity 0.18s, transform 0.18s;
}
.btn-primary:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.btn-large { font-size: 14px; padding: 13px 28px; }

/* ============================================================
   SHARED TYPOGRAPHY
============================================================ */

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 22px;
}

.section-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-body {
  font-size: clamp(14px, 1.3vw, 15px);
  color: var(--text-2);
  line-height: 1.74;
  margin-bottom: 14px;
}

/* ============================================================
   WHY SECTION
============================================================ */

.pull-quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.8vw, 34px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
  font-style: normal;
  border: none;
  padding: 0;
  margin-bottom: 24px;
}

.pull-quote::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(238, 235, 230, 0.18);
  margin-bottom: 26px;
}

.why-body {
  font-size: clamp(14px, 1.3vw, 15px);
  color: var(--text-2);
  line-height: 1.74;
}

/* ============================================================
   WHAT WE DO
============================================================ */

.what-section { background: var(--bg-2); }

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.pillars { display: flex; flex-direction: column; }

.pillar {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.pillar:first-child { border-top: 1px solid var(--border); }

.pillar-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.pillar h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 7px;
}

.pillar p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.68;
}

/* ============================================================
   HOW IT WORKS — FIG LAYOUT
============================================================ */

.how-header {
  margin-bottom: 40px;
}

.fig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.fig-card {
  background: var(--bg);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.2s;
}

.fig-card:hover { background: var(--bg-2); }

.fig-header {
  margin-bottom: 24px;
}

.fig-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
}

.fig-schematic {
  width: 64px;
  height: 64px;
  margin-bottom: 0;
  color: rgba(238, 235, 230, 0.28);
  flex-shrink: 0;
}

.fig-schematic svg {
  width: 100%;
  height: 100%;
}

.fig-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 22px 0;
}

.fig-body {
  flex: 1;
}

.fig-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.fig-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

/* FIG card variant — phonebook */
.fig-card--pb .fig-schematic {
  overflow: visible;
}

.fig-schematic--pb {
  overflow: visible;
}

.pb-book-wrap {
  display: inline-block;
  animation: pb-float 3.2s ease-in-out infinite;
}

.pb-book {
  display: block;
  transform-box: fill-box;
  transform-origin: center;
  animation: pb-rock 4.8s ease-in-out infinite;
}

@keyframes pb-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

@keyframes pb-rock {
  0%, 100% { transform: rotate(-5deg); }
  50%       { transform: rotate(4deg); }
}

/* FIG card variant — message / speech bubble */
.msg-cursor {
  animation: msg-blink 1.1s step-end infinite;
}

@keyframes msg-blink {
  0%, 100% { opacity: 0.85; }
  50%       { opacity: 0; }
}

/* FIG card variant — handover node transfer */
.hov-source {
  animation: hov-dim 2.6s ease-in-out infinite;
}

@keyframes hov-dim {
  0%, 35%  { opacity: 1; }
  60%, 85% { opacity: 0.12; }
  100%     { opacity: 1; }
}

.hov-dest {
  animation: hov-lit 2.6s ease-in-out infinite;
}

@keyframes hov-lit {
  0%, 35%   { opacity: 0.12; }
  65%, 100% { opacity: 1; }
}

.hov-beam {
  stroke-dasharray: 3 3;
  animation: hov-flow 0.72s linear infinite;
}

@keyframes hov-flow {
  to { stroke-dashoffset: -6; }
}

/* ============================================================
   WHO SECTION
============================================================ */

.who-section { background: var(--bg-2); }

.who-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}

.who-notfit {
  background: var(--bg-3);
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 28px;
  margin-top: 44px;
}

.notfit-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.notfit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.notfit-list li {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}

.notfit-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

/* ============================================================
   PROOF / CASE STUDY
============================================================ */

.results-section { background: var(--bg-2); }

.proof-block {
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--border-mid);
  border-bottom: 1px solid var(--border-mid);
  margin: 28px 0 32px;
}

.proof-context {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.proof-quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.8vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  font-style: normal;
  border: none;
  padding: 0;
  margin-bottom: 32px;
}

.proof-attribution {
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
}

.proof-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.proof-sep {
  color: var(--text-3);
  font-size: 12px;
}

.proof-role {
  font-size: 13px;
  color: var(--text-2);
}

.proof-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proof-tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.proof-footnote {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
}

/* ============================================================
   ABOUT — centered avatar column
============================================================ */

.about-section {
  border-top: 1px solid var(--border);
  padding: var(--section-py) 0;
}

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border-mid);
  flex-shrink: 0;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 15%;
  filter: grayscale(100%);
}

.about-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 460px;
  text-align: left;
}

.about-body p {
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--text-2);
  line-height: 1.74;
}

.about-emphasis {
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: clamp(18px, 1.8vw, 22px) !important;
  color: var(--text) !important;
  letter-spacing: -0.01em;
}

/* ============================================================
   CTA
============================================================ */

.cta-section {
  padding: var(--section-py) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.cta-inner { text-align: center; }
.cta-section .section-label { text-align: center; }

.cta-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-note {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-3);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-3);
}

/* ============================================================
   SCROLL REVEAL
============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity  0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.07s; }
.delay-2 { transition-delay: 0.14s; }
.delay-3 { transition-delay: 0.21s; }

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 960px) {
  .what-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .fig-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .who-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .who-notfit { margin-top: 0; }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: clamp(26px, 8.5vw, 40px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .fig-grid {
    grid-template-columns: 1fr;
  }

  .proof-quote {
    font-size: clamp(22px, 6.5vw, 32px);
  }

  .about-name {
    font-size: clamp(44px, 13vw, 68px);
  }
}
