/* =================================================================
   AI-THINKLABS — Editorial Brutalist-Tech Design System
   Bone canvas · oversized grotesk · engineering grid · electric accent
   ================================================================= */

:root {
  --bone: #F4F1EA;
  --bone-2: #ECE7DC;
  --paper: #FBFAF6;
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --muted: #5C5A52;
  --line: #0A0A0A;
  --line-soft: #D8D2C4;
  --cobalt: #1F2BFF;     /* primary electric accent */
  --cobalt-2: #4B54FF;
  --lime: #D4FF3D;       /* signal highlight */
  --coral: #FF5436;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --maxw: 1280px;
  --mono: "JetBrains Mono", "Space Mono", ui-monospace, monospace;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Type */
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; line-height: 0.98; letter-spacing: -.03em; color: var(--ink); text-transform: none; }
h1 { font-size: clamp(2.8rem, 8.5vw, 7rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 5vw, 3.8rem); }
h3 { font-size: 1.45rem; letter-spacing: -.02em; }
p { color: var(--muted); }
.display-xl { font-size: clamp(3rem, 11vw, 9rem); line-height: .9; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--cobalt); display: inline-block; }
.lead { font-size: 1.22rem; color: var(--ink-2); max-width: 56ch; line-height: 1.5; }
.mono { font-family: var(--mono); }
.hl { background: var(--lime); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.outline-text { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.accent { color: var(--cobalt); }

/* Buttons — hard-edged, magnetic */
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-weight: 600; font-size: .92rem; letter-spacing: .02em; text-transform: uppercase;
  padding: 16px 28px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  cursor: pointer; position: relative; transition: transform .12s ease, box-shadow .12s ease, background .2s, color .2s;
  box-shadow: var(--shadow-hard-sm); border-radius: 0;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--cobalt); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--cobalt-2); color:#fff; }
.btn-accent { background: var(--lime); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bone); }
.btn-lg { padding: 19px 34px; font-size: 1rem; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bone); border-bottom: 2px solid var(--ink); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -.03em; }
.brand-mark { width: 42px; height: 42px; background: var(--ink); display: grid; place-items: center; border: 2px solid var(--ink); padding: 6px; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark .logo-mark .lm-line { stroke: var(--bone); }
.brand-mark .logo-mark .lm-node { fill: var(--bone); }
.brand-mark .logo-mark .lm-core { fill: var(--lime); }
.brand:hover .brand-mark { background: var(--cobalt); }
.brand:hover .brand-mark .logo-mark .lm-core { fill: var(--bone); }

/* Logo mark — recolorable via classes */
.logo-mark .lm-line { stroke: var(--ink); stroke-width: 3; }
.logo-mark .lm-node { fill: var(--ink); }
.logo-mark .lm-core { fill: var(--cobalt); }

/* Hero logo lockup — featured on landing */
.hero-logo { display: flex; align-items: center; gap: 22px; margin: 6px 0 30px; }
.hero-logo .logo-mark { width: 96px; height: 96px; flex: 0 0 auto; filter: drop-shadow(4px 4px 0 rgba(10,10,10,.12)); }
.hero-logo .hl-word { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem,3.6vw,2.6rem); letter-spacing: -.03em; line-height: 1; }
.hero-logo .hl-word small { display: block; font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
/* animated pulsing nodes */
.hero-logo .lm-nodes circle { animation: nodePulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.hero-logo .lm-nodes circle:nth-child(1) { animation-delay: 0s; }
.hero-logo .lm-nodes circle:nth-child(2) { animation-delay: .35s; }
.hero-logo .lm-nodes circle:nth-child(3) { animation-delay: .7s; }
.hero-logo .lm-nodes circle:nth-child(4) { animation-delay: 1.05s; }
.hero-logo .lm-nodes circle:nth-child(5) { animation-delay: 1.4s; }
.hero-logo .lm-nodes circle:nth-child(6) { animation-delay: 1.75s; }
.hero-logo .lm-core { animation: coreGlow 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes nodePulse { 0%,100% { opacity:.55; } 50% { opacity:1; } }
@keyframes coreGlow { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .hero-logo .lm-nodes circle, .hero-logo .lm-core { animation: none; } }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { font-family: var(--mono); font-size: .82rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); padding: 9px 13px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); cursor: pointer; padding: 9px 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .3s; }

/* Scroll progress + cursor glow (injected) */
#scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--cobalt); width: 0; z-index: 2000; }
#cursor-glow { position: fixed; width: 380px; height: 380px; border-radius: 50%; pointer-events: none; z-index: 1; mix-blend-mode: multiply; background: radial-gradient(circle, rgba(31,43,255,.16), transparent 65%); transform: translate(-50%,-50%); transition: opacity .3s; opacity: 0; }

/* HERO */
.hero { position: relative; padding: 70px 0 0; border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: .55; }
.hero .container { position: relative; z-index: 2; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.hero-tag { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink); border: 2px solid var(--ink); padding: 8px 14px; background: var(--paper); }
.hero h1 { margin: 38px 0 0; max-width: 16ch; }
.hero-sub { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: 40px; padding-bottom: 56px; }
.hero-sub p { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-strip { border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(3,1fr); }
.hero-strip .cell { padding: 26px 28px; border-right: 2px solid var(--ink); }
.hero-strip .cell:last-child { border-right: 0; }
.hero-strip .num { font-family: var(--display); font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; }
.hero-strip .num small { color: var(--cobalt); }
.hero-strip .lbl { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }

/* Marquee */
.marquee { border-bottom: 2px solid var(--ink); background: var(--ink); color: var(--bone); overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; gap: 0; white-space: nowrap; animation: scroll-x 28s linear infinite; }
.marquee-track span { font-family: var(--mono); font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; }
.marquee-track span::after { content: "✺"; color: var(--lime); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* Sections */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.15rem; margin-top: 18px; color: var(--ink-2); }
.sec-index { font-family: var(--mono); font-size: .8rem; color: var(--cobalt); letter-spacing: .1em; }
.bg-ink { background: var(--ink); color: var(--bone); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background-image: none; }
.bg-ink h2, .bg-ink h3 { color: var(--bone); }
.bg-ink p { color: rgba(244,241,234,.7); }
.bg-paper { background: var(--paper); }

/* Grid system with hard borders */
.grid { display: grid; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }

/* Cards — bordered, hover lift, index numbers */
.card-wall { border: 2px solid var(--ink); background: var(--ink); display: grid; gap: 2px; grid-template-columns: repeat(3,1fr); }
.card {
  background: var(--paper); padding: 36px 32px 38px; position: relative; transition: background .25s, transform .25s;
  min-height: 280px; display: flex; flex-direction: column;
}
.card:hover { background: var(--lime); }
.card .ic { font-size: 2rem; margin-bottom: 22px; width: 56px; height: 56px; border: 2px solid var(--ink); display: grid; place-items: center; background: var(--bone); }
.card:hover .ic { background: var(--paper); }
.card .knum { position: absolute; top: 22px; right: 28px; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; color: var(--ink-2); }
.card .more { margin-top: auto; padding-top: 18px; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; display: inline-flex; gap: 8px; }
.card .more .arrow { transition: transform .2s; }
.card:hover .more .arrow { transform: translateX(5px); }

/* Standalone bordered card (testimonials etc.) */
.box { border: 2px solid var(--ink); background: var(--paper); padding: 32px; box-shadow: var(--shadow-hard-sm); transition: transform .2s, box-shadow .2s; }
.box:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--ink); }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); }
.split > div { padding: 52px 48px; }
.split > div:first-child { border-right: 2px solid var(--ink); }
.split.reverse > div:first-child { border-right: 0; }
.split.reverse > .split-media { order: 2; border-right: 2px solid var(--ink); }
.split.reverse > .split-body { order: 1; }
.feature-list { list-style: none; margin-top: 26px; }
.feature-list li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-soft); align-items: flex-start; }
.feature-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.feature-list .ck { flex: 0 0 auto; font-family: var(--mono); font-weight: 700; color: var(--cobalt); }
.feature-list b { color: var(--ink); }
.split-media { background: var(--ink); color: var(--bone); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.metric-row { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(244,241,234,.18); }
.metric-row .v { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--lime); letter-spacing: -.03em; line-height: 1; }
.metric-row .k { font-family: var(--mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(244,241,234,.75); }

/* Steps / process — schematic */
.steps { border: 2px solid var(--ink); display: grid; grid-template-columns: repeat(4,1fr); }
.step { padding: 40px 28px; border-right: 2px solid var(--ink); position: relative; background: var(--paper); transition: background .25s; }
.step:last-child { border-right: 0; }
.step:hover { background: var(--bone-2); }
.step .sn { font-family: var(--mono); font-size: .82rem; color: var(--cobalt); letter-spacing: .1em; }
.step h3 { margin: 18px 0 10px; }
.step p { font-size: .96rem; }

/* Stats band */
.stats-band { background: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 2px solid var(--lime); }
.stats-grid .stat { padding: 44px 28px; border-right: 2px solid rgba(212,255,61,.3); text-align: left; }
.stats-grid .stat:last-child { border-right: 0; }
.stats-grid .num { font-family: var(--display); font-size: clamp(2.6rem,5vw,4rem); font-weight: 700; color: var(--lime); letter-spacing: -.03em; line-height: 1; }
.stats-grid .lbl { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(244,241,234,.7); margin-top: 12px; }

/* CTA band */
.cta-band { border: 2px solid var(--ink); background: var(--cobalt); color: #fff; padding: 72px 48px; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 20px 0 30px; font-size: 1.15rem; }
.cta-band .btn-accent { box-shadow: var(--shadow-hard-sm); }
.cta-band .ghost-num { position: absolute; right: 30px; bottom: -30px; font-family: var(--display); font-weight: 700; font-size: 14rem; color: rgba(255,255,255,.08); line-height: 1; pointer-events: none; }

/* Testimonials */
.quote { border: 2px solid var(--ink); background: var(--paper); padding: 34px; display: flex; flex-direction: column; }
.quote .mark { font-family: var(--display); font-size: 3.5rem; line-height: .6; color: var(--cobalt); height: 30px; }
.quote p { font-size: 1.08rem; color: var(--ink); font-family: var(--display); font-weight: 500; letter-spacing: -.01em; line-height: 1.35; margin: 10px 0 20px; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; border-top: 2px solid var(--ink); padding-top: 18px; }
.quote .av { width: 44px; height: 44px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: .85rem; }
.quote .who b { display: block; font-family: var(--mono); font-size: .9rem; }
.quote .who span { font-family: var(--mono); font-size: .76rem; color: var(--muted); }

/* Page hero (interior) */
.page-hero { border-bottom: 2px solid var(--ink); padding: 84px 0 64px; position: relative; overflow: hidden; }
.page-hero .breadcrumbs { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 26px; }
.page-hero .breadcrumbs a { color: var(--cobalt); }
.page-hero h1 { max-width: 18ch; }
.page-hero p { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; margin-top: 24px; }
.page-hero .ghost-num { position: absolute; right: -10px; top: -40px; font-family: var(--display); font-weight: 700; font-size: 16rem; color: rgba(10,10,10,.05); pointer-events: none; line-height: 1; }

/* FAQ / accordion */
.faq-item { border: 2px solid var(--ink); border-bottom: 0; background: var(--paper); }
.faq-item:last-child { border-bottom: 2px solid var(--ink); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 26px 28px; font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item:hover .faq-q { background: var(--bone-2); }
.faq-q .pm { flex: 0 0 auto; width: 30px; height: 30px; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); transition: transform .3s, background .2s; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--lime); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 28px 26px; font-size: 1.02rem; }

/* Tiers */
.tier { border: 2px solid var(--ink); background: var(--paper); padding: 36px 32px; display: flex; flex-direction: column; }
.tier.featured { background: var(--ink); color: var(--bone); }
.tier.featured h3, .tier.featured .price { color: var(--lime); }
.tier.featured p, .tier.featured li { color: rgba(244,241,234,.78); }
.tier .badge { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--cobalt); margin-bottom: 14px; }
.tier.featured .badge { color: var(--lime); }
.tier h3 { font-size: 1.6rem; }
.tier ul { list-style: none; margin: 22px 0 28px; }
.tier li { padding: 11px 0 11px 26px; position: relative; font-size: .96rem; border-bottom: 1px solid var(--line-soft); }
.tier.featured li { border-bottom-color: rgba(244,241,234,.18); }
.tier li::before { content: "→"; position: absolute; left: 0; color: var(--cobalt); font-weight: 700; }
.tier.featured li::before { color: var(--lime); }
.tier .btn { margin-top: auto; justify-content: center; }

/* Blog */
.post { border: 2px solid var(--ink); background: var(--paper); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translate(-3px,-3px); box-shadow: 7px 7px 0 var(--ink); }
.post .thumb { height: 150px; background: var(--ink); border-bottom: 2px solid var(--ink); position: relative; overflow: hidden; }
.post .thumb .tn { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 4rem; color: rgba(212,255,61,.9); }
.post:hover .thumb { background: var(--cobalt); }
.post .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.post .tag { font-family: var(--mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--cobalt); }
.post h3 { margin: 12px 0; }
.post .meta { margin-top: auto; font-family: var(--mono); font-size: .76rem; color: var(--muted); padding-top: 16px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-weight: 500; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 16px 18px 6px; }
.form-grid .field { border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.form-grid .field:nth-child(2n) { border-right: 0; }
.form-grid .field.full { border-right: 0; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; padding: 4px 18px 18px; border: 0; background: transparent; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--bone-2); }
.field textarea { resize: vertical; min-height: 120px; padding-top: 8px; }
.form-note { font-family: var(--mono); font-size: .76rem; color: var(--muted); margin-top: 14px; }
.form-success { background: var(--lime); border: 2px solid var(--ink); padding: 16px 18px; margin-top: 16px; display: none; font-family: var(--mono); font-size: .9rem; }
.form-success.show { display: block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0; border: 2px solid var(--ink); }
.contact-info { padding: 48px; background: var(--ink); color: var(--bone); }
.contact-info h2 { color: var(--bone); }
.contact-form-cell { padding: 48px; }
.ci-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(244,241,234,.18); align-items: flex-start; }
.ci-row .ci-ic { font-size: 1.3rem; }
.ci-row b { display: block; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--lime); margin-bottom: 4px; }
.ci-row span, .ci-row a { color: rgba(244,241,234,.85); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(244,241,234,.7); border-top: 2px solid var(--ink); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 48px; }
.site-footer .brand { color: var(--bone); margin-bottom: 18px; }
.site-footer h4 { color: var(--bone); font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 11px; }
.site-footer a { color: rgba(244,241,234,.7); font-size: .96rem; }
.site-footer a:hover { color: var(--lime); }
.footer-about { font-size: .98rem; max-width: 32ch; color: rgba(244,241,234,.6); }
.footer-wordmark { font-family: var(--display); font-weight: 700; font-size: clamp(3rem,14vw,12rem); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px rgba(244,241,234,.18); padding: 30px 0; border-top: 2px solid rgba(244,241,234,.2); }
.footer-bottom { border-top: 2px solid rgba(244,241,234,.2); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.76,0,.24,1); }
.reveal-clip.in { clip-path: inset(0 0 0 0); }
[data-stagger] { transition-delay: var(--d, 0s); }

/* Responsive */
@media (max-width: 1000px) {
  body { background-size: 48px 48px; }
  .split, .grid-3, .card-wall { grid-template-columns: 1fr; }
  .split > div:first-child { border-right: 0; border-bottom: 2px solid var(--ink); }
  .split.reverse > .split-media { border-right: 0; }
  .card-wall { gap: 2px; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid .stat:nth-child(2n) { border-right: 0; }
  .stats-grid .stat:nth-child(-n+2) { border-bottom: 2px solid rgba(212,255,61,.3); }
  .footer-top, .contact-grid { grid-template-columns: 1fr; }
  .contact-info { border-bottom: 2px solid var(--ink); }
  .hero-sub { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; inset: 76px 0 auto 0; background: var(--bone); flex-direction: column; align-items: stretch; padding: 16px 24px 26px; gap: 0; border-bottom: 2px solid var(--ink); transform: translateY(-130%); transition: transform .35s; z-index: 999; }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 16px 6px; border-bottom: 1px solid var(--line-soft); }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .nav-toggle { display: block; }
  .hero-strip, .grid-2, .grid-4, .form-grid, .steps, .stats-grid, .footer-top { grid-template-columns: 1fr; }
  .hero-strip .cell, .step, .stats-grid .stat { border-right: 0; border-bottom: 2px solid var(--ink); }
  .stats-grid .stat { border-bottom: 2px solid rgba(212,255,61,.3); }
  .form-grid .field { border-right: 0; }
  section { padding: 64px 0; }
  .split > div, .contact-info, .contact-form-cell { padding: 32px 24px; }
  .cta-band { padding: 44px 26px; }
  #cursor-glow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-clip { opacity: 1; transform: none; clip-path: none; transition: none; }
  .marquee-track { animation: none; }
}

/* ===== Article / Insights detail pages ===== */
.article-hero { border-bottom: 2px solid var(--ink); padding: 72px 0 48px; position: relative; overflow: hidden; }
.article-hero .tagrow { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 22px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.article-hero .tagrow .pill { background: var(--lime); color: var(--ink); padding: 4px 12px; border: 2px solid var(--ink); }
.article-hero .tagrow a { color: var(--cobalt); }
.article-hero h1 { font-size: clamp(2.2rem,5.5vw,4rem); max-width: 20ch; }
.article-hero .standfirst { font-size: 1.3rem; color: var(--ink-2); max-width: 60ch; margin-top: 22px; font-family: var(--display); font-weight: 500; letter-spacing: -.01em; }
.article-wrap { max-width: 780px; margin: 0 auto; padding: 72px 28px; }
.article-body { font-size: 1.12rem; line-height: 1.75; }
.article-body > p { margin-bottom: 1.4em; color: var(--ink-2); }
.article-body h2 { font-size: 1.9rem; margin: 1.8em 0 .6em; letter-spacing: -.025em; }
.article-body h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--cobalt); margin-bottom: 18px; }
.article-body h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em 0; padding-left: 0; list-style: none; }
.article-body li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line-soft); color: var(--ink-2); }
.article-body ul li::before { content: "→"; position: absolute; left: 0; color: var(--cobalt); font-weight: 700; }
.article-body ol { counter-reset: ol; }
.article-body ol li::before { counter-increment: ol; content: counter(ol); position: absolute; left: 0; color: var(--cobalt); font-family: var(--mono); font-weight: 700; }
.article-body a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.article-body strong { color: var(--ink); }
.stat-callout { border: 2px solid var(--ink); background: var(--ink); color: var(--bone); padding: 30px 32px; margin: 2em 0; box-shadow: var(--shadow-hard-sm); }
.stat-callout .big { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem,6vw,3.6rem); color: var(--lime); letter-spacing: -.03em; line-height: 1; }
.stat-callout .cap { font-family: var(--mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(244,241,234,.75); margin-top: 12px; }
.pullquote { border-left: 6px solid var(--cobalt); padding: 8px 0 8px 26px; margin: 1.6em 0; font-family: var(--display); font-weight: 500; font-size: 1.5rem; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); }
.article-body .note { background: var(--bone-2); border: 2px solid var(--ink); padding: 22px 26px; margin: 1.8em 0; font-size: 1rem; }
.article-body .note b { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cobalt); display: block; margin-bottom: 6px; }
.sources { border-top: 2px solid var(--ink); margin-top: 3em; padding-top: 28px; }
.sources h3 { font-family: var(--mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.sources ol { counter-reset: src; list-style: none; padding: 0; }
.sources li { padding: 10px 0 10px 32px; position: relative; font-size: .92rem; border-bottom: 1px solid var(--line-soft); }
.sources li::before { counter-increment: src; content: "["counter(src)"]"; position: absolute; left: 0; font-family: var(--mono); color: var(--cobalt); font-size: .8rem; }
.sources a { color: var(--cobalt); word-break: break-word; }
.article-cta { border: 2px solid var(--ink); background: var(--cobalt); color: #fff; padding: 40px; margin-top: 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.article-cta h3 { color: #fff; font-size: 1.5rem; max-width: 22ch; }
.related { border-top: 2px solid var(--ink); }
.related .container { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 680px){ .article-wrap { padding: 48px 22px; } .article-cta { padding: 28px; } }
