/* Genoera — dark theme; gradients #004A6D → #282662 */
:root {
  --grad-from: #004a6d;
  --grad-to: #282662;
  --brand-blue: #082662;

  --navy-deep: #282662;
  --navy: #6b8fd4;
  --navy-mid: #8eb0e8;

  --teal: #3abfb0;
  --teal-bright: #4fe8d8;
  --teal-soft: rgba(0, 74, 109, 0.28);
  --steel: #94a8cc;
  --steel-light: #5a6f94;
  --steel-pale: rgba(255, 255, 255, 0.06);
  --bio-glow: rgba(0, 74, 109, 0.4);

  --bg: #161e32;
  --bg-soft: #0c101c;
  --bg-panel: #1a243c;
  --bg-elevated: #1f2a45;
  --bg-deep: #070910;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #dce4f2;
  --text-muted: #8c9ec0;
  --heading: #f2f6fc;

  --accent: #4fd8c9;
  --accent-dim: #3abfb0;
  --accent-glow: rgba(79, 216, 201, 0.3);
  --warning: #e6a23c;
  --danger: #f07167;

  --font-display: "Cairo", system-ui, sans-serif;
  --font-body: "Cairo", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max: 1180px;
  --header-h: 80px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-card-hover: 0 22px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 74, 109, 0.35);
  --glass-light: rgba(22, 30, 48, 0.85);
  --glass-border: rgba(255, 255, 255, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg-soft);
  min-height: 100vh;
}

body.page-home {
  background:
    radial-gradient(ellipse 110% 80% at 50% -20%, rgba(0, 74, 109, 0.5), transparent 58%),
    radial-gradient(ellipse 90% 60% at 100% 30%, rgba(40, 38, 98, 0.45), transparent 52%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(0, 74, 109, 0.2), transparent 45%),
    linear-gradient(180deg, #050810 0%, #0a0f1c 42%, #060912 100%);
}

/* Dark grid + subtle gradient wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(0, 74, 109, 0.18), transparent 50%),
    radial-gradient(ellipse 80% 55% at 100% 15%, rgba(40, 38, 98, 0.2), transparent 48%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(0, 74, 109, 0.12), transparent 42%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

body.page-home::before {
  background:
    radial-gradient(ellipse 90% 65% at 10% -5%, rgba(0, 74, 109, 0.28), transparent 52%),
    radial-gradient(ellipse 75% 55% at 92% 12%, rgba(40, 38, 98, 0.3), transparent 50%),
    radial-gradient(ellipse 55% 40% at 50% 105%, rgba(40, 38, 98, 0.15), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: var(--teal-bright);
}

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

/* Header — white bar (logo matches dark wordmark; needs light background) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(40, 38, 98, 0.12);
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}

body.page-home .site-header {
  background: #ffffff;
}

.site-header__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.92;
}

.logo__img {
  height: 46px;
  width: auto;
  max-width: min(280px, 58vw);
  object-fit: contain;
  object-position: left center;
}

.logo__img--compact {
  height: 40px;
  max-width: 240px;
}

.logo__img--large {
  height: 64px;
  max-width: 320px;
}

.logo__tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--steel);
  letter-spacing: 0.02em;
  padding-left: 0.75rem;
  margin-left: 0.25rem;
  border-left: 1px solid var(--border-strong);
  line-height: 1.2;
}

.logo--stack {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.logo__subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35rem 0;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease-out);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--grad-from), var(--grad-to));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
  opacity: 0.95;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--heading);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Primary nav on white header: dark text (global --text-muted is for dark pages) */
.site-header .nav a {
  color: #4d6080;
}

.site-header .nav a:hover,
.site-header .nav a[aria-current="page"] {
  color: #152238;
}

/* Marketplace — primary nav CTA (same href on all pages; no markup change) */
.site-nav a[href="/marketplace/"] {
  padding: 0.45rem 1.1rem;
  margin: -0.2rem 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 74, 109, 0.45), rgba(40, 38, 98, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8f0ff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.site-nav a[href="/marketplace/"]::after {
  display: none;
}

.site-nav a[href="/marketplace/"]:hover,
.site-nav a[href="/marketplace/"][aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.site-nav a[href="/marketplace/"][aria-current="page"] {
  box-shadow: 0 6px 24px rgba(40, 38, 98, 0.45);
}

/* Mobile navigation */
.site-nav__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.site-header .site-nav__toggle {
  background: #f4f6fa;
  border-color: rgba(40, 38, 98, 0.14);
}

.site-nav__toggle-bars,
.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--heading);
  border-radius: 1px;
  position: relative;
}

.site-header .site-nav__toggle-bars,
.site-header .site-nav__toggle-bars::before,
.site-header .site-nav__toggle-bars::after {
  background: #152238;
}

.site-nav__toggle-bars::before,
.site-nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-nav__toggle-bars::before {
  top: -6px;
}

.site-nav__toggle-bars::after {
  top: 6px;
}

.site-nav__close {
  display: none;
  margin-top: 1rem;
  padding: 0.65rem;
  text-align: center;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.site-nav__close:hover {
  background: var(--teal-soft);
}

@media (max-width: 820px) {
  /* Let the bar grow when the drawer opens; fixed 80px height was clipping the menu */
  .site-header {
    height: auto;
    min-height: var(--header-h);
    align-items: stretch;
    overflow: visible;
  }

  .site-nav__toggle {
    display: flex;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-sm);
    transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  }

  .site-header .site-nav__toggle {
    border-color: rgba(40, 38, 98, 0.14);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .site-nav__toggle:hover {
    background: rgba(0, 74, 109, 0.25);
    border-color: rgba(79, 216, 201, 0.35);
  }

  .site-header .site-nav__toggle:hover {
    background: rgba(0, 74, 109, 0.08);
    border-color: rgba(0, 74, 109, 0.22);
  }

  .site-header__inner {
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    width: 100%;
    min-height: var(--header-h);
    box-sizing: border-box;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem 0 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.85rem;
    order: 3;
  }

  .site-header__inner .site-nav__toggle {
    order: 1;
  }

  .site-header .site-nav {
    border-top-color: rgba(40, 38, 98, 0.1);
    background: #ffffff;
  }

  .site-nav a {
    padding: 0.85rem 0.75rem;
    border-bottom: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: rgba(0, 74, 109, 0.22);
  }

  .site-nav a[href="/marketplace/"] {
    text-align: center;
    justify-content: center;
    margin-top: 0.35rem;
  }

  .site-nav a[href="/marketplace/"]:hover,
  .site-nav a[href="/marketplace/"][aria-current="page"] {
    background: linear-gradient(135deg, var(--grad-from), var(--grad-to));
    color: #fff;
  }

  .site-nav a:last-of-type {
    border-bottom: none;
  }

  .site-nav__close {
    display: block;
    margin-top: 0.5rem;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.12);
  }

  .site-header .site-nav__close {
    border-color: rgba(40, 38, 98, 0.12);
  }

  /* ID + :checked beats any later .nav { display: flex } tie/specificity issues */
  #site-nav-toggle:checked ~ .site-nav,
  .site-nav__checkbox:checked ~ .site-nav {
    display: flex;
  }

  .site-nav__checkbox:focus-visible + .site-nav__toggle,
  #site-nav-toggle:focus-visible + .site-nav__toggle {
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    background 0.3s var(--ease-out),
    border-color 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: linear-gradient(135deg, var(--grad-from) 0%, #1a5a7a 45%, var(--grad-to) 100%);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 36px rgba(0, 0, 0, 0.45);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #0a5f8a 0%, var(--grad-from) 40%, #352a7a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 16px 44px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* Secondary CTA on homepage hero */
.page-main--home .hero--home .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--heading);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.page-main--home .hero--home .btn--ghost:hover {
  border-color: rgba(79, 216, 201, 0.45);
  color: var(--teal-bright);
  background: rgba(0, 74, 109, 0.22);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.btn--danger {
  background: rgba(255, 107, 107, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.btn--small {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

/* Hero */
.hero {
  padding: 4rem 1.5rem 5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 36ch;
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, var(--accent-glow), transparent 40%);
  opacity: 0.35;
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero__card {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.hero__card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__stat {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.hero__card p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* —— Home hero — premium biotech */
.hero--home {
  position: relative;
  padding-top: 3rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

/* Full-bleed video backdrop */
.hero__video-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.hero__video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Fades hero into page background at the bottom */
.hero__video-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(12, 16, 28, 0) 0%,
    rgba(12, 16, 28, 0) 30%,
    rgba(12, 16, 28, 0.08) 48%,
    rgba(12, 16, 28, 0.28) 62%,
    rgba(12, 16, 28, 0.52) 74%,
    rgba(12, 16, 28, 0.78) 86%,
    rgba(12, 16, 28, 0.94) 95%,
    var(--bg-soft) 100%
  );
}

/* Longer, smoother blend on homepage so the About section doesn’t “cut” from the video */
.page-main--home .hero__video-fade {
  background: linear-gradient(
    to bottom,
    rgba(12, 16, 28, 0) 0%,
    rgba(12, 16, 28, 0) 22%,
    rgba(12, 16, 28, 0.04) 38%,
    rgba(12, 16, 28, 0.14) 50%,
    rgba(12, 16, 28, 0.3) 60%,
    rgba(12, 16, 28, 0.48) 68%,
    rgba(12, 16, 28, 0.66) 76%,
    rgba(12, 16, 28, 0.82) 84%,
    rgba(12, 16, 28, 0.92) 91%,
    rgba(12, 16, 28, 0.98) 97%,
    var(--bg-soft) 100%
  );
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, var(--bio-glow), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(40, 38, 98, 0.25), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero--home .hero__center {
  position: relative;
  z-index: 3;
}

.hero__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero__actions--center {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.1rem;
}

.hero__copy .hero__lead {
  max-width: 52ch;
}

.hero__chips {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero__chips li {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8e8ff;
  background: linear-gradient(135deg, rgba(0, 74, 109, 0.35), rgba(40, 38, 98, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.hero__chips li:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 216, 201, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero__panel {
  position: relative;
  background: rgba(22, 30, 48, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(0, 74, 109, 0.5), transparent 45%, transparent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.hero__panel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.hero__panel--accent {
  background: linear-gradient(155deg, var(--grad-from) 0%, var(--grad-to) 55%, #1a0f35 100%);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e8eef3;
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.hero__panel--accent::before {
  background: linear-gradient(145deg, rgba(79, 216, 201, 0.35), transparent 50%, rgba(255, 255, 255, 0.06));
  opacity: 0.85;
}

.hero__panel--accent .hero__panel-label {
  color: rgba(255, 255, 255, 0.62);
}

.hero__panel--accent .hero__panel-text {
  color: rgba(255, 255, 255, 0.88);
}

.hero__panel-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 0.4rem;
}

.hero__panel-stat {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 2.85rem);
  font-weight: 800;
  color: var(--teal-bright);
  margin: 0 0 0.5rem;
  letter-spacing: -0.04em;
}

.hero__panel--accent .hero__panel-stat {
  color: #5ee0d4;
}

.hero__panel-text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--text-muted);
}

.hero__panel-text--strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

.btn--lg {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
}

/* Homepage hero: full-bleed atmosphere + centered headline */
.page-main--home .hero--home {
  max-width: none;
  margin: 0;
  padding: 0 0 clamp(6.5rem, 14vh, 10rem);
  min-height: min(92vh, 960px);
  display: flex;
  flex-direction: column;
}

.page-main--home .hero--home .hero__mesh {
  opacity: 0.3;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(0, 74, 109, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 60%, rgba(40, 38, 98, 0.32), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(0, 74, 109, 0.15), transparent 45%);
}

.page-main--home .hero--home .hero__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 1.5rem 0;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-main--home .hero--home .hero__center {
    width: min(92%, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }

  .hero__video-shell {
    background:
      radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0, 74, 109, 0.35), transparent 55%),
      linear-gradient(160deg, var(--bg-panel) 0%, var(--bg-soft) 100%);
  }
}

.page-main--home .hero--home h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0 auto 1.15rem;
  max-width: 100%;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.45),
    0 0 42px rgba(255, 255, 255, 0.2),
    0 0 72px rgba(120, 200, 255, 0.12);
}

.page-main--home .hero__subhead {
  margin: 0 auto 1rem;
  max-width: 100%;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
  color: #ffffff;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 0 14px rgba(255, 255, 255, 0.35),
    0 0 32px rgba(255, 255, 255, 0.15);
}

.page-main--home .hero__support {
  margin: 0 auto 2rem;
  max-width: 100%;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 500;
  line-height: 1.65;
  color: #ffffff;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.3),
    0 0 28px rgba(255, 255, 255, 0.12);
}

.page-main--home .hero__actions--center .btn--primary {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 14px 44px rgba(0, 0, 0, 0.5);
}

@media (max-width: 599px) {
  .page-main--home .hero__actions--center {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 22rem;
  }

  .page-main--home .hero__actions--center .btn {
    width: 100%;
    justify-content: center;
  }

  .page-main--home .hero--home h1,
  .page-main--home .hero__subhead,
  .page-main--home .hero__support {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual::after {
    animation: none;
  }

  .hero__chips li:hover,
  .about-card:hover,
  .vision-card:hover,
  .service-tile:hover,
  .contact-card:hover,
  .btn--primary:hover,
  .btn--ghost:hover {
    transform: none;
  }

  .service-tile:hover .service-tile__icon {
    transform: none;
  }
}

/* —— Home: about, vision, services, CTA, contact */
.section__head {
  margin-bottom: 0.35rem;
  position: relative;
}

.section__subtitle--wide {
  max-width: 62ch;
}

.about-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin: 0 0 1rem;
}

.about-lead {
  max-width: 62ch;
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.about-highlights {
  list-style: none;
  margin: 0 0 2.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-highlights li {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8e8ff;
  background: linear-gradient(135deg, rgba(0, 74, 109, 0.35), rgba(40, 38, 98, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.section--about,
.section--vision {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* Scrollbar / 100% vs 100vw: full-bleed bands use vw so gradient + cover layers share one paint width */
.page-main--home {
  overflow-x: hidden;
}

/* About: photo on ::before, fades on ::after — same box = no cover vs gradient width mismatch */
.page-main--home #about.section--about {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
  transform: translateX(-50%);
  padding-top: calc(clamp(3.5rem, 8vw, 5.25rem) + 1rem);
  padding-bottom: calc(clamp(3.5rem, 8vw, 5.25rem) + max(3.5rem, 7vh));
  padding-left: max(1.5rem, calc(50vw - var(--max) / 2));
  padding-right: max(1.5rem, calc(50vw - var(--max) / 2));
  box-sizing: border-box;
  background-color: var(--bg-soft);
  background-image: none;
}

.page-main--home #about.section--about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/assets/AdobeStock_309705330.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.page-main--home #about.section--about::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(
      to bottom,
      rgba(12, 16, 28, 0) 0%,
      rgba(12, 16, 28, 0) 58%,
      rgba(12, 16, 28, 0.04) 68%,
      rgba(12, 16, 28, 0.14) 75%,
      rgba(12, 16, 28, 0.3) 81%,
      rgba(12, 16, 28, 0.48) 86%,
      rgba(12, 16, 28, 0.66) 90%,
      rgba(12, 16, 28, 0.82) 93%,
      rgba(12, 16, 28, 0.92) 96%,
      rgba(12, 16, 28, 0.98) 98%,
      var(--bg-soft) 100%
    ),
    linear-gradient(
      180deg,
      var(--bg-soft) 0%,
      rgba(12, 16, 28, 0.75) 5rem,
      rgba(12, 16, 28, 0.82) 100%
    );
  background-size: 100% 100%, 100% 100%;
}

.page-main--home #about.section--about > * {
  position: relative;
  z-index: 2;
}

.about-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

/* Tablet: 50% | 50%; last card (emphasis) full width */
@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .about-card--emphasis {
    grid-column: 1 / -1;
  }
}

/* Desktop: row 1 = 33% | 33% | 33%; row 2 = 50% | 50% (6-column track) */
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .about-grid > .about-card:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .about-grid > .about-card:nth-child(n + 4) {
    grid-column: span 3;
  }
}

.about-card {
  position: relative;
  background: rgba(22, 30, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color 0.3s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.about-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  right: 1.5rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--grad-from), var(--grad-to));
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.about-card:hover {
  border-color: rgba(79, 216, 201, 0.35);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.about-card:hover::after {
  opacity: 1;
}

.about-card__meta {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 74, 109, 0.28);
}

.about-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.about-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.62;
}

.about-card__figure {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.65rem);
  font-weight: 800;
  color: var(--teal-bright);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 0.65rem;
}

.about-card--emphasis {
  background: linear-gradient(155deg, rgba(0, 74, 109, 0.32) 0%, rgba(40, 38, 98, 0.42) 100%);
  border-color: rgba(255, 255, 255, 0.12);
}

.vision-split {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 768px) {
  .vision-split {
    grid-template-columns: 1fr 1fr;
    gap: 1.65rem;
  }
}

.vision-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.3s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.vision-card:hover {
  border-color: rgba(23, 168, 156, 0.25);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.vision-card--emphasis {
  background: linear-gradient(180deg, var(--teal-soft) 0%, var(--bg-elevated) 100%);
  border-color: rgba(15, 111, 104, 0.22);
}

.vision-card h3 {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.vision-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.68;
  color: var(--text-muted);
}

/* Vision: same pseudo pattern as About so fades span the full band edge-to-edge */
.page-main--home .section--vision {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: 0;
  margin-right: 0;
  transform: translateX(-50%);
  padding-top: clamp(3.5rem, 8vw, 5.25rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.25rem);
  padding-left: max(1.5rem, calc(50vw - var(--max) / 2));
  padding-right: max(1.5rem, calc(50vw - var(--max) / 2));
  box-sizing: border-box;
  border-radius: 0;
  border: none;
  background-color: var(--bg-soft);
  background-image: none;
  box-shadow: none;
  overflow: hidden;
}

.page-main--home .section--vision::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/assets/AdobeStock_229928953.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.page-main--home .section--vision::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(
      to bottom,
      var(--bg-soft) 0%,
      rgba(12, 16, 28, 0) 14%,
      transparent 28%
    ),
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(0, 74, 109, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(40, 38, 98, 0.28), transparent 50%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

.page-main--home .section--vision .section__head {
  position: relative;
  z-index: 2;
}

.page-main--home .section--vision .section__title {
  color: #f2f7fa;
  letter-spacing: -0.03em;
}

.page-main--home .section--vision .vision-split {
  position: relative;
  z-index: 2;
}

.page-main--home .section--vision .vision-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.page-main--home .section--vision .vision-card:hover {
  border-color: rgba(79, 216, 201, 0.4);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.page-main--home .section--vision .vision-card--emphasis {
  background: linear-gradient(160deg, rgba(0, 74, 109, 0.35) 0%, rgba(40, 38, 98, 0.4) 100%);
  border-color: rgba(255, 255, 255, 0.16);
}

.page-main--home .section--vision .vision-card h3 {
  color: rgba(94, 224, 212, 0.95);
}

.page-main--home .section--vision .vision-card p {
  color: rgba(232, 238, 243, 0.88);
}

.page-main--home .section--vision .vision-card--emphasis h3 {
  color: #b8f5ee;
}

.page-main--home .section--vision .vision-card--emphasis p {
  color: rgba(255, 255, 255, 0.92);
}

.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

/* Match About: 3×33% then 2×50% */
@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .service-grid > .service-tile:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .service-grid > .service-tile:nth-child(n + 4) {
    grid-column: span 3;
  }
}

.service-tile {
  position: relative;
  background: rgba(22, 30, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.3s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 74, 109, 0.25), rgba(40, 38, 98, 0.15) 55%, transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.service-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 216, 201, 0.3);
  box-shadow: var(--shadow-card-hover);
}

.service-tile:hover::before {
  opacity: 1;
}

.service-tile__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(0, 74, 109, 0.45), rgba(40, 38, 98, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  font-size: 1.4rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.service-tile:hover .service-tile__icon {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.service-tile h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.service-tile p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.62;
}

.cta-band {
  margin: 1rem 1.5rem 0;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 0 4rem;
}

.page-main--home .cta-band {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  padding-left: max(1.5rem, calc(50% - var(--max) / 2));
  padding-right: max(1.5rem, calc(50% - var(--max) / 2));
  box-sizing: border-box;
}

.cta-band__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
  overflow: hidden;
  background: linear-gradient(128deg, var(--grad-from) 0%, #1a3560 38%, var(--grad-to) 100%);
  color: #f0f7f8;
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.cta-band__inner::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  background: radial-gradient(circle, rgba(79, 216, 201, 0.22) 0%, transparent 68%);
  pointer-events: none;
  opacity: 0.9;
}

.cta-band__inner::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -15%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band__inner > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 720px) {
  .cta-band__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 2.75rem;
    gap: 2rem;
  }
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 800;
  margin: 0 0 0.6rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cta-band__text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.84);
  max-width: 46ch;
}

.cta-band .btn--primary {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 12px 36px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.cta-band .btn--primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 16px 44px rgba(0, 0, 0, 0.42);
}

.section--contact {
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.4rem;
  background: rgba(22, 30, 48, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color 0.3s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.contact-card:hover {
  border-color: rgba(79, 216, 201, 0.4);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.contact-card--static {
  cursor: default;
}

.contact-card--static:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-card);
  transform: none;
}

.contact-card__label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

.contact-card__value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-dim);
}

a.contact-card:hover .contact-card__value {
  color: var(--teal-bright);
}

.contact-card__address {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

/* Full-bleed section width: backgrounds/grid read edge-to-edge; content stays column-aligned */
.page-main--home > .section:not(.section--vision) {
  max-width: none;
  width: 100%;
  padding-left: max(1.5rem, calc(50% - var(--max) / 2));
  padding-right: max(1.5rem, calc(50% - var(--max) / 2));
  padding-top: clamp(3.5rem, 8vw, 5.25rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.25rem);
  box-sizing: border-box;
}

.page-main--home > .section:not(.section--vision) .section__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 0.85rem;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--grad-from), var(--grad-to));
}

.page-main--home #services .section__subtitle--wide {
  margin-bottom: 2.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--heading);
}

.page-main--home .section:not(.section--vision) .section__title {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  letter-spacing: -0.03em;
  color: var(--heading);
}

.section__subtitle {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
  line-height: 1.68;
}

.page-main--home .section__subtitle--wide {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.pillars {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.pillar:hover {
  border-color: rgba(15, 111, 104, 0.35);
  transform: translateY(-2px);
}

.pillar__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-soft);
  border: 1px solid rgba(15, 111, 104, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Marketplace page */
.marketplace-page-intro {
  padding-top: 2.5rem;
}

.marketplace-page-intro .section__title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
}

.marketplace-lead {
  max-width: 62ch;
}

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

.marketplace-toolbar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}

.marketplace-toolbar__search {
  margin-bottom: 1.25rem;
}

.marketplace-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.marketplace-search-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.1rem;
  color: var(--steel);
  pointer-events: none;
  line-height: 1;
}

.marketplace-search-input {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 2.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.marketplace-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.marketplace-search-clear {
  position: absolute;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.marketplace-search-clear:hover {
  color: var(--text);
  background: var(--steel-pale);
}

.marketplace-toolbar__row {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .marketplace-toolbar__row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .marketplace-toolbar__row {
    grid-template-columns: 1.2fr 0.75fr 0.75fr 1fr;
    align-items: end;
  }
}

.marketplace-field label,
.marketplace-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.marketplace-select {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.marketplace-field--views .view-toggle {
  margin-top: 0;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}

.view-toggle__btn {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.view-toggle__btn:hover {
  color: var(--accent);
}

.view-toggle__btn.is-active {
  background: linear-gradient(135deg, rgba(0, 74, 109, 0.4), rgba(40, 38, 98, 0.45));
  color: var(--teal-bright);
}

.marketplace-results-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  min-height: 1.4em;
}

.marketplace-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  background: var(--bg-panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.marketplace-pagination {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.marketplace-pagination__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.marketplace-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.mp-ellipsis {
  padding: 0 0.25rem;
  color: var(--text-muted);
  user-select: none;
}

/* Product grid */
.products-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.products-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(120px, 28%);
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--grad-from), var(--grad-to));
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-bar button {
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-bar button:hover,
.filter-bar button.is-active {
  border-color: rgba(79, 216, 201, 0.5);
  color: var(--teal-bright);
  background: linear-gradient(135deg, rgba(0, 74, 109, 0.35), rgba(40, 38, 98, 0.35));
}

.product-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-grid--dense {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-grid--list {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  border-color: rgba(79, 216, 201, 0.28);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

a.product-card.product-card--link {
  text-decoration: none;
  color: inherit;
}

.product-card--link {
  cursor: pointer;
  text-align: left;
}

.product-card--link:hover {
  border-color: rgba(79, 216, 201, 0.4);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.5);
}

.product-card--link:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.product-card--link:focus:not(:focus-visible) {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.product-card--link:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.product-card__cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dim);
  margin: 0 0 0.75rem;
  flex: 1;
}

.product-card__media {
  aspect-ratio: 4/3;
  background: var(--steel-pale);
  overflow: hidden;
}

.product-card__media--empty {
  background: linear-gradient(145deg, var(--steel-pale) 55%, var(--border) 100%);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.product-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.product-card__measure {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: ui-monospace, monospace;
  color: var(--heading);
  letter-spacing: 0.02em;
}

.product-card__sku {
  font-size: 0.8rem;
  color: var(--steel);
  margin: -0.25rem 0 0.5rem;
  font-family: ui-monospace, monospace;
}

.product-card--list {
  flex-direction: row;
  align-items: stretch;
}

.product-card--list .product-card__media {
  width: min(160px, 38vw);
  min-width: min(160px, 38vw);
  max-height: 200px;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.product-card--list .product-card__body {
  padding: 1rem 1.25rem;
}

@media (max-width: 520px) {
  .product-card--list {
    flex-direction: column;
  }

  .product-card--list .product-card__media {
    width: 100%;
    min-width: 0;
    max-height: none;
    aspect-ratio: 16/9;
  }
}

/* Markdown / rich text (marketplace modal, etc.) */
.rte {
  display: block;
  line-height: 1.55;
  color: var(--text);
  font-size: 0.95rem;
}

.rte :first-child {
  margin-top: 0;
}

.rte :last-child {
  margin-bottom: 0;
}

.rte h1,
.rte h2,
.rte h3,
.rte h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  margin: 0.75rem 0 0.4rem;
  line-height: 1.25;
}

.rte h1 {
  font-size: 1.35rem;
}

.rte h2 {
  font-size: 1.15rem;
}

.rte h3,
.rte h4 {
  font-size: 1.02rem;
}

.rte p {
  margin: 0.45rem 0;
}

.rte ul,
.rte ol {
  margin: 0.4rem 0;
  padding-left: 1.35rem;
}

.rte li {
  margin: 0.25rem 0;
}

.rte a {
  color: var(--accent-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rte a:hover {
  color: var(--teal-bright);
}

.rte blockquote {
  margin: 0.55rem 0;
  padding: 0.4rem 0 0.4rem 0.85rem;
  border-left: 3px solid var(--steel-light);
  color: var(--text-muted);
  font-size: 0.95em;
}

.rte code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--steel-pale);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.rte pre {
  margin: 0.55rem 0;
  padding: 0.6rem 0.75rem;
  background: var(--steel-pale);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.85rem;
}

.rte pre code {
  background: none;
  padding: 0;
}

.rte table {
  width: 100%;
  font-size: 0.88rem;
  border-collapse: collapse;
  margin: 0.55rem 0;
}

.rte th,
.rte td {
  border: 1px solid var(--border);
  padding: 0.4rem 0.55rem;
  text-align: left;
}

.rte hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.75rem 0;
}

/* —— Product detail page (shared with /marketplace/product/) —— */
.product-page {
  max-width: min(100%, 960px);
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  box-sizing: border-box;
}

.product-page__toolbar {
  margin-bottom: 0.75rem;
}

.product-page__status {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-page__status[hidden] {
  display: none !important;
}

.product-page__article {
  min-width: 0;
}

.product-detail__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.35rem;
  min-width: 0;
  align-items: start;
}

@media (min-width: 720px) {
  .product-detail__layout {
    grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    /* Photo column and summary card share one row height (match the taller of the two) */
    align-items: stretch;
  }

  .product-detail__hero {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: 100%;
  }

  .product-detail__summary-card {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    height: 100%;
  }

  .product-detail__description {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: start;
  }
}

.product-detail__hero {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.product-detail__hero .product-detail__media-shell {
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(0, 74, 109, 0.25) 0%, transparent 65%),
    linear-gradient(165deg, var(--bg-panel) 0%, rgba(40, 38, 98, 0.35) 100%);
  box-shadow:
    0 0 0 1px var(--border),
    0 12px 36px rgba(0, 0, 0, 0.45);
  min-height: 160px;
  max-height: min(42vh, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

@media (min-width: 720px) {
  .product-detail__hero .product-detail__media-shell {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    height: 100%;
    width: 100%;
    padding: 0.45rem;
    justify-content: center;
    align-items: center;
  }
}

.product-detail__hero .product-detail__media {
  width: 100%;
  min-height: 160px;
  max-height: min(42vh, 320px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  box-sizing: border-box;
}

@media (min-width: 720px) {
  .product-detail__hero .product-detail__media {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 100%;
    height: auto;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    align-items: center;
  }
}

.product-detail__media-trigger {
  appearance: none;
  margin: 0;
  padding: 0.25rem;
  border: none;
  background: transparent;
  cursor: zoom-in;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  box-sizing: border-box;
}

@media (min-width: 720px) {
  .product-detail__media-trigger {
    display: flex;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0.2rem;
    flex: 0 1 auto;
    min-height: 0;
  }
}

.product-detail__media-trigger:focus {
  outline: none;
}

.product-detail__media-trigger:focus-visible {
  box-shadow: inset 0 0 0 3px var(--accent-glow);
}

.product-detail__hero .product-detail__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(38vh, 300px);
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (min-width: 720px) {
  .product-detail__hero .product-detail__media img {
    max-width: 100%;
    width: auto;
    height: auto;
    /* Fit inside stretched hero cell beside summary */
    max-height: 100%;
    object-fit: contain;
  }
}

.product-detail__hero .product-detail__media--empty {
  width: 100%;
  min-height: 160px;
  max-height: min(42vh, 320px);
  aspect-ratio: 1 / 1;
  max-width: 100%;
  background:
    linear-gradient(135deg, rgba(0, 74, 109, 0.2) 0%, var(--bg-panel) 50%, rgba(40, 38, 98, 0.25) 100%);
}

@media (min-width: 720px) {
  .product-detail__hero .product-detail__media--empty {
    flex: 1 1 auto;
    max-height: 100%;
    width: 100%;
    aspect-ratio: auto;
    min-height: 120px;
  }
}

.product-detail__summary-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 0.85rem 0.9rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

@media (min-width: 480px) {
  .product-detail__summary-card {
    padding: 1rem 1rem 1.05rem;
  }
}

@media (min-width: 720px) {
  .product-detail__layout > .product-detail__summary-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 0;
    padding: 0.75rem 0.85rem 0.75rem;
    box-sizing: border-box;
  }
}

/* Title row: name | category badge */
.product-detail__summary-top {
  min-width: 0;
}

.product-detail__identity {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 0.85rem;
  min-width: 0;
  margin-bottom: 0.35rem;
}

@media (min-width: 720px) {
  .product-detail__layout > .product-detail__summary-card .product-detail__identity {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 0;
  }

  .product-detail__layout > .product-detail__summary-card .product-detail__title {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .product-detail__layout > .product-detail__summary-card .product-detail__category {
    flex-shrink: 0;
    align-self: center;
  }

  .product-detail__layout > .product-detail__summary-card .product-detail__summary-top {
    flex: 0 0 auto;
  }

  .product-detail__layout > .product-detail__summary-card .product-detail__stats {
    margin-top: auto;
    padding-top: 0.65rem;
  }
}

.product-detail__category {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4e8ff;
  background: linear-gradient(135deg, rgba(0, 74, 109, 0.5), rgba(40, 38, 98, 0.55));
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  align-self: center;
  max-width: 100%;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 719px) {
  .product-detail__identity {
    justify-content: space-between;
    align-items: flex-start;
  }

  .product-detail__category {
    white-space: normal;
  }
}

.product-detail__title {
  flex: 1 1 12rem;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 800;
  color: var(--heading);
  margin: 0;
  line-height: 1.22;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.product-detail__sku {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  margin: 0.5rem 0 0.75rem;
  padding: 0.5rem 0.7rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (min-width: 720px) {
  .product-detail__layout > .product-detail__summary-card .product-detail__sku {
    margin: 0.15rem 0 0.25rem;
    padding: 0.4rem 0.55rem;
  }
}

.product-detail__sku-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.product-detail__sku-code {
  font-family: ui-monospace, monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
  background: var(--steel-pale);
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.product-detail__stats {
  margin-bottom: 0;
}

.product-detail__stats--triple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr));
  gap: 0.55rem;
  min-width: 0;
}

@media (min-width: 720px) {
  .product-detail__layout > .product-detail__summary-card .product-detail__stats--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }
}

@media (max-width: 420px) {
  .product-detail__stats--triple {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.product-detail__stat {
  position: relative;
  padding: 0.65rem 0.65rem 0.7rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  min-width: 0;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.2s;
}

.product-detail__stat:hover {
  border-color: rgba(79, 216, 201, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.product-detail__stat--price {
  background: linear-gradient(165deg, rgba(0, 74, 109, 0.35) 0%, rgba(40, 38, 98, 0.4) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.product-detail__stat--price::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--grad-from), var(--grad-to));
}

.product-detail__stat--measure::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--steel-light);
  opacity: 0.85;
}

.product-detail__stat--stock::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  bottom: 0.55rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--steel), var(--steel-light));
  opacity: 0.7;
}

.product-detail__stat--price,
.product-detail__stat--measure,
.product-detail__stat--stock {
  padding-left: 0.75rem;
}

.product-detail__stat-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
  margin-bottom: 0.35rem;
  opacity: 0.95;
}

.product-detail__stat-value {
  display: block;
}

.product-detail__stat-value--price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 3.2vw, 1.28rem);
  color: var(--heading);
  letter-spacing: -0.03em;
  word-break: break-word;
}

.product-detail__stat-value--measure {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(0.82rem, 2.6vw, 0.98rem);
  color: var(--accent-dim);
  letter-spacing: 0.02em;
  word-break: break-word;
}

.product-detail__stat-value--badge {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.product-detail__layout .stock-badge {
  font-size: 0.78rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
}

.product-detail__description {
  width: 100%;
  min-width: 0;
  padding: 1rem 1rem 1.1rem;
  margin: 0;
  margin-top: 0.15rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

@media (min-width: 720px) {
  .product-detail__description {
    margin-top: 0.35rem;
    padding: 1.15rem 1.15rem 1.2rem;
  }
}

.product-detail__section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-dim);
  margin: 0 0 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.product-detail__section-title::before {
  content: "";
  width: 4px;
  height: 1rem;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--grad-from), var(--grad-to));
  flex-shrink: 0;
}

.product-detail__desc {
  max-height: none;
  overflow: visible;
  padding: 0.75rem 0.85rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  font-size: 0.92rem;
  line-height: 1.58;
  color: var(--text);
}

.product-detail__no-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 0.5rem;
  padding: 0.85rem 0.95rem;
  background: var(--bg-soft);
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  line-height: 1.5;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .product-detail__stat:hover {
    transform: none;
  }
}

/* Full-size product image preview (<dialog>) — only when [open]; closed dialog must stay hidden */
.product-image-preview:not([open]) {
  display: none !important;
}

.product-image-preview[open] {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  margin: 0;
  padding: 3.25rem 1rem 1.25rem;
  box-sizing: border-box;
  border: none;
  background: linear-gradient(160deg, rgba(4, 8, 18, 0.97) 0%, rgba(40, 38, 98, 0.95) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-preview[open]::backdrop {
  background: rgba(8, 18, 28, 0.88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.product-image-preview__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.product-image-preview__close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
}

.product-image-preview__close:focus {
  outline: none;
}

.product-image-preview__close:focus-visible {
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.product-image-preview__img {
  max-width: min(96vw, 1400px);
  max-height: calc(100vh - 4.75rem);
  max-height: calc(100dvh - 4.75rem);
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--teal-bright);
}

.stock-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.stock-badge--ok {
  background: rgba(0, 74, 109, 0.35);
  color: var(--teal-bright);
}

.stock-badge--low {
  background: rgba(240, 180, 41, 0.15);
  color: var(--warning);
}

.stock-badge--out {
  background: rgba(255, 107, 107, 0.12);
  color: var(--danger);
}

/* Contact / footer */
.contact-strip {
  background: linear-gradient(180deg, var(--bg-panel) 0%, rgba(0, 74, 109, 0.2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 0 1.5rem 3rem;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.contact-strip p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

body.page-home .site-footer {
  margin-top: 1rem;
  padding: 2.5rem 1.5rem 2.75rem;
  background: linear-gradient(180deg, var(--grad-to) 0%, #03050c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.875rem;
  line-height: 1.65;
}

body.page-home .site-footer p {
  margin: 0.35rem 0;
}

body.page-home .site-footer p:first-child {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--accent);
}

body.page-home .site-footer a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s var(--ease-out);
}

body.page-home .site-footer a:hover {
  color: var(--teal-bright);
}

/* Admin layout */
.admin-body {
  padding-bottom: 3rem;
}

.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.admin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-top h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0;
  color: var(--heading);
}

.card-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--heading);
}

.card-panel code {
  font-family: ui-monospace, monospace;
  font-size: 0.8em;
  background: var(--steel-pale);
  color: var(--heading);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:hover td {
  background: var(--teal-soft);
}

.login-box {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
}

.login-box .logo {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.msg {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.msg--err {
  background: rgba(255, 107, 107, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.msg--ok {
  background: var(--teal-soft);
  color: var(--accent-dim);
  border: 1px solid rgba(15, 111, 104, 0.22);
}

.hidden {
  display: none !important;
}

.stock-input {
  width: 5rem;
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Admin console tabs */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-strong);
}

.admin-tab {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.admin-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.admin-tab.is-active {
  border-color: var(--accent);
  background: var(--teal-soft);
  color: var(--accent-dim);
}

.admin-panel {
  margin-bottom: 2rem;
}

.admin-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.admin-inline-check input {
  width: auto;
}

.admin-maintenance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-maintenance-row__label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading);
}

.admin-maintenance-toggle {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.product-image-block__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  color: var(--heading);
}

.product-image-block__hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 48ch;
}

.product-image-source {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-image-source__opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
}

.product-image-source__opt input {
  width: auto;
}

.product-image-field {
  margin-bottom: 0.75rem;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

.product-image-preview {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--steel-pale);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.product-image-preview img {
  display: block;
  margin-top: 0.35rem;
  max-height: 140px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

/* EasyMDE (product description) in admin */
.admin-body .EasyMDEContainer {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg);
}

.admin-body .EasyMDEContainer .CodeMirror {
  color: var(--text);
  background: var(--bg);
  border-color: var(--border-strong);
  min-height: 220px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.admin-body .EasyMDEContainer .editor-toolbar {
  border-color: var(--border-strong);
  background: var(--bg-soft);
}

.admin-body .EasyMDEContainer .editor-toolbar button {
  color: var(--text-muted);
}

.admin-body .EasyMDEContainer .editor-toolbar button:hover,
.admin-body .EasyMDEContainer .editor-toolbar button.active {
  color: var(--accent-dim);
  border-color: transparent;
}

.admin-body .EasyMDEContainer .editor-statusbar {
  border-color: var(--border-strong);
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-desc-field .EasyMDEContainer {
  margin-top: 0.25rem;
}
