/* ==========================================================================
   TheDeltaCorp — Design System & Page Styles
   Monochrome · Premium · Scroll-driven
   ========================================================================== */

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

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

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Palette */
  --black:     #0A0A0A;
  --surface:   #1A1A1A;
  --grey-dark: #4D4D4D;
  --grey-mid:  #8C8C8C;
  --grey-lt:   #C7C7C7;
  --white:     #F2F2F0;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Sizing */
  --header-height: 72px;
  --section-pad-x: clamp(24px, 5vw, 80px);
  --section-pad-y: clamp(80px, 12vh, 160px);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.25s;
  --duration-med:  0.5s;
  --duration-slow: 0.8s;
}

/* ---------- BODY ---------- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--black);
  overflow-x: hidden;
  position: relative;
}

/* ---------- TYPOGRAPHY UTILITIES ---------- */
.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.eyebrow {
  color: var(--grey-mid);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  display: block;
}

/* ---------- FOCUS STYLES ---------- */
:focus-visible {
  outline: 2px solid var(--grey-lt);
  outline-offset: 4px;
}

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

/* ---------- LINKS ---------- */
a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   THREE.JS CANVAS
   ========================================================================== */
#monolith-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   GRAIN OVERLAY
   ========================================================================== */
#grain-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 128px;
  animation: grain-shift 0.5s steps(4) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-5%, -5%); }
  50%  { transform: translate(5%, 2%); }
  75%  { transform: translate(-2%, 5%); }
  100% { transform: translate(3%, -3%); }
}

/* ==========================================================================
   VIGNETTE OVERLAY
   ========================================================================== */
#vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(10, 10, 10, 0.5) 100%
  );
}

/* ==========================================================================
   HEADER
   ========================================================================== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--duration-med) var(--ease-out-expo);
  border-bottom: 1px solid rgba(242, 242, 240, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 0 var(--section-pad-x);
  position: relative;
}

/* Brand text centered in header */
.header-brand-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  pointer-events: none;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  transition: opacity var(--duration-fast) ease;
}

.logo:hover {
  opacity: 0.7;
}

.logo svg {
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Desktop nav */
.nav-desktop {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--grey-lt);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  position: relative;
  padding: 4px 0;
  transition: color var(--duration-fast) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width var(--duration-med) var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--white);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--duration-fast) ease;
  transform-origin: center;
}

.hamburger.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-med) ease, visibility var(--duration-med) ease;
}

.nav-mobile[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.nav-mobile .nav-link {
  font-size: 1.2rem;
  letter-spacing: 0.15em;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 var(--section-pad-x);
}

.hero-content {
  max-width: 800px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: italic;
  color: var(--grey-lt);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--grey-mid);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* Scroll prompt */
.scroll-prompt {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--grey-dark);
}

.scroll-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}

.scroll-chevron {
  animation: chevron-bounce 2s ease-in-out infinite;
}

@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ==========================================================================
   FOUNDERS SECTION
   ========================================================================== */
#founders {
  position: relative;
  z-index: 1;
}

.founder-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 var(--section-pad-x);
}

.founder-panel:nth-child(odd) .founder-text {
  margin-left: auto;
  text-align: right;
}

.founder-panel:nth-child(even) .founder-text {
  margin-right: auto;
  text-align: left;
}

.founder-text {
  max-width: 420px;
  opacity: 0;
  transform: translateY(40px);
  /* GSAP will animate these */
}

.founder-text .eyebrow {
  margin-bottom: 12px;
}

.founder-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 8px;
}

.founder-focus {
  color: var(--grey-mid);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

.founder-quote {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--grey-lt);
  line-height: 1.6;
  font-style: italic;
}

/* ==========================================================================
   PRODUCTS SECTION
   ========================================================================== */
#products {
  position: relative;
  z-index: 1;
  padding: var(--section-pad-y) var(--section-pad-x);
  background: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.95) 15%, rgba(10,10,10,0.98) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 8vh, 80px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--grey-dark);
  border: 1px solid var(--grey-dark);
  border-radius: 4px;
  overflow: hidden;
}

.product-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background var(--duration-fast) ease;
  position: relative;
  cursor: default;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(242,242,240,0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-med) ease;
}

.product-card:hover {
  background: #222222;
}

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

.product-type {
  color: var(--grey-mid);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 12px;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 8px;
}

.product-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--grey-lt);
  line-height: 1.55;
}

/* ==========================================================================
   PHILOSOPHY SECTION
   ========================================================================== */
#philosophy {
  position: relative;
  z-index: 1;
  padding: var(--section-pad-y) var(--section-pad-x);
  background: var(--black);
}

.philosophy-content {
  max-width: 680px;
  margin: 0 auto;
}

.philosophy-paragraph {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--grey-lt);
  line-height: 1.75;
  margin-bottom: 32px;
}

.philosophy-paragraph:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--white);
  line-height: 1.4;
}

.philosophy-paragraph:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   FOOTER / CONTACT — Clean & Minimal
   ========================================================================== */
#contact {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vh, 100px) var(--section-pad-x) 0;
  background: var(--black);
  border-top: 1px solid rgba(242, 242, 240, 0.06);
  overflow: hidden;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Navigation Row: logo + link columns --- */
.footer-nav-row {
  display: flex;
  align-items: flex-start;
  gap: clamp(40px, 8vw, 120px);
  padding-bottom: clamp(48px, 6vh, 80px);
}

/* Delta logo symbol */
.footer-logo {
  flex-shrink: 0;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--white);
  display: block;
  line-height: 1;
}

/* Link columns container */
.footer-links-group {
  display: flex;
  gap: clamp(48px, 8vw, 120px);
}

/* Individual link column */
.footer-link-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-col-heading {
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--grey-mid);
  line-height: 1;
  padding: 6px 0;
  transition: color var(--duration-fast) ease;
  display: block;
}

.footer-link:hover {
  color: var(--white);
}

/* --- Massive Brand Row --- */
.footer-brand-row {
  position: relative;
  width: calc(100% + 2 * var(--section-pad-x));
  margin-left: calc(-1 * var(--section-pad-x));
  line-height: 0.82;
  margin-top: clamp(20px, 4vh, 40px);
}

.footer-brand-massive {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(8rem, 28vw, 36rem);
  letter-spacing: -0.04em;
  color: var(--white);
  display: block;
  text-align: left;
  padding-left: var(--section-pad-x);
  white-space: nowrap;
  line-height: 0.85;
  padding-bottom: 0;
  /* Subtle gradient mask — text fades into the background at the bottom */
  -webkit-mask-image: linear-gradient(to bottom, white 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, white 40%, transparent 100%);
  user-select: none;
}

.footer-contact-action {
  margin-left: auto;
}

.contact-button {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--white);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--duration-fast) ease;
}

.contact-button:hover {
  background-color: var(--grey-lt);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .hide-mobile {
    display: none;
  }

  /* Founders — hide text on mobile as it's on the monolith */
  .founder-panel {
    justify-content: center;
    padding: 0 24px;
  }

  .founder-text {
    display: none !important;
  }

  .founder-name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  /* Products — single column */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Footer — responsive stacking */
  .footer-nav-row {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links-group {
    flex-wrap: wrap;
    gap: 32px;
  }

  .footer-link-col {
    min-width: 120px;
  }

  .footer-brand-massive {
    font-size: clamp(6rem, 30vw, 16rem);
  }

  .footer-contact-action {
    margin-left: 0;
    margin-top: 16px;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-prompt {
    display: none;
  }

  .founder-text {
    opacity: 1 !important;
    transform: none !important;
  }

  #grain-overlay {
    animation: none;
  }
}

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: var(--grey-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--grey-mid);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--grey-dark) var(--black);
}
