/*
Theme Name: Dende
Theme URI: https://askdende.com
Author: Dende Team
Author URI: https://askdende.com
Description: Ultra-fast, minimal, luxury theme for Ask Dende.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: dende
*/

/* -------------------------------------------------------------------------
   1. Typography & Tokens (Manrope & Poppins Standard)
   ------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --color-background:    #EAEAEA;  /* Shared light neutral background */
  --color-surface:       #FFFDFA;  /* Warm ivory luxury card surface */
  --color-text:          #100E0A;  /* Deep rich carbon text */
  --color-text-muted:    #68645E;  /* Muted warm slate */
  --color-text-subtle:   #8C8880;  /* Subtle captions & secondary notes */
  --color-border:        #D8D6D0;  /* Structural 1px border */
  --color-border-light:  #E5E3DC;  /* Table separators, grid lines */
  --color-accent:        #C27803;  /* Active amber accent */
  --color-accent-hover:  #A06202;
  --color-accent-light:  rgba(194, 120, 3, 0.1);

  /* Shared Primary Action Button System */
  --color-btn-bg:        #141210;
  --color-btn-hover:     #000000;
  --color-btn-text:      #ffffff;
  --color-btn-border:    #141210;

  /* Sovereign Geospatial & Cadastre Palette (Refined Neutrals & Active Amber) */
  --color-cobalt:        #141210;
  --color-cobalt-light:  rgba(20, 18, 16, 0.05);
  --color-emerald:       #141210;
  --color-emerald-light: rgba(20, 18, 16, 0.05);
  --color-amber:         #C27803;
  --color-amber-light:   rgba(194, 120, 3, 0.08);
  --color-indigo:        #141210;
  --color-indigo-light:  rgba(20, 18, 16, 0.05);
  --color-rose:          #e11d48;
  --color-rose-light:    rgba(225, 29, 72, 0.08);

  /* System Status Indicators (Reserved strictly for operational states) */
  --color-success:       #059669;
  --color-warning:       #d97706;
  --color-danger:        #e11d48;

  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-card: 10px;
  --radius-sharp: 0px !important;
  --radius-pill: 9999px !important;
  --shadow-card: none !important;
}

html.dark {
  --color-background:    #141210;
  --color-surface:       #1e1c19;
  --color-text:          #FFFDFA;
  --color-text-muted:    #a6a29a;
  --color-text-subtle:   #7d7972;
  --color-border:        #33302c;
  --color-border-light:  #292622;
  --color-accent:        #C27803;
  --color-accent-hover:  #d98807;
  --color-accent-light:  rgba(194, 120, 3, 0.15);

  /* Primary Action System (Dark Mode) */
  --color-btn-bg:        #FFFDFA;
  --color-btn-hover:     #ffffff;
  --color-btn-text:      #100E0A;
  --color-btn-border:    #FFFDFA;

  --color-cobalt:        #FFFDFA;
  --color-cobalt-light:  rgba(255, 253, 250, 0.08);
  --color-emerald:       #FFFDFA;
  --color-emerald-light: rgba(255, 253, 250, 0.08);
  --color-amber:         #C27803;
  --color-amber-light:   rgba(194, 120, 3, 0.15);
  --color-indigo:        #FFFDFA;
  --color-indigo-light:  rgba(255, 253, 250, 0.08);
  --color-rose:          #f43f5e;
  --color-rose-light:    rgba(244, 63, 94, 0.15);
}

/* -------------------------------------------------------------------------
   2. Reset & Global Typography Hierarchy
   ------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Readability: enforce a 1rem floor on prose regardless of inline styles.
   Deliberately excludes strong/em/label/td/th so hierarchy and dense data tables can scale down. */
p,
li,
dd,
dt,
figcaption,
blockquote,
td p {
  font-size: max(1rem, 1em) !important;
}

/* Consistent vertical rhythm: 150px between top-level content sections */
main > section,
.grid-bg > .container > section,
.grid-bg > section,
article > section {
  margin-bottom: 150px !important;
}

/* Rounded buttons */
.btn,
button,
input[type="submit"],
input[type="button"],
a[class*="btn"] {
  border-radius: 15px !important;
}

/* Global Headings Standard: Manrope, 800 weight, -0.03em letter spacing */
h1, h2, h3, h4, h5, h6,
.font-heading,
.brand,
.wp-block-heading {
  font-family: var(--font-heading) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
}

/* Global Body & UI Elements Standard: Poppins */
p,
span,
li,
a,
label,
input,
select,
textarea,
button,
.btn,
.font-body,
.wp-block-paragraph,
.wp-block-list,
.entry-content {
  font-family: var(--font-body);
  letter-spacing: -0.012em;
}

/* Global Paragraph Spacing & Line Height */
p {
  margin-bottom: 1.5em;
  line-height: 1.75;
}

p:last-child {
  margin-bottom: 0;
}

/* Editorial & Article Content Spacing */
.entry-content p,
.single-article-body p,
.page-entry .entry-content p,
.wp-block-paragraph {
  margin-bottom: 1.6em;
  line-height: 1.8;
}

.entry-content h2,
.single-article-body h2,
.page-entry h2 {
  margin-top: 2em;
  margin-bottom: 0.8em;
  line-height: 1.25;
}

.entry-content h3,
.single-article-body h3,
.page-entry h3 {
  margin-top: 1.75em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}

.entry-content ul,
.entry-content ol,
.single-article-body ul,
.single-article-body ol,
.wp-block-list {
  margin-bottom: 1.6em;
  padding-left: 1.5em;
  line-height: 1.75;
}

.entry-content li,
.single-article-body li,
.wp-block-list li {
  margin-bottom: 0.5em;
}

.entry-content blockquote,
.single-article-body blockquote,
.wp-block-quote {
  margin: 2em 0;
  padding: 18px 24px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  font-style: italic;
  color: var(--color-text);
  border-radius: var(--radius-card);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* -------------------------------------------------------------------------
   Hide Page Title on All WordPress Pages
   ------------------------------------------------------------------------- */
.page .entry-title,
.page .page-title,
.page .post-title,
.page header.entry-header,
.page .wp-block-post-title,
.page-template-default .entry-title {
  display: none !important;
}

/* -------------------------------------------------------------------------
   Globally Suppress Comments & Comment Forms
   ------------------------------------------------------------------------- */
#comments,
#respond,
.comments-area,
.comment-respond,
.comment-list,
.comments-title,
.comment-reply-title,
.wp-block-comments,
.wp-block-post-comments,
.wp-block-post-comments-form,
.wp-block-comments-pagination,
.wp-block-comment-template {
  display: none !important;
}

/* -------------------------------------------------------------------------
   3. Layout & Structure
   ------------------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.site-header {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  background-color: rgba(246, 246, 244, 0.85);
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

html.dark .site-header {
  background-color: rgba(20, 20, 20, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background-color: var(--color-text);
}

.brand-glyph {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  vertical-align: middle;
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  list-style: none;
}

.nav-link, .nav-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-link:hover, .nav-menu a:hover,
.nav-menu .current-menu-item > a {
  color: var(--color-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* -------------------------------------------------------------------------
   3.1 Hamburger & Mobile Navigation
   ------------------------------------------------------------------------- */
.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  width: 40px;
  height: 40px;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hamburger-btn:hover {
  border-color: var(--color-text);
  background-color: var(--color-accent-light);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.2s ease;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background-color: var(--color-surface);
  border-left: 1px solid var(--color-border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 24px;
}

.drawer-close-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  width: 36px;
  height: 36px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.drawer-close-btn:hover {
  border-color: var(--color-text);
  background-color: var(--color-accent-light);
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
}

.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link, .drawer-menu a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.drawer-link:hover, .drawer-menu a:hover {
  background-color: var(--color-accent-light);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-light);
}

/* -------------------------------------------------------------------------
   3.2 Responsive Breakpoints (<768px)
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .desktop-nav,
  .hide-mobile {
    display: none !important;
  }

  .show-mobile,
  .hamburger-btn {
    display: flex !important;
  }
}

@media (min-width: 1025px) {
  .show-mobile {
    display: none !important;
  }
}

/* -------------------------------------------------------------------------
   4. Global Buttons, Actions & Badges
   ------------------------------------------------------------------------- */
.btn,
.wp-block-button__link,
.wp-element-button,
button:not(.drawer-close-btn):not(.hamburger-btn):not(.sidebar-toggle-icon-btn),
input[type="submit"],
input[type="button"],
.wp-block-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  border-radius: var(--radius-card);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Primary / Fill Button - Green Base */
.btn-primary,
.btn-fill,
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.wp-element-button:not(.is-style-outline),
button[type="submit"],
input[type="submit"],
.wp-block-search__button {
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text) !important;
  border-color: var(--color-btn-border);
}

.btn-primary:hover,
.btn-fill:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-element-button:not(.is-style-outline):hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.wp-block-search__button:hover {
  background-color: var(--color-btn-hover);
  border-color: var(--color-btn-hover);
  color: var(--color-btn-text) !important;
  transform: translateY(-2px);
  box-shadow: none !important;
}

.btn-primary:active,
.btn-fill:active,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:active,
.wp-element-button:not(.is-style-outline):active,
button[type="submit"]:active,
input[type="submit"]:active,
.wp-block-search__button:active {
  transform: translateY(0);
  box-shadow: none !important;
}

/* Secondary / Outline Button */
.btn-outline,
.btn-secondary,
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-element-button.is-style-outline {
  background-color: transparent;
  color: var(--color-text) !important;
  border-color: var(--color-border);
}

.btn-outline:hover,
.btn-secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-element-button.is-style-outline:hover {
  background-color: rgba(20, 18, 16, 0.05);
  border-color: var(--color-text);
  color: var(--color-text) !important;
  transform: translateY(-2px);
  box-shadow: none !important;
}

.btn-outline:active,
.btn-secondary:active,
.wp-block-button.is-style-outline .wp-block-button__link:active,
.wp-element-button.is-style-outline:active {
  transform: translateY(0);
  box-shadow: none !important;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.012em;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  color: var(--color-text);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background-color: var(--color-success);
}

/* -------------------------------------------------------------------------
   Custom Capsule Badge (Gutenberg Block & Theme UI)
   ------------------------------------------------------------------------- */
.dende-capsule-wrapper {
  display: flex;
  margin-bottom: 1.25em;
  width: 100%;
}

.dende-capsule-wrapper.align-left {
  justify-content: flex-start;
}

.dende-capsule-wrapper.align-center {
  justify-content: center;
}

.dende-capsule-wrapper.align-right {
  justify-content: flex-end;
}

.dende-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px !important;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: all 0.2s ease;
  user-select: none;
}

.dende-capsule.is-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dende-capsule .capsule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15em;
  line-height: 1;
}

.dende-capsule .capsule-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: currentColor;
}

.dende-capsule .capsule-text {
  display: inline-block;
}

/* Sizes */
.dende-capsule.capsule-size-small {
  padding: 4px 12px;
  font-size: 11px;
  gap: 6px;
}

.dende-capsule.capsule-size-medium {
  padding: 6px 16px;
  font-size: 12px;
  gap: 8px;
}

.dende-capsule.capsule-size-large {
  padding: 8px 20px;
  font-size: 14px;
  gap: 10px;
}

/* Variants */
.dende-capsule.capsule-variant-emerald {
  background-color: rgba(5, 150, 105, 0.09);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: #059669;
}

.dende-capsule.capsule-variant-cobalt {
  background-color: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.25);
  color: #1d4ed8;
}

.dende-capsule.capsule-variant-amber {
  background-color: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: #d97706;
}

.dende-capsule.capsule-variant-rose {
  background-color: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: #e11d48;
}

.dende-capsule.capsule-variant-neutral {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.dende-capsule.capsule-variant-dark {
  background-color: var(--color-text);
  border: 1px solid var(--color-text);
  color: var(--color-surface);
}

/* Link Hover */
.dende-capsule-link {
  text-decoration: none !important;
}

.dende-capsule-link:hover .dende-capsule {
  transform: translateY(-1px);
  box-shadow: none !important;
}

/* -------------------------------------------------------------------------
   4.5 Multi-Section Background Video Scrollytelling Experience
   ------------------------------------------------------------------------- */
.scrollytelling-track {
  position: relative;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.scrolly-canvas-sticky {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.scrolly-canvas-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scrolly-canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scrolly-vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(16, 14, 10, 0.04) 0%, rgba(16, 14, 10, 0.25) 100%);
  pointer-events: none;
}

.scrolly-hud-header {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
  pointer-events: none;
  max-width: 1200px;
  margin: 0 auto;
}

.scrolly-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scrolly-hud-badge .badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: none;
}

.scrolly-hud-counter {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
  background: rgba(255, 253, 250, 0.94);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

/* Foreground Story Sections */
.scrolly-story-sections {
  position: relative;
  z-index: 2;
  margin-top: calc(-100vh + 72px);
}

.scrolly-story-block {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 24px;
}

.story-block-inner {
  max-width: 580px;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  color: var(--color-text);
  box-shadow: none !important;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.story-block-inner:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

.story-block-right {
  margin-left: auto;
}

.story-block-center {
  margin: 0 auto;
  text-align: center;
}

.story-block-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.story-block-tag.tag-warning {
  color: var(--color-warning);
}

.story-block-tag.tag-danger {
  color: var(--color-danger);
}

.story-block-tag.tag-success {
  color: var(--color-success);
}

.story-block-title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 14px;
}

.story-block-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.story-block-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.story-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.story-pill.pill-success {
  background: rgba(65, 211, 51, 0.12);
  border-color: rgba(65, 211, 51, 0.3);
  color: var(--color-text);
}

.story-pill.pill-danger {
  background: rgba(247, 55, 48, 0.12);
  border-color: rgba(247, 55, 48, 0.3);
  color: var(--color-text);
}

.scrolly-bottom-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
}

.scrolly-scroll-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 253, 250, 0.94);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}

.scrolly-scroll-pill iconify-icon {
  animation: bounceDown 1.8s infinite;
}

.scrolly-progress-bar-wrap {
  width: 120px;
  height: 4px;
  background: var(--color-border);
  border-radius: 9999px;
  overflow: hidden;
}

.scrolly-progress-bar-fill {
  height: 100%;
  width: 4%;
  background: var(--color-accent);
  border-radius: 9999px;
  transition: width 0.06s linear;
}

html.dark .story-block-inner,
html.dark .scrolly-hud-badge,
html.dark .scrolly-hud-counter,
html.dark .scrolly-scroll-pill {
  background: rgba(30, 30, 30, 0.92);
}

/* -------------------------------------------------------------------------
   5. Hero Section & Spatial Audit Card
   ------------------------------------------------------------------------- */
.hero-section {
  padding: 80px 0 64px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge-wrapper {
  margin-bottom: 20px;
}

.badge-emerald {
  border-color: rgba(65, 211, 51, 0.3);
  background-color: rgba(65, 211, 51, 0.08);
  color: var(--color-text);
}

.badge-icon {
  font-size: 14px;
  color: var(--color-success);
}

.hero-title {
  font-size: clamp(30px, 3.5vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-icon {
  font-size: 16px;
}

.hero-trust-bullets {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.trust-icon {
  color: var(--color-success);
  font-size: 14px;
}

/* Spatial Audit Card Component */
.hero-preview-wrapper {
  width: 100%;
}

.spatial-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: none !important;
}

.spatial-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border-light);
  background-color: var(--color-background);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.spatial-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background-color: var(--color-success);
  box-shadow: none;
}

.spatial-map-canvas {
  position: relative;
  background-color: var(--color-surface);
  padding: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.spatial-svg {
  width: 100%;
  height: auto;
  display: block;
}

.svg-label-dim {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  fill: var(--color-text-muted);
}

.svg-plot-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  fill: var(--color-text);
}

.svg-plot-sub {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  fill: var(--color-text-muted);
}

.svg-beacon-text {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  fill: var(--color-text-muted);
}

.spatial-alert-pill {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text);
}

.spatial-pill-icon {
  color: var(--color-success);
  font-size: 14px;
}

.spatial-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 14px 18px;
  background-color: var(--color-background);
  gap: 16px;
}

.audit-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.audit-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text);
}

.audit-stat-desc {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   6. Metrics Bar
   ------------------------------------------------------------------------- */
.metrics-section {
  padding: 24px 0 64px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: none !important;
}

.metric-card:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

.metric-card.metric-emerald,
.metric-card.metric-cobalt,
.metric-card.metric-amber,
.metric-card.metric-indigo {
  border: 1px solid var(--color-border);
}
.metric-card.metric-emerald .metric-value,
.metric-card.metric-cobalt .metric-value,
.metric-card.metric-amber .metric-value,
.metric-card.metric-indigo .metric-value {
  color: var(--color-text);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* -------------------------------------------------------------------------
   7. Section Headers & Typography
   ------------------------------------------------------------------------- */
.section-header-centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.tag-cobalt {
  color: var(--color-cobalt);
  background-color: var(--color-cobalt-light);
  border: 1px solid var(--color-border);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.tag-emerald {
  color: var(--color-emerald);
  background-color: var(--color-emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.tag-amber {
  color: var(--color-amber);
  background-color: var(--color-amber-light);
  border: 1px solid rgba(217, 119, 6, 0.2);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.section-heading {
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-text);
}

.section-subheading {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   8. Workflow Steps
   ------------------------------------------------------------------------- */
.workflow-section {
  padding: 64px 0 96px;
  border-top: 1px solid var(--color-border-light);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.workflow-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
  box-shadow: none !important;
}

.workflow-card:hover {
  border-color: var(--color-text);
  transform: translateY(-2px);
}

.workflow-step-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1;
}

.step-cobalt,
.step-emerald,
.step-indigo {
  color: var(--color-accent);
}

.workflow-card-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--color-text);
}

.workflow-card-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   9. Institutional Grade Feature Heroes (Split Hero Rows)
   ------------------------------------------------------------------------- */
.safeguards-section {
  padding: 96px 0 120px;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-border-light);
  position: relative;
}

.feature-heroes-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.feature-hero-row {
  position: sticky;
  top: 104px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 56px 48px;
  perspective: 1200px;
  transform-style: preserve-3d;
  box-shadow: none !important;
  transition: border-color 0.25s ease;
  will-change: transform, opacity, filter;
  transform-origin: center top;
}

.feature-hero-row:nth-child(1) {
  top: 104px;
  z-index: 1;
}

.feature-hero-row:nth-child(2) {
  top: 128px;
  z-index: 2;
}

.feature-hero-row:nth-child(3) {
  top: 152px;
  z-index: 3;
}

.feature-hero-row:nth-child(4) {
  top: 176px;
  z-index: 4;
}

.feature-hero-row:nth-child(5) {
  top: 200px;
  z-index: 5;
}

.feature-hero-row:hover {
  border-color: var(--color-text);
  box-shadow: none !important;
}

.feature-hero-text {
  display: flex;
  flex-direction: column;
  transform: translateZ(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-hero-badge {
  margin-bottom: 16px;
  transform: translateZ(15px);
}

.feature-hero-title {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-text);
  transform: translateZ(12px);
}

.feature-hero-desc {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.feature-hero-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-hero-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
  line-height: 1.5;
}

.feature-list-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.text-emerald {
  color: var(--color-emerald);
}

.text-cobalt {
  color: var(--color-cobalt);
}

.text-indigo {
  color: var(--color-indigo);
}

.feature-hero-action {
  display: flex;
  align-items: center;
}

.feature-hero-action .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Feature Image Card & Parallax Visuals */
.feature-hero-visual {
  width: 100%;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.feature-image-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background-color: var(--color-background);
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.feature-img-wrapper {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  overflow: hidden;
  will-change: transform;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateY(var(--parallax-y, 0px)) scale(1.04);
  transition: transform 0.12s linear, filter 0.3s ease;
  will-change: transform;
}

.feature-hero-row:hover .feature-img {
  filter: brightness(1.03);
}

.feature-img-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-text);
  transform: translateZ(30px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  z-index: 2;
}

html.dark .feature-img-overlay {
  background: rgba(30, 30, 30, 0.94);
}

.overlay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.overlay-badge-success {
  background-color: rgba(5, 150, 105, 0.25);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.overlay-badge-cobalt {
  background-color: rgba(37, 99, 235, 0.25);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.overlay-badge-indigo {
  background-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  border: 1px solid rgba(165, 180, 252, 0.3);
}

.overlay-meta {
  font-size: 11px;
  color: #cbd5e1;
  font-weight: 500;
}

/* ===== Full-Report scroll-pinned vertical tabs ===== */
.dende-rt-track {
  position: relative;
  height: 560vh;
}
.dende-rt-sticky {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dende-rt-inner {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 28px 0 4px;
}
.dende-rt-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: start;
  position: sticky;
  top: 28px;
  height: max-content;
  z-index: 2;
}
.dende-rt-tab {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  min-height: 50px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.dende-rt-tab:hover {
  color: var(--color-text);
}
.dende-rt-tab.is-active {
  color: var(--color-text);
  border-color: var(--color-text);
  background: var(--color-surface);
  font-weight: 800;
}
.dende-rt-tab-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
}
.dende-rt-tab-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.dende-rt-tab.is-active .dende-rt-tab-idx {
  color: #fff;
  background: var(--color-text);
  border-color: var(--color-text);
}
.dende-rt-stage {
  position: relative;
  min-height: 0;
}
.dende-rt-panel {
  display: none;
  position: relative;
  height: 100%;
  min-height: 0;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--color-border);
}
.dende-rt-panel.is-active {
  display: block;
  animation: dende-rt-fade 0.4s ease;
}
.dende-rt-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-background);
  opacity: 0.94;
  z-index: 0;
}
@keyframes dende-rt-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dende-rt-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: 32px 36px;
  scrollbar-width: thin;
}
.dende-rt-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--color-text);
}
.dende-rt-content > p.dende-rt-lede {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0;
}
.dende-rt-lede-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.dende-rt-count {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
}
.dende-rt-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 28px;
}
.dende-rt-field {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--color-border-light);
}
.dende-rt-field iconify-icon {
  display: block;
  color: var(--color-text);
  margin-bottom: 4px;
}
.dende-rt-field strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 2px;
}
.dende-rt-field span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}
.dende-rt-progress {
  flex: 0 0 auto;
  height: 3px;
  background: var(--color-border);
  margin-top: 12px;
}
.dende-rt-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-text);
  transition: width 0.25s ease;
}

/* Mobile: no pinning — stack all panels, hide tab rail */
@media (max-width: 900px) {
  .dende-rt-track { height: auto !important; }
  .dende-rt-sticky { position: static; height: auto; overflow: visible; }
  .dende-rt-inner { display: block; }
  .dende-rt-nav { display: none; }
  .dende-rt-stage { position: static; }
  .dende-rt-panel,
  .dende-rt-panel.is-active {
    display: block;
    height: auto;
    animation: none;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
  }
  .dende-rt-panel::before { opacity: 0.97; }
  .dende-rt-panel:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .dende-rt-content { height: auto; overflow: visible; padding: 24px 20px; }
  .dende-rt-fields { grid-template-columns: 1fr; }
  .dende-rt-tab-label { white-space: normal; }
  .dende-rt-progress { display: none; }
}

@media (min-width: 901px) and (max-width: 1200px) {
  .dende-rt-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .feature-hero-row,
  .feature-hero-text,
  .feature-image-card,
  .feature-img,
  .feature-img-overlay {
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 992px) {
  .feature-hero-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }
}

/* -------------------------------------------------------------------------
   10. Mission & Comparison
   ------------------------------------------------------------------------- */
.mission-section {
  padding: 80px 0 96px;
  border-top: 1px solid var(--color-border-light);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.comparison-card {
  border-radius: var(--radius-card);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
}

.comparison-danger {
  background-color: rgba(225, 29, 72, 0.05);
  border-color: rgba(225, 29, 72, 0.25);
}

.comparison-success {
  background-color: rgba(5, 150, 105, 0.05);
  border-color: rgba(5, 150, 105, 0.3);
}

.comparison-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.comparison-badge-danger {
  background-color: rgba(225, 29, 72, 0.15);
  color: var(--color-danger);
}

.comparison-badge-success {
  background-color: rgba(5, 150, 105, 0.15);
  color: var(--color-success);
}

.comparison-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 500;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.pillar-card.pillar-cobalt,
.pillar-card.pillar-emerald,
.pillar-card.pillar-indigo {
  border: 1px solid var(--color-border);
}

.pillar-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--color-text);
}

.pillar-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   11. Bottom CTA Section
   ------------------------------------------------------------------------- */
.bottom-cta-section {
  padding: 64px 0 96px;
}

.bottom-cta-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 64px 32px;
  text-align: center;
  box-shadow: none !important;
}

.bottom-cta-inner {
  max-width: 680px;
  margin: 0 auto;
}

.bottom-cta-title {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.bottom-cta-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.bottom-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   12. Responsive Breakpoints & Mobile Horizontal Scroll
   ------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Horizontal Scroll Carousel for Grid Containers */
  .metrics-grid,
  .workflow-grid,
  .safeguards-grid,
  .comparison-grid,
  .pillars-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
    scrollbar-width: none; /* Firefox */
  }

  .metrics-grid::-webkit-scrollbar,
  .workflow-grid::-webkit-scrollbar,
  .safeguards-grid::-webkit-scrollbar,
  .comparison-grid::-webkit-scrollbar,
  .pillars-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .metric-card {
    flex: 0 0 220px;
    min-width: 220px;
    scroll-snap-align: start;
  }

  .workflow-card {
    flex: 0 0 280px;
    min-width: 280px;
    scroll-snap-align: start;
  }

  .safeguard-card {
    flex: 0 0 280px;
    min-width: 280px;
    scroll-snap-align: start;
  }

  .comparison-card {
    flex: 0 0 290px;
    min-width: 290px;
    scroll-snap-align: start;
  }

  .pillar-card {
    flex: 0 0 260px;
    min-width: 260px;
    scroll-snap-align: start;
  }
}

@media (max-width: 600px) {
  .hero-section {
    padding: 48px 0 40px;
  }

  .hero-actions,
  .bottom-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .bottom-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .spatial-card-footer {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
   7. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  font-size: 13px;
  color: var(--color-text-muted);
  background-color: var(--color-background);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  font-size: 17px;
  color: var(--color-text);
}

.footer-copyright {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

.footer-nav {
  display: flex;
  align-items: center;
}

.footer-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-menu li {
  list-style: none;
}

.footer-menu a {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu .current-menu-item > a {
  color: var(--color-text);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .footer-menu {
    gap: 16px;
  }
}

/* -------------------------------------------------------------------------
   8. Insights (Blog Posts Archive & Single View)
   ------------------------------------------------------------------------- */
.insights-main-wrap {
  width: 100%;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.insight-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none !important;
}

.insight-card:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-3px);
  box-shadow: none !important;
}

.insight-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.insight-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border-light);
}

.insight-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card:hover .insight-card-thumb img {
  transform: scale(1.04);
}

.insight-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.insight-card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.insight-category-badge {
  font-size: 11px !important;
  padding: 3px 10px !important;
  background-color: var(--color-accent-light);
  border-color: var(--color-border);
  color: var(--color-text);
}

.insight-date {
  font-size: 12px;
  color: var(--color-text-subtle);
  font-weight: 500;
}

.insight-card-title {
  font-family: var(--font-heading) !important;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.insight-card:hover .insight-card-title {
  color: var(--color-accent);
}

.insight-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.insight-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.insight-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  transition: gap 0.2s ease, color 0.2s ease;
}

.insight-card:hover .insight-read-more {
  gap: 10px;
}

.insights-pagination {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

.insights-pagination ul.page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-wrap: wrap;
}

.insights-pagination .page-numbers a,
.insights-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: all 0.2s ease;
}

.insights-pagination .page-numbers .current {
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text) !important;
  border-color: var(--color-btn-border);
}

.insights-pagination .page-numbers a:hover {
  background-color: var(--color-accent-light);
  border-color: var(--color-text);
}

.insights-empty-state {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--color-border);
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
}

.insights-empty-state .empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-light);
  border-radius: var(--radius-pill);
}

.back-to-insights-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-insights-link:hover {
  color: var(--color-text) !important;
  transform: translateX(-2px);
}

@media (max-width: 600px) {
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------------
 * Clean Luxury Tables & Block Tables (Linear / Stripe Standard)
 * ------------------------------------------------------------------------- */
.wp-block-table {
  overflow-x: auto;
  margin: 36px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card) !important;
  background: var(--color-surface);
  box-shadow: none !important;
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
}

.wp-block-table thead th {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.wp-block-table tbody td {
  padding: 14px 20px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-light);
  line-height: 1.6;
}

.wp-block-table tbody tr:last-child td {
  border-bottom: none;
}

.wp-block-table tbody tr:hover td {
  background-color: rgba(20, 18, 16, 0.03);
  color: var(--color-text);
}

/* Keep single-area grids and data rows inside narrow viewports. */
.area-responsive-grid > * {
  min-width: 0;
}

.area-rent-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
}

.area-rent-table-scroll table {
  min-width: 760px;
}

.area-rent-scroll-hint {
  display: none;
}

@media (max-width: 768px) {
  .area-rent-scroll-hint {
    display: block;
    margin: 0 0 8px;
    color: var(--color-text);
    font-size: 12px;
    line-height: 1.4;
  }

  .area-scorecard-heading-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .area-telemetry-rows > div {
    flex-wrap: wrap;
    align-items: flex-start !important;
    column-gap: 12px;
    row-gap: 4px;
  }

  .area-telemetry-rows > div > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
