/* ============================================
   HALready · IWR6843AOPEVM Landing Page
   Hand-crafted CSS · zero dependencies
   ============================================ */

:root {
  --bg: #0a0e1a;
  --bg-2: #0e1424;
  --bg-3: #131a2d;
  --bg-card: #11182b;
  --line: #1f2942;
  --line-2: #2a3656;
  --text: #e7ecf5;
  --text-dim: #9ba6bf;
  --text-mute: #8590ad;
  --brand: #00c8ff;
  --brand-2: #00a8d8;
  --brand-glow: rgba(0, 200, 255, 0.18);
  --warn: #ffb86b;
  --maxw: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { padding: 0; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: #66dcff; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #001018; padding: 8px 12px;
  font-weight: 600; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 64px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .logo { font-size: 15px; gap: 8px; }
  .logo svg { width: 24px; height: 24px; }
}
.logo:hover { color: var(--text); }
.primary-nav { display: flex; gap: 26px; align-items: center; }
.primary-nav > a {
  color: var(--text-dim); font-size: 14px; font-weight: 500;
}
.primary-nav > a:hover { color: var(--text); }
.header-cta { font-size: 14px; padding: 9px 16px; }

/* Dropdown menu item (Applications) */
.primary-nav .nav-item.has-dropdown { position: relative; }
.primary-nav .nav-item.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.primary-nav .nav-item.has-dropdown > a:hover,
.primary-nav .nav-item.has-dropdown:hover > a,
.primary-nav .nav-item.has-dropdown:focus-within > a { color: var(--text); }
.primary-nav .nav-item.has-dropdown.is-active > a {
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}
.primary-nav .nav-item .chev { transition: transform .2s ease; }
.primary-nav .nav-item:hover .chev,
.primary-nav .nav-item:focus-within .chev { transform: rotate(180deg); }
.primary-nav .nav-item .dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -20px;
  background: #11182b;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 8px;
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.9), 0 0 0 1px rgba(0,200,255,0.05);
  z-index: 200;
}
.primary-nav .nav-item.has-dropdown:hover .dropdown,
.primary-nav .nav-item.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.primary-nav .dropdown::before {
  content: '';
  position: absolute;
  top: -8px; left: 30px;
  width: 14px; height: 14px;
  background: #11182b;
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
  transform: rotate(45deg);
}
.primary-nav .dropdown a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  transition: color .12s ease, background .12s ease, transform .12s ease;
  white-space: nowrap;
}
.primary-nav .dropdown a:hover {
  color: var(--text);
  background: rgba(0, 200, 255, 0.07);
  transform: translateX(2px);
}
.primary-nav .dropdown a .dd-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.2);
  border-radius: 8px;
  color: var(--brand);
  flex-shrink: 0;
}
.primary-nav .dropdown a .dd-icon svg { width: 18px; height: 18px; }
.primary-nav .dropdown a > span:last-child {
  display: flex; flex-direction: column; gap: 2px;
}
.primary-nav .dropdown a .dd-meta {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  font-weight: 400;
}

@media (max-width: 880px) {
  .primary-nav { display: none; }
}
@media (max-width: 540px) {
  .site-header .header-cta { display: none; }
  .header-row { justify-content: space-between; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #001624;
  box-shadow: 0 8px 30px -10px var(--brand-glow), 0 0 0 1px rgba(0,200,255,0.4) inset;
}
.btn-primary:hover { color: #001624; background: #29d4ff; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { color: var(--text); border-color: var(--brand); background: rgba(0,200,255,0.05); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ===== Eyebrow & headings ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand);
  margin: 0 0 18px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 12px var(--brand);
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; line-height: 1.07; letter-spacing: -0.025em; }
h2 { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; max-width: 900px; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.kw { color: var(--brand); white-space: nowrap; }

.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-dark { background: var(--bg-2); }
.section-lede {
  font-size: 18px; color: var(--text-dim);
  max-width: 760px; margin: 0 0 56px;
}

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 110px 0 96px;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; opacity: 0.9; pointer-events: none;
}
.hero-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; max-width: 920px; }
.hero h1 { margin-bottom: 26px; }
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-dim); max-width: 760px;
  margin: 0 0 36px;
}
.hero-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px;
}
.hero-tags {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.hero-tags li {
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 6px 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--text-dim); background: rgba(255,255,255,0.015);
}

/* ===== Trust bar ===== */
.trust-bar {
  padding: 36px 0 44px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.trust-label {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-mute); margin: 0 0 18px;
}

/* Wordmark strip (logo placeholders) */
.trust-wordmarks {
  list-style: none; padding: 0; margin: 0 0 36px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-wordmarks li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  min-height: 78px; justify-content: center;
}
.trust-wordmarks li:last-child { border-right: none; }
.wm-name {
  font-weight: 700; font-size: 16.5px;
  color: var(--text); letter-spacing: -0.005em;
  line-height: 1.2;
}
.wm-tag {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--text-mute); text-transform: uppercase;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .trust-wordmarks { grid-template-columns: repeat(2, 1fr); }
  .trust-wordmarks li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .trust-wordmarks li:nth-child(2n) { border-right: none; }
  .trust-wordmarks li:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 480px) {
  .trust-wordmarks { grid-template-columns: 1fr; }
  .trust-wordmarks li { border-right: none; border-bottom: 1px solid var(--line); }
  .trust-wordmarks li:last-child { border-bottom: none; }
}

/* Testimonials — right-to-left marquee */
.testimonials-marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.testimonials-track {
  display: flex; gap: 16px;
  width: max-content;
  animation: tm-scroll 42s linear infinite;
}
.testimonials-marquee:hover .testimonials-track,
.testimonials-marquee:focus-within .testimonials-track {
  animation-play-state: paused;
}
@keyframes tm-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-50% - 8px), 0, 0); }
}

.testimonial {
  position: relative;
  flex: 0 0 340px;
  width: 340px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 16px;
  margin: 0;
  display: flex; flex-direction: column;
}
.testimonial::before {
  content: "\201C";
  position: absolute; top: -10px; left: 14px;
  font-family: var(--font-mono);
  font-size: 52px; line-height: 1;
  color: var(--brand); opacity: 0.4;
  pointer-events: none;
}
.testimonial blockquote {
  margin: 0 0 14px; padding: 6px 0 0;
  font-size: 13.5px; line-height: 1.55;
  color: var(--text);
  flex: 1;
}
.testimonial figcaption {
  display: flex; flex-direction: column; gap: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ti-role {
  font-weight: 600; font-size: 13px; color: var(--text);
}
.ti-org {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--text-mute); text-transform: uppercase;
}

@media (max-width: 560px) {
  .testimonial { flex: 0 0 280px; width: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none; }
}

/* ===== Capabilities grid ===== */
.cap-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}
@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.cap-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cap-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,200,255,0.06);
  border: 1px solid rgba(0,200,255,0.18);
  border-radius: 10px;
  margin-bottom: 18px;
}
.cap-card h3 { font-size: 17px; margin-bottom: 8px; }
.cap-card p { margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ===== V-Model ===== */
.vmodel-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 48px;
  overflow-x: auto;
}
.vmodel-svg { width: 100%; height: auto; min-width: 720px; }
.vmodel-svg .vnode rect {
  fill: var(--bg-2);
  stroke: var(--brand);
  stroke-width: 1;
}
.vmodel-svg .vnode-bottom rect {
  fill: rgba(0,200,255,0.12);
  stroke: var(--brand);
  stroke-width: 1.5;
}
.vmodel-svg text {
  fill: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
}

.vmodel-services {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) { .vmodel-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vmodel-services { grid-template-columns: 1fr; } }
.vsvc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 22px 22px;
}
.vsvc .vsvc-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,200,255,0.06);
  border: 1px solid rgba(0,200,255,0.18);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--brand);
}
.vsvc .vsvc-icon svg { width: 22px; height: 22px; }
.vsvc h3 { font-size: 16px; margin-bottom: 8px; }
.vsvc p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ===== Use Cases ===== */
.usecase-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) { .usecase-grid { grid-template-columns: 1fr; } }
.usecase {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.usecase header {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px;
}
.usecase-num {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--brand);
  letter-spacing: 0.08em;
}
.usecase h3 { font-size: 21px; margin: 0; }
.usecase p { color: var(--text-dim); margin: 0 0 18px; }
.usecase-stack {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.usecase-stack li {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-dim);
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
  border-left: 2px solid var(--line-2);
  border-radius: 0 4px 4px 0;
}
.usecase-stack strong { color: var(--text); font-weight: 600; }

/* ===== Why grid ===== */
.why-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1100px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
}
.why-num {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--brand); letter-spacing: 0.1em;
  display: inline-block; margin-bottom: 14px;
}
.why-card h3 { font-size: 18px; margin-bottom: 10px; }
.why-card p { color: var(--text-dim); margin: 0; font-size: 15px; }

/* ===== Case studies ===== */
.case-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }
.case {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column;
}
.case-tag {
  font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand); margin: 0 0 14px;
}
.case h3 { font-size: 19px; line-height: 1.3; margin-bottom: 14px; }
.case p { color: var(--text-dim); margin: 0 0 20px; flex-grow: 1; }
.case-meta {
  list-style: none; padding: 16px 0 0; margin: 0;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-mute);
}

/* ===== Process ===== */
.process-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  counter-reset: step;
}
@media (max-width: 720px) { .process-list { grid-template-columns: 1fr; } }
.process-list li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px;
  display: flex; gap: 18px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600;
  color: var(--brand);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,200,255,0.08);
  border: 1px solid rgba(0,200,255,0.25);
  border-radius: 8px;
  flex-shrink: 0;
}
.process-list h3 { font-size: 17px; margin: 0 0 6px; }
.process-list p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ===== FAQ ===== */
.faq {
  max-width: 860px;
  display: grid; gap: 12px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 56px 20px 24px;
  font-weight: 600; font-size: 16px;
  color: var(--text);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 22px; line-height: 1;
  color: var(--brand);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: '−'; }
.faq p {
  padding: 0 24px 22px;
  margin: 0;
  color: var(--text-dim);
  font-size: 15.5px;
}

/* ===== CTA section ===== */
.section-cta {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,200,255,0.12) 0%, transparent 60%),
    var(--bg-2);
  text-align: center;
}
.cta-inner { max-width: 760px; margin: 0 auto; }
.section-cta h2 { margin: 0 auto 18px; }
.section-cta p {
  font-size: 18px; color: var(--text-dim);
  max-width: 600px; margin: 0 auto 32px;
}
.cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 30px;
}
.cta-fine {
  font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-mute);
  margin-top: 24px;
}

/* ===== Footer ===== */
.site-footer {
  background: #060912;
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  margin-bottom: 40px;
}
.footer-grid h4 {
  color: var(--text); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin: 0 0 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a { color: var(--text-dim); }
.footer-grid ul a:hover { color: var(--brand); }
.footer-tag { margin: 16px 0 0; max-width: 320px; color: var(--text-mute); font-size: 14px; }
.addr { margin: 0; line-height: 1.7; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-mute); font-size: 12.5px;
}
.footer-bottom p { margin: 0; }

.ai-disclaimer {
  margin: 12px 0 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--brand);
  border-radius: var(--radius-sm);
  background: rgba(0, 200, 255, 0.025);
}
.ai-disclaimer-label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand);
}
.ai-disclaimer-body {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px; line-height: 1.65;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 70px 0 60px; }
}

/* ===== Impressum / Privacy pages ===== */
.legal-page main { padding: 60px 0 100px; }
.legal-page h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 24px; }
.legal-page h2 { font-size: 22px; margin: 36px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 16px; }
.legal-page .container { max-width: 820px; }
.legal-page strong { color: var(--text); font-weight: 600; }
.legal-page a { word-break: break-word; }
.legal-page hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

/* ============================================
   PHASE 2 EXTENSIONS for multi-page site
   ============================================ */

/* ===== Breadcrumbs ===== */
.breadcrumb {
  padding: 18px 0 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
  border-bottom: 1px solid var(--line);
}
.breadcrumb ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before {
  content: "/"; color: var(--line-2);
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ===== Article-style hero (cluster pages) ===== */
.article-hero {
  padding: 56px 0 36px;
  position: relative;
}
.article-hero .eyebrow { margin-bottom: 12px; }
.article-hero h1 { font-size: clamp(28px, 4vw, 46px); max-width: 880px; }
.article-hero .lede { font-size: clamp(17px, 1.4vw, 19px); max-width: 760px; margin-top: 18px; }
.article-hero .snippet-answer {
  margin: 28px 0 0;
  padding: 22px 26px;
  background: var(--bg-card);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16.5px;
  color: var(--text);
  max-width: 820px;
}
.article-hero .snippet-answer strong {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
}

/* ===== Article body (long-form) ===== */
.article-body {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 48px;
  padding: 36px 0 72px;
  justify-content: center;
}
.article-body .prose {
  max-width: 760px;
  min-width: 0;
}
.article-body .prose h2 {
  font-size: 28px;
  margin: 48px 0 16px;
  scroll-margin-top: 80px;
}
.article-body .prose h2:first-child { margin-top: 0; }
.article-body .prose h3 {
  font-size: 20px;
  margin: 28px 0 10px;
  color: var(--text);
}
.article-body .prose p,
.article-body .prose ul,
.article-body .prose ol {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text-dim);
  margin: 0 0 16px;
}
.article-body .prose ul,
.article-body .prose ol { padding-left: 22px; }
.article-body .prose li { margin-bottom: 8px; }
.article-body .prose strong { color: var(--text); font-weight: 600; }
.article-body .prose a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body .prose a:not(.btn):hover { color: #66dcff; }
.article-body .prose blockquote {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 18px;
  margin: 22px 0;
  color: var(--text);
  font-size: 17px;
  font-style: italic;
}

/* TOC sidebar (desktop only) */
@media (min-width: 1100px) {
  .article-body.with-toc {
    grid-template-columns: minmax(0, 760px) 240px;
    grid-template-areas: "prose toc";
    justify-content: center;
  }
  .article-body.with-toc .prose { grid-area: prose; }
  .article-body.with-toc .toc { grid-area: toc; }
}
.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: 14px;
  display: none;
}
@media (min-width: 1100px) {
  .toc { display: block; }
}
.toc h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  text-transform: uppercase;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 8px; }
.toc a {
  color: var(--text-dim);
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -14px;
  font-size: 13.5px;
  line-height: 1.4;
  transition: color .15s, border-color .15s;
}
.toc a:hover,
.toc a.is-active {
  color: var(--brand);
  border-left-color: var(--brand);
}

/* ===== Author byline ===== */
.byline-compact {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 18px 0 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-dim);
}
.byline-compact .by-author { color: var(--text); font-weight: 600; }
.byline-compact .by-role { color: var(--text-dim); }
.byline-compact .by-sep { color: var(--line-2); }
.byline-compact .by-meta { color: var(--text-mute); font-family: var(--font-mono); font-size: 12.5px; }

.byline-expanded {
  margin: 56px 0 24px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; gap: 28px; align-items: flex-start;
}
.byline-expanded .photo {
  width: 150px; height: 190px;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  object-position: 50% 28%;
  border: 1px solid rgba(0,200,255,0.25);
  background: #0e1424;
}
@media (max-width: 540px) {
  .byline-expanded { gap: 18px; padding: 20px; }
  .byline-expanded .photo { width: 110px; height: 140px; }
}
.byline-expanded .bio h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.byline-expanded .bio .role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand);
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}
.byline-expanded .bio p {
  font-size: 14.5px;
  color: var(--text-dim);
  margin: 0 0 12px;
  line-height: 1.6;
}
.byline-expanded .bio a.linkedin {
  font-size: 13.5px;
  color: var(--brand);
  display: inline-flex; align-items: center; gap: 6px;
}
@media (max-width: 540px) {
  .byline-expanded { flex-direction: column; }
}

/* ===== Comparison table ===== */
.compare-table-wrap {
  margin: 28px 0 36px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 720px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line-2);
}
.compare-table tbody th {
  background: rgba(255,255,255,0.015);
  color: var(--text);
  font-weight: 500;
  font-size: 14.5px;
  white-space: nowrap;
}
.compare-table tbody td { color: var(--text-dim); }
.compare-table tr:last-child th,
.compare-table tr:last-child td { border-bottom: none; }

/* ===== Image with caption ===== */
.figure {
  margin: 28px 0;
  text-align: left;
}
.figure img,
.figure svg {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.figure.bordered img {
  border: 1px solid var(--line);
  padding: 10px;
}
.figure figcaption {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 10px;
  font-family: var(--font-mono);
  line-height: 1.6;
  max-width: 680px;
}
.figure figcaption .cap-attr {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--line-2);
}

/* ===== Standards badges ===== */
.standards-list {
  list-style: none; padding: 0; margin: 16px 0 20px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.standards-list li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--text-dim);
  background: rgba(0,200,255,0.04);
}

/* ===== Inline trust strip ===== */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 18px 28px;
  padding: 18px 22px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 24px 0;
  font-size: 13.5px;
  color: var(--text-dim);
}
.trust-strip .item {
  display: flex; align-items: center; gap: 8px;
}
.trust-strip .item strong {
  color: var(--text); font-weight: 600;
}

/* ===== Related Articles ===== */
.related {
  margin: 64px 0 32px;
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.related h2 {
  font-size: 20px;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.related .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .related .grid { grid-template-columns: 1fr; }
}
@media (min-width: 721px) and (max-width: 1020px) {
  .related .grid { grid-template-columns: repeat(2, 1fr); }
}
.related a.card {
  display: block;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.related a.card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}
.related a.card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
}
.related a.card h3 {
  font-size: 15.5px;
  margin: 0 0 6px;
  color: var(--text);
}
.related a.card p {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

/* ===== Sticky CTA bar ===== */
.sticky-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 24px);
  z-index: 40;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,200,255,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  font-size: 14px;
}
.sticky-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.sticky-cta .msg { color: var(--text-dim); }
.sticky-cta .btn { padding: 9px 16px; font-size: 13.5px; }
.sticky-cta .dismiss {
  background: transparent;
  border: none;
  color: var(--text-mute);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}
.sticky-cta .dismiss:hover { color: var(--text); }
@media (max-width: 640px) {
  .sticky-cta { display: none; }
}

/* ===== Page nav extension ===== */
.primary-nav a.is-active {
  color: var(--text);
  border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}

/* ===== Section-cta variant for cluster pages ===== */
.cta-block {
  margin: 56px 0 24px;
  padding: 40px 32px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,200,255,0.10) 0%, transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.cta-block h2 {
  font-size: 24px;
  margin: 0 0 12px;
}
.cta-block p {
  color: var(--text-dim);
  margin: 0 0 22px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
  font-size: 16px;
}
.cta-block .row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ===== FAQ override for article context ===== */
.article-body .faq { max-width: none; }

/* ===== Mobile content patterns ===== */
@media (max-width: 540px) {
  .article-body .prose p { font-size: 16px; }
  .article-hero h1 { font-size: 30px; }
  .compare-table { min-width: 0; font-size: 13px; }
  .compare-table th,
  .compare-table td { padding: 10px 12px; }
}

/* ============================================
   PHASE 3 REFINEMENT: less klobig, more premium
   ============================================ */

/* More breathing room */
.section { padding: 120px 0; }
@media (max-width: 720px) { .section { padding: 80px 0; } }
.article-hero { padding: 72px 0 44px; }
.article-body { padding: 44px 0 96px; gap: 64px; }

/* Softer cards: prefer subtle background over hard border */
.cap-card,
.usecase,
.case,
.process-list li,
.related a.card,
.why-card,
.vsvc {
  border-color: rgba(31, 41, 66, 0.5);
  background: rgba(17, 24, 43, 0.55);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.cap-card:hover,
.usecase:hover,
.case:hover,
.related a.card:hover,
.why-card:hover {
  border-color: rgba(0, 200, 255, 0.35);
  background: rgba(17, 24, 43, 0.85);
}

/* More elegant snippet answer */
.article-hero .snippet-answer {
  padding: 26px 28px;
  background: linear-gradient(180deg, rgba(0,200,255,0.06) 0%, rgba(17,24,43,0.6) 100%);
  border: none;
  border-left: 2px solid var(--brand);
  border-radius: 0 8px 8px 0;
  font-size: 17px;
  line-height: 1.7;
}

/* Larger, more elegant headings */
.article-body .prose h2 {
  font-size: 32px;
  margin: 64px 0 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.article-body .prose h2:first-child { margin-top: 0; }
.article-body .prose p { margin: 0 0 20px; }

/* Smoother section transitions */
.section + .section,
.section + .section-dark,
.section-dark + .section { border-top: none; }

/* Refined buttons */
.btn { padding: 13px 24px; }
.btn-lg { padding: 18px 32px; }

/* ===== Inline figure (text flow integration) ===== */
.figure-inline {
  float: right;
  width: 280px;
  margin: 6px -20px 24px 32px;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.figure-inline img,
.figure-inline svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.figure-inline figcaption {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 10px;
  font-family: var(--font-mono);
  line-height: 1.5;
}
.figure-inline figcaption .cap-attr {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--line-2);
}
@media (max-width: 760px) {
  .figure-inline { float: none; width: 100%; margin: 24px 0; }
}

/* ===== Side-by-side content block (text + image) ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 56px;
  align-items: start;
  margin: 32px 0 40px;
}
.split.reverse { grid-template-columns: 360px 1fr; }
.split.reverse > div:first-child { order: 1; }
.split.reverse > div:last-child { order: 0; }
.split .figure-block {
  position: sticky;
  top: 88px;
}
.split .figure-block img,
.split .figure-block svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 16px;
}
.split .figure-block figcaption {
  font-size: 12.5px;
  color: var(--text-mute);
  margin-top: 12px;
  font-family: var(--font-mono);
  line-height: 1.6;
}
@media (max-width: 920px) {
  .split,
  .split.reverse { grid-template-columns: 1fr; }
  .split .figure-block { position: static; }
  .split.reverse > div:first-child { order: 0; }
  .split.reverse > div:last-child { order: 1; }
}

/* ===== Application scene hero (banner-style SVG) ===== */
.scene-banner {
  margin: 12px 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #0e1424 0%, #131a2d 100%);
  border: 1px solid var(--line);
}
.scene-banner svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
}

/* ===== About page: timeline & values ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0 12px;
}
@media (max-width: 720px) { .values-grid { grid-template-columns: 1fr; } }
.value-card {
  padding: 22px 24px 24px;
  background: rgba(17, 24, 43, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.value-card .icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,200,255,0.06);
  border: 1px solid rgba(0,200,255,0.18);
  border-radius: 10px;
  margin-bottom: 16px;
}
.value-card .icon svg { width: 22px; height: 22px; }
.value-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brand);
  display: block;
  margin-bottom: 6px;
}

/* Pictogram strip (engineering stack summary) */
.picto-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 28px 0 12px;
  padding: 20px;
  background: rgba(17, 24, 43, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.picto-strip .picto {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
}
.picto-strip .picto svg {
  width: 34px; height: 34px;
  color: var(--brand);
}
.picto-strip .picto span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; }
@media (max-width: 1000px) {
  .picto-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .picto-strip { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 14px; }
}

/* Inline icon for process / why-card numbered items */
.with-icon-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.with-icon-row .pic {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,200,255,0.06);
  border: 1px solid rgba(0,200,255,0.18);
  border-radius: 8px;
  flex-shrink: 0;
}
.with-icon-row .pic svg { width: 20px; height: 20px; color: var(--brand); }
.with-icon-row .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brand);
}
.value-card h3 { font-size: 16px; margin: 0 0 8px; }
.value-card p { font-size: 14.5px; color: var(--text-dim); margin: 0; line-height: 1.6; }

.timeline {
  list-style: none;
  padding: 0;
  margin: 24px 0 12px;
  border-left: 2px solid var(--line);
  padding-left: 28px;
}
.timeline li {
  margin: 0 0 28px;
  position: relative;
}
.timeline li::before {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: var(--brand);
  border-radius: 50%;
  left: -34px;
  top: 8px;
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline .year {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  display: block;
}
.timeline h3 { font-size: 16px; margin: 0 0 6px; }
.timeline p { color: var(--text-dim); margin: 0; font-size: 15px; line-height: 1.6; }

/* ===== Lighten trust strip ===== */
.trust-strip {
  background: transparent;
  border: 1px solid var(--line);
  padding: 16px 22px;
}
.trust-strip .item { font-size: 13.5px; }

/* ===== Hero tags less mono-heavy ===== */
.hero-tags li {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  padding: 7px 14px;
  background: rgba(0, 200, 255, 0.04);
}

/* ===== Standards-list more breathable ===== */
.standards-list li {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 13px;
  padding: 6px 12px;
}

/* ===== Section dividers softer ===== */
.section-dark {
  background:
    linear-gradient(180deg, rgba(0,200,255,0.018) 0%, transparent 50%),
    var(--bg-2);
}

/* ============================================
   Scroll-reveal animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
  .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
  .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
  .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
  .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.20s; }
  .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.26s; }
  .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.32s; }
}

/* Subtle hero pulse on radar rings */
@keyframes radarPulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 0.45; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-bg svg g circle { animation: radarPulse 4s ease-in-out infinite; }
  .hero-bg svg g circle:nth-child(1) { animation-delay: 0s; }
  .hero-bg svg g circle:nth-child(2) { animation-delay: 0.4s; }
  .hero-bg svg g circle:nth-child(3) { animation-delay: 0.8s; }
  .hero-bg svg g circle:nth-child(4) { animation-delay: 1.2s; }
  .hero-bg svg g circle:nth-child(5) { animation-delay: 1.6s; }
}

/* Hover lift on key cards */
.cap-card, .usecase, .case, .why-card, .value-card, .related a.card {
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.cap-card:hover, .usecase:hover, .case:hover, .why-card:hover, .value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -16px rgba(0, 200, 255, 0.25);
}

/* Stock photo banner */
.photo-banner {
  position: relative;
  margin: 0 0 32px;
  height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.photo-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.5) saturate(0.85) contrast(1.1);
}
.photo-banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,26,0.4) 0%, rgba(10,14,26,0.92) 100%);
  pointer-events: none;
}
.photo-banner .caption {
  position: absolute;
  left: 28px; bottom: 22px;
  color: var(--text);
  z-index: 2;
}
.photo-banner .caption .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin-bottom: 6px;
  display: block;
}
.photo-banner .caption h3 {
  font-size: 22px;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  max-width: 720px;
}
@media (max-width: 540px) {
  .photo-banner { height: 200px; }
  .photo-banner .caption { left: 18px; bottom: 16px; }
  .photo-banner .caption h3 { font-size: 16px; }
}

/* ============================================
   Social row
   ============================================ */
.social-row {
  display: flex; gap: 10px;
  margin: 14px 0 0;
}
.social-row a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17, 24, 43, 0.7);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-dim);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.social-row a:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(0,200,255,0.05);
}
.social-row svg { width: 18px; height: 18px; }
.byline-expanded .social-row { margin: 14px 0 0; }

/* ============================================
   Discovery Quiz Modal
   ============================================ */
.qz-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 16, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .2s ease;
}
.qz-backdrop.is-visible {
  display: flex;
  opacity: 1;
}
.qz-modal {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8);
}
@media (max-width: 540px) {
  .qz-modal { padding: 22px; border-radius: 10px; }
}
.qz-close {
  position: absolute; top: 14px; right: 16px;
  background: transparent; border: none;
  color: var(--text-mute); cursor: pointer;
  font-size: 24px; line-height: 1;
  padding: 4px 8px;
}
.qz-close:hover { color: var(--text); }
.qz-progress-dots {
  display: flex; gap: 6px; justify-content: center;
  margin-bottom: 22px;
}
.qz-progress-dots span {
  width: 24px; height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background .25s ease;
}
.qz-progress-dots span.is-done { background: var(--brand); }
.qz-progress-dots span.is-active { background: var(--brand); box-shadow: 0 0 12px rgba(0,200,255,0.5); }

.qz-step-head {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px;
  margin-bottom: 22px;
}
.qz-step-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,200,255,0.18) 0%, rgba(0,200,255,0.04) 100%);
  border: 1px solid rgba(0,200,255,0.35);
  border-radius: 16px;
  color: var(--brand);
}
.qz-step-icon svg { width: 30px; height: 30px; }
.qz-progress {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-mute); letter-spacing: 0.16em;
  margin: 0;
}
.qz-modal h3 {
  font-size: 21px;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  font-weight: 600;
  max-width: 380px;
  line-height: 1.3;
}
.qz-options {
  display: grid; gap: 8px;
  margin-bottom: 20px;
}
.qz-options label {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.qz-options label:hover {
  border-color: var(--line-2);
  background: var(--bg-3);
  transform: translateX(2px);
}
.qz-options label:has(input:checked) {
  border-color: var(--brand);
  background: rgba(0, 200, 255, 0.07);
}
.qz-options input[type="radio"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  background: var(--bg-card);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  margin: 0;
}
.qz-options input[type="radio"]:checked {
  border-color: var(--brand);
}
.qz-options input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,200,255,0.6);
}
.qz-options input[type="checkbox"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg-card);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  margin: 0;
}
.qz-options input[type="checkbox"]:checked {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 8px rgba(0,200,255,0.5);
}
.qz-options input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #001624;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.qz-multi-hint {
  font-size: 12px;
  color: var(--text-mute);
  margin: -8px 0 14px;
  font-style: italic;
  text-align: center;
}
.qz-options .opt-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,200,255,0.06);
  border: 1px solid rgba(0,200,255,0.16);
  border-radius: 7px;
  color: var(--brand);
  flex-shrink: 0;
}
.qz-options .opt-icon svg { width: 16px; height: 16px; }
.qz-options label .opt-label { flex: 1; }
.qz-other-input {
  display: none;
  margin: -8px 0 16px;
}
.qz-other-input.is-shown { display: block; }
.qz-other-input input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--brand);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: inherit; font-size: 14px;
}
.qz-contact-fields {
  display: grid; gap: 12px;
  margin-bottom: 18px;
}
.qz-contact-fields input,
.qz-contact-fields textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: inherit; font-size: 14px;
  width: 100%;
}
.qz-contact-fields textarea { min-height: 80px; resize: vertical; }
.qz-actions {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 4px;
}
.qz-actions .btn { padding: 12px 22px; font-size: 14px; }
.qz-back {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--line);
}
.qz-back:hover { color: var(--text); border-color: var(--line-2); }

/* ============================================
   Cookie / privacy banner
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 680px;
  margin: 0 auto;
  z-index: 60;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: none;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.6);
  font-size: 13px;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner .cookie-text {
  flex: 1 1 280px;
}
.cookie-banner .cookie-title {
  margin: 0 0 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.cookie-banner p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}
.cookie-banner a { color: var(--brand); text-decoration: underline; }
.cookie-banner .cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-self: center;
  flex-shrink: 0;
}
.cookie-banner .btn-consent {
  min-width: 110px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cookie-banner .btn-consent:hover,
.cookie-banner .btn-consent:focus-visible {
  background: var(--bg-3);
  border-color: var(--brand);
  outline: none;
}
@media (max-width: 540px) {
  .cookie-banner {
    padding: 14px 14px 12px;
    bottom: 10px; left: 10px; right: 10px;
    font-size: 12.5px;
    gap: 12px;
  }
  .cookie-banner p { font-size: 12.5px; line-height: 1.45; }
  .cookie-banner .cookie-actions { width: 100%; }
  .cookie-banner .btn-consent {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }
}
