/* ============================================
   labs.llc — Generative Systems Lab
   Color system derived from the LABS badge
   (#FC6801 → #EA580C) and the hero render
   ============================================ */

:root {
  /* Core palette */
  --bg-deep: #05060b;
  --bg-primary: #0a0e17;
  --bg-elevated: #0f1420;
  --bg-card: #121826;
  --bg-hover: #1a2233;

  /* Accent — the badge gradient */
  --accent: #fb6a02;
  --accent-bright: #ff8c3c;
  --accent-dim: #ea580c;
  --accent-glow: rgba(251, 106, 2, 0.45);
  --accent-soft: rgba(251, 106, 2, 0.12);

  /* Secondary — the cool nodes in the hero render */
  --cool: #6c8cd5;
  --cool-soft: rgba(108, 140, 213, 0.14);

  /* Text */
  --text-primary: #f0f2f5;
  --text-secondary: #a0a8b8;
  --text-muted: #6b7385;

  /* Borders & lines */
  --border: rgba(251, 106, 2, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --line-glow: rgba(255, 140, 60, 0.35);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Orbitron', 'Inter', sans-serif;

  /* Spacing & radius */
  --radius: 12px;
  --radius-lg: 20px;
  --nav-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Particle Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* Typography helpers */
.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}
.logo-text .dot {
  color: var(--accent);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(5, 6, 11, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 6, 11, 0.92);
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  text-decoration: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.42em;
}

/* the LABS badge sets the lockup size; .llc rides alongside it */
.nav-badge {
  display: block;
  height: 1.42em;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(251, 106, 2, 0.35));
  transition: filter 0.25s ease, transform 0.25s ease;
}

.nav-logo:hover .nav-badge {
  filter: drop-shadow(0 2px 16px rgba(251, 106, 2, 0.6));
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-glow);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 20px var(--accent-soft);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--accent-glow);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
  z-index: 1;
  text-align: center;
}

.hero-content {
  max-width: 820px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-logo-wrap {
  margin-bottom: 1.75rem;
  position: relative;
}

.hero-logo-frame {
  position: relative;
  max-width: 580px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.65),
    0 0 70px rgba(251, 106, 2, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  /* warm halo bleeding out from the plaque — drop-shadow follows the rounded
     corners and is not clipped by the frame's own overflow: hidden */
  filter: drop-shadow(0 0 55px rgba(251, 106, 2, 0.22));
  animation: logoFloat 6s ease-in-out infinite;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-elevated);
  transition: opacity 0.35s ease;
}

.hero-logo.swapping {
  opacity: 0;
}

/* Shuffle control — sits centred under the frame so the plaque stays balanced.
   Same grammar as the download pills: round icon chip, Orbitron caps, glass. */
@property --shuffle-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.shuffle-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0.9rem auto 0;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 106, 2, 0.4);
  background:
    linear-gradient(135deg, rgba(251, 106, 2, 0.22), rgba(15, 20, 32, 0.72));
  backdrop-filter: blur(14px) saturate(180%);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(251, 106, 2, 0.14);
  transition: border-color 0.25s ease, background 0.25s ease,
              box-shadow 0.25s ease, transform 0.2s ease;
}

/* tiny status light — same signal as the SYSTEMS ONLINE badge.
   Green idle, dims to amber while an image is being fetched and swapped. */
.shuffle-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 7px #22c55e;
  animation: pulse 2s infinite;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.shuffle-pill.working .shuffle-dot {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(251, 106, 2, 0.65);
  opacity: 0.5;
  animation: none;
}

.shuffle-pill > svg {
  color: var(--accent-bright);
  flex-shrink: 0;
}

.shuffle-pill:hover {
  border-color: var(--accent);
  background:
    linear-gradient(135deg, rgba(251, 106, 2, 0.36), rgba(15, 20, 32, 0.78));
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 34px rgba(251, 106, 2, 0.35);
  transform: translateY(-2px);
}

.shuffle-pill:active {
  transform: translateY(0) scale(0.97);
}

.shuffle-pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* orbiting light along the border, armed on hover / focus / while swapping */
.shuffle-pill::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--shuffle-angle),
    transparent 0deg 210deg,
    var(--accent) 290deg,
    var(--accent-bright) 330deg,
    #ffd7b0 348deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.shuffle-pill:hover::after,
.shuffle-pill:focus-visible::after,
.shuffle-pill.spinning::after {
  opacity: 1;
  animation: shuffleOrbit 1.9s linear infinite;
}

@keyframes shuffleOrbit {
  to { --shuffle-angle: 360deg; }
}

.shuffle-label {
  padding-bottom: 1px;   /* optical centring for the Orbitron caps */
}

/* a keyframe (not a transition) so every click re-triggers a full turn */
@keyframes spinOnce {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.shuffle-pill.spinning svg {
  animation: spinOnce 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.shuffle-pill[disabled] {
  cursor: default;
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo {
    transition: none;
  }

  .shuffle-pill.spinning svg,
  .shuffle-pill::after {
    animation: none;
  }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-soft);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.btn.full-width {
  width: 100%;
  justify-content: center;
}

/* Brand asset pills */
.asset-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2.25rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 1.25rem 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 24, 38, 0.6);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, box-shadow 0.25s ease;
}

.pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(26, 34, 51, 0.85);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--accent-soft);
}

.pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.pill-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.pill:hover .pill-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  transform: translateY(1px);
}

.pill-body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.pill-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.pill-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.pill-accent {
  border-color: rgba(251, 106, 2, 0.35);
  background: linear-gradient(135deg, rgba(251, 106, 2, 0.14), rgba(18, 24, 38, 0.6));
}

.pill-ghost .pill-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

/* Spec sheet */
.asset-specs {
  max-width: 660px;
  margin: 1.1rem auto 0;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(15, 20, 32, 0.78);
  backdrop-filter: blur(16px);
  text-align: left;
  animation: specIn 0.35s ease both;
}

.asset-specs[hidden] {
  display: none;
}

@keyframes specIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.spec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.spec-swatches {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.spec-swatches .sw {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--sw);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.spec-swatches .sw + span {
  margin-right: 0.5rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1.75rem;
}

.spec-grid dt {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.spec-grid dd {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.asset-specs code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8em;
  padding: 0.1em 0.4em;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}

.spec-note {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; height: 30px; }
  50% { opacity: 1; height: 48px; }
}

/* Scroll reveal (only armed once JS adds .js-reveal) */
.js-reveal .work-card,
.js-reveal .insight-card,
.js-reveal .visual-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-reveal .work-card.in-view,
.js-reveal .insight-card.in-view,
.js-reveal .visual-card.in-view {
  opacity: 1;
  transform: none;
}

/* Live metrics band */
.metrics {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(251, 106, 2, 0.04), transparent 60%);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 1.5rem 2rem;
  align-items: center;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
  padding-left: 1.1rem;
}

.metric::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}

.metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-bright);
  text-shadow: 0 0 24px var(--accent-glow);
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* creative-flow ring */
.metric-ring {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'ring value' 'ring label';
  align-items: center;
  gap: 0 0.85rem;
  padding-left: 1.75rem;
}

.metric-ring::before {
  background: linear-gradient(180deg, var(--cool), transparent);
}

.flow-ring {
  grid-area: ring;
  width: 62px;
  height: 62px;
  transform: rotate(-90deg);
}

.flow-ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.07);
}

.ring-fill {
  stroke: var(--accent);
  stroke-dasharray: 326.7;          /* 2πr, r = 52 */
  stroke-dashoffset: 326.7;
  filter: drop-shadow(0 0 6px var(--accent-glow));
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-value {
  grid-area: value;
  align-self: end;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.metric-ring .metric-label {
  grid-area: label;
  align-self: start;
  padding-top: 0.35rem;
}

/* Sections common */
.section {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 640px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* About */
.about {
  background: linear-gradient(180deg, transparent, rgba(251, 106, 2, 0.03), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.about-text .lead {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-visual {
  position: relative;
}

.visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(251, 106, 2, 0.08);
}

.circuit-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(90deg, var(--line-glow) 1px, transparent 1px),
    linear-gradient(var(--line-glow) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.15;
  pointer-events: none;
}

.visual-content {
  position: relative;
  z-index: 1;
}

.visual-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--accent-bright);
}

.pillars {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pillars li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar-icon {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 0.15rem;
}

.pillars strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.pillars p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Work Grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-soft);
}

.work-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.work-image {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: var(--bg-elevated);
}

.work-card.featured .work-image {
  min-height: 320px;
  height: 100%;
  align-self: stretch;
}

.work-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

/* absolute fill so the photo always covers the image frame even when the
   featured grid row is taller than the intrinsic image aspect */
.work-card.featured .work-photo {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
}

.work-card:hover .work-photo {
  transform: scale(1.04);
  filter: brightness(1.06) saturate(1.08);
}

.work-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(5, 6, 11, 0.72);
  border: 1px solid var(--border);
  color: var(--accent-bright);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
}

.work-info {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-meta {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.work-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.work-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.work-link {
  color: var(--accent-bright);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: gap 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.work-link:hover {
  gap: 0.6rem;
  color: var(--accent);
}

/* Insights */
.insights {
  background: linear-gradient(180deg, transparent, rgba(251, 106, 2, 0.025), transparent);
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  border-color: var(--border);
  background: var(--bg-hover);
  transform: translateY(-3px);
}

.insight-date {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.insight-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: var(--text-primary);
}

.insight-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.insight-link {
  color: var(--accent-bright);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.insight-link:hover {
  color: var(--accent);
}

/* Connect */
.connect-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 0 80px rgba(251, 106, 2, 0.07);
}

.connect-info .section-title {
  margin-bottom: 1rem;
}

.connect-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 420px;
}

.connect-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail a {
  color: var(--accent-bright);
  text-decoration: none;
  font-weight: 500;
}

.detail a:hover {
  text-decoration: underline;
}

.connect-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-note {
  font-size: 0.85rem;
  color: var(--accent-bright);
  text-align: center;
  min-height: 1.2em;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.footer-brand .logo-text {
  font-size: 1.35rem;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid,
  .connect-wrapper,
  .work-card.featured {
    grid-template-columns: 1fr;
  }

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

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

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(5, 6, 11, 0.97);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

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

  .metric-ring {
    grid-column: 1 / -1;
    justify-content: start;
    grid-template-columns: auto auto;
  }

  .footer-links {
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 1rem);
  }

  .hero-logo-frame {
    max-width: 88vw;
    border-radius: var(--radius);
  }

  .asset-bar {
    gap: 0.5rem;
  }

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

  .asset-specs {
    padding: 1.15rem 1.25rem;
  }

  .metrics {
    padding: 2rem 0;
  }

  .metrics-grid {
    gap: 1.25rem 1rem;
  }

  .flow-ring {
    width: 52px;
    height: 52px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .connect-wrapper {
    padding: 1.75rem;
  }

  .footer-top {
    flex-direction: column;
  }
}

/* keep the scroll cue from colliding with the expanded spec sheet */
.specs-open .hero-scroll {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Selection */
::selection {
  background: var(--accent);
  color: #fff;
}
