/* ==========================================================================
   AER — Design tokens
   ========================================================================== */
:root {
  --charcoal: #15130f;
  --charcoal-2: #1e1b15;
  --sand: #ede6d8;
  --sand-2: #e3dac8;
  --ink: #f4efe4;
  --ink-dim: rgba(244, 239, 228, 0.66);
  --dark-text: #1c1912;
  --dark-text-dim: rgba(28, 25, 18, 0.62);
  --accent: #c17f45;
  --accent-light: #d99a63;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--charcoal);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--charcoal);
  color: var(--ink);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

/* Snap container: every full-height section locks on scroll */
main {
  scroll-snap-type: y proximity;
}
.section {
  scroll-snap-align: start;
  position: relative;
}
/* Skip layout/paint/style work for sections off-screen — huge win for
   scroll performance on a long page. First section (hero) is exempt so
   it never has a "reveal" pop-in cost. contain-intrinsic-size keeps
   scrollbar/scroll-snap math stable before a section has ever rendered. */
.section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

/* ==========================================================================
   Grain + custom cursor
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 210;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease;
  opacity: 0;
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-hover { width: 30px; height: 30px; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* ==========================================================================
   Loader
   ========================================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.loader-mark {
  font-size: 15px;
  letter-spacing: 0.5em;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.85;
  animation: loaderPulse 1.3s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}
.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(21, 19, 15, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: rgba(244, 239, 228, 0.08);
}
.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink);
}
.nav-links {
  display: none;
  gap: 36px;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: none; align-items: center; gap: 14px; }
.icon-btn {
  background: none;
  border: none;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease;
}
.icon-btn:hover { color: var(--ink); background: rgba(244, 239, 228, 0.08); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--accent);
  color: var(--charcoal);
  font-size: 9px;
  font-weight: 700;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-burger {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-burger span {
  width: 20px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  z-index: 99;
}
.mobile-menu a {
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.mobile-menu a.btn {
  font-size: 12px;
  color: var(--charcoal);
}
body.nav-open .mobile-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
body.nav-open .nav-burger span:first-child { transform: translateY(3px) rotate(45deg); }
body.nav-open .nav-burger span:last-child { transform: translateY(-3px) rotate(-45deg); }
body.nav-open { overflow: hidden; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-actions { display: inline-flex; }
  .nav-burger { display: none; }
  .mobile-menu { display: none; }
}

/* ==========================================================================
   Buttons / atoms
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--charcoal);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid rgba(244, 239, 228, 0.35);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-small { padding: 10px 22px; }
.btn-large { padding: 19px 44px; font-size: 13px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 600;
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.3s ease;
}
.text-link:hover { opacity: 0.7; }

h1, h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  height: 100vh;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9) contrast(1.05) brightness(0.72);
}
.kenburns { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,19,15,0.55) 0%, rgba(21,19,15,0.35) 35%, rgba(21,19,15,0.85) 100%);
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(21,19,15,0.75) 100%);
}
/* Slow diagonal light sweep — the "sem vídeo" substitute for hero motion.
   Pure transform (translate), GPU-cheap, loops forever. */
.hero-sweep {
  position: absolute;
  inset: -20% -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(193, 127, 69, 0.16) 50%, transparent 60%);
  transform: translateX(-30%);
  animation: heroSweep 9s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes heroSweep {
  0%, 100% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
}
.hero-bg, .hero-content { will-change: transform; }
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 6rem);
  color: var(--ink);
}
.hero-sub {
  margin: 26px auto 0;
  max-width: 480px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--ink-dim);
  line-height: 1.6;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue-line {
  width: 1px;
  height: 44px;
  background: rgba(244, 239, 228, 0.2);
  overflow: hidden;
  position: relative;
}
.scroll-cue-line span {
  position: absolute;
  top: -100%;
  left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  animation: scrollLine 2.1s var(--ease-soft) infinite;
}
@keyframes scrollLine {
  0% { top: -60%; }
  100% { top: 110%; }
}
.scroll-cue-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

/* ==========================================================================
   2. FEATURE (light section)
   ========================================================================== */
.feature {
  min-height: 100vh;
  background: var(--sand);
  color: var(--dark-text);
  display: flex;
  align-items: center;
  padding: 120px 0;
}
.feature-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
.feature-media {
  position: relative;
  perspective: 1000px;
}
.feature-img {
  width: 100%;
  border-radius: 18px;
  will-change: transform;
  filter: saturate(0.92) contrast(1.03) sepia(0.04);
}
.feature-media-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -26px;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(28,25,18,0.28) 0%, transparent 72%);
  filter: blur(4px);
  z-index: -1;
}
.feature-copy h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.feature-text {
  margin-top: 22px;
  max-width: 440px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--dark-text-dim);
}
.feature .eyebrow { color: var(--accent); }
.feature .text-link { color: var(--dark-text); }

@media (min-width: 900px) {
  .feature-inner { grid-template-columns: 1.1fr 1fr; gap: 90px; }
}

/* ==========================================================================
   3. SPECS
   ========================================================================== */
.specs {
  min-height: 100vh;
  background: var(--charcoal-2);
  display: flex;
  align-items: center;
  padding: 120px 0;
}
.specs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: grid;
  gap: 56px;
  align-items: center;
}
.specs-media { position: relative; }
.specs-img { width: 100%; border-radius: 18px; filter: saturate(0.85) contrast(1.08) sepia(0.06); }
.specs-wave {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -8%;
  width: 88%;
  height: auto;
  opacity: 0.9;
}
.specs-wave path {
  fill: none;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.8s var(--ease-soft);
}
.specs-wave.is-drawn path { stroke-dashoffset: 0; }

.spec-huge {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  line-height: 0.85;
}
.spec-huge span {
  font-size: clamp(4rem, 11vw, 8rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.spec-huge small {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.spec-huge-label {
  margin: 10px 0 48px;
  color: var(--ink-dim);
  font-size: 15px;
  letter-spacing: 0.04em;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(244,239,228,0.12);
  padding-top: 32px;
}
.spec-item { display: flex; flex-direction: column; gap: 8px; }
.spec-num { font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 700; color: var(--ink); }
.spec-label { font-size: 12px; color: var(--ink-dim); letter-spacing: 0.02em; }

@media (min-width: 900px) {
  .specs-inner { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   1.5 PRODUCT STAGE — the product as centerpiece, rotating on scroll +
   reacting to the mouse. Pure CSS 3D (perspective + rotateX/rotateY),
   driven entirely by transform — no WebGL, nothing to fail silently.
   The outer section is tall (300vh) purely to give scroll room for the
   rotation to play out while the inner stage stays pinned via `sticky`.
   ========================================================================== */
.product-stage {
  height: 300vh;
  background: var(--charcoal);
}
.product-stage-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #201c15 0%, var(--charcoal) 70%);
}
.product-stage .eyebrow { margin-bottom: 8px; }
.product-3d {
  position: relative;
  width: min(78vw, 620px);
  aspect-ratio: 1 / 1;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}
.product-3d-img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  border-radius: 18px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  filter: drop-shadow(0 50px 60px rgba(0, 0, 0, 0.55)) saturate(0.9) contrast(1.05) sepia(0.04);
  will-change: transform;
  /* Feather the photo's rectangular edge so it reads as "the object in
     space" rather than "a framed card" while it rotates. */
  mask-image: radial-gradient(ellipse 62% 62% at center, #000 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at center, #000 62%, transparent 100%);
}
.product-3d-shadow {
  position: absolute;
  bottom: 4%;
  left: 12%;
  right: 12%;
  height: 34px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), transparent 72%);
  filter: blur(6px);
  will-change: transform;
}
.product-stage-hint {
  margin-top: 26px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0.65;
}
@media (hover: none), (pointer: coarse) {
  .product-stage-hint { display: none; }
}

/* ==========================================================================
   4. VARIANTS
   ========================================================================== */
.variants {
  min-height: 100vh;
  background: var(--sand-2);
  color: var(--dark-text);
  display: flex;
  align-items: center;
  padding: 110px 0;
}
.variants-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.variants h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.variant-stage {
  position: relative;
  margin: 56px auto 40px;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  perspective: 1000px;
}
.variant-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  filter: drop-shadow(0 30px 40px rgba(28,25,18,0.22));
}
.variant-img.is-active { opacity: 1; transform: scale(1); }
.variant-swatches {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(28,25,18,0.18);
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dark-text-dim);
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.swatch.is-active, .swatch:hover { border-color: var(--dark-text); color: var(--dark-text); background: rgba(28,25,18,0.05); }
.swatch-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.swatch-charcoal { background: var(--charcoal); }
.swatch-sand { background: var(--sand); border: 1px solid rgba(28,25,18,0.25); }

/* ==========================================================================
   5. GALLERY — fullscreen snap slides
   ========================================================================== */
.gallery-slide {
  height: 100vh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.06) sepia(0.06);
  transform: scale(1.02);
}
.gallery-img--top { object-position: center 15%; }
.gallery-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21,19,15,0.15) 0%, rgba(21,19,15,0.05) 40%, rgba(21,19,15,0.75) 100%);
}
.gallery-caption {
  position: absolute;
  left: clamp(20px, 5vw, 56px);
  bottom: clamp(28px, 6vw, 56px);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  max-width: 560px;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   6. CTA
   ========================================================================== */
.cta {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, #241f18 0%, var(--charcoal) 65%);
  padding: 100px 24px;
}
.cta h2 { font-size: clamp(2.4rem, 7vw, 5rem); color: var(--ink); }
.cta-sub {
  margin: 24px auto 44px;
  max-width: 440px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(244,239,228,0.08);
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { font-size: 16px; font-weight: 700; letter-spacing: 0.16em; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a, .footer-socials a {
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}
.footer-links a:hover, .footer-socials a:hover { color: var(--ink); }
.footer-socials { display: flex; gap: 18px; }
.footer-legal {
  max-width: 1280px;
  margin: 28px auto 0;
  font-size: 11px;
  color: rgba(244,239,228,0.35);
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: 999px;
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   Lazy image fade-in
   ========================================================================== */
.lazy { opacity: 0; transition: opacity 0.8s var(--ease); }
.lazy.is-loaded { opacity: 1; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  main { scroll-snap-type: none; }
  .kenburns { animation: none; }
  .reveal-up { transition-duration: 0.01ms; }
  .scroll-cue-line span { animation: none; }
  .hero-sweep { display: none; }
  .product-stage { height: auto; }
  .product-stage-sticky { position: relative; height: auto; padding: 100px 24px; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
