/* ============================================
   UMET LABS — MAIN STYLESHEET
   Organized, responsive, mobile-first
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
  /* Colors */
  --ink: #0c0c0c;
  --honey: #fffcf8;
  --honey-light: #fffcf8;
  --gray-line: rgba(0, 0, 0, 0.08);
  
  /* Spacing */
  --space-xl: 140px;
  --space-lg: 100px;
  --space-md: 60px;
  --space-sm: 30px;
  
  /* Typography */
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
  /* Borders */
  --radius: 10px;
}

/* ============================================
   2. GLOBAL RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background: var(--honey);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   3. NAVIGATION
   ============================================ */
.nav {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(246, 247, 248, 0);
  border-bottom: 1px solid var(--gray-line);
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-right a {
  margin-left: 24px;
  font-size: 0.95rem;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.nav-right a:hover {
  opacity: 1;
}

/* ============================================
   4. HERO SECTION
   ============================================ */
.hero {
  padding: 2rem 2rem 3rem;  /* this gives breathing room under the sticky nav */
  margin: -6;                /* REMOVE margin pushing hero down */
  text-align: center;
  background: var(--honey);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  filter: brightness(1.03) saturate(0.92);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  bottom: -300px;
  background: rgba(255, 252, 248, 0.68);
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -260px;
  height: 420px;
  background: linear-gradient(
    rgba(255, 252, 248, 0) 0%,
    rgba(255, 252, 248, 0.9) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 750px;
  max-width: 90vw;
  height: auto;
  margin: 0 auto;
  opacity: 0.95;
  line-height: 0;
}

.hero-sub {
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  opacity: 0.75;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
  position: relative;
  top: -8rem;
  border-bottom: 1px solid var(--gray-line);
}

/* ============================================
   5. PRODUCT ROW (Brand Strip)
   ============================================ */
.product-row {
  z-index: 5;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.product-row-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: nowrap;
}

.product-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-logo-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.product-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
}

.product-logo.sn {
  height: 50px;
}

.product-logo.umet {
  height: 175px;
}

/* ============================================
   6. PARALLAX ABOUT SECTION
   ============================================ */
.parallax-about {
  min-height: 1080px;
  padding-top: 260px;
  padding-bottom: 200px;
  margin-top: -150px;
  background: url("/images/nodes.png") center / cover no-repeat fixed;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  filter: brightness(1) saturate(0.25);
}

.parallax-about::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 252, 248, 0.55);
  backdrop-filter: blur(4px);
}

.parallax-about::before {
  content: "";
  position: absolute;
  bottom: -240px;
  left: 0;
  width: 100%;
  height: 380px;
  background: linear-gradient(
    rgba(255, 252, 248, 0) 0%,
    rgba(255, 252, 248, 0.92) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.about-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  padding: 2rem;
}

.about-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.about-content p {
  font-size: clamp(1.1rem, 2vw, 1.9rem);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ============================================
   7. PHILOSOPHY SECTION
   ============================================ */
.philosophy-section {
  margin-top: -340px;
  padding: 270px 1rem 400px;
  background: #fffdf8;
  position: relative;
  overflow: visible;
  filter: brightness(1.02) saturate(0.85);
}

.philosophy-section::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -180px;
  width: 100%;
  height: 360px;
  z-index: 1;
  background: linear-gradient(
    rgba(255, 252, 248, 0) 0%,
    rgba(255, 252, 248, 1) 100%
  );
  pointer-events: none;
}

#philosophyCanvas {
  position: absolute;
  top: -320px;
  left: 0;
  width: 100%;
  height: calc(100% + 320px);
    pointer-events: auto; 
  z-index: 2;
  opacity: 0.48;
  filter: blur(0.4px);
}

.philosophy-content {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
    pointer-events: auto;
}

.philosophy-section h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #111;
}

.philosophy-section p {
  font-size: clamp(1.05rem, 2vw, 1.75rem);
  line-height: 1.65;
  color: #333;
  margin: 0 auto 1.75rem;
  max-width: 800px;
}

.philosophy-section em {
  font-style: italic;
  color: #444;
}

/* ============================================
   8. PROJECTS SECTION
   ============================================ */
.projects-section {
  margin-top: -340px;
  padding: 270px 1rem 180px;
  background: #fffdf8;
  position: relative;
  overflow: visible;
  filter: brightness(1.02) saturate(0.85);
  z-index: 0;
}

#projectsCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  filter: blur(0.8px);
}

.projects-content-wrap {
  position: relative;
  padding-top: 2px;
  padding-bottom: 180px;
  z-index: 5;
  width: 100%;
  background: var(--honey);
}

.projects-content-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(255, 252, 248, 0.41);
  pointer-events: none;
}

.projects-content-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 600px;
  width: 100%;
  z-index: 1;
  background: linear-gradient(
    rgba(255, 255, 255, 0.986) 0%,
    rgb(255, 252, 248) 100%
  );
}

.projects-title {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.projects-title h2 {
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.projects-title p {
  font-size: clamp(1.15rem, 1.5vw, 1.75rem);
  line-height: 1.55;
  opacity: 0.75;
  max-width: 720px;
  margin: 0.5rem auto 0;
  color: var(--ink);
}

/* ============================================
   9. SUBHERO (Project Panels)
   ============================================ */
.subhero {
  padding: 120px 20px;
  text-align: center;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 3;
}

.project-logo-wrapper {
  width: 370px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: transparent;
}

.project-logo-wrapper.large {
  width: 320px;
  height: 320px;
  margin-bottom: 0.75rem;
}

.project-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Individual project logo sizing */
.subhero .project-logo-wrapper.large img[src*="sn_logo"] {
  max-height: 145px;
  width: auto;
}

.subhero .project-logo-wrapper.large img[src*="peer_logo"] {
  max-height: 410px;
  width: auto;
}

.subhero .project-logo-wrapper.large img[src*="umet.svg"] {
  max-width: 300px;
  max-height: 300px;
  margin-bottom: 0.6rem;
}

.subhero-sub {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  max-width: 760px;
  margin: 0 auto 1rem;
  opacity: 0.85;
}

.subhero-btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  font-weight: 700;
  font-size: 1.15rem;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.subhero-btn:hover {
  transform: translateY(-2px);
  background: #000;
}

/* ============================================
   10. SECTION DIVIDER
   ============================================ */
.section-divider {
  height: 120px;
  background: transparent;
  pointer-events: none;
}

/* ============================================
   11. FOOTER
   ============================================ */
footer {
  background: var(--honey-light);
  text-align: center;
  padding: 4rem 1rem;
  font-size: 0.9rem;
  color: #444;
  border-top: 1px solid var(--gray-line);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* ============================================
   12. ANIMATIONS
   ============================================ */
.fade-rise {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.fade-rise.revealed {
  opacity: 1;
  transform: translateY(0);
}

.fade-rise.delay-1 {
  transition-delay: 0.15s;
}

.fade-rise.delay-2 {
  transition-delay: 0.3s;
}

/* ============================================
   13. RESPONSIVE — TABLET (max-width: 900px)
   ============================================ */
@media (max-width: 900px) {
  :root {
    --space-xl: 80px;
    --space-lg: 60px;
    --space-md: 40px;
  }

  /* Nav */
  .nav {
    padding: 1rem 1.25rem;
    backdrop-filter: blur(8px);
  }

  .nav-title {
    font-size: 1.4rem;
  }

  .nav-right a {
    font-size: 0.9rem;
    margin-left: 14px;
  }

  /* Hero */
  .hero {
    margin-top: 0;
    padding: 3rem 1rem 1.5rem;
  }

  .hero-logo {
    max-width: 82vw;
  }

  .hero-sub {
    top: -1.8rem;
    padding: 0 1rem;
    font-size: 1.25rem;
    line-height: 1.45;
  }

  .hero + .product-row {
    margin-top: 15rem;
  }

  /* Product Row */
  .product-row {
    margin-top: -5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(
      rgba(255, 255, 255, 0.986) 0%,
      rgba(255, 252, 248, 0.75) 35%,
      rgb(250, 250, 250) 100%
    );
    backdrop-filter: blur(2px);
  }

  .product-row-inner {
    flex-wrap: wrap;
    gap: 1.4rem;
  }

  .product-logo {
    height: 72px;
    max-width: 80%;
  }

  .product-logo.umet {
    height: 110px;
  }

  .product-logo.sn {
    height: 48px;
  }

  /* Parallax About */
  .parallax-about {
    min-height: 900px;
    background-size: 260%;
    background-position: center top;
    background-attachment: scroll;
  }

  .parallax-about::after {
    background: rgba(255, 248, 235, 0.185);
    backdrop-filter: blur(3px);
    background: linear-gradient(
      rgba(255, 255, 255, 0.986) 0%,
      rgb(255, 252, 248) 35%,
      rgb(250, 250, 250) 100%
    );
    filter: brightness(0.98) saturate(0.55) sepia(0.05);
  }

  .about-content h2 {
    font-size: 2.3rem;
  }

  .about-content p {
    font-size: 1.11rem;
    padding: 0 0.5rem;
    line-height: 1.55;
    filter: brightness(0.98) saturate(0.25) sepia(0.25);
  }

  /* Philosophy */
  .philosophy-section {
    padding: 4.5rem 1.2rem;
    padding-bottom: 220px;
    overflow: visible;
  }

  .philosophy-section h2 {
    font-size: 2.4rem;
  }

  .philosophy-section p {
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
  }

  /* Projects Title */
  .projects-title {
    padding: 2.5rem 1rem 1rem;
  }

  .projects-title h2 {
    font-size: 2.8rem;
  }

  .projects-title p {
    font-size: 1.15rem;
    padding: 0 0.75rem;
  }

  /* Project Panels */
  .subhero {
    padding: 60px 20px;
  }

  .project-logo-wrapper.large {
    width: 300px;
    height: 300px;
    margin-bottom: 0.5rem;
  }

  /* Project-specific wrapper sizing for mobile */
  .subhero .project-logo-wrapper.large:has(img[src*="sn_logo"]) {
    width: 275px;
    height: 140px;
  }

  .subhero .project-logo-wrapper.large:has(img[src*="umet"]) {
    width: 95px;
    height: 120px;
  }

  .subhero .project-logo-wrapper.large:has(img[src*="peer"]) {
    width: 250px;
    height: 120px;
    padding-bottom: 50px;
  }

  .subhero-sub {
    font-size: 1.05rem;
    padding: 0 0.75rem;
    margin-bottom: 1.25rem;
  }

  .subhero-btn {
    padding: 12px 26px;
    font-size: 1rem;
  }

  /* Footer */
  footer {
    padding: 3rem 1rem;
    font-size: 0.85rem;
  }
}

/* ============================================
   14. RESPONSIVE — SMALL PHONES (max-width: 600px)
   ============================================ */
@media (max-width: 600px) {
  :root {
    --space-xl: 60px;
    --space-lg: 40px;
    --space-md: 24px;
  }

  /* Hero */
  .hero {
    padding-top: 2rem;
  }

  .hero-logo {
    max-width: 88vw;
  }

  .hero-sub {
    top: -1.2rem;
    font-size: 1.15rem;
  }

  /* Product Row */
  .product-row {
    margin-top: 1.5rem;
    padding: 1.5rem 0.75rem;
  }

  .product-row-inner {
    gap: 1.2rem;
  }

  .product-logo {
    height: 58px;
  }

  .product-logo.sn {
    height: 40px;
  }

  .product-logo.umet {
    height: 95px;
  }

  /* Parallax */
  .parallax-about {
    min-height: 540px;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .about-content h2 {
    font-size: 2.1rem;
  }

  .about-content p {
    font-size: 1.05rem;
  }

  /* Project Panels */
  .subhero {
    padding: 48px 16px;
  }

  .project-logo-wrapper.large {
    width: 170px;
    height: 170px;
  }

  .subhero-sub {
    font-size: 0.95rem;
  }

  .subhero-btn {
    padding: 10px 22px;
    font-size: 0.95rem;
  }
}

/* ============================================
   15. DESKTOP OVERRIDES (min-width: 901px)
   ============================================ */
@media (min-width: 901px) {
  .hero + .product-row {
    margin-top: -1rem;
  }

  .product-row-inner {
    gap: 2rem;
  }
}
