/* LG Studio · editorial homepage (standalone)
   Palette: Obsidian · Cream · Coral */

*,
*::before,
*::after {
  box-sizing: border-box;
  font-style: normal !important;
}

body {
  margin: 0;
}

body.studio-lovable {
  background: #0E0C0A;
  color: #FAF6EF;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  /* Do NOT set overflow-x on body — it breaks position:sticky for .ed-nav */
  font-synthesis: none;
}

body.studio-lovable a {
  color: inherit;
  text-decoration: none;
}

body.studio-lovable #studio-main {
  background: #FAF6EF;
  color: #0E0C0A;
  overflow-x: clip;
}

/* Upright voice · no slanted emphasis */
body.studio-lovable em,
body.studio-lovable i,
body.studio-lovable cite,
body.studio-lovable dfn {
  font-style: normal !important;
}

body.studio-lovable .accent-text {
  font-style: normal !important;
  color: #F96F6E;
  font-synthesis: none;
}

.studio-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  text-decoration: none;
}

.studio-skip:focus,
.studio-skip:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10060;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: nowrap;
  background: #0E0C0A;
  color: #FAF6EF;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  outline: 2px solid #C96E53;
  outline-offset: 2px;
}

/* --- Navigation ---------------------------------------------------------- */

/*
  Sticky stack (Studio + ecosystem):
  - .lg-eco     fixed  top: 0                         z-index: 200
  - .ed-nav     fixed  top: var(--lg-eco-strip-offset) z-index: 150
  - chapter bar sticky top: eco + studio-nav           z-index: 140
  Body padding clears both fixed layers so content never starts under chrome.
  data-eco-context=studio is set by nav-component.js.
*/
body.studio-lovable {
  --lg-studio-nav-h: 56px;
  --lg-studio-chapter-h: 40px;
  --lg-studio-chrome-top: var(--lg-eco-strip-offset, 30px);
  --lg-studio-chapter-top: calc(var(--lg-studio-chrome-top) + var(--lg-studio-nav-h));
}

/* Chapter index styles: lg-studio-practice-chapters.css */

@media (max-width: 1080px) {
  body.studio-lovable {
    --lg-studio-chapter-h: 38px;
  }
}

/* When studio-shell.js owns chrome, padding is strip-only (see lg-studio-shell.css). */
body.studio-lovable.has-ecosystem-nav:not(.studio-shell) {
  padding-top: calc(var(--lg-eco-strip-offset, 30px) + var(--lg-studio-nav-h));
}

/* Beat lg-ecosystem-strip.css studio padding (strip-only) once local nav is fixed */
body.studio-lovable.has-ecosystem-nav[data-eco-context="studio"]:not(.studio-shell) {
  padding-top: calc(var(--lg-eco-strip-offset, 30px) + var(--lg-studio-nav-h)) !important;
}

body.studio-lovable.has-ecosystem-nav .ed-nav {
  position: fixed;
  top: var(--lg-eco-strip-offset, 30px);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 150;
}

@media (max-width: 1080px) {
  body.studio-lovable.has-ecosystem-nav .mobile-menu-btn {
    display: none !important;
  }
}

body.studio-lovable .ed-nav {
  position: sticky;
  top: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--lg-studio-nav-h, 56px);
  /* Match ecosystem strip outer grid: --lg-shell 1320 + --lg-pad 40 */
  padding:
    0
    max(var(--lg-pad, 40px), calc((100% - var(--lg-shell, 1320px)) / 2 + var(--lg-pad, 40px)));
  background: rgba(14, 12, 10, 0.94);
  border-bottom: 1px solid rgba(250, 246, 239, 0.16);
  backdrop-filter: blur(8px);
  box-sizing: border-box;
}

@media (max-width: 1080px) {
  body.studio-lovable .ed-nav {
    padding:
      0
      max(var(--lg-pad-sm, 20px), calc((100% - var(--lg-shell, 1320px)) / 2 + var(--lg-pad-sm, 20px)));
  }
}

body.studio-lovable .ed-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: #FAF6EF;
}

/* Approved reversed horizontal lockup for ink headers (no CSS invent / invert) */
body.studio-lovable .ed-brand-lockup {
  display: block;
  line-height: 0;
}

body.studio-lovable .ed-brand-lockup img {
  display: block;
  width: auto;
  height: 28px;
  max-width: min(220px, 42vw);
}

/* Mobile: monogram crop from the same reversed horizontal asset */
body.studio-lovable .ed-brand-lockup--compact {
  display: none;
  width: 28px;
  height: 28px;
  overflow: hidden;
}

body.studio-lovable .ed-brand-lockup--compact img {
  height: 28px;
  width: auto;
  max-width: none;
}

@media (max-width: 1080px) {
  body.studio-lovable .ed-brand-lockup--full {
    display: none;
  }

  body.studio-lovable .ed-brand-lockup--compact {
    display: block;
  }
}

body.studio-lovable .ed-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.studio-lovable .ed-nav-links a {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 246, 239, 0.62);
  transition: color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.studio-lovable .ed-nav-links a:hover {
  color: #FAF6EF;
}

body.studio-lovable .ed-nav-book {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(250, 246, 239, 0.16);
  font-weight: 600;
  color: #FAF6EF;
}

body.studio-lovable .ed-nav-book:hover {
  border-color: #F96F6E;
}

body.studio-lovable .ed-nav-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-right: 0.25rem;
  border: 1px solid rgba(250, 246, 239, 0.16);
  border-radius: 999px;
  padding: 2px;
}

body.studio-lovable .ed-nav-lang-toggle button {
  font-family: var(--ed-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-style: normal;
  border: none;
  background: transparent;
  color: rgba(250, 246, 239, 0.55);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

body.studio-lovable .ed-nav-lang-toggle button:hover {
  color: #FAF6EF;
}

body.studio-lovable .ed-nav-lang-toggle button.is-active {
  color: #F96F6E;
  background: rgba(249, 111, 110, 0.12);
}

body.studio-lovable .ed-nav-links a:focus-visible {
  outline: 2px solid #F96F6E;
  outline-offset: 3px;
}

body.studio-lovable .ed-nav-bar {
  display: flex;
  align-items: center;
  margin-left: auto;
}

body.studio-lovable .ed-nav-mobile {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

body.studio-lovable .ed-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.15rem;
  border: none;
  background: transparent;
  color: #FAF6EF;
  cursor: pointer;
  font-family: var(--ed-font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  transition: color 160ms ease;
}

body.studio-lovable .ed-menu-toggle:hover {
  color: #F96F6E;
}

body.studio-lovable .ed-menu-toggle-icon {
  display: inline-flex;
  line-height: 0;
}

body.studio-lovable .ed-menu-toggle:focus-visible {
  outline: 2px solid #F96F6E;
  outline-offset: 3px;
}

/* --- Mobile navigation drawer -------------------------------------------- */

body.studio-lovable .ed-nav-drawer {
  position: fixed;
  inset: 0;
  /* Must sit above the ecosystem site-header (z-index: 10000) or Close is covered */
  z-index: 10050;
  pointer-events: none;
}

body.studio-lovable .ed-nav-drawer.is-open {
  pointer-events: auto;
}

body.studio-lovable .ed-nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 10, 0.42);
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.studio-lovable .ed-nav-drawer.is-open .ed-nav-drawer-backdrop {
  opacity: 1;
}

body.studio-lovable .ed-nav-drawer-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 5vw, 40px);
  background: #FAF6EF;
  color: #0E0C0A;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.studio-lovable .ed-nav-drawer.is-open .ed-nav-drawer-panel {
  opacity: 1;
  transform: translateY(0);
}

body.studio-lovable .ed-nav-drawer-close {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  margin: 0 0 clamp(28px, 5vw, 48px);
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(14, 12, 10, 0.18);
  border-radius: 999px;
  background: #FAF6EF;
  cursor: pointer;
  font-family: var(--ed-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: normal;
  color: #0E0C0A;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

body.studio-lovable .ed-nav-drawer-close::before {
  content: "×";
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
  transform: translateY(-1px);
}

body.studio-lovable .ed-nav-drawer-close:hover {
  color: #F96F6E;
  border-color: rgba(249, 111, 110, 0.55);
  background: #fff;
}

body.studio-lovable .ed-nav-drawer-close:focus-visible {
  outline: 2px solid #F96F6E;
  outline-offset: 3px;
}

body.studio-lovable .ed-nav-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 4vw, 32px);
  flex: 1;
}

body.studio-lovable .ed-nav-drawer-link {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  text-decoration: none;
  color: #0E0C0A;
  transition: color 160ms ease;
}

body.studio-lovable .ed-nav-drawer-link:hover,
body.studio-lovable .ed-nav-drawer-link:focus-visible {
  color: #F96F6E;
}

body.studio-lovable .ed-nav-drawer-link:focus-visible {
  outline: 2px solid #F96F6E;
  outline-offset: 4px;
}

body.studio-lovable .ed-nav-drawer-num {
  font-family: var(--ed-font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(14, 12, 10, 0.45);
  min-width: 1.25rem;
}

body.studio-lovable .ed-nav-drawer-sep {
  font-family: var(--ed-font-mono);
  font-size: 0.75rem;
  color: rgba(14, 12, 10, 0.28);
}

body.studio-lovable .ed-nav-drawer-label {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-style: normal;
}

/* Secondary ecosystem destinations when strip collapses (≤1080) */
body.studio-lovable .ed-nav-drawer-ecosystem {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(250, 246, 239, 0.12);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.studio-lovable .ed-nav-drawer-ecosystem a {
  color: rgba(250, 246, 239, 0.55);
  text-decoration: none;
}

body.studio-lovable .ed-nav-drawer-ecosystem a:hover,
body.studio-lovable .ed-nav-drawer-ecosystem a:focus-visible {
  color: #FAF6EF;
}

body.studio-lovable .ed-nav-drawer-ecosystem__sep {
  color: rgba(250, 246, 239, 0.28);
  user-select: none;
}

body.studio-lovable .ed-nav-drawer-foot {
  margin-top: clamp(40px, 8vw, 72px);
  padding-top: clamp(24px, 4vw, 40px);
  border-top: 1px solid rgba(14, 12, 10, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

body.studio-lovable .ed-nav-lang-toggle-drawer {
  display: none;
  border-color: rgba(14, 12, 10, 0.14);
}

body.studio-lovable .ed-nav-lang-toggle-drawer button {
  color: rgba(14, 12, 10, 0.55);
}

body.studio-lovable .ed-nav-lang-toggle-drawer button:hover {
  color: #0E0C0A;
}

body.studio-lovable .ed-nav-lang-toggle-drawer button.is-active {
  color: #F96F6E;
  background: rgba(249, 111, 110, 0.12);
}

body.studio-lovable .ed-nav-drawer-book {
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

body.studio-lovable.ed-nav-drawer-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  body.studio-lovable .ed-nav-drawer-backdrop,
  body.studio-lovable .ed-nav-drawer-panel {
    transition: none;
  }
}

@media (max-width: 1200px) {

  body.studio-lovable .ed-nav-link-desktop,
  body.studio-lovable .ed-nav-book-desktop,
  body.studio-lovable .ed-nav-lang-toggle-header {
    display: none;
  }

  body.studio-lovable .ed-nav-mobile {
    display: flex;
  }

  body.studio-lovable .ed-nav-lang-toggle-drawer {
    display: inline-flex;
  }

  body.studio-lovable .ed-nav-bar {
    margin-left: auto;
  }
}

@media (max-width: 767px) {
  body.studio-lovable .ed-nav {
    padding-inline: 1rem;
  }

  body.studio-lovable .ed-nav-book-mobile {
    padding: 0.4rem 0.65rem;
  }
}

body.studio-lovable .ed-selected-work,
body.studio-lovable .ed-belief {
  --sw-ink: #0E0C0A;
  --sw-cream: #FAF6EF;
  --sw-coral: #F96F6E;
  --sw-rule: rgba(14, 12, 10, 0.14);
  --sw-rule-strong: rgba(14, 12, 10, 0.28);
  --sw-font-serif: "Fraunces", Georgia, serif;
  --sw-font-index: "Cormorant Garamond", Georgia, serif;
  --sw-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sw-font-mono: "JetBrains Mono", ui-monospace, monospace;
}

/* --- Typography roles ----------------------------------------------------
   Fraunces 300 · flagship headlines, act titles, pull-quote bridge
   Cormorant Garamond 400 · project index titles
   ------------------------------------------------------------------------- */

body.studio-lovable .ed-selected-work .ed-work-display,
body.studio-lovable .ed-selected-work .ed-csc-read-title,
body.studio-lovable .ed-selected-work .ed-csc-act-title {
  font-family: var(--sw-font-serif);
  font-weight: 300;
}

body.studio-lovable .ed-selected-work .ed-csc-read-bridge {
  font-family: var(--sw-font-serif);
  font-weight: 300;
  font-style: normal;
}

body.studio-lovable .ed-selected-work .ed-work-index-serif,
body.studio-lovable .ed-selected-work .ed-work-index-title,
body.studio-lovable .ed-selected-work .ed-work-serif {
  font-family: var(--sw-font-index);
  font-weight: 400;
  font-style: normal;
}

body.studio-lovable .ed-selected-work .ed-work-serif {
  font-style: normal;
}

body.studio-lovable .ed-selected-work .ed-work-accent {
  color: var(--sw-coral);
  font-style: normal;
}

body.studio-lovable .ed-selected-work .ed-work-intro {
  margin-top: 0.75rem;
}

/* --- CSC flagship -------------------------------------------------------- */

body.studio-lovable .ed-csc-feature {
  margin-top: 2.5rem;
  border-top: 2px solid var(--sw-ink);
  background: var(--sw-cream);
}

body.studio-lovable .ed-csc-read {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-bottom: 2px solid var(--sw-ink);
  background: var(--sw-cream);
}

body.studio-lovable .ed-csc-read-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--sw-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sw-coral);
}

body.studio-lovable .ed-csc-read-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.08;
  color: var(--sw-ink);
}

body.studio-lovable .ed-csc-read-lede {
  margin: 0 0 1rem;
  max-width: 58ch;
  font-family: var(--sw-font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(14, 12, 10, 0.78);
}

body.studio-lovable .ed-csc-read-bridge {
  margin: 0 0 1rem;
  max-width: 58ch;
  font-family: var(--sw-font-serif);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--sw-ink);
}

body.studio-lovable .ed-csc-read-rail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 1.5rem 0 0;
  border: 1px solid var(--sw-ink);
}

body.studio-lovable .ed-csc-read-rail-item {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--sw-ink);
  border-bottom: 1px solid var(--sw-ink);
}

body.studio-lovable .ed-csc-read-rail-item:nth-child(2n) {
  border-right: none;
}

body.studio-lovable .ed-csc-read-rail-item:nth-last-child(-n+2) {
  border-bottom: none;
}

body.studio-lovable .ed-csc-read-rail-item dt {
  margin: 0 0 0.35rem;
  font-family: var(--sw-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-coral);
}

body.studio-lovable .ed-csc-read-rail-item dd {
  margin: 0;
  font-family: var(--sw-font-body);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--sw-ink);
}

body.studio-lovable .ed-csc-masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.25rem clamp(1.25rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--sw-rule-strong);
}

body.studio-lovable .ed-csc-masthead-num,
body.studio-lovable .ed-csc-masthead-url,
body.studio-lovable .ed-csc-masthead-cat {
  margin: 0;
  font-family: var(--sw-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.studio-lovable .ed-csc-masthead-num {
  color: var(--sw-coral);
  margin-bottom: 0.5rem;
}

body.studio-lovable .ed-csc-masthead-title {
  margin: 0;
  font-family: var(--sw-font-index);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 400;
  color: var(--sw-ink);
}

body.studio-lovable .ed-csc-masthead-c {
  text-align: right;
}

body.studio-lovable .ed-csc-masthead-cat {
  margin-top: 0.35rem;
  color: rgba(14, 12, 10, 0.55);
}

body.studio-lovable .ed-csc-act {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border-bottom: 1px solid var(--sw-rule-strong);
  background: var(--sw-cream);
}

body.studio-lovable .ed-csc-act-alt {
  background: #F5F0E6;
}

body.studio-lovable .ed-csc-act-dark {
  background: var(--sw-ink);
  border-bottom: none;
}

body.studio-lovable .ed-csc-act-body {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid var(--sw-rule);
}

body.studio-lovable .ed-csc-act-dark .ed-csc-act-body {
  border-right-color: rgba(250, 246, 239, 0.16);
}

body.studio-lovable .ed-csc-act-num {
  margin: 0 0 0.5rem;
  font-family: var(--sw-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-coral);
}

body.studio-lovable .ed-csc-act-dark .ed-csc-act-num {
  color: var(--sw-cream);
}

body.studio-lovable .ed-csc-act-label {
  margin: 0 0 1rem;
  font-family: var(--sw-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.55);
}

body.studio-lovable .ed-csc-act-dark .ed-csc-act-label {
  color: rgba(250, 246, 239, 0.55);
}

body.studio-lovable .ed-csc-act-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.1;
  color: var(--sw-ink);
}

body.studio-lovable .ed-csc-act-dark .ed-csc-act-title {
  color: var(--sw-cream);
}

body.studio-lovable .ed-csc-act-copy {
  margin: 0;
  max-width: 42ch;
  font-family: var(--sw-font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(14, 12, 10, 0.72);
}

body.studio-lovable .ed-csc-act-dark .ed-csc-act-copy {
  color: rgba(250, 246, 239, 0.72);
}

body.studio-lovable .ed-csc-act-media {
  margin: 0;
  overflow: hidden;
  min-height: 240px;
}

body.studio-lovable .ed-csc-act-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

body.studio-lovable .ed-csc-deep-dive {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(14, 12, 10, 0.1);
  display: flex;
  justify-content: center;
}

body.studio-lovable .ed-csc-deep-dive .ed-btn {
  text-align: center;
  max-width: 52ch;
}

/* --- Project index accordion --------------------------------------------- */

body.studio-lovable .ed-work-index {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 2px solid var(--sw-ink);
}

body.studio-lovable .ed-work-index-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
}

body.studio-lovable .ed-work-index-label {
  margin: 0;
  font-family: var(--sw-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.55);
}

body.studio-lovable .ed-work-index-serif {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.1;
  color: var(--sw-ink);
}

body.studio-lovable .ed-work-index-list {
  border-top: 1px solid rgba(14, 12, 10, 0.1);
}

body.studio-lovable .ed-work-index-item {
  border-bottom: 1px solid rgba(14, 12, 10, 0.1);
}

body.studio-lovable .ed-work-index-item.is-open {
  background: rgba(250, 246, 239, 0.65);
}

body.studio-lovable .ed-work-index-trigger {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
  width: 100%;
  padding: 1.1rem 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: var(--sw-ink);
  font-family: var(--sw-font-body);
  transition: color 0.2s ease;
}

body.studio-lovable .ed-work-index-trigger:hover,
body.studio-lovable .ed-work-index-item.is-open .ed-work-index-trigger {
  color: var(--sw-coral);
}

body.studio-lovable .ed-work-index-num {
  font-family: var(--sw-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--sw-coral);
}

body.studio-lovable .ed-work-index-title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.1;
}

body.studio-lovable .ed-work-index-cat {
  font-family: var(--sw-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.55);
}

body.studio-lovable .ed-work-index-request {
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(14, 12, 10, 0.68);
}

/* View read · editorial rule (not text-decoration) */
body.studio-lovable .ed-work-index-action {
  display: inline-block;
  font-family: var(--sw-font-mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--sw-ink);
  border-bottom: 1px solid var(--sw-ink);
  padding-bottom: 5px;
}

body.studio-lovable .ed-work-index-trigger:hover .ed-work-index-action,
body.studio-lovable .ed-work-index-item.is-open .ed-work-index-action {
  color: var(--sw-coral);
  border-bottom-color: var(--sw-coral);
}

body.studio-lovable .ed-work-index-panel {
  padding: 0 0 1.5rem 2.5rem;
}

body.studio-lovable .ed-work-index-panel[hidden] {
  display: none;
}

body.studio-lovable .ed-work-index-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 0.5rem 0 1.25rem;
  border-top: 1px solid var(--sw-rule);
}

body.studio-lovable .ed-work-index-col h5 {
  margin: 0 0 0.45rem;
  font-family: var(--sw-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-coral);
}

body.studio-lovable .ed-work-index-col p {
  margin: 0;
  max-width: 36ch;
  font-family: var(--sw-font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(14, 12, 10, 0.75);
}

body.studio-lovable .ed-work-index-link {
  margin: 0;
}

body.studio-lovable .ed-work-index-link a {
  display: inline-block;
  font-family: var(--sw-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sw-ink);
  border-bottom: 1px solid var(--sw-coral);
  padding-bottom: 5px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.studio-lovable .ed-work-index-link a:hover {
  color: var(--sw-coral);
}

body.studio-lovable .ed-work-index-status {
  margin: 0;
  font-family: var(--sw-font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.5);
  text-decoration: none;
}

body.studio-lovable .ed-work-index-trigger:focus-visible {
  outline: 2px solid var(--sw-coral);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  body.studio-lovable .ed-csc-read-rail {
    grid-template-columns: repeat(4, 1fr);
  }

  body.studio-lovable .ed-csc-read-rail-item {
    border-right: 1px solid var(--sw-ink);
    border-bottom: none;
  }

  body.studio-lovable .ed-csc-read-rail-item:last-child {
    border-right: none;
  }

  body.studio-lovable .ed-work-index-columns {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 767px) {
  body.studio-lovable .ed-csc-act {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-csc-act-body {
    border-right: none;
    border-bottom: 1px solid var(--sw-rule);
  }

  body.studio-lovable .ed-csc-act-dark .ed-csc-act-body {
    border-bottom-color: rgba(250, 246, 239, 0.16);
  }

  body.studio-lovable .ed-csc-masthead {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-csc-masthead-c {
    text-align: left;
  }

  body.studio-lovable .ed-work-index-trigger {
    grid-template-columns: 2rem 1fr;
    gap: 0.35rem 0.75rem;
  }

  body.studio-lovable .ed-work-index-cat,
  body.studio-lovable .ed-work-index-request {
    grid-column: 2;
  }

  body.studio-lovable .ed-work-index-action {
    grid-column: 2;
    justify-self: start;
  }

  body.studio-lovable .ed-work-index-panel {
    padding-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.studio-lovable .ed-work-index-trigger,
  body.studio-lovable .ed-work-index-link a {
    transition: none;
  }
}

body.studio-lovable .ed-selected-work {
  background: #F5F0E6;
  color: var(--sw-ink);
  padding: var(--ed-section-py) 0;
}

body.studio-lovable .ed-selected-work-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
}

body.studio-lovable .ed-selected-work-head-block {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-work-display {
  font-family: var(--sw-font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.026em;
  color: var(--sw-ink);
  margin: 0 0 clamp(24px, 2.5vw, 40px);
}

body.studio-lovable .ed-work-intro {
  font-family: var(--sw-font-index);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: rgba(14, 12, 10, 0.72);
  margin: 0 0 2.5rem;
  max-width: 52ch;
}

/* --- Diagnostic Belief --------------------------------------------------- */

body.studio-lovable .ed-belief {
  background: var(--sw-cream);
  color: var(--sw-ink);
  padding: clamp(6rem, 8vw, 8rem) 0 var(--ed-section-py);
  border-top: 1px solid var(--sw-rule);
}

body.studio-lovable .ed-belief-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
}

body.studio-lovable .ed-belief-head-block {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-belief-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

body.studio-lovable .ed-depth-column {
  background: #F3EDE3;
  border: 1px solid var(--sw-rule);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
}

body.studio-lovable .ed-depth-column::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--sw-coral);
  border-left: 2px solid var(--sw-coral);
}

body.studio-lovable .ed-depth-column::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 24px;
  height: 24px;
  border-bottom: 2px solid var(--sw-coral);
  border-right: 2px solid var(--sw-coral);
}

body.studio-lovable .ed-depth-surface {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sw-rule);
  margin-bottom: 20px;
}

body.studio-lovable .ed-depth-label {
  display: block;
  margin-bottom: 12px;
  letter-spacing: 0.28em;
  font-size: 0.68rem;
  color: var(--sw-coral);
}

body.studio-lovable .ed-depth-surface-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}

body.studio-lovable .ed-depth-surface-list li {
  font-family: var(--sw-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(14, 12, 10, 0.72);
}

body.studio-lovable .ed-depth-surface-list .ed-mono {
  color: var(--sw-coral);
  margin-right: 8px;
  font-size: 0.68rem;
}

body.studio-lovable .ed-depth-divider {
  padding: 16px 0;
  text-align: center;
  border-bottom: 1px solid var(--sw-rule);
  margin-bottom: 20px;
}

body.studio-lovable .ed-depth-arrow {
  letter-spacing: 0.16em;
  color: rgba(14, 12, 10, 0.55);
}

body.studio-lovable .ed-depth-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.studio-lovable .ed-depth-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dotted var(--sw-rule);
}

body.studio-lovable .ed-depth-list li:last-child {
  border-bottom: none;
}

body.studio-lovable .ed-depth-num {
  font-family: var(--sw-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--sw-coral);
  font-weight: 500;
  padding-top: 4px;
}

body.studio-lovable .ed-depth-list h3 {
  font-family: var(--sw-font-index);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--sw-ink);
  margin: 0 0 4px;
}

body.studio-lovable .ed-depth-list p {
  font-family: var(--sw-font-body);
  font-size: 0.875rem;
  color: rgba(14, 12, 10, 0.65);
  margin: 0;
  line-height: 1.5;
}

body.studio-lovable .ed-depth-footnote {
  margin: 24px 0 0;
  font-family: var(--sw-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.5);
  padding-top: 16px;
  border-top: 1px solid var(--sw-rule);
}

body.studio-lovable .ed-depth-footnote sup {
  color: var(--sw-coral);
  font-weight: 500;
  margin-right: 4px;
}

body.studio-lovable .ed-belief-body {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  min-height: 100%;
}

body.studio-lovable .ed-belief-lens {
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 2px solid var(--sw-coral);
}

body.studio-lovable .ed-belief-lens-display {
  margin: 0 0 clamp(28px, 3.5vw, 40px);
  font-family: var(--sw-font-serif);
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  font-style: normal;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--sw-ink);
  text-wrap: pretty;
}

body.studio-lovable .ed-belief-lens-display .accent-text {
  font-style: normal;
  font-weight: 300;
  color: var(--sw-coral);
}

body.studio-lovable .ed-belief-lens p:not(.ed-belief-lens-display) {
  margin: 0;
  max-width: 46ch;
  font-family: var(--sw-font-body);
  font-size: clamp(1rem, 1.15vw, 1.0625rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.72;
  color: rgba(14, 12, 10, 0.75);
  text-wrap: pretty;
}

body.studio-lovable .ed-belief-lens p:not(.ed-belief-lens-display) + p {
  margin-top: clamp(20px, 2.4vw, 28px);
}

body.studio-lovable .ed-belief-display {
  font-family: var(--sw-font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.026em;
  color: var(--sw-ink);
  margin: 0 0 32px;
}

body.studio-lovable .ed-belief-display .accent-text {
  font-style: normal;
  color: var(--sw-coral);
  font-weight: 300;
}

body.studio-lovable .ed-belief-lede {
  font-family: var(--sw-font-index);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: rgba(14, 12, 10, 0.72);
  margin: 0 0 32px;
  max-width: 52ch;
}

body.studio-lovable .ed-belief-quote {
  font-family: var(--sw-font-serif);
  font-weight: 300;
  font-size: clamp(1.375rem, 2.4vw, 2.125rem);
  line-height: 1.28;
  color: var(--sw-ink);
  margin: auto 0 0;
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 2px solid var(--sw-coral);
  position: relative;
  max-width: 30ch;
}

body.studio-lovable .ed-belief-quote .accent-text {
  font-style: normal;
  color: var(--sw-coral);
}

body.studio-lovable .ed-belief-quote-mark {
  position: absolute;
  left: -8px;
  top: -18px;
  font-family: var(--sw-font-index);
  font-size: 5rem;
  color: var(--sw-coral);
  line-height: 1;
  opacity: 0.7;
}

@media (max-width: 900px) {
  body.studio-lovable .ed-belief-split {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-belief-lens {
    max-width: 52ch;
  }

  body.studio-lovable .ed-belief-quote {
    margin-top: clamp(32px, 5vw, 48px);
  }
}

/* --- Hero & Symptom Explorer (editorial transplant) ----------------------
   Scoped under .ed-hero / .ed-explorer · no studio-lovable class dependencies
   ------------------------------------------------------------------------- */

body.studio-lovable .ed-hero,
body.studio-lovable .ed-explorer,
body.studio-lovable .ed-strategyiq,
body.studio-lovable .ed-rdb,
body.studio-lovable .ed-notes,
body.studio-lovable .ed-arch,
body.studio-lovable .ed-founder,
body.studio-lovable .ed-engage-section,
body.studio-lovable .ed-close,
body.studio-lovable .ed-colophon,
body.studio-lovable .ed-belief,
body.studio-lovable .ed-selected-work {
  --ed-ink: #0E0C0A;
  --ed-cream: #FAF6EF;
  --ed-coral: #F96F6E;
  --ed-coral-dark: #E85A59;
  --ed-ink-soft: rgba(14, 12, 10, 0.62);
  --ed-ink-muted: rgba(14, 12, 10, 0.42);
  --ed-rule: rgba(14, 12, 10, 0.14);
  --ed-rule-strong: rgba(14, 12, 10, 0.28);
  --ed-paper: #F3EDE3;
  --ed-font-serif: "Fraunces", Georgia, serif;
  --ed-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ed-font-index: "Cormorant Garamond", Georgia, serif;
  --ed-font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ed-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ed-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ed-dur: 220ms;
  --ed-page-max: 1280px;
  --ed-gutter: clamp(20px, 4vw, 48px);
  --ed-section-py: clamp(7.5rem, 10vw, 10rem);
}

/* --- Hero ---------------------------------------------------------------- */

body.studio-lovable .ed-hero {
  position: relative;
  min-height: 88vh;
  background: var(--ed-cream);
  padding: clamp(64px, 8vh, 128px) 0 clamp(4.5rem, 6vw, 7rem);
  overflow: hidden;
}

body.studio-lovable .ed-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(14, 12, 10, 0.025) 0.5px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(14, 12, 10, 0.02) 0.5px, transparent 1px);
  background-size: 4px 4px, 5px 5px;
  pointer-events: none;
  opacity: 0.5;
}

body.studio-lovable .ed-hero-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
  position: relative;
}

body.studio-lovable .ed-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ed-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
  margin-bottom: clamp(40px, 5vw, 64px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ed-rule);
}

body.studio-lovable .ed-hero-eyebrow .accent-text {
  font-family: var(--ed-font-index);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.95rem;
  color: var(--ed-coral);
  margin: 0 4px;
}

body.studio-lovable .ed-hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--ed-coral);
  border-radius: 50%;
  flex-shrink: 0;
}

body.studio-lovable .ed-hero-eyebrow-index {
  margin-left: auto;
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ed-coral);
}

body.studio-lovable .ed-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: stretch;
}

body.studio-lovable .ed-hero-type {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.studio-lovable .ed-hero-deck {
  max-width: 42ch;
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.0625rem, 1.4vw, 1.3rem);
  line-height: 1.45;
  color: var(--ed-ink-soft);
  text-wrap: pretty;
}

body.studio-lovable .ed-hero-title {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ed-ink);
  margin: 0 0 clamp(48px, 6vw, 88px);
  max-width: 16ch;
  text-wrap: balance;
}

body.studio-lovable .ed-hero-title .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 300;
}

body.studio-lovable .ed-hero-strike {
  position: relative;
  color: var(--ed-ink-muted);
  font-weight: 300;
}

body.studio-lovable .ed-hero-strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 3px;
  background: var(--ed-coral);
  transform: rotate(-2deg);
  border-radius: 2px;
}

body.studio-lovable .ed-hero-lede {
  padding-top: 32px;
  border-top: 1px solid var(--ed-rule);
  margin-bottom: clamp(36px, 4vw, 48px);
}

body.studio-lovable .ed-hero-profile {
  max-width: 46ch;
}

body.studio-lovable .ed-hero-profile p {
  margin: 0;
  font-family: var(--ed-font-body);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.72;
  color: var(--ed-ink-soft);
  text-wrap: pretty;
}

body.studio-lovable .ed-hero-profile p + p {
  margin-top: clamp(22px, 2.5vw, 30px);
}

body.studio-lovable .ed-hero-drop-cap {
  display: flow-root;
  color: var(--ed-ink);
}

body.studio-lovable .ed-hero-profile .ed-hero-line,
body.studio-lovable .ed-hero-profile .ed-hero-question,
body.studio-lovable .ed-hero-profile .ed-hero-close {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.24;
  letter-spacing: -0.016em;
  color: var(--ed-ink);
}

body.studio-lovable .ed-hero-profile .ed-hero-line {
  margin-top: clamp(26px, 3vw, 34px);
}

/* Deliberate exception to the upright-only rule at the top of this file: this
   line is not narration, it is the sentence organizations actually say when
   they arrive. Italic plus quotes marks it as reported speech. The !important
   is required to outrank the universal reset, not a specificity workaround.
   Quotes live in CSS so both language variants inherit them and the i18n
   strings stay free of markup. */
body.studio-lovable .ed-hero-profile .ed-hero-line,
body.studio-lovable .ed-hero-profile .ed-hero-line::before,
body.studio-lovable .ed-hero-profile .ed-hero-line::after {
  font-style: italic !important;
}

body.studio-lovable .ed-hero-profile .ed-hero-line::before {
  content: "\201C";
}

body.studio-lovable .ed-hero-profile .ed-hero-line::after {
  content: "\201D";
}

body.studio-lovable .ed-hero-profile .ed-hero-question {
  margin-top: clamp(18px, 2vw, 22px);
  color: var(--ed-coral);
}

body.studio-lovable .ed-hero-profile .ed-hero-close {
  margin-top: clamp(30px, 3.5vw, 40px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--ed-rule);
}

body.studio-lovable .ed-hero-drop-cap::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--ed-font-serif);
  font-size: clamp(3.75rem, 5vw, 4.75rem);
  font-style: normal;
  font-weight: 300;
  line-height: 0.74;
  color: #18242F;
}

body.studio-lovable .ed-hero-body {
  max-width: none;
  margin-top: clamp(40px, 4.5vw, 60px);
}

body.studio-lovable .ed-hero-flow {
  column-count: 2;
  column-gap: clamp(40px, 5vw, 80px);
  column-rule: 1px solid var(--ed-rule);
  orphans: 2;
  widows: 2;
}

body.studio-lovable .ed-hero-flow > p:first-child {
  margin-top: 0;
}

body.studio-lovable .ed-hero-ask {
  margin-top: clamp(22px, 2.5vw, 30px);
}

body.studio-lovable .ed-hero-profile .ed-hero-ask + p {
  margin-top: clamp(22px, 2.5vw, 30px);
}

/* Keep the serif emphasis lines and the question pair from splitting across columns. */
body.studio-lovable .ed-hero-flow .ed-hero-line,
body.studio-lovable .ed-hero-flow .ed-hero-ask {
  break-inside: avoid;
}

body.studio-lovable .ed-hero-framework {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: clamp(20px, 2.2vw, 28px);
  border-top: 1px solid var(--ed-ink);
}

body.studio-lovable .ed-hero-framework p {
  margin: 0;
}

body.studio-lovable .ed-hero-fw-item {
  padding-right: clamp(16px, 2vw, 32px);
  border-right: 1px solid var(--ed-rule);
}

body.studio-lovable .ed-hero-fw-item:last-child {
  padding-right: 0;
  border-right: none;
}

body.studio-lovable .ed-hero-fw-num {
  font-family: var(--ed-font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--ed-coral);
}

body.studio-lovable .ed-hero-fw-label {
  margin-top: 6px;
  font-family: var(--ed-font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-ink);
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--ed-rule);
}

body.studio-lovable .ed-hero-fw-desc {
  margin-top: 10px;
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.5;
  color: var(--ed-ink-soft);
  text-wrap: pretty;
}

body.studio-lovable .ed-hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}

@media (max-width: 560px) {
  body.studio-lovable .ed-hero-framework {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.studio-lovable .ed-hero-fw-item {
    padding-right: 0;
    border-right: none;
  }
}

body.studio-lovable .ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--ed-font-cond);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background var(--ed-dur) var(--ed-ease), border-color var(--ed-dur) var(--ed-ease), color var(--ed-dur) var(--ed-ease), transform var(--ed-dur) var(--ed-ease);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

body.studio-lovable .ed-btn-primary {
  background: var(--ed-coral);
  color: var(--ed-cream);
  border-color: var(--ed-coral);
}

body.studio-lovable .ed-btn-primary:hover {
  background: var(--ed-coral-dark);
  border-color: var(--ed-coral-dark);
  transform: translateY(-1px);
}

body.studio-lovable .ed-btn-ghost {
  color: var(--ed-ink);
  border-color: var(--ed-rule-strong);
}

body.studio-lovable .ed-btn-ghost:hover {
  border-color: var(--ed-ink);
  background: var(--ed-ink);
  color: var(--ed-cream);
}

body.studio-lovable .ed-btn-outline {
  color: var(--ed-ink);
  border-color: var(--ed-ink);
  background: transparent;
}

body.studio-lovable .ed-btn-outline:hover {
  background: var(--ed-ink);
  color: var(--ed-cream);
  border-color: var(--ed-ink);
}

body.studio-lovable .ed-btn-large {
  padding: 18px 32px;
  font-size: 0.875rem;
}

body.studio-lovable .ed-rdb .ed-btn-outline {
  color: var(--ed-cream);
  border-color: rgba(250, 246, 239, 0.35);
}

body.studio-lovable .ed-rdb .ed-btn-outline:hover {
  background: var(--ed-cream);
  color: var(--ed-ink);
  border-color: var(--ed-cream);
}

body.studio-lovable .ed-hero-figure {
  margin: 0;
  position: sticky;
  top: clamp(80px, 10vh, 120px);
  align-self: start;
}

body.studio-lovable .ed-hero-figure-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: clamp(18px, 2.8vw, 32px);
  background: var(--ed-paper);
  border: 1px solid rgba(14, 12, 10, 0.1);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(14, 12, 10, 0.14), 0 4px 16px rgba(14, 12, 10, 0.06);
}

body.studio-lovable .ed-hero-figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 36%;
  transform: scale(1.14);
  transform-origin: 44% 36%;
  display: block;
  transition: transform 900ms var(--ed-ease);
}

body.studio-lovable .ed-hero-figure:hover .ed-hero-figure-frame img {
  transform: scale(1.17);
}

body.studio-lovable .ed-hero-figure-corners {
  position: absolute;
  inset: clamp(18px, 2.8vw, 32px);
  pointer-events: none;
  z-index: 2;
}

body.studio-lovable .ed-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--ed-coral);
  border-style: solid;
  border-width: 0;
}

body.studio-lovable .ed-corner-tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
body.studio-lovable .ed-corner-tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
body.studio-lovable .ed-corner-bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
body.studio-lovable .ed-corner-br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

body.studio-lovable .ed-hero-figure-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--ed-rule);
}

body.studio-lovable .ed-hero-figure-caption .ed-mono {
  color: var(--ed-coral);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
}

body.studio-lovable .ed-hero-figure-desc {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ed-ink-soft);
  text-align: right;
}

body.studio-lovable .ed-hero-figure-desc .accent-text {
  font-style: normal;
  color: var(--ed-coral);
}

body.studio-lovable .ed-mono {
  font-family: var(--ed-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.studio-lovable .ed-hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ed-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.4);
}

body.studio-lovable .ed-hero-cue-line {
  width: 40px;
  height: 1px;
  background: var(--ed-rule-strong);
  position: relative;
  overflow: hidden;
}

body.studio-lovable .ed-hero-cue-line::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--ed-coral);
  animation: ed-cue-flow 2.4s var(--ed-ease) infinite;
}

@keyframes ed-cue-flow {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* --- Symptom Explorer ---------------------------------------------------- */

body.studio-lovable .ed-explorer {
  background: var(--ed-paper);
  color: var(--ed-ink);
  padding: var(--ed-section-py) 0;
}

body.studio-lovable .ed-explorer-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
}

body.studio-lovable .ed-explorer-head-block {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-section-marker {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ed-rule);
}

body.studio-lovable .ed-marker-num {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ed-coral);
}

body.studio-lovable .ed-marker-rule {
  flex: 1;
  height: 1px;
  background: var(--ed-rule);
  max-width: 240px;
}

body.studio-lovable .ed-marker-label {
  font-family: var(--ed-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
}

body.studio-lovable .ed-explorer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-explorer-display {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.026em;
  color: var(--ed-ink);
  margin: 0;
  text-wrap: balance;
}

body.studio-lovable .ed-explorer-display .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 300;
}

body.studio-lovable .ed-explorer-lede {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ed-ink-soft);
  max-width: 52ch;
  margin: 0;
  padding-bottom: 12px;
}

body.studio-lovable .ed-explorer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  gap: 0;
  border-top: 1px solid var(--ed-rule-strong);
  border-bottom: 1px solid var(--ed-rule-strong);
}

body.studio-lovable .ed-explorer-index {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--ed-rule);
}

body.studio-lovable .ed-explorer-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px 32px 24px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ed-rule);
  text-align: left;
  cursor: pointer;
  color: rgba(14, 12, 10, 0.55);
  transition: color var(--ed-dur) var(--ed-ease);
  position: relative;
  font: inherit;
}

body.studio-lovable .ed-explorer-tab:last-child {
  border-bottom: none;
}

body.studio-lovable .ed-explorer-tab .ed-mono {
  font-size: 0.68rem;
  color: rgba(14, 12, 10, 0.4);
  transition: color var(--ed-dur) var(--ed-ease);
}

body.studio-lovable .ed-explorer-tab-title {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  color: rgba(14, 12, 10, 0.55);
  letter-spacing: -0.01em;
  transition: color var(--ed-dur) var(--ed-ease);
}

body.studio-lovable .ed-explorer-tab:hover .ed-explorer-tab-title {
  color: var(--ed-ink);
}

body.studio-lovable .ed-explorer-tab:hover .ed-mono {
  color: var(--ed-coral);
}

body.studio-lovable .ed-explorer-tab.is-active .ed-explorer-tab-title,
body.studio-lovable .ed-explorer-tab[aria-selected="true"] .ed-explorer-tab-title {
  color: var(--ed-ink);
}

body.studio-lovable .ed-explorer-tab.is-active .ed-mono,
body.studio-lovable .ed-explorer-tab[aria-selected="true"] .ed-mono {
  color: var(--ed-coral);
}

body.studio-lovable .ed-explorer-tab.is-active::after,
body.studio-lovable .ed-explorer-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--ed-coral);
  border-radius: 50%;
}

body.studio-lovable .ed-explorer-tab:focus-visible {
  outline: 2px solid var(--ed-coral);
  outline-offset: 2px;
}

body.studio-lovable .ed-explorer-panel {
  padding: clamp(32px, 4vw, 56px);
  background: var(--ed-cream);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
}

body.studio-lovable .ed-explorer-panel-label {
  font-family: var(--ed-font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ed-coral);
  margin: 0 0 20px;
}

body.studio-lovable .ed-explorer-conditions {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.studio-lovable .ed-explorer-conditions li {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--ed-ink);
  padding: 12px 0;
  border-bottom: 1px dotted var(--ed-rule);
  position: relative;
  padding-left: 32px;
}

body.studio-lovable .ed-explorer-conditions li:last-child {
  border-bottom: none;
}

body.studio-lovable .ed-explorer-conditions li::before {
  content: "·";
  position: absolute;
  left: 8px;
  color: var(--ed-coral);
  font-family: var(--ed-font-mono);
  font-weight: 500;
}

body.studio-lovable .ed-explorer-panel-read {
  position: relative;
}

body.studio-lovable .ed-explorer-read-rail {
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 1px solid var(--ed-rule);
  position: relative;
}

body.studio-lovable .ed-explorer-read-rail::before {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 40px;
  background: var(--ed-coral);
}

body.studio-lovable .ed-explorer-read-label {
  color: var(--ed-coral);
  margin: 0 0 16px;
}

body.studio-lovable .ed-explorer-interpretation {
  font-family: var(--ed-font-serif);
  font-style: normal;
  font-weight: 300;
  font-size: clamp(1.25rem, 1.7vw, 1.625rem);
  line-height: 1.4;
  color: var(--ed-ink);
  margin: 0;
}

body.studio-lovable .ed-explorer-close {
  margin-top: clamp(56px, 6vw, 80px);
  text-align: center;
}

body.studio-lovable .ed-explorer-close-text {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  line-height: 1.3;
  color: var(--ed-ink);
  max-width: 40ch;
  margin: 0 auto;
}

body.studio-lovable .ed-explorer-close-text .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 400;
}

@media (max-width: 900px) {
  body.studio-lovable .ed-hero-grid {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-hero-figure {
    position: static;
  }

  body.studio-lovable .ed-hero-cta-row {
    margin-top: 0;
  }

  body.studio-lovable .ed-hero-flow {
    column-count: 1;
    column-rule: none;
  }

  body.studio-lovable .ed-hero-profile,
  body.studio-lovable .ed-hero-lede {
    max-width: 58ch;
  }

  body.studio-lovable .ed-explorer-intro {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-explorer-layout {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-explorer-index {
    border-right: none;
    border-bottom: 1px solid var(--ed-rule);
  }

  body.studio-lovable .ed-explorer-panel {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-explorer-panel-read {
    padding-top: 24px;
    border-top: 1px solid var(--ed-rule);
  }

  body.studio-lovable .ed-explorer-read-rail {
    padding-left: 0;
    border-left: none;
  }

  body.studio-lovable .ed-explorer-read-rail::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.studio-lovable .ed-hero-figure-frame img,
  body.studio-lovable .ed-btn,
  body.studio-lovable .ed-explorer-tab {
    transition: none;
  }

  body.studio-lovable .ed-hero-cue-line::after {
    animation: none;
  }
}

/* --- StrategyIQ + Readout Artifact --------------------------------------- */

body.studio-lovable .ed-strategyiq {
  background: var(--ed-cream);
  color: var(--ed-ink);
  padding: var(--ed-section-py) 0;
}

body.studio-lovable .ed-strategyiq-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
}

body.studio-lovable .ed-strategyiq-head-block {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-strategyiq-intro {
  margin-bottom: clamp(40px, 4vw, 56px);
  max-width: 52ch;
}

body.studio-lovable .ed-strategyiq-display {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.026em;
  color: var(--ed-ink);
  margin: 0 0 clamp(24px, 2.5vw, 40px);
  text-wrap: balance;
}

body.studio-lovable .ed-strategyiq-display .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 300;
}

body.studio-lovable .ed-strategyiq-lede {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ed-ink-soft);
  margin: 0;
  max-width: 60ch;
}

body.studio-lovable .ed-strategyiq-stage {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

body.studio-lovable .ed-strategyiq-stage-visual {
  grid-template-columns: 1fr;
  gap: clamp(28px, 3vw, 40px);
}

body.studio-lovable .ed-strategyiq-visual {
  margin: 0;
  width: 100%;
  line-height: 0;
}

body.studio-lovable .ed-strategyiq-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

body.studio-lovable .ed-strategyiq-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 28px);
  max-width: 56rem;
}

body.studio-lovable .ed-strategyiq-cta .ed-readout-bridge {
  margin: 0;
  flex: 1 1 18rem;
}

body.studio-lovable .ed-strategyiq-rail {
  position: sticky;
  top: clamp(80px, 10vh, 120px);
  padding-top: clamp(24px, 3vw, 40px);
}

body.studio-lovable .ed-strategyiq-rail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--ed-rule);
}

body.studio-lovable .ed-strategyiq-rail-list li {
  padding: 0;
  border-bottom: 1px dotted rgba(14, 12, 10, 0.1);
  position: relative;
}

body.studio-lovable .ed-strategyiq-rail-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  padding: 14px 0 14px 20px;
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  line-height: 1.3;
  color: #0E0C0A;
  text-decoration: none;
  transition: color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.studio-lovable .ed-strategyiq-rail-link:hover {
  color: #F96F6E;
}

body.studio-lovable .ed-strategyiq-rail-link .ed-mono {
  font-size: 0.62rem;
  color: rgba(14, 12, 10, 0.4);
  transition: color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.studio-lovable .ed-strategyiq-rail-list li.is-active .ed-strategyiq-rail-link {
  color: #F96F6E;
}

body.studio-lovable .ed-strategyiq-rail-list li.is-active .ed-mono {
  color: #F96F6E;
}

body.studio-lovable .ed-strategyiq-rail-list li:last-child {
  border-bottom: none;
}

body.studio-lovable [data-strategyiq-section] {
  scroll-margin-top: clamp(80px, 10vh, 120px);
}

body.studio-lovable .ed-strategyiq-rail-list li.is-active::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 24px;
  background: #F96F6E;
}

body.studio-lovable .ed-readout-artifact {
  margin: 0;
  background: var(--ed-cream);
  border: 1px solid var(--ed-rule-strong);
  position: relative;
  box-shadow:
    0 24px 64px rgba(14, 12, 10, 0.08),
    0 4px 12px rgba(14, 12, 10, 0.04),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

body.studio-lovable .ed-readout-artifact::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 32px;
  right: 32px;
  height: 4px;
  background: var(--ed-coral);
}

body.studio-lovable .ed-readout-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 32px;
  padding: clamp(24px, 3vw, 40px);
  padding-bottom: clamp(20px, 2.5vw, 32px);
  border-bottom: 1px solid var(--ed-rule);
}

body.studio-lovable .ed-readout-brand {
  font-family: var(--ed-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ed-ink);
  margin: 0 0 8px;
}

body.studio-lovable .ed-readout-brand .ed-mono {
  color: var(--ed-coral);
  margin-left: 8px;
  letter-spacing: 0.12em;
}

body.studio-lovable .ed-readout-subtitle {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-style: normal;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  color: var(--ed-ink);
  margin: 0;
  letter-spacing: -0.01em;
}

body.studio-lovable .ed-readout-subtitle .accent-text {
  color: #F96F6E;
  font-style: normal !important;
  font-weight: 300;
  font-family: inherit;
}

body.studio-lovable .ed-readout-head-r {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.studio-lovable .ed-readout-head-r p {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(14, 12, 10, 0.55);
  letter-spacing: 0.12em;
  text-transform: none;
}

body.studio-lovable .ed-readout-high {
  color: #4a8b5b;
  font-weight: 500;
  font-family: var(--ed-font-index);
  letter-spacing: 0;
  text-transform: none;
}

body.studio-lovable .ed-readout-pattern {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 2.5vw, 32px);
  align-items: center;
  padding: clamp(20px, 2.5vw, 32px) clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--ed-rule);
  background: rgba(249, 111, 110, 0.04);
}

body.studio-lovable .ed-readout-glyph {
  width: clamp(48px, 5vw, 72px);
  aspect-ratio: 1;
  color: var(--ed-coral);
  display: flex;
  align-items: center;
  justify-content: center;
}

body.studio-lovable .ed-readout-glyph svg {
  width: 100%;
  height: 100%;
}

body.studio-lovable .ed-readout-pattern-label {
  margin: 0 0 6px;
  letter-spacing: 0.32em;
  font-size: 0.62rem;
}

body.studio-lovable .ed-readout-pattern-title {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.05;
  color: var(--ed-ink);
  margin: 0;
  letter-spacing: -0.015em;
}

body.studio-lovable .ed-readout-pattern-sub {
  color: var(--ed-ink-soft);
  font-size: 0.7em;
}

body.studio-lovable .ed-readout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

body.studio-lovable .ed-readout-cell {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid rgba(14, 12, 10, 0.1);
  border-bottom: 1px solid rgba(14, 12, 10, 0.1);
}

body.studio-lovable .ed-readout-cell:nth-child(2n) {
  border-right: none;
}

body.studio-lovable .ed-readout-cell-wide,
body.studio-lovable .ed-readout-cell-full {
  grid-column: 1 / -1;
  border-right: none;
}

body.studio-lovable .ed-readout-cell-label {
  font-family: var(--ed-font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ed-coral);
  margin: 0 0 16px;
}

body.studio-lovable .ed-readout-cell-headline {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  line-height: 1.3;
  color: var(--ed-ink);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

body.studio-lovable .ed-readout-cell-body {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(0.9375rem, 1.15vw, 1.125rem);
  line-height: 1.55;
  color: var(--ed-ink-soft);
  margin: 0;
  max-width: 62ch;
}

body.studio-lovable .ed-readout-cell-headline .accent-text,
body.studio-lovable .ed-readout-cell-body .accent-text,
body.studio-lovable .ed-readout-week .accent-text,
body.studio-lovable .ed-readout-avoid .accent-text,
body.studio-lovable .ed-readout-bridge .accent-text {
  color: #F96F6E;
  font-style: normal !important;
  font-weight: 400;
  font-synthesis: none;
}

body.studio-lovable .ed-readout-move {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
}

body.studio-lovable .ed-readout-move li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--ed-rule);
}

body.studio-lovable .ed-readout-move li .ed-mono {
  color: var(--ed-coral);
  font-size: 0.68rem;
  padding-top: 3px;
}

body.studio-lovable .ed-readout-move-head {
  font-family: var(--ed-font-index);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--ed-ink);
  margin: 0 0 4px;
}

body.studio-lovable .ed-readout-move-sub {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ed-ink-soft);
  margin: 0;
  line-height: 1.45;
}

body.studio-lovable .ed-readout-week {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 0;
}

body.studio-lovable .ed-readout-week li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--ed-rule);
}

body.studio-lovable .ed-readout-day {
  color: var(--ed-coral);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  font-weight: 500;
}

body.studio-lovable .ed-readout-week p {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ed-ink-soft);
  margin: 0;
}

body.studio-lovable .ed-readout-avoid {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

body.studio-lovable .ed-readout-avoid li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--ed-rule);
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ed-ink-soft);
}

body.studio-lovable .ed-readout-avoid li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 12px;
  font-family: var(--ed-font-mono);
  font-weight: 500;
  color: var(--ed-coral);
  font-size: 1rem;
}

body.studio-lovable .ed-readout-foot {
  padding: clamp(20px, 2.5vw, 32px) clamp(24px, 3vw, 40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--ed-rule);
  background: var(--ed-cream);
}

body.studio-lovable .ed-readout-bridge {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: 0.875rem;
  color: rgba(14, 12, 10, 0.7);
  margin: 0;
  letter-spacing: 0.02em;
  max-width: 42ch;
  line-height: 1.5;
}

/* --- Read · Direct · Build (dark anchor) ---------------------------------- */

body.studio-lovable .ed-rdb {
  background: var(--ed-ink);
  color: var(--ed-cream);
  padding: var(--ed-section-py) 0;
}

body.studio-lovable .ed-rdb-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
}

body.studio-lovable .ed-rdb-head-block {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-section-marker-dark {
  border-bottom-color: rgba(250, 246, 239, 0.14);
}

body.studio-lovable .ed-section-marker-dark .ed-marker-num {
  color: var(--ed-coral);
}

body.studio-lovable .ed-section-marker-dark .ed-marker-rule {
  background: rgba(250, 246, 239, 0.14);
}

body.studio-lovable .ed-section-marker-dark .ed-marker-label {
  color: rgba(250, 246, 239, 0.72);
}

body.studio-lovable .ed-rdb-head {
  text-align: center;
  margin-bottom: clamp(56px, 6vw, 96px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

body.studio-lovable .ed-rdb-eyebrow {
  color: var(--ed-coral);
  margin: 0 0 24px;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
}

body.studio-lovable .ed-rdb-display {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.026em;
  color: var(--ed-cream);
  margin: 0 0 24px;
  text-wrap: balance;
}

body.studio-lovable .ed-rdb-lede {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: rgba(250, 246, 239, 0.72);
  margin: 0 auto;
  max-width: 52ch;
}

body.studio-lovable .ed-rdb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(250, 246, 239, 0.18);
  border-bottom: 1px solid rgba(250, 246, 239, 0.18);
}

body.studio-lovable .ed-rdb-col {
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
  border-right: 1px solid rgba(250, 246, 239, 0.12);
  position: relative;
}

body.studio-lovable .ed-rdb-col:last-child {
  border-right: none;
}

body.studio-lovable .ed-rdb-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(250, 246, 239, 0.12);
}

body.studio-lovable .ed-rdb-num {
  color: var(--ed-coral);
  font-size: 0.68rem;
  margin: 0;
  letter-spacing: 0.12em;
}

body.studio-lovable .ed-rdb-tick {
  width: 8px;
  height: 8px;
  background: var(--ed-coral);
  border-radius: 50%;
}

body.studio-lovable .ed-rdb-title {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1;
  color: var(--ed-cream);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

body.studio-lovable .ed-rdb-body {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: rgba(250, 246, 239, 0.72);
  margin: 0 0 40px;
}

body.studio-lovable .ed-rdb-visual {
  position: relative;
  height: 200px;
  margin-top: 32px;
  padding: 16px;
  background: rgba(250, 246, 239, 0.03);
  border: 1px solid rgba(250, 246, 239, 0.12);
}

body.studio-lovable .ed-rdb-visual-label {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  color: rgba(250, 246, 239, 0.4);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  margin: 0;
}

body.studio-lovable .ed-signal-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(250, 246, 239, 0.4);
  border-radius: 50%;
}

body.studio-lovable .ed-signal-strong {
  width: 10px;
  height: 10px;
  background: var(--ed-coral);
  box-shadow: 0 0 0 4px rgba(249, 111, 110, 0.15);
}

body.studio-lovable .ed-signal-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: rgba(249, 111, 110, 0.35);
  stroke-width: 0.3;
  fill: none;
}

body.studio-lovable .ed-rdb-priority {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}

body.studio-lovable .ed-priority-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.studio-lovable .ed-priority-bar {
  height: 8px;
  background: rgba(250, 246, 239, 0.15);
  flex: 1;
  max-width: 60%;
}

body.studio-lovable .ed-priority-bar-active {
  background: var(--ed-coral);
  box-shadow: 0 0 0 3px rgba(249, 111, 110, 0.2);
}

body.studio-lovable .ed-priority-tag {
  color: rgba(250, 246, 239, 0.55);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  min-width: 60px;
}

body.studio-lovable .ed-priority-active .ed-priority-tag {
  color: var(--ed-coral);
}

body.studio-lovable .ed-rdb-build {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  padding: 16px;
}

body.studio-lovable .ed-build-block {
  background: rgba(250, 246, 239, 0.08);
  border: 1px solid rgba(250, 246, 239, 0.18);
  min-height: 40px;
}

body.studio-lovable .ed-build-block-1 {
  grid-column: 1 / 3;
}

body.studio-lovable .ed-build-block-2 {
  background: var(--ed-coral);
  border-color: var(--ed-coral);
}

body.studio-lovable .ed-build-block-3 {
  grid-column: 2 / 4;
  background: rgba(250, 246, 239, 0.14);
}

body.studio-lovable .ed-build-block-4 {
  grid-column: 1 / 2;
}

body.studio-lovable .ed-rdb-close {
  margin-top: clamp(56px, 6vw, 88px);
  text-align: center;
}

body.studio-lovable .ed-rdb-close-text {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  line-height: 1.3;
  color: var(--ed-cream);
  max-width: 40ch;
  margin: 0 auto;
}

body.studio-lovable .ed-rdb-close-text .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 400;
}

@media (max-width: 900px) {
  body.studio-lovable .ed-strategyiq-stage {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-strategyiq-rail {
    position: static;
    padding-top: 0;
  }

  body.studio-lovable .ed-strategyiq-rail-list {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    border-top: 2px solid var(--ed-rule);
    gap: 0;
  }

  body.studio-lovable .ed-strategyiq-rail-list li {
    flex: 1 1 50%;
    padding: 0;
    border-bottom: none;
  }

  body.studio-lovable .ed-strategyiq-rail-link {
    padding: 12px 16px 12px 0;
  }

  body.studio-lovable .ed-strategyiq-rail-list li.is-active::before {
    display: none;
  }

  body.studio-lovable .ed-readout-head {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-readout-head-r {
    text-align: left;
  }

  body.studio-lovable .ed-readout-grid {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-readout-cell {
    border-right: none !important;
  }

  body.studio-lovable .ed-readout-move {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-readout-pattern {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-rdb-grid {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-rdb-col {
    border-right: none;
    border-bottom: 1px solid rgba(250, 246, 239, 0.12);
  }

  body.studio-lovable .ed-rdb-col:last-child {
    border-bottom: none;
  }
}

@media (max-width: 700px) {
  body.studio-lovable .ed-strategyiq-rail-list li {
    flex: 1 1 100%;
  }
}

/* --- Strategist Notes ---------------------------------------------------- */

body.studio-lovable .ed-notes {
  background: var(--ed-cream);
  color: var(--ed-ink);
  padding: var(--ed-section-py) 0;
}

body.studio-lovable .ed-notes-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
}

body.studio-lovable .ed-notes-head-block {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-notes-intro {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-notes-display {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.026em;
  color: var(--ed-ink);
  margin: 0;
  text-wrap: balance;
}

body.studio-lovable .ed-notes-display .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 300;
}

body.studio-lovable .ed-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 2px solid var(--ed-ink);
  border-bottom: 2px solid var(--ed-ink);
}

body.studio-lovable .ed-notes-card {
  padding: clamp(32px, 4vw, 56px);
  border-right: 1px solid var(--ed-rule);
  border-bottom: 1px solid var(--ed-rule);
  transition: background var(--ed-dur) var(--ed-ease);
}

body.studio-lovable .ed-notes-card:nth-child(2n) {
  border-right: none;
}

body.studio-lovable .ed-notes-card:nth-last-child(-n+2) {
  border-bottom: none;
}

body.studio-lovable .ed-notes-card:hover {
  background: rgba(249, 111, 110, 0.03);
}

body.studio-lovable .ed-notes-title {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  line-height: 1.2;
  color: var(--ed-ink);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}

body.studio-lovable .ed-notes-title .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 300;
}

body.studio-lovable .ed-notes-body {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ed-ink-soft);
  margin: 0;
  max-width: 46ch;
}

/* --- Architecture First -------------------------------------------------- */

body.studio-lovable .ed-arch {
  background: var(--ed-cream);
  color: var(--ed-ink);
  padding: var(--ed-section-py) 0;
}

body.studio-lovable .ed-arch-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
}

body.studio-lovable .ed-arch-head-block {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-arch-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

body.studio-lovable .ed-arch-body {
  max-width: 40ch;
}

body.studio-lovable .ed-arch-display {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.026em;
  color: var(--ed-ink);
  margin: 0 0 24px;
}

body.studio-lovable .ed-arch-display .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 300;
}

body.studio-lovable .ed-arch-lede {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ed-ink-soft);
  margin: 0 0 32px;
}

body.studio-lovable .ed-arch-quote {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.375rem, 2.4vw, 2.125rem);
  line-height: 1.28;
  color: var(--ed-ink);
  margin: 0;
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 2px solid var(--ed-coral);
  position: relative;
  max-width: 30ch;
}

body.studio-lovable .ed-arch-quote .accent-text {
  font-style: normal;
  color: var(--ed-coral);
}

body.studio-lovable .ed-arch-quote-mark {
  position: absolute;
  left: -8px;
  top: -18px;
  font-family: var(--ed-font-index);
  font-size: 5rem;
  color: var(--ed-coral);
  line-height: 1;
  opacity: 0.7;
}

body.studio-lovable .ed-arch-diagram {
  background: var(--ed-paper);
  border: 1px solid var(--ed-rule);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
}

body.studio-lovable .ed-arch-diagram::before {
  content: "Fig. III · Architecture below surface";
  position: absolute;
  top: -14px;
  left: 24px;
  background: var(--ed-cream);
  padding: 0 12px;
  font-family: var(--ed-font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ed-ink-soft);
}

body.studio-lovable .ed-arch-layer {
  padding: 20px 0;
}

body.studio-lovable .ed-arch-layer-label {
  color: var(--ed-coral);
  margin: 0 0 12px;
  letter-spacing: 0.28em;
  font-size: 0.68rem;
}

body.studio-lovable .ed-arch-layer-caption {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--ed-ink-soft);
  margin: 12px 0 0;
}

body.studio-lovable .ed-arch-layer-blocks {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  height: 60px;
}

body.studio-lovable .ed-arch-layer-blocks span {
  background: var(--ed-cream);
  border: 1px solid var(--ed-rule);
  display: block;
}

body.studio-lovable .ed-arch-layer-blocks span:first-child {
  background: var(--ed-coral);
  border-color: var(--ed-coral);
}

body.studio-lovable .ed-arch-layer-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

body.studio-lovable .ed-arch-divider-line {
  flex: 1;
  height: 1px;
  background: var(--ed-rule-strong);
}

body.studio-lovable .ed-arch-divider-label {
  font-size: 0.625rem;
  color: var(--ed-ink-soft);
  letter-spacing: 0.16em;
}

body.studio-lovable .ed-arch-wire {
  position: relative;
  height: 100px;
  border: 1px dashed var(--ed-rule-strong);
  background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(14, 12, 10, 0.02) 8px 9px);
}

body.studio-lovable .ed-wire-node {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--ed-ink);
  border-radius: 50%;
}

body.studio-lovable .ed-wire-node:nth-child(1) { top: 20%; left: 15%; }
body.studio-lovable .ed-wire-node:nth-child(2) { top: 20%; left: 50%; }
body.studio-lovable .ed-wire-node:nth-child(3) { top: 20%; left: 85%; }
body.studio-lovable .ed-wire-node:nth-child(4) { top: 75%; left: 15%; }
body.studio-lovable .ed-wire-node:nth-child(5) { top: 75%; left: 50%; }
body.studio-lovable .ed-wire-node:nth-child(6) { top: 75%; left: 85%; }

body.studio-lovable .ed-arch-wire svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: var(--ed-coral);
  stroke-width: 0.4;
  fill: none;
}

/* --- Founder ------------------------------------------------------------- */

body.studio-lovable .ed-founder {
  background: var(--ed-paper);
  color: var(--ed-ink);
  padding: var(--ed-section-py) 0;
}

body.studio-lovable .ed-founder-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
}

body.studio-lovable .ed-founder-head-block {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

body.studio-lovable .ed-founder-display {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.026em;
  color: var(--ed-ink);
  margin: 0 0 24px;
}

body.studio-lovable .ed-founder-display .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 300;
}

body.studio-lovable .ed-founder-quote {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.75rem);
  line-height: 1.28;
  color: var(--ed-ink);
  margin: 0;
  padding-left: clamp(24px, 3vw, 40px);
  border-left: 2px solid var(--ed-coral);
  position: relative;
  max-width: 32ch;
}

body.studio-lovable .ed-founder-quote .accent-text {
  font-style: normal;
  color: var(--ed-coral);
}

body.studio-lovable .ed-founder-quote-mark {
  position: absolute;
  left: -8px;
  top: -18px;
  font-family: var(--ed-font-index);
  font-size: 5rem;
  color: var(--ed-coral);
  line-height: 1;
  opacity: 0.7;
}

body.studio-lovable .ed-founder-portrait {
  margin: 0;
}

body.studio-lovable .ed-portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ed-ink);
  overflow: hidden;
}

body.studio-lovable .ed-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.studio-lovable .ed-portrait-corners {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 2;
}

body.studio-lovable .ed-portrait-caption {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--ed-rule);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

body.studio-lovable .ed-portrait-caption p {
  margin: 0;
  font-family: var(--ed-font-index);
  font-size: 0.875rem;
  color: var(--ed-ink-soft);
}

body.studio-lovable .ed-portrait-caption .ed-mono {
  color: var(--ed-coral);
  font-size: 0.625rem;
}

body.studio-lovable .ed-portrait-caption strong {
  font-family: var(--ed-font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ed-ink);
}

body.studio-lovable .ed-portrait-caption .accent-text {
  font-family: var(--ed-font-index);
  font-style: normal;
  color: var(--ed-coral);
}

body.studio-lovable .ed-founder-body {
  padding-top: 8px;
}

body.studio-lovable .ed-founder-lede {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ed-ink-soft);
  margin: 0 0 32px;
}

body.studio-lovable .ed-founder-roles {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--ed-rule);
}

body.studio-lovable .ed-founder-roles li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px dotted var(--ed-rule);
}

body.studio-lovable .ed-founder-roles li:last-child {
  border-bottom: none;
}

body.studio-lovable .ed-founder-roles .ed-mono {
  color: var(--ed-coral);
  font-size: 0.68rem;
}

body.studio-lovable .ed-founder-roles p {
  font-family: var(--ed-font-index);
  font-size: 1.125rem;
  color: var(--ed-ink-soft);
  margin: 0;
}

body.studio-lovable .ed-founder-roles strong {
  font-family: var(--ed-font-index);
  font-weight: 500;
  color: var(--ed-ink);
  font-style: normal;
}

/* --- Engagement ---------------------------------------------------------- */

body.studio-lovable .ed-engage-section {
  background: var(--ed-cream);
  color: var(--ed-ink);
  padding: var(--ed-section-py) 0;
}

body.studio-lovable .ed-engage-section-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
}

body.studio-lovable .ed-engage-head-block {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-engage-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-engage-display {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 0.94;
  letter-spacing: -0.026em;
  color: var(--ed-ink);
  margin: 0;
  text-wrap: balance;
}

body.studio-lovable .ed-engage-display .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 300;
}

body.studio-lovable .ed-engage-lede {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ed-ink-soft);
  margin: 0;
  padding-bottom: 12px;
}

body.studio-lovable .ed-engage {
  display: none;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  border-top: 2px solid var(--ed-ink);
}

body.studio-lovable .ed-engage-index {
  display: flex;
  flex-direction: column;
}

body.studio-lovable .ed-engage-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 4px 16px;
  align-items: baseline;
  width: 100%;
  text-align: left;
  padding: 24px 24px 24px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ed-rule);
  cursor: pointer;
  font: inherit;
  color: var(--ed-ink-soft);
  transition: color var(--ed-dur) var(--ed-ease);
  position: relative;
}

body.studio-lovable .ed-engage-tab:last-child {
  border-bottom: none;
}

body.studio-lovable .ed-engage-tab-num {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 0.68rem;
  color: rgba(14, 12, 10, 0.4);
}

body.studio-lovable .ed-engage-tab-title {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  color: rgba(14, 12, 10, 0.55);
  letter-spacing: -0.01em;
}

body.studio-lovable .ed-engage-tab-tag {
  font-size: 0.62rem;
  color: rgba(14, 12, 10, 0.45);
  letter-spacing: 0.14em;
}

body.studio-lovable .ed-engage-tab:hover .ed-engage-tab-title {
  color: var(--ed-ink);
}

body.studio-lovable .ed-engage-tab.is-active .ed-engage-tab-title,
body.studio-lovable .ed-engage-tab[aria-selected="true"] .ed-engage-tab-title {
  color: var(--ed-coral);
}

body.studio-lovable .ed-engage-tab.is-active .ed-engage-tab-num,
body.studio-lovable .ed-engage-tab[aria-selected="true"] .ed-engage-tab-num {
  color: var(--ed-coral);
}

body.studio-lovable .ed-engage-tab.is-active::after,
body.studio-lovable .ed-engage-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--ed-coral);
  border-radius: 50%;
}

body.studio-lovable .ed-engage-tab:focus-visible {
  outline: 2px solid var(--ed-coral);
  outline-offset: 2px;
}

body.studio-lovable .ed-engage-panels {
  padding: clamp(24px, 3vw, 40px);
  background: var(--ed-paper);
  border: 1px solid var(--ed-rule);
}

body.studio-lovable .ed-engage-panel[hidden] {
  display: none;
}

html.js-enabled body.studio-lovable .ed-engage .ed-engage-panel:not(.is-active) {
  display: none;
}

html.js-enabled body.studio-lovable .ed-engage .ed-engage-panel.is-active {
  display: block;
}

body.studio-lovable .ed-engage-panel-label {
  color: var(--ed-coral);
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
}

body.studio-lovable .ed-engage-panel-title {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--ed-ink);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

body.studio-lovable .ed-engage-quote {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.375rem, 2vw, 1.875rem);
  line-height: 1.35;
  color: var(--ed-ink);
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 2px solid var(--ed-coral);
  max-width: 40ch;
}

body.studio-lovable .ed-engage-quote .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 400;
}

body.studio-lovable .ed-accordion {
  display: block;
  border-top: 2px solid var(--ed-ink);
}

body.studio-lovable .ed-acc-item {
  border-bottom: 1px solid var(--ed-rule-strong);
}

body.studio-lovable .ed-acc-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: clamp(20px, 3vw, 32px) 0;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

body.studio-lovable .ed-acc-num {
  color: var(--ed-coral);
  font-size: 0.68rem;
}

body.studio-lovable .ed-acc-title {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1;
  color: var(--ed-ink);
  letter-spacing: -0.02em;
}

body.studio-lovable .ed-acc-toggle {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: 1.75rem;
  color: var(--ed-coral);
  line-height: 1;
}

body.studio-lovable .ed-acc-trigger[aria-expanded="true"] .ed-acc-toggle {
  transform: rotate(45deg);
}

body.studio-lovable .ed-acc-trigger:focus-visible {
  outline: 2px solid var(--ed-coral);
  outline-offset: 2px;
}

body.studio-lovable .ed-acc-panel {
  padding: 0 0 clamp(24px, 3vw, 40px) 56px;
  display: grid;
  gap: 20px;
}

body.studio-lovable .ed-acc-panel[hidden] {
  display: none;
}

body.studio-lovable .ed-acc-panel .ed-engage-quote {
  margin-bottom: 0;
}

/* --- Final CTA ----------------------------------------------------------- */

body.studio-lovable .ed-close {
  background: var(--ed-ink);
  color: var(--ed-cream);
  padding: clamp(5.5rem, 12vh, 11rem) 0;
}

body.studio-lovable .ed-close-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
}

body.studio-lovable .ed-close-head-block {
  margin-bottom: clamp(48px, 5vw, 72px);
}

body.studio-lovable .ed-close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: end;
}

body.studio-lovable .ed-close-title {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 6.75rem);
  line-height: 0.95;
  letter-spacing: -0.028em;
  color: var(--ed-cream);
  margin: 0 0 32px;
}

body.studio-lovable .ed-close-title .accent-text {
  font-style: normal;
  color: var(--ed-coral);
  font-weight: 300;
}

body.studio-lovable .ed-close-quote {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.125rem, 1.4vw, 1.375rem);
  line-height: 1.5;
  color: rgba(250, 246, 239, 0.72);
  margin: 0;
  max-width: 44ch;
}

body.studio-lovable .ed-close-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

body.studio-lovable .ed-close .ed-btn-primary {
  background: var(--ed-coral);
  border-color: var(--ed-coral);
  color: var(--ed-cream);
}

body.studio-lovable .ed-close-email {
  margin: 0;
  font-family: var(--ed-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(250, 246, 239, 0.55);
}

body.studio-lovable .ed-close-email a {
  color: rgba(250, 246, 239, 0.85);
  border-bottom: 1px solid rgba(250, 246, 239, 0.22);
  padding-bottom: 2px;
  text-decoration: none;
  transition: color var(--ed-dur) var(--ed-ease), border-color var(--ed-dur) var(--ed-ease);
}

body.studio-lovable .ed-close-email a:hover {
  color: var(--ed-coral);
  border-bottom-color: var(--ed-coral);
}

/* --- Colophon ------------------------------------------------------------ */

body.studio-lovable .ed-colophon {
  background: var(--ed-ink);
  color: rgba(250, 246, 239, 0.7);
  padding: clamp(56px, 6vw, 96px) 0 clamp(32px, 4vw, 56px);
  border-top: 1px solid rgba(250, 246, 239, 0.18);
}

body.studio-lovable .ed-colophon-inner {
  max-width: var(--ed-page-max);
  margin: 0 auto;
  padding: 0 var(--ed-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

body.studio-lovable .ed-colophon-brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

body.studio-lovable .ed-colophon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--ed-coral);
  color: var(--ed-coral);
  font-family: var(--ed-font-index);
  font-size: 1rem;
  flex-shrink: 0;
}

body.studio-lovable .ed-colophon-name {
  font-family: var(--ed-font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ed-cream);
  margin: 0 0 8px;
}

body.studio-lovable .ed-colophon-name .accent-text {
  font-family: var(--ed-font-index);
  font-style: normal;
  color: var(--ed-coral);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.9375rem;
}

body.studio-lovable .ed-colophon-desc {
  font-family: var(--ed-font-index);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(250, 246, 239, 0.6);
  margin: 0;
  max-width: 40ch;
}

body.studio-lovable .ed-colophon-nav,
body.studio-lovable .ed-colophon-meta {
  display: grid;
  gap: 8px;
}

body.studio-lovable .ed-colophon-nav-label,
body.studio-lovable .ed-colophon-meta-label {
  color: var(--ed-coral);
  font-size: 0.625rem;
  margin: 0 0 8px;
  letter-spacing: 0.18em;
}

body.studio-lovable .ed-colophon-nav a {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  color: rgba(250, 246, 239, 0.72);
  text-decoration: none;
  transition: color var(--ed-dur) var(--ed-ease);
}

body.studio-lovable .ed-colophon-nav a:hover {
  color: var(--ed-coral);
}

body.studio-lovable .ed-colophon-type,
body.studio-lovable .ed-colophon-credit {
  font-family: var(--ed-font-index);
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(250, 246, 239, 0.6);
  margin: 0;
}

body.studio-lovable .ed-colophon-type .accent-text,
body.studio-lovable .ed-colophon-credit .accent-text {
  font-style: normal;
  color: var(--ed-coral);
}

body.studio-lovable .ed-colophon-copy {
  color: rgba(250, 246, 239, 0.45);
  font-size: 0.625rem;
  margin: 8px 0 0;
  letter-spacing: 0.12em;
}

@media (min-width: 1024px) {
  body.studio-lovable .ed-engage {
    display: grid;
  }

  body.studio-lovable .ed-accordion {
    display: none;
  }
}

@media (max-width: 1023px) {
  body.studio-lovable .ed-engage {
    display: none;
  }

  body.studio-lovable .ed-accordion {
    display: block;
  }
}

@media (max-width: 900px) {
  body.studio-lovable .ed-arch-split,
  body.studio-lovable .ed-founder-grid,
  body.studio-lovable .ed-engage-intro,
  body.studio-lovable .ed-close-grid {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-notes-grid {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-notes-card {
    border-right: none;
  }

  body.studio-lovable .ed-notes-card:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--ed-rule);
  }

  body.studio-lovable .ed-notes-card:last-child {
    border-bottom: none;
  }

  body.studio-lovable .ed-colophon-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.studio-lovable .ed-notes-card,
  body.studio-lovable .ed-engage-tab,
  body.studio-lovable .ed-acc-trigger {
    transition: none;
  }
}

/* --- StrategyIQ Light · Editorial Cockpit -------------------------------- */

body.studio-lovable.ed-siql-page {
  background: #FAF6EF;
  color: #0E0C0A;
  padding-top: 80px;
  --ed-siql-page-max: 1100px;
  --ed-siql-gutter: clamp(20px, 4vw, 48px);
  --ed-siql-section-gap: 160px;
}

body.studio-lovable.ed-siql-page #studio-main {
  background: #FAF6EF;
}

body.studio-lovable.ed-siql-page .ed-hero-inner,
body.studio-lovable.ed-siql-page .ed-siql-inner,
body.studio-lovable.ed-siql-page .ed-siql-close-inner,
body.studio-lovable.ed-siql-page .ed-siql-colophon-inner {
  max-width: var(--ed-siql-page-max);
  margin: 0 auto;
  padding-left: var(--ed-siql-gutter);
  padding-right: var(--ed-siql-gutter);
}

body.studio-lovable .ed-siql-hero .ed-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 0.96;
}

body.studio-lovable .ed-siql-vocab {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid rgba(14, 12, 10, 0.1);
  font-family: var(--ed-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.55);
}

body.studio-lovable .ed-siql-vocab span strong {
  color: #F96F6E;
  font-weight: 500;
}

body.studio-lovable .ed-siql-section {
  padding: 0;
  border-top: none;
}

body.studio-lovable.ed-siql-page .ed-siql-hero + .ed-siql-section,
body.studio-lovable.ed-siql-page .ed-siql-section + .ed-siql-section {
  margin-top: var(--ed-siql-section-gap);
}

body.studio-lovable .ed-siql-inner {
  max-width: var(--ed-siql-page-max, var(--ed-page-max));
  margin: 0 auto;
  padding: 0 var(--ed-siql-gutter, var(--ed-gutter));
}

body.studio-lovable .ed-siql-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}

body.studio-lovable .ed-siql-display {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ed-ink);
  margin: 16px 0 12px;
}

body.studio-lovable .ed-siql-lede {
  font-family: var(--ed-font-index);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: rgba(14, 12, 10, 0.72);
  max-width: 52ch;
  margin: 0;
}

body.studio-lovable .ed-siql-calibrate-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 0;
  border: 1px solid rgba(14, 12, 10, 0.14);
  background: #FAF6EF;
  box-shadow: 0 24px 64px rgba(14, 12, 10, 0.06);
}

body.studio-lovable .ed-siql-controls {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid rgba(14, 12, 10, 0.1);
}

body.studio-lovable .ed-siql-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--ed-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F96F6E;
}

body.studio-lovable .ed-siql-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F96F6E;
  box-shadow: 0 0 0 0 rgba(249, 111, 110, 0.45);
  animation: ed-siql-pulse 2.4s infinite;
}

@keyframes ed-siql-pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 111, 110, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(249, 111, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 111, 110, 0); }
}

body.studio-lovable .ed-siql-controls-title {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin: 0 0 clamp(24px, 3vw, 32px);
  color: var(--ed-ink);
}

body.studio-lovable .ed-siql-slider-row {
  margin-bottom: clamp(20px, 2.5vw, 28px);
}

body.studio-lovable .ed-siql-slider-row:last-child {
  margin-bottom: 0;
}

body.studio-lovable .ed-siql-slider-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

body.studio-lovable .ed-siql-slider-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ed-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ed-ink);
}

body.studio-lovable .ed-siql-slider-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(14, 12, 10, 0.18);
  font-size: 0.65rem;
  color: #F96F6E;
}

body.studio-lovable .ed-siql-slider-val {
  font-family: var(--ed-font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ed-ink);
  font-variant-numeric: tabular-nums;
}

body.studio-lovable .ed-siql-slider-sub {
  margin-top: 8px;
  font-family: var(--ed-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.45);
}

body.studio-lovable .ed-siql-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  border: none;
  border-radius: 0;
  background: linear-gradient(
    to right,
    #F96F6E 0%,
    #F96F6E var(--siql-fill, 50%),
    rgba(14, 12, 10, 0.12) var(--siql-fill, 50%),
    rgba(14, 12, 10, 0.12) 100%
  );
  outline: none;
  cursor: pointer;
}

body.studio-lovable .ed-siql-range::-webkit-slider-runnable-track {
  height: 2px;
  background: transparent;
}

body.studio-lovable .ed-siql-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -7px;
  border-radius: 0;
  background: #0E0C0A;
  border: 2px solid #FAF6EF;
  box-shadow: 0 0 0 1px #0E0C0A;
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.studio-lovable .ed-siql-range::-webkit-slider-thumb:hover {
  transform: scale(1.08);
  background: #F96F6E;
  box-shadow: 0 0 0 1px #F96F6E;
}

body.studio-lovable .ed-siql-range::-moz-range-track {
  height: 2px;
  background: rgba(14, 12, 10, 0.12);
}

body.studio-lovable .ed-siql-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: #0E0C0A;
  border: 2px solid #FAF6EF;
  box-shadow: 0 0 0 1px #0E0C0A;
  cursor: pointer;
}

body.studio-lovable .ed-siql-index-panel {
  padding: clamp(20px, 2.5vw, 28px);
  background: #FAF6EF;
  color: #0E0C0A;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.studio-lovable .ed-siql-index-card {
  background: #FFFDF9;
  border: 1px solid rgba(14, 12, 10, 0.14);
  padding: clamp(20px, 2.5vw, 28px);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.studio-lovable .ed-siql-index-label {
  font-family: var(--ed-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.45);
  margin-bottom: 16px;
}

body.studio-lovable .ed-siql-index-score {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.9;
  color: #0E0C0A;
}

body.studio-lovable .ed-siql-index-score span {
  font-family: var(--ed-font-mono);
  font-size: 0.35em;
  letter-spacing: 0.08em;
  color: rgba(14, 12, 10, 0.45);
  vertical-align: super;
}

body.studio-lovable .ed-siql-index-note {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(14, 12, 10, 0.1);
  font-family: var(--ed-font-index);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(14, 12, 10, 0.72);
}

body.studio-lovable .ed-siql-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(48px, 6vw, 80px);
  align-items: center;
}

body.studio-lovable.ed-siql-page #filter .ed-siql-inner {
  padding-top: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

body.studio-lovable .ed-siql-diagram {
  position: relative;
  border: 1px solid rgba(14, 12, 10, 0.14);
  background: #F3EDE3;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: clamp(16px, 2vw, 24px) 0;
  padding: clamp(12px, 1.5vw, 20px);
}

body.studio-lovable .ed-siql-diagram::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(14, 12, 10, 0.08);
  pointer-events: none;
  z-index: 1;
}

body.studio-lovable .ed-siql-diagram canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body.studio-lovable .ed-siql-diagram-tag {
  position: absolute;
  top: 16px;
  font-family: var(--ed-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.45);
  z-index: 2;
}

body.studio-lovable .ed-siql-diagram-tag.left { left: 20px; }
body.studio-lovable .ed-siql-diagram-tag.right { right: 20px; color: #F96F6E; }

body.studio-lovable .ed-siql-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

body.studio-lovable .ed-siql-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ed-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.62);
}

body.studio-lovable .ed-siql-swatch {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

body.studio-lovable .ed-siql-swatch.noise { background: rgba(14, 12, 10, 0.18); }
body.studio-lovable .ed-siql-swatch.signal { background: #F96F6E; }
body.studio-lovable .ed-siql-swatch.read { background: #0E0C0A; }

body.studio-lovable .ed-siql-map-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

body.studio-lovable.ed-siql-page .ed-strategyiq-rail {
  position: static;
  padding-top: 0;
}

body.studio-lovable.ed-siql-page .ed-strategyiq-rail-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
  border-left: none;
}

body.studio-lovable.ed-siql-page .ed-strategyiq-rail-list li {
  border-bottom: none;
}

body.studio-lovable.ed-siql-page .ed-strategyiq-rail-link {
  width: auto;
  padding: 8px 0;
}

body.studio-lovable.ed-siql-page .ed-strategyiq-rail-list li.is-active::before {
  display: none;
}

body.studio-lovable.ed-siql-page .ed-siql-section.ed-strategyiq {
  padding: 0;
  background: transparent;
}

body.studio-lovable .ed-siql-close {
  padding: clamp(64px, 10vw, 120px) 0;
  text-align: center;
  border-top: 1px solid rgba(14, 12, 10, 0.1);
}

body.studio-lovable .ed-siql-close-inner {
  max-width: var(--ed-siql-page-max, var(--ed-page-max));
  margin: 0 auto;
  padding: 0 var(--ed-siql-gutter, var(--ed-gutter));
}

body.studio-lovable .ed-siql-close-title {
  font-family: var(--ed-font-serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.12;
  color: var(--ed-ink);
  margin: 0 0 16px;
}

body.studio-lovable .ed-siql-close-lede {
  font-family: var(--ed-font-index);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(14, 12, 10, 0.72);
  margin: 0 auto 32px;
  max-width: 44ch;
}

body.studio-lovable .ed-siql-close-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

body.studio-lovable .ed-siql-colophon {
  margin-top: clamp(64px, 8vw, 120px);
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid rgba(14, 12, 10, 0.1);
  background: #FAF6EF;
}

body.studio-lovable .ed-siql-colophon-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

body.studio-lovable .ed-siql-colophon-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
  font-family: var(--ed-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.studio-lovable .ed-siql-colophon-nav a {
  color: rgba(14, 12, 10, 0.55);
  text-decoration: none;
  transition: color 160ms ease;
}

body.studio-lovable .ed-siql-colophon-nav a:hover {
  color: #F96F6E;
}

body.studio-lovable .ed-siql-colophon-copy {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(14, 12, 10, 0.45);
  margin: 0;
}

body.studio-lovable .ed-siql-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.studio-lovable .ed-siql-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  body.studio-lovable.ed-siql-page {
    --ed-siql-section-gap: clamp(80px, 14vw, 120px);
  }

  body.studio-lovable .ed-siql-calibrate-grid,
  body.studio-lovable .ed-siql-filter-grid,
  body.studio-lovable .ed-siql-map-stage {
    grid-template-columns: 1fr;
  }

  body.studio-lovable .ed-siql-controls {
    border-right: none;
    border-bottom: 1px solid rgba(14, 12, 10, 0.1);
  }

  body.studio-lovable .ed-siql-index-panel {
    border-top: 1px solid rgba(14, 12, 10, 0.1);
  }

  body.studio-lovable.ed-siql-page .ed-strategyiq-rail-list {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.studio-lovable .ed-siql-live-dot {
    animation: none;
  }

  body.studio-lovable .ed-siql-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
