/* Maruma premium layer — visuals + GSAP coordination */

:root {
  --premium-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --premium-shadow: 0 28px 80px rgba(13, 27, 18, 0.1);
  --premium-shadow-hover: 0 36px 100px rgba(13, 27, 18, 0.14);
}

/* Keep animated blocks hidden until GSAP runs — nav/hero shell stays visible */
html.gsap-pending .reveal {
  opacity: 0 !important;
  transform: translateY(24px) !important;
  transition: none !important;
}

html.gsap-pending .section > .container,
html.gsap-pending .carousel-section > .container {
  opacity: 0 !important;
  transform: translateY(24px) !important;
  transition: none !important;
}

html.gsap-ready .reveal,
html.gsap-ready .section > .container,
html.gsap-ready .carousel-section > .container {
  transition: none !important;
}

html.gsap-ready .reveal.in-view,
html.gsap-ready .section.section-in > .container,
html.gsap-ready .carousel-section.section-in > .container {
  opacity: inherit;
  transform: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html.gsap-pending .reveal,
  html.gsap-pending .section > .container,
  html.gsap-pending .carousel-section > .container {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Subtle film grain */
.site::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Hero — cinematic spacing */
.hero {
  position: relative;
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
  z-index: 2;
}

.hero h1 {
  letter-spacing: -0.038em;
  line-height: 1.02;
}

.hero .eyebrow {
  letter-spacing: 0.12em;
}

html.gsap-ready .hero-media {
  animation: none;
  will-change: transform;
}

.hero-media img {
  transform-origin: center center;
  will-change: transform;
}

/* Section headers — editorial rhythm */
.section-header h2 {
  letter-spacing: -0.034em;
  line-height: 1.06;
}

.section-header .eyebrow {
  position: relative;
  display: inline-block;
  padding-left: 14px;
}

.section-header .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-green);
  transform: translateY(-50%);
}

/* Premium cards — highlight carousel excluded (own rules below) */
.card,
.step {
  transition: box-shadow 0.5s var(--premium-ease), border-color 0.5s var(--premium-ease);
}

html.gsap-ready .card:hover {
  box-shadow: var(--premium-shadow-hover);
}

.card .image-frame,
.highlight-image,
.wear-feature .image-frame,
.solution-large .image-frame {
  overflow: hidden;
}

.card .image-frame img,
.highlight-image img,
.wear-feature .image-frame img,
.solution-large .image-frame img {
  transition: transform 0.9s var(--premium-ease);
  will-change: transform;
}

html.gsap-ready .card:hover .image-frame img,
html.gsap-ready .highlight-card:hover .highlight-image img,
html.gsap-ready .wear-feature:hover .image-frame img,
html.gsap-ready .solution-large:hover .image-frame img {
  transform: scale(1.04);
}

/* Carousel — clean cards, no edge fades over text */
.carousel-window {
  position: relative;
}

.highlight-card {
  transform-origin: center center;
  padding: 0 4px 12px;
  border-radius: 10px;
  transition:
    background 0.35s var(--premium-ease),
    box-shadow 0.35s var(--premium-ease),
    transform 0.35s var(--premium-ease);
}

.highlight-card h3,
.highlight-card p,
.highlight-card .text-link {
  padding-left: 12px;
  padding-right: 12px;
}

html.gsap-ready .highlight-card:hover {
  background: #fff;
  box-shadow: 0 16px 48px rgba(13, 27, 18, 0.08);
  transform: translateY(-3px);
}

/* Quote — Awwwards-style statement */
.quote-section {
  position: relative;
  overflow: clip;
  min-height: clamp(320px, 50vh, 520px);
  display: flex;
  align-items: center;
}

.quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(79, 154, 95, 0.25), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
}

.quote-section .container {
  position: relative;
  z-index: 1;
}

.quote-section .quote {
  font-size: clamp(36px, 5.2vw, 72px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.quote-section .large-copy {
  max-width: 640px;
}

/* Process — premium steps */
.process {
  border-radius: 10px;
  box-shadow: var(--premium-shadow);
}

.step {
  position: relative;
  transition: background 0.4s var(--premium-ease);
}

html.gsap-ready .step:hover {
  background: var(--surface-soft);
}

.step-number {
  color: var(--primary-green);
}

.process-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
  transform-origin: left center;
  z-index: 2;
  pointer-events: none;
}

/* Pills — stagger-ready */
.audience .pill {
  transition: transform 0.35s var(--premium-ease), box-shadow 0.35s var(--premium-ease);
}

html.gsap-ready .audience .pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 105, 57, 0.12);
}

/* FAQ — smooth open */
.faq-item {
  transition: border-color 0.3s var(--premium-ease);
}

.faq-item[open] {
  border-color: var(--line-strong);
}

/* Contact panel polish */
.contact-panel {
  box-shadow: var(--premium-shadow);
}

.map-card {
  overflow: hidden;
  border-radius: 8px;
}

/* Buttons — magnetic-ready */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--premium-ease);
  pointer-events: none;
}

html.gsap-ready .btn:hover::after {
  transform: translateX(120%);
}

/* Header — refined scroll state */
.nav-wrap.is-scrolled {
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(13, 27, 18, 0.06);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
  z-index: 10000;
  pointer-events: none;
}

/* Reduced motion — disable decorative motion */
@media (prefers-reduced-motion: reduce) {
  .site::before {
    display: none;
  }

  html.gsap-ready .card:hover .image-frame img,
  html.gsap-ready .highlight-card:hover .highlight-image img {
    transform: none;
  }

  .scroll-progress {
    display: none;
  }
}
