/* K/ST · crecimiento.html — scoped editorial */
:root {
  --st-pad: 48px;
  --ease-st: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 68px;
}

body.st-page.studio-page {
  padding-top: 0;
  --pad-x: var(--st-pad);
}

body.st-page .st-main.editorial {
  position: relative;
  z-index: 2;
  padding-top: 0;
}

body.st-page .mono {
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Hero (réplica The Studio) —— */
body.st-page .studio-hero__waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
  overflow: hidden;
  background-color: #000000;
}

body.st-page .studio-hero__waves canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

body.st-page .studio-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 100svh;
  height: 100svh;
  box-sizing: border-box;
  padding: calc(var(--header-h) + 20px) var(--pad-x) clamp(32px, 6vh, 72px);
  isolation: isolate;
  border-bottom: none;
}

body.st-page .studio-hero__inner {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(-96px, -10vh, -48px);
  text-align: left;
  mix-blend-mode: difference;
  color: #ededed;
  will-change: transform, opacity;
}

body.st-page .studio-hero__meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #ededed;
  margin-bottom: clamp(28px, 5vh, 56px);
}

body.st-page .studio-hero__sub {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.68;
  letter-spacing: -0.018em;
  font-weight: 400;
  color: rgba(237, 237, 237, 0.58);
  max-width: min(48ch, 100%);
}

body.st-page .studio-hero__sub em {
  font-style: italic;
  color: rgba(237, 237, 237, 0.88);
}

body.st-page .studio-hero__line--dim {
  color: #ededed;
  opacity: 0.55;
}

body.st-page .studio-hero__foot {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0;
  opacity: 1;
  visibility: visible;
  color: rgba(237, 237, 237, 0.55);
  pointer-events: auto;
}

body.st-page .studio-hero__back,
body.st-page .studio-hero__scroll,
body.st-page .studio-hero__idx {
  color: #ededed;
}

body.st-page .studio-hero::before {
  z-index: 1;
  opacity: 0.2;
}

body.st-page .studio-gridlines {
  z-index: 1;
}

body.st-page .studio-gridlines span,
body.st-page .studio-gridlines span:first-child {
  border-color: rgba(255, 255, 255, 0.12);
}

body.st-page .studio-hero__title {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(72px, 14.5vw, 196px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-transform: uppercase;
}

body.st-page .studio-hero__title .studio-hero__line {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
}

body.st-page .studio-hero__line-wrap {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

body.st-page .studio-hero__line {
  display: block;
}

@media (max-width: 900px) {
  body.st-page .studio-hero__sub {
    max-width: 100%;
  }

  body.st-page .studio-hero {
    border-bottom: 1px solid var(--line);
  }
}

/* —— Signal —— */
body.st-page .st-signal {
  border-bottom: 1px solid var(--line);
  padding: clamp(88px, 14vh, 160px) var(--pad-x);
  background: var(--bg);
}

body.st-page .st-signal__text {
  margin: 0;
  max-width: min(16ch, 100%);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: rgba(237, 237, 237, 0.22);
}

body.st-page .st-signal__text em {
  font-style: normal;
  color: var(--fg);
}

/* —— Manifest —— */
body.st-page .st-manifest {
  border-bottom: 1px solid var(--line);
  padding: clamp(72px, 11vh, 120px) var(--pad-x);
  background: var(--bg-alt);
}

body.st-page .st-manifest .edo-manifest__grid {
  align-items: start;
}

/* —— Method rail (pinned) —— */
body.st-page .st-rail {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

body.st-page .st-rail__pin {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(48px, 8vh, 80px) var(--pad-x);
  box-sizing: border-box;
}

body.st-page .st-rail__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding-bottom: clamp(32px, 5vh, 48px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vh, 64px);
}

body.st-page .st-rail__head h2 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 12ch;
}

body.st-page .st-rail__head p {
  margin: 0;
  max-width: min(40ch, 100%);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.64;
  color: rgba(237, 237, 237, 0.56);
  text-align: right;
}

body.st-page .st-rail__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 280px);
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
  min-height: 0;
}

body.st-page .st-rail__phases {
  position: relative;
  min-height: clamp(280px, 42vh, 420px);
}

body.st-page .st-rail__phase {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease-st), transform 0.45s var(--ease-st), visibility 0.45s;
}

body.st-page .st-rail__phase.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.st-page .st-rail__phase-num {
  display: block;
  margin-bottom: clamp(24px, 4vh, 40px);
  color: var(--muted);
}

body.st-page .st-rail__phase h3 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  max-width: 14ch;
}

body.st-page .st-rail__phase p {
  margin: 0;
  max-width: min(48ch, 100%);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.64;
  color: rgba(237, 237, 237, 0.58);
}

body.st-page .st-rail__nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 3vw, 40px);
}

body.st-page .st-rail__nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vh, 32px) 0;
  border-bottom: 1px solid var(--line-alt);
  color: rgba(237, 237, 237, 0.32);
  transition: color 0.35s var(--ease-st);
}

body.st-page .st-rail__nav-item:last-child {
  border-bottom: 0;
}

body.st-page .st-rail__nav-item.is-active {
  color: var(--fg);
}

body.st-page .st-rail__nav-item span:first-child {
  display: block;
  margin-bottom: 8px;
}

body.st-page .st-rail__nav-item strong {
  display: block;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
}

body.st-page .st-rail__line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* —— Capabilities stack —— */
body.st-page .st-stack {
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 9vh, 96px) var(--pad-x);
  background: var(--bg-alt);
}

body.st-page .st-stack__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(40px, 6vh, 64px);
}

body.st-page .st-stack__head h2 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

body.st-page .st-stack__list {
  display: flex;
  flex-direction: column;
}

body.st-page .st-stack__row {
  display: grid;
  grid-template-columns: minmax(72px, 100px) minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: baseline;
  padding: clamp(28px, 4.5vh, 44px) 0;
  border-top: 1px solid var(--line);
  opacity: 0.28;
  transition: opacity 0.45s var(--ease-st), padding-left 0.45s var(--ease-st);
}

body.st-page .st-stack__row:last-child {
  border-bottom: 1px solid var(--line);
}

body.st-page .st-stack__row.is-active {
  opacity: 1;
  padding-left: clamp(8px, 1.5vw, 20px);
}

body.st-page .st-stack__code {
  color: var(--muted);
}

body.st-page .st-stack__title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--fg);
}

body.st-page .st-stack__text {
  margin: 0;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.64;
  color: rgba(237, 237, 237, 0.52);
  max-width: 42ch;
}

body.st-page .st-stack__tag {
  padding: 8px 14px;
  border: 1px solid var(--line-alt);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(237, 237, 237, 0.42);
  white-space: nowrap;
}

/* —— Entry (crema editorial) —— */
body.st-page .st-entry.embedded--cream {
  background: var(--cream-bg);
  color: #141414;
  border-top-color: #c9c4b8;
  border-bottom-color: #c9c4b8;
  --embedded-line: #bfb8aa;
}

body.st-page .st-entry.embedded--cream .embedded__intro,
body.st-page .st-entry.embedded--cream .embedded__intro > * {
  border-color: var(--embedded-line);
}

body.st-page .st-entry.embedded--cream .embedded__intro .a,
body.st-page .st-entry.embedded--cream .embedded__intro .c,
body.st-page .st-entry.embedded--cream .mono {
  color: #5a5a5a;
}

body.st-page .st-entry.embedded--cream .embedded__intro .b {
  max-width: 52ch;
  color: rgba(10, 10, 10, 0.8);
}

body.st-page .st-entry.embedded--cream .st-entry__col {
  border-color: var(--embedded-line);
}

body.st-page .st-entry.embedded--cream .st-entry__list li {
  color: rgba(10, 10, 10, 0.72);
  border-color: var(--embedded-line);
}

body.st-page .st-entry.embedded--cream .st-entry__col--dim {
  background: rgba(0, 0, 0, 0.03);
}

body.st-page .st-entry__grid {
  padding: clamp(48px, 8vh, 80px) 0;
}

body.st-page .st-entry__col {
  padding: clamp(28px, 4vh, 40px) var(--pad-x);
  border-right: 1px solid var(--line);
}

body.st-page .st-entry__col:last-child {
  border-right: 0;
}

body.st-page .st-entry__col--dim {
  background: rgba(255, 255, 255, 0.015);
}

body.st-page .st-entry__label {
  margin: 0 0 clamp(20px, 3vh, 28px);
  color: var(--muted);
}

body.st-page .st-entry__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.st-page .st-entry__list li {
  position: relative;
  padding: 12px 0 12px 20px;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.64;
  color: rgba(237, 237, 237, 0.62);
  border-top: 1px solid var(--line-alt);
}

body.st-page .st-entry__list li:first-child {
  border-top: 0;
}

body.st-page .st-entry__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* —— CTA crema —— */
body.st-page .st-cta {
  padding: clamp(88px, 14vh, 140px) var(--pad-x);
  background: #f4f1ea;
  color: #101010;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

body.st-page .st-cta__label {
  display: block;
  margin-bottom: clamp(24px, 4vh, 36px);
  color: rgba(16, 16, 16, 0.42);
}

body.st-page .st-cta__title {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

body.st-page .st-cta__lede {
  margin: clamp(24px, 4vh, 36px) auto 0;
  max-width: min(44ch, 100%);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.68;
  color: rgba(16, 16, 16, 0.58);
}

body.st-page .st-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(36px, 5vh, 52px);
}

body.st-page #kroveeEditorialAfter.editorial {
  position: relative;
  z-index: 37;
  background: var(--bg);
}

body.st-page footer.site-foot {
  --pad-x: var(--st-pad);
}

@media (max-width: 900px) {
  body.st-page {
    --st-pad: 20px;
  }

  body.st-page .st-rail__body {
    grid-template-columns: 1fr;
  }

  body.st-page .st-rail__nav {
    flex-direction: row;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
  }

  body.st-page .st-rail__nav-item {
    flex: 1;
    border-bottom: 0;
    border-right: 1px solid var(--line-alt);
    padding: 16px 12px;
    text-align: center;
  }

  body.st-page .st-rail__nav-item:last-child {
    border-right: 0;
  }

  body.st-page .st-rail__head {
    grid-template-columns: 1fr;
  }

  body.st-page .st-rail__head p {
    text-align: left;
  }

  body.st-page .st-stack__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  body.st-page .st-stack__tag {
    justify-self: start;
  }

  body.st-page .st-entry__grid {
    grid-template-columns: 1fr;
  }

  body.st-page .st-entry__col {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body.st-page .st-entry__col:last-child {
    border-bottom: 0;
  }
}
