/* ============================================
   Room to Grow — Design System

   Aesthetic: Subtly Psychedelic Nature —
   bioluminescent teal, deep amethyst, luminous moss
   over deep forest tones. Living, breathing depth.
   Fonts: Fraunces (display) + Outfit (body)
   ============================================ */

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

/* ---- Custom Properties ---- */
:root {
  --bg-deep: #0b1118;
  --bg-surface: #101922;
  --bg-elevated: #16212d;
  --bg-subtle: #1d2d3a;
  --bg-cream: #f0eee8;

  --text-primary: #e2e0da;
  --text-secondary: #8e9baa;
  --text-muted: #566a7a;
  --text-on-light: #162030;

  --accent: #4ec9a8;
  --accent-light: #7ee8c8;
  --accent-dim: #2e7a6a;
  --accent-warm: #d4a24a;

  /* Bioluminescent palette */
  --bio-teal: #3de8c8;
  --bio-violet: #8b5cf6;
  --bio-emerald: #34d399;
  --bio-amber: #d4a24a;

  --border: #1a2636;
  --border-hover: #263a4e;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;

  --space-2xs: clamp(0.25rem, 0.4vw, 0.375rem);
  --space-xs: clamp(0.5rem, 0.8vw, 0.75rem);
  --space-sm: clamp(0.75rem, 1.2vw, 1rem);
  --space-md: clamp(1rem, 2vw, 1.5rem);
  --space-lg: clamp(1.5rem, 3vw, 2.5rem);
  --space-xl: clamp(2.5rem, 5vw, 4rem);
  --space-2xl: clamp(4rem, 8vw, 7rem);
  --space-3xl: clamp(6rem, 12vw, 10rem);

  --content-max: 68rem;
  --content-narrow: 44rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --duration: 0.7s;
  --duration-slow: 1.2s;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--accent-dim) var(--bg-deep);
}

body {
  font-family: var(--font-body);
  font-weight: 350;
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-dim);
  color: var(--text-primary);
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

a:hover {
  color: var(--accent-warm);
}

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

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6vw + 1rem, 6.5rem);
  font-variation-settings: 'opsz' 72;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3.25rem);
  font-variation-settings: 'opsz' 36;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.625rem);
  font-variation-settings: 'opsz' 20;
  font-weight: 450;
}

p {
  max-width: 38em;
}

.overline {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.container--narrow {
  max-width: var(--content-narrow);
}

section {
  padding-block: var(--space-2xl);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: var(--space-sm);
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.nav.scrolled {
  background: oklch(0.12 0.02 230 / 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-block: var(--space-xs);
  border-bottom: 1px solid var(--border);
}

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

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-variation-settings: 'opsz' 20;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav__logo:hover {
  color: var(--text-primary);
  opacity: 0.8;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}

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

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

.nav__contact-btn {
  font-size: 0.8125rem;
  font-weight: 450;
  color: var(--bg-deep);
  background: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.nav__contact-btn:hover {
  background: var(--accent-light);
  color: var(--bg-deep);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav__toggle span + span {
  margin-top: 6px;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
  padding-top: clamp(6rem, 8vh, 8rem);
  padding-bottom: var(--space-xl);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    oklch(0.35 0.08 230 / 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
}

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

.hero__label {
  margin-bottom: var(--space-lg);
}

.hero__heading {
  margin-bottom: var(--space-lg);
  max-width: 14ch;
}

.hero__sub {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.25rem);
  color: var(--text-secondary);
  max-width: 36ch;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 450;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
}

.btn--primary {
  color: var(--bg-deep);
  background: var(--accent);
  padding: 0.875rem 2rem;
  border-radius: 3rem;
}

.btn--primary:hover {
  background: var(--accent-light);
  color: var(--bg-deep);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--text-secondary);
  background: transparent;
  padding: 0.875rem 0;
}

.btn--ghost:hover {
  color: var(--text-primary);
}

.btn--ghost .btn__arrow {
  transition: transform 0.35s var(--ease-out);
}

.btn--ghost:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--large {
  font-size: 1.0625rem;
  padding: 1rem 2.5rem;
}

/* ---- Mission Section ---- */
.mission {
  border-top: 1px solid var(--border);
}

.mission__text {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw + 0.5rem, 2.25rem);
  font-weight: 350;
  font-variation-settings: 'opsz' 28;
  line-height: 1.4;
  color: var(--text-primary);
  max-width: 28ch;
  margin-bottom: var(--space-xl);
}

.mission__body {
  color: var(--text-secondary);
  max-width: 52ch;
  font-size: clamp(1rem, 0.5vw + 0.85rem, 1.125rem);
}

/* ---- Services Section ---- */
.services {
  background: var(--bg-surface);
}

.services__header {
  margin-bottom: var(--space-xl);
}

.services__list {
  list-style: none;
}

.services__item {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md) var(--space-lg);
  align-items: start;
}

.services__item:last-child {
  border-bottom: 1px solid var(--border);
}

.services__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  font-variation-settings: 'opsz' 48;
  color: var(--accent-dim);
  line-height: 1;
  min-width: 3ch;
}

.services__content {
  padding-top: 0.25rem;
}

.services__title {
  margin-bottom: var(--space-sm);
}

.services__desc {
  color: var(--text-secondary);
  max-width: 40ch;
}

/* ---- Featured Work ---- */
.featured {
  overflow: hidden;
}

.featured__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.featured__label {
  margin-bottom: var(--space-lg);
}

.featured__name {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 3rem);
  font-weight: 400;
  font-variation-settings: 'opsz' 36;
  margin-bottom: var(--space-2xs);
  color: var(--text-primary);
}

.featured__tagline {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.2vw + 0.4rem, 1.25rem);
  font-weight: 300;
  font-style: italic;
  font-variation-settings: 'opsz' 14;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.featured__desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.featured__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.featured__tag {
  font-size: 0.75rem;
  font-weight: 450;
  color: var(--text-muted);
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  letter-spacing: 0.03em;
}

/* Phone mockup */
.featured__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: clamp(200px, 28vw, 280px);
  aspect-ratio: 9 / 19;
  border-radius: 2.5rem;
  border: 2px solid var(--border-hover);
  background: linear-gradient(
    160deg,
    var(--bg-elevated) 0%,
    var(--bg-surface) 40%,
    oklch(0.18 0.04 230) 100%
  );
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 24px oklch(0 0 0 / 0.3),
    inset 0 1px 0 oklch(1 0 0 / 0.04);
}

.phone-mockup__notch {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 1.5rem;
  background: var(--bg-deep);
  border-radius: 1rem;
}

.phone-mockup__screen {
  position: absolute;
  inset: 3.5rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.phone-mockup__line {
  height: 0.375rem;
  border-radius: 0.25rem;
  background: var(--border-hover);
  opacity: 0.6;
}

.phone-mockup__line:nth-child(1) { width: 60%; }
.phone-mockup__line:nth-child(2) { width: 85%; }
.phone-mockup__line:nth-child(3) { width: 45%; }
.phone-mockup__line:nth-child(4) {
  width: 70%;
  height: 2rem;
  margin-top: 0.5rem;
  background: var(--accent-dim);
  opacity: 0.3;
}
.phone-mockup__line:nth-child(5) { width: 80%; margin-top: 0.75rem; }
.phone-mockup__line:nth-child(6) { width: 55%; }

.phone-mockup__glow {
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 160%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    oklch(0.4 0.1 155 / 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--bg-surface);
  text-align: left;
}

.cta-section__heading {
  margin-bottom: var(--space-md);
  max-width: 18ch;
}

.cta-section__body {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 44ch;
}

/* ---- About Page ---- */
.page-hero {
  padding-top: clamp(8rem, 15vh, 12rem);
  padding-bottom: var(--space-xl);
}

.page-hero__heading {
  max-width: 16ch;
  margin-bottom: var(--space-md);
}

.page-hero__sub {
  font-size: clamp(1rem, 1vw + 0.5rem, 1.25rem);
  color: var(--text-secondary);
  max-width: 44ch;
  line-height: 1.6;
}

/* Story section */
.story {
  border-top: 1px solid var(--border);
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.story__label {
  margin-bottom: var(--space-sm);
}

.story__lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw + 0.4rem, 1.875rem);
  font-weight: 350;
  font-variation-settings: 'opsz' 24;
  line-height: 1.45;
  color: var(--text-primary);
  max-width: 30ch;
}

.story__body {
  color: var(--text-secondary);
}

.story__body p + p {
  margin-top: var(--space-md);
}

/* Values section */
.values {
  background: var(--bg-surface);
}

.values__header {
  margin-bottom: var(--space-xl);
}

.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.values__item {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--border);
}

.values__item:last-child {
  border-bottom: 1px solid var(--border);
}

.values__item-title {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.2vw + 0.5rem, 1.375rem);
  font-weight: 400;
  font-variation-settings: 'opsz' 18;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.values__item-desc {
  color: var(--text-secondary);
  max-width: 44ch;
}

/* Approach section */
.approach__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.approach__label {
  margin-bottom: var(--space-sm);
}

.approach__heading {
  margin-bottom: var(--space-lg);
  max-width: 18ch;
}

.approach__body {
  color: var(--text-secondary);
}

.approach__body p + p {
  margin-top: var(--space-md);
}

.approach__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.approach__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-secondary);
}

.approach__list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-dim);
  margin-top: 0.65em;
}

/* ---- Contact Page ---- */
.contact-content {
  padding-bottom: var(--space-3xl);
}

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

.form-group {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 350;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
  transition: border-color 0.3s var(--ease-out);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 7rem;
  line-height: 1.6;
}

.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%235e7264' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.form-group select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.form__submit {
  margin-top: var(--space-md);
}

.form__success {
  display: none;
  padding: var(--space-lg);
  border: 1px solid var(--accent-dim);
  border-radius: 0.5rem;
}

.form__success.visible {
  display: block;
}

.form__success h3 {
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.form__success p {
  color: var(--text-secondary);
}

/* Contact sidebar */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact__info-block h3 {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.contact__info-block p,
.contact__info-block a {
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact__info-block a:hover {
  color: var(--accent-light);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-xl);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--text-secondary);
}

/* ---- 404 Page ---- */
.not-found {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.not-found__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 300;
  font-variation-settings: 'opsz' 72;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.not-found h2 {
  margin-bottom: var(--space-md);
}

.not-found p {
  color: var(--text-secondary);
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity var(--duration) var(--ease-out-expo),
    transform var(--duration) var(--ease-out-expo);
  transition-delay: var(--delay, 0ms);
}

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

/* Stagger children */
.stagger > .reveal:nth-child(1) { --delay: 0ms; }
.stagger > .reveal:nth-child(2) { --delay: 80ms; }
.stagger > .reveal:nth-child(3) { --delay: 160ms; }
.stagger > .reveal:nth-child(4) { --delay: 240ms; }
.stagger > .reveal:nth-child(5) { --delay: 320ms; }
.stagger > .reveal:nth-child(6) { --delay: 400ms; }

/* Hero-specific entrance */
.hero .reveal {
  transform: translateY(3rem);
  transition-duration: var(--duration-slow);
}

/* ---- Responsive ---- */

/* Tablet (768px+) */
@media (min-width: 48rem) {
  .featured__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
  }

  .story__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .approach__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .contact__grid {
    grid-template-columns: 1.3fr 0.7fr;
    gap: var(--space-2xl);
  }

  .values__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-2xl);
  }

  .values__item:nth-child(2) {
    border-top: 1px solid var(--border);
  }

  .services__item {
    gap: var(--space-md) var(--space-xl);
  }
}

/* Desktop (1024px+) */
@media (min-width: 64rem) {
  .services__item {
    grid-template-columns: 6rem 1fr;
    gap: 0 var(--space-xl);
  }

  .services__number {
    text-align: right;
  }
}

/* Mobile nav */
@media (max-width: 47.99rem) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 20rem);
    height: 100svh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 5rem 2rem 2rem;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
  }

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

  .nav__link,
  .nav__contact-btn {
    font-size: 1.125rem;
    padding-block: 0.75rem;
  }

  .nav__contact-btn {
    margin-top: var(--space-md);
  }

  /* Overlay */
  .nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: oklch(0 0 0 / 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
    z-index: -1;
  }

  .nav__overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (min-width: 48rem) {
  .nav__toggle {
    display: none;
  }

  .nav__overlay {
    display: none;
  }
}

/* ---- Focus States ---- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
}

/* ============================================
   Subtly Psychedelic Nature — Ambient Layer
   ============================================ */

/* ---- Ambient Floating Orbs ---- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  will-change: transform;
}

.bg-orb--teal {
  width: clamp(300px, 45vw, 600px);
  height: clamp(300px, 45vw, 600px);
  background: radial-gradient(circle, var(--bio-teal), transparent 70%);
  top: -10%;
  right: -5%;
  animation: drift-teal 30s ease-in-out infinite alternate;
}

.bg-orb--violet {
  width: clamp(250px, 40vw, 550px);
  height: clamp(250px, 40vw, 550px);
  background: radial-gradient(circle, var(--bio-violet), transparent 70%);
  bottom: -15%;
  left: -10%;
  animation: drift-violet 36s ease-in-out infinite alternate;
}

.bg-orb--emerald {
  width: clamp(200px, 35vw, 500px);
  height: clamp(200px, 35vw, 500px);
  background: radial-gradient(circle, var(--bio-emerald), transparent 70%);
  top: 40%;
  left: 50%;
  animation: drift-emerald 25s ease-in-out infinite alternate;
}

@keyframes drift-teal {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-8vw, 12vh) scale(1.1); }
  100% { transform: translate(5vw, -8vh) scale(0.95); }
}

@keyframes drift-violet {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(10vw, -10vh) scale(1.05); }
  100% { transform: translate(-6vw, 8vh) scale(1.1); }
}

@keyframes drift-emerald {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-12vw, -6vh) scale(1.08); }
  100% { transform: translate(8vw, 10vh) scale(0.92); }
}

/* ---- Film Grain Overlay ---- */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.grain-overlay svg {
  width: 100%;
  height: 100%;
}

/* ---- Animated Gradient Text ---- */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero__heading {
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--bio-teal) 25%,
    var(--bio-violet) 50%,
    var(--bio-teal) 75%,
    var(--text-primary) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease infinite;
}

.mission__text {
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--bio-teal) 40%,
    var(--text-primary) 80%
  );
  background-size: 250% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 10s ease infinite;
}

/* ---- h2 Glow ---- */
h2 {
  text-shadow: 0 0 40px oklch(0.7 0.12 180 / 0.15);
}

/* ---- Overline Gradient ---- */
.overline {
  background: linear-gradient(90deg, var(--accent), var(--bio-teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- 404 Animated Gradient ---- */
.not-found__code {
  background: linear-gradient(
    135deg,
    var(--accent-dim) 0%,
    var(--bio-teal) 30%,
    var(--bio-violet) 60%,
    var(--bio-emerald) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

/* ---- Organic Wavy Section Dividers ---- */
.mission,
.story {
  border-top: none;
  position: relative;
  margin-top: 2rem;
}

.mission::before,
.story::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  height: 2rem;
  background: inherit;
  clip-path: polygon(
    0% 60%, 4% 50%, 8% 45%, 12% 42%, 16% 44%,
    20% 50%, 24% 58%, 28% 62%, 32% 60%, 36% 55%,
    40% 48%, 44% 42%, 48% 40%, 52% 42%, 56% 48%,
    60% 55%, 64% 58%, 68% 56%, 72% 50%, 76% 44%,
    80% 42%, 84% 45%, 88% 50%, 92% 56%, 96% 58%,
    100% 55%, 100% 100%, 0% 100%
  );
}

.mission::before {
  background: var(--bg-deep);
}

.story::before {
  background: var(--bg-deep);
}

.services {
  position: relative;
  margin-top: 2rem;
}

.services::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  height: 2rem;
  background: var(--bg-surface);
  clip-path: polygon(
    0% 65%, 5% 55%, 10% 48%, 15% 44%, 20% 46%,
    25% 52%, 30% 60%, 35% 64%, 40% 60%, 45% 52%,
    50% 45%, 55% 42%, 60% 44%, 65% 50%, 70% 58%,
    75% 62%, 80% 58%, 85% 50%, 90% 44%, 95% 48%,
    100% 55%, 100% 100%, 0% 100%
  );
}

.cta-section {
  position: relative;
  margin-top: 2rem;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  height: 2rem;
  background: var(--bg-surface);
  clip-path: polygon(
    0% 55%, 6% 48%, 12% 44%, 18% 46%, 24% 52%,
    30% 58%, 36% 55%, 42% 48%, 48% 42%, 54% 44%,
    60% 50%, 66% 56%, 72% 58%, 78% 52%, 84% 45%,
    90% 42%, 96% 48%, 100% 54%, 100% 100%, 0% 100%
  );
}

.values {
  position: relative;
  margin-top: 2rem;
}

.values::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 0;
  right: 0;
  height: 2rem;
  background: var(--bg-surface);
  clip-path: polygon(
    0% 60%, 5% 52%, 10% 46%, 15% 42%, 20% 44%,
    25% 50%, 30% 58%, 35% 62%, 40% 58%, 45% 50%,
    50% 43%, 55% 40%, 60% 42%, 65% 48%, 70% 56%,
    75% 60%, 80% 56%, 85% 48%, 90% 42%, 95% 46%,
    100% 52%, 100% 100%, 0% 100%
  );
}

/* ---- Micro-Interactions ---- */

/* Tags: bioluminescent glow on hover */
.featured__tag {
  transition: all 0.35s var(--ease-out);
}

.featured__tag:hover {
  border-color: var(--bio-teal);
  color: var(--bio-teal);
  box-shadow: 0 0 16px oklch(0.7 0.15 175 / 0.25), inset 0 0 8px oklch(0.7 0.15 175 / 0.08);
}

/* Service items: left accent border + background shift */
.services__item {
  transition: all 0.4s var(--ease-out);
  border-left: 3px solid transparent;
  padding-left: var(--space-sm);
}

.services__item:hover {
  background: oklch(0.14 0.02 230 / 0.5);
  border-left-color: var(--bio-teal);
}

/* Buttons: gradient glow on hover */
.btn--primary {
  position: relative;
  overflow: visible;
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 3rem;
  background: linear-gradient(135deg, var(--bio-teal), var(--bio-violet), var(--bio-emerald));
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.4s var(--ease-out);
}

.btn--primary:hover::after {
  opacity: 0.4;
}

/* Nav CTA: breathing glow */
@keyframes breathe-glow {
  0%, 100% { box-shadow: 0 0 8px oklch(0.6 0.12 155 / 0.15); }
  50%      { box-shadow: 0 0 20px oklch(0.6 0.15 175 / 0.3); }
}

.nav__contact-btn {
  animation: breathe-glow 4s ease-in-out infinite;
}

/* Form inputs: gradient focus line */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom-color: transparent;
  border-image: linear-gradient(90deg, var(--bio-teal), var(--bio-violet), var(--bio-emerald)) 1;
  border-image-slice: 1;
}

/* Values cards: subtle lift */
.values__item {
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out);
  padding-inline: var(--space-sm);
  border-radius: 0.5rem;
}

.values__item:hover {
  transform: translateY(-3px);
  background: oklch(0.14 0.02 230 / 0.3);
}

/* Nav link: gradient underline */
.nav__link::after {
  background: linear-gradient(90deg, var(--bio-teal), var(--bio-violet));
}

/* Phone mockup: animated multi-color glow */
@keyframes mockup-glow {
  0%   { box-shadow: 0 4px 24px oklch(0 0 0 / 0.3), 0 0 40px oklch(0.5 0.15 175 / 0.15); }
  33%  { box-shadow: 0 4px 24px oklch(0 0 0 / 0.3), 0 0 40px oklch(0.5 0.15 280 / 0.15); }
  66%  { box-shadow: 0 4px 24px oklch(0 0 0 / 0.3), 0 0 40px oklch(0.5 0.15 155 / 0.15); }
  100% { box-shadow: 0 4px 24px oklch(0 0 0 / 0.3), 0 0 40px oklch(0.5 0.15 175 / 0.15); }
}

.phone-mockup {
  animation: mockup-glow 6s ease-in-out infinite;
}

/* ---- Section-Aware Mood Shifts ---- */
body[data-section="hero"]      .bg-orb--teal    { opacity: 0.08; }
body[data-section="hero"]      .bg-orb--violet  { opacity: 0.05; }
body[data-section="hero"]      .bg-orb--emerald { opacity: 0.06; }

body[data-section="mission"]   .bg-orb--teal    { opacity: 0.10; }
body[data-section="mission"]   .bg-orb--violet  { opacity: 0.04; }
body[data-section="mission"]   .bg-orb--emerald { opacity: 0.08; }

body[data-section="services"]  .bg-orb--teal    { opacity: 0.06; }
body[data-section="services"]  .bg-orb--violet  { opacity: 0.09; }
body[data-section="services"]  .bg-orb--emerald { opacity: 0.05; }

body[data-section="work"]      .bg-orb--teal    { opacity: 0.05; }
body[data-section="work"]      .bg-orb--violet  { opacity: 0.06; }
body[data-section="work"]      .bg-orb--emerald { opacity: 0.10; }

body[data-section="cta"]       .bg-orb--teal    { opacity: 0.09; }
body[data-section="cta"]       .bg-orb--violet  { opacity: 0.08; }
body[data-section="cta"]       .bg-orb--emerald { opacity: 0.07; }

body[data-section="story"]     .bg-orb--teal    { opacity: 0.07; }
body[data-section="story"]     .bg-orb--violet  { opacity: 0.06; }
body[data-section="story"]     .bg-orb--emerald { opacity: 0.09; }

body[data-section="values"]    .bg-orb--teal    { opacity: 0.05; }
body[data-section="values"]    .bg-orb--violet  { opacity: 0.10; }
body[data-section="values"]    .bg-orb--emerald { opacity: 0.06; }

body[data-section="approach"]  .bg-orb--teal    { opacity: 0.08; }
body[data-section="approach"]  .bg-orb--violet  { opacity: 0.05; }
body[data-section="approach"]  .bg-orb--emerald { opacity: 0.08; }

body[data-section="contact"]   .bg-orb--teal    { opacity: 0.07; }
body[data-section="contact"]   .bg-orb--violet  { opacity: 0.07; }
body[data-section="contact"]   .bg-orb--emerald { opacity: 0.07; }

.bg-orb {
  transition: opacity 1.5s ease;
}

/* ---- Mobile Adjustments ---- */
@media (max-width: 47.99rem) {
  .bg-orb {
    opacity: 0.05;
    filter: blur(100px);
  }

  .bg-orb--teal {
    width: clamp(200px, 50vw, 350px);
    height: clamp(200px, 50vw, 350px);
  }

  .bg-orb--violet {
    width: clamp(180px, 45vw, 300px);
    height: clamp(180px, 45vw, 300px);
  }

  .bg-orb--emerald {
    width: clamp(150px, 40vw, 280px);
    height: clamp(150px, 40vw, 280px);
  }

  .grain-overlay {
    opacity: 0.02;
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .bg-orb {
    animation: none !important;
  }

  .hero__heading,
  .mission__text,
  .not-found__code {
    animation: none !important;
    background: none !important;
    -webkit-text-fill-color: var(--text-primary) !important;
  }

  .phone-mockup {
    animation: none !important;
  }

  .nav__contact-btn {
    animation: none !important;
  }
}
