/* ========================================
   TERPWOODS™ Landing Page — Cinematic Edition
   Version: 3.1 | 2026-06-02
   Jeeter hero + Apple scroll + Strain showcase
   v3.1: mobile UX + perf (visible mobile CTA, reduced-motion,
   touch tuning, safe-area, lighter blur, reveal fallback)
   ======================================== */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --accent: #AEEBFF;
  --accent-dim: rgba(174, 235, 255, 0.12);
  --accent-glow: rgba(174, 235, 255, 0.4);
  --gray: #8a8a8a;
  --gray-dark: #111111;
  --gray-border: #1e1e1e;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--black); color: var(--white); line-height: 1.5; overflow-x: hidden; }
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* --- PAGE LOADER --- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 2rem; }
.loader-counter { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; letter-spacing: -0.04em; color: var(--white); line-height: 1; margin-bottom: 2rem; font-variant-numeric: tabular-nums; }
.loader-bar { width: 200px; height: 2px; background: var(--gray-border); border-radius: 2px; overflow: hidden; margin: 0 auto; }
.loader-bar-fill { width: 0%; height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.05s linear; }

/* --- PARTICLE CANVAS --- */
#particleCanvas { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

/* --- TYPOGRAPHY --- */
.section-eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.section-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 1.25rem; }
.section-sub { font-size: 1.05rem; color: var(--gray); line-height: 1.6; max-width: 480px; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header .section-sub { margin: 0 auto; }

/* --- NAV --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 2rem; opacity: 0; transition: background 0.4s, backdrop-filter 0.4s, opacity 0.6s; }
.nav.visible { opacity: 1; }
.nav.scrolled { background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--gray-border); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.18em; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-menu { background: none; border: none; cursor: pointer; width: 36px; height: 36px; position: relative; z-index: 101; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-menu span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.2s; transform-origin: center; }
.nav-menu.open .line-top { transform: translateY(6.5px) rotate(45deg); }
.nav-menu.open .line-mid { opacity: 0; }
.nav-menu.open .line-bot { transform: translateY(-6.5px) rotate(-45deg); }
.nav-cta { background: var(--white); color: var(--black); padding: 0.5rem 1.4rem; border-radius: 100px; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.03em; transition: opacity 0.2s; }
.nav-cta:hover { opacity: 0.85; }

/* --- SLIDE MENU --- */
.slide-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(30px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.slide-menu.open { opacity: 1; visibility: visible; }
.slide-menu-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.slide-link { font-size: 2rem; font-weight: 600; color: var(--gray); transition: color 0.2s; letter-spacing: -0.01em; }
.slide-link:hover { color: var(--white); }

/* --- HERO --- */
.hero { position: relative; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-fog { position: absolute; width: 150%; height: 150%; top: -25%; left: -25%; opacity: 0.3; }
.fog-1 { background: radial-gradient(ellipse at 30% 50%, rgba(174, 235, 255, 0.08) 0%, transparent 60%); animation: fogDrift1 12s ease-in-out infinite alternate; }
.fog-2 { background: radial-gradient(ellipse at 70% 60%, rgba(174, 235, 255, 0.06) 0%, transparent 50%); animation: fogDrift2 15s ease-in-out infinite alternate; }
@keyframes fogDrift1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, -20px) scale(1.05); } }
@keyframes fogDrift2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-30px, 15px) scale(1.08); } }
.hero-radial { position: absolute; inset: 0; background: radial-gradient(ellipse at center 60%, rgba(174, 235, 255, 0.06) 0%, transparent 50%); }

.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

.hero-product-stage { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; }
.hero-glow-ring { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%); animation: glowPulse 4s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.15); opacity: 0.8; } }
.hero-glow-floor { position: absolute; bottom: -60px; width: 500px; height: 120px; background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%); filter: blur(20px); opacity: 0.5; }
.hero-device { height: 65vh; max-height: 600px; width: auto; object-fit: contain; position: relative; z-index: 3; filter: drop-shadow(0 0 40px rgba(174, 235, 255, 0.15)); opacity: 0; transform: scale(0.85); }

.hero-overlay-text { position: absolute; bottom: 12%; left: 0; right: 0; text-align: center; z-index: 5; opacity: 0; }
.hero-eyebrow { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.35em; color: var(--accent); margin-bottom: 0.75rem; }
.hero-title { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }

.scroll-down { position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 1rem; opacity: 0; }
.scroll-text { writing-mode: vertical-rl; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.3em; color: var(--gray); }
.scroll-arrow { width: 16px; height: 16px; color: var(--gray); animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(6px); opacity: 1; } }

/* --- TAGLINE --- */
.tagline-section { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; text-align: center; position: relative; z-index: 2; }
.tagline-text { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; max-width: 800px; }
.tag-word { opacity: 0.1; transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.tag-word.revealed { opacity: 1; }
.tagline-sub { font-size: 1.25rem; color: var(--accent); margin-top: 2rem; opacity: 0; transition: opacity 1s 0.3s; }
.tagline-sub.revealed { opacity: 1; }

/* --- STRAIN CAROUSEL --- */
.strains-section { padding: 4rem 2rem; position: relative; z-index: 2; overflow: hidden; }
.strains-rosin { border-top: 1px solid var(--gray-border); }

.strain-carousel { max-width: 1200px; margin: 0 auto; position: relative; }
.strain-track { display: flex; gap: 2rem; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }

.strain-slide { flex: 0 0 400px; text-align: center; cursor: pointer; transition: transform 0.4s, opacity 0.4s; }
.strain-slide:hover { transform: translateY(-8px); }

.strain-img-wrap { position: relative; height: 700px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.strain-glow { position: absolute; width: 350px; height: 350px; border-radius: 50%; background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%); filter: blur(40px); opacity: 0; transition: opacity 0.5s; }
.strain-slide:hover .strain-glow { opacity: 1; }

.strain-img { height: 650px; width: auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); transition: filter 0.4s; }
.strain-slide:hover .strain-img { filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.7)) brightness(1.05); }

.strain-info { padding: 0 0.5rem; }
.strain-desc { font-size: 0.8rem; color: var(--gray); line-height: 1.6; margin-top: 0.6rem; }
.strain-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.strain-type { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 100px; display: inline-block; }
.type-sativa { background: rgba(129, 199, 132, 0.15); color: #81C784; }
.type-hybrid { background: rgba(255, 213, 79, 0.15); color: #FFD54F; }
.type-indica { background: rgba(149, 117, 205, 0.15); color: #9575CD; }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gray-border); background: var(--gray-dark); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.carousel-btn:hover { border-color: var(--accent); background: rgba(174, 235, 255, 0.05); }
.carousel-btn svg { width: 18px; height: 18px; color: var(--white); }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-border); transition: background 0.3s, transform 0.3s; cursor: pointer; border: none; }
.carousel-dot.active { background: var(--accent); transform: scale(1.3); }

/* --- ROSIN SHOWCASE --- */
.rosin-showcase { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 3rem; align-items: center; }
.rosin-card { text-align: center; }
.rosin-device-wrap { position: relative; display: flex; align-items: center; justify-content: center; height: 420px; margin-bottom: 1.5rem; }
.rosin-device { height: 380px; width: auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.rosin-card:hover .rosin-device { transform: scale(1.03) translateY(-5px); }
.rosin-card:hover .strain-glow { opacity: 1; }
.rosin-info { padding: 0 1rem; }
.rosin-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.6; margin-top: 0.75rem; }
.rosin-divider { width: 1px; height: 300px; background: linear-gradient(to bottom, transparent, var(--gray-border), transparent); }

/* --- ROTATION --- */
.rotation-section { height: 200vh; position: relative; z-index: 2; }
.rotation-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; }
.rotation-text { text-align: center; margin-bottom: 2rem; }
.rotation-eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.25em; color: var(--accent); margin-bottom: 0.75rem; }
.rotation-title { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; }
.rotation-canvas { position: relative; width: 300px; height: 50vh; max-height: 500px; }
.rotation-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.12s; }
.rotation-frame.active { opacity: 1; }

/* --- MODES --- */
.modes-section { padding: 4rem 2rem; position: relative; z-index: 2; }
.modes-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.mode-card { background: var(--gray-dark); border: 1px solid var(--gray-border); border-radius: 24px; padding: 3.5rem 2rem 2.5rem; text-align: center; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; position: relative; overflow: hidden; }
.mode-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center top, var(--accent-dim), transparent 60%); opacity: 0; transition: opacity 0.3s; }
.mode-card:hover { border-color: rgba(174, 235, 255, 0.3); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.mode-card:hover::before { opacity: 1; }
.mode-led { width: 14px; height: 14px; border-radius: 50%; background: var(--led-color); margin: 0 auto 1.5rem; box-shadow: 0 0 12px var(--led-color), 0 0 24px var(--led-color); animation: ledPulse 3s ease-in-out infinite; position: relative; }
@keyframes ledPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.mode-name { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: 0.02em; position: relative; }
.mode-desc { font-size: 0.95rem; color: var(--gray); line-height: 1.6; position: relative; margin-bottom: 1rem; }
.mode-temp { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); position: relative; }
.modes-controls { display: flex; justify-content: center; gap: 2.5rem; margin-top: 3rem; }
.control-item { font-size: 0.8rem; color: var(--gray); }
.control-key { display: inline-block; background: var(--gray-dark); border: 1px solid var(--gray-border); border-radius: 6px; padding: 0.15rem 0.5rem; font-weight: 700; color: var(--white); font-size: 0.7rem; margin-right: 0.35rem; }

/* --- FEATURES --- */
.features-section { padding: 4rem 2rem; position: relative; z-index: 2; }
.features-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature-card { padding: 2.5rem; border: 1px solid var(--gray-border); border-radius: 20px; transition: border-color 0.3s, transform 0.3s; background: var(--gray-dark); position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0; transition: opacity 0.3s; }
.feature-card:hover { border-color: rgba(174, 235, 255, 0.2); transform: translateY(-2px); }
.feature-card:hover::before { opacity: 1; }
.feature-number { font-size: 0.7rem; font-weight: 800; color: var(--accent); margin-bottom: 1.25rem; letter-spacing: 0.12em; }
.feature-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-desc { font-size: 0.88rem; color: var(--gray); line-height: 1.7; }

/* --- TERP METER --- */
.meter-section { padding: 4rem 2rem; position: relative; z-index: 2; }
.meter-content { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.meter-visual { display: flex; flex-direction: column; align-items: center; }
.meter-bar { width: 60px; height: 280px; background: var(--gray-dark); border: 1px solid var(--gray-border); border-radius: 30px; position: relative; overflow: hidden; display: flex; flex-direction: column-reverse; }
.meter-fill { width: 100%; height: 0%; background: linear-gradient(to top, var(--accent), #7DD3FC, #38BDF8); border-radius: 0 0 29px 29px; position: relative; transition: height 0.1s; }
.meter-glow { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 40px; height: 20px; background: var(--accent); border-radius: 50%; filter: blur(10px); opacity: 0.6; }
.meter-labels { position: absolute; left: calc(100% + 16px); top: 0; bottom: 0; display: flex; flex-direction: column-reverse; justify-content: space-between; padding: 12px 0; }
.meter-labels span { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gray); white-space: nowrap; }
.meter-label { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.25em; color: var(--accent); margin-top: 1.5rem; }
.meter-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.5rem; }
.meter-list { list-style: none; margin-bottom: 1.5rem; }
.meter-list li { font-size: 0.92rem; color: var(--gray); padding: 0.4rem 0 0.4rem 1.25rem; position: relative; }
.meter-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
.meter-tip { font-size: 0.82rem; color: var(--gray); font-style: italic; }
.meter-tip strong { color: var(--accent); font-style: normal; }

/* --- PRODUCT SHOWCASE --- */
.product-section { padding: 4rem 2rem; position: relative; z-index: 2; }
.product-showcase { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.product-color { text-align: center; }
.product-copy { padding: 0 1rem; }
.product-badge { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(174, 235, 255, 0.3); padding: 0.4rem 1.2rem; border-radius: 100px; margin-bottom: 1.5rem; }
.product-copy-line { font-size: 1.35rem; color: #c0c0c0; line-height: 1.7; margin-bottom: 0.3rem; }
.product-copy-line.faded { margin-top: 1rem; color: #999; }
.product-copy-accent { font-size: 1.4rem; font-weight: 700; color: var(--white); margin-top: 1.5rem; }
.product-img-wrap { margin-bottom: 1.5rem; }
.product-duo-img { max-height: 400px; width: 100%; object-fit: contain; margin: 0 auto; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); }
.product-color:hover .product-duo-img { transform: scale(1.03); }

/* --- PHILOSOPHY --- */
.philosophy-section { padding: 4rem 2rem; text-align: center; position: relative; z-index: 2; }
.philosophy-content { max-width: 600px; margin: 0 auto; }
.philosophy-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 1.5rem; }
.philosophy-text { font-size: 1.05rem; color: var(--gray); line-height: 1.7; margin-bottom: 2rem; }
.philosophy-powered { font-size: 0.82rem; color: var(--accent); }
.philosophy-powered strong { color: var(--white); }

/* --- TERPCYCLE --- */
.terpcycle-section { padding: 3rem 2rem; text-align: center; border-top: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border); position: relative; z-index: 2; }
.terpcycle-content { max-width: 500px; margin: 0 auto; }
.terpcycle-icon { width: 64px; height: 64px; margin: 0 auto 1.5rem; color: var(--accent); }
.terpcycle-eyebrow { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.3em; color: var(--accent); margin-bottom: 1rem; }
.terpcycle-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.terpcycle-desc { font-size: 0.92rem; color: var(--gray); line-height: 1.6; }

/* --- NEWSLETTER --- */
.newsletter-section { padding: 4rem 2rem; text-align: center; position: relative; z-index: 2; }
.newsletter-content { max-width: 500px; margin: 0 auto; }
.newsletter-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 1rem; }
.newsletter-desc { font-size: 0.95rem; color: var(--gray); margin-bottom: 2.5rem; line-height: 1.6; }
.form-row { display: flex; gap: 0; max-width: 420px; margin: 0 auto; border: 1px solid var(--gray-border); border-radius: 100px; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.form-row:focus-within { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-dim); }
.newsletter-input { flex: 1; background: transparent; border: none; padding: 0.9rem 1.5rem; color: var(--white); font-family: var(--font); font-size: 0.88rem; outline: none; }
.newsletter-input::placeholder { color: #444; }
.newsletter-btn { background: var(--accent); color: var(--black); border: none; padding: 0.9rem 2rem; font-family: var(--font); font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: opacity 0.2s; letter-spacing: 0.03em; }
.newsletter-btn:hover { opacity: 0.85; }
.newsletter-legal { font-size: 0.68rem; color: #444; margin-top: 1rem; }
.newsletter-success { display: none; }
.newsletter-success.show { display: block; }
.newsletter-success p { font-size: 1.1rem; color: var(--accent); font-weight: 600; }

/* --- FOOTER --- */
.footer { padding: 3rem 2rem; border-top: 1px solid var(--gray-border); position: relative; z-index: 2; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.18em; margin-bottom: 0.25rem; }
.footer-tagline { font-size: 0.72rem; color: var(--gray); }
.footer-copy { font-size: 0.68rem; color: #444; }

/* --- GSAP initial states --- */
.mode-card, .feature-card, .product-color, .meter-content, .philosophy-content, .terpcycle-content, .newsletter-content, .rosin-card { opacity: 0; transform: translateY(40px); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav { padding: 0 1.1rem; }
  /* keep the primary CTA visible on mobile — just make it compact */
  .nav-cta { padding: 0.45rem 1rem; font-size: 0.72rem; }
  .hero-device { height: 50vh; max-height: 420px; }
  .hero-glow-ring { width: 250px; height: 250px; }
  .scroll-down { right: 1rem; }
  .strain-slide { flex: 0 0 300px; }
  .strain-img-wrap { height: 520px; }
  .strain-img { height: 480px; }
  .modes-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .meter-content { grid-template-columns: 1fr; gap: 3rem; }
  .meter-visual { order: -1; }
  .meter-bar { height: 200px; }
  .product-showcase { grid-template-columns: 1fr; }
  .product-duo-img { max-height: 300px; }
  .rosin-showcase { grid-template-columns: 1fr; gap: 2rem; }
  .rosin-divider { width: 200px; height: 1px; margin: 0 auto; background: linear-gradient(to right, transparent, var(--gray-border), transparent); }
  .rosin-device { height: 300px; }
  .rosin-device-wrap { height: 340px; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .rotation-canvas { width: 200px; max-height: 350px; }
  .mode-card { padding: 1.5rem 1rem; }
  .modes-controls { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .modes-grid { grid-template-columns: 1fr; }
  .hero-device { height: 40vh; }
  .strain-slide { flex: 0 0 240px; }
  .strain-img-wrap { height: 420px; }
  .strain-img { height: 380px; }
  .form-row { flex-direction: column; border-radius: 16px; }
  .newsletter-input { text-align: center; padding: 1rem; }
  .newsletter-btn { padding: 1rem; }
  .hero-overlay-text { bottom: 8%; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
}

/* ========================================
   MOBILE UX + PERFORMANCE (v3.1)
   ======================================== */

/* Smooth anchor offset for the fixed nav + iOS notch safe areas */
html { scroll-padding-top: 80px; }
body { -webkit-tap-highlight-color: transparent; }
.nav-inner { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.footer { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }

/* Touch devices: lighter blur (GPU), kill sticky :hover lifts, larger tap targets */
@media (hover: none) {
  .nav.scrolled { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .slide-menu { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .strain-slide:hover { transform: none; }
  .strain-slide:hover .strain-img { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }
  .mode-card:hover, .feature-card:hover, .product-color:hover .product-duo-img,
  .rosin-card:hover .rosin-device { transform: none; box-shadow: none; }
  .strain-track { touch-action: pan-y; }
}

/* Bigger, easier-to-tap carousel dots + controls on small screens */
@media (max-width: 768px) {
  .carousel-dots { gap: 10px; }
  .carousel-dot { width: 11px; height: 11px; }
  .carousel-btn { width: 48px; height: 48px; }
  .strains-section, .modes-section, .features-section,
  .meter-section, .product-section, .newsletter-section { padding-left: 1.25rem; padding-right: 1.25rem; }
}

/* Fallback reveal — applied by JS when GSAP is unavailable so content is never stuck hidden */
.reveal-all .hero-device,
.reveal-all .hero-overlay-text,
.reveal-all .scroll-down,
.reveal-all .mode-card,
.reveal-all .feature-card,
.reveal-all .product-color,
.reveal-all .meter-content,
.reveal-all .philosophy-content,
.reveal-all .terpcycle-content,
.reveal-all .newsletter-content,
.reveal-all .rosin-card,
.reveal-all .strain-slide {
  opacity: 1 !important;
  transform: none !important;
}
.reveal-all .tag-word { opacity: 1 !important; }

/* Respect reduced-motion: drop ambient animation, reveal everything, lighten the GPU load */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  #particleCanvas { display: none; }
  .hero-fog, .hero-glow-ring, .hero-glow-floor, .mode-led, .scroll-arrow { animation: none !important; }
  .hero-device,
  .hero-overlay-text,
  .scroll-down,
  .mode-card,
  .feature-card,
  .product-color,
  .meter-content,
  .philosophy-content,
  .terpcycle-content,
  .newsletter-content,
  .rosin-card,
  .strain-slide { opacity: 1 !important; transform: none !important; }
  .tag-word { opacity: 1 !important; }
}
