/* ==========================================================================
   Site stylesheet (dark theme)
   ========================================================================== */

:root {
  /* Dark surfaces */
  --ink: #0F2B46;              /* dark navy, used for filled bands and code blocks */
  --paper: #071524;            /* page background */
  --surface: rgba(12, 28, 46, 0.65);
  --surface-border: rgba(255, 255, 255, 0.1);

  /* Text on dark */
  --heading: #FFFFFF;
  --text: #CBD5E1;
  --muted: #94A3B8;

  /* Accents */
  --blue: #38BDF8;
  --blue-dark: #7DD3FC;
  --green: #1F8A5B;
  --green-dark: #17704A;
  --mint: rgba(0, 255, 157, 0.08);
  --sky: rgba(56, 189, 248, 0.06);
  --line: rgba(255, 255, 255, 0.1);

  --radius: 6px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

html, body {
  background-color: var(--paper) !important;
  color: #F8FAFC !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

h1, h2, h3, h4, .h3, .h4 { color: var(--heading); line-height: 1.15; margin: 0 0 0.5em; font-stretch: 112%; font-weight: 720; }
h1 { font-size: clamp(2.1rem, 2.6vw + 1.3rem, 3.5rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem); }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1rem; font-stretch: 100%; font-weight: 700; margin-top: 1.5em; }
.detail-side .h4:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lede { font-size: 1.2rem; max-width: 40em; color: var(--text); }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10000; }
.skip-link:focus { left: 1rem; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 650; text-decoration: none; border-radius: var(--radius); padding: 0.75rem 1.3rem; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-secondary:hover { background: var(--sky); color: var(--blue-dark); }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-small { padding: 0.5rem 0.95rem; font-size: 0.95rem; }

/* ==========================================================================
   Layering: background mesh, content, header
   ========================================================================== */
#network-mesh {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  display: block !important;
  background: radial-gradient(circle at 50% 20%, #0d2238 0%, #071524 100%) !important;
}

main#main {
  position: relative !important;
  z-index: 10 !important;
  background: transparent !important;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero-solo { grid-template-columns: 1fr; }
.hero h1 { font-size: clamp(2.3rem, 3vw + 1.3rem, 3.9rem); max-width: 12em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-figure { margin: 0; }

/* Architecture diagram: drawn as a light card on purpose */
.topology { display: block; width: 100%; height: auto; background: #fff; border: 1px solid #D3DFE5; border-radius: 10px; }
.topology .layer { fill: #fff; stroke: #1D5FA6; stroke-width: 1.5; }
.topology .layer-auto { fill: #E7F4ED; stroke: var(--green); }
.topology .layer-base { fill: var(--ink); stroke: var(--ink); }
.topology text { font-family: var(--font); }
.topology .t-site { font-size: 15px; font-weight: 700; fill: var(--ink); font-stretch: 112%; }
.topology .t-layer { font-size: 15px; font-weight: 650; fill: var(--ink); }
.topology .t-prod { font-size: 12.5px; fill: #557086; }
.topology .t-inv { fill: #fff; }
.topology .t-prod.t-inv { fill: #B9CCDD; }
.topology .t-link { font-size: 11.5px; fill: var(--green-dark); font-weight: 600; }
.topology .link { stroke: var(--green); stroke-width: 2.5; stroke-dasharray: 7 6; fill: none; animation: flow 1.6s linear infinite; }
.topology .node { fill: var(--green); }
@keyframes flow { to { stroke-dashoffset: -26; } }

/* Dynamic hero (homepage) */
.hero.hero-dynamic {
  position: relative !important;
  overflow: hidden !important;
  background: transparent !important;
  min-height: 520px;
  color: #fff;
}
.hero-dynamic .wrap,
.hero-dynamic .hero-inner,
.hero-dynamic .hero-copy,
.hero-dynamic .hero-showcase-container {
  position: relative !important;
  z-index: 2 !important;
}
.hero-dynamic h1 { color: #ffffff; }
.hero-dynamic p { color: #B9CCDD; }

.hero-featured { display: flex; flex-direction: column; gap: 1.25rem; position: relative; z-index: 2; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.hero-proof { font-size: 0.92rem; color: var(--muted); margin-top: 1.25rem; font-style: italic; }

/* ==========================================================================
   Sections & page heads
   ========================================================================== */
.section { padding: 4.5rem 0; }
.section,
.section-tint { background: transparent !important; }
.section-tint { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 2rem; }
.section-head p { margin: 0; color: var(--muted); max-width: 32em; }
.section-head h2 { margin: 0; }

.page-head {
  background: linear-gradient(180deg, rgba(7, 21, 36, 0.55) 0%, rgba(7, 21, 36, 0.15) 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 4.5rem 0 3.5rem 0 !important;
}
.page-head h1,
.page-head .h1 {
  color: #FFFFFF !important;
  font-weight: 850 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}
.page-head .lede,
.page-head p { color: var(--muted) !important; }
.page-head .crumb,
.page-head .crumb a { color: var(--blue) !important; font-weight: 700 !important; }

.crumb { margin-bottom: 0.75rem; font-weight: 600; }
.crumb a { text-decoration: none; }
.empty { padding: 2rem; border: 1px dashed var(--surface-border); border-radius: var(--radius); color: var(--muted); background: var(--surface); }

/* Dark defaults for section content */
main,
.page-body,
.band,
section,
.block-subpage_list,
.block-sub_page_list,
.block-process_steps,
.block-process-steps {
  background-color: transparent !important;
  color: #F8FAFC !important;
}
.band h2, section h2, .subpage-list h2, .process-steps h2 {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}
.band p, section p, .subpage-list .intro, .process-steps .intro { color: var(--muted) !important; }

/* ==========================================================================
   Content components
   ========================================================================== */

/* Platforms */
.platforms-section { padding: 3.5rem 0; }
.two-col { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.platforms { margin: 0; }
.platforms div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.platforms div:last-child { border-bottom: 1px solid var(--line); }
.platforms dt { font-weight: 700; color: var(--blue); }
.platforms dd { margin: 0; }

/* Lifecycle (sub-page list) */
.lifecycle { list-style: none; margin: 0; padding: 0; }
.lifecycle li { display: grid; grid-template-columns: 4rem 15rem 1fr; gap: 1.5rem; align-items: baseline; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.lifecycle li:last-child { border-bottom: 1px solid var(--line); }
.lifecycle .step { font-size: 2.2rem; font-weight: 300; font-stretch: 125%; color: var(--green); line-height: 1; }
.lifecycle h3, .lifecycle .h3 { margin: 0; }
.lifecycle h3 a, .lifecycle .h3 a { color: var(--heading); text-decoration: none; }
.lifecycle h3 a:hover, .lifecycle .h3 a:hover { color: var(--blue); text-decoration: underline; }
.lifecycle p { margin: 0; }

/* Packages */
.packages { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--surface-border); border-radius: 10px; }
.packages li { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 1.75rem; }
.packages li + li { border-top: 1px solid var(--line); }
.packages h3 { margin-bottom: 0.3rem; }
.packages p { margin: 0; }
.package-meta { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.price { font-weight: 700; color: var(--blue); font-size: 1.1rem; }

/* Entries (posts, case studies) */
.entries { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem 2rem; }
.entries li { border-top: 3px solid var(--blue); padding-top: 1rem; }
.entries .muted { margin-bottom: 0.3rem; font-size: 0.95rem; }
.entries h3 a, .entries .h3 a { color: var(--heading); text-decoration: none; }
.entries h3 a:hover, .entries .h3 a:hover { color: var(--blue); text-decoration: underline; }

.tags { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { background: var(--mint); color: #6EE7B7; border-radius: 4px; padding: 0.15rem 0.55rem; font-size: 0.875rem; font-weight: 600; }
.tags a { color: inherit; text-decoration: none; }

/* Detail layout */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 4rem; align-items: start; }
.detail-side { background: var(--surface); border: 1px solid var(--surface-border); border-left: 4px solid var(--green); border-radius: var(--radius); padding: 1.5rem; }
.detail-side .btn { margin-top: 1.25rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 1.6rem; position: relative; margin-bottom: 0.45rem; }
.checklist li::before { content: ""; position: absolute; left: 0.1rem; top: 0.45em; width: 0.7rem; height: 0.4rem; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.link-list { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; list-style: none; padding: 0; margin: 0; font-weight: 600; }

/* Prose (rich text, blog posts) */
.prose { max-width: 42rem; color: var(--text); }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35rem; }
.prose code { background: var(--sky); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; color: #E2E8F0; }
.prose pre { background: var(--ink); color: #E3EDF5; padding: 1rem 1.2rem; border-radius: var(--radius); overflow-x: auto; border: 1px solid var(--surface-border); }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.75rem; text-align: left; }
.prose th { background: var(--sky); color: var(--heading); }
.prose blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 4px solid var(--green); color: var(--muted); }

.downloads { max-width: 42rem; margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--sky); border: 1px solid var(--surface-border); border-radius: var(--radius); }
.downloads .h4 { margin-top: 0; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { padding: 0.5rem 0; }
.file-list a { font-weight: 650; }
.file-list-large li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.file-list-large p { margin: 0.3rem 0 0; }
.aside-link { margin-top: 3rem; color: var(--muted); }

.package-mini { list-style: none; padding: 0; margin: 0; }
.package-mini li { display: flex; flex-direction: column; padding: 0.75rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
.package-mini li:first-child { border-top: 0; padding-top: 0; }
.package-mini strong { color: var(--heading); }

/* Generic forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; margin-bottom: 1.5rem; }
.field.wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 650; color: #E2E8F0; margin-bottom: 0.35rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: #F8FAFC; background: rgba(7, 21, 36, 0.85); border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 0.65rem 0.75rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(56, 189, 248, .2); outline-offset: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: #F87171; }
.help { font-size: 0.9rem; color: var(--muted); margin: 0.3rem 0 0; }
.error { font-size: 0.9rem; color: #FCA5A5; margin: 0.3rem 0 0; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--mint); border-left: 4px solid var(--green); padding: 0.9rem 1.1rem; border-radius: var(--radius); color: #E2E8F0 !important; font-weight: 600; }
.notice-error { background: rgba(248, 113, 113, 0.1); border-left-color: #F87171; }
.notice-warn { background: rgba(251, 191, 36, 0.1); border-left-color: #FBBF24; }
.notice ul { margin: 0; padding-left: 1rem; }

/* CTA band */
.cta-band { background: rgba(15, 43, 70, 0.55); border-top: 1px solid rgba(56, 189, 248, 0.15); border-bottom: 1px solid rgba(56, 189, 248, 0.15); color: #DCE7F0; padding: 3.5rem 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; max-width: 34em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   Wagtail blocks
   ========================================================================== */

/* Stats band */
.stats-band { background: rgba(15, 43, 70, 0.55); border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #fff; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 1.75rem 1.5rem 1.75rem 0; border-left: 1px solid rgba(255,255,255,.14); padding-left: 1.5rem; }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats dd { margin: 0; font-size: clamp(1.6rem, 1.5vw + 1rem, 2.3rem); font-weight: 700; font-stretch: 118%; color: #fff; line-height: 1.1; }
.stats dt { color: #B9CCDD; margin-top: 0.35rem; font-size: 0.95rem; }

/* Feature grid */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.25rem 2.5rem; }
.features li { border-top: 2px solid var(--line); padding-top: 1rem; }
.features h3 { margin-bottom: 0.4rem; }
.features h3 a { color: var(--heading); text-decoration: none; }
.features h3 a:hover { color: var(--blue); text-decoration: underline; }
.features p { margin: 0; }

/* Process steps */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0; position: relative; }
.process li { padding: 0 1.25rem 0 0; position: relative; }
.process li::before { content: ""; position: absolute; top: 1.15rem; left: 2.6rem; right: 0.5rem; height: 2px; background: var(--line); }
.process li:last-child::before { display: none; }
.process .step { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; margin-bottom: 0.9rem; position: relative; }
.process h3 { margin-bottom: 0.35rem; }
.process p { margin: 0; font-size: 0.98rem; }

/* Assessment checklist */
.assessment { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; background: var(--mint); border: 1px solid rgba(0, 255, 157, 0.2); border-radius: 10px; padding: 2.5rem; }
.assessment .btn { margin-top: 0.5rem; }
.checklist-columns { columns: 2 14rem; column-gap: 2rem; }
.checklist-columns li { break-inside: avoid; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 650; color: var(--heading); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.9rem; font-size: 1.4rem; color: var(--green); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .prose { padding-bottom: 1rem; }

/* Testimonials */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.testimonial { margin: 0; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius); padding: 1.5rem; border-left: 4px solid var(--green); }
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.05rem; color: var(--heading); }
.testimonial figcaption { display: flex; gap: 0.75rem; align-items: center; }
.initials { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #1D5FA6; color: #fff; font-weight: 700; flex: none; }

/* Certifications */
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; }
.cert { display: flex; gap: 1rem; align-items: center; padding: 1.1rem; border: 1px solid var(--surface-border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; height: 100%; }
a.cert:hover { border-color: var(--blue); }
.cert-badge { width: 72px; height: auto; flex: none; }
.cert-mark { flex: none; width: 72px; height: 72px; display: grid; place-items: center; text-align: center; font-size: 0.72rem; font-weight: 800; font-stretch: 110%; color: #fff; background: linear-gradient(135deg, #1D5FA6, var(--green)); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); padding: 0 6px; line-height: 1.1; }
.cert-text { display: flex; flex-direction: column; }
.cert-text strong { color: var(--heading); font-size: 1.1rem; }
.cert-text .muted { font-size: 0.88rem; }

/* Misc */
.section-text + .section-text { padding-top: 0; }
.post-body { padding: 2rem 0 1rem; }
.post-body .section { padding: 1.25rem 0; }
.post-tags { margin: 1.5rem 0 0; }
.spacer { height: 3rem; }
.figure { margin: 1.5rem auto; }
.figure img { border-radius: var(--radius); height: auto; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.form-intro { margin-bottom: 1.5rem; }
.filter-note { margin-bottom: 1.5rem; }
.pager { display: flex; gap: 1.5rem; align-items: center; margin-top: 2.5rem; font-weight: 600; }

/* ==========================================================================
   Pillars, framework timeline, bio card
   ========================================================================== */
.brand-text { display: inline-flex; align-items: baseline; gap: 0.35rem; }
.brand-sub { color: var(--muted); font-size: 0.9em; font-weight: 500; }

.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 2rem; margin-top: 2rem; }
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pillar-card:nth-child(2) { border-top-color: var(--green); }
.pillar-card:nth-child(3) { border-top-color: #818CF8; }
.pillar-tag { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; margin-bottom: 0.5rem; }
.pillar-card h3 { margin-bottom: 0.75rem; }
.pillar-card ul { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; }
.pillar-card ul li { padding-left: 1.4rem; position: relative; margin-bottom: 0.5rem; font-size: 0.95rem; color: var(--text); }
.pillar-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.framework-timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.framework-phase { border: 1px solid var(--surface-border); background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
/* Scoped so it doesn't change the engagement pipeline numbers */
.framework-phase .phase-number { font-size: 1.5rem; font-weight: 800; color: var(--green); margin-bottom: 0.5rem; }
.phase-milestone { font-size: 0.8rem; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 0.75rem; }

.bio-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 3rem;
  margin-top: 2rem;
}

/* ==========================================================================
   Glass cards & showcase carousel (homepage hero)
   ========================================================================== */
.glass-card {
  background: rgba(15, 35, 56, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.glass-card:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.35); }

.feature-status { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.live-pulse { width: 8px; height: 8px; background-color: #00FF9D; border-radius: 50%; box-shadow: 0 0 0 rgba(0, 255, 157, 0.6); animation: pulse-ring 1.8s infinite; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(0, 255, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}
.feature-badge { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; color: var(--blue); text-transform: uppercase; }

.main-feature h3 { color: #FFFFFF; font-size: 1.35rem; margin-bottom: 0.6rem; line-height: 1.3; }
.main-feature p { color: var(--muted); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.5rem; }

.feature-metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.metric-pill { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; padding: 0.75rem 1rem; display: flex; flex-direction: column; }
.metric-pill .val { color: #00FF9D; font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.metric-pill .lbl { color: var(--muted); font-size: 0.78rem; margin-top: 0.2rem; }

.feature-link { display: inline-block; color: var(--blue); font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.feature-link:hover { color: #00FF9D; text-decoration: underline; }

.sub-feature { padding: 1.1rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; color: var(--text); }
.sub-stat { display: flex; align-items: center; gap: 0.6rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot.green { background: #00FF9D; }
.dot.blue { background: var(--blue); }

.hero-showcase-container { position: relative; z-index: 2; width: 100%; max-width: 480px; justify-self: end; }
.showcase-slider { position: relative; min-height: 380px; }
.showcase-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s;
  pointer-events: none;
}
.showcase-slide.active { position: relative; opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }

.showcase-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 35, 56, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  backdrop-filter: blur(8px);
}
.showcase-dots { display: flex; gap: 0.5rem; }
.dot-btn { width: 28px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); border: none; cursor: pointer; padding: 0; transition: all 0.3s ease; }
.dot-btn.active { background: #00FF9D; width: 38px; box-shadow: 0 0 10px rgba(0, 255, 157, 0.5); }
.showcase-telemetry { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); font-weight: 600; }

.showcase-slide h2,
.showcase-slide h2.card-title,
.showcase-slide h3,
.hero-dynamic .showcase-slide h2,
.hero-dynamic .showcase-slide h3 {
  color: #FFFFFF !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  margin-top: 0.25rem !important;
  margin-bottom: 0.65rem !important;
  font-stretch: 100% !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  display: block !important;
}
.showcase-slide p,
.hero-dynamic .showcase-slide p { color: var(--text) !important; font-size: 0.95rem !important; line-height: 1.55 !important; margin-bottom: 1.25rem; }
.showcase-slide .feature-badge { color: var(--blue) !important; font-weight: 800; letter-spacing: 0.08em; font-size: 0.75rem; }
.showcase-slide .feature-link { color: var(--blue) !important; font-weight: 700; font-size: 0.92rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; transition: color 0.2s ease; }
.showcase-slide .feature-link:hover { color: #00FF9D !important; text-decoration: underline; }
.showcase-slide .metric-pill .val { color: #00FF9D !important; }
.showcase-slide .metric-pill .lbl { color: var(--muted) !important; }

/* ==========================================================================
   Stats cards (enhanced stats block)
   ========================================================================== */
.stats-band-enhanced {
  background: linear-gradient(180deg, rgba(9, 26, 43, 0.55) 0%, rgba(7, 21, 36, 0.35) 85%, rgba(14, 32, 51, 0.55) 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem 0 4rem;
  position: relative;
  z-index: 2;
}
.stats-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem; align-items: stretch; }
.stat-card {
  position: relative;
  min-height: 140px;
  justify-content: flex-start;
  background: rgba(12, 28, 46, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5) !important;
  background: rgba(16, 38, 62, 0.75) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}
.stat-card.is-clickable:hover { cursor: pointer; }
.stat-card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; }

.stat-top { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.75rem; }
.stat-pulse { width: 6px; height: 6px; border-radius: 50%; }
.stat-tag { font-size: 0.7rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.stat-pulse.green { background: #00FF9D; box-shadow: 0 0 8px rgba(0, 255, 157, 0.7); }
.stat-tag.green { color: #00FF9D; }
.stat-pulse.blue { background: var(--blue); box-shadow: 0 0 8px rgba(56, 189, 248, 0.7); }
.stat-tag.blue { color: var(--blue); }
.stat-pulse.amber { background: #FBBF24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.7); }
.stat-tag.amber { color: #FBBF24; }

.stat-value {
  margin: 0 0 0.2rem 0;
  font-size: clamp(1.7rem, 1.8vw + 0.9rem, 2.3rem);
  font-weight: 800;
  font-stretch: 112%;
  color: #FFFFFF !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.stat-label { color: var(--text) !important; margin-top: 0.45rem; font-size: 0.875rem !important; font-weight: 500 !important; line-height: 1.4 !important; }
.stat-subtext { color: var(--muted); font-size: 0.8rem; margin-top: 0.25rem; }

.stats-header { text-align: center; margin-bottom: 2rem; }
.stats-header h2 { color: #FFFFFF !important; font-size: 2rem; margin: 0.5rem 0 0; }
.stats-header .eyebrow {
  color: var(--blue) !important;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Core practice services grid
   ========================================================================== */
.services-band-dark {
  background: transparent !important;
  padding: 5rem 0 6rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.services-header { max-width: 820px; margin: 0 auto 3.5rem auto; text-align: center; }
.services-eyebrow {
  display: inline-block;
  color: var(--blue) !important;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}
.services-title {
  color: #FFFFFF !important;
  font-size: clamp(2rem, 2.2vw + 1.2rem, 2.85rem) !important;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1rem 0;
}
.services-summary { color: var(--muted) !important; font-size: 1.05rem; line-height: 1.6; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1.75rem; align-items: stretch; }
.service-card {
  background: rgba(12, 28, 46, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}
.service-card-top { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.2rem; }
.service-pulse { width: 7px; height: 7px; border-radius: 50%; }
.service-pulse.blue { background: var(--blue); box-shadow: 0 0 8px rgba(56, 189, 248, 0.8); }
.service-pulse.green { background: #00FF9D; box-shadow: 0 0 8px rgba(0, 255, 157, 0.8); }
.service-pulse.amber { background: #FBBF24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.8); }
.service-badge { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.service-badge.blue { color: var(--blue); }
.service-badge.green { color: #00FF9D; }
.service-badge.amber { color: #FBBF24; }
.service-name { color: #FFFFFF !important; font-size: 1.35rem; font-weight: 750; line-height: 1.3; margin: 0 0 0.85rem 0; letter-spacing: -0.01em; }
.service-desc { color: var(--muted) !important; font-size: 0.95rem; line-height: 1.55; margin: 0 0 1.4rem 0; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.5rem; }
.tech-chip {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.service-deliverables { list-style: none; padding: 0; margin: 0 0 1.8rem 0; display: flex; flex-direction: column; gap: 0.65rem; }
.service-deliverables li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text); font-size: 0.88rem; line-height: 1.4; }
.service-deliverables .check-icon { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
.service-action { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.service-link { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--blue) !important; font-weight: 650; font-size: 0.92rem; text-decoration: none !important; transition: all 0.2s ease; }
.service-link:hover { color: #00FF9D !important; gap: 0.65rem; }
.service-link .arrow-glyph { font-size: 1.1rem; line-height: 1; transition: transform 0.2s ease; }
.service-link:hover .arrow-glyph { transform: translateX(3px); }

/* ==========================================================================
   Sub-page and process lists as glass cards
   Scoped to the lists that should look like this, so ordinary numbered
   lists in articles and rich text stay normal lists.
   ========================================================================== */
ol.subpages,
ol.lifecycle,
ol.process,
.subpage-list ol,
.subpage-list ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 3rem 0 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  counter-reset: subpage-counter;
}

ol.subpages > li,
ol.lifecycle > li,
ol.process > li,
.subpage-list ol > li,
.process-steps ol > li,
.process-steps ul > li {
  background: rgba(13, 27, 44, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 10px !important;
  padding: 1.6rem 2rem !important;
  display: grid !important;
  grid-template-columns: 3.5rem 19rem 1fr !important;
  align-items: center !important;
  gap: 1.5rem !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Card styling replaces the old connector lines and dividers */
ol.process > li::before { display: none !important; }
ol.lifecycle > li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important; }

ol.subpages > li:hover,
ol.lifecycle > li:hover,
ol.process > li:hover,
.subpage-list ol > li:hover,
.process-steps ol > li:hover {
  background: rgba(18, 38, 62, 0.95) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  transform: translateX(6px) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 0 18px rgba(56, 189, 248, 0.15) !important;
}

ol.subpages > li::before,
.subpage-list ol > li::before,
ol.lifecycle .step,
ol.process .step,
.num,
.process-steps .step-num {
  color: #00FF9D !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.6) !important;
}
ol.process .step { background: none !important; width: auto !important; height: auto !important; margin: 0 !important; position: static !important; }

ol.subpages > li a,
ol.subpages > li h3,
ol.lifecycle > li a,
ol.lifecycle > li h3,
ol.process > li h3,
.subpage-list ol > li a,
.subpage-list ol > li h3,
.process-steps h3 {
  color: #FFFFFF !important;
  font-size: 1.25rem !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  letter-spacing: -0.01em !important;
  transition: color 0.2s ease !important;
  margin: 0 !important;
}

ol.subpages > li:hover a,
ol.lifecycle > li:hover a { color: var(--blue) !important; }

ol.subpages > li p,
ol.lifecycle > li p,
ol.process > li p,
.subpage-list ol > li p,
.process-steps p {
  color: var(--muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ==========================================================================
   Engagement pipeline (5 phases) & engagement models share this section
   ========================================================================== */
.engagement-section {
  padding: 5rem 0 6rem 0;
  position: relative;
  z-index: 2;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.engagement-pipeline { display: flex !important; gap: 1.25rem !important; align-items: stretch !important; width: 100% !important; }

.engagement-box {
  flex: 1 1 0;
  min-width: 0;
  min-height: 260px !important;
  background: rgba(12, 28, 46, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 1.8rem 1.4rem;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: flex 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease !important;
}

.box-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.engagement-box .phase-number { font-size: 1.65rem; font-weight: 850; line-height: 1; letter-spacing: -0.02em; margin: 0; }
.phase-status-dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.4; transition: opacity 0.3s ease, transform 0.3s ease; }

.phase-title {
  color: #FFFFFF !important;
  font-size: 1.25rem !important;
  font-weight: 750 !important;
  margin: 0 0 0.75rem 0 !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phase-body { flex-grow: 1 !important; max-height: none !important; overflow: visible !important; opacity: 0.65; transition: opacity 0.3s ease; }
.phase-desc { color: var(--muted) !important; font-size: 0.92rem !important; line-height: 1.55 !important; margin: 0 !important; }

.engagement-box:not(.active):not(:hover) .phase-desc {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.phase-progress-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, 0.05); }
.phase-progress-bar .fill { display: block; height: 100%; width: 0%; transition: width 0.3s ease; }

.engagement-box.phase-1 .phase-number { color: #00E5A3; text-shadow: 0 0 10px rgba(0, 229, 163, 0.5); }
.engagement-box.phase-1 .phase-status-dot { background: #00E5A3; }
.engagement-box.phase-1 .phase-progress-bar .fill { background: #00E5A3; }
.engagement-box.phase-1.active,
.engagement-box.phase-1:hover { border-color: rgba(0, 229, 163, 0.6) !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(0, 229, 163, 0.25) !important; }

.engagement-box.phase-2 .phase-number { color: #38BDF8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
.engagement-box.phase-2 .phase-status-dot { background: #38BDF8; }
.engagement-box.phase-2 .phase-progress-bar .fill { background: #38BDF8; }
.engagement-box.phase-2.active,
.engagement-box.phase-2:hover { border-color: rgba(56, 189, 248, 0.6) !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(56, 189, 248, 0.25) !important; }

.engagement-box.phase-3 .phase-number { color: #0EA5E9; text-shadow: 0 0 10px rgba(14, 165, 233, 0.5); }
.engagement-box.phase-3 .phase-status-dot { background: #0EA5E9; }
.engagement-box.phase-3 .phase-progress-bar .fill { background: #0EA5E9; }
.engagement-box.phase-3.active,
.engagement-box.phase-3:hover { border-color: rgba(14, 165, 233, 0.6) !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(14, 165, 233, 0.25) !important; }

.engagement-box.phase-4 .phase-number { color: #818CF8; text-shadow: 0 0 10px rgba(129, 140, 248, 0.5); }
.engagement-box.phase-4 .phase-status-dot { background: #818CF8; }
.engagement-box.phase-4 .phase-progress-bar .fill { background: #818CF8; }
.engagement-box.phase-4.active,
.engagement-box.phase-4:hover { border-color: rgba(129, 140, 248, 0.6) !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(129, 140, 248, 0.25) !important; }

.engagement-box.phase-5 .phase-number { color: #2DD4BF; text-shadow: 0 0 10px rgba(45, 212, 191, 0.5); }
.engagement-box.phase-5 .phase-status-dot { background: #2DD4BF; }
.engagement-box.phase-5 .phase-progress-bar .fill { background: #2DD4BF; }
.engagement-box.phase-5.active,
.engagement-box.phase-5:hover { border-color: rgba(45, 212, 191, 0.6) !important; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(45, 212, 191, 0.25) !important; }

.engagement-box.active,
.engagement-box:hover { flex: 1.65 1 0 !important; background: rgba(16, 36, 58, 0.95) !important; transform: translateY(-6px) !important; }
.engagement-box.active .phase-status-dot,
.engagement-box:hover .phase-status-dot { opacity: 1; transform: scale(1.3); box-shadow: 0 0 8px currentColor; }
.engagement-box.active .phase-title,
.engagement-box:hover .phase-title { white-space: normal; }
.engagement-box.active .phase-body,
.engagement-box:hover .phase-body { opacity: 1 !important; }
.engagement-box.active .phase-desc,
.engagement-box:hover .phase-desc { display: block !important; overflow: visible !important; color: #E2E8F0 !important; }
.engagement-box.active .phase-progress-bar .fill,
.engagement-box:hover .phase-progress-bar .fill { width: 100%; }

/* Fixed height on desktop so hovering never shifts the page */
@media (min-width: 961px) {
  .engagement-box,
  .engagement-box.active,
  .engagement-box:hover { height: 17rem !important; min-height: 0 !important; }
  .engagement-box .phase-body { overflow: hidden !important; }
}

/* Engagement models ("Ways to work together") */
.engagement-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.engagement-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; gap: 2rem; flex-wrap: wrap; }
.engagement-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}
.engagement-title { font-size: clamp(2.1rem, 2.5vw + 1rem, 2.85rem); font-weight: 850; color: #FFFFFF; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 0.8rem 0; }
.engagement-subtitle { font-size: 1rem; line-height: 1.6; color: var(--muted); max-width: 480px; margin: 0; }

.engagement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; }

.engagement-card:not(.featured) {
  position: relative !important;
  background: rgba(10, 25, 42, 0.8) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 14px !important;
  padding: 1.75rem 2rem 2rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px -2px rgba(56, 189, 248, 0.28), inset 0 0 16px rgba(56, 189, 248, 0.05) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
  overflow: hidden !important;
}
.engagement-card:not(.featured):hover {
  transform: translateY(-4px) !important;
  border-color: #38BDF8 !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 32px rgba(56, 189, 248, 0.42), inset 0 0 20px rgba(56, 189, 248, 0.1) !important;
}

.engagement-card.featured {
  position: relative !important;
  background: rgba(12, 30, 50, 0.88) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(0, 255, 157, 0.45) !important;
  border-radius: 14px !important;
  padding: 1.75rem 2rem 2rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px -2px rgba(0, 255, 157, 0.28), inset 0 0 16px rgba(0, 255, 157, 0.05) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
  overflow: hidden !important;
}
.engagement-card.featured:hover {
  transform: translateY(-4px) !important;
  border-color: #00FF9D !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.6), 0 0 34px rgba(0, 255, 157, 0.45), inset 0 0 20px rgba(0, 255, 157, 0.1) !important;
}

.card-header { position: relative !important; display: flex !important; flex-direction: column !important; margin: 0 !important; padding: 0 !important; }
.card-header-top { display: flex !important; justify-content: space-between !important; align-items: flex-start !important; gap: 0.75rem !important; min-height: 52px !important; }
.card-title { font-size: 1.35rem !important; font-weight: 800 !important; color: #F8FAFC !important; margin: 0 !important; letter-spacing: -0.015em !important; line-height: 1.25 !important; flex: 1 1 auto !important; }
.card-badge {
  flex-shrink: 0 !important;
  background: rgba(0, 255, 157, 0.12) !important;
  color: #00FF9D !important;
  border: 1px solid rgba(0, 255, 157, 0.35) !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 0.25rem 0.55rem !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
  margin-top: 2px !important;
}
.card-accent-bar { display: block !important; height: 2px !important; width: 64px !important; margin: 0.85rem 0 1.25rem 0 !important; border-radius: 9999px !important; }
.engagement-card:not(.featured) .card-accent-bar { background: linear-gradient(90deg, #38BDF8 0%, rgba(56, 189, 248, 0.4) 100%) !important; box-shadow: 0 0 10px rgba(56, 189, 248, 0.6) !important; }
.engagement-card.featured .card-accent-bar { background: linear-gradient(90deg, #00FF9D 0%, rgba(0, 255, 157, 0.4) 100%) !important; box-shadow: 0 0 10px rgba(0, 255, 157, 0.6) !important; }
.card-description { font-size: 0.92rem !important; line-height: 1.6 !important; color: var(--muted) !important; margin: 0 0 1.75rem 0 !important; min-height: 48px !important; }

.card-features { list-style: none !important; padding: 0 !important; margin: 0 0 2rem 0 !important; display: flex !important; flex-direction: column !important; gap: 0.9rem !important; flex-grow: 1 !important; }
.card-features li { display: flex !important; align-items: flex-start !important; gap: 0.75rem !important; color: var(--text) !important; font-size: 0.88rem !important; line-height: 1.45 !important; }
.card-features .check-icon { width: 18px !important; height: 18px !important; min-width: 18px !important; color: #38BDF8 !important; margin-top: 2px !important; }
.featured .card-features .check-icon { color: #00FF9D !important; }

.card-footer { margin-top: auto !important; }
.card-cta {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  background: rgba(56, 189, 248, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #38BDF8 !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.card-cta:hover { background: #38BDF8 !important; color: #071524 !important; box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important; }
.card-cta.featured-cta { background: #00FF9D !important; border-color: #00FF9D !important; color: #071524 !important; font-weight: 800 !important; box-shadow: 0 0 16px rgba(0, 255, 157, 0.25) !important; }
.card-cta.featured-cta:hover { background: #38BDF8 !important; border-color: #38BDF8 !important; box-shadow: 0 0 20px rgba(56, 189, 248, 0.4) !important; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-section { background: transparent !important; min-height: calc(100vh - 5.5rem); padding: 4.5rem 0 6.5rem 0 !important; position: relative; z-index: 2; }
.contact-container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.contact-header { max-width: 780px; margin-bottom: 3.5rem; }
.contact-pill {
  display: inline-block;
  color: var(--blue) !important;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}
.contact-title {
  color: #FFFFFF !important;
  font-size: clamp(2.2rem, 2.5vw + 1.2rem, 3.2rem) !important;
  font-weight: 850 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
  margin: 0 0 1rem 0 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.contact-intro { color: var(--muted) !important; font-size: 1.05rem; line-height: 1.6; margin: 0; }
.contact-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 3rem; align-items: start; }
.contact-form-card {
  background: rgba(12, 28, 46, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 14px;
  padding: 2.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 24px -2px rgba(56, 189, 248, 0.15);
}

.dark-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { color: #E2E8F0 !important; font-size: 0.88rem !important; font-weight: 700 !important; letter-spacing: 0.01em; }
.form-group label .req { color: #00FF9D; }
.form-group label .opt { color: #64748B; font-weight: 500; font-size: 0.8rem; margin-left: 0.25rem; }

.dark-form input[type="text"],
.dark-form input[type="email"],
.dark-form input[type="tel"],
.dark-form select,
.dark-form textarea {
  width: 100% !important;
  background: rgba(7, 21, 36, 0.85) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  padding: 0.85rem 1.1rem !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}
.dark-form textarea { min-height: 150px !important; resize: vertical !important; line-height: 1.5 !important; }
.dark-form input:focus,
.dark-form select:focus,
.dark-form textarea:focus { outline: none !important; border-color: #38BDF8 !important; box-shadow: 0 0 14px rgba(56, 189, 248, 0.35) !important; background: rgba(9, 26, 44, 0.95) !important; }
.dark-form input::placeholder,
.dark-form textarea::placeholder { color: #64748B !important; }

.submit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  background: #00FF9D !important;
  color: #071524 !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  border: none !important;
  padding: 0.95rem 2rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  align-self: flex-start !important;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.35) !important;
  transition: all 0.25s ease !important;
}
.submit-btn:hover { background: #38BDF8 !important; box-shadow: 0 0 24px rgba(56, 189, 248, 0.5) !important; transform: translateY(-2px) !important; }

.sidebar-card {
  position: relative;
  background: rgba(12, 28, 46, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px;
  padding: 2.25rem 2rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  overflow: hidden;
}
.card-glow-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #38BDF8, #00FF9D); }
.sidebar-block { display: flex; flex-direction: column; gap: 0.4rem; }
.sidebar-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; }
.sidebar-val { display: flex; align-items: center; gap: 0.6rem; color: #F8FAFC; font-size: 0.95rem; font-weight: 600; }
.email-link { color: var(--blue); text-decoration: none; transition: color 0.2s ease; }
.email-link:hover { color: #00FF9D; }
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  color: #00FF9D;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #00FF9D; box-shadow: 0 0 8px #00FF9D; }
.sidebar-divider { height: 1px; background: rgba(255, 255, 255, 0.08); width: 100%; }
.sidebar-guarantee { display: flex; align-items: flex-start; gap: 0.75rem; }
.sidebar-guarantee p { color: var(--muted); font-size: 0.82rem; line-height: 1.5; margin: 0; }

/* ==========================================================================
   Booking page
   ========================================================================== */
.booking-section { background: transparent !important; min-height: calc(100vh - 5.5rem); padding: 4.5rem 0 6.5rem 0 !important; position: relative !important; z-index: 2 !important; }
.booking-container { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }
.booking-header { max-width: 780px; margin-bottom: 3.5rem; }
.booking-pill {
  display: inline-block;
  color: var(--blue) !important;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}
.booking-title {
  color: #FFFFFF !important;
  font-size: clamp(2.2rem, 2.5vw + 1.2rem, 3.2rem) !important;
  font-weight: 850 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
  margin: 0 0 1rem 0 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.booking-intro { color: var(--muted) !important; font-size: 1.05rem; line-height: 1.6; margin: 0; }
.booking-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 3rem; align-items: start; }
.booking-form-card {
  background: rgba(12, 28, 46, 0.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 14px;
  padding: 2.75rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 24px -2px rgba(56, 189, 248, 0.15);
}

.dark-booking-form { display: flex; flex-direction: column; gap: 1.5rem; }
.dark-booking-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dark-booking-form .form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.dark-booking-form .form-group.full-width { grid-column: 1 / -1; }
.dark-booking-form label { color: #E2E8F0 !important; font-size: 0.88rem !important; font-weight: 700 !important; letter-spacing: 0.01em; }
.dark-booking-form label .req { color: #00FF9D; }
.dark-booking-form label .opt { color: #64748B; font-weight: 500; font-size: 0.8rem; margin-left: 0.25rem; }
.dark-booking-form .field-help { color: #64748B; font-size: 0.8rem; margin-top: 0.25rem; }
.field-error { color: #FCA5A5; font-size: 0.82rem; font-weight: 600; margin-top: 0.15rem; }
.booking-form-card .notice,
.contact-form-card .notice { margin: 0 0 1.5rem; }
.booking-form-card .notice p { margin: 0.25rem 0 0; color: inherit !important; }

.dark-booking-form input[type="text"],
.dark-booking-form input[type="email"],
.dark-booking-form input[type="tel"],
.dark-booking-form textarea {
  width: 100% !important;
  background: rgba(7, 21, 36, 0.85) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 8px !important;
  padding: 0.85rem 1.1rem !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.dark-booking-form input[type="date"],
input[name="preferred_date"],
#id_preferred_date {
  color-scheme: dark !important;
  background-color: rgba(7, 21, 36, 0.85) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  padding: 0.85rem 1.1rem !important;
  box-sizing: border-box !important;
  width: 100% !important;
}
.dark-booking-form input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.8) sepia(100%) saturate(300%) hue-rotate(160deg) !important; cursor: pointer !important; opacity: 0.85 !important; }

.dark-booking-form textarea { min-height: 140px !important; resize: vertical !important; line-height: 1.55 !important; }
.dark-booking-form input:focus,
.dark-booking-form select:focus,
.dark-booking-form textarea:focus { outline: none !important; border-color: #38BDF8 !important; box-shadow: 0 0 14px rgba(56, 189, 248, 0.35) !important; background: rgba(9, 26, 44, 0.95) !important; }

.booking-submit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem !important;
  background: #00FF9D !important;
  color: #071524 !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  border: none !important;
  padding: 0.95rem 2.2rem !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  align-self: flex-start !important;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.35) !important;
  transition: all 0.25s ease !important;
}
.booking-submit-btn:hover { background: #38BDF8 !important; box-shadow: 0 0 24px rgba(56, 189, 248, 0.5) !important; transform: translateY(-2px) !important; }

.select-field-box { position: relative !important; width: 100% !important; }
.select-field-box select,
.custom-select,
.dark-booking-form select,
select#id_package {
  display: block !important;
  width: 100% !important;
  min-height: 48px !important;
  background-color: rgba(7, 21, 36, 0.85) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 8px !important;
  padding: 0.75rem 2.5rem 0.75rem 1.1rem !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2338BDF8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1.25rem center !important;
  transition: all 0.2s ease !important;
}
.select-field-box select:focus,
.custom-select:focus,
.dark-booking-form select:focus,
select#id_package:focus { outline: none !important; border-color: #38BDF8 !important; box-shadow: 0 0 14px rgba(56, 189, 248, 0.35) !important; background-color: #0c2035 !important; }
.select-field-box select option,
.custom-select option,
.dark-booking-form select option { background-color: #071524 !important; color: #F8FAFC !important; padding: 0.75rem !important; }

.sidebar-engagements-card {
  position: relative !important;
  background: rgba(12, 28, 46, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(0, 255, 157, 0.35) !important;
  border-radius: 14px !important;
  padding: 2.25rem 2rem !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 24px -2px rgba(0, 255, 157, 0.15) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  overflow: hidden !important;
}
.sidebar-engagements-card .card-glow-bar { position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; height: 3px !important; background: linear-gradient(90deg, #00FF9D, #38BDF8) !important; }
.engagements-header { display: flex; flex-direction: column; gap: 0.35rem; }
.engagements-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.engagements-title { color: #FFFFFF !important; font-size: 1.25rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.engagements-list { display: flex !important; flex-direction: column !important; gap: 1.25rem !important; }
.engagement-item { display: flex !important; flex-direction: column !important; gap: 0.45rem !important; }
.engagement-item .item-head { display: flex !important; align-items: baseline !important; justify-content: space-between !important; gap: 0.75rem !important; }
.engagement-item .item-title { font-size: 0.98rem !important; font-weight: 750 !important; color: #FFFFFF !important; margin: 0 !important; letter-spacing: -0.01em !important; line-height: 1.3 !important; }
.engagement-item .item-badge {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  color: #00FF9D !important;
  background: rgba(0, 255, 157, 0.08) !important;
  border: 1px solid rgba(0, 255, 157, 0.3) !important;
  padding: 0.2rem 0.55rem !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
}
.engagement-item .item-desc { font-size: 0.86rem !important; line-height: 1.5 !important; color: var(--muted) !important; margin: 0 !important; }
.engagement-divider { height: 1px !important; background: rgba(255, 255, 255, 0.07) !important; width: 100% !important; }

/* ==========================================================================
   Header & navigation
   ========================================================================== */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: rgba(7, 21, 36, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

.site-header .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.5rem; }

.site-header .brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; }
.logo-frame { display: inline-flex; align-items: center; justify-content: center; height: 36px; width: auto; min-width: 32px; }
.logo-frame img.custom-logo,
.logo-frame svg { max-height: 34px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.site-header .logo-frame,
.site-header .logo-frame svg,
.site-header .logo-frame img.custom-logo { width: 40px; height: 40px; min-width: 40px; }
.site-header .brand-text { color: #fff; font-size: 1.35rem; font-weight: 850; letter-spacing: -0.015em; gap: 0.5rem; }
.site-header .brand-sub { color: var(--blue); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; margin-left: 0.25rem; }

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2.2rem; }
.site-nav .menu > li { position: relative; }

.site-nav a:not(.btn) {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 0.2rem;
  transition: color 0.2s ease;
}
.site-nav a:not(.btn):hover { color: var(--blue); }

.site-nav .menu > li > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 1px;
  background: #00FF9D;
  box-shadow: 0 0 8px rgba(0, 255, 157, 0.7);
}

.menu-phone a { font-variant-numeric: tabular-nums; }

.site-header .btn-primary,
.site-header .nav-cta {
  display: inline-block;
  background: rgba(31, 138, 91, 0.85);
  border: 1px solid rgba(0, 255, 157, 0.4);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.site-header .btn-primary:hover,
.site-header .nav-cta:hover { background: #17704A; border-color: #00FF9D; color: #fff; box-shadow: 0 0 16px rgba(0, 255, 157, 0.45); transform: translateY(-1px); }

/* Desktop dropdowns */
.site-nav .submenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -0.75rem;
  z-index: 10000;
  min-width: 270px;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  background: rgba(8, 22, 38, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 20px rgba(56, 189, 248, 0.15);
}
.site-nav .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }

/* Hover-open only on desktop; the mobile menu uses tap-to-expand */
@media (min-width: 992px) {
  .site-nav .has-sub:hover > .submenu,
  .site-nav .has-sub:focus-within > .submenu { display: block; }
}

.site-nav .submenu li { margin: 0 0 2px; }
.site-nav .submenu a:not(.btn) {
  display: block;
  color: #E2E8F0;
  font-size: 0.92rem;
  font-weight: 550;
  padding: 0.75rem 1rem;
  border-left: 2px solid transparent;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.site-nav .submenu a:not(.btn):hover { background: rgba(56, 189, 248, 0.12); color: var(--blue); border-left-color: var(--blue); border-radius: 4px 8px 8px 4px; padding-left: 1.15rem; }
.site-nav .submenu a[aria-current="page"] { background: rgba(0, 255, 157, 0.12); color: #00FF9D; border-left-color: #00FF9D; }

.site-nav .submenu-overview { display: none; }
.nav-button { display: none; }

/* Mobile menu (991px and below) */
@media (max-width: 991px) {
  .site-header .header-inner { min-height: 4.5rem; position: static; }
  .site-header .brand-text { font-size: 1.2rem; }
  .site-header .brand-sub { font-size: 0.72rem; letter-spacing: 0.14em; }

  .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 40px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    cursor: pointer;
  }
  .nav-button svg { display: block; }

  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 100%);
    height: calc(100dvh - 100%);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1.5rem 2rem;
  }

  .site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }

  .site-nav .menu > li > a:not(.btn) {
    display: block;
    color: #F8FAFC;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .site-nav .menu > li > a[aria-current="page"] { color: #00FF9D; }
  .site-nav .menu > li > a[aria-current="page"]::after { display: none; }

  .site-header .site-nav .btn,
  .site-header .site-nav .nav-cta { display: block; width: 100%; text-align: center; margin-top: 1.5rem; padding: 0.9rem 1.5rem; }

  body.nav-open { overflow: hidden; }

  /* Accordion: a parent opens its sub-pages when tapped */
  .site-nav .submenu { display: none; }
  .site-nav .has-sub.is-expanded > .submenu {
    display: block;
    position: static;
    min-width: 0;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0 0.35rem 0.75rem;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--blue);
    border-radius: 0;
    box-shadow: none;
  }
  .site-nav .submenu::before { display: none; }
  .site-nav .submenu li { margin: 0; }
  .site-nav .submenu a:not(.btn) { color: var(--muted); font-size: 0.98rem; font-weight: 550; padding: 0.65rem 0.75rem; border-left: 0; }
  .site-nav .submenu a:not(.btn):hover,
  .site-nav .submenu a:not(.btn):focus { color: var(--blue); background: rgba(56, 189, 248, 0.1); border-left: 0; padding-left: 0.75rem; }
  .site-nav .submenu-overview { display: block; }
  .site-nav .submenu-overview a:not(.btn) { color: #E2E8F0; font-weight: 650; }

  .site-nav .menu > li.has-sub > a { padding-right: 2rem; }
  .site-nav .menu > li.has-sub > a::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: 0.4rem;
    left: auto;
    bottom: auto;
    width: 8px;
    height: 8px;
    background: none;
    box-shadow: none;
    border-radius: 0;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
  }
  .site-nav .menu > li.has-sub.is-expanded > a::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--blue); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #040D17 !important;
  border-top: 1px solid rgba(56, 189, 248, 0.15) !important;
  color: var(--muted) !important;
  padding: 4.5rem 0 0 0 !important;
  font-family: inherit !important;
  position: relative !important;
  z-index: 10 !important;
}
.footer-container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 2rem 3.5rem 2rem !important;
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr !important;
  gap: 3rem !important;
}
.footer-col.brand-col .footer-brand { display: flex !important; align-items: center !important; gap: 0.75rem !important; text-decoration: none !important; margin-bottom: 1.25rem !important; }
.footer-col.brand-col .brand-icon svg,
.footer-col.brand-col .brand-icon img { width: 34px !important; height: 34px !important; object-fit: contain !important; display: block !important; }
.footer-col.brand-col .brand-title { font-size: 1.25rem !important; font-weight: 800 !important; letter-spacing: -0.02em !important; color: #FFFFFF !important; }
.footer-col.brand-col .brand-title span { color: var(--blue) !important; font-weight: 600 !important; }
.brand-tagline { font-size: 0.9rem !important; line-height: 1.6 !important; color: var(--muted) !important; margin: 0 0 1.5rem 0 !important; }
.footer-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  background: rgba(12, 28, 46, 0.8) !important;
  border: 1px solid rgba(0, 255, 157, 0.25) !important;
  padding: 0.4rem 0.85rem !important;
  border-radius: 9999px !important;
  font-size: 0.8rem !important;
  color: #E2E8F0 !important;
}
.status-indicator { width: 7px !important; height: 7px !important; border-radius: 50% !important; background: #00FF9D !important; box-shadow: 0 0 8px #00FF9D !important; }
.footer-heading { font-size: 0.85rem !important; font-weight: 700 !important; text-transform: uppercase !important; letter-spacing: 0.08em !important; color: #F8FAFC !important; margin: 0 0 1.25rem 0 !important; font-stretch: 100% !important; }
.footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex !important; flex-direction: column !important; gap: 0.75rem !important; }
.footer-links li a { color: var(--muted) !important; text-decoration: none !important; font-size: 0.92rem !important; transition: all 0.2s ease !important; display: inline-block !important; }
.footer-links li a:hover { color: var(--blue) !important; transform: translateX(3px) !important; }
.contact-sub { font-size: 0.88rem !important; line-height: 1.5 !important; margin-bottom: 1rem !important; color: #64748B !important; }
.contact-details { display: flex !important; flex-direction: column !important; gap: 0.6rem !important; margin-bottom: 1.25rem !important; }
.contact-link,
.contact-location { display: flex !important; align-items: center !important; gap: 0.6rem !important; font-size: 0.9rem !important; color: var(--text) !important; text-decoration: none !important; }
.contact-link:hover { color: var(--blue) !important; }
.footer-cta-btn {
  display: inline-block !important;
  background: rgba(56, 189, 248, 0.12) !important;
  color: var(--blue) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.footer-cta-btn:hover { background: #38BDF8 !important; color: #071524 !important; box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06) !important; background: #02070D !important; padding: 1.5rem 0 !important; }
.footer-bottom-container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}
.footer-bottom p { margin: 0 !important; font-size: 0.78rem !important; color: #64748B !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .engagement-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .card-description { min-height: auto !important; }
}

@media (max-width: 991px) {
  .footer-container { grid-template-columns: 1fr 1fr !important; gap: 2.5rem !important; }
}

@media (max-width: 960px) {
  .hero-inner, .detail, .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-inner { padding-top: 3rem; padding-bottom: 3rem; }
  .lifecycle li { grid-template-columns: 3rem 1fr; }
  .lifecycle li > p, .lifecycle li > div { grid-column: 2; }
  .assessment, .faq-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
  .process { grid-template-columns: 1fr; gap: 1.25rem; }
  .engagement-pipeline { flex-direction: column !important; }
  .engagement-box.active,
  .engagement-box:hover { flex: 1 1 auto !important; transform: none !important; }
  .contact-grid,
  .booking-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row,
  .dark-booking-form .form-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .contact-form-card,
  .booking-form-card { padding: 1.75rem; }
}

@media (max-width: 900px) {
  .bio-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
}

@media (max-width: 860px) {
  ol.subpages > li,
  ol.lifecycle > li,
  ol.process > li,
  .subpage-list ol > li { grid-template-columns: 1fr !important; gap: 0.75rem !important; padding: 1.4rem !important; }
}

@media (max-width: 760px) {
  .platforms div { grid-template-columns: 1fr; gap: 0.2rem; }
  .packages li { flex-direction: column; gap: 1rem; }
  .package-meta { text-align: left; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .stats div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.14); padding: 1.1rem 0; }
  .stats div:first-child { border-top: 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .assessment { padding: 1.5rem; }
}

@media (max-width: 640px) {
  .footer-container { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .footer-bottom-container { flex-direction: column !important; align-items: flex-start !important; }
}

@media (prefers-reduced-motion: reduce) {
  .topology .link,
  .live-pulse { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ==========================================================================
   Diagram block headings (Animated diagram, Diagram gallery)
   ========================================================================== */
.arch-head { max-width: 760px; margin-bottom: 2rem; }
.arch-head p { color: var(--muted) !important; }

/* Hidden blocks: only visible in admin preview */
.block-hidden-preview {
  position: relative;
  outline: 2px dashed rgba(251, 191, 36, 0.7);
  outline-offset: -6px;
  opacity: 0.6;
}
.block-hidden-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 50;
  background: #FBBF24;
  color: #071524;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}
/* ==========================================================================
   Animated diagram block (SVG image)
   Replaces the earlier .diagram-frame / .diagram-iframe rules.
   ========================================================================== */
.diagram-figure { margin: 0; }
.diagram-scroll {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}
.diagram-img { display: block; width: 100%; height: auto; }
.diagram-img { display: block; width: 100%; height: auto; }
.diagram-caption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.diagram-caption a { color: var(--blue); font-weight: 650; text-decoration: none; }
.diagram-caption a:hover { color: #00FF9D; }

/* ==========================================================================
   Diagram gallery: one diagram at a time with a page-turn between them
   ========================================================================== */
.flipbook { outline: none; position: relative; }
.flipbook-stage {
  position: relative;
  aspect-ratio: 1200 / 1000;
  perspective: 2400px;
  border-radius: 14px;
  background: #0b1c2d;
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.flipbook-page {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1c2d;
  transform-origin: left center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}
.flipbook-page img { display: block; width: 100%; height: 100%; object-fit: contain; }
.flipbook-page.is-under { z-index: 1; }
.flipbook-page.is-active { z-index: 2; }

/* Shading that darkens the page as it turns */
.flipbook-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 45%, rgba(255, 255, 255, 0.06) 100%);
}

.flipbook-page.turn-out { animation: flip-out 1.1s cubic-bezier(0.45, 0.05, 0.25, 1) forwards; }
.flipbook-page.turn-out .flipbook-shade { animation: shade-in 1.1s ease forwards; }
.flipbook-page.turn-in { animation: flip-in 1.1s cubic-bezier(0.45, 0.05, 0.25, 1) forwards; }
.flipbook-page.turn-in .flipbook-shade { animation: shade-out 1.1s ease forwards; }

@keyframes flip-out {
  0%   { transform: rotateY(0deg); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  50%  { box-shadow: -30px 0 60px rgba(0, 0, 0, 0.6); }
  100% { transform: rotateY(-180deg); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
}
@keyframes flip-in {
  0%   { transform: rotateY(-180deg); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  50%  { box-shadow: -30px 0 60px rgba(0, 0, 0, 0.6); }
  100% { transform: rotateY(0deg); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
}
@keyframes shade-in  { 0% { opacity: 0; } 60% { opacity: 1; } 100% { opacity: 1; } }
@keyframes shade-out { 0% { opacity: 1; } 40% { opacity: 1; } 100% { opacity: 0; } }

/* Controls */
.flipbook-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  position: relative;
  z-index: 3;   /* controls stay on top of a page mid-turn */
}
.flipbook-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(12, 28, 46, 0.75);
  color: #38BDF8;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.flipbook-btn:hover { background: #38BDF8; color: #071524; border-color: #38BDF8; }
.flipbook-info { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 0.75rem; }
.flipbook-count { color: #64748B; font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flipbook-count b { color: #00FF9D; }
.flipbook-title { color: #F8FAFC; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flipbook-dots { display: flex; gap: 0.45rem; }
.flipbook-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.flipbook-dot.is-active { width: 26px; border-radius: 5px; background: #00FF9D; box-shadow: 0 0 10px rgba(0, 255, 157, 0.5); }
.flipbook-caption { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.88rem; }
.flipbook-timer { height: 2px; margin-top: 0.75rem; background: rgba(255, 255, 255, 0.06); border-radius: 1px; overflow: hidden; }
.flipbook-timer i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #38BDF8, #00FF9D); }

@media (max-width: 640px) {
  .flipbook-bar { flex-wrap: wrap; gap: 0.75rem; }
  .flipbook-info { order: -1; flex-basis: 100%; }
  .flipbook-dots { flex: 1; justify-content: center; }
}

/* Reduced motion: a simple crossfade instead of the page turn */
@media (prefers-reduced-motion: reduce) {
  .flipbook-page.turn-out { animation: fade-out 0.3s ease forwards; }
  .flipbook-page.turn-in { animation: fade-in 0.3s ease forwards; }
  .flipbook-page .flipbook-shade { animation: none !important; }
  @keyframes fade-out { to { opacity: 0; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
}
/* Hero showcase: all slides share one grid cell, so the box keeps
   the height of the tallest slide and never resizes while rotating */
.showcase-slider {
  display: grid;
  min-height: 0;
}
.showcase-slide,
.showcase-slide.active {
  position: relative;
  grid-area: 1 / 1;
}
.showcase-slide > .glass-card,
.showcase-slide > .main-feature {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.showcase-slide .feature-link {
  margin-top: auto;   /* keeps the link at the bottom on shorter slides */
}

/* Wider text on content pages */
.section-text .prose {
  max-width: 58rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.section-text .prose h2 { margin-top: 2.5rem; }
.section-text .prose li { margin-bottom: 0.6rem; }

/* Page header with a background photo */
.page-head--image {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5rem 0 !important;
}
.page-head-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: saturate(0.8);
}
/* Fade the photo into the page so the text stays readable */
.page-head--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 21, 36, 0.95) 0%, rgba(7, 21, 36, 0.7) 45%, rgba(7, 21, 36, 0.35) 100%),
    linear-gradient(0deg, rgba(7, 21, 36, 1) 0%, rgba(7, 21, 36, 0) 40%);
}
.page-head--image .wrap { position: relative; z-index: 1; }

/* Easier-to-read body text */
:root {
  --muted: #A3B3C6;   /* secondary text, slightly lighter than before (#94A3B8) */
}

.prose p,
.prose li,
.section-text p,
.section-text li {
  color: #D0D9E4 !important;   /* main reading text */
}

.prose strong,
.section-text strong {
  color: #FFFFFF;
}

/* Reading panel: long text sits on a quiet surface instead of over the mesh */
.section-text .prose {
  max-width: 54rem;
  background: rgba(7, 21, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 2.5rem 3rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}
.section-text + .section-text .prose { margin-top: 0; }

/* Clearer heading hierarchy inside text */
.section-text .prose h2 {
  color: #FFFFFF !important;
  font-size: 1.6rem;
  margin: 2.25rem 0 0.9rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.section-text .prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 760px) {
  .section-text .prose { padding: 1.5rem 1.25rem; border-radius: 10px; }
}

.footer-legal { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal .vsx-link { font: inherit; font-size: 0.78rem; opacity: 1; text-decoration: none; }
.be-code:not(:has(.be-code__head)) pre { padding-top: 2.4rem; }
:root {
  --be-c-accent: #3db4e6;   /* links and the active sidebar item */
  --be-c-sticky-top: 6rem;  /* raise if the sidebar slides under your header */
}
.be-layout .be-image img { margin-left: 0; }
.be-layout .be-image figcaption { text-align: left; }
.be-content > :first-child { margin-top: 0; }

/* ---- Blog post sidebar (append to static/css/site.css) ---- */

/* Full-height divider between the article and the sidebar */
.be-layout.has-aside { --be-c-aside-gap: 0; --be-c-aside-width: 17rem; }
.be-layout.has-aside .be-layout__main { padding-right: 2.75rem; border-right: 1px solid rgb(255 255 255 / 0.1); min-height: 100%; }
.be-layout.has-aside .be-layout__aside { padding-left: 2.25rem; }
.post-sidebar.is-static { position: static; max-height: none; overflow: visible; }

/* Widgets: stacked, separated by thin rules */
.post-sidebar > * + * { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid rgb(255 255 255 / 0.1); }
.side-widget__title, .post-sidebar .be-toc__title { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 700; }
.side-widget ul { list-style: none; margin: 0; padding: 0; }
.side-widget li + li { margin-top: 0.75rem; }
.side-widget a { color: inherit; text-decoration: none; }
.side-widget a:hover { color: var(--be-c-accent); }
.side-widget__meta { display: block; margin-top: 0.15rem; font-size: 0.8rem; color: var(--be-c-muted, #9aa4ae); }

/* Share buttons */
.side-share__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.side-share__list li + li { margin-top: 0; }
.side-share__list a, .side-share__copy {
  display: inline-block; padding: 0.35rem 0.75rem; font: inherit; font-size: 0.85rem; color: inherit;
  background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.14); border-radius: 6px; cursor: pointer;
}
.side-share__list a:hover, .side-share__copy:hover { border-color: var(--be-c-accent); color: var(--be-c-accent); }

/* Call to action */
.side-cta { padding: 1.25rem; border-radius: 10px; background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.1); }
.post-sidebar > .side-cta { padding-top: 1.25rem; }
.side-cta__text { margin: 0 0 1rem; font-size: 0.9rem; color: var(--be-c-muted, #9aa4ae); }

/* Phones and tablets: sidebar moves above the article, rule becomes horizontal */
@media (max-width: 1024px) {
  .be-layout.has-aside .be-layout__main { padding-right: 0; border-right: 0; }
  .be-layout.has-aside .be-layout__aside { padding-left: 0; padding-bottom: 1.5rem; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
}
.post-sidebar p.side-widget__title { color: inherit; }

/* ---- Post cards (blog index, latest posts) ---- */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.post-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.75rem; align-items: start;
  padding: 1.75rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.post-card:first-child { padding-top: 0; }
.post-card__thumb { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.08); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.post-card:hover .post-card__thumb img { transform: scale(1.03); }
.post-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2.25rem; font-weight: 800;
  letter-spacing: .04em; color: rgb(255 255 255 / 0.55);
  background: radial-gradient(120% 120% at 0% 0%, rgb(56 189 248 / 0.25), transparent 60%),
              radial-gradient(120% 120% at 100% 100%, rgb(34 197 94 / 0.22), transparent 60%), rgb(255 255 255 / 0.03); }
.post-card__meta { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: 0 0 .5rem; font-size: .8rem;
  letter-spacing: .04em; text-transform: uppercase; color: rgb(255 255 255 / 0.55); }
.post-card__tags a { color: var(--be-c-accent, #3db4e6); text-decoration: none; font-weight: 600; }
.post-card__tags a:hover { text-decoration: underline; }
.post-card__title { margin: 0 0 .6rem; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); line-height: 1.25; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--be-c-accent, #3db4e6); }
.post-card__excerpt { margin: 0; color: rgb(255 255 255 / 0.72); line-height: 1.65; }

/* Compact variant: homepage latest posts as a grid of cards */
.post-list--grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.post-card--compact { grid-template-columns: 1fr; gap: .9rem; padding: 0; border-bottom: 0; }
.post-card--compact .post-card__title { font-size: 1.15rem; }

@media (max-width: 720px) {
  .post-card { grid-template-columns: 1fr; gap: 1rem; }
}
/* Popular posts sidebar widget */
.side-popular__list { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.side-popular__list li { counter-increment: pop; position: relative; padding-left: 2rem; }
.side-popular__list li + li { margin-top: .75rem; }
.side-popular__list li::before { content: counter(pop); position: absolute; left: 0; top: 0; width: 1.4rem; text-align: center;
  font-weight: 800; color: var(--be-c-accent, #3db4e6); }
