/* =========================================================================
   Amigo Roofing — design system
   ---------------------------------------------------------------------------
   Single source of truth for color, type, spacing, motion.
   Colors are derived from the original Amigo logo:
   orange-red accent, charcoal, gray, stone-cream background.
   Will fold in futuristic logo palette once that file lands.
   ========================================================================= */

:root {
  /* --- Color system ----------------------------------------------------- */

  /* Brand — orange-red, from BOTH logos (original + futuristic left chevron) */
  --brand:           #e0431c;  /* primary CTA / accent */
  --brand-hover:     #c53a14;
  --brand-soft:      rgba(224, 67, 28, 0.08);  /* tinted backgrounds */

  /* Secondary accent — electric cyan, from the futuristic logo's right chevron */
  --cyan:            #1ba8c4;  /* deep enough to use on light backgrounds */
  --cyan-bright:     #3fd0e8;  /* glows, highlights, dark-surface accents */
  --cyan-soft:       rgba(27, 168, 196, 0.09);

  /* Premium accent — gold-bronze, from the futuristic AMIGO wordmark. Use sparingly. */
  --gold:            #c9962e;
  --gold-soft:       rgba(201, 150, 46, 0.10);

  /* Ink (text) */
  --ink:             #1a1a1a;  /* headings, AMIGO wordmark color */
  --ink-soft:        #3f3f3f;  /* body copy */
  --muted:           #6b6b6b;  /* secondary text, captions */
  --muted-light:     #9a9a9a;

  /* Lines + surfaces */
  --line:            #e5e1da;
  --line-strong:     #c9c4ba;
  --surface:         #faf8f4;  /* page background, warm off-white */
  --surface-card:    #ffffff;
  --surface-stone:   #f1ede4;

  /* Dark surface for interactive tools (chatbot / dashboard / estimator) */
  --tool-bg:         #0e1217;
  --tool-bg-soft:    #1a2030;
  --tool-line:       #243049;
  --tool-ink:        #e6ecf5;
  --tool-accent:     #4dd4d2;   /* FORGE-style cyan, used only on tools surface */

  /* States */
  --success:         #2ea043;
  --warning:         #d99026;
  --danger:          #c73e3e;

  /* --- Typography ------------------------------------------------------- */

  --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;  /* same fam, just used at scale */
  --font-mono:       ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid type scale: clamp(min, preferred, max). Min sized for ~360px viewport, max for ~1200px+. */
  --fs-xs:           clamp(12px, 0.7vw + 10px, 13px);
  --fs-sm:           clamp(14px, 0.8vw + 12px, 15px);
  --fs-base:         clamp(16px, 0.9vw + 14px, 17px);
  --fs-lg:           clamp(18px, 1.1vw + 15px, 20px);
  --fs-xl:           clamp(22px, 1.6vw + 16px, 26px);
  --fs-2xl:          clamp(28px, 2.5vw + 18px, 36px);
  --fs-3xl:          clamp(36px, 4vw + 18px, 52px);
  --fs-4xl:          clamp(48px, 6vw + 18px, 84px);

  --lh-tight:        1.1;
  --lh-snug:         1.3;
  --lh-base:         1.6;
  --lh-relaxed:      1.75;

  --tracking-tight:  -0.02em;
  --tracking-base:   0;
  --tracking-wide:   0.06em;
  --tracking-wider:  0.12em;

  /* --- Spacing scale (8px base) ---------------------------------------- */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  80px;
  --s-10: 96px;
  --s-11: 128px;
  --s-12: 160px;

  /* --- Radius + shadow ------------------------------------------------- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 24px;
  --r-full: 999px;

  --shadow-sm:  0 1px 2px rgba(15, 22, 35, 0.06);
  --shadow-md:  0 6px 18px rgba(15, 22, 35, 0.08);
  --shadow-lg:  0 18px 36px rgba(15, 22, 35, 0.12);
  --shadow-cta: 0 8px 24px rgba(224, 67, 28, 0.32);

  /* --- Motion ---------------------------------------------------------- */
  --ease:        cubic-bezier(0.2, 0, 0, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:      120ms;
  --t-base:      220ms;
  --t-slow:      360ms;

  /* --- Container ------------------------------------------------------- */
  --container:     1200px;
  --container-md:  900px;
  --container-sm:  680px;
}

/* =========================================================================
   Base
   ========================================================================= */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink-soft);
  background: var(--surface);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--s-4);
  font-weight: 700;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { margin: 0 0 var(--s-4); }

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--brand-hover); }

img, video { max-width: 100%; height: auto; display: block; }

/* Selection */
::selection {
  background: var(--brand);
  color: white;
}

/* =========================================================================
   Layout primitives
   ========================================================================= */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-md { max-width: var(--container-md); margin: 0 auto; padding: 0 var(--s-5); }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 var(--s-5); }

.section { padding: var(--s-10) 0; }
.section-tight { padding: var(--s-8) 0; }

/* =========================================================================
   Header / nav
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-4) var(--s-5);
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
}

.brand__logo {
  height: 50px;
  width: auto;
  display: block;
}

/* legacy text mark, kept for fallback contexts */
.brand__mark {
  font-weight: 800;
  color: var(--ink);
  font-size: var(--fs-lg);
  letter-spacing: var(--tracking-tight);
}

.brand__sub {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  font-weight: 500;
}

.site-footer__logo {
  height: 92px;
  width: auto;
  display: block;
  margin-bottom: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  gap: var(--s-6);
  align-items: center;
}

.nav__link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 0;
  transition: color var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--ink); }

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--brand-hover);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--surface-card);
  /* !important overrides the inline color:#fff / white border that the
     hero ghost buttons carry for the dark hero background, so on hover
     the text + border go dark and stay readable on the light fill. */
  border-color: var(--ink-soft) !important;
  color: var(--ink) !important;
}

.btn--lg { padding: var(--s-4) var(--s-6); font-size: var(--fs-lg); }
.btn--sm { padding: var(--s-2) var(--s-4); font-size: var(--fs-sm); }

/* Gallery button — solid Amigo orange, white text (matches the Call CTA) */
.btn--gallery {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.btn--gallery:hover {
  background: var(--brand-hover);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

/* Header action cluster — keeps the Gallery + Call buttons together */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex: none;
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  padding: var(--s-11) 0 var(--s-10);
  overflow: hidden;
}

.hero__eyebrow {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--s-5);
}

.hero__title {
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--s-5);
  max-width: 18ch;
}

.hero__lede {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: var(--s-7);
}

.hero__ctas {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* =========================================================================
   Hero with video background
   ========================================================================= */

.hero--video {
  padding: 0;
  min-height: 86vh;
  display: flex;
  align-items: center;
  color: #fff;
}

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

.hero--video .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,18,23,0.55) 0%, rgba(14,18,23,0.35) 45%, rgba(14,18,23,0.92) 100%),
    linear-gradient(90deg, rgba(14,18,23,0.78) 0%, rgba(14,18,23,0.15) 60%, rgba(14,18,23,0.15) 100%);
}

.hero--video .hero__title { color: #fff; }
.hero--video .hero__lede { color: rgba(255,255,255,0.86); }

.hero--video .hero__eyebrow {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}

/* =========================================================================
   Trust bar (certifications)
   ========================================================================= */

.trust-bar {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: var(--s-6) 0;
}

.trust-bar__eyebrow {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0 0 var(--s-5);
}

.trust-bar__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}

/* Each logo sits on a clean white chip so the mix of badge styles
   (transparent, navy, blue, dark green) reads consistently. */
.trust-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  height: 72px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
/* Border lights up Amigo orange on hover */
.trust-logo:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}
.trust-logo img {
  max-height: 100%;
  max-width: 148px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* =========================================================================
   Dark section + brand-moment
   ========================================================================= */

.section--dark {
  background: var(--tool-bg);
  color: var(--tool-ink);
}
.section--dark .section-head__title { color: #fff; }
.section--dark .section-head__lede { color: rgba(230,236,245,0.65); }
.section--dark .section-head__eyebrow { color: var(--cyan-bright); }

.brand-moment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}

.brand-moment__video {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  border: 1px solid var(--tool-line);
  background: #000;
}
.brand-moment__video video { display: block; width: 100%; height: auto; }

/* Video + its sound toggle stack together in one grid cell */
.brand-moment__media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}
.brand-moment__media .brand-moment__video { width: 100%; }

/* Sound toggle, sits right under the video, Amigo orange, easy to tap */
.brand-moment__mute {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  min-height: 44px;
  background: var(--brand);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(224, 67, 28, 0.45),
              0 0 14px rgba(224, 67, 28, 0.35);
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.brand-moment__mute:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(224, 67, 28, 0.6),
              0 0 22px rgba(224, 67, 28, 0.55);
}
.brand-moment__mute:active { transform: translateY(1px); }
/* Once sound is on, settle into a calmer confirmed state */
.brand-moment__mute.is-on {
  background: var(--tool-bg-soft);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.brand-moment__mute-icon { font-size: 17px; line-height: 1; }

.brand-moment__copy h2 { color: #fff; }
.brand-moment__copy p { color: rgba(230,236,245,0.72); }

/* =========================================================================
   Process steps
   ========================================================================= */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: var(--s-6);
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: var(--fs-lg);
  margin-bottom: var(--s-4);
}

.process-step h3 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.process-step p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* =========================================================================
   Section header
   ========================================================================= */

.section-head {
  text-align: center;
  margin-bottom: var(--s-8);
}

.section-head__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-3);
}

.section-head__title {
  font-size: var(--fs-3xl);
  max-width: 28ch;
  margin: 0 auto var(--s-4);
}

.section-head__lede {
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
}

/* =========================================================================
   Service grid
   ========================================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-4);
}

.service-card {
  position: relative;
  padding: var(--s-6);
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.service-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-2);
  color: var(--ink);
}

.service-card__desc {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin: 0;
}

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--s-9) 0 var(--s-5);
  margin-top: var(--s-11);
}

.site-footer a { color: rgba(255, 255, 255, 0.9); }
.site-footer a:hover { color: #fff; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__head {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--s-3);
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s-2); font-size: var(--fs-sm); }

/* =========================================================================
   Amigo Receptionist — chat widget (dark tools surface)
   ========================================================================= */

.amigo-chat {
  position: fixed;
  bottom: var(--s-5);
  right: var(--s-5);
  z-index: 200;
  font-family: var(--font-sans);
}

/* Floating action button */
.amigo-chat__fab {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  background: var(--tool-bg);
  color: var(--tool-ink);
  border: 1px solid var(--tool-line);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28),
              0 0 18px rgba(224, 67, 28, 0.45);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease);
  animation: amigo-fab-glow 2.6s var(--ease) infinite;
}
@keyframes amigo-fab-glow {
  0%, 100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28),
                         0 0 16px rgba(224, 67, 28, 0.35); }
  50%      { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28),
                         0 0 28px rgba(224, 67, 28, 0.7); }
}
.amigo-chat__fab:hover {
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.36),
              0 0 30px rgba(224, 67, 28, 0.75),
              0 0 0 3px var(--brand-soft);
}
@media (prefers-reduced-motion: reduce) {
  .amigo-chat__fab { animation: none; }
}
.amigo-chat__fab-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
  flex-shrink: 0;
}

/* Panel */
.amigo-chat__panel {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 380px;
  max-width: calc(100vw - var(--s-6));
  height: 560px;
  max-height: calc(100vh - var(--s-7));
  background: var(--tool-bg);
  border: 1px solid var(--tool-line);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-base) var(--ease);
}
.amigo-chat.is-open .amigo-chat__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.amigo-chat.is-open .amigo-chat__fab { display: none; }

/* Panel header */
.amigo-chat__header {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--tool-line);
  background: var(--tool-bg-soft);
}
.amigo-chat__avatar {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.amigo-chat__title {
  flex: 1;
  min-width: 0;
}
.amigo-chat__name {
  font-weight: 700;
  color: var(--tool-ink);
  font-size: var(--fs-sm);
}
.amigo-chat__status {
  font-size: var(--fs-xs);
  color: var(--cyan-bright);
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.amigo-chat__status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--cyan-bright);
}
.amigo-chat__close {
  background: transparent;
  border: none;
  color: var(--muted-light);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: var(--s-1);
  transition: color var(--t-fast) var(--ease);
}
.amigo-chat__close:hover { color: var(--tool-ink); }

/* Messages */
.amigo-chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.amigo-chat__msg {
  max-width: 84%;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.amigo-chat__msg--bot {
  align-self: flex-start;
  background: var(--tool-bg-soft);
  color: var(--tool-ink);
  border: 1px solid var(--tool-line);
  border-bottom-left-radius: var(--r-sm);
}
.amigo-chat__msg--user {
  align-self: flex-end;
  background: var(--cyan);
  color: #04181c;
  font-weight: 500;
  border-bottom-right-radius: var(--r-sm);
}
.amigo-chat__typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: var(--s-3) var(--s-4);
}
.amigo-chat__typing span {
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--muted-light);
  animation: amigoTyping 1.2s infinite ease-in-out;
}
.amigo-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.amigo-chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes amigoTyping {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

/* Input */
.amigo-chat__input {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-4);
  border-top: 1px solid var(--tool-line);
  background: var(--tool-bg-soft);
}
.amigo-chat__input textarea {
  flex: 1;
  resize: none;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  padding: var(--s-3);
  border-radius: var(--r-md);
  border: 1px solid var(--tool-line);
  background: var(--tool-bg);
  color: var(--tool-ink);
  max-height: 96px;
  line-height: var(--lh-snug);
}
.amigo-chat__input textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.amigo-chat__input textarea::placeholder { color: var(--muted-light); }
.amigo-chat__send {
  background: var(--cyan);
  color: #04181c;
  border: none;
  border-radius: var(--r-md);
  padding: 0 var(--s-4);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.amigo-chat__send:hover { background: var(--cyan-bright); }
.amigo-chat__send:disabled { opacity: 0.4; cursor: not-allowed; }

/* Voice button — talk to Taylor live */
.amigo-chat__voice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  margin: 0 var(--s-4) var(--s-3);
  padding: var(--s-3) var(--s-4);
  background: var(--brand);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              color var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.amigo-chat__voice-btn:hover { background: var(--brand-hover); }
.amigo-chat__voice-btn:active { transform: translateY(1px); }
.amigo-chat__voice-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.amigo-chat__voice-btn.is-connecting {
  background: var(--tool-bg-soft);
  color: var(--muted-light);
  border-color: var(--tool-line);
  cursor: wait;
}
.amigo-chat__voice-btn.is-live {
  background: rgba(224, 67, 28, 0.16);
  color: var(--brand);
  border-color: var(--brand);
}
.amigo-chat__voice-btn.is-live svg { animation: amigoVoicePulse 1.4s infinite ease-in-out; }
@keyframes amigoVoicePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (max-width: 480px) {
  .amigo-chat { bottom: var(--s-4); right: var(--s-4); }
  .amigo-chat__panel {
    width: calc(100vw - var(--s-5));
    height: calc(100vh - var(--s-8));
  }
}

/* =========================================================================
   Utility
   ========================================================================= */

.tel { font-weight: 600; color: inherit; white-space: nowrap; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 900px) {
  .brand-moment { grid-template-columns: 1fr; gap: var(--s-6); }
  .process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* Mobile nav: hide the inline text links, show the hamburger button.
     Header keeps its original spacing — logo + hamburger + Call. */
  .site-header__inner > .nav { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__bottom { flex-direction: column; gap: var(--s-3); text-align: center; }
  .hero { padding: var(--s-8) 0 var(--s-7); }
  .hero--video { min-height: 78vh; }
  .trust-bar__inner { gap: var(--s-4) var(--s-5); }
}

/* ---- Mobile hamburger + drawer --------------------------------------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-left: var(--s-2);
  flex: none;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease), top 0.25s var(--ease), bottom 0.25s var(--ease);
}
.nav-toggle__bars::before {
  position: absolute;
  top: -7px;
  left: 0;
}
.nav-toggle__bars::after {
  position: absolute;
  bottom: -7px;
  left: 0;
}
body[data-menu="open"] .nav-toggle__bars {
  background: transparent;
}
body[data-menu="open"] .nav-toggle__bars::before {
  top: 0;
  transform: rotate(45deg);
}
body[data-menu="open"] .nav-toggle__bars::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 360px);
  background: var(--surface);
  z-index: 100;
  box-shadow: -8px 0 30px rgba(0,0,0,0.18);
  padding: 88px var(--s-5) var(--s-5);
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  overflow-y: auto;
}
body[data-menu="open"] .mobile-drawer { transform: translateX(0); }

.mobile-drawer__link {
  display: block;
  padding: 14px 6px;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.mobile-drawer__link:hover,
.mobile-drawer__link:focus {
  color: var(--brand);
}
.mobile-drawer__link--active { color: var(--brand); }

.mobile-drawer__cta {
  margin-top: var(--s-4);
  width: 100%;
  text-align: center;
}

.mobile-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.55);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
body[data-menu="open"] .mobile-drawer__backdrop {
  opacity: 1;
  pointer-events: auto;
}
body[data-menu="open"] { overflow: hidden; }

@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Legal pages — privacy policy, terms
   ========================================================================= */
.legal__meta {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-6);
}
.legal h2 {
  font-size: var(--fs-xl);
  margin: var(--s-7) 0 var(--s-3);
}
.legal h2:first-of-type { margin-top: var(--s-5); }
.legal h3 {
  font-size: var(--fs-lg);
  margin: var(--s-5) 0 var(--s-2);
}
.legal p,
.legal li { color: var(--ink-soft); }
.legal ul {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-5);
}
.legal li { margin-bottom: var(--s-2); }
.legal__updated {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* =========================================================================
   Trade / service pages — premium per-trade landing
   ========================================================================= */
.trade-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0c1119 0%, #161e2b 55%, #0c1119 100%);
  color: var(--tool-ink);
  padding: var(--s-9) 0 var(--s-9);
}
.trade-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63, 208, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 232, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 35%, transparent 100%);
  pointer-events: none;
}
.trade-hero > .container { position: relative; z-index: 1; }
.trade-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.trade-hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--cyan-bright);
  padding: 4px 10px;
  border: 1px solid rgba(63, 208, 232, 0.4);
  border-radius: var(--r-full);
  margin-bottom: var(--s-4);
}
.trade-hero__title {
  font-size: clamp(34px, 4vw + 10px, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: var(--s-4);
}
.trade-hero__lede {
  font-size: var(--fs-lg);
  color: rgba(230, 236, 245, 0.78);
  margin-bottom: var(--s-6);
  max-width: 52ch;
}
.trade-hero__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* The visual slot: branded chevron art now, drop in a real photo later */
.trade-hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0a0d12;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.trade-hero__visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.trade-hero__visual--art::before,
.trade-hero__visual--art::after {
  content: "";
  position: absolute;
  width: 220%; height: 22%;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 28%, var(--brand-hover) 50%, var(--brand) 72%, transparent 100%);
  transform: rotate(-22deg);
  opacity: 0.85;
  filter: blur(0.5px);
}
.trade-hero__visual--art::before { top: 8%; left: -40%; opacity: 0.9; }
.trade-hero__visual--art::after {
  top: 48%; left: -45%;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 30%, var(--cyan-bright) 50%, var(--cyan) 70%, transparent 100%);
  opacity: 0.55;
  height: 14%;
}
.trade-hero__visual--art .trade-hero__visual-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 70% 30%, rgba(224, 67, 28, 0.35), transparent 70%);
}

/* Map embed fills the visual slot */
.location-map iframe,
.location-map svg {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Systems section — what the trade covers */
.trade-systems {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s-8);
  align-items: start;
}
.trade-systems__head h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.01em;
}
.trade-systems__head p { color: var(--muted); }
.trade-systems__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  list-style: none;
  margin: 0; padding: 0;
}
.trade-systems__list li {
  position: relative;
  padding: var(--s-4) var(--s-5);
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 600;
  color: var(--ink);
  counter-increment: trade-step;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out);
}
.trade-systems__list { counter-reset: trade-step; }
.trade-systems__list li::before {
  content: counter(trade-step, decimal-leading-zero);
  display: block;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}
.trade-systems__list li:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.trade-systems__list li .sys-desc {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-top: 4px;
}

/* Why-Amigo value strip */
.trade-why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.trade-why__item {
  padding: var(--s-5);
  background: var(--surface-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.trade-why__item h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-2);
}
.trade-why__item p { color: var(--muted); margin: 0; }

/* Final CTA bar */
.trade-cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}
.trade-cta h2 { color: #fff; margin: 0; font-size: var(--fs-2xl); letter-spacing: -0.01em; }
.trade-cta p { color: rgba(255,255,255,0.7); margin: 6px 0 0; }
.trade-cta__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

@media (max-width: 900px) {
  .trade-hero__grid { grid-template-columns: 1fr; }
  .trade-hero__visual { aspect-ratio: 16 / 10; max-height: 320px; }
  .trade-systems { grid-template-columns: 1fr; }
  .trade-why { grid-template-columns: 1fr; }
  .trade-cta { flex-direction: column; align-items: stretch; }
  .trade-cta__actions { width: 100%; flex-direction: column; align-items: stretch; }
  .trade-cta__actions .btn { width: 100%; justify-content: center; }
  .trade-hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 560px) {
  .trade-systems__list { grid-template-columns: 1fr; }
}

/* =========================================================================
   Creative effects — themed, tasteful. All motion respects reduced-motion.
   Driven by js/effects.js.
   ========================================================================= */

/* Header settles into deeper frosted glass once the page scrolls */
.site-header {
  transition: background var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(250, 248, 244, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 6px 24px rgba(20, 24, 30, 0.10);
}

/* Faint blueprint grid behind dark sections — construction, not corny */
.section--dark { position: relative; }
.section--dark > .container { position: relative; z-index: 1; }
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(63, 208, 232, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 208, 232, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 42%, #000 38%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 85% at 50% 42%, #000 38%, transparent 100%);
}

/* Scroll reveal — sections rise gently into view */
.fx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  will-change: opacity, transform;
}
.fx-reveal.fx-in { opacity: 1; transform: none; }

/* Click spark — a quick orange impact burst, like driving a nail home */
.fx-spark-wrap {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 0; height: 0;
}
.fx-spark {
  position: absolute;
  width: 6px; height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 6px rgba(224, 67, 28, 0.9);
  animation: fx-spark-fly 0.5s var(--ease-out) forwards;
}
@keyframes fx-spark-fly {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.2); opacity: 0; }
}

/* Service cards get measurement-style corner brackets on hover */
.service-card::before,
.service-card::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 2px solid var(--brand);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
}
.service-card::before {
  top: 10px; left: 10px;
  border-right: none; border-bottom: none;
}
.service-card::after {
  bottom: 10px; right: 10px;
  border-left: none; border-top: none;
}
.service-card:hover::before,
.service-card:hover::after { opacity: 1; }

/* =========================================================================
   Gallery page
   ========================================================================= */
.gallery-hero {
  padding: var(--s-7) 0 var(--s-5);
  background: var(--surface-stone);
  text-align: center;
}
.gallery-hero__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--s-3);
}
.gallery-hero__title {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 var(--s-3);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.gallery-hero__lede {
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.section--gallery { padding-top: var(--s-6); }

/* CSS columns gives a true masonry layout, no JS needed */
.gallery-grid {
  column-count: 3;
  column-gap: var(--s-4);
}
@media (max-width: 1000px) { .gallery-grid { column-count: 2; } }
@media (max-width: 600px)  { .gallery-grid { column-count: 1; } }

.gallery-item {
  break-inside: avoid;
  margin: 0 0 var(--s-4);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
  background: var(--ink);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.04); }

/* Subtle orange corner brackets on hover, matching other cards */
.gallery-item::before,
.gallery-item::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--brand);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
  z-index: 2;
}
.gallery-item::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.gallery-item::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.gallery-item:hover::before,
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--s-4);
}
.lightbox[data-open="true"] {
  display: flex;
  animation: lb-fade 0.18s ease-out;
}
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figure {
  margin: 0;
  max-width: min(95vw, 1400px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  user-select: none;
}
.lightbox__caption {
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-sm);
  margin-top: var(--s-3);
  text-align: center;
  letter-spacing: var(--tracking-wide);
  max-width: 80ch;
  line-height: 1.5;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-base) var(--ease);
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,0.20); }
@media (max-width: 600px) {
  .lightbox__close, .lightbox__nav { width: 40px; height: 40px; font-size: 22px; }
  .lightbox__close { top: 12px; right: 12px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

/* Active nav link */
.nav__link--active {
  color: var(--brand);
  font-weight: 700;
}

/* =========================================================================
   Floating photo parallax (homepage only — opt in with .has-floats on <body>)
   ========================================================================= */
.float-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.float-bg__shard {
  position: absolute;
  width: var(--shard-w, 140px);
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.10);
  transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg));
  will-change: transform;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}
.float-bg__shard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Photos are placed via inline style for top/left, and given a speed via data-speed */
.float-bg__shard--sm { --shard-w: 100px; opacity: 0.7; }
.float-bg__shard--md { --shard-w: 160px; opacity: 0.85; }
.float-bg__shard--lg { --shard-w: 220px; opacity: 0.9; }

/* Mobile: smaller and fewer */
@media (max-width: 720px) {
  .float-bg__shard--lg { --shard-w: 130px; }
  .float-bg__shard--md { --shard-w: 100px; }
  .float-bg__shard--sm { --shard-w: 80px; opacity: 0.55; }
  /* hide the noisier ones on small screens */
  .float-bg__shard[data-mobile="hide"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-reveal { opacity: 1; transform: none; transition: none; }
  .fx-spark { display: none; }
  .site-header { transition: none; }
  .float-bg { display: none; }
  .gallery-item img { transition: none; }
  .lightbox[data-open="true"] { animation: none; }
}
