/* ============================================================================
   CreativeConnect — visual enhancement layer (v2)
   Loaded AFTER style.css. Adds depth, motion, hover states, a preloader,
   hero effects and the film-showcase sections. Nothing here changes copy,
   routes or functionality — it's styling/animation only.
   ========================================================================== */

:root {
  --cc-gold: #e8a33d;
  --cc-gold-soft: rgba(232, 163, 61, 0.35);
  --cc-ink: #0e0f12;
  --cc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cc-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --cc-shadow-gold: 0 20px 46px -20px rgba(232, 163, 61, 0.55);
}

/* --------------------------------------------------------------------------
   1. Brand logo mark (header + footer)
   -------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand__mark {
  width: 30px; height: 30px; flex: none; display: block;
  transition: transform 0.5s var(--cc-ease);
}
.brand:hover .brand__mark { transform: rotate(90deg); }

/* --------------------------------------------------------------------------
   2. First-visit preloader (injected by effects.js)
   -------------------------------------------------------------------------- */
.cc-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 50% 30%, #16181d 0%, #0b0c0f 70%);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.cc-preloader.is-hidden { opacity: 0; visibility: hidden; }
.cc-preloader__logo { width: 84px; height: 84px; animation: ccSpinPulse 1.6s var(--cc-ease) infinite; }
.cc-preloader__word {
  margin-top: 18px; letter-spacing: 0.35em; text-transform: uppercase;
  font-size: 0.72rem; color: #9aa1ad; opacity: 0; animation: ccFadeIn 0.8s ease 0.25s forwards;
}
@keyframes ccSpinPulse {
  0%   { transform: rotate(0deg)   scale(0.9); opacity: 0.75; }
  50%  { transform: rotate(180deg) scale(1.05); opacity: 1; }
  100% { transform: rotate(360deg) scale(0.9); opacity: 0.75; }
}
@keyframes ccFadeIn { to { opacity: 1; } }

/* --------------------------------------------------------------------------
   3. Hero — animated background, floating shapes, cursor glow, parallax
   Layers are injected by effects.js into .hero (kept behind .hero__content).
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__content { position: relative; z-index: 3; }
.hero__media { will-change: transform; }

.hero__aurora {
  position: absolute; inset: -20%; z-index: 2; pointer-events: none;
  background:
    radial-gradient(38% 42% at 20% 30%, rgba(232, 163, 61, 0.22), transparent 60%),
    radial-gradient(34% 38% at 82% 68%, rgba(90, 140, 200, 0.18), transparent 60%);
  filter: blur(6px); animation: ccAurora 16s ease-in-out infinite alternate;
}
@keyframes ccAurora {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.hero__shapes { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero__shape {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(232, 163, 61, 0.5), rgba(232, 163, 61, 0));
  filter: blur(2px); opacity: 0.5; animation: ccFloat 14s ease-in-out infinite;
}
.hero__shape--1 { width: 120px; height: 120px; left: 8%;  top: 62%; animation-delay: 0s; }
.hero__shape--2 { width: 70px;  height: 70px;  left: 74%; top: 22%; animation-delay: -3s; }
.hero__shape--3 { width: 46px;  height: 46px;  left: 55%; top: 78%; animation-delay: -6s; }
.hero__shape--4 { width: 90px;  height: 90px;  left: 88%; top: 55%; animation-delay: -9s; }
@keyframes ccFloat {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-26px) translateX(12px); }
}

.hero__glow {
  position: absolute; top: 0; left: 0; z-index: 2; width: 460px; height: 460px;
  margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.20) 0%, rgba(232, 163, 61, 0) 70%);
  opacity: 0; transition: opacity 0.3s ease; will-change: transform;
}
.hero.is-pointer .hero__glow { opacity: 1; }

/* --------------------------------------------------------------------------
   4. Consistent hover states (cards, buttons, images) — site-wide
   -------------------------------------------------------------------------- */
.btn { transition: transform 0.25s var(--cc-ease), box-shadow 0.25s var(--cc-ease), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: var(--cc-shadow-gold); }
.btn-ghost:hover, .btn-outline:hover { box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6); }

.package-card, .review, .step, .showcase-item, .portfolio-item {
  transition: transform 0.35s var(--cc-ease), box-shadow 0.35s var(--cc-ease), border-color 0.35s ease;
}
.package-card { will-change: transform; }
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cc-shadow), 0 0 0 1px var(--cc-gold-soft);
}
.review:hover, .step:hover {
  transform: translateY(-4px);
  box-shadow: var(--cc-shadow);
}

.package-card .media, .portfolio-item { overflow: hidden; }
.package-card .media img, .portfolio-item img, .showcase-item img {
  transition: transform 0.6s var(--cc-ease), filter 0.4s ease;
}
.package-card:hover .media img,
.portfolio-item:hover img { transform: scale(1.07); }
.portfolio-item:hover { box-shadow: var(--cc-shadow-gold); }

.filter-tab { transition: transform 0.2s var(--cc-ease), background-color 0.2s ease, color 0.2s ease; }
.filter-tab:hover { transform: translateY(-1px); }

/* Nav links: subtle animated underline */
.primary-nav a:not(.btn) { position: relative; }
.primary-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--cc-gold); transition: width 0.25s var(--cc-ease);
}
.primary-nav a:not(.btn):hover::after { width: 100%; }

/* --------------------------------------------------------------------------
   5. Film showcase sections (3-image row + 4-image grid)
   -------------------------------------------------------------------------- */
.showreel-row, .showreel-grid { display: grid; gap: 18px; margin-top: 8px; }
.showreel-row { grid-template-columns: repeat(3, 1fr); }
.showreel-grid { grid-template-columns: repeat(4, 1fr); }

.showcase-item {
  position: relative; margin: 0; border-radius: 16px; overflow: hidden;
  background: var(--surface); box-shadow: var(--cc-shadow);
  border: 1px solid var(--line);
}
.showcase-item img {
  display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.showreel-row .showcase-item img { aspect-ratio: 16 / 10; }
.showcase-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgba(8, 9, 11, 0.92) 10%, rgba(8, 9, 11, 0) 100%);
  transform: translateY(6px); opacity: 0.92; transition: transform 0.35s var(--cc-ease), opacity 0.35s ease;
}
.showcase-item__title { font-weight: 700; font-size: 1.02rem; color: #fff; letter-spacing: 0.01em; }
.showcase-item__tag {
  align-self: flex-start; margin-top: 4px; font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cc-gold);
  border: 1px solid var(--cc-gold-soft); border-radius: 999px; padding: 2px 9px;
}
.showcase-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--cc-shadow-gold);
  border-color: var(--cc-gold-soft);
}
.showcase-item:hover img { transform: scale(1.08); filter: saturate(1.08); }
.showcase-item:hover figcaption { transform: translateY(0); opacity: 1; }

/* --------------------------------------------------------------------------
   6. Depth / polish for existing sections (no copy changes)
   -------------------------------------------------------------------------- */
.section__head h2 { position: relative; }
.trust { border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.final-cta__box, .band__inner {
  position: relative;
  background-image: linear-gradient(180deg, rgba(232, 163, 61, 0.06), rgba(255, 255, 255, 0.01));
  box-shadow: var(--cc-shadow);
}
.package-card--popular { box-shadow: var(--cc-shadow-gold); }

/* Slightly stronger, smoother reveal for enter animations (extends main.js) */
[data-reveal] { transition: opacity 0.7s var(--cc-ease), transform 0.7s var(--cc-ease); }

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .showreel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .showreel-row { grid-template-columns: 1fr; }
  .showreel-grid { grid-template-columns: 1fr 1fr; }
  .hero__glow { display: none; }
}
@media (max-width: 420px) {
  .showreel-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   8. Graceful degradation: touch devices + reduced motion
   -------------------------------------------------------------------------- */
@media (hover: none) {
  .hero__glow { display: none; }               /* no dead cursor-glow on touch */
  .package-card:hover, .showcase-item:hover,
  .review:hover, .step:hover, .btn:hover { transform: none; }
  .showcase-item figcaption { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__aurora, .hero__shape, .cc-preloader__logo { animation: none !important; }
  .hero__glow { display: none; }
  [data-reveal] { transition: opacity 0.3s ease; transform: none !important; }
  .package-card:hover .media img, .portfolio-item:hover img, .showcase-item:hover img { transform: none; }
}

/* ==========================================================================
   9. Effects ported from the robotics/AMOX project (adapted + CSP-safe)
   ========================================================================== */

/* 9a. Hero image slideshow (replaces the single hero image) */
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__dots {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 13px;
}
.hero__dots button {
  width: 12px; height: 12px; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; border: 2px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.3s var(--cc-ease), background-color 0.3s ease, border-color 0.3s ease;
}
.hero__dots button:hover { border-color: #fff; }
.hero__dots button.is-active { background: var(--cc-gold); border-color: var(--cc-gold); transform: scale(1.2); }

/* 9b. Rotating icon on hover — "How it works" steps (their .icon-wrapper effect) */
.step__icon { transition: transform 0.55s var(--cc-ease), background-color 0.4s ease, color 0.4s ease; }
.step__icon svg { transition: transform 0.55s var(--cc-ease); }
.step:hover .step__icon { transform: rotate(135deg); background: var(--cc-gold); color: #14100a; }
.step:hover .step__icon svg { transform: rotate(-135deg); }

/* 9c. Card tilt — JS drives the transform; kill the CSS transition while tilting
   so it tracks the cursor instantly (smooth reset returns when the attr is removed). */
.package-card[data-tilting], .showcase-item[data-tilting] { transition: none !important; }

/* 9e. About-the-studio copy block */
.about-copy { max-width: 66ch; }
.about-copy p { color: var(--muted, #9aa1ad); margin-bottom: 1rem; line-height: 1.7; }
.about-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

/* 9d. Animated stats band ("by the numbers") */
.cc-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 8px; }
.cc-stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.cc-stat__icon {
  width: 72px; height: 72px; display: grid; place-items: center; color: var(--cc-gold);
  border: 1px solid var(--cc-gold-soft); border-radius: 14px;
  transition: transform 0.5s var(--cc-ease), background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.cc-stat__icon svg { width: 30px; height: 30px; transition: transform 0.5s var(--cc-ease); }
.cc-stat:hover .cc-stat__icon { transform: rotate(135deg); background: var(--cc-gold); color: #14100a; border-color: var(--cc-gold); }
.cc-stat:hover .cc-stat__icon svg { transform: rotate(-135deg); }
.cc-stat__num {
  font-family: "Playfair Display", Georgia, serif; font-weight: 700;
  font-size: 2.6rem; line-height: 1; color: var(--cc-gold);
}
.cc-stat__num .suffix { color: var(--cc-gold); }
.cc-stat__label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 720px) { .cc-stats__grid { grid-template-columns: 1fr 1fr; row-gap: 30px; } }

@media (hover: none) {
  .step:hover .step__icon, .cc-stat:hover .cc-stat__icon { transform: none; background: transparent; color: var(--cc-gold); }
  .step:hover .step__icon svg, .cc-stat:hover .cc-stat__icon svg { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity 0.4s ease; }
  .step:hover .step__icon, .cc-stat:hover .cc-stat__icon { transform: none; }
  .step:hover .step__icon svg, .cc-stat:hover .cc-stat__icon svg { transform: none; }
}

/* ==========================================================================
   10. Light theme + lamp toggle
   ========================================================================== */

/* Smooth cross-fade between themes */
body, .site-header, .package-card, .review, .step, .showcase-item,
.cookie-banner, .site-footer, .trust, .cc-stat__icon, .btn {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

:root[data-theme="light"] {
  --bg:        #F5F2EC;
  --surface:   #FFFFFF;
  --surface-2: #EFEAE1;
  --text:      #1B1D22;
  --muted:     #5E6472;
  --accent:    #B4740F;   /* darker gold for readable contrast on light */
  --accent-ink:#FFFFFF;
  --line:      #E4DED3;
  --shadow:    0 10px 30px rgba(40, 33, 20, 0.12);
  --shadow-lg: 0 20px 50px rgba(40, 33, 20, 0.18);
  /* enhance-layer tokens */
  --cc-gold: #B4740F;
  --cc-gold-soft: rgba(180, 116, 15, 0.30);
  --cc-shadow: 0 18px 40px -18px rgba(40, 33, 20, 0.22);
  --cc-shadow-gold: 0 20px 46px -20px rgba(180, 116, 15, 0.40);
}

/* Header chrome (hardcoded dark in style.css) */
:root[data-theme="light"] .site-header { background: rgba(246, 243, 238, 0.85); }

/* The hero always sits over a dark photo, so keep its text light in both themes */
.hero__content .eyebrow { color: #E8A33D; }
.hero__content h1, .hero__content .hero__sub { color: #F4F1EA; }
:root[data-theme="light"] .hero__content .btn-ghost { color: #F4F1EA; border-color: rgba(255, 255, 255, 0.5); }

/* --------------------------------------------------------------------------
   Lamp dark/light toggle (hangs just below the header)
   -------------------------------------------------------------------------- */
.cc-lamp {
  position: fixed; top: 62px; right: clamp(14px, 4vw, 40px); z-index: 250;
  display: flex; flex-direction: column; align-items: center;
  background: none; border: 0; padding: 0; cursor: pointer;
  --cc-cord: 52px;
}
.cc-lamp__cord {
  width: 2px; height: var(--cc-cord);
  background: linear-gradient(var(--line), var(--muted));
  transition: height 0.25s var(--cc-ease);
}
.cc-lamp__bulb {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted);
  background: radial-gradient(circle at 50% 38%, #3b404b, #23262e);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, transform 0.3s var(--cc-ease);
}
.cc-lamp__bulb svg { width: 21px; height: 21px; }
.cc-lamp:hover .cc-lamp__cord { height: calc(var(--cc-cord) + 7px); }
.cc-lamp:hover .cc-lamp__bulb { transform: translateY(3px); }
.cc-lamp:focus-visible { outline: none; }
.cc-lamp:focus-visible .cc-lamp__bulb { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Bulb ON in light mode — warm glow */
:root[data-theme="light"] .cc-lamp__bulb {
  color: #8a5a12;
  background: radial-gradient(circle at 50% 38%, #fff6dc 0%, #f6c651 70%);
  box-shadow: 0 0 22px 6px rgba(246, 198, 81, 0.65), 0 0 60px 16px rgba(246, 198, 81, 0.30);
}

/* Pull animation on click */
.cc-lamp.is-pull .cc-lamp__bulb { animation: ccLampPull 0.5s var(--cc-ease); }
@keyframes ccLampPull {
  0% { transform: translateY(0); }
  35% { transform: translateY(9px); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .cc-lamp.is-pull .cc-lamp__bulb { animation: none; }
  body, .site-header, .package-card, .review, .step, .showcase-item,
  .cookie-banner, .site-footer, .trust, .cc-stat__icon, .btn { transition: none; }
}

/* ==========================================================================
   11. Fire lantern = dark/light toggle (real lamp photos, hung in chains)
   ========================================================================== */
.lantern {
  position: fixed; top: 0; right: clamp(16px, 5vw, 58px); z-index: 90;
  width: 76px; display: flex; flex-direction: column; align-items: center;
  padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lantern:focus-visible { outline: none; }
.lantern:focus-visible .lantern__lamp { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 12px; }

/* hanging chain (SVG links repeated); its top tucks behind the sticky header */
.lantern__chain {
  width: 15px; height: 58px; margin-bottom: -6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='22' viewBox='0 0 15 22'%3E%3Cellipse cx='7.5' cy='6' rx='3.3' ry='6.2' fill='none' stroke='%234a453c' stroke-width='2.3'/%3E%3Cellipse cx='7.5' cy='16' rx='6' ry='3.6' fill='none' stroke='%23332f28' stroke-width='2.3'/%3E%3C/svg%3E");
  background-repeat: repeat-y; background-position: center top;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}

.lantern__lamp {
  position: relative; width: 76px; height: 114px;
  transform-origin: 50% -8%;
  animation: lanternSway 5.5s ease-in-out infinite;
}
.lantern:hover .lantern__lamp { animation-duration: 3s; }

.lantern__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity 0.5s ease; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}
.lantern__img--off { opacity: 1; }
.lantern__img--lit { opacity: 0; }
.lantern.is-lit .lantern__img--off { opacity: 0; }
.lantern.is-lit .lantern__img--lit { opacity: 1; }

/* warm glow bleeding out (JS pulses opacity + image brightness when lit) */
.lantern__glow {
  position: absolute; left: 50%; top: 56%; width: 175px; height: 175px; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(255,150,45,0.6) 0%, rgba(255,120,25,0.22) 38%, rgba(255,110,20,0) 70%);
  filter: blur(7px); opacity: 0; transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}
.lantern.is-lit .lantern__glow { opacity: 0.8; }
.lantern:hover .lantern__glow { transform: translate(-50%, -50%) scale(1.12); filter: blur(5px) brightness(1.15); }

/* smoke wisp when blown out */
.lantern__smoke {
  position: absolute; left: 50%; top: 30%; width: 8px; height: 22px; transform: translate(-50%, 0) scale(0.5);
  border-radius: 50%; background: linear-gradient(to top, rgba(210,210,210,0.5), rgba(210,210,210,0)); filter: blur(3px);
  opacity: 0; pointer-events: none; z-index: 3;
}
.lantern.is-smoking .lantern__smoke { animation: lanternSmoke 0.9s ease-out forwards; }

@keyframes lanternSway { 0%, 100% { transform: rotate(-1.3deg); } 50% { transform: rotate(1.3deg); } }
@keyframes lanternSmoke {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  25% { opacity: 0.5; }
  100% { opacity: 0; transform: translate(-50%, -34px) scaleX(1.5) scaleY(1.9); }
}

@media (max-width: 600px) { .lantern { transform: scale(0.82); transform-origin: top right; right: 8px; } }

@media (prefers-reduced-motion: reduce) {
  .lantern__lamp { animation: none; }
  .lantern__smoke { display: none; }
  .lantern__img { transition: opacity 0.25s ease; }
}

/* ==========================================================================
   12. Services grid + FAQ
   ========================================================================== */
.services-grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.faq-list { display: grid; gap: 0.8rem; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.2rem; transition: border-color 0.25s ease; }
.faq-item[open] { border-color: var(--cc-gold-soft); }
.faq-item summary {
  cursor: pointer; padding: 1.05rem 0; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; transition: transform 0.25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 1.1rem; color: var(--muted); }

/* ==========================================================================
   13. Navigation bar upgrade
   ========================================================================== */
/* smooth transitions + shrink-on-scroll */
.site-header { transition: background-color 0.3s ease, box-shadow 0.3s ease; }
.site-header__inner { transition: min-height 0.3s ease; }
.site-header.is-scrolled { background: rgba(14, 15, 18, 0.94); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.55); }
.site-header.is-scrolled .site-header__inner { min-height: 54px; }
:root[data-theme="light"] .site-header.is-scrolled { background: rgba(246, 243, 238, 0.97); box-shadow: 0 10px 30px -12px rgba(40, 33, 20, 0.16); }

/* scroll progress bar */
#cc-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%; z-index: 200; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), #ffd27a);
}

/* active section link (works with the underline from section 4) */
.primary-nav a.is-active { color: var(--accent); }
.primary-nav a.is-active::after { width: 100%; }

/* animate the hamburger into an X (driven by aria-expanded from main.js) */
.nav-toggle span { transition: transform 0.3s ease, opacity 0.2s ease; transform-origin: center; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown: shadow + slide-in */
.primary-nav.is-open {
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
  animation: navDrop 0.25s ease;
}
.primary-nav.is-open a { transition: background-color 0.2s ease, color 0.2s ease; }
.primary-nav.is-open a:hover { background: var(--surface-2); }
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header__inner, #cc-progress, .nav-toggle span { transition: none; }
  .primary-nav.is-open { animation: none; }
}

/* Anti-spam honeypot (visually hidden, off-screen) */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
