/* ============================================
   BUILDINGPICKS — Unleashed
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --white: #fafafa;
  --gray: #71717a;
  --light: #e4e4e7;
  --accent: #0062e6;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 98, 230, 0.04), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(45, 159, 147, 0.04), transparent 55%),
    var(--white);
  color: var(--black);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

::selection {
  background: var(--black);
  color: var(--white);
}

/* ============================================
   TOPO CANVAS
   ============================================ */
#topo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  mix-blend-mode: difference;
  color: #fff;
}

.nav-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.nav-link:hover { opacity: 1; }

.nav-contact {
  opacity: 1;
  padding: 8px 20px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  font-weight: 600;
  transition: background 0.3s, border-color 0.3s;
}

.nav-contact:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
}

.hero-content {
  max-width: 1400px;
  width: 100%;
}

.hero-split {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.hero-col {
  flex: 1;
}

.hero-left {
  text-align: left;
}

.hero-right {
  text-align: right;
}

.hero-divider {
  width: 1px;
  height: 120px;
  background: var(--light);
  margin: 0 clamp(24px, 4vw, 60px);
  align-self: center;
  flex-shrink: 0;
}

.hero-line {
  overflow: hidden;
  line-height: 1.15;
  padding-bottom: 2px;
}

.word {
  display: inline-block;
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 900;
  letter-spacing: -0.04em;
  will-change: transform;
  margin-right: 0.2em;
}

.word:last-child {
  margin-right: 0;
}

.word.heavy {
  font-weight: 900;
}

.word.light {
  font-weight: 200;
  letter-spacing: -0.02em;
}

.hero-right .word {
  margin-right: 0;
}

.char {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.char.visible {
  transform: translateY(0);
}

.hero-sub {
  margin-top: 40px;
  padding-left: 4px;
}

.hero-sub p {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.6;
  font-weight: 400;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 40px;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 1px;
  height: 60px;
  background: var(--black);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(120px); }
}

/* ============================================
   SUPPLY CHAIN GRAPH
   ============================================ */
.graph-section {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
}

.graph-header {
  text-align: center;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  z-index: 2;
}

.graph-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray);
  display: block;
  margin-bottom: 8px;
}

.graph-sub {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.02em;
}

.graph-diagram {
  width: 100%;
  max-width: 1100px;
  padding: 0 40px;
  margin-top: 40px;
}

.graph-svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--font);
}

.graph-edges {
  fill: none;
  stroke: rgba(10, 10, 10, 0.12);
  stroke-width: 1;
}

.graph-edge-direct {
  fill: none;
  stroke: rgba(0, 98, 230, 0.4);
  stroke-width: 1.25;
  stroke-dasharray: 3 5;
}

.graph-nodes circle {
  fill: var(--black);
}

.graph-labels text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  fill: var(--black);
}

/* ============================================
   STACKED PRODUCT CARDS
   ============================================ */
.stack-section {
  position: relative;
  z-index: 1;
}

.panel {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 80px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06), 0 -16px 40px rgba(0, 0, 0, 0.04);
}

.panel-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.panel-intro .panel-content {
  max-width: 600px;
}

.panel-num {
  display: block;
  font-size: clamp(100px, 15vw, 220px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px var(--light);
  position: absolute;
  top: 40px;
  right: 60px;
  pointer-events: none;
  user-select: none;
}

.panel-title-lg {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 24px;
}

.panel-sub {
  font-size: 18px;
  color: var(--gray);
  line-height: 1.6;
}

.panel-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  width: 100%;
}

/* Badges */
.panel-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.panel-badge.live {
  background: rgba(22, 163, 74, 0.08);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.panel-badge.launch {
  background: rgba(0, 98, 230, 0.06);
  color: #0062e6;
  border: 1px solid rgba(0, 98, 230, 0.12);
}

.panel-badge.ent {
  background: rgba(105, 85, 255, 0.06);
  color: #6955ff;
  border: 1px solid rgba(105, 85, 255, 0.12);
}

.panel-badge.dev {
  background: rgba(202, 138, 4, 0.06);
  color: #ca8a04;
  border: 1px solid rgba(202, 138, 4, 0.15);
}

/* Panel logos */
.panel-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-logo-icon {
  height: 40px;
  width: auto;
}

.panel-logo-icon.rockery-logo {
  height: 32px;
  width: auto;
}

.panel-logo-icon.cubicyard-logo {
  height: 40px;
  width: auto;
}

.panel-logo-wordmark {
  height: auto;
  width: auto;
}

.panel-logo-wordmark.cubicyard-wordmark {
  height: 28px;
  width: auto;
}

.panel-name {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}

.panel-oneliner {
  font-size: 18px;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 16px;
}

.panel-desc {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.panel-data {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--gray);
}

.panel-data strong {
  color: var(--black);
  font-weight: 800;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.panel-tags span {
  padding: 5px 12px;
  border: 1px solid var(--light);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  transition: border-color 0.3s, color 0.3s;
}

.panel-tags span:hover {
  border-color: var(--black);
  color: var(--black);
}

.panel-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.panel-flow span {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
}

.flow-dash {
  width: 24px;
  height: 1px;
  background: var(--light);
}

.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  padding: 12px 24px;
  border: 1px solid var(--light);
  border-radius: 100px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.panel-link:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* Panel Art — generative canvases */
.panel-art {
  width: 100%;
  height: 100%;
  position: relative;
}

/* ============================================
   ABOUT — TEXT REVEAL
   ============================================ */
.about {
  position: relative;
  z-index: 1;
  padding: 200px 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
}

.reveal-text p {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--light);
  transition: color 0.6s;
}

.reveal-text p.lit {
  color: var(--black);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  position: relative;
  z-index: 1;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-label {
  font-size: 14px;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-email {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  display: inline-block;
  position: relative;
  transition: color 0.3s;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding: 24px 40px;
  font-size: 12px;
  color: var(--gray);
  border-top: 1px solid var(--light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav-right { gap: 16px; }
  .nav-link { font-size: 12px; }
  .hero { padding: 0 24px; }
  .hero-split { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-right { text-align: left; }
  .hero-divider { width: 40px; height: 1px; margin: 0; }
  .hero-sub { margin-top: 24px; }
  .hero-sub p { font-size: 15px; }
  .scroll-hint { left: 24px; }

  .panel {
    grid-template-columns: 1fr;
    padding: 80px 24px 40px;
    align-items: start;
  }
  .panel-art { display: none; }
  .panel-num { font-size: 80px; top: 20px; right: 20px; }
  .panel-name { font-size: 36px; }

  .about { padding: 120px 24px; }
  .reveal-text p { font-size: 22px; }

  .contact-email { font-size: 24px; }
  .footer { padding: 20px 24px; }
}
