/* ==========================================================================
   Shared design system
   Siddhivinayak Corporation  |  Sovereign Nutriment Pvt. Ltd.
   Brand hues are supplied per-site by theme.css
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* Widths */
  --content-narrow: 680px;
  --content-default: 1080px;
  --content-wide: 1320px;

  /* Fonts */
  --font-display: 'Sentient', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

/* ---------- Light theme ---------- */
:root,
[data-theme='light'] {
  --color-bg: #faf8f4;
  --color-surface: #ffffff;
  --color-surface-2: #f5f2ec;
  --color-surface-offset: #efebe3;
  --color-border: #e2ddd2;
  --color-border-strong: #cec7b8;
  --color-text: #1b1913;
  --color-text-muted: #6a6459;
  --color-text-faint: #9a9488;
  --color-text-inverse: #fbf9f5;

  --color-primary: var(--brand-primary);
  --color-primary-hover: var(--brand-primary-hover);
  --color-on-primary: #ffffff;
  --color-accent: var(--brand-accent);
  --color-accent-soft: var(--brand-accent-soft);

  --color-success: #2f6b34;
  --color-error: #9c2b23;

  --shadow-sm: 0 1px 2px rgba(30, 26, 18, 0.06);
  --shadow-md: 0 6px 18px -6px rgba(30, 26, 18, 0.14);
  --shadow-lg: 0 20px 48px -16px rgba(30, 26, 18, 0.22);
}

/* ---------- Dark theme ---------- */
[data-theme='dark'] {
  --color-bg: #14130f;
  --color-surface: #1b1a16;
  --color-surface-2: #211f1a;
  --color-surface-offset: #26241e;
  --color-border: #33302a;
  --color-border-strong: #47433a;
  --color-text: #e8e4dc;
  --color-text-muted: #a09a8e;
  --color-text-faint: #756f65;
  --color-text-inverse: #14130f;

  --color-primary: var(--brand-primary-dark);
  --color-primary-hover: var(--brand-primary-dark-hover);
  --color-on-primary: #12110d;
  --color-accent: var(--brand-accent-dark);
  --color-accent-soft: var(--brand-accent-soft-dark);

  --color-success: #6faa5f;
  --color-error: #d97a70;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 18px -6px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 48px -16px rgba(0, 0, 0, 0.7);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-6));
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}
img,
picture,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 500;
}
p,
li {
  text-wrap: pretty;
}
a {
  color: inherit;
}
::selection {
  background: var(--color-accent-soft);
  color: var(--color-text);
}
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
a,
button,
input,
textarea,
select,
[role='button'] {
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-12));
}
.wrap--default {
  max-width: var(--content-default);
}
.wrap--narrow {
  max-width: var(--content-narrow);
}
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
}
.section--surface {
  background: var(--color-surface-2);
}
.section--ink {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.section--ink .eyebrow {
  color: var(--color-accent-soft);
}
.section--ink .section-lede,
.section--ink p {
  color: rgba(255, 255, 255, 0.82);
}
[data-theme='dark'] .section--ink {
  background: var(--color-surface-2);
  color: var(--color-text);
}
[data-theme='dark'] .section--ink .section-lede,
[data-theme='dark'] .section--ink p {
  color: var(--color-text-muted);
}

.grid {
  display: grid;
  gap: clamp(var(--space-6), 3vw, var(--space-10));
}
.grid--2 {
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.grid--split {
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .grid--split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(var(--space-10), 5vw, var(--space-20));
  }
  .grid--split-wide {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
  .grid--sidebar {
    grid-template-columns: 260px 1fr;
    gap: clamp(var(--space-8), 4vw, var(--space-16));
  }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.section-title--wide {
  max-width: 34ch;
}
.section-lede {
  margin-top: var(--space-5);
  max-width: 62ch;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.6;
}
.section-head {
  margin-bottom: clamp(var(--space-10), 4vw, var(--space-16));
}
.section-head--center {
  text-align: center;
}
.section-head--center .section-title,
.section-head--center .section-lede {
  margin-inline: auto;
}
.section-head--center .eyebrow::before {
  display: none;
}

.prose > * + * {
  margin-top: var(--space-5);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-top: var(--space-10);
}
.prose h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-top: var(--space-8);
}
.prose p,
.prose li {
  color: var(--color-text-muted);
  max-width: 68ch;
}
.prose strong {
  color: var(--color-text);
  font-weight: 600;
}
.prose ul,
.prose ol {
  padding-left: var(--space-5);
}
.prose li + li {
  margin-top: var(--space-2);
}
.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
[data-theme='dark'] .prose a {
  color: var(--color-accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  min-height: 46px;
}
.btn svg {
  flex: none;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
[data-theme='dark'] .btn--accent {
  color: #17150f;
}
.btn--accent:hover {
  filter: brightness(0.93);
}
.btn--outline {
  border-color: var(--color-border-strong);
  color: var(--color-text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-surface);
}
.btn--ghost {
  color: var(--color-primary);
  padding-inline: 0;
  min-height: 0;
}
.btn--ghost:hover {
  color: var(--color-accent);
}
.btn--on-dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--on-dark:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}
.btn--sm {
  min-height: 38px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}
.btn--block {
  width: 100%;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
[data-theme='dark'] .arrow-link {
  color: var(--color-accent);
}
.arrow-link svg {
  transition: transform var(--transition);
}
.arrow-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex: none;
  margin-right: auto;
}
.brand-mark {
  flex: none;
  color: var(--color-primary);
}
[data-theme='dark'] .brand-mark {
  color: var(--color-accent);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
  white-space: nowrap;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  white-space: nowrap;
  margin-top: 2px;
}

.nav {
  display: none;
}
@media (min-width: 1060px) {
  .nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }
}
.nav-item {
  position: relative;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.nav-link[aria-current='page'] {
  color: var(--color-primary);
  font-weight: 600;
}
[data-theme='dark'] .nav-link[aria-current='page'] {
  color: var(--color-accent);
}
.nav-link .chev {
  transition: transform var(--transition);
  opacity: 0.6;
}
.nav-item:hover .nav-link .chev,
.nav-item:focus-within .nav-link .chev {
  transform: rotate(180deg);
}

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 520px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    transform var(--transition),
    visibility var(--transition);
}
.nav-panel::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-1);
}
.nav-panel-link {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
}
.nav-panel-link:hover {
  background: var(--color-surface-2);
}
.nav-panel-link strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.nav-panel-link span {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: 2px;
}
.nav-panel-foot {
  margin-top: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-inline: var(--space-3);
}
.nav-panel-foot p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: transparent;
}
.icon-btn:hover {
  color: var(--color-text);
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
}
.header-cta {
  display: none;
}
@media (min-width: 1060px) {
  .header-cta {
    display: inline-flex;
  }
}
.nav-toggle {
  display: inline-flex;
}
@media (min-width: 1060px) {
  .nav-toggle {
    display: none;
  }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}
.drawer[data-open='true'] {
  visibility: visible;
  pointer-events: auto;
}
.drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 12, 0.5);
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.drawer[data-open='true'] .drawer-scrim {
  opacity: 1;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 90vw);
  background: var(--color-bg);
  border-left: 1px solid var(--color-border);
  padding: var(--space-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.drawer[data-open='true'] .drawer-panel {
  transform: none;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.drawer-title {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.drawer a.drawer-link {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
}
.drawer a.drawer-link:hover {
  color: var(--color-primary);
}
.drawer details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.drawer details summary::-webkit-details-marker {
  display: none;
}
.drawer details summary svg {
  transition: transform var(--transition);
  opacity: 0.6;
}
.drawer details[open] summary svg {
  transform: rotate(180deg);
}
.drawer details .sub {
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
}
.drawer details .sub a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.drawer details .sub a:hover {
  color: var(--color-primary);
}
.drawer-foot {
  margin-top: auto;
  padding-top: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.drawer-contact {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.drawer-contact a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

/* ---------- Hero banner (rotating) ---------- */
.hero {
  position: relative;
  background: var(--color-primary);
  overflow: hidden;
  isolation: isolate;
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1100ms ease-in-out;
}
.hero-slide[data-active='true'] {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  transform: scale(1.04);
  transition: transform 9000ms linear;
}
.hero-slide[data-active='true'] img {
  transform: scale(1);
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      100deg,
      color-mix(in srgb, var(--brand-primary) 94%, transparent) 0%,
      color-mix(in srgb, var(--brand-primary) 82%, transparent) 34%,
      color-mix(in srgb, var(--brand-primary) 34%, transparent) 62%,
      color-mix(in srgb, var(--brand-primary) 12%, transparent) 100%
    ),
    linear-gradient(to top, rgba(10, 9, 6, 0.42), transparent 55%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(var(--space-20), 12vw, 9rem);
  min-height: min(76vh, 660px);
  display: flex;
  align-items: center;
}
.hero-copy {
  max-width: 620px;
  color: #fff;
}
.hero-copy .eyebrow {
  color: var(--color-accent-soft);
}
.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
}
.hero-title em {
  font-style: italic;
  color: var(--color-accent-soft);
}
.hero-lede {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-8);
  width: min(760px, 100%);
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
@media (min-width: 720px) {
  .hero-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  /* reserve two label lines so the values stay on one baseline even when
     a label wraps */
  .hero-meta dt {
    min-height: 2.9em;
  }
}
.hero-meta div {
  min-width: 0;
}
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.hero-meta dd {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #fff;
  margin-top: var(--space-1);
  line-height: 1.1;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  bottom: var(--space-8);
  right: clamp(var(--space-5), 4vw, var(--space-12));
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.hero-dots {
  display: flex;
  gap: var(--space-2);
}
.hero-dot {
  width: 34px;
  height: 3px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.hero-dot[aria-selected='true'] {
  background: rgba(255, 255, 255, 0.35);
}
.hero-dot[aria-selected='true']::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: left;
  animation: dotFill 7s linear forwards;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}
@keyframes dotFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.hero-arrows {
  display: flex;
  gap: var(--space-2);
}
.hero-arrow {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-full);
  color: #fff;
}
.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
}
@media (max-width: 640px) {
  .hero-arrows {
    display: none;
  }
  .hero-meta {
    gap: var(--space-5);
  }
  .hero-meta dd {
    font-size: 1.25rem;
  }
}

/* ---------- Page header (interior) ---------- */
.page-head {
  position: relative;
  background: var(--color-primary);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-head-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-head-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-head::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--brand-primary) 95%, transparent) 0%,
    color-mix(in srgb, var(--brand-primary) 80%, transparent) 45%,
    color-mix(in srgb, var(--brand-primary) 45%, transparent) 100%
  );
}
.page-head-inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.page-head .eyebrow {
  color: var(--color-accent-soft);
}
.page-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 28ch;
}
.page-lede {
  margin-top: var(--space-5);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.84);
  max-width: 60ch;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-6);
}
.breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}
.breadcrumb span[aria-hidden] {
  opacity: 0.5;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}
a.card,
.card--link {
  text-decoration: none;
  color: inherit;
}
a.card:hover,
.card--link:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-surface-2);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
a.card:hover .card-media img,
.card--link:hover .card-media img {
  transform: scale(1.05);
}
.card-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px var(--space-3);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.94);
  color: #24211a;
  font-weight: 500;
}
.card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.card-title {
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.card-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
  flex: 1;
}
.card-foot {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
}

/* Feature list */
.feature {
  display: flex;
  gap: var(--space-4);
}
.feature-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  color: var(--color-primary);
}
[data-theme='dark'] .feature-icon {
  color: var(--color-accent);
}
.feature h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.feature p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Numbered list */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--space-8);
}
.step {
  display: flex;
  gap: var(--space-5);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  padding-top: 2px;
  min-width: 28px;
}
.step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Stat band */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: var(--space-6) var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-7);
  border-top: 1px solid var(--color-hairline);
}
@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  }
  /* reserve two label lines so the figures stay on one baseline */
  .stats dt {
    min-height: 2.9em;
  }
}
.stat dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}
.stat dd {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.05;
  color: var(--color-text);
}
.section--ink .stat dt {
  color: rgba(255, 255, 255, 0.6);
}
.section--ink .stat dd {
  color: #fff;
}
[data-theme='dark'] .section--ink .stat dt {
  color: var(--color-text-faint);
}
[data-theme='dark'] .section--ink .stat dd {
  color: var(--color-text);
}

/* Media figure */
.figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
}
.figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.figure--tall img {
  aspect-ratio: 4 / 5;
}
.figure figcaption {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* Pull quote */
.pullquote {
  border-left: 2px solid var(--color-accent);
  padding-left: clamp(var(--space-5), 3vw, var(--space-8));
}
.pullquote p {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--color-text);
  max-width: 46ch;
}
.pullquote footer {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ---------- Spec table ---------- */
.spec {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
.spec-head {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.spec-head h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.spec-head .spec-note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.spec table {
  font-size: var(--text-sm);
}
.spec th,
.spec td {
  padding: var(--space-3) var(--space-5);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
.spec thead th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 500;
  background: var(--color-surface-2);
}
.spec tbody th {
  font-weight: 500;
  color: var(--color-text);
  width: 46%;
}
.spec tbody td {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}
.spec tbody tr:last-child th,
.spec tbody tr:last-child td {
  border-bottom: 0;
}
.spec tbody tr:hover {
  background: var(--color-surface-2);
}
.spec-group th {
  background: var(--color-surface-offset);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}
@media (max-width: 560px) {
  .spec tbody th {
    width: 52%;
  }
  .spec th,
  .spec td {
    padding: var(--space-3);
  }
}

/* Key-value list */
.kv {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-border);
}
.kv > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 560px) {
  .kv > div {
    grid-template-columns: 200px 1fr;
    gap: var(--space-5);
    align-items: baseline;
  }
}
.kv dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.kv dd {
  font-size: var(--text-sm);
  color: var(--color-text);
}

/* Badges / chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
  background: var(--color-surface);
  white-space: nowrap;
}
.badge--accent {
  border-color: transparent;
  background: var(--color-accent-soft);
  color: var(--color-primary);
}
[data-theme='dark'] .badge--accent {
  color: var(--color-accent);
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- Catalogue ---------- */
.catalogue-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-5);
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
}
.search-field svg {
  position: absolute;
  left: var(--space-4);
  color: var(--color-text-faint);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
  font-size: var(--text-base);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
}
.search-field input::placeholder {
  color: var(--color-text-faint);
}
.search-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.search-clear {
  position: absolute;
  right: var(--space-3);
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
}
.search-clear[data-show='true'] {
  display: inline-flex;
}
.search-clear:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.filter-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-right: var(--space-2);
}
.chip {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-muted);
  background: var(--color-surface);
}
.chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.chip[aria-pressed='true'] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  text-transform: uppercase;
}
.empty-state {
  text-align: center;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-5);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.empty-state svg {
  margin: 0 auto var(--space-5);
  color: var(--color-text-faint);
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.empty-state p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 42ch;
  margin: 0 auto var(--space-6);
}
[hidden] {
  display: none !important;
}

/* RFQ selection tray */
.tray {
  position: fixed;
  left: 50%;
  bottom: var(--space-6);
  transform: translate(-50%, 140%);
  z-index: 90;
  width: min(680px, calc(100vw - var(--space-8)));
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}
.tray[data-open='true'] {
  transform: translate(-50%, 0);
}
[data-theme='dark'] .tray {
  background: var(--color-surface-offset);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}
.tray-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-right: auto;
}
.tray-count strong {
  font-size: var(--text-base);
  display: inline-block;
  margin-right: var(--space-1);
}
.tray .btn--outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.tray .btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}
[data-theme='dark'] .tray .btn--outline {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.pick {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.pick:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.pick[aria-pressed='true'] {
  background: var(--color-accent-soft);
  border-color: transparent;
  color: var(--color-primary);
}
[data-theme='dark'] .pick[aria-pressed='true'] {
  color: var(--color-accent);
}
.pick .tick {
  display: none;
}
.pick[aria-pressed='true'] .tick {
  display: block;
}
.pick[aria-pressed='true'] .plus {
  display: none;
}

/* ---------- Forms ---------- */
.form-shell {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
}
.form-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 680px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
  .field--full {
    grid-column: 1 / -1;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field label .req {
  color: var(--color-error);
  margin-left: 2px;
}
.field .hint {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field input[type='url'],
.field input[type='number'],
.field input[type='file'],
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 46px;
}
.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.6;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a6459' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'],
.field select[aria-invalid='true'] {
  border-color: var(--color-error);
}
.field .err {
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 500;
}
.field input[type='file'] {
  padding: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.field input[type='file']::file-selector-button {
  font: inherit;
  font-weight: 600;
  margin-right: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  color: var(--color-text);
  cursor: pointer;
}
.check {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--color-primary);
}
.check label {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.check label a {
  color: var(--color-primary);
}

/* CAPTCHA */
.captcha {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.captcha-img {
  width: 168px;
  height: 52px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  flex: none;
  object-fit: cover;
}
.captcha-reload {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  background: var(--color-surface);
  flex: none;
}
.captcha-reload:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.captcha input {
  flex: 1;
  min-width: 150px;
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-5);
  line-height: 1.6;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-8);
}
.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  border: 1px solid;
  margin-bottom: var(--space-6);
}
.alert svg {
  flex: none;
  margin-top: 2px;
}
.alert--ok {
  border-color: color-mix(in srgb, var(--color-success) 40%, transparent);
  background: color-mix(in srgb, var(--color-success) 10%, transparent);
  color: var(--color-success);
}
.alert--err {
  border-color: color-mix(in srgb, var(--color-error) 40%, transparent);
  background: color-mix(in srgb, var(--color-error) 10%, transparent);
  color: var(--color-error);
}
.alert--info {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}

/* Contact aside */
.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-6);
}
.contact-card + .contact-card {
  margin-top: var(--space-5);
}
.contact-card h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.contact-card address {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.contact-line svg {
  flex: none;
  margin-top: 3px;
  color: var(--color-accent);
}
.contact-line a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  word-break: break-word;
}
.contact-line a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.map-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface-2);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: saturate(0.85);
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 860px) {
  .cta {
    grid-template-columns: 1.4fr auto;
  }
}
[data-theme='dark'] .cta {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: inherit;
  max-width: 26ch;
}
.cta p {
  margin-top: var(--space-4);
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
}
[data-theme='dark'] .cta p {
  color: var(--color-text-muted);
}
.cta .btn-row {
  margin-top: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
  font-size: var(--text-sm);
}
.footer-grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: var(--space-8);
  }
}
.footer-brand .brand {
  margin-bottom: var(--space-5);
}
.footer-about {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 38ch;
  line-height: 1.65;
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer-col ul {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}
.footer-col a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--color-primary);
}
[data-theme='dark'] .footer-col a:hover {
  color: var(--color-accent);
}
.footer-bottom {
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.footer-bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--color-text);
}
.sister {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  margin-top: var(--space-5);
}
.sister:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.sister strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .site-footer,
  .hero-controls,
  .tray,
  .catalogue-bar,
  .cta {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}

/* Honeypot — a field only automated submitters fill in. Moved out of view
   without display:none, because some bots skip hidden inputs. */
.honeypot {
  position: absolute !important;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Server-side form error banner, injected by site.js from ?error=… */
.form-error {
  margin-bottom: var(--space-6);
}

/* ---------- Card glyph (icon badge on capability / industry cards) ---------- */
.card-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-primary);
  flex: none;
}
[data-theme='dark'] .card-glyph {
  color: var(--color-accent);
}

/* [hidden] must beat component display rules (cards use display:flex) */
[hidden] {
  display: none !important;
}

/* ---------- Form page layout: wide form, narrow contact aside ---------- */
.grid--form {
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 900px) {
  .grid--form {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: clamp(var(--space-8), 3.5vw, var(--space-12));
  }
}
@media (min-width: 1200px) {
  .grid--form {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
}

/* ---------- Mobile header: keep the brand lockup inside the viewport ---------- */
@media (max-width: 560px) {
  .header-inner {
    gap: var(--space-3);
  }
  .header-inner > .brand {
    min-width: 0;
    overflow: hidden;
  }
  .header-inner > .brand .brand-text {
    min-width: 0;
  }
  .header-inner > .brand .brand-name {
    font-size: 0.9375rem;
  }
  .header-inner > .brand .brand-tag {
    font-size: 0.5625rem;
    letter-spacing: 0.09em;
  }
}
@media (max-width: 400px) {
  .header-inner > .brand .brand-tag {
    display: none;
  }
  .header-inner > .brand .brand-name {
    font-size: 0.875rem;
  }
}

/* ---------- Narrow-screen wordmark swap ---------- */
.brand-name-short {
  display: none;
}
@media (max-width: 400px) {
  .header-inner > .brand .brand-name-full {
    display: none;
  }
  .header-inner > .brand .brand-name-short {
    display: inline;
  }
}

/* ---------- Off-canvas drawer must not extend the document ---------- */
.drawer {
  overflow: hidden;
}

/* ---------- Footer: only go to four columns when there is room ---------- */
@media (min-width: 760px) and (max-width: 959.98px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8) var(--space-10);
  }
}
@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}
.footer-grid > * {
  min-width: 0;
}
.footer-brand .brand-name,
.footer-brand .brand-tag {
  white-space: normal;
}
.footer-brand .brand {
  align-items: flex-start;
}
.footer-col a {
  overflow-wrap: anywhere;
}
