/*
 * Collimated Research — Dark Theme
 * Brand Palette: Cyan #18FFFF · Blue #304FFE (→ #7B8FFF dark-mode) · Purple #D500F9 (→ #E455FF)
 * 8-Point Grid Vertical Rhythm: all line-heights & spacing are multiples of 8px
 * Font: Figtree (Google Fonts)
 */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* ==========================================================
     SPACING SYSTEM (8-Point Grid)
     Every value is a multiple of 8px (0.5rem).
     ========================================================== */
  --space-8: 0.5rem;
  /*   8px  = 1×8 */
  --space-16: 1.0rem;
  /*  16px  = 2×8 */
  --space-24: 1.5rem;
  /*  24px  = 3×8 */
  --space-32: 2.0rem;
  /*  32px  = 4×8 */
  --space-40: 2.5rem;
  /*  40px  = 5×8 */
  --space-48: 3.0rem;
  /*  48px  = 6×8 */
  --space-56: 3.5rem;
  /*  56px  = 7×8 */
  --space-64: 4.0rem;
  /*  64px  = 8×8 */
  --space-80: 5.0rem;
  /*  80px  = 10×8 */
  --space-96: 6.0rem;
  /*  96px  = 12×8 */
  --space-128: 8.0rem;
  /* 128px  = 16×8 */

  /* ==========================================================
     BRAND COLOR PALETTE (Dark-Mode Adapted)
     Style guide originals: Cyan #18FFFF · Blue #304FFE · Purple #D500F9
     Gray #757575 · Dark #212121
     ========================================================== */

  /* Header Colors — Strict hierarchy: Cyan → Blue → Purple */
  --cr-color-h1: #18FFFF;
  /* Cyan — highest contrast accent */
  --cr-color-h2: #667dfd;
  /* Blue — lightened from #304FFE for dark-bg readability */
  --cr-color-h3: #E455FF;
  /* Purple — lightened from #D500F9 */

  /* Hero Section */
  --cr-color-hero-title: var(--cr-color-h1);
  --cr-color-hero-tagline: oklch(75% 0.01 260);
  /* Cool-tinted subtext replacing raw gray */

  /* What We Work On (Work Rows) */
  --cr-color-work-title: var(--cr-color-h3);
  --cr-color-work-body: oklch(75% 0.01 260);

  /* Showcase / Testimonials */
  --cr-color-showcase-label: var(--cr-color-h2);
  --cr-color-quote-border: rgba(228, 85, 255, 0.4);

  /* Table of Contents */
  --cr-color-toc-title: var(--cr-color-h2);
  --cr-color-toc-active: var(--cr-color-h1);

  /* Blog Cards */
  --cr-color-blog-card-border: rgba(228, 85, 255, 0.25);
  --cr-color-blog-card-bg-start: oklch(24% 0.02 260 / 0.6);
  --cr-color-blog-card-bg-end: oklch(18% 0.02 260 / 0.3);
  --cr-color-blog-card-border-hover: rgba(24, 255, 255, 0.5);
  --cr-color-blog-card-shadow-hover: rgba(24, 255, 255, 0.15);
  --cr-color-blog-scrollbar: rgba(228, 85, 255, 0.2);
  --cr-color-blog-scrollbar-thumb: rgba(228, 85, 255, 0.4);

  /* Contact Form */
  --cr-color-form-bg: oklch(18% 0.02 260 / 0.8);
  --cr-color-form-text: oklch(96% 0.005 260);

  /* ==========================================================
     TYPOGRAPHY — 8-Point Vertical Rhythm
     Every line-height is a multiple of 8px.
     ========================================================== */

  /* --- Font Sizes --- */
  --cr-font-h1: var(--space-40);
  /* 40px */
  --cr-font-h2: var(--space-24);
  /* 24px */
  --cr-font-h3: var(--space-16);
  /* 16px */

  --cr-font-hero-title: var(--space-64);
  /* 64px */
  --cr-font-hero-tagline: var(--space-24);
  /* 24px */

  --cr-font-work-title: 1.25rem;
  /* 20px */
  --cr-font-work-body: 1.125rem;
  /* 18px */

  --cr-font-showcase-label: var(--space-16);
  /* 16px */
  --cr-font-quote-cite: 1rem;
  /* 16px */

  --cr-font-blog-title: 1.25rem;
  /* 20px */
  --cr-font-form-label: 1rem;
  /* 16px */

  /* --- Line Heights (all multiples of 8px) --- */
  --cr-lh-h1: 3rem;
  /* 48px  = 6×8 */
  --cr-lh-h2: 2rem;
  /* 32px  = 4×8 */
  --cr-lh-h3: 1.5rem;
  /* 24px  = 3×8 */
  --cr-lh-body: 1.5rem;
  /* 24px  = 3×8 */
  --cr-lh-hero-title: 4.5rem;
  /* 72px  = 9×8 */
  --cr-lh-hero-tagline: 2rem;
  /* 32px  = 4×8 */
  --cr-lh-work-title: 2rem;
  /* 32px  = 4×8 */
  --cr-lh-work-body: 1.5rem;
  /* 24px  = 3×8 */

  /* --- Font Weights --- */
  --cr-weight-h1: 800;
  /* Extra Bold */
  --cr-weight-h2: 700;
  /* Bold */
  --cr-weight-h3: 600;
  /* Semi Bold */
}

/* ==========================================================
   THEME PALETTE OVERRIDE (Technical Blue-Tinted OKLCH)
   Replaces raw #212121 with rich, deep, perceptually uniform darks
   ========================================================== */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: oklch(96% 0.005 260);
  --md-primary-fg-color--light: oklch(99% 0.005 260);
  --md-primary-fg-color--dark: oklch(88% 0.008 260);

  /* Deep Technical Blue Backgrounds */
  --md-primary-bg-color: oklch(18% 0.02 260);
  --md-primary-bg-color--light: oklch(24% 0.02 260);
  --md-primary-bg-color--dark: oklch(12% 0.02 260);

  --md-accent-fg-color: var(--cr-color-h1);
  --md-accent-fg-color--transparent: oklch(85% 0.1 220 / 0.12); /* Cyan tint transparent */

  --md-typeset-color: oklch(88% 0.008 260);
  --md-typeset-a-color: var(--cr-color-h2);

  --md-default-fg-color: oklch(88% 0.008 260);
  --md-default-fg-color--light: oklch(70% 0.015 260);
  --md-default-fg-color--lighter: oklch(55% 0.015 260);
  --md-default-fg-color--lightest: oklch(45% 0.02 260);
}

/* ==========================================================
   GLOBAL LAYOUT AND RESETS
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Apply Figtree as the brand font */
:root {
  --md-text-font: "Figtree", sans-serif;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Hide mkdocs default headers globally to respect custom layout */
.md-header,
body.cr-no-top-header .md-header[hidden] {
  display: none !important;
}

.md-main,
body.cr-no-top-header .md-container {
  padding-top: 0 !important;
}

/* Base grid expansion to isolate TOC to the far right */
.md-grid {
  max-width: 90rem;
}

/* Center Core Content block while restraining excessive line length */
.md-content__inner {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-24);
  padding-right: var(--space-24);
  box-sizing: border-box;
  padding-bottom: var(--space-96);
}

/* ==========================================================
   TYPOGRAPHY BINDING (8-Point Vertical Rhythm)
   ========================================================== */
.md-typeset h1 {
  color: var(--cr-color-h1);
  font-size: var(--cr-font-h1) !important;
  font-weight: var(--cr-weight-h1) !important;
  line-height: var(--cr-lh-h1);
  /* 48px = 6×8 */
  letter-spacing: -0.02em;
  margin-top: 0;
  margin-bottom: var(--space-24);
}

.md-typeset h2 {
  color: var(--cr-color-h2);
  font-size: var(--cr-font-h2) !important;
  font-weight: var(--cr-weight-h2);
  line-height: var(--cr-lh-h2);
  /* 32px = 4×8 */
  letter-spacing: -0.015em;
  margin-top: var(--space-48);
  margin-bottom: var(--space-16);
}

.md-typeset h3 {
  color: var(--cr-color-h3);
  font-size: var(--cr-font-h3) !important;
  font-weight: var(--cr-weight-h3);
  line-height: var(--cr-lh-h3);
  /* 24px = 3×8 */
  letter-spacing: -0.01em;
  margin-top: var(--space-32);
  margin-bottom: var(--space-8);
}

.md-typeset p,
.md-typeset li {
  line-height: var(--cr-lh-body);
  /* 24px = 3×8 */
  letter-spacing: 0.01em;
}

.md-typeset p {
  margin-top: 0;
  margin-bottom: var(--space-16);
}

/* Macro Whitespace rule: Enormous spacing above top-level H2 sections */
.md-content__inner>[id] {
  margin-top: var(--space-128) !important;
  margin-bottom: var(--space-32);
  scroll-margin-top: var(--space-128);
}

@media (max-width: 44rem) {
  .md-content__inner>[id] {
    margin-top: var(--space-80) !important;
    scroll-margin-top: var(--space-80);
  }
}

/* ==========================================================
   TABLE OF CONTENTS AND SIDEBARS
   ========================================================== */
/* Left sidebar resurrected to hold the Sidebar CTA */
.md-sidebar--primary {
  /* Let MkDocs handle mobile hide */
}

/* Hide default mkdocs navigation tree if present */
.md-sidebar--primary .md-nav {
  display: none !important;
}

.md-sidebar--secondary .md-nav__title {
  color: var(--cr-color-toc-title);
  font-weight: 700;
}

.md-sidebar--secondary .md-nav__link--active {
  color: var(--cr-color-toc-active) !important;
  font-weight: 700;
}

.cr-search-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.cr-search-wrap label[for="__search"] {
  align-self: flex-start;
  margin: 0;
}

.cr-search-wrap .md-search {
  position: relative;
  width: 100%;
}

.cr-drawer-float {
  margin: 0 0 var(--space-8) !important;
  align-self: flex-start;
}

/* Symmetry trick: perfectly center layout with real matching sidebars */
@media screen and (min-width: 76.25em) {
  .md-main__inner::before {
    display: none !important;
  }
  
  .md-sidebar--primary {
    display: block !important;
    visibility: visible !important;
    width: 10rem !important;
    flex: 0 0 10rem !important;
  }

  .md-sidebar--secondary {
    display: block !important;
    transform: none !important;
    visibility: visible !important;
    width: 10rem !important;
    flex: 0 0 10rem !important;
  }
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.cr-hero {
  position: relative;
  display: grid;
  gap: var(--space-32);
  align-items: center;
  margin-bottom: var(--space-64);
  padding: var(--space-64) 0 var(--space-64);
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  overflow: hidden;
}

/* 
 * Colossal semantic background glow 
 * Emulates an optical lens / beam entering the dark void 
 */
.cr-hero::before {
  content: "";
  position: absolute;
  inset: -10rem -50vw;
  z-index: -1;
  background: radial-gradient(circle at 70% -10%, oklch(75% 0.15 220 / 0.1) 0%, oklch(50% 0.15 300 / 0.06) 30%, transparent 65%);
  pointer-events: none;
}

@media (min-width: 44rem) {
  .cr-hero {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: var(--space-64);
  }
}

.cr-hero__logo {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
}

.cr-hero__title {
  margin-top: 0;
  color: var(--cr-color-hero-title);
  font-size: var(--cr-font-hero-title) !important;
  font-weight: var(--cr-weight-h1);
  line-height: var(--cr-lh-hero-title);
  /* 72px = 9×8 */
  letter-spacing: -0.03em;
  margin-bottom: var(--space-16);
}

.cr-hero__tagline {
  font-size: var(--cr-font-hero-tagline);
  line-height: var(--cr-lh-hero-tagline);
  /* 32px = 4×8 */
  margin: 0;
  color: var(--cr-color-hero-tagline);
}

/* --- /overdrive: Responsive Hero Typography --- */
@media (max-width: 44rem) {
  .cr-hero {
    padding: var(--space-40) 0 var(--space-40);
    margin-bottom: var(--space-40);
    text-align: center;
  }

  .cr-hero__title {
    font-size: var(--space-40) !important;
    line-height: var(--cr-lh-h1); /* 48px */
  }

  .cr-hero__tagline {
    font-size: 1.125rem;
    line-height: var(--cr-lh-body); /* 24px */
  }
}

@media (max-width: 30rem) {
  .cr-hero__title {
    font-size: var(--space-32) !important;
    line-height: var(--space-40); /* 40px */
  }
}

/* ==========================================================
   WHAT WE WORK ON (WORK ROWS)
   ========================================================== */
.cr-work-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-96);
  margin: var(--space-48) 0 var(--space-80);
}

.cr-work-row {
  display: grid;
  gap: var(--space-32);
  align-items: center;
}

@media (min-width: 48rem) {
  .cr-work-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-64);
  }

  .cr-work-row--img-left .cr-work-row__media {
    order: -1;
  }
}

.cr-work-row__text {
  min-width: 0;
}

.cr-work-row__title {
  margin: 0 0 var(--space-16);
  font-size: var(--cr-font-work-title);
  font-weight: var(--cr-weight-h3);
  color: var(--cr-color-work-title);
  line-height: var(--cr-lh-work-title);
  /* 32px = 4×8 */
}

.cr-work-row__body {
  margin: 0;
  font-size: var(--cr-font-work-body);
  line-height: var(--cr-lh-work-body);
  /* 24px = 3×8 */
  color: var(--cr-color-work-body);
}

.cr-work-row__media {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--space-8);
}

.cr-work-row__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--space-8);
  object-fit: cover;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.cr-work-row:hover .cr-work-row__media img {
  transform: scale(1.04);
}

/* ==========================================================
   EXAMPLE PROJECTS & TESTIMONIALS
   ========================================================== */
.cr-showcase {
  display: grid;
  gap: var(--space-48);
  margin: var(--space-32) 0 var(--space-16);
}

@media (min-width: 48rem) {
  .cr-showcase {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-64);
    align-items: start;
  }
}

.cr-showcase__label {
  margin: 0 0 var(--space-16);
  font-size: var(--cr-font-showcase-label);
  font-weight: var(--cr-weight-h2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cr-color-showcase-label);
}

.cr-showcase__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--md-default-fg-color--light);
  line-height: var(--cr-lh-body);
  /* 24px = 3×8 */
}

.cr-showcase__list li {
  margin-bottom: var(--space-24);
}

.cr-showcase__block--quotes {
  border-left: 4px solid var(--cr-color-quote-border);
  padding-left: var(--space-24);
}

.cr-quote {
  margin: 0 0 var(--space-32);
  padding: 0;
  border: 0;
  font-style: italic;
  color: var(--md-default-fg-color--light);
  font-size: 1.125rem;
  line-height: var(--cr-lh-body);
  /* 24px = 3×8 */
}

.cr-quote p {
  margin: 0 0 var(--space-8);
}

.cr-quote cite {
  font-style: normal;
  font-size: var(--cr-font-quote-cite);
  color: var(--md-default-fg-color--lighter);
}

.cr-showcase__note {
  font-size: var(--space-16);
  color: var(--md-default-fg-color--lighter);
  margin: 0 0 var(--space-40);
}

/* ==========================================================
   BLOG CARDS AND STRIP
   ========================================================== */
.cr-blog-hint {
  margin: 0 0 var(--space-24);
  color: var(--md-default-fg-color--light);
  font-size: 1rem;
  line-height: var(--cr-lh-body);
}

.cr-blog-archive {
  font-weight: var(--cr-weight-h3);
  color: var(--md-typeset-a-color) !important;
  text-decoration: none;
}

.cr-blog-archive:hover {
  text-decoration: underline;
}

.cr-blog-hint__sep {
  opacity: 0.6;
}

.cr-blog-rail {
  display: flex;
  gap: var(--space-24);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--space-8) 0 var(--space-24);
  margin: 0 calc(-1 * var(--space-8));
  padding-left: var(--space-8);
  padding-right: var(--space-8);
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--cr-color-blog-scrollbar) transparent;
}

.cr-blog-rail::-webkit-scrollbar {
  height: 6px;
}

.cr-blog-rail::-webkit-scrollbar-thumb {
  background: var(--cr-color-blog-scrollbar-thumb);
  border-radius: 3px;
}

.cr-blog-card {
  flex: 0 0 min(20rem, 88vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  padding: var(--space-24);
  border-radius: var(--space-8);
  border: 1px solid var(--cr-color-blog-card-border);
  background: linear-gradient(160deg, var(--cr-color-blog-card-bg-start) 0%, var(--cr-color-blog-card-bg-end) 100%);
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.cr-blog-card:hover {
  border-color: var(--cr-color-blog-card-border-hover);
  box-shadow: 0 4px 20px -5px var(--cr-color-blog-card-shadow-hover);
  transform: translateY(-4px);
}

.cr-blog-card__title {
  font-weight: var(--cr-weight-h3);
  font-size: var(--cr-font-blog-title);
  color: var(--md-typeset-color);
  line-height: var(--cr-lh-work-title);
  /* 32px = 4×8 */
}

.cr-blog-card__excerpt {
  font-size: 1rem;
  line-height: var(--cr-lh-body);
  /* 24px = 3×8 */
  color: var(--md-default-fg-color--light);
  flex: 1;
}

.cr-blog-card__cta {
  font-size: 0.875rem;
  font-weight: var(--cr-weight-h2);
  color: var(--md-typeset-a-color);
  margin-top: var(--space-8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cr-blog-empty {
  padding: var(--space-16);
  color: var(--md-default-fg-color--lighter);
  font-size: 1rem;
}

/* ==========================================================
   CONTACT FORM AND MAP
   ========================================================== */
.cr-contact__lead {
  margin: var(--space-16) 0 var(--space-32);
  color: var(--md-default-fg-color--light);
  font-size: 1.125rem;
  line-height: var(--cr-lh-body);
}

.cr-inquiry-form {
  max-width: 38rem;
  margin: var(--space-24) 0 0;
}

.cr-inquiry-form__field {
  margin-bottom: var(--space-24);
}

.cr-inquiry-form__label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--cr-weight-h3);
  font-size: var(--cr-font-form-label);
  color: var(--md-typeset-color);
  letter-spacing: 0.02em;
}

.cr-inquiry-form__input,
.cr-inquiry-form__textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: var(--space-8) var(--space-16);
  font: inherit;
  line-height: var(--cr-lh-body);
  /* 24px = 3×8 */
  color: var(--cr-color-form-text);
  background: var(--cr-color-form-bg);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: var(--space-8);
  transition: outline 0.2s ease, border-color 0.2s ease, box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.cr-inquiry-form__textarea {
  min-height: 10rem;
  resize: vertical;
}

.cr-inquiry-form__input:focus,
.cr-inquiry-form__textarea:focus {
  outline: none;
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 0 0 2px oklch(18% 0.02 260), 0 0 0 4px var(--md-accent-fg-color), 0 4px 16px oklch(85% 0.1 220 / 0.3);
}

.cr-inquiry-form__submit {
  margin-top: var(--space-8);
  min-height: var(--space-48);
  padding: 0 var(--space-32);
  font-weight: var(--cr-weight-h3);
  border-radius: var(--space-8);
}

.cr-map {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: var(--space-24) 0 0;
  border-radius: var(--space-8);
  overflow: hidden;
  border: 1px solid var(--md-default-fg-color--lightest);
  aspect-ratio: 16 / 10;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.cr-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Scroll-triggered sections (home page: JS adds .cr-reveal-section) */
.cr-reveal-section {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .cr-reveal-section:not(.cr-reveal-section--visible) {
    opacity: 0;
    transform: translateY(2rem);
    filter: blur(12px);
  }

  .cr-reveal-section {
    transition:
      opacity 0.75s ease,
      transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.75s ease-out;
    filter: blur(0);
  }

  .cr-reveal-section--visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

/* ==========================================================
   UI ENHANCEMENTS (/bolder, /shape, /layout, /polish)
   ========================================================== */

/* --- /bolder: Hero CTA --- */
.cr-hero__cta {
  display: inline-block;
  position: relative;
  overflow: hidden;
  background-color: var(--cr-color-h1);
  color: var(--md-primary-bg-color) !important;
  font-weight: var(--cr-weight-h1);
  font-size: var(--cr-font-h3); /* 16px */
  padding: var(--space-16) var(--space-32);
  border-radius: var(--space-8);
  text-decoration: none !important;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
  margin-top: var(--space-24);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px oklch(85% 0.1 220 / 0.2);
}
.cr-hero__cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
}
.cr-hero__cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px oklch(85% 0.1 220 / 0.4);
  background-color: #fff;
}
.cr-hero__cta:hover::after {
  animation: cr-sweep 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cr-sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* --- /shape: Contact Form Card --- */
.cr-inquiry-card {
  max-width: 38rem;
  margin: var(--space-24) 0 0;
  padding: var(--space-40);
  background: var(--md-primary-bg-color--light);
  border-radius: var(--space-8);
  border-top: 4px solid var(--cr-color-h3);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(228, 85, 255, 0.05);
}
.cr-inquiry-card .cr-inquiry-form {
  margin: 0;
  max-width: none;
}
.cr-inquiry-card .cr-inquiry-form__submit {
  width: 100%;
  background-color: var(--cr-color-h1);
  color: var(--md-primary-bg-color) !important;
  font-weight: var(--cr-weight-h1);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1.125rem;
  padding: var(--space-16) var(--space-32);
  margin-top: var(--space-16);
  border-radius: var(--space-8);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px oklch(85% 0.1 220 / 0.2);
}
.cr-inquiry-card .cr-inquiry-form__submit:hover {
  background-color: #fff;
  color: var(--md-primary-bg-color) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(85% 0.1 220 / 0.4);
}

/* --- Social Tags --- */
.cr-contact__social {
  margin-top: var(--space-48);
  margin-bottom: var(--space-32);
}
.cr-contact__location {
  font-size: 1.25rem;
  margin-top: var(--space-32);
  margin-bottom: var(--space-16);
}
.cr-contact__social a {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--cr-color-h1);
  font-weight: var(--cr-weight-h1);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: var(--space-8) 0;
  transition: color 0.2s ease, text-shadow 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.cr-contact__social a::after {
  content: " ↗";
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.cr-contact__social a:hover {
  color: #fff;
  text-shadow: 0 0 16px oklch(85% 0.1 220 / 0.8);
  transform: translateX(4px);
}
.cr-contact__social a:hover::after {
  opacity: 1;
}

/* --- Left Sidebar CTA --- */
.cr-sidebar-cta {
  display: block;
  background-color: var(--cr-color-h1);
  color: var(--md-primary-bg-color) !important;
  font-weight: var(--cr-weight-h1);
  font-size: var(--cr-font-h3);
  padding: var(--space-8) var(--space-16);
  border-radius: var(--space-8);
  text-decoration: none !important;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px oklch(85% 0.1 220 / 0.2);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background-color 0.2s ease;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  margin-top: var(--space-32);
  margin-left: var(--space-24);
  margin-right: var(--space-16);
}
.cr-sidebar-cta--hidden {
  opacity: 0;
  transform: translateY(-1rem);
  pointer-events: none;
}
.cr-sidebar-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px oklch(85% 0.1 220 / 0.4);
  background-color: #fff;
}

/* --- Mobile Fixed CTA --- */
.cr-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: var(--space-24);
  right: var(--space-24);
  width: var(--space-48);
  height: var(--space-48);
  background-color: oklch(90% 0.15 220 / 0.85); /* Semi-transparent Cyan */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--md-primary-bg-color) !important;
  border-radius: 50%;
  box-shadow: 0 4px 12px oklch(85% 0.1 220 / 0.2);
  z-index: 100;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.cr-mobile-cta svg {
  width: var(--space-24);
  height: var(--space-24);
}

@media screen and (min-width: 76.25em) {
  .cr-mobile-cta {
    display: none;
  }
}

.cr-mobile-cta:hover {
  background-color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px oklch(85% 0.1 220 / 0.4);
}

.cr-mobile-cta--hidden {
  opacity: 0;
  transform: translateY(2rem) scale(0.8);
  pointer-events: none;
}

/* --- /overdrive: Subtle attention pulse on mobile CTA --- */
@media (prefers-reduced-motion: no-preference) {
  .cr-mobile-cta:not(.cr-mobile-cta--hidden) {
    animation: cr-cta-pulse 3s cubic-bezier(0.22, 1, 0.36, 1) 2s infinite;
  }
}

@keyframes cr-cta-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px oklch(85% 0.1 220 / 0.2);
  }
  50% {
    box-shadow: 0 4px 20px oklch(85% 0.1 220 / 0.5), 0 0 0 8px oklch(85% 0.1 220 / 0.08);
  }
}

/* --- /overdrive: Responsive inquiry card --- */
@media (max-width: 44rem) {
  .cr-inquiry-card {
    padding: var(--space-24);
    margin-left: calc(-1 * var(--space-8));
    margin-right: calc(-1 * var(--space-8));
  }
}

/* --- /overdrive: Focus-visible keyboard navigation --- */
.cr-hero__cta:focus-visible,
.cr-sidebar-cta:focus-visible,
.cr-mobile-cta:focus-visible,
.cr-blog-card:focus-visible,
.cr-inquiry-form__submit:focus-visible {
  outline: 2px solid var(--cr-color-h1);
  outline-offset: 4px;
}

.cr-blog-archive:focus-visible,
.cr-contact__social a:focus-visible {
  outline: 2px solid var(--cr-color-h2);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- /overdrive: Stronger selection highlight --- */
::selection {
  background: oklch(85% 0.1 220 / 0.3);
  color: #fff;
}