/* ==========================================================================
   Elixir Forge — Shared Design System & Stylesheet
   Muse-style dark showcase: #050505 canvas, #141414 cards, #0064E0 accent
   ========================================================================== */

:root {
  /* Colors */
  --bg: #050505;
  --header-bg: #060606;
  --surface: #141414;
  --surface-inset: #1A1A1D;
  --text: #FFFFFF;
  --text-muted: #9B9B9F;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-strong: rgba(255, 255, 255, 0.12);
  --accent: #0064E0;
  --accent-hover: #0052B8;
  --accent-text: #388DFB;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii */
  --radius-hero: 20px;
  --radius-card: 16px;
  --radius-control: 10px;
  --radius-pill: 9999px;

  /* Layout & Spacing (8pt grid) */
  --max-width: 1200px;
  --gutter: 40px;
  --section-pad: 96px;
  --section-pad-lg: 112px;

  /* Motion */
  --transition: 180ms ease-out;
}

/* Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dt,
dd {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Skip Link
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background-color: var(--accent);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-control);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

/* Layout Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--max-width) + (var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Typography Helpers
   ========================================================================== */

.section-heading {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}

.section-intro {
  margin-top: 16px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.section-head {
  margin-bottom: 48px;
}

/* Buttons & Links
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  background-color: var(--accent);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  background-color: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background-color: var(--surface);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent-text);
  transition: color var(--transition);
}

.text-link:hover {
  color: var(--text);
}

/* Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 6px;
}

.site-logo img {
  display: block;
  height: 52px;
  width: auto;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-link[aria-current="page"] {
  font-weight: 700;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background-color var(--transition);
}

.nav-toggle:hover {
  border-color: var(--border-hover);
  background-color: var(--surface);
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-mobile {
  display: none;
  background-color: var(--header-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  padding-block: 16px;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  font-size: 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.nav-mobile-list li:last-child .nav-mobile-link {
  border-bottom: 0;
}

.nav-mobile-link:hover,
.nav-mobile-link[aria-current="page"] {
  color: var(--text);
}

.nav-mobile-link[aria-current="page"] {
  font-weight: 700;
}

/* Sections
   ========================================================================== */

.section {
  padding-block: var(--section-pad);
}

.section-hairline {
  border-top: 1px solid var(--border);
}

/* Hero (Muse 2-column split: product visual left, copy right on desktop)
   ========================================================================== */

.hero {
  padding-block: var(--section-pad-lg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  order: 2;
  min-width: 0;
}

.hero-visual {
  order: 1;
  min-width: 0;
}

.hero-title {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

.hero-subtitle {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  margin-top: 32px;
}

/* Hero Product Visual Card */

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

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.workspace-title {
  color: var(--text);
  font-weight: 700;
}

.workspace-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.workspace-row {
  background-color: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  padding: 16px;
}

.workspace-row-label {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text);
}

.workspace-row-detail {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.workspace-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

/* Trust Strip (horizontal hairline-divided strip, NOT cards)
   ========================================================================== */

.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-item {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.trust-copy {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Services (4 x 2 dark card grid on desktop)
   ========================================================================== */

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

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  transition: border-color var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
}

.service-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.service-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent-text);
  transition: color var(--transition);
}

.service-link:hover {
  color: var(--text);
}

/* Use Cases (2 x 2 borderless editorial hairline matrix on #050505)
   ========================================================================== */

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.use-case-item {
  padding: 32px 32px 32px 0;
  border-bottom: 1px solid var(--border);
}

.use-case-item:nth-child(even) {
  padding: 32px 0 32px 32px;
  border-left: 1px solid var(--border);
}

.use-case-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.use-case-copy {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* How We Work (4-column horizontal numbered hairline ledger)
   ========================================================================== */

.process-ledger {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-step {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
}

.process-step:first-child {
  padding-left: 0;
}

.process-step:last-child {
  padding-right: 0;
  border-right: 0;
}

.process-num {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--accent-text);
}

.process-title {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.process-copy {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.section-footer-link {
  margin-top: 16px;
}

/* Ways to Engage (3-row quiet horizontal specification table)
   ========================================================================== */

.engage-table {
  border-top: 1px solid var(--border);
}

.engage-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.engage-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

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

/* FAQ (2-column split + native <details>/<summary> hairline accordion)
   ========================================================================== */

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-block: 16px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-muted);
  transition: color var(--transition);
}

.faq-item[open] .faq-summary::after {
  content: "\2212";
  color: var(--text);
}

.faq-summary:hover::after {
  color: var(--text);
}

.faq-answer {
  padding-bottom: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 64ch;
}

/* Final Call to Action
   ========================================================================== */

.final-cta {
  padding-block: var(--section-pad-lg);
  border-top: 1px solid var(--border);
}

.final-cta-title {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}

.final-cta-copy {
  margin-top: 16px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  font-weight: 400;
  color: var(--accent-text);
  transition: color var(--transition);
}

.email-link:hover {
  color: var(--text);
}

/* Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
}

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

.footer-brand {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 700;
}

.footer-location {
  font-weight: 400;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--text);
}

.footer-meta {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Form Primitives (shared for Phase 2 inner pages)
   ========================================================================== */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: var(--border-hover);
}

/* Floating Assistant Widget
   ========================================================================== */

.ef-assistant-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ef-assistant-launcher {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background-color: var(--surface);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition), transform var(--transition);
}

.ef-assistant-launcher:hover {
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.ef-assistant-launcher img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

.ef-assistant-panel {
  width: 340px;
  max-width: calc(100vw - 40px);
  background-color: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ef-assistant-panel[hidden] {
  display: none;
}

.ef-assistant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.ef-assistant-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ef-assistant-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}

.ef-assistant-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.ef-assistant-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -6px -8px -6px 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), background-color var(--transition);
}

.ef-assistant-close:hover {
  color: var(--text);
  background-color: var(--surface-inset);
}

.ef-assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  max-height: 280px;
  overflow-y: auto;
}

.ef-assistant-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.ef-assistant-msg--bot {
  align-self: flex-start;
  background-color: var(--surface-inset);
  border: 1px solid var(--border);
  color: var(--text);
}

.ef-assistant-msg--user {
  align-self: flex-end;
  background-color: var(--accent);
  color: var(--text);
}

.ef-assistant-notice {
  align-self: flex-start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
  padding: 2px 4px;
}

.ef-assistant-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.ef-assistant-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  background-color: var(--surface-inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.ef-assistant-input::placeholder {
  color: var(--text-muted);
}

.ef-assistant-send {
  min-height: 44px;
  padding: 10px 16px;
  background-color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition), border-color var(--transition);
}

.ef-assistant-send:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-ledger {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step:nth-child(odd) {
    padding-left: 0;
  }

  .process-step:nth-child(even) {
    padding-right: 0;
    border-right: 0;
  }

  .process-step:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 959px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-subtitle {
    max-width: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:first-child,
  .trust-item:last-child {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 767px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-logo img {
    height: 44px;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .use-case-item,
  .use-case-item:nth-child(even) {
    padding: 24px 0;
    border-left: 0;
  }

  .engage-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 24px;
  }

  .footer-inner {
    padding-right: 0;
  }

  .site-footer {
    padding-bottom: 96px;
  }
}

@media (max-width: 639px) {
  :root {
    --gutter: 24px;
    --section-pad: 64px;
    --section-pad-lg: 64px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-ledger {
    grid-template-columns: 1fr;
  }

  .process-step,
  .process-step:nth-child(odd),
  .process-step:nth-child(even) {
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .workspace-card {
    padding: 20px;
  }

  .workspace-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ef-assistant-root {
    right: 16px;
    bottom: 16px;
  }

  .ef-assistant-launcher {
    width: 52px;
    height: 52px;
  }

  .ef-assistant-panel {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   Phase 2: Inner Pages & Curated Media Slots (Additive)
   ========================================================================== */

/* Shared Page Header & Editorial Split */

.page-header {
  padding-block: 80px 48px;
}

.page-title {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
  max-width: 18ch;
}

.page-lead {
  margin-top: 20px;
  max-width: 660px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Jump Navigation (Services) */

.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.jump-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.jump-link:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

/* Curated Visual Slots & Fixed-Ratio Frames */

.media-section {
  padding-bottom: var(--section-pad);
}

.media-figure {
  margin: 0;
}

.media-frame {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  overflow: hidden;
  width: 100%;
}

.media-frame--wide {
  aspect-ratio: 16 / 9;
}

.media-frame--editorial {
  aspect-ratio: 4 / 3;
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.media-frame--editorial img {
  object-position: center 30%;
}

.media-caption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Services Catalogue Bands (services.html) */

.service-detail {
  padding-block: 72px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: start;
}

.service-detail-num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent-text);
}

.service-detail-title {
  margin-top: 10px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}

.service-detail-subtitle {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
}

.service-detail-outcome {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.service-detail-bestfor {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.service-detail-bestfor strong {
  color: var(--text);
}

.service-detail-cta {
  margin-top: 20px;
}

.deliverables-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 12px;
}

.deliverables-list {
  border-top: 1px solid var(--border);
}

.deliverables-list li {
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Process Page Chapters & Comparison Table (process.html) */

.phase-chapter {
  padding-block: 72px;
  border-top: 1px solid var(--border);
}

.phase-chapter-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.phase-sticky {
  position: sticky;
  top: 96px;
}

.phase-timing {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.phase-overview {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 28px;
}

.spec-list {
  border-top: 1px solid var(--border);
}

.spec-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding-block: 20px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.spec-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

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

.compare-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.compare-col {
  padding: 32px 32px 32px 0;
  border-right: 1px solid var(--border);
}

.compare-col:last-child {
  padding: 32px 0 32px 32px;
  border-right: 0;
}

.compare-heading {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 16px;
}

.compare-list li {
  padding-block: 12px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* About Page Split, Philosophy, Privacy Panel & Audience Table (about.html) */

.about-hero {
  padding-block: 80px var(--section-pad);
}

.about-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-body {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.philosophy-list {
  border-top: 1px solid var(--border);
}

.philosophy-row {
  display: grid;
  grid-template-columns: 80px 260px minmax(0, 1fr);
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.philosophy-num {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent-text);
}

.philosophy-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

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

.privacy-panel {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-hero);
  padding: 40px;
}

.privacy-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.privacy-copy {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.privacy-points {
  border-top: 1px solid var(--border);
}

.privacy-points li {
  padding-block: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

.audience-table {
  border-top: 1px solid var(--border);
}

.audience-row {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 32px;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.audience-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.audience-tag {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--accent-text);
}

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

/* Contact Page Asymmetric Workspace & Form Validation (contact.html) */

.contact-section {
  padding-block: 80px var(--section-pad-lg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.contact-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
}

.contact-card-lead {
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-input,
.form-select {
  min-height: 48px;
}

.form-textarea {
  min-height: 132px;
  resize: vertical;
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"],
.form-select[aria-invalid="true"] {
  border-color: rgba(255, 255, 255, 0.55);
}

.form-error {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  padding-left: 10px;
  border-left: 2px solid var(--text);
}

.contact-status {
  margin-top: 20px;
  padding: 16px;
  background-color: var(--surface-inset);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.contact-status[hidden] {
  display: none;
}

.contact-status p + .contact-status-actions {
  margin-top: 8px;
}

.contact-sidebar {
  padding-top: 8px;
}

.contact-block + .contact-block {
  margin-top: 48px;
}

.contact-block-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-direct-list {
  border-top: 1px solid var(--border);
}

.contact-direct-row {
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
}

.contact-direct-label {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.contact-direct-value {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

a.contact-direct-value {
  color: var(--accent-text);
  font-weight: 700;
  transition: color var(--transition);
}

a.contact-direct-value:hover {
  color: var(--text);
}

.next-steps-list {
  border-top: 1px solid var(--border);
}

.next-step-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.next-step-num {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--accent-text);
}

.next-step-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.next-step-copy {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Phase 2 Responsive Breakpoints */

@media (max-width: 959px) {
  .service-detail-grid,
  .phase-chapter-grid,
  .about-split,
  .privacy-panel-grid,
  .contact-layout,
  .compare-table {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .phase-sticky {
    position: static;
  }

  .compare-col,
  .compare-col:last-child {
    padding: 24px 0;
    border-right: 0;
  }

  .compare-col:first-child {
    border-bottom: 1px solid var(--border);
  }

  .philosophy-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px 16px;
  }

  .philosophy-copy {
    grid-column: 1 / -1;
  }

  .audience-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 639px) {
  .page-header,
  .about-hero,
  .contact-section {
    padding-block: 56px 40px;
  }

  .media-section {
    padding-bottom: 64px;
  }

  .service-detail,
  .phase-chapter {
    padding-block: 56px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .privacy-panel,
  .contact-card {
    padding: 24px;
  }
}
