/* =========================================================
   Glomidco — global stylesheet
   Brand: #cb0017 red, deep black, paper white
   Typography: Oswald (display, condensed) + Inter Tight (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter+Tight:wght@400;500;600&display=swap');

:root {
  --red:        #cb0017;
  --red-dark:   #9b0011;
  --red-soft:   #f7e6e8;
  --ink:        #111111;
  --ink-soft:   #4a4a4a;
  --paper:      #ffffff;
  --paper-warm: #faf8f6;
  --rule:       #e6e6e6;
  --max-w:      1180px;
  --gap:        clamp(1.25rem, 2.5vw, 2rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- TOP BAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(180%) blur(8px);
  background: rgba(255,255,255,0.92);
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: auto;
  flex: 0 0 auto;
}

.brand-mark {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
}

.brand-mark .accent { color: var(--red); }

.brand-sub {
  display: block;
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

/* ---------- NAV ---------- */
.nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav a {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: 2px;
  position: relative;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav a:hover { color: var(--red); text-decoration: none; }

.nav a.active { color: var(--red); }

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.25rem;
  height: 2px;
  background: var(--red);
}

.nav .cta {
  margin-left: 0.5rem;
  background: var(--red);
  color: var(--paper);
}

.nav .cta:hover { background: var(--red-dark); color: var(--paper); }

/* When the CTA is also the active page, keep it readable (white on red, no underline bar) */
.nav a.cta.active { color: var(--paper); background: var(--red-dark); }
.nav a.cta.active::after { display: none; }

/* mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  width: 42px;
  height: 38px;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  background: var(--ink);
  height: 2px;
  width: 18px;
  position: absolute;
  left: 50%;
  margin-left: -9px;
  content: "";
}
.menu-toggle span { top: 50%; margin-top: -1px; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ---------- HERO (home) ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 6px solid var(--red);
}

.hero::before {
  /* layered red wash + grain feel from CSS only */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 30%, rgba(203,0,23,0.55), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(203,0,23,0.25), transparent 50%),
    linear-gradient(180deg, #1a1a1a 0%, #0c0c0c 100%);
  z-index: 0;
}

.hero::after {
  /* faint diagonal grid texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 18px);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gap) clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1.2rem;
}

.hero h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

.hero h1 .red { color: var(--red); }
.hero h1 .stroke {
  -webkit-text-stroke: 1.5px var(--paper);
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 38rem;
  color: rgba(255,255,255,0.82);
  margin: 0 0 2rem;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* hero puzzle motif */
.hero-mark {
  position: relative;
  justify-self: end;
  width: min(380px, 100%);
  aspect-ratio: 1 / 1;
}

.hero-mark .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(203,0,23,0.95) 0%, rgba(203,0,23,0.55) 45%, transparent 70%);
  filter: blur(2px);
}

.hero-mark img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 78%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.45));
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--red);
  color: var(--paper);
}
.btn-primary:hover { background: var(--paper); color: var(--red); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: var(--paper); color: var(--paper); text-decoration: none; }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--red); color: var(--paper); text-decoration: none; }

/* ---------- PAGE HEADER (sub-pages) ---------- */
.pageheader {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 6px solid var(--red);
  overflow: hidden;
}
.pageheader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 50%, rgba(203,0,23,0.55), transparent 55%),
    linear-gradient(180deg, #1a1a1a 0%, #0c0c0c 100%);
}
.pageheader::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.pageheader-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gap) clamp(2.5rem, 5vw, 3.5rem);
}

.pageheader .crumb {
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.9rem;
}

.pageheader h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1;
  margin: 0;
}

/* ---------- SECTION ---------- */
section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

section.alt { background: var(--paper-warm); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 1rem;
}

h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.1;
  margin: 0 0 1.5rem;
}

h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.6rem;
}

p { margin: 0 0 1rem; }
p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 50rem; }

/* split: title left, body right */
.split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split .title-col {
  position: sticky;
  top: 5.5rem;
}

/* feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: 2px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 38px;
  height: 4px;
  background: var(--red);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.18);
}

.card .num {
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

.card p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }

/* facts strip */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2.5rem;
}

.fact {
  background: var(--paper);
  padding: 1.6rem 1.4rem;
}

.fact .n {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--red);
  line-height: 1;
}

.fact .l {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- TIMELINE (profile page) ---------- */
.timeline {
  margin-top: 2rem;
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--rule);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.55rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  background: var(--red);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--red);
  border-radius: 50%;
}

.timeline-item .yr {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--red);
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.timeline-item h3 { margin-bottom: 0.3rem; font-size: 1.1rem; }
.timeline-item p { color: var(--ink-soft); margin: 0; }

/* ---------- CONTACT ---------- */
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
  margin-top: 2rem;
  background: var(--paper);
}

.contact-card .panel {
  padding: clamp(1.8rem, 4vw, 3rem);
}

.contact-card .panel.dark {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.contact-card .panel.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(203,0,23,0.55), transparent 60%);
}

.contact-card .panel.dark > * { position: relative; z-index: 1; }

.contact-card h2 { color: inherit; }

.email-line {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 1.5rem 0 0.5rem;
  word-break: break-word;
}

.email-line a { color: var(--paper); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.email-line a:hover { color: var(--red); text-decoration: none; }

.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.2rem;
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

.kv dt {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding-top: 0.15rem;
}
.kv dd { margin: 0; }

.contact-card .panel.dark .kv dt { color: rgba(255,255,255,0.6); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  border-top: 6px solid var(--red);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-inner h4 {
  font-family: "Oswald", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0 0 0.9rem;
}

.footer-inner a { color: rgba(255,255,255,0.78); display: block; padding: 0.18rem 0; }
.footer-inner a:hover { color: var(--paper); text-decoration: none; }

.footer-brand { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 0.8rem; }
.footer-brand img { width: 44px; }
.footer-brand .name {
  font-family: "Oswald", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.copy {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding: 1.5rem var(--gap) 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- XBRL PAGE ---------- */
.platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: 2rem;
}

.platform {
  background: var(--paper);
  padding: 1.6rem 1.4rem 1.5rem;
  position: relative;
}

.platform .pf-tag {
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.5rem;
}

.platform .pf-name {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
}

.platform p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.5;
}

.platform.muted .pf-tag { color: var(--ink-soft); }

/* Feature list — used for processor / mapping highlights */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}

.feature-list li {
  padding: 0.85rem 0 0.85rem 2.2rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: 0.98rem;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 14px;
  height: 14px;
  background: var(--red);
  transform: rotate(45deg);
}

/* Big external CTA panel for thexbrlcompany.com */
.external-cta {
  position: relative;
  display: block;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2rem, 4vw, 3rem);
  margin-top: 2rem;
  text-decoration: none;
  overflow: hidden;
  border-left: 6px solid var(--red);
  transition: transform 0.22s ease;
}

.external-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(203,0,23,0.55), transparent 55%);
  pointer-events: none;
}

.external-cta > * { position: relative; }

.external-cta:hover { text-decoration: none; transform: translateY(-2px); }

.external-cta .ec-label {
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.7rem;
}

.external-cta h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: none;
  letter-spacing: 0.005em;
  color: var(--paper);
  margin: 0 0 0.6rem;
}

.external-cta p {
  color: rgba(255,255,255,0.8);
  margin: 0 0 1.2rem;
  max-width: 44rem;
}

.external-cta .ec-url {
  font-family: "Oswald", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
  display: inline-block;
}

.external-cta .ec-url::after {
  content: " →";
  display: inline-block;
  transition: transform 0.2s ease;
}
.external-cta:hover .ec-url::after { transform: translateX(4px); }

/* ---------- AI TEASER (home page dark feature section) ---------- */
.ai-teaser {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-top: 6px solid var(--red);
  border-bottom: 6px solid var(--red);
  overflow: hidden;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.ai-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(203,0,23,0.45), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(203,0,23,0.18), transparent 50%),
    linear-gradient(180deg, #1a1a1a 0%, #0c0c0c 100%);
}

.ai-teaser::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.ai-teaser-inner {
  position: relative;
  z-index: 1;
}

/* ---------- AI & INTEGRATION PAGE ---------- */
.triangle-stage {
  margin: 2rem 0 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  display: flex;
  justify-content: center;
}

.triangle-stage svg {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
}

.triangle-stage .tri-edge {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.triangle-stage .tri-corner-circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2;
}

.triangle-stage .tri-corner-circle.red {
  fill: var(--red);
  stroke: var(--red);
}

.triangle-stage .tri-corner-circle.dark {
  fill: var(--ink);
  stroke: var(--ink);
}

.triangle-stage .tri-corner-label {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  fill: var(--ink);
}

.triangle-stage .tri-corner-sub {
  font-family: "Inter Tight", sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}

.triangle-stage .tri-edge-label {
  font-family: "Inter Tight", sans-serif;
  font-style: italic;
  font-size: 12.5px;
  fill: var(--ink-soft);
}

.triangle-stage .tri-center-pill {
  fill: var(--ink);
}

.triangle-stage .tri-center-text {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--paper);
}

/* Ecosystem cards (sister companies) — three side by side */
.ecosystem {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.7rem 1.6rem 1.6rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.eco-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
}

.eco-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 14px 32px -18px rgba(0,0,0,0.2);
  text-decoration: none;
}

.eco-card .eco-corner {
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.7rem;
}

.eco-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0 0 0.3rem;
}

.eco-card .eco-entity {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  font-style: italic;
}

.eco-card p {
  font-size: 0.95rem;
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}

.eco-card .eco-visit {
  margin-top: auto;
  font-family: "Oswald", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.eco-card .eco-visit::after {
  content: "→";
  transition: transform 0.2s ease;
}

.eco-card:hover .eco-visit::after { transform: translateX(4px); }

/* Self card for Glomidco — slightly different, no link out */
.eco-card.self {
  background: var(--paper-warm);
  cursor: default;
}

.eco-card.self:hover {
  transform: none;
  border-color: var(--rule);
  box-shadow: none;
}

.eco-card.self .eco-visit {
  color: var(--ink-soft);
}

.eco-card.self .eco-visit::after {
  content: "•";
  margin-left: 0.2rem;
}

/* ---------- INITIATIVES (next-level.html + home teaser) ---------- */
.initiatives {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.initiative {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 2rem 1.9rem 1.9rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.initiative::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--red);
}

.initiative:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.25);
  text-decoration: none;
}

.initiative.dark {
  background: var(--ink);
  color: var(--paper);
}
.initiative.dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 15%, rgba(203,0,23,0.45), transparent 55%);
  pointer-events: none;
}
.initiative.dark > * { position: relative; z-index: 1; }

.initiative .ini-eyebrow {
  font-family: "Oswald", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 0.7rem;
}

.initiative h3 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0 0 0.4rem;
}

.initiative .tagline {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  font-size: 1.02rem;
}
.initiative.dark .tagline { color: rgba(255,255,255,0.7); }

.initiative p {
  font-size: 0.98rem;
  margin: 0 0 1.2rem;
}
.initiative.dark p { color: rgba(255,255,255,0.82); }

.initiative .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
}

.initiative .tag {
  font-family: "Oswald", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  border-radius: 2px;
}
.initiative.dark .tag {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.78);
}

.initiative .visit {
  margin-top: auto;
  font-family: "Oswald", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.initiative.dark .visit { color: var(--paper); }
.initiative .visit::after {
  content: "→";
  transition: transform 0.2s ease;
  display: inline-block;
}
.initiative:hover .visit::after { transform: translateX(4px); }

/* ---------- ANIMATIONS ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.7s cubic-bezier(.2,.7,.2,1) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.18s; }
.rise-3 { animation-delay: 0.32s; }
.rise-4 { animation-delay: 0.46s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { justify-self: center; width: min(280px, 70%); margin-top: 1rem; }
  .split { grid-template-columns: 1fr; }
  .split .title-col { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .initiatives { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr 1fr; }
  .ecosystem { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.6rem var(--gap);
    align-items: stretch;
    gap: 0;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav a:last-child { border-bottom: none; }
  .nav .cta { margin-left: 0; margin-top: 0.6rem; text-align: center; }
  .menu-toggle { display: block; }
  .topbar-inner { position: relative; }

  .cards { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  html { scroll-behavior: auto; }
}
