:root {
  /* Pastel green palette */
  --black: #090807;
  --off-white: #fff6ea;
  --muted: #ded4c3;
  --teal: #a8d5ba;
  --green: #a8d5ba;
  --chameleon: #a8d5ba;
  --chameleon-soft: rgba(168,213,186,.28);
  --chameleon-glow: rgba(168,213,186,.58);
  --azulejo-cobalt: #a8d5ba;
  --azulejo-tile: #fff6ea;
  --azulejo-clay: #a8d5ba;
  --container: 1440px;
  --side: clamp(16px, 3vw, 40px);
  --font: aktiv-grotesk, Favorit, Inter, Helvetica Neue, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body, main {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
  margin: 0;
}
body {
  font-family: var(--font);
  background: #d9d9d9;
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: 72px;
  padding: 20px var(--side);
  padding-top: max(20px, env(safe-area-inset-top));
  padding-left: max(var(--side), env(safe-area-inset-left));
  padding-right: max(var(--side), env(safe-area-inset-right));
  color: var(--black);
  transition: color 800ms ease, box-shadow 800ms ease;
}
.brand-group {
  display: flex;
  align-items: center;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('assets/bg_01@0,5x.webp') center/cover no-repeat;
  opacity: 0;
  transition: opacity 800ms ease;
  z-index: -2;
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0.70));
  opacity: 0;
  transition: opacity 800ms ease;
  z-index: -1;
  pointer-events: none;
}
.site-header.is-scrolled::before {
  opacity: 1;
}
.site-header.is-scrolled::after {
  opacity: 1;
}
.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(32,49,44,.14);
}
.brand-logo {
  max-width: 48px;
  max-height: 48px;
  width: auto;
  height: auto;
  margin-right: 12px;
}
.brand {
  font-size: clamp(28px, 3vw, 41px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--black);
}
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  font-size: clamp(18px, 2.2vw, 33.28px);
  font-weight: 300;
  line-height: 1;
  padding: 8px 16px;
}
.menu-toggle { display: none; }

.section-dark { background: #d9d9d9; color: var(--black); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .62fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  padding: 144px var(--side) 96px;
  isolation: isolate;
  background: #d9d9d9;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('assets/bg_02.jpg') center/cover no-repeat;
  opacity: 0.65;
}
.hero-content { position: relative; max-width: 980px; z-index: 3; }
.eyebrow {
  margin: 0 0 24px;
  color: var(--black);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .02em;
}
.eyebrow.dark { color: var(--chameleon); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 1120px;
  margin-bottom: 32px;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.05em;
  color: var(--black);
}
h2 {
  font-size: clamp(24px, 3vw, 28.8px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -.025em;
}
h3 {
  font-size: 20.8px;
  font-weight: 300;
  line-height: 1.5;
}
p { font-size: 16px; line-height: 1.65; }
.hero-copy {
  max-width: 670px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(0,0,0,.82);
  margin-bottom: 40px;
}
.hero-actions, .input-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 27px;
  font-size: 20.8px;
  font-weight: 400;
  border: 0;
  cursor: pointer;
  transition: background 220ms ease, border 220ms ease, transform 220ms ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-primary { background: url('assets/bg_01@0,5x.webp') center/cover no-repeat; color: #fff; }
.button-primary:hover { background: url('assets/bg_01@0,5x.webp') center/cover no-repeat; color: #fff; }
.button-secondary { color: var(--off-white); border: 1px solid var(--off-white); background: transparent; }
.button-secondary:hover { background: rgba(247,247,247,.1); color: #fff; border-color: #fff; }

.grain {
  position: fixed; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 2000 2000' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.15' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-size: 2000px 2000px;
  mix-blend-mode: overlay;
}

.hero-video {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
  background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.intro, .products, .studio, .newsletter, .footer { padding: 96px var(--side); }
.intro-grid, .section-heading, .product-grid, .studio-grid, .newsletter-inner { max-width: var(--container); margin: 0 auto; }
.intro-grid { 
  display: grid; 
  grid-template-columns: 1.2fr 1fr 1fr; 
  gap: 40px; 
  align-items: start; 
  background: transparent;
}
.intro-grid h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; }
.section-heading { margin-bottom: 40px; }
.section-heading.compact { margin-bottom: 24px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  transition: transform 240ms ease;
}
.product-card:hover {
  transform: translateY(-4px);
}
.product-art { min-height: 300px; position: relative; overflow: hidden; }
.product-art video, .product-art img { width: 100%; height: 100%; object-fit: contain; }
.art-strings { background: #000; }
.art-field { background: #000; }
.art-metal { background: #000; }
.product-meta {
  padding: 24px;
}
.badge { display: inline-block; padding: 4px 12px; border-radius: 16px; border: 1px solid var(--chameleon); color: var(--chameleon); background: color-mix(in srgb, var(--chameleon) 12%, transparent); font-size: 14px; margin-bottom: 24px; }
.product-meta a { color: var(--off-white); font-size: 16px; }

.feature-list { list-style: none; padding: 0; margin: 32px 0 0; }
.feature-list li { border-top: 1px solid rgba(247,247,247,.24); padding: 16px 0; color: rgba(247,247,247,.82); }
.studio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid color-mix(in srgb, var(--chameleon) 28%, var(--muted) 72%); }
.studio-grid > div { padding: 32px 0 0; }
.large-number { display: block; color: var(--chameleon); font-size: 33.28px; font-weight: 300; margin-bottom: 24px; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.signup label { display: block; margin-bottom: 8px; font-size: 19.2px; }
input { width: min(100%, 360px); min-height: 53.5px; border: 1px solid var(--black); border-radius: 26.75px; background: transparent; color: var(--black); padding: 16px 20px; font: 300 19.2px/30.72px var(--font); outline: none; }
input::placeholder { color: rgba(0,0,0,.5); }
input:focus { border-color: var(--teal); box-shadow: 0 0 8px rgba(0,0,0,.2); }
.form-success { display: none; color: var(--black); margin-top: 16px; }
.form-error { display: none; color: #b00020; margin-top: 16px; }
.signup.submitted .form-success { display: block; }
.signup.submitted label,
.signup.submitted .input-row { display: none; }
.signup.errored .form-error { display: block; }
iframe[name="phplist-sink"] { position: absolute; width: 0; height: 0; border: 0; visibility: hidden; }
.footer { width: 100%; display: flex; justify-content: space-between; gap: 32px; border-top: 1px solid color-mix(in srgb, var(--chameleon) 28%, var(--muted) 72%); padding-bottom: max(96px, calc(40px + env(safe-area-inset-bottom))); }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: start; }
.footer-brand { color: var(--black); }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: transparent; border: 0; }
  .menu-toggle span { width: 24px; height: 1px; background: var(--off-white); }
  .nav { position: fixed; inset: 0 0 auto auto; width: min(100%, 360px); min-height: 100svh; padding: 96px 24px 24px; flex-direction: column; align-items: stretch; background: #000; transform: translateX(100%); transition: transform 240ms ease; }
  .nav.is-open { transform: translateX(0); }
  .nav a { font-size: 33.28px; padding: 16px 0; }
  .intro-grid, .product-grid, .studio-grid, .newsletter-inner { grid-template-columns: 1fr; }
  .hero, .intro, .products, .studio, .newsletter { padding-top: 72px; padding-bottom: 72px; }
  .footer { flex-direction: column; }
}

@media (max-width: 640px) {
  .hero { padding-top: 120px; padding-bottom: 72px; }
  .button, .input-row input, .input-row button { width: 100%; }
  .product-art { min-height: 220px; }
}

.app-product {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  padding: 96px var(--side);
  overflow: hidden;
}
.app-copy {
  max-width: 680px;
  justify-self: end;
}
.app-copy h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -.05em;
  margin-bottom: 32px;
}
.app-copy p {
  color: rgba(247,247,247,.82);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  line-height: 1.55;
}
.app-cta { margin-top: 32px; }
.app-screen-wrap {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
}
.app-screen-wrap::before {
  content: "";
  position: absolute;
  width: min(72vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--chameleon-glow), rgba(170,204,204,.08) 38%, transparent 68%);
  filter: blur(16px);
}
.app-screen {
  position: relative;
  width: min(100%, 430px);
  max-height: 760px;
  object-fit: contain;
  border: 1px solid rgba(247,247,247,.16);
  box-shadow: 0 16px 48px rgba(0,0,0,.24);
  background: #000;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 120px;
  }
}

@media (max-width: 900px) {
  .app-product { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 72px; }
  .app-copy { justify-self: start; }
  .app-screen-wrap { min-height: auto; }
  .app-screen { width: min(100%, 360px); }
}

/* Overall film-grain aesthetic */
body::before {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 99999;
  pointer-events: none;
  opacity: .115;
  mix-blend-mode: screen;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: paleFieldsGrain 1.8s steps(4) infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: none;
}

@keyframes paleFieldsGrain {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-2%, 1%, 0); }
  50% { transform: translate3d(1%, -2%, 0); }
  75% { transform: translate3d(2%, 2%, 0); }
  100% { transform: translate3d(-1%, 0, 0); }
}

.hero,
.product-art,
.app-screen-wrap,
.newsletter {
  isolation: isolate;
}

.product-art::before,
.app-screen-wrap::after,
.newsletter::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    radial-gradient(circle at 5% 12%, rgba(170,204,204,.12), transparent 0.5px),
    radial-gradient(circle at 10% 22%, rgba(255,255,255,.11), transparent 0.5px),
    radial-gradient(circle at 11% 33%, var(--chameleon-soft), transparent 0.5px);
  background-size: 19px 19px, 31px 31px, 43px 43px;
}

.app-screen {
  filter: contrast(1.04) saturate(.92);
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .chameleon-wash,
  .intro::before,
  .products::before,
  .studio::before,
  .footer::before { animation: none; }
}

/* Scroll-reactive chameleon background wash */
body::marker { color: var(--chameleon); }
.chameleon-wash {
  display: none;
}
.app-product {
  background:
    linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.70)),
    url('assets/bg_01@0,5x.webp') center/cover no-repeat;
}
.newsletter {
  background:
    linear-gradient(rgba(0,0,0,0.70), rgba(0,0,0,0.70)),
    url('assets/bg_03@0,5x.webp') bottom center/cover no-repeat;
}


/* Chameleon treatment for former white moments */
.intro,
.products,
.studio,
.footer {
  position: relative;
  overflow: hidden;
}
.intro {
  background: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url('assets/bg_01@0,5x.webp') center/cover no-repeat !important;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.products::before,
.studio::before,
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent, color-mix(in srgb, var(--chameleon) 11%, transparent) 48%, transparent),
    radial-gradient(circle at var(--chameleon-x, 70%) var(--chameleon-y, 22%), color-mix(in srgb, var(--teal) 24%, transparent), transparent 36%);
  opacity: .72;
}

.products > *,
.studio > *,
.footer > * {
  position: relative;
  z-index: 1;
}

.section-light:not(.intro):not(.studio),
.section-light-alt:not(.products):not(.footer) {
  color: var(--off-white);
  background: var(--black);
}
.products,
.studio,
.footer {
  color: var(--off-white);
}
.footer {
  background:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url('assets/bg_04@0,5x.webp') bottom center/cover no-repeat !important;
}
.products {
  background:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url('assets/bg_02@0,5x.webp') center/cover no-repeat !important;
}
.studio {
  background:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.50)),
    url('assets/bg_01@0,5x.webp') bottom center/cover no-repeat !important;
}
.intro {
  color: var(--off-white);
}

.section-light p,
.section-light-alt p,
.intro p,
.products p,
.studio p,
.footer p {
  color: rgba(247,247,247,.78);
}

/* Parallax (fixed) backgrounds on desktop only — fixed is unreliable/unsupported on mobile */
@media (min-width: 900px) {
  .intro,
  .products,
  .studio,
  .footer,
  .app-product,
  .newsletter {
    background-attachment: fixed !important;
  }
}

.eyebrow.dark,
.large-number,
.footer-brand {
  color: color-mix(in srgb, var(--azulejo-cobalt) 72%, var(--azulejo-tile) 28%);
}

.product-card {
  color: var(--off-white);
}

.product-card:hover {
  color: var(--off-white);
}

.product-meta a,
.footer a {
  color: var(--off-white);
}

.badge {
  color: color-mix(in srgb, var(--azulejo-tile) 70%, var(--azulejo-clay) 30%);
  border-color: color-mix(in srgb, var(--azulejo-clay) 62%, var(--teal) 38%);
  background: color-mix(in srgb, var(--azulejo-clay) 22%, transparent);
}

.studio-grid,
.footer {
  border-top-color: color-mix(in srgb, var(--azulejo-cobalt) 62%, rgba(244,239,227,.14) 38%);
}

.intro::before,
.products::before,
.studio::before,
.footer::before {
  display: none;
}

@keyframes colorPulse {
  0% {
    filter: saturate(.92) brightness(.86) hue-rotate(-4deg);
    transform: scale(1);
  }
  50% {
    filter: saturate(1.22) brightness(1.06) hue-rotate(5deg);
    transform: scale(1.025);
  }
  100% {
    filter: saturate(1.05) brightness(.96) hue-rotate(-2deg);
    transform: scale(1.045);
  }
}

@keyframes colorPulseSoft {
  0% {
    filter: saturate(.9) brightness(.88);
    opacity: .74;
  }
  50% {
    filter: saturate(1.18) brightness(1.04);
    opacity: .96;
  }
  100% {
    filter: saturate(1.02) brightness(.94);
    opacity: .84;
  }
}
