/* ==========================================================================
   NDMNET — Design Tokens
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.75rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6vw, 6.5rem);

  /* Spacing (4px base) */
  --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;

  /* Surfaces — warm off-white, near the logo's clean white ground */
  --color-bg: #fbfbf9;
  --color-surface: #ffffff;
  --color-surface-2: #f4f4f1;
  --color-surface-offset: #ececE7;
  --color-surface-offset-2: #e3e4dc;
  --color-surface-dynamic: #101210;
  --color-divider: #e2e3da;
  --color-border: #d3d4c9;

  /* Text — near-black, matching the logo's node spheres */
  --color-text: #101210;
  --color-text-muted: #5b5d55;
  --color-text-faint: #9a9c90;
  --color-text-inverse: #fbfbf9;

  /* Primary Accent — the logo's lime green */
  --color-primary: #86bd2c;
  --color-primary-hover: #6ea023;
  --color-primary-active: #5a831c;
  --color-primary-highlight: #e9f3d4;
  --color-primary-ink: #12200a; /* text-on-lime */

  /* Error */
  --color-error: #b0392f;
  --color-error-hover: #922e26;
  --color-error-highlight: #f3ddda;

  /* Success (shares brand green) */
  --color-success: #4f8a1f;
  --color-success-highlight: #e2f0d3;

  /* Radius — sharper, technical */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.15 0.02 130 / 0.08);
  --shadow-md: 0 6px 20px oklch(0.15 0.02 130 / 0.1);
  --shadow-lg: 0 20px 48px oklch(0.15 0.02 130 / 0.16);

  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1220px;
  --content-full: 100%;

  --font-display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0c0d0b;
  --color-surface: #131511;
  --color-surface-2: #181a14;
  --color-surface-offset: #1c1e17;
  --color-surface-offset-2: #23251c;
  --color-surface-dynamic: #2b2e22;
  --color-divider: #24261d;
  --color-border: #33352a;

  --color-text: #eceee5;
  --color-text-muted: #a2a498;
  --color-text-faint: #686a5e;
  --color-text-inverse: #101210;

  --color-primary: #a4dc3f;
  --color-primary-hover: #b6e766;
  --color-primary-active: #cdf291;
  --color-primary-highlight: #23301a;
  --color-primary-ink: #0c1406;

  --color-error: #e08277;
  --color-error-hover: #e69a91;
  --color-error-highlight: #3a2320;

  --color-success: #a4dc3f;
  --color-success-highlight: #23301a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 6px 20px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 24px 56px oklch(0 0 0 / 0.55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0c0d0b;
    --color-surface: #131511;
    --color-surface-2: #181a14;
    --color-surface-offset: #1c1e17;
    --color-surface-offset-2: #23251c;
    --color-surface-dynamic: #2b2e22;
    --color-divider: #24261d;
    --color-border: #33352a;
    --color-text: #eceee5;
    --color-text-muted: #a2a498;
    --color-text-faint: #686a5e;
    --color-text-inverse: #101210;
    --color-primary: #a4dc3f;
    --color-primary-hover: #b6e766;
    --color-primary-active: #cdf291;
    --color-primary-highlight: #23301a;
    --color-primary-ink: #0c1406;
    --color-error: #e08277;
    --color-success: #a4dc3f;
    --color-success-highlight: #23301a;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
    --shadow-md: 0 6px 20px oklch(0 0 0 / 0.45);
    --shadow-lg: 0 24px 56px oklch(0 0 0 / 0.55);
  }
}

/* ==========================================================================
   Base type & layout helpers
   ========================================================================== */

body {
  overflow-x: hidden;
}

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
@media (min-width: 900px) {
  .container {
    padding-inline: var(--space-10);
  }
}

.container--default {
  max-width: var(--content-default);
}
.container--narrow {
  max-width: var(--content-narrow);
}

section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-20));
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display, sans-serif);
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-active, var(--color-primary));
}
[data-theme='dark'] .eyebrow {
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  flex-shrink: 0;
}

.section-head {
  max-width: 44ch;
  margin-bottom: var(--space-10);
}
.section-head h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-top: var(--space-3);
}
.section-head p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}
.section-head--wide {
  max-width: 60ch;
}

p {
  color: var(--color-text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-sm);
  min-height: 48px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-ink);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}
.btn-primary:active {
  background: var(--color-primary-active);
}

.btn-dark {
  background: var(--color-text);
  color: var(--color-bg);
}
[data-theme='dark'] .btn-dark {
  background: var(--color-text);
  color: var(--color-bg);
}
.btn-dark:hover {
  background: var(--color-text-muted);
}

.btn-outline {
  background: transparent;
  border-color: oklch(from var(--color-text) l c h / 0.22);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding-inline: var(--space-2);
}
.btn-ghost:hover {
  color: var(--color-primary-active, var(--color-primary));
}
[data-theme='dark'] .btn-ghost:hover {
  color: var(--color-primary);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-interactive);
}
.btn:hover svg.icon-shift {
  transform: translateX(3px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: oklch(from var(--color-bg) l c h / 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header--hidden {
  transform: translateY(-100%);
}
.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.brand svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
}
.brand-name em {
  color: var(--color-primary-active, var(--color-primary));
  font-style: italic;
}
[data-theme='dark'] .brand-name em {
  color: var(--color-primary);
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
}

.main-nav {
  display: none;
}
@media (min-width: 900px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-size: var(--text-sm);
    font-weight: 500;
  }
  .main-nav a {
    position: relative;
    padding-block: var(--space-2);
    color: var(--color-text-muted);
  }
  .main-nav a:hover,
  .main-nav a[aria-current='page'] {
    color: var(--color-text);
  }
  .main-nav a[aria-current='page']::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--color-primary);
  }
}

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

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.header-cta {
  display: none;
}
@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
  }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--color-bg);
  z-index: 55;
  padding: var(--space-8) var(--space-6);
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  overflow-y: auto;
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text);
}
.mobile-nav .btn {
  margin-top: var(--space-6);
  width: 100%;
}

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

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--space-20) var(--space-16);
  background: #0c0d0b;
  color: #eceee5;
}
.hero .container {
  width: 100%;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 9, 7, 0.94) 8%, rgba(8, 9, 7, 0.72) 42%, rgba(8, 9, 7, 0.42) 68%, rgba(8, 9, 7, 0.75) 100%),
    linear-gradient(to top, rgba(8, 9, 7, 0.55), transparent 45%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero .eyebrow {
  color: var(--color-primary);
}
.hero .eyebrow::before {
  background: var(--color-primary);
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  margin-top: var(--space-5);
  color: #f7f8f2;
}
.hero h1 em {
  font-style: italic;
  color: #a4dc3f;
}
.hero p.lede {
  font-size: var(--text-lg);
  color: #c9cbbd;
  margin-top: var(--space-6);
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-20);
  max-width: 620px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: var(--space-8);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #f7f8f2;
}
.hero-stat .label {
  font-size: var(--text-xs);
  color: #9ea08f;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-1);
}

/* Page header (interior pages) */
.page-header {
  position: relative;
  padding-block: clamp(var(--space-24), 14vw, var(--space-32)) clamp(var(--space-16), 8vw, var(--space-24));
  background: var(--color-surface-dynamic);
  color: #eceee5;
  overflow: hidden;
}
[data-theme='light'] .page-header,
:root:not([data-theme]) .page-header {
  background: #101210;
}
.page-header .eyebrow {
  color: var(--color-primary, #a4dc3f);
}
[data-theme='light'] .page-header .eyebrow,
:root:not([data-theme]) .page-header .eyebrow {
  color: #a4dc3f;
}
.page-header .eyebrow::before {
  background: #a4dc3f;
}
.page-header h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-top: var(--space-4);
  max-width: 26ch;
  color: #f7f8f2;
}
.page-header p {
  font-size: var(--text-base);
  color: #b6b8aa;
  margin-top: var(--space-4);
  max-width: 58ch;
}
.page-header .node-motif {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  opacity: 0.5;
  color: #a4dc3f;
}
@media (max-width: 900px) {
  .page-header .node-motif {
    display: none;
  }
}

/* ==========================================================================
   Grid / editorial layout blocks
   ========================================================================== */

.split {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
  }
  .split--60-40 {
    grid-template-columns: 1.2fr 1fr;
  }
  .split--40-60 {
    grid-template-columns: 1fr 1.2fr;
  }
  .split--reverse {
    direction: rtl;
  }
  .split--reverse > * {
    direction: ltr;
  }
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  z-index: 2;
  pointer-events: none;
}
.media-frame-tag {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 3;
  background: oklch(0.1 0.02 130 / 0.72);
  backdrop-filter: blur(6px);
  color: #eceee5;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border-left: none;
}
.media-frame-tag .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a4dc3f;
  margin-right: var(--space-2);
}

.stack-list {
  display: flex;
  flex-direction: column;
}
.stack-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.stack-item:first-child {
  border-top: none;
}
.stack-item .idx {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text-faint);
}
.stack-item h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}
.stack-item p {
  margin-top: var(--space-2);
}

/* Service block (asymmetric two-column, no card grid) */
.service-block {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-10);
  border-top: 1px solid var(--color-divider);
}
.service-block:first-of-type {
  border-top: none;
}
@media (min-width: 800px) {
  .service-block {
    grid-template-columns: 0.9fr 1.6fr;
    gap: var(--space-12);
  }
}
.service-block .service-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.service-block .service-head .tag {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}
.service-block .service-head p {
  font-size: var(--text-sm);
}
.service-detail-list {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 640px) {
  .service-detail-list {
    grid-template-columns: 1fr 1fr;
  }
}
.service-detail {
  padding-block: var(--space-1);
}
.service-detail h4 {
  font-size: var(--text-base);
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.service-detail h4::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  flex-shrink: 0;
  transform: translateY(-1px);
}
.service-detail p {
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* Industry rows */
.industry-row {
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-divider);
  align-items: baseline;
}
.industry-row:first-child {
  border-top: none;
}
@media (min-width: 800px) {
  .industry-row {
    grid-template-columns: 0.5fr 1fr 1fr;
    gap: var(--space-8);
  }
}
.industry-row .idx {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}
.industry-row h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}
.industry-row p {
  font-size: var(--text-sm);
}

/* Process timeline */
.process-rail {
  display: grid;
  gap: var(--space-10);
  position: relative;
}
@media (min-width: 900px) {
  .process-rail {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6);
  }
  .process-rail::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 4%;
    right: 4%;
    height: 1px;
    background: var(--color-divider);
    z-index: 0;
  }
}
.process-step {
  position: relative;
  z-index: 1;
}
.process-step .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  margin-bottom: var(--space-4);
}
.process-step h3 {
  font-size: var(--text-base);
  font-weight: 700;
}
.process-step p {
  font-size: var(--text-sm);
  margin-top: var(--space-2);
}

/* Values list */
.values-grid {
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 700px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.value-item h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}
.value-item p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

/* Credential badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Pull quote */
.pull-quote {
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding-block: var(--space-16);
}
.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  font-style: italic;
  max-width: 34ch;
  line-height: 1.25;
}
.pull-quote cite {
  display: block;
  margin-top: var(--space-6);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* CTA banner */
.cta-banner {
  background: var(--color-surface-dynamic);
  color: #eceee5;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  max-width: 26ch;
  color: #f7f8f2;
}
.cta-banner p {
  color: #b6b8aa;
  margin-top: var(--space-2);
  max-width: 42ch;
}
.cta-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Industries strip on homepage */
.industry-strip {
  position: relative;
  color: #eceee5;
  overflow: hidden;
}
.industry-strip-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.industry-strip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.industry-strip-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 10, 8, 0.9) 0%, rgba(9, 10, 8, 0.72) 55%, rgba(9, 10, 8, 0.92) 100%);
}
.industry-strip .container {
  position: relative;
  z-index: 1;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.tag-pill {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  color: #eceee5;
}
.tag-pill strong {
  color: #a4dc3f;
  font-weight: 700;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.field label {
  font-size: var(--text-sm);
  font-weight: 600;
}
.field .req {
  color: var(--color-primary-active, var(--color-primary));
}
[data-theme='dark'] .field .req {
  color: var(--color-primary);
}
.field input,
.field select,
.field textarea {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  font-size: var(--text-base);
  min-height: 48px;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.22);
}
.field-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: none;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--color-error);
}
.field.has-error .field-error {
  display: block;
}
.field-row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-10);
  background: var(--color-primary-highlight);
  border-radius: var(--radius-lg);
}
.form-success.is-visible {
  display: flex;
}
.form-success .check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-primary-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success .check svg {
  width: 22px;
  height: 22px;
}
.form-success h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}
.contact-form.is-hidden {
  display: none;
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.contact-info-item:first-child {
  border-top: none;
}
.contact-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary-active, var(--color-primary));
  flex-shrink: 0;
  margin-top: 2px;
}
[data-theme='dark'] .contact-info-item svg {
  color: var(--color-primary);
}
.contact-info-item h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.contact-info-item p,
.contact-info-item a {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-top: var(--space-1);
}
.contact-info-item a:hover {
  color: var(--color-primary-active, var(--color-primary));
}
[data-theme='dark'] .contact-info-item a:hover {
  color: var(--color-primary);
}

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

.site-footer {
  background: var(--color-surface-dynamic);
  color: #b6b8aa;
  padding-block: var(--space-16) var(--space-8);
}
.footer-top {
  display: grid;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (min-width: 800px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer-brand .brand-name {
  color: #f7f8f2;
}
.footer-brand .brand-name em {
  color: #a4dc3f;
}
.footer-brand p {
  color: #9ea08f;
  margin-top: var(--space-4);
  max-width: 34ch;
  font-size: var(--text-sm);
}
.footer-col h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #eceee5;
  margin-bottom: var(--space-4);
  font-weight: 700;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col a {
  font-size: var(--text-sm);
  color: #9ea08f;
}
.footer-col a:hover {
  color: #a4dc3f;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-8);
  font-size: var(--text-xs);
  color: #7c7e70;
}
.footer-bottom a:hover {
  color: #a4dc3f;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: var(--color-primary-ink);
  padding: var(--space-3) var(--space-5);
  z-index: 100;
  font-weight: 600;
  font-size: var(--text-sm);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}
