/* ============================================
   FERDIG CONSULTING - Mountain Edition
   Colorado roots. Tech-forward. Sans-serif.
   ============================================ */

:root {
  /* Colors - dark with the original coral accent */
  --c-bg: #0C0E13;
  --c-bg-mid: #10131A;
  --c-bg-card: #151820;
  --c-text: #E2E0DD;
  --c-text-muted: #9B9790;
  --c-text-dim: #5C5850;
  --c-accent: #FF828A;
  --c-accent-soft: rgba(255, 130, 138, 0.12);
  --c-accent-glow: rgba(255, 130, 138, 0.25);
  --c-tpp: #FF828A;
  --c-pf: #82C8FF;
  --c-pts: #A8E882;
  --c-border: rgba(255, 255, 255, 0.06);
  --c-border-hover: rgba(255, 255, 255, 0.12);

  /* Typography - all sans-serif + monospace accent */
  --f-heading: 'Manrope', -apple-system, sans-serif;
  --f-body: 'Manrope', -apple-system, sans-serif;
  --f-mono: 'Source Code Pro', monospace;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.6s;
}

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

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

body {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 1.125rem;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Section Tag (monospace accent) ---- */
.section-tag {
  font-family: var(--f-mono);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: inline-block;
}

/* ---- Scroll Reveal ---- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: all 0.4s var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(12, 14, 19, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1rem 3rem;
  border-bottom: 1px solid var(--c-border);
}

.nav__logo-text {
  font-family: var(--f-mono);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: 0.04em;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--c-text);
  position: absolute;
  left: 0;
  transition: all 0.3s var(--ease-out);
}

.nav__toggle span:first-child { top: 6px; }
.nav__toggle span:last-child { bottom: 6px; }

.nav__toggle.is-active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav__toggle.is-active span:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__links a {
  font-family: var(--f-mono);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--c-accent);
}

.nav__cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--c-border-hover);
  border-radius: 3px;
  transition: all 0.3s;
}

.nav__cta:hover {
  border-color: var(--c-accent);
  color: var(--c-accent) !important;
}

/* ============================================
   HERO - Mountain Landscape
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--c-bg);
}

/* Mountain photo background */
.hero__photo {
  position: absolute;
  inset: 0;
  background: url('../img/mountains.jpg') center center / cover no-repeat;
  z-index: 1;
  transform: scale(1.05);
  will-change: transform;
}

/* Dark overlay for text readability + bottom fade */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(12, 14, 19, 0.35) 0%,
      rgba(12, 14, 19, 0.2) 40%,
      rgba(12, 14, 19, 0.5) 70%,
      var(--c-bg) 100%
    ),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(12, 14, 19, 0.1) 0%, rgba(12, 14, 19, 0.4) 100%);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  padding: 0 2rem;
}

.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--f-heading);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}

.hero__title span {
  display: block;
}

.hero__sub {
  font-family: var(--f-body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

/* Scroll indicator - animated line */
.hero__scroll {
  display: inline-block;
  width: 1px;
  height: 60px;
  position: relative;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--c-accent), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Hero reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.8s var(--ease-out) forwards;
}

.reveal--d1 { animation-delay: 0.4s; }
.reveal--d2 { animation-delay: 0.55s; }
.reveal--d3 { animation-delay: 0.75s; }
.reveal--d4 { animation-delay: 1s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  position: relative;
  padding: var(--space-2xl) 3rem;
}

.about__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(255, 130, 138, 0.03) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-mid) 50%, var(--c-bg) 100%);
}

.about__inner {
  position: relative;
  z-index: 1;
}

.about__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.about__title {
  font-family: var(--f-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.about__text {
  color: var(--c-text-muted);
  font-size: 1.35rem;
  line-height: 1.8;
  max-width: 700px;
}


/* ============================================
   ECOSYSTEM
   ============================================ */
.ecosystem {
  position: relative;
  padding: var(--space-2xl) 3rem;
}

.ecosystem__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(130, 200, 255, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 30% 70%, rgba(255, 130, 138, 0.03) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-mid) 50%, var(--c-bg) 100%);
}

.ecosystem__inner {
  position: relative;
  z-index: 1;
}

.ecosystem__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

.ecosystem__title {
  font-family: var(--f-heading);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: var(--space-sm);
}

.ecosystem__viz {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 8 / 5;
}

.ecosystem__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ecosystem__nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.eco-node {
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease-out);
}

.eco-node:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.eco-node__inner {
  background: rgba(21, 24, 32, 0.9);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  padding: 1.25rem 2rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: border-color 0.4s, box-shadow 0.4s;
  white-space: nowrap;
}

.eco-node:hover .eco-node__inner {
  border-color: var(--c-border-hover);
}

.eco-node--center { left: 50%; top: 28%; }
.eco-node--tpp { left: 18%; top: 75%; }
.eco-node--pf { left: 50%; top: 82%; }
.eco-node--pts { left: 82%; top: 75%; }

.eco-node--center .eco-node__inner {
  border-color: var(--c-accent);
  box-shadow: 0 0 50px var(--c-accent-soft), 0 0 100px rgba(255, 130, 138, 0.05);
}

.eco-node--tpp:hover .eco-node__inner {
  border-color: var(--c-tpp);
  box-shadow: 0 0 30px rgba(255, 130, 138, 0.1);
}

.eco-node--pf:hover .eco-node__inner {
  border-color: var(--c-pf);
  box-shadow: 0 0 30px rgba(130, 200, 255, 0.1);
}

.eco-node--pts:hover .eco-node__inner {
  border-color: var(--c-pts);
  box-shadow: 0 0 30px rgba(168, 232, 130, 0.1);
}

.eco-node__name {
  display: block;
  font-family: var(--f-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.eco-node__role {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

/* ============================================
   BRANDS
   ============================================ */
.brands {
  position: relative;
  padding: var(--space-2xl) 3rem;
}

.brands__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(168, 232, 130, 0.02) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-mid) 50%, var(--c-bg) 100%);
}

.brands__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

.brands__inner > .section-tag {
  display: block;
  margin-bottom: var(--space-xl);
}

.brand-card {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--c-border);
  transition: border-color 0.4s;
}

.brand-card:first-of-type {
  border-top: 1px solid var(--c-border);
}

.brand-card:hover {
  border-color: var(--c-border-hover);
}

/* Colored left glow on hover */
.brand-card::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0;
  bottom: 0;
  width: 2px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-card[data-brand="tpp"]::before {
  background: linear-gradient(to bottom, transparent, var(--c-tpp), transparent);
  box-shadow: 0 0 20px var(--c-tpp);
}

.brand-card[data-brand="pf"]::before {
  background: linear-gradient(to bottom, transparent, var(--c-pf), transparent);
  box-shadow: 0 0 20px var(--c-pf);
}

.brand-card[data-brand="pts"]::before {
  background: linear-gradient(to bottom, transparent, var(--c-pts), transparent);
  box-shadow: 0 0 20px var(--c-pts);
}

.brand-card__number {
  font-family: var(--f-mono);
  font-size: 2rem;
  font-weight: 300;
  color: var(--c-text-dim);
  line-height: 1;
  padding-top: 0.35rem;
}

.brand-card__name {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  transition: color 0.3s;
}

.brand-card[data-brand="tpp"]:hover .brand-card__name { color: var(--c-tpp); }
.brand-card[data-brand="pf"]:hover .brand-card__name { color: var(--c-pf); }
.brand-card[data-brand="pts"]:hover .brand-card__name { color: var(--c-pts); }

.brand-card__type {
  font-family: var(--f-mono);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-bottom: var(--space-md);
}

.brand-card__desc {
  color: var(--c-text-muted);
  font-size: 1.3rem;
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: var(--space-md);
}

.brand-card__capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand-card__capabilities li {
  font-family: var(--f-mono);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--c-text-dim);
  padding: 0.4rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 3px;
  transition: border-color 0.3s, color 0.3s;
}

.brand-card:hover .brand-card__capabilities li {
  border-color: var(--c-border-hover);
  color: var(--c-text-muted);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  position: relative;
  padding: var(--space-2xl) 3rem;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(255, 130, 138, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-mid) 60%, var(--c-bg) 100%);
}

.contact__mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  z-index: 1;
  opacity: 0.8;
}

.contact__inner {
  position: relative;
  z-index: 2;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.contact__title {
  font-family: var(--f-heading);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: var(--space-sm);
}

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

.contact__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--c-border);
  transition: border-color 0.3s;
}

.contact__link:first-child {
  border-top: 1px solid var(--c-border);
}

.contact__link:hover {
  border-color: var(--c-border-hover);
}

.contact__link-label {
  font-family: var(--f-mono);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}

.contact__link-value {
  font-family: var(--f-mono);
  font-size: 1.2rem;
  color: var(--c-text-muted);
  transition: color 0.3s;
}

.contact__link:hover .contact__link-value {
  color: var(--c-accent);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: var(--space-md) 3rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.footer__copy {
  font-family: var(--f-mono);
  font-size: 1rem;
  color: var(--c-text-dim);
}

.footer__tagline {
  font-family: var(--f-mono);
  font-size: 1rem;
  color: var(--c-text-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .ecosystem__viz {
    aspect-ratio: auto;
    min-height: 400px;
  }

  .eco-node--center { left: 50%; top: 18%; }
  .eco-node--tpp { left: 22%; top: 65%; }
  .eco-node--pf { left: 50%; top: 85%; }
  .eco-node--pts { left: 78%; top: 65%; }
}

@media (max-width: 680px) {
  .nav { padding: 1rem 1.5rem; }
  .nav.is-scrolled { padding: 0.75rem 1.5rem; }

  .nav__toggle { display: block; }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(12, 14, 19, 0.96);
    backdrop-filter: blur(24px);
    border-left: 1px solid var(--c-border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }

  .nav__links.is-open { transform: translateX(0); }

  .hero__content { padding: 0 1.5rem; }

  .about, .ecosystem, .brands, .contact {
    padding: var(--space-xl) 1.5rem;
  }

  .brand-card {
    grid-template-columns: 1fr;
  }

  .brand-card__number {
    font-size: 1.5rem;
  }

  .brand-card::before {
    left: -1.5rem;
  }

  .ecosystem__viz {
    min-height: 360px;
  }

  .eco-node__inner {
    padding: 1rem 1.25rem;
  }

  .eco-node__name { font-size: 1.1rem; }

  .eco-node--center { left: 50%; top: 14%; }
  .eco-node--tpp { left: 28%; top: 50%; }
  .eco-node--pf { left: 50%; top: 85%; }
  .eco-node--pts { left: 72%; top: 50%; }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}
