/* ============================================
   NIGHTSWIM — MAX DYNAMICS
   ============================================ */

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

:root {
  --black: #030303;
  --dark: #080808;
  --dark-2: #0e0e0e;
  --dark-3: #161616;
  --gray-dark: #222;
  --gray: #555;
  --gray-light: #999;
  --white: #eee;
  --accent: #50bd97;
  --accent-2: #3da87e;
  --accent-3: #7dddb8;
  --accent-dim: rgba(80, 189, 151, 0.06);
  --pool-1: #0a2e24;
  --pool-2: #061a14;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  background: var(--black);
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  z-index: 10001;
  transition: none;
}

/* --- Film Grain --- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  animation: grain 0.4s steps(4) infinite;
}

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

/* --- Gradient Mesh BG --- */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  transition: opacity 2s ease;
}

.mesh-bg.active .mesh-orb { opacity: 1; }

.mesh-orb-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(10, 46, 36, 0.5) 0%, transparent 70%);
  top: -20%;
  left: -10%;
  animation: orbFloat1 20s ease-in-out infinite;
}

.mesh-orb-2 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(80, 189, 151, 0.08) 0%, transparent 70%);
  bottom: -20%;
  right: -10%;
  animation: orbFloat2 25s ease-in-out infinite;
}

.mesh-orb-3 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(61, 168, 126, 0.05) 0%, transparent 70%);
  top: 40%;
  left: 40%;
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10vw, 5vh) scale(1.1); }
  66% { transform: translate(-5vw, 10vh) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-8vw, -5vh) scale(1.15); }
  66% { transform: translate(5vw, -8vh) scale(0.9); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-10vw, 8vh) scale(1.2); }
}

/* --- Ripple Canvas --- */
#rippleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

/* --- Container --- */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(24px, 5vw, 80px);
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.8s var(--ease-out-expo);
}

.nav.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav.scrolled {
  background: transparent;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo-img {
  height: 24px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.nav-logo:hover .nav-logo-img {
  opacity: 1;
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-light);
  transition: color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.nav-link span {
  display: inline-block;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-link:hover span {
  transform: translateY(-100%);
}

.nav-link::after {
  content: attr(data-section);
  position: absolute;
  top: 100%;
  left: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  transition: top 0.4s var(--ease-out-expo);
}

.nav-link:hover::after {
  top: 0;
}

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

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.nav-menu-btn span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--white);
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

.nav-menu-btn.active span:first-child { transform: rotate(45deg) translate(2.5px, 2.5px); }
.nav-menu-btn.active span:last-child { transform: rotate(-45deg) translate(2.5px, -2.5px); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: circle(0% at calc(100% - 40px) 36px);
  transition: clip-path 0.8s var(--ease-out-expo);
}

.mobile-menu.active {
  clip-path: circle(150% at calc(100% - 40px) 36px);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 400;
  color: var(--white);
  opacity: 0;
  transform: translateY(40px) rotateX(20deg);
  transition: all 0.7s var(--ease-out-expo);
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.45s; }

/* --- Water Ripple Canvas --- */
.water-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translateY(-50vh) translateX(30px) scale(0.5); }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(-20px) scale(0); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-logo-container {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(80, 189, 151, 0.15) 0%, rgba(61, 168, 126, 0.05) 40%, transparent 70%);
  filter: blur(50px);
  animation: logoGlow 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes logoGlow {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  33% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2) rotate(1deg); }
  66% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95) rotate(-1deg); }
}

.hero-logo-img {
  width: clamp(340px, 55vw, 720px);
  height: auto;
  position: relative;
  user-select: none;
  -webkit-user-drag: none;
  animation: logoEntrance 2s var(--ease-out-expo) forwards;
  opacity: 0;
  transform: scale(0.8) translateY(40px);
}

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

.hero-tagline-wrap {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1.2s var(--ease-out-expo) 0.8s forwards;
  text-align: center;
  width: 100%;
}

.hero-subtitle {
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-divider {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-divider span {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: dividerPulse 3s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%, 100% { width: 60px; opacity: 0.5; }
  50% { width: 100px; opacity: 1; }
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-light);
}

/* Split text letters */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotateX(40deg);
  animation: charIn 0.6s var(--ease-out-expo) forwards;
}

.word { display: inline-block; white-space: pre; }

/* Split lines */
.line-wrap {
  overflow: hidden;
  display: block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.line-inner {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out-expo);
}

.line-inner.visible {
  transform: translateY(0);
}

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

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

.hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1.6s forwards;
}

.hero-scroll-cue span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
}

.scroll-arrow {
  animation: scrollBounce 2s ease-in-out infinite;
}

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

/* --- STATS --- */
.stats-section {
  padding: clamp(60px, 10vh, 120px) 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 8px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.1), transparent);
}

/* --- SECTIONS COMMON --- */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(80px, 15vh, 160px) 0;
}

.section-header {
  margin-bottom: clamp(60px, 8vh, 100px);
}

.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  position: relative;
  padding-left: 28px;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 800px;
}

/* --- BELIEFS --- */
.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.belief-card {
  position: relative;
  padding: clamp(28px, 3vw, 48px);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out-expo), border-color 0.4s ease;
}

.belief-card:hover {
  transform: translateY(-4px);
  border-color: rgba(80, 189, 151, 0.15);
}

/* Animated gradient border glow */
.card-border-glow {
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: conic-gradient(from var(--glow-angle, 0deg), transparent 0%, var(--accent) 10%, transparent 20%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

.belief-card:hover .card-border-glow {
  opacity: 1;
  animation: glowSpin 3s linear infinite;
}

@keyframes glowSpin {
  to { --glow-angle: 360deg; }
}

@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.belief-number {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.belief-card:hover .belief-number { opacity: 1; }

.belief-title {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 400;
  margin-bottom: 12px;
}

.belief-text {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray-light);
}

/* --- MARQUEE --- */
.marquee-section {
  position: relative;
  z-index: 1;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  overflow: hidden;
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
}

.marquee-forward .marquee-track { animation: marqueeL 40s linear infinite; }
.marquee-reverse .marquee-track { animation: marqueeR 35s linear infinite; }

.marquee-reverse { margin-top: 12px; }

.marquee-track span {
  font-family: var(--font-serif);
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: var(--gray-dark);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.marquee-section:hover .marquee-track span { color: var(--gray); }

.marquee-dot {
  width: 4px !important;
  height: 4px;
  border-radius: 50%;
  background: var(--accent) !important;
  opacity: 0.3;
  font-size: 0 !important;
  display: inline-block;
}

@keyframes marqueeL {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

@keyframes marqueeR {
  0% { transform: translateX(-33.33%); }
  100% { transform: translateX(0); }
}

/* --- PORTFOLIO SCROLL-JACKED --- */
.portfolio {
  padding-bottom: 0;
}

.portfolio-scroll-wrapper {
  position: relative;
  /* Height = viewport + enough scroll distance for all cards */
  height: 350vh;
}

.portfolio-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.portfolio-scroll-track {
  display: flex;
  gap: 24px;
  padding: 0 clamp(24px, 5vw, 80px);
  will-change: transform;
}

.portfolio-card {
  position: relative;
  width: clamp(280px, 22vw, 380px);
  aspect-ratio: 3/4;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.6s var(--ease-out-expo), border-color 0.4s ease;
}

.portfolio-card:hover {
  border-color: rgba(80, 189, 151, 0.2);
}

.portfolio-card:hover .card-border-glow {
  opacity: 1;
  animation: glowSpin 3s linear infinite;
}

.portfolio-card .card-border-glow {
  border-radius: 16px;
}

.portfolio-card-inner {
  padding: clamp(24px, 3vw, 40px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.portfolio-card-num {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  opacity: 0.5;
}

.portfolio-card-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
  margin: auto 0;
  transition: transform 0.5s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-card-name {
  transform: translateX(8px);
}

.portfolio-card-cat {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.4s ease;
}

.portfolio-card:hover .portfolio-card-cat { color: var(--accent); }

.portfolio-card-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), transparent);
  margin: 16px 0;
  transition: background 0.4s ease;
}

.portfolio-card:hover .portfolio-card-line {
  background: linear-gradient(90deg, var(--accent), transparent);
}

.portfolio-card-arrow {
  color: var(--gray-dark);
  transition: all 0.4s var(--ease-out-expo);
  align-self: flex-end;
}

.portfolio-card:hover .portfolio-card-arrow {
  color: var(--white);
  transform: translate(4px, -4px);
}

/* --- PULL QUOTE --- */
.pull-quote {
  padding: clamp(120px, 20vh, 240px) 0;
  overflow: hidden;
}

.big-quote {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.big-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Quote word-by-word color reveal */
.quote-word {
  display: inline-block;
  color: var(--gray-dark);
  transition: color 0.5s ease;
  margin-right: 0.25em;
}

.quote-word.lit {
  color: var(--white);
}

.big-quote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 40px;
}

/* --- FOUNDER --- */
.founder {
  border-top: 1px solid rgba(255,255,255,0.03);
}

.founder-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}

.founder-image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
}

.founder-image-wrapper .card-border-glow { border-radius: 12px; }
.founder-image-wrapper:hover .card-border-glow { opacity: 1; animation: glowSpin 3s linear infinite; }

.founder-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--dark-2), var(--dark-3));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.founder-image-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: 0.5;
}

.founder-image-placeholder span {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(255,255,255,0.03);
  position: relative;
  z-index: 1;
}

.founder-name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.founder-bio p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--gray-light);
  margin-bottom: 16px;
}

.founder-bio p:last-child { margin-bottom: 0; }

.founder-links {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}

.founder-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gray-light);
  transition: color 0.3s ease;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.founder-social:hover { color: var(--white); }
.founder-social svg { transition: transform 0.3s var(--ease-out-expo); }
.founder-social:hover svg { transform: translate(3px, -3px); }

/* --- CONTACT --- */
.contact {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.03);
}

.contact-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.contact-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--gray-light);
  margin-bottom: 48px;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 48px;
  border: 1px solid var(--accent);
  border-radius: 60px;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(80, 189, 151, 0.15), 0 0 60px rgba(80, 189, 151, 0.06);
  animation: ctaGlow 3s ease-in-out infinite;
}

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(80, 189, 151, 0.15), 0 0 60px rgba(80, 189, 151, 0.06); }
  50% { box-shadow: 0 0 40px rgba(80, 189, 151, 0.25), 0 0 80px rgba(80, 189, 151, 0.1); }
}

.contact-cta:hover {
  box-shadow: 0 0 50px rgba(80, 189, 151, 0.3), 0 0 100px rgba(80, 189, 151, 0.12);
}

.cta-text {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 400;
}

.cta-arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.4s var(--ease-out-expo);
}

.contact-cta:hover .cta-arrow { transform: translateX(6px); }

.cta-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(80, 189, 151, 0.08), transparent);
  transition: none;
}

.contact-cta:hover .cta-shimmer {
  animation: shimmerSlide 1s ease forwards;
}

@keyframes shimmerSlide {
  to { left: 100%; }
}

/* --- FOOTER --- */
.footer {
  position: relative;
  z-index: 1;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  background: var(--dark);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  opacity: 0.3;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--gray-dark);
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s ease;
}

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

/* --- REVEAL ANIMATIONS --- */
.reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3 {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s var(--ease-out-expo);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

.reveal.visible, .reveal-delay-1.visible, .reveal-delay-2.visible, .reveal-delay-3.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: all 0.9s var(--ease-out-expo);
}

.reveal-stagger.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .beliefs-grid { grid-template-columns: repeat(2, 1fr); }
  .founder-layout { grid-template-columns: 1fr; gap: 60px; }
  .founder-image-wrapper { max-width: 350px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }
  .beliefs-grid { grid-template-columns: 1fr; }
  .stats-grid { flex-direction: column; gap: 24px; }
  .stat-divider { width: 40px; height: 1px; }
  .hero-logo-img { width: 300px; }

  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-left { flex-direction: column; gap: 8px; }
}

@media (max-width: 480px) {
  .contact-cta { padding: 16px 28px; }
  .portfolio-card { width: 260px; }
}
