/* ==========================================================================
   Reefcoating.com — v3 (cinematic build, colour-forward revision)
   Light "paint swatch" canvas + scroll-driven ambient colour wash
   ========================================================================== */
:root {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --border: rgba(23, 27, 30, 0.09);
  --text: #171b1e;
  --text-muted: rgba(23, 27, 30, 0.62);

  /* Reclaimed-copper-to-reef-teal: the palette mirrors the reprocessing
     journey itself — raw, rust-toned surplus material resolving into
     refined teal product. Two colour families, no rainbow. */
  --c1: #a8501f; /* reclaimed copper */
  --c2: #c9752a; /* warm amber-copper */
  --c3: #b98a3c; /* muted ochre / raw pigment */
  --c4: #227a68; /* teal-green bridge */
  --c5: #0d6b63; /* core brand teal */
  --c6: #0a4744; /* deep petrol teal */
  --c7: #232f3a; /* charcoal-slate (industrial neutral) */

  --success: #1f7a5c;
  --danger: #a8342c;

  --rainbow: linear-gradient(100deg, var(--c1), var(--c3), var(--c5), var(--c6));

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --shadow: 0 20px 50px rgba(28, 23, 48, 0.1);
  --shadow-lg: 0 30px 80px rgba(28, 23, 48, 0.16);
  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.accent-1 { --accent: var(--c1); }
.accent-2 { --accent: var(--c2); }
.accent-3 { --accent: var(--c3); }
.accent-4 { --accent: var(--c4); }
.accent-5 { --accent: var(--c5); }
.accent-6 { --accent: var(--c6); }
.accent-7 { --accent: var(--c7); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { background: var(--bg); }
body { background: transparent; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
section { position: relative; }

/* ==========================================================================
   Ambient colour wash — the page background sweeps through the recovery
   palette as you scroll, mirroring the reprocessing journey itself
   ========================================================================== */
#ambient-bg {
  position: fixed; inset: 0; z-index: -2;
  background: var(--c1);
  opacity: 0.1; /* eased up via JS as you scroll past the hero photo */
  transition: background 0.15s linear, opacity 0.2s linear;
}
#ambient-fade {
  position: fixed; inset: 0; z-index: -1;
  /* Light scrim over the photo so dark text stays readable. Tune the
     top stop to show more/less of the photo behind the hero. */
  background: linear-gradient(180deg, rgba(251, 249, 246, 0.30) 0%, rgba(251, 249, 246, 0.62) 45%, rgba(251, 249, 246, 0.90) 78%, rgba(251, 249, 246, 0.97) 100%);
}

/* ==========================================================================
   Full-page photographic background
   Drop real photos in images/backgrounds/ named bg-home.jpg, bg-about.jpg,
   bg-services.jpg (any size, ~1600px wide is plenty) and they'll be used as
   the full-page backdrop. Each page sets a class on <body> to pick its photo.
   ========================================================================== */
.page-bg {
  position: fixed; inset: 0; z-index: -3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.page-home .page-bg { background-image: url("../images/backgrounds/bg-home.jpg"); }
body.page-about .page-bg { background-image: url("../images/backgrounds/bg-about.jpg"); }
body.page-services .page-bg { background-image: url("../images/backgrounds/bg-services.jpg"); }
@media (max-width: 760px) {
  /* Simpler 1.5x-scaled crop on small screens to avoid mega JPEG decoding */
  .page-bg { background-size: cover; }
}

/* ==========================================================================
   Preloader
   ========================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--rainbow); background-size: 300% auto; animation: gradient-pan 2s ease infinite, pulse-scale 1.1s var(--ease) infinite; }
@keyframes pulse-scale { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ==========================================================================
   Grain overlay
   ========================================================================== */
#grain {
  position: fixed; inset: 0; z-index: 5; 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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Scroll progress + dot nav
   ========================================================================== */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: var(--rainbow); background-size: 300% auto; z-index: 999; transition: width 0.05s linear;
  box-shadow: 0 1px 6px rgba(28, 23, 48, 0.25);
}

.dot-nav { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 150; display: flex; flex-direction: column; gap: 14px; }
.dot-nav button {
  width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(28, 23, 48, 0.3);
  background: rgba(255, 255, 255, 0.6); cursor: pointer; padding: 0;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.dot-nav button.active { background: var(--accent-dot, var(--c5)); border-color: var(--accent-dot, var(--c5)); transform: scale(1.3); }
@media (max-width: 900px) { .dot-nav { display: none; } }

/* ==========================================================================
   Reveal / word stagger
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

.word-reveal .word { display: inline-block; overflow: hidden; }
.word-reveal .word span { display: inline-block; transform: translateY(110%); transition: transform 0.6s var(--ease); transition-delay: calc(var(--i) * 0.05s); }
.word-reveal.in-view .word span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transform: none; opacity: 1; }
  .word-reveal .word span { transition: none; transform: none; }
}

/* ==========================================================================
   Eyebrow / gradient text / section heads
   ========================================================================== */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(13, 107, 99, 0.1); color: var(--c5); font-weight: 700; font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--rainbow); }

.gradient-text { background-image: var(--rainbow); background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradient-pan 6s ease infinite; }
@keyframes gradient-pan { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; color: var(--text); margin-top: 14px; letter-spacing: -0.01em; }
.section-head p { margin-top: 12px; color: var(--text-muted); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: rgba(251, 249, 246, 0); transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(251, 249, 246, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: var(--text); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--rainbow); background-size: 250% auto; display: flex; align-items: center; justify-content: center; animation: gradient-pan 8s ease infinite; }
.logo-mark svg { width: 18px; height: 18px; color: #fff; }
.logo span { color: var(--c5); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.94rem; color: var(--text); transition: background 0.15s ease, color 0.15s ease; }
.nav-link:hover { background: rgba(28, 23, 48, 0.06); }
.nav-link.active { color: var(--c5); background: rgba(13, 107, 99, 0.12); }
.nav-link.locked { color: var(--text-muted); }
.nav-link .lock-badge { width: 13px; height: 13px; opacity: 0.8; color: var(--c2); }

.nav-cta { margin-left: 8px; padding: 11px 22px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 0.9rem; background: var(--rainbow); background-size: 250% auto; box-shadow: 0 10px 24px rgba(201, 117, 42, 0.3); transition: transform 0.15s ease, background-position 0.5s ease; }
.nav-cta:hover { transform: translateY(-1px); background-position: 100% 50%; }

.nav-toggle { display: none; width: 42px; height: 42px; border: none; background: none; cursor: pointer; position: relative; z-index: 210; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle span { top: 20px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span::after { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Hero — sits directly on the ambient colour wash
   ========================================================================== */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 24px 60px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }

.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-top: 20px; }
.hero .lead { margin-top: 22px; max-width: 560px; color: var(--text-muted); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.magnetic { display: inline-block; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background-position 0.5s ease; }
.btn-primary { background: var(--rainbow); background-size: 250% auto; color: #fff; box-shadow: 0 14px 34px rgba(201, 117, 42, 0.35); }
.btn-primary:hover { background-position: 100% 50%; }
.btn-ghost { background: rgba(255, 255, 255, 0.55); color: var(--text); border-color: var(--border); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--c5); }

.scroll-cue { position: absolute; bottom: 28px; left: 24px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; }
.scroll-cue .line { width: 1px; height: 28px; background: linear-gradient(180deg, var(--c5), transparent); animation: scroll-cue-move 1.6s ease infinite; }
@keyframes scroll-cue-move { 0% { transform: scaleY(0.3); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0.3); opacity: 0.4; } }

/* ==========================================================================
   Marquee ticker
   ========================================================================== */
.ticker { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; overflow: hidden; background: var(--surface); }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker-scroll 26s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.ticker span.dot { color: var(--c3); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ==========================================================================
   Tilt cards
   ========================================================================== */
.tilt-wrap { perspective: 1100px; }
.tilt { transition: transform 0.2s ease, box-shadow 0.2s ease; will-change: transform; }

/* ==========================================================================
   Values
   ========================================================================== */
.values { padding: 100px 24px; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.value-card:hover { box-shadow: var(--shadow); }
.value-card .icon-wrap { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px; background: color-mix(in srgb, var(--accent) 16%, white); display: flex; align-items: center; justify-content: center; }
.value-card .icon-wrap svg { width: 22px; height: 22px; color: var(--accent); }
.value-card h3 { font-size: 1.04rem; color: var(--text); margin-bottom: 6px; }
.value-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================================================
   Colour mixer widget
   ========================================================================== */
.mixer { padding: 40px 24px 110px; }
.mixer-panel { max-width: 880px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; position: relative; overflow: visible; }
.mixer-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.mixer-head h3 { font-size: 1.3rem; font-weight: 800; }
.mixer-readout { display: flex; align-items: center; gap: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.95rem; color: var(--text-muted); }
.mixer-swatch { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); transition: background 0.15s ease; }
#mixer-canvas { width: 100%; height: 320px; border-radius: var(--radius); background: var(--bg); touch-action: none; cursor: grab; }
.mixer-hint { margin-top: 14px; font-size: 0.86rem; color: var(--text-muted); text-align: center; }

.confetti-piece { position: absolute; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; top: 0; left: 0; will-change: transform, opacity; }

/* ==========================================================================
   Process — auto-advancing slider with side arrows + themed slide scenes
   ========================================================================== */
.process-carousel { padding: 100px 24px 40px; }
.process-head { text-align: center; margin-bottom: 40px; }
.process-head h2 { color: var(--text); }

.carousel-viewport {
  position: relative; max-width: var(--container); margin: 0 auto; height: 560px;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); touch-action: pan-y;
}
.carousel-track { display: flex; height: 100%; width: 700%; transition: transform 0.35s var(--ease); }
.carousel-slide {
  width: calc(100% / 7); flex-shrink: 0; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 0 24px;
  background: var(--accent); color: #fff;
}
.carousel-slide.on-light { color: var(--text); }
.carousel-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(255, 255, 255, 0.22), transparent 55%); pointer-events: none; }

.slide-scene { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 4%; opacity: 0.15; pointer-events: none; }
.slide-scene svg { width: min(60%, 460px); color: #fff; }
.carousel-slide.on-light .slide-scene svg { color: var(--text); }

/* Photo-backed slides: real generated imagery + a dark scrim for legible white text */
.carousel-slide.has-photo { background-size: cover; background-position: center; color: #fff; }
.carousel-slide.has-photo.on-light { color: #fff; }
.carousel-slide.has-photo::before {
  background: linear-gradient(180deg, rgba(10, 8, 20, 0.15) 0%, rgba(10, 8, 20, 0.55) 65%, rgba(10, 8, 20, 0.78) 100%);
}
.carousel-slide.has-photo .slide-scene { display: none; }
.carousel-slide.has-photo .panel-icon { background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(4px); }
.carousel-slide.has-photo .panel-num { opacity: 0.55; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.carousel-slide.has-photo .panel-card h3,
.carousel-slide.has-photo .panel-card p { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }

.carousel-slide.slide-1 { background-image: url("../images/process/01-factory.png"); }
.carousel-slide.slide-2 { background-image: url("../images/process/02-surplus.png"); }
.carousel-slide.slide-3 { background-image: url("../images/process/03-port.png"); }
.carousel-slide.slide-4 { background-image: url("../images/process/04-rework.png"); }
.carousel-slide.slide-5 { background-image: url("../images/process/05-private-label.png"); }
.carousel-slide.slide-6 { background-image: url("../images/process/06-shipping.png"); }
.carousel-slide.slide-7 { background-image: url("../images/process/07-retail.png"); }

.panel-card { position: relative; z-index: 1; max-width: 520px; text-align: center; }
.panel-num { font-size: 6rem; font-weight: 800; line-height: 1; opacity: 0.35; }
.panel-icon { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: flex; align-items: center; justify-content: center; }
.carousel-slide.on-light .panel-icon { background: rgba(28, 23, 48, 0.1); }
.panel-icon svg { width: 32px; height: 32px; }
.panel-card h3 { font-size: 1.7rem; font-weight: 800; margin: 10px 0 12px; }
.panel-card p { font-size: 1.04rem; opacity: 0.92; max-width: 420px; margin: 0 auto; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 52px; height: 52px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--text);
  display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease, background 0.15s ease;
}
.carousel-arrow:hover { transform: translateY(-50%) scale(1.08); background: #fff; }
.carousel-arrow.prev { left: 18px; }
.carousel-arrow.next { right: 18px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.carousel-dots button { width: 9px; height: 9px; padding: 0; border-radius: 5px; border: none; background: var(--border); cursor: pointer; transition: background 0.2s ease, width 0.2s ease; }
.carousel-dots button.active { background: var(--text); width: 28px; }

/* ==========================================================================
   Narrative + before/after compare slider
   ========================================================================== */
.narrative { padding: 110px 24px; background: var(--surface); }
.narrative-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.narrative h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 800; margin-bottom: 16px; }
.narrative p { color: var(--text-muted); margin-bottom: 14px; }
.narrative .tag-line { font-weight: 700; color: var(--c5); }

.compare {
  position: relative; width: 100%; height: 340px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); cursor: ew-resize; user-select: none; touch-action: none;
}
.compare-after, .compare-before { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 22px; }
.compare-after { background: var(--rainbow); background-size: 250% auto; animation: gradient-pan 10s ease infinite; }
.compare-before { background: linear-gradient(135deg, #b7b3a8, #837e72); clip-path: inset(0 30% 0 0); }
.compare-tag { color: #fff; font-weight: 800; font-size: 0.95rem; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); padding: 8px 16px; background: rgba(0, 0, 0, 0.18); border-radius: 999px; backdrop-filter: blur(3px); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: 70%; width: 3px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); transform: translateX(-50%);
}
.compare-handle::after {
  content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--text);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700;
  box-shadow: var(--shadow);
}
.compare-caption { margin-top: 14px; font-size: 0.86rem; color: var(--text-muted); text-align: center; }

/* ==========================================================================
   Locked teasers
   ========================================================================== */
.teasers { padding: 100px 24px; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.teaser-card { display: block; position: relative; padding: 32px 26px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--border); cursor: pointer; filter: grayscale(0.7) saturate(0.6); opacity: 0.85; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s ease, opacity 0.2s ease; }
.teaser-card:hover { box-shadow: var(--shadow); filter: grayscale(0.3) saturate(0.9); opacity: 1; }
.teaser-card .lock-chip { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 159, 69, 0.16); display: flex; align-items: center; justify-content: center; }
.teaser-card .lock-chip svg { width: 16px; height: 16px; color: var(--c2); }
.teaser-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.teaser-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }
.teaser-card .status-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; color: var(--c2); text-transform: uppercase; letter-spacing: 0.03em; }
.teaser-card .status-tag svg { width: 12px; height: 12px; }

.teaser-card.unlocked { filter: none; opacity: 1; border-style: solid; border-color: rgba(31, 122, 92, 0.35); }
.teaser-card.unlocked:hover { border-color: var(--c4); }
.teaser-card .lock-chip.unlocked { background: rgba(31, 122, 92, 0.16); }
.teaser-card .lock-chip.unlocked svg { color: var(--c4); }
.teaser-card .status-tag.unlocked { color: var(--c4); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta { padding: 120px 24px; text-align: center; background: linear-gradient(120deg, var(--c7) 0%, var(--c6) 35%, var(--c5) 70%, var(--c3) 100%); color: #fff; }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.final-cta p { max-width: 560px; margin: 0 auto 30px; opacity: 0.9; font-size: 1.05rem; }
.final-cta .btn-ghost { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.4); color: #fff; }

/* ==========================================================================
   Footer — light, colour accent instead of black
   ========================================================================== */
.site-footer { background: var(--surface); color: var(--text-muted); padding: 56px 24px 30px; border-top: 4px solid transparent; border-image: var(--rainbow) 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand .logo { color: var(--text); }
.footer-brand p { margin-top: 12px; font-size: 0.9rem; max-width: 320px; }
.footer-col h4 { color: var(--text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; }
.photo-credit { font-size: 0.7rem; opacity: 0.55; flex-basis: 100%; text-align: right; }
.photo-credit a { color: inherit; }

/* ==========================================================================
   Lock modal
   ========================================================================== */
.modal-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(28, 23, 48, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { position: relative; width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 30px; box-shadow: var(--shadow-lg); text-align: center; transform: translateY(14px) scale(0.96); opacity: 0; transition: transform 0.3s var(--ease), opacity 0.3s ease; }
.modal-overlay.open .modal { transform: translateY(0) scale(1); opacity: 1; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--text-muted); cursor: pointer; font-size: 1rem; line-height: 1; }
.modal-icon { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; background: rgba(255, 159, 69, 0.16); }
.modal-icon svg { width: 27px; height: 27px; color: var(--c2); }
.modal h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.modal p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 26px; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-actions .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   Progressive-enhancement: native scroll-driven parallax where supported
   ========================================================================== */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-inner { animation: hero-parallax linear; animation-timeline: scroll(root); animation-range: 0 60vh; }
    @keyframes hero-parallax { to { transform: translateY(40px); opacity: 0.5; } }
  }
}

/* ==========================================================================
   Split band — alternating photo/copy section used on About & Services.
   Drop in as:
     <section class="split-band reveal">              (add "flip" to swap sides)
       <div class="split-band-media"><div class="split-band-media-inner" style="background-image:url(...)"></div></div>
       <div class="split-band-copy">...</div>
     </section>
   The photo wipes into view (like a roller stroke revealing the frame) and
   the copy rises a beat behind it — driven by the same .reveal/.in-view
   observer already used site-wide, so no extra JS is required.
   ========================================================================== */
.split-band { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; max-width: var(--container); margin: 0 auto; padding: 40px 24px; }
.split-band.flip { grid-template-columns: 0.95fr 1.05fr; }
.split-band.flip .split-band-media { order: 2; }
.split-band.flip .split-band-copy { order: 1; }

.split-band-media { position: relative; aspect-ratio: 4 / 3.1; overflow: hidden; border-radius: 14px 96px 14px 14px; box-shadow: var(--shadow-lg); }
.split-band.flip .split-band-media { border-radius: 96px 14px 14px 14px; }
/* Wipe reveal: a solid cover panel slides away via transform (GPU-accelerated,
   smooth everywhere) instead of animating clip-path on the photo itself —
   clip-path transitions repaint every frame and can look janky, especially
   with a box-shadow on the same element. */
.split-band-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--bg); transform-origin: left; transform: scaleX(1);
  transition: transform 0.9s var(--ease) 0.05s;
  will-change: transform;
}
.split-band.flip .split-band-media::after { transform-origin: right; }
.split-band.in-view .split-band-media::after { transform: scaleX(0); }
.split-band-media-inner { position: absolute; inset: -6%; background-size: cover; background-position: center; transform: scale(1.1); }

.split-band-copy { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease 0.25s, transform 0.7s var(--ease) 0.25s; }
.split-band.in-view .split-band-copy { opacity: 1; transform: translateY(0); }
.split-band-copy h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); font-weight: 800; color: var(--text); margin: 14px 0 16px; line-height: 1.25; }
.split-band-copy p { color: var(--text-muted); }
.split-band-copy p + p { margin-top: 12px; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .split-band-media-inner { animation: split-parallax linear; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    @keyframes split-parallax { from { transform: scale(1.14) translateY(-2.5%); } to { transform: scale(1.05) translateY(2.5%); } }
  }
}

@media (max-width: 780px) {
  .split-band, .split-band.flip { grid-template-columns: 1fr; gap: 26px; padding: 24px; }
  .split-band.flip .split-band-media, .split-band.flip .split-band-copy { order: initial; }
  .split-band-media { aspect-ratio: 16 / 11; }
}

@media (prefers-reduced-motion: reduce) {
  .split-band-media::after { transition: none; transform: scaleX(0); }
  .split-band-copy { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Services mind-map — animated hub-and-spoke diagram.
   Desktop: central hub with SVG lines drawing out to four clickable nodes.
   Mobile: collapses to a vertical stack.
   ========================================================================== */
.map-diagram {
  position: relative;
  max-width: 640px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas: ". top ." "left hub right" ". bottom .";
  gap: 18px;
  align-items: center; justify-items: center;
  padding: 30px 0;
}

/* SVG connecting lines — animated dash offset + draw-in */
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.map-lines line {
  stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 300; stroke-dashoffset: 300;
  stroke-linecap: round;
  transition: stroke 0.3s ease;
}
.map-diagram.in-view .map-lines line { animation: line-draw 0.9s var(--ease) forwards; }
.map-diagram.in-view .map-lines line:nth-child(1) { animation-delay: 0.2s; }
.map-diagram.in-view .map-lines line:nth-child(2) { animation-delay: 0.35s; }
.map-diagram.in-view .map-lines line:nth-child(3) { animation-delay: 0.5s; }
.map-diagram.in-view .map-lines line:nth-child(4) { animation-delay: 0.65s; }
@keyframes line-draw { to { stroke-dashoffset: 0; } }

/* Hover highlight: lines subtly brighten when their node is hovered */
.map-diagram:has(.map-node.pos-top:hover) .map-lines line:nth-child(1),
.map-diagram:has(.map-node.pos-right:hover) .map-lines line:nth-child(2),
.map-diagram:has(.map-node.pos-bottom:hover) .map-lines line:nth-child(3),
.map-diagram:has(.map-node.pos-left:hover) .map-lines line:nth-child(4) {
  stroke: var(--c5); stroke-width: 2.5;
}

/* Hub — pulsing gradient orb with ripple ring */
.map-hub {
  grid-area: hub; position: relative; z-index: 1;
  width: 132px; height: 132px; border-radius: 50%;
  background: var(--rainbow); background-size: 220% auto;
  animation: gradient-pan 8s ease infinite;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #fff; text-align: center; box-shadow: var(--shadow-lg);
  transform: scale(0); transition: transform 0.5s var(--ease);
}
.map-diagram.in-view .map-hub { transform: scale(1); }
.map-hub::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(13, 107, 99, 0.2);
  animation: hub-ripple 3s ease-in-out infinite;
}
.map-hub::after {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  border: 1px solid rgba(13, 107, 99, 0.08);
  animation: hub-ripple 3s ease-in-out infinite 0.5s;
}
@keyframes hub-ripple {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.map-hub svg { width: 30px; height: 30px; }
.map-hub span { font-weight: 800; font-size: 0.82rem; letter-spacing: 0.02em; }

/* Nodes — staggered entrance + glow on hover */
.map-node {
  position: relative; z-index: 1;
  width: 100%; max-width: 168px;
  padding: 16px 14px; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: scale(0) translateY(20px); opacity: 0;
  transition: transform 0.45s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.4s ease;
}
.map-diagram.in-view .map-node.pos-top    { transform: scale(1) translateY(0); opacity: 1; transition-delay: 0.3s; }
.map-diagram.in-view .map-node.pos-right  { transform: scale(1) translateY(0); opacity: 1; transition-delay: 0.45s; }
.map-diagram.in-view .map-node.pos-bottom { transform: scale(1) translateY(0); opacity: 1; transition-delay: 0.6s; }
.map-diagram.in-view .map-node.pos-left   { transform: scale(1) translateY(0); opacity: 1; transition-delay: 0.75s; }

.map-node.pos-top { grid-area: top; }
.map-node.pos-right { grid-area: right; }
.map-node.pos-bottom { grid-area: bottom; }
.map-node.pos-left { grid-area: left; }
.map-node .icon-wrap {
  width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 16%, white);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s var(--ease);
}
.map-node .icon-wrap svg { width: 20px; height: 20px; color: var(--accent); }
.map-node h3 { font-size: 0.95rem; color: var(--text); margin-bottom: 4px; transition: color 0.2s ease; }
.map-node p { font-size: 0.78rem; color: var(--text-muted); }
.map-node:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--accent);
  box-shadow: 0 12px 36px color-mix(in srgb, var(--accent) 22%, transparent),
              0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}
.map-node:hover .icon-wrap { background: var(--accent); transform: scale(1.1); }
.map-node:hover .icon-wrap svg { color: #fff; }
.map-node:hover h3 { color: var(--accent); }

@media (max-width: 700px) {
  .map-lines { display: none; }
  .map-diagram { grid-template-columns: 1fr; grid-template-areas: "hub" "top" "right" "bottom" "left"; max-width: 320px; }
  .map-hub { width: 104px; height: 104px; margin-bottom: 6px; }
  .map-hub::before, .map-hub::after { display: none; }
  .map-node { max-width: none; }
  .map-diagram.in-view .map-node { transition-delay: 0s; }
  .map-diagram.in-view .map-node.pos-top    { transition-delay: 0.1s; }
  .map-diagram.in-view .map-node.pos-right  { transition-delay: 0.2s; }
  .map-diagram.in-view .map-node.pos-bottom { transition-delay: 0.3s; }
  .map-diagram.in-view .map-node.pos-left   { transition-delay: 0.4s; }
}

/* ==========================================================================
   Process road — four numbered stages (Inbound -> Rework -> Packing ->
   Outbound) along an animated dashed line with glowing active stop,
   progress-fill bar, and smooth panel crossfade.
   ========================================================================== */
.process-road { max-width: 880px; margin: 0 auto; }

/* Track wrapper — holds the dashed line + progress fill */
.road-track {
  display: flex; justify-content: space-between; position: relative;
  padding: 0 6px 30px;
}
/* Dashed base line */
.road-track::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 19px;
  border-top: 2px dashed var(--border); z-index: 0;
  animation: dash-march 1.2s linear infinite;
}
@keyframes dash-march {
  to { background-position: 20px 0; }
}
/* Solid progress fill that grows from left to the active stop */
.road-track::after {
  content: ""; position: absolute; left: 24px; top: 19px;
  height: 3px; width: var(--road-fill-width, 0%); border-radius: 2px;
  background: var(--rainbow); background-size: 300% auto;
  animation: gradient-pan 6s ease infinite;
  z-index: 1;
  transition: width 0.5s var(--ease);
}

/* Stop buttons */
.road-stop {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 0; flex: 1;
}
.road-stop-num {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 2px solid var(--border);
  font-weight: 800; font-size: 0.85rem; color: var(--text-muted);
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease,
              transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.road-stop-label {
  font-size: 0.82rem; font-weight: 700; color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s var(--ease);
}

/* Active stop — gradient fill, glow, scale up */
.road-stop.is-active .road-stop-num {
  background: var(--rainbow); background-size: 300% auto;
  animation: gradient-pan 4s ease infinite;
  border-color: transparent; color: #fff; transform: scale(1.15);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c5) 15%, transparent),
              0 4px 16px color-mix(in srgb, var(--c5) 30%, transparent);
}
.road-stop.is-active .road-stop-label { color: var(--text); transform: translateY(-2px); }

/* Checkmark that appears on visited stops */
.road-stop.is-visited .road-stop-num::after {
  content: ""; position: absolute; top: -3px; right: -3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--c4); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; line-height: 1;
  box-shadow: 0 2px 6px rgba(34, 122, 104, 0.3);
}

.road-stop:hover .road-stop-num {
  border-color: var(--c5);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c5) 8%, transparent);
}
.road-stop:hover .road-stop-label { color: var(--text); }

/* Panels — crossfade with slight slide */
.road-panels { position: relative; min-height: 260px; }
.road-panel {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
}
.js-enhanced .road-panel { display: none; position: absolute; inset: 0; }
.js-enhanced .road-panel.is-active {
  display: grid;
  animation: road-panel-in 0.45s var(--ease);
}
@keyframes road-panel-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Media block — subtle Ken Burns on the image */
.road-panel-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius); background-size: cover;
  background-position: center; box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
  overflow: hidden;
}
.js-enhanced .road-panel.is-active .road-panel-media {
  animation: media-kenburn 8s ease-in-out infinite alternate;
}
@keyframes media-kenburn {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

/* Copy */
.road-panel-copy .road-panel-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--c5); margin-bottom: 10px;
}
.road-panel-copy .road-panel-eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 1px;
  background: var(--rainbow); background-size: 300% auto;
  animation: gradient-pan 4s ease infinite;
}
.road-panel-copy h3 { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.road-panel-copy p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.65; }

.js-enhanced .road-panel:not(.is-active) { display: none; }
:not(.js-enhanced) .road-panel + .road-panel { margin-top: 24px; }

@media (max-width: 700px) {
  .road-track::before { left: 14px; right: 14px; }
  .road-track::after { left: 14px; }
  .road-stop-label { font-size: 0.7rem; }
  .road-stop-num { width: 36px; height: 36px; font-size: 0.78rem; }
  .road-panel { grid-template-columns: 1fr; gap: 16px; }
  .road-panels { min-height: 320px; }
}

/* ==========================================================================
   Stream cards — image-backed card grid on the services hub page
   ========================================================================== */
.service-stream-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  perspective: 1200px;
}
.stream-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(24px);
}
.service-stream-grid.in-view .stream-card { opacity: 1; transform: translateY(0); transition: opacity 0.55s ease, transform 0.55s var(--ease); }
.service-stream-grid.in-view .stream-card:nth-child(1) { transition-delay: 0.05s; }
.service-stream-grid.in-view .stream-card:nth-child(2) { transition-delay: 0.15s; }
.service-stream-grid.in-view .stream-card:nth-child(3) { transition-delay: 0.25s; }
.service-stream-grid.in-view .stream-card:nth-child(4) { transition-delay: 0.35s; }
.stream-card:hover {
  box-shadow: 0 20px 50px color-mix(in srgb, var(--accent) 25%, rgba(28, 23, 48, 0.16));
}
.stream-card-img {
  aspect-ratio: 16 / 10; background-size: cover; background-position: center;
  transition: transform 0.5s var(--ease);
}
.stream-card:hover .stream-card-img { transform: scale(1.08); }

.stream-card-body {
  padding: 22px 20px; background: var(--surface);
  position: relative;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
.stream-card-num {
  font-size: 0.72rem; font-weight: 800; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.stream-card-body h3 {
  font-size: 1.15rem; font-weight: 800; color: var(--text);
  transition: color 0.2s ease;
}
.stream-card:hover .stream-card-body h3 { color: var(--accent); }
.stream-card-body p { font-size: 0.88rem; color: var(--text-muted); }
.stream-card-arrow {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--accent); font-size: 1.1rem; font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}
.stream-card:hover .stream-card-arrow {
  background: var(--accent); color: #fff; transform: translateX(3px);
}

@media (max-width: 980px) {
  .service-stream-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .service-stream-grid { grid-template-columns: 1fr; }
  .stream-card-img { aspect-ratio: 16 / 8; }
}

/* ==========================================================================
   Sub-pages: About / Services / Contact
   ========================================================================== */
.page-hero { padding: 150px 24px 60px; max-width: 760px; margin: 0 auto; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; color: var(--text); letter-spacing: -0.02em; margin-top: 16px; }
.page-hero .lead { margin-top: 18px; color: var(--text-muted); font-size: 1.08rem; }

.page-section { padding: 60px 24px; }
.page-section.alt { background: var(--surface); }

/* Stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: var(--container); margin: 0 auto; }
.stat-card { text-align: center; padding: 30px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.stat-label { margin-top: 8px; font-size: 0.88rem; color: var(--text-muted); }

/* Chip lists (locations, materials) */
.chip-group { margin-bottom: 28px; }
.chip-group h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 14px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 0.9rem; color: var(--text); }
.page-section.alt .chip { background: var(--bg); }

/* Philosophy / narrative-style block reused across pages */
.philosophy { max-width: 720px; margin: 0 auto; text-align: center; }
.philosophy h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 16px; }
.philosophy p { color: var(--text-muted); margin-bottom: 14px; }

/* Problem -> Solution rows */
.ps-grid { max-width: 760px; margin: 0 auto; }
.ps-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--border); }
.ps-row:last-child { border-bottom: none; }
.ps-problem { color: var(--text-muted); font-weight: 600; }
.ps-arrow { color: var(--c5); font-size: 1.3rem; }
.ps-solution { font-weight: 700; color: var(--text); text-align: right; }
@media (max-width: 640px) {
  .ps-row { grid-template-columns: 1fr; text-align: left; gap: 6px; }
  .ps-solution { text-align: left; }
  .ps-arrow { display: none; }
}

/* Offer / feature list (icon + title + paragraph) */
.offer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: var(--container); margin: 0 auto; }
.offer-card { display: flex; gap: 18px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.offer-card .icon-wrap { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, white); display: flex; align-items: center; justify-content: center; }
.offer-card .icon-wrap svg { width: 22px; height: 22px; color: var(--accent); }
.offer-card h3 { font-size: 1.02rem; color: var(--text); margin-bottom: 6px; }
.offer-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Pull quote */
.pull-quote { max-width: 720px; margin: 40px auto 0; text-align: center; }
.pull-quote p { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 700; color: var(--text); line-height: 1.4; }
.pull-quote .quote-mark { font-size: 3rem; color: var(--c5); line-height: 1; display: block; margin-bottom: 6px; }

/* Checklist (contact page) */
.checklist { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; list-style: none; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.checklist .check-icon { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(13, 107, 99, 0.14); color: var(--c5); display: flex; align-items: center; justify-content: center; }
.checklist .check-icon svg { width: 13px; height: 13px; }
.checklist span.label { font-weight: 600; color: var(--text); }

.contact-cta { text-align: center; margin-top: 40px; }
.contact-cta p { color: var(--text-muted); margin-bottom: 18px; }

.value-grid.cols-5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; margin-bottom: 20px; }
.back-link:hover { color: var(--c5); }

/* ==========================================================================
   Admin dashboard — tables, badges, small buttons
   ========================================================================== */
.empty-state { color: var(--text-muted); font-size: 0.9rem; padding: 20px 0; text-align: center; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 720px; }
.admin-table th, .admin-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.88rem; white-space: nowrap; }
.admin-table td[style*="max-width"] { white-space: normal; }
.admin-table th { color: var(--text-muted); font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; background: var(--bg); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg); }

.admin-actions-cell { display: flex; gap: 8px; }
.admin-actions-cell form { margin: 0; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; border-radius: 999px; font-weight: 700; border: none; cursor: pointer; transition: transform 0.15s ease, opacity 0.15s ease; }
.btn-sm:hover { transform: translateY(-1px); opacity: 0.92; }

.badge { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.badge.approved { background: rgba(31, 122, 92, 0.14); color: var(--success); }
.badge.rejected { background: rgba(168, 52, 44, 0.14); color: var(--danger); }

/* Unlabeled admin entry point — deliberately unobtrusive, not a public nav item */
.admin-entry {
  position: fixed; bottom: 14px; left: 14px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--border); opacity: 0.5; z-index: 40; transition: opacity 0.2s ease, transform 0.2s ease;
}
.admin-entry:hover { opacity: 1; transform: scale(1.3); background: var(--c7); }

/* ==========================================================================
   Forms + auth cards (contact form, login, reset)
   ========================================================================== */
.form-card, .auth-card {
  max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
}
.form-group { margin-bottom: 18px; text-align: left; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--c5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c5) 18%, transparent);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.form-honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }

.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 32px; height: 32px;
  border: none; background: none; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: color 0.15s ease, background 0.15s ease;
}
.password-toggle:hover { color: var(--text); background: var(--border); }
.password-toggle svg { width: 18px; height: 18px; }

.form-alert { padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(168, 52, 44, 0.1); color: var(--danger); font-size: 0.88rem; font-weight: 600; margin-bottom: 18px; }
.form-success { padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(31, 122, 92, 0.1); color: var(--success); font-size: 0.88rem; font-weight: 600; margin-bottom: 18px; }

#form-status, #admin-status { position: fixed; top: 96px; right: 24px; z-index: 500; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.form-toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: 0.88rem; font-weight: 600; animation: toast-in 0.3s var(--ease);
}
.form-toast.success { color: var(--success); border-color: rgba(31, 122, 92, 0.3); }
.form-toast.alert { color: var(--danger); border-color: rgba(168, 52, 44, 0.3); }
.form-toast.leaving { animation: toast-out 0.25s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@media (max-width: 480px) { #form-status, #admin-status { left: 16px; right: 16px; max-width: none; top: 84px; } }

.auth-links { text-align: center; margin-top: 16px; font-size: 0.88rem; }
.auth-links a { color: var(--c5); font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

/* ==========================================================================
   Login page — cursor-reactive paint trail + glowing card
   ========================================================================== */
.login-hero { min-height: 90vh; }
.login-hero-inner { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; text-align: center; }
.login-hero-inner .lead { margin-left: auto; margin-right: auto; }

.drop-bounce {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--rainbow); background-size: 250% auto; display: flex; align-items: center; justify-content: center;
  animation: gradient-pan 8s ease infinite, drop-bounce 2.2s var(--ease) infinite; box-shadow: var(--shadow);
}
.drop-bounce svg { width: 26px; height: 26px; color: #fff; }
@keyframes drop-bounce { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-8px) scale(1.06); } }

.rainbow-frame {
  border-radius: calc(var(--radius-lg) + 4px); padding: 4px;
  background: var(--rainbow); background-size: 250% auto; animation: gradient-pan 6s ease infinite;
  box-shadow: var(--shadow-lg);
}
.rainbow-frame .auth-card { margin: 0; box-shadow: none; }
.rainbow-frame.tilt { transition: transform 0.2s ease; will-change: transform; }

.rainbow-frame.has-error { animation: gradient-pan 6s ease infinite, shake-x 0.4s ease; }
@keyframes shake-x {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .drop-bounce, .rainbow-frame, .rainbow-frame.has-error { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .narrative-inner { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .carousel-viewport { height: 520px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; position: fixed; top: 76px; right: 0; bottom: 0; width: min(78vw, 320px); background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch; padding: 20px; gap: 6px; }
  .nav.open { display: flex; }
  .nav-cta { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
  .value-grid { grid-template-columns: 1fr; }
  .teaser-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .carousel-slide { padding: 0 20px; }
  .carousel-viewport { height: 620px; }
  .carousel-arrow { width: 42px; height: 42px; font-size: 1.2rem; }
  .panel-num { font-size: 3.8rem; }
  .panel-card h3 { font-size: 1.4rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 130px 20px 50px; }
}

@media (max-width: 480px) {
  .hero { padding: 110px 20px 50px; }
  .mixer-panel { padding: 24px; }
  .form-card, .auth-card { padding: 26px; }
  .login-hero { min-height: unset; padding-top: 90px; }
  .modal { padding: 30px 22px; }
  .compare { height: 260px; }
}

/* ==========================================================================
   Sub-page per-category accent colours
   Each category page overrides --accent to tint its process-road progress
   bar, eyebrow bars, and panel accents.
   ========================================================================== */
body.sub-decorative { --accent: var(--c1); }
body.sub-industrial { --accent: var(--c5); }
body.sub-powder     { --accent: var(--c3); }
body.sub-raw-materials { --accent: var(--c4); }

/* Sub-page hero eyebrow inherits the accent */
body.sub-decorative .page-hero .eyebrow { background: rgba(168, 80, 31, 0.1); color: var(--c1); }
body.sub-industrial .page-hero .eyebrow { background: rgba(13, 107, 99, 0.1); color: var(--c5); }
body.sub-powder .page-hero .eyebrow     { background: rgba(185, 138, 60, 0.1); color: var(--c3); }
body.sub-raw-materials .page-hero .eyebrow { background: rgba(34, 122, 104, 0.1); color: var(--c4); }

/* Sub-page hero gradient text uses its accent */
body.sub-decorative .gradient-text { --rainbow: linear-gradient(100deg, var(--c1), var(--c2), var(--c3)); }
body.sub-industrial .gradient-text { --rainbow: linear-gradient(100deg, var(--c5), var(--c4), var(--c3)); }
body.sub-powder .gradient-text     { --rainbow: linear-gradient(100deg, var(--c3), var(--c2), var(--c1)); }
body.sub-raw-materials .gradient-text { --rainbow: linear-gradient(100deg, var(--c4), var(--c5), var(--c6)); }

/* Road eyebrow accent per sub-page */
body.sub-decorative .road-panel-copy .road-panel-eyebrow { color: var(--c1); }
body.sub-decorative .road-panel-copy .road-panel-eyebrow::before { background: linear-gradient(100deg, var(--c1), var(--c2)); }
body.sub-industrial .road-panel-copy .road-panel-eyebrow { color: var(--c5); }
body.sub-industrial .road-panel-copy .road-panel-eyebrow::before { background: linear-gradient(100deg, var(--c5), var(--c4)); }
body.sub-powder .road-panel-copy .road-panel-eyebrow { color: var(--c3); }
body.sub-powder .road-panel-copy .road-panel-eyebrow::before { background: linear-gradient(100deg, var(--c3), var(--c2)); }
body.sub-raw-materials .road-panel-copy .road-panel-eyebrow { color: var(--c4); }
body.sub-raw-materials .road-panel-copy .road-panel-eyebrow::before { background: linear-gradient(100deg, var(--c4), var(--c5)); }
