/* ==========================================================================
   1. TOKENS
   The admin's theme sets --primary, --bg, --text and --font on :root right
   after this stylesheet loads (see DESIGN-CONTRACT.md → "Styling"). Every
   other colour below is derived from those four with color-mix(), so the
   whole page turns over when the client picks a new theme. Never hardcode
   a second brand colour outside this block.
   ========================================================================== */

:root {
  /* the four the admin overwrites — these are this design's own defaults */
  --primary: #2b6cb0;
  --bg: #ffffff;
  --text: #16181d;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* derived colours — color-mix() only, never a new literal colour */
  --primary-hover: color-mix(in srgb, var(--primary) 85%, black);
  --primary-soft: color-mix(in srgb, var(--primary) 12%, var(--bg));
  --muted: color-mix(in srgb, var(--text) 60%, var(--bg));
  --border: color-mix(in srgb, var(--text) 15%, var(--bg));
  --surface: color-mix(in srgb, var(--bg) 96%, var(--text));
  --surface-2: color-mix(in srgb, var(--bg) 90%, var(--text));
  --on-primary: color-mix(in srgb, white 92%, var(--primary));

  /* fixed colours, never from the theme: a stock badge stays green / amber / red whatever the
     brand colour is, and the gallery's lightbox is always dark */
  --status-ok: #05683c;
  --status-ok-bg: #e6f5ee;
  --status-low: #92400e;
  --status-low-bg: #fef3c7;
  --status-out: #b42318;
  --status-out-bg: #fdeceb;
  --backdrop: rgba(10, 8, 6, 0.85);
  --on-backdrop: rgba(255, 255, 255, 0.9);
  --hero-shade-top: rgba(20, 16, 12, 0.25);
  --hero-shade-bottom: rgba(20, 16, 12, 0.6);

  /* spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  /* radius scale */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* type scale — 1.25 ratio off a 1rem base */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;

  /* motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --duration-fast: 0.2s;
  --duration-base: 0.4s;
  --duration-slow: 0.8s;
}

/* ==========================================================================
   2. BASE AND RESET
   ========================================================================== */

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

html {
  color-scheme: light;
  /* Lenis (js/kit.js) owns smooth scrolling; the browser's own stays off. */
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: var(--primary);
  text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent);
}

a:hover {
  color: var(--primary-hover);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Wide things (tables, code, wide images) scroll in place, never the page. */
pre,
table,
.overflow-x {
  max-width: 100%;
  overflow-x: auto;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* js/site.js creates one of these after each form to announce data.message
   or data.error (DESIGN-CONTRACT.md → "Forms"). No new colour — an error
   just reads bolder, so nothing here needs a token outside the tokens block. */
.formStatus {
  margin-top: var(--space-2);
  color: var(--muted);
}

.formStatus--error {
  color: var(--text);
  font-weight: 600;
}

/* ==========================================================================
   3. THE KIT'S MOTION HELPERS
   js/kit-head.js adds "kit-js" to <html> before the page paints, unless
   reduced motion is on. Nothing below hides content from a visitor whose
   JavaScript never runs, or from one who asked for less motion.
   ========================================================================== */

html.kit-js [data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(var(--space-4));
}

html.kit-js [data-animate="fade-in"] {
  opacity: 0;
}

html.kit-js [data-animate="slide-left"] {
  opacity: 0;
  transform: translateX(var(--space-5));
}

html.kit-js [data-animate="slide-right"] {
  opacity: 0;
  transform: translateX(calc(-1 * var(--space-5)));
}

html.kit-js [data-animate="scale-in"] {
  opacity: 0;
  transform: scale(0.92);
}

html.kit-js [data-animate="clip-reveal"] {
  clip-path: inset(0 0 100% 0);
}

/* split-lines, split-words, parallax and count-up need the real text and
   real numbers in place to work at all, so kit.js sets and clears their
   starting state itself instead of this stylesheet pre-hiding them. */

/* Belt and suspenders: js/kit-head.js adds "kit-js" only once it has already
   confirmed reduced motion is off, so this should never have anything to
   override — but a page without JavaScript never gets "kit-js" at all, so
   [data-animate] elements show in their end state by the plain CSS above
   with nothing further needed. */
@media (prefers-reduced-motion: reduce) {
  html.kit-js [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* The failsafe. js/kit-head.js now adds "kit-js" itself, synchronously, before the page
   ever paints — so a [data-animate] element is hidden from the very first frame instead of
   flashing visible then hidden. That only moves the risk: if kit.js or gsap.min.js never
   loads at all (renamed file, blocked request, a folder that did not get uploaded), nothing
   would ever remove "kit-js" and the element would stay invisible forever. This keyframe
   fires 2.5s after "kit-js" appears and forces the element to its end state no matter what;
   "kit-ready" (added by kit.js once GSAP actually took over) cancels it first on any normal
   load, so a visitor with working JavaScript never sees it run. */
@keyframes kitFailsafeReveal {
  to { opacity: 1; transform: none; clip-path: none; }
}
html.kit-js [data-animate] {
  animation: kitFailsafeReveal 0.01s linear 2.5s forwards;
}
html.kit-js.kit-ready [data-animate] {
  animation: none;
}

/* The page's first section is exempt from all of the above: it must be on screen at first
   paint, so it cannot wait for kit-head.js's class, for kit.js, or for gsap.min.js to
   download. It plays its own plain CSS keyframe the instant it is painted, and kit.js
   knows to leave its [data-animate] elements alone (see animateAll's firstSection skip). */
@media (prefers-reduced-motion: no-preference) {
  /* Prefixed with html.kit-js so this outweighs the failsafe and hidden-state rules above,
     which match the same [data-animate] elements with lower specificity — otherwise
     "html.kit-js.kit-ready [data-animate] { animation: none }" would cancel this too. */
  html.kit-js main > section:first-of-type [data-animate="fade-up"] {
    animation: kitOnloadFadeUp var(--duration-base, 0.7s) var(--ease-standard, ease-out) both;
  }
  html.kit-js main > section:first-of-type [data-animate="scale-in"] {
    animation: kitOnloadScaleIn var(--duration-base, 0.7s) var(--ease-standard, ease-out) both;
  }
  /* A plain nth-child stagger — good enough for content that is on screen at first paint
     and never needs to match GSAP's data-animate-stagger value exactly. */
  main > section:first-of-type [data-animate-stagger] [data-animate]:nth-child(1) { animation-delay: 0.05s; }
  main > section:first-of-type [data-animate-stagger] [data-animate]:nth-child(2) { animation-delay: 0.17s; }
  main > section:first-of-type [data-animate-stagger] [data-animate]:nth-child(3) { animation-delay: 0.29s; }
  main > section:first-of-type [data-animate-stagger] [data-animate]:nth-child(4) { animation-delay: 0.41s; }
  main > section:first-of-type [data-animate-stagger] [data-animate]:nth-child(n+5) { animation-delay: 0.53s; }
}
@keyframes kitOnloadFadeUp {
  from { opacity: 0; transform: translateY(var(--space-4)); }
  to { opacity: 1; transform: none; }
}
@keyframes kitOnloadScaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* Page transitions — CSS View Transitions only; see CLAUDE.md rule 8. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--duration-base);
  animation-timing-function: var(--ease-standard);
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}

/* ==========================================================================
   4. SECTIONS
   Paste each section's own section.css here, in the order the sections
   appear on the page — sections/<name>/section.css in the section library
   (Part খ). This file stays the page's only stylesheet either way.
   ========================================================================== */

/* kit/index.html — header */
.siteHeader {
  padding: var(--space-3) var(--space-4);
}

.siteHeader__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.siteHeader__logo {
  font-weight: 700;
  font-size: var(--text-lg);
  text-decoration: none;
  color: var(--text);
}

.siteHeader__nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: var(--text-sm);
}

.siteHeader__nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.siteHeader__cta {
  padding: var(--space-2) var(--space-4);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
}

.siteHeader__cta:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

/* kit/index.html — hero */
.hero {
  padding: var(--space-8) var(--space-4);
  background: var(--surface);
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 800px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__eyebrow {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.hero__title {
  font-size: var(--text-4xl);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.hero__lead {
  font-size: var(--text-lg);
  color: var(--muted);
  margin-bottom: var(--space-4);
  max-width: 32em;
}

.hero__cta {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
}

.hero__cta:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

.hero__image {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* kit/index.html — footer */
.siteFooter {
  padding: var(--space-6) var(--space-4);
  background: var(--text);
  color: var(--bg);
}

.siteFooter__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.siteFooter__links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.siteFooter a {
  color: inherit;
}

.siteFooter__copyright {
  color: color-mix(in srgb, var(--bg) 70%, var(--text));
  font-size: var(--text-sm);
}

/* ---- sections, pasted in per kit rule 4 (part 4 of this file) ---- */

/* == sections/header/section.css == */
/* sections/header */
.siteHeader {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.siteHeader__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.siteHeader__logo {
  font-weight: 700;
  font-size: var(--text-lg);
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.siteHeader__nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.siteHeader__nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.siteHeader__nav a:hover {
  color: var(--text);
}

.siteHeader__nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.siteHeader__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.siteHeader__cart {
  position: relative;
  display: inline-flex;
  color: var(--muted);
  text-decoration: none;
}

.siteHeader__cart:hover {
  color: var(--text);
}

.siteHeader__cartCount {
  position: absolute;
  top: -0.5em;
  right: -0.6em;
  min-width: 1.1em;
  padding: 0 0.3em;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--on-primary);
  font-size: var(--text-xs);
  line-height: 1.3;
  text-align: center;
}

.siteHeader__cta {
  padding: var(--space-2) var(--space-4);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.siteHeader__cta:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

/* The toggle button and the collapsing drawer both need real JavaScript running to make
   sense, so both stay out of the way entirely until js/kit.js has added "kit-js" — without
   it (JavaScript off, or a vendor file missing) the nav is just the plain, always-open list
   above, wrapping naturally at any width. */
.siteHeader__menuBtn {
  display: none;
}

html.kit-js .siteHeader__menuBtn {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: var(--text-sm);
  cursor: pointer;
  order: 2;
}

.siteHeader__menuIcon,
.siteHeader__menuIcon::before,
.siteHeader__menuIcon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.siteHeader__menuIcon {
  position: relative;
}

.siteHeader__menuIcon::before,
.siteHeader__menuIcon::after {
  content: "";
  position: absolute;
  left: 0;
}

.siteHeader__menuIcon::before {
  top: -6px;
}

.siteHeader__menuIcon::after {
  top: 6px;
}

@media (max-width: 720px) {
  html.kit-js .siteHeader__menuBtn {
    display: inline-flex;
  }

  html.kit-js .siteHeader__nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-3);
  }

  html.kit-js .siteHeader__nav.is-open {
    display: flex;
  }

  html.kit-js .siteHeader__inner {
    flex-wrap: wrap;
  }
}

/* == sections/footer/section.css == */
/* sections/footer */
.siteFooter {
  padding: var(--space-7) var(--space-4) var(--space-5);
  background: var(--text);
  color: var(--bg);
}

.siteFooter__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-5);
}

.siteFooter__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
}

.siteFooter__logo {
  color: inherit;
  font-weight: 700;
  font-size: var(--text-lg);
  text-decoration: none;
}

.siteFooter__tagline {
  color: color-mix(in srgb, var(--bg) 70%, var(--text));
}

.siteFooter__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  font-size: var(--text-sm);
}

.siteFooter a {
  color: inherit;
}

.siteFooter__social {
  display: flex;
  gap: var(--space-4);
}

.siteFooter__copyright {
  padding-top: var(--space-4);
  border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent);
  color: color-mix(in srgb, var(--bg) 60%, var(--text));
  font-size: var(--text-sm);
}

/* == sections/hero-split/section.css == */
/* sections/hero-split */
.heroSplit {
  padding: var(--space-8) var(--space-4);
  background: var(--surface);
}

.heroSplit__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 800px) {
  .heroSplit__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.heroSplit__eyebrow {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.heroSplit__title {
  font-size: var(--text-4xl);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.heroSplit__lead {
  font-size: var(--text-lg);
  color: var(--muted);
  margin-bottom: var(--space-4);
  max-width: 32em;
}

.heroSplit__cta {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
}

.heroSplit__cta:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

.heroSplit__image {
  width: 100%;
  border-radius: var(--radius-lg);
}

/* == sections/text-image/section.css == */
/* sections/text-image */
.textImage {
  padding: var(--space-8) var(--space-4);
}

.textImage__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 800px) {
  .textImage__inner {
    grid-template-columns: 1fr 1fr;
  }

  /* Image on the right instead of the left — add this class to .textImage. */
  .textImage--reverse .textImage__image {
    order: 2;
  }
}

.textImage__image {
  width: 100%;
  border-radius: var(--radius-lg);
}

.textImage__eyebrow {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.textImage__title {
  font-size: var(--text-3xl);
  line-height: 1.15;
  margin-bottom: var(--space-3);
}

.textImage__body {
  color: var(--muted);
  margin-bottom: var(--space-4);
  max-width: 34em;
}

.textImage__link {
  font-weight: 600;
  text-decoration: none;
}

/* == sections/features-grid/section.css == */
/* sections/features-grid — the row itself works for any count of cards: it wraps at
   any width and each card animates on its own via the stagger group, so three cards or
   seven both read correctly (checked with both counts). */
.featuresGrid {
  padding: var(--space-8) var(--space-4);
}

.featuresGrid__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.featuresGrid__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  text-align: center;
}

.featuresGrid__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}

.featureCard {
  padding: var(--space-5);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.featureCard__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-3);
}

.featureCard__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.featureCard__body {
  color: var(--muted);
}

/* == sections/stats/section.css == */
/* sections/stats */
.statsBand {
  padding: var(--space-7) var(--space-4);
  background: var(--surface-2);
}

.statsBand__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-5);
  text-align: center;
}

.statBlock__number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-1);
}

.statBlock__label {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* == sections/logos/section.css == */
/* sections/logos */
.logosStrip {
  padding: var(--space-6) var(--space-4);
}

.logosStrip__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.logosStrip__label {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.logosStrip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-6);
}

.logosStrip__logo {
  height: 32px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(1);
}

/* == sections/cta-band/section.css == */
/* sections/cta-band */
.ctaBand {
  padding: var(--space-7) var(--space-4);
  background: var(--primary);
  color: var(--on-primary);
  text-align: center;
}

.ctaBand__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.ctaBand__title {
  font-size: var(--text-2xl);
}

.ctaBand__link {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  background: var(--on-primary);
  color: var(--primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
}

.ctaBand__link:hover {
  background: color-mix(in srgb, var(--on-primary) 88%, var(--primary));
}

/* == sections/team/section.css == */
/* sections/team */
.team {
  padding: var(--space-8) var(--space-4);
}

.team__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.team__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  text-align: center;
}

.team__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
}

.teamMember {
  text-align: center;
}

.teamMember__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
}

.teamMember__name {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.teamMember__role {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* == sections/testimonials/section.css == */
/* sections/testimonials */
.testimonials {
  padding: var(--space-8) var(--space-4);
  background: var(--surface);
}

.testimonials__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
  text-align: center;
}

.testimonials__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.testimonial {
  margin: 0;
  padding: var(--space-5);
  background: var(--bg);
  border-radius: var(--radius-lg);
}

.testimonial blockquote {
  margin: 0 0 var(--space-3);
  color: var(--text);
}

.testimonial figcaption {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* == sections/faq/section.css == */
/* sections/faq — <details>/<summary> is a native disclosure widget, so opening a question
   needs no JavaScript and no section.js at all. */
.faq {
  padding: var(--space-8) var(--space-4);
}

.faq__inner {
  max-width: 760px;
  margin: 0 auto;
}

.faq__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
  text-align: center;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faqItem {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.faqItem__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faqItem__summary::-webkit-details-marker {
  display: none;
}

.faqItem__category {
  padding: 0.15em 0.6em;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.faqItem__answer {
  margin: var(--space-3) 0 0;
  color: var(--muted);
}

/* == sections/gallery/section.css == */
/* sections/gallery — the grid works for any number of items (auto-fit), checked at 6 and
   at 3: with fewer items the last row simply has fewer cards, never a stretched gap. */
.gallery {
  padding: var(--space-8) var(--space-4);
}

.gallery__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
  text-align: center;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
}

.gallery__item {
  display: block;
  padding: 0;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  background: none;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform var(--duration-base) var(--ease-standard);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__lightbox {
  position: fixed;
  inset: 0;
  max-width: 90vw;
  max-height: 90vh;
  margin: auto;
  padding: 0;
  border: none;
  background: none;
}

.gallery__lightbox::backdrop {
  background: var(--backdrop);
}

.gallery__lightboxImage {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
}

.gallery__lightboxClose {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-2);
  background: var(--on-backdrop);
  color: var(--text);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* == sections/blog-listing/section.css == */
/* sections/blog-listing */
.blogListing {
  padding: var(--space-8) var(--space-4);
}

.blogListing__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.blogListing__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.blogListing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.journalCard img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.journalCard h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.journalCard h2 a {
  color: var(--text);
  text-decoration: none;
}

.journalCard h2 a:hover {
  color: var(--primary);
}

.journalCard p {
  color: var(--muted);
  margin-bottom: var(--space-2);
}

.journalCard time {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Written by the scan after the grid, with no CSS of its own — DESIGN-CONTRACT.md →
   "Collections". Styled ahead of time here, same as .formField in sections/contact-form. */
.pager {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.pager__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager__step,
.pager__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
}

.pager__page.is-current {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.pager__gap {
  color: var(--muted);
}

/* == sections/blog-post/section.css == */
/* sections/blog-post */
.journalPost {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.journalPost__header {
  margin-bottom: var(--space-5);
}

.journalPost__eyebrow {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.journalPost__header h1 {
  font-size: var(--text-3xl);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.journalPost__date {
  color: var(--muted);
  font-size: var(--text-sm);
}

.journalPost__cover {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.journalPost__body {
  line-height: 1.75;
}

.journalPost__body p {
  margin-bottom: var(--space-4);
}

.journalPost__body h2 {
  font-size: var(--text-xl);
  margin: var(--space-6) 0 var(--space-3);
}

.journalPost__body ul {
  margin: 0 0 var(--space-4);
  padding-left: 1.3em;
}

.journalPost__body li {
  margin-bottom: var(--space-2);
}

/* == sections/shop-listing/section.css == */
/* sections/shop-listing */
.shopListing {
  padding: var(--space-8) var(--space-4);
}

.shopListing__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.shopListing__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.shopListing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}

.productCard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}

.productCard h2 {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.productCard h2 a {
  color: var(--text);
  text-decoration: none;
}

.productCard h2 a:hover {
  color: var(--primary);
}

.productCard .price {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-1);
}

.productCard p:not(.price) {
  color: var(--muted);
  font-size: var(--text-sm);
}

/* Written by the scan after the grid — see sections/blog-listing/section.css's own note. */
.pager {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.pager__list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager__step,
.pager__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text);
}

.pager__page.is-current {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.pager__gap {
  color: var(--muted);
}

/* == sections/shop-product/section.css == */
/* sections/shop-product — site/css/shop.css (the engine's own file) styles .qtyStepper and
   .stockBadge too, but only scoped under .shopPage — a class this design's own pages never
   carry. Its rules use :where() (zero specificity) precisely so a design's own styling,
   like this, always wins without needing !important. */
.productDetail {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.productDetail__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 800px) {
  .productDetail__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.productDetail__image {
  width: 100%;
  border-radius: var(--radius-lg);
}

.productDetail__info h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.productDetail__price {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-3);
}

.productDetail__excerpt {
  color: var(--muted);
  margin-bottom: var(--space-5);
  max-width: 32em;
}

.productDetail__variants {
  margin-bottom: var(--space-4);
}

.productDetail__variantLabel {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.productDetail__variants select {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
}

.productDetail__qty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.qtyStepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qtyStepper__btn {
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  background: var(--surface);
  color: var(--text);
  font-size: var(--text-lg);
  cursor: pointer;
}

.qtyStepper__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qtyStepper__input {
  width: 3rem;
  height: 2.4rem;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  background: var(--bg);
  color: var(--text);
}

.qtyStepper__input::-webkit-outer-spin-button,
.qtyStepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.productDetail__add {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  margin-bottom: var(--space-3);
}

.productDetail__add:hover {
  background: var(--primary-hover);
}

.productDetail__add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.productDetail__stock {
  color: var(--muted);
  font-size: var(--text-sm);
}

.stockBadge {
  display: inline-flex;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.stockBadge--in {
  color: var(--status-ok);
  background: var(--status-ok-bg);
}

.stockBadge--low {
  color: var(--status-low);
  background: var(--status-low-bg);
}

.stockBadge--out {
  color: var(--status-out);
  background: var(--status-out-bg);
}

/* == sections/contact-form/section.css == */
/* sections/contact-form */
.contactSection {
  padding: var(--space-8) var(--space-4);
}

.contactSection__inner {
  max-width: 640px;
  margin: 0 auto;
}

.contactSection__intro {
  text-align: center;
  margin-bottom: var(--space-6);
}

.contactSection__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.contactSection__lead {
  color: var(--muted);
}

.contactForm {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contactForm__submit {
  align-self: flex-start;
  padding: var(--space-3) var(--space-5);
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
}

.contactForm__submit:hover {
  background: var(--primary-hover);
}

/* The classes the engine actually renders once this form is scanned —
   DESIGN-CONTRACT.md → "Forms" (lib/render/forms.js). Not visible in this raw preview,
   since the scan replaces data-form-fields' contents; style them here anyway, for the
   finished site. */
.formField {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.formField__label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.formField__req {
  color: var(--primary);
  margin-left: 0.2em;
}

.formField__input {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
}

.formField__input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

textarea.formField__input {
  min-height: 8em;
  resize: vertical;
}

.formField__help {
  color: var(--muted);
  font-size: var(--text-xs);
}

.formField--check {
  flex-direction: row;
  align-items: center;
  gap: var(--space-2);
}

/* == .threeDShowcase (demo-only, not in sections/ — part গ's 3D proof) == */
.threeDShowcase__inner {
  max-width: var(--wrap, 1100px);
  margin-inline: auto;
  padding: var(--space-7, 5rem) var(--space-4, 1.5rem);
  display: grid;
  gap: var(--space-5, 2rem);
  align-items: center;
}
.threeDShowcase__model {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-2, 12px);
  overflow: hidden;
  background: color-mix(in srgb, var(--primary) 8%, var(--bg));
}
.threeDShowcase__model canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.threeDShowcase__model img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-5, 2rem);
}
@media (min-width: 800px) {
  .threeDShowcase__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Shop pages: shop.css sets its button colours inside :where() (zero specificity),
   so the design's own `a { color: var(--primary) }` painted "Check out" blue on blue. */
.shopPage a.btn {
  text-decoration: none;
}

.shopPage a.btn--primary,
.shopPage a.btn--primary:hover {
  color: #fff;
}

.shopPage a.btn--ghost,
.shopPage a.btn--ghost:hover {
  color: var(--shop-text);
}
