/* Qriouso landing v2 — Learning Studio */

body.theme-studio {
  --paper: #fff6d6;
  --paper-deep: #ffeeb9;
  --ink: #171d4b;
  --ink-deep: #11163f;
  --ink-soft: #444b72;
  --muted: #5b6184;
  --muted-strong: #484f74;
  --burgundy: #ff6236;
  --burgundy-light: #ff7b55;
  --burgundy-dim: #ffc7b5;
  --forest: #1a9f6f;
  --forest-deep: #107650;
  --hairline: rgba(23, 29, 75, 0.18);
  --hairline-strong: rgba(23, 29, 75, 0.38);
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "DM Mono", monospace;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss02", "ss03";
}

body.theme-studio::selection {
  background: #bce6ff;
  color: var(--ink-deep);
}

body.theme-studio.grain::before {
  opacity: 0.035;
  mix-blend-mode: multiply;
}

.theme-studio a:focus-visible,
.theme-studio button:focus-visible {
  outline: 3px solid #2348d8;
  outline-offset: 4px;
}

html.motion-ready body.theme-studio .rise {
  opacity: 1 !important;
}

html.motion-ready body.theme-studio [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

.theme-studio .text-stone-400,
.theme-studio .text-stone-500,
.theme-studio .text-stone-600,
.theme-studio .text-ink-soft {
  color: var(--muted) !important;
}

.theme-studio .text-burgundy-300 {
  color: #ffd1c4 !important;
}

.theme-studio .text-burgundy-700 {
  color: var(--burgundy) !important;
}

.theme-studio .bg-paper-deep\/25 {
  background-color: transparent !important;
}

.theme-studio .bg-burgundy-900 {
  background: var(--ink-deep) !important;
}

.theme-studio .font-mono,
.theme-studio code {
  font-family: var(--font-mono) !important;
}

.theme-studio .font-display,
.theme-studio .display,
.theme-studio .display-sm {
  font-family: var(--font-display) !important;
}

/* Navigation */
.theme-studio .site-nav {
  min-height: 82px;
  background: rgba(255, 246, 214, 0.9);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.theme-studio .site-nav .bar {
  max-width: 86rem;
  height: 82px;
}

.theme-studio .brand {
  gap: 12px;
}

.theme-studio .brand .glyph {
  width: 30px;
  height: 30px;
  color: var(--burgundy);
}

.theme-studio .brand .wordmark {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -0.055em;
}

.theme-studio .nav-links {
  gap: 36px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
}

.theme-studio .nav-links a {
  border: 0;
}

.theme-studio .nav-links a[aria-current="page"] {
  position: relative;
  color: var(--ink);
}

.theme-studio .nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 4px;
  border-radius: 50%;
  background: var(--burgundy);
  transform: rotate(-1.5deg);
}

.theme-studio .nav-links a:hover {
  color: #2348d8;
}

.theme-studio .nav-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 4px 4px 0 var(--burgundy);
}

.theme-studio .nav-cta:hover {
  background: #2348d8;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--burgundy);
}

/* Hero */
.theme-studio .hero-bg {
  min-height: 850px;
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(circle at 96% 22%, rgba(255, 98, 54, 0.18), transparent 18%),
    radial-gradient(circle at 61% 8%, rgba(35, 72, 216, 0.13), transparent 12%),
    linear-gradient(180deg, #fff6d6 0%, #fff1c5 100%);
}

.theme-studio .hero-bg::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 100px;
  right: -58px;
  width: 220px;
  height: 220px;
  border-radius: 42% 58% 65% 35% / 45% 42% 58% 55%;
  background: #ff9f79;
  opacity: 0.28;
  transform: rotate(22deg);
}

.theme-studio .hero-bg > .max-w-7xl {
  max-width: 86rem;
  padding-top: clamp(72px, 7vw, 108px) !important;
  padding-bottom: clamp(84px, 8vw, 118px) !important;
}

.theme-studio .hero-bg .grid {
  column-gap: clamp(50px, 6vw, 96px);
}

.theme-studio .section-mark {
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.11em;
}

.theme-studio .hero-bg .section-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 253, 243, 0.7);
  color: var(--ink);
  box-shadow: 3px 3px 0 #bce6ff;
}

.theme-studio .hero-bg .section-mark::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--burgundy);
}

.theme-studio .display {
  font-weight: 720;
  font-variation-settings:
    "opsz" 72,
    "wdth" 92;
  letter-spacing: -0.062em;
  line-height: 0.95;
}

.theme-studio .display em {
  position: relative;
  display: inline-block;
  color: var(--burgundy);
  font-style: normal;
  font-weight: 780;
  font-variation-settings:
    "opsz" 72,
    "wdth" 94;
}

.theme-studio .display em::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -2%;
  bottom: -0.05em;
  height: 0.12em;
  border-bottom: 5px solid #2348d8;
  border-radius: 50%;
  transform: rotate(-1.2deg);
}

.theme-studio .hero-bg h1 {
  max-width: 790px;
  margin-top: 30px !important;
  font-size: clamp(64px, 6.6vw, 106px) !important;
  line-height: 0.9;
}

.theme-studio .hero-bg h1 + p {
  max-width: 690px;
  margin-top: 36px !important;
  color: var(--ink-soft) !important;
  font-size: clamp(18px, 1.35vw, 21px) !important;
  line-height: 1.65 !important;
}

.theme-studio .hero-bg .cta-primary {
  min-height: 58px;
  padding: 0 28px !important;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--burgundy);
  color: white;
  font-family: var(--font-body);
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0;
  text-transform: none !important;
  box-shadow: 6px 7px 0 var(--ink);
}

.theme-studio .hero-bg .cta-primary:hover {
  background: #ff7a52;
  transform: translate(-2px, -2px);
  box-shadow: 8px 9px 0 var(--ink);
}

.theme-studio .hero-bg .cta-primary span {
  font-size: 22px;
}

.theme-studio .cta-ghost {
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-body);
  font-size: 15px !important;
  font-weight: 750;
  letter-spacing: 0;
}

.theme-studio .cta-ghost:hover {
  color: #2348d8;
  border-color: #2348d8;
}

.theme-studio .pillar-row {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1.5px solid rgba(23, 29, 75, 0.28);
  gap: 20px 28px;
}

.theme-studio .pillar-row a {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
}

.theme-studio .hero-bg .mt-14.flex {
  margin-top: 46px !important;
  color: var(--ink-soft) !important;
  font-family: var(--font-mono);
  font-size: 13.5px !important;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.theme-studio .hero-bg .mt-14.flex .bg-stone-400 {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: var(--burgundy) !important;
}

/* Hero product card */
.theme-studio .hd-card {
  max-width: 670px;
  padding: 0 0 24px;
  gap: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 25px;
  background: #fffdf4;
  box-shadow: 14px 16px 0 var(--ink);
  transform: rotate(1.4deg);
}

.theme-studio .hd-card::before,
.theme-studio .hd-card::after {
  display: none;
}

.theme-studio .hd-meta {
  margin: 0 0 22px;
  padding: 18px 22px;
  border-bottom: 2px solid var(--ink);
  background: #bce6ff;
}

.theme-studio .hd-meta-label,
.theme-studio .hd-meta-side {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.theme-studio .hd-meta-side .dot,
.theme-studio .hd-pill .dot {
  background: var(--burgundy);
  box-shadow: 0 0 0 5px rgba(255, 98, 54, 0.16);
}

.theme-studio .hd-rail {
  margin-inline: 22px;
  padding-block: 10px;
}

.theme-studio .hd-tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.theme-studio .hd-bubble {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
}

.theme-studio .hd-bubble--tutor {
  background: #d9ffd2;
}

.theme-studio .hd-bubble--ghost {
  background: #fff8dc;
}

.theme-studio .hd-badge,
.theme-studio .hd-pill {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--burgundy);
  color: white;
  font-family: var(--font-mono);
}

.theme-studio .hd-pill {
  background: var(--ink);
}

.theme-studio .hd-caption {
  margin-top: 22px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
}

.theme-studio .hd-cycle-item {
  color: var(--ink-soft);
}

.theme-studio .hd-cycle-dot {
  background: #2348d8;
}

/* Hero trust strip: readable, not tiny */
.theme-studio .trust-strip {
  border-top: 2px solid var(--ink) !important;
  border-bottom: 0 !important;
  background: #fffdf4 !important;
  mask-image: none;
  -webkit-mask-image: none;
}

.theme-studio .marquee-track {
  padding-block: 16px !important;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1.6;
}

.theme-studio .marquee-track > div {
  gap: 2.1rem;
  padding-inline: 1.25rem;
}

.theme-studio .marquee-track span:nth-child(even) {
  color: var(--burgundy);
  font-size: 17px;
}

/* Global section rhythm */
.theme-studio main > section:not(.hero-bg) {
  position: relative;
  padding-top: clamp(104px, 9vw, 148px) !important;
  padding-bottom: clamp(104px, 9vw, 148px) !important;
  border-color: var(--ink) !important;
}

.theme-studio main > section:not(.hero-bg)::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(1280px, calc(100% - 48px));
  height: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  opacity: 0.12;
}

.theme-studio .max-w-7xl {
  max-width: 86rem;
}

.theme-studio main > section h2.display {
  max-width: 960px;
  font-size: clamp(50px, 5.2vw, 78px) !important;
  line-height: 0.98;
}

.theme-studio main > section h2 + p {
  max-width: 760px;
  margin-top: 30px !important;
  color: var(--ink-soft) !important;
  font-size: clamp(18px, 1.5vw, 21px) !important;
  line-height: 1.7 !important;
}

.theme-studio main > section > div > .grid.mb-14 {
  margin-bottom: 68px !important;
}

.theme-studio .card,
.theme-studio .fig .frame,
.theme-studio .corner-card,
.theme-studio .browser-frame,
.theme-studio .tryx,
.theme-studio .lesson-demo {
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #fffdf4;
  box-shadow: 7px 8px 0 var(--ink);
}

.theme-studio .card:hover {
  border-color: var(--ink);
  background: #fffdf4;
  transform: translate(-2px, -2px);
  box-shadow: 10px 11px 0 var(--ink);
}

.theme-studio .corner-card::before,
.theme-studio .corner-card::after {
  display: none;
}

.theme-studio .fig .frame,
.theme-studio .browser-frame {
  overflow: hidden;
}

.theme-studio .fig figcaption {
  margin-top: 18px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.65;
  letter-spacing: 0;
}

.theme-studio .fig figcaption .k {
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-weight: 500;
}

.theme-studio .browser-frame .chrome {
  padding: 13px 16px;
  border-bottom: 2px solid var(--ink);
  background: #bce6ff;
}

.theme-studio .browser-frame .url {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.theme-studio .browser-frame .dots span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
}

.theme-studio .browser-frame .dots span:first-child {
  background: var(--burgundy);
}

.theme-studio .browser-frame .dots span:nth-child(2) {
  background: #ffd95b;
}

.theme-studio .browser-frame .dots span:nth-child(3) {
  background: #56d8a4;
}

/* Loop */
.theme-studio #loop {
  background: #fffdf4;
}

.theme-studio .loop-fig .frame {
  padding: 30px 28px;
  background: #bce6ff;
}

.theme-studio .loop-desc-grid {
  gap: 14px;
}

.theme-studio .loop-desc-grid > div {
  min-height: 118px;
  padding: 17px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: #fffdf4;
}

.theme-studio .ld-name {
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.theme-studio .ld-body {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* Learn */
.theme-studio #learn {
  background: #fff6d6;
}

.theme-studio .path-card {
  padding: clamp(28px, 3vw, 42px);
}

.theme-studio .path-card:nth-child(1) {
  background: #fffdf4;
  transform: rotate(-0.35deg);
}

.theme-studio .path-card:nth-child(2) {
  background: #d9ffd2;
  transform: rotate(0.35deg);
}

.theme-studio .path-eyebrow,
.theme-studio .path-code-ref {
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}

.theme-studio .path-card h3 {
  color: var(--ink);
  font-size: clamp(28px, 2.6vw, 40px) !important;
  font-weight: 700;
}

.theme-studio .path-body {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.7;
}

.theme-studio .path-figure,
.theme-studio .path-example {
  border: 1.5px solid var(--ink);
  border-radius: 17px;
  background: rgba(255, 253, 244, 0.82);
}

.theme-studio .path-subject-chip,
.theme-studio .lesson-path-chip,
.theme-studio .lesson-subject-tab,
.theme-studio .tryx-tab,
.theme-studio .tryx-chip {
  min-height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fffdf4;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
}

.theme-studio .path-subject-chip.is-active,
.theme-studio .path-subject-chip[aria-pressed="true"],
.theme-studio .lesson-path-chip.is-active,
.theme-studio .lesson-path-chip[aria-pressed="true"],
.theme-studio .lesson-subject-tab.is-active,
.theme-studio .lesson-subject-tab[aria-pressed="true"],
.theme-studio .tryx-tab[aria-selected="true"],
.theme-studio .tryx-chip.is-active,
.theme-studio .tryx-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: #2348d8;
  color: white;
}

.theme-studio .path-hierarchy-caption,
.theme-studio .data-caption,
.theme-studio .ledger-note {
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.65;
}

.theme-studio .data-caption {
  margin-top: 42px;
}

.theme-studio .ledger {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #fffdf4;
  box-shadow: 7px 8px 0 var(--ink);
}

.theme-studio .ledger > div {
  min-height: 132px;
  padding: 26px 22px;
  border-right: 1.5px solid var(--ink);
}

.theme-studio .ledger .num {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 760;
  letter-spacing: -0.05em;
}

.theme-studio .ledger .lbl {
  margin-top: 10px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.theme-studio .ledger-note {
  margin-top: 22px;
}

/* Student-side topic decomposition */
.theme-studio .student-topic-card {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 4vw, 56px);
  margin-top: 58px;
  padding: clamp(28px, 3.6vw, 46px);
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: #ffd3e4;
  box-shadow: 8px 9px 0 var(--ink);
}

.theme-studio .student-topic-card__eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fffdf4;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-studio .student-topic-card h3 {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(33px, 3.2vw, 49px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.theme-studio .student-topic-card__intro p {
  max-width: 540px;
  margin: 19px 0 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.68;
}

.theme-studio .student-topic-card__jump {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  border-bottom: 1.5px solid var(--ink);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.theme-studio .student-topic-card__flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.theme-studio .student-topic-step {
  min-width: 0;
  padding: 17px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: #fffdf4;
}

.theme-studio .student-topic-step__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-studio .student-topic-step__head b {
  color: var(--burgundy);
  font-size: 10px;
}

.theme-studio .student-topic-input {
  padding: 11px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
}

.theme-studio .student-topic-grade {
  display: inline-block;
  margin-top: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #bce6ff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
}

.theme-studio .student-topic-depths {
  display: grid;
  gap: 7px;
}

.theme-studio .student-topic-depths span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid rgba(18, 31, 80, 0.28);
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 10.5px;
}

.theme-studio .student-topic-depths .is-recommended {
  border: 1.5px solid var(--ink);
  background: #d9ffd2;
  color: var(--ink);
  font-weight: 750;
}

.theme-studio .student-topic-depths em {
  color: var(--burgundy);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-studio .student-topic-nodes {
  display: grid;
  gap: 8px;
}

.theme-studio .student-topic-node {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 680;
}

.theme-studio .student-topic-node::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: #fffdf4;
}

.theme-studio .student-topic-node.is-ready::before {
  background: #56d8a4;
}

.theme-studio .student-topic-node small {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-studio .student-topic-unlock {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed rgba(18, 31, 80, 0.35);
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-studio .student-topic-connector {
  align-self: center;
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-size: 18px;
}

/* Bloom callout */
.theme-studio .bloom-callout {
  position: relative;
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 28px 52px;
  margin-top: 72px;
  padding: clamp(30px, 4vw, 52px);
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: #bce6ff;
  box-shadow: 9px 10px 0 var(--ink);
}

.theme-studio .bloom-callout::after {
  content: "6";
  position: absolute;
  right: -10px;
  top: -52px;
  color: rgba(35, 72, 216, 0.12);
  font-family: var(--font-display);
  font-size: 230px;
  font-weight: 800;
  line-height: 1;
}

.theme-studio .bloom-callout__label {
  align-self: start;
  width: max-content;
  max-width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fffdf4;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.theme-studio .bloom-callout__copy {
  position: relative;
  z-index: 1;
}

.theme-studio .bloom-callout h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 3.7vw, 56px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.055em;
}

.theme-studio .bloom-callout p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.theme-studio .bloom-steps {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.theme-studio .bloom-steps li {
  min-height: 82px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: #fffdf4;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.theme-studio .bloom-steps li:nth-child(3),
.theme-studio .bloom-steps li:nth-child(4) {
  background: #d9ffd2;
}

.theme-studio .bloom-steps li:nth-child(5),
.theme-studio .bloom-steps li:nth-child(6) {
  background: #ffd3e4;
}

.theme-studio .bloom-steps button {
  width: 100%;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 13px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.theme-studio .bloom-steps button:focus-visible {
  outline: 3px solid #2348d8;
  outline-offset: 3px;
}

.theme-studio .bloom-steps li:hover,
.theme-studio .bloom-steps li.is-active {
  z-index: 2;
  border-color: var(--ink-deep);
  box-shadow: 4px 5px 0 var(--ink);
  transform: translateY(-4px);
}

.theme-studio .bloom-steps span {
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-size: 10px;
}

.theme-studio .bloom-steps strong {
  font: inherit;
}

.theme-studio .bloom-method-note {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1.58fr);
  gap: 18px 28px;
  align-items: center;
  margin-top: -6px;
  padding: 18px 20px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: #fffdf4;
  box-shadow: 5px 6px 0 rgba(17, 22, 63, 0.18);
}

.theme-studio .bloom-method-note > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-studio .bloom-method-kicker {
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-studio .bloom-method-hint {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.35;
}

.theme-studio .bloom-callout .bloom-method-copy {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
}

.theme-studio .bloom-method-copy strong {
  color: #2348d8;
}

/* Practice */
.theme-studio #practice {
  background: #bce6ff !important;
}

.theme-studio #practice::after {
  content: "";
  position: absolute;
  right: 5%;
  top: 80px;
  width: 120px;
  height: 120px;
  border: 8px solid rgba(255, 98, 54, 0.5);
  border-radius: 50%;
  border-top-color: transparent;
  transform: rotate(20deg);
}

.theme-studio .lesson-intro {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.theme-studio .lesson-demo {
  overflow: hidden;
  background: #fffdf4;
}

.theme-studio .lesson-head,
.theme-studio .tryx-head {
  border-bottom: 2px solid var(--ink);
  background: #fff6d6;
}

.theme-studio .lesson-turn .body {
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: #fffdf4;
}

.theme-studio .lesson-turn[data-role="student"] .body,
.theme-studio .lesson-turn[data-role="student-wrong"] .body {
  background: #fff6d6;
}

.theme-studio .lesson-turn[data-role="tutor"] .body {
  background: #d9ffd2;
}

.theme-studio .lesson-tier {
  border: 1.5px solid var(--ink);
  border-radius: 13px;
}

.theme-studio .tryx-wrap {
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #fffdf4;
  box-shadow: 7px 8px 0 var(--ink);
  overflow: hidden;
}

.theme-studio .tryx-stage,
.theme-studio .tryx-stage.is-on,
.theme-studio .tryx-stage--graph,
.theme-studio .tryx-stage--graph.is-on,
.theme-studio .tryx-graph-detail {
  border-color: rgba(23, 29, 75, 0.28);
  border-radius: 14px;
  background: #fffdf4;
}

.theme-studio .tryx-bloom-contract {
  margin: 10px 0 18px;
  padding: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: #fff6d6;
}

.theme-studio .tryx-bloom-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  gap: 14px 24px;
  align-items: start;
}

.theme-studio .tryx-bloom-kicker {
  color: var(--burgundy);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-studio .tryx-bloom-intro strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 740;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.theme-studio .tryx-bloom-intro p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.55;
}

.theme-studio .tryx-bloom-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.theme-studio .tryx-bloom-rail li {
  --bloom-color: #2348d8;
  min-width: 0;
  padding: 9px 8px 8px;
  border: 1px solid rgba(17, 22, 63, 0.32);
  border-top: 4px solid var(--bloom-color);
  border-radius: 9px;
  background: #fffdf4;
  color: var(--ink);
  transition:
    background 0.28s ease,
    color 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.theme-studio .tryx-bloom-rail li[data-bloom-level="remember"] {
  --bloom-color: #b87800;
}

.theme-studio .tryx-bloom-rail li[data-bloom-level="understand"] {
  --bloom-color: #2348d8;
}

.theme-studio .tryx-bloom-rail li[data-bloom-level="apply"] {
  --bloom-color: #07815b;
}

.theme-studio .tryx-bloom-rail li[data-bloom-level="analyze"] {
  --bloom-color: #d94922;
}

.theme-studio .tryx-bloom-rail li[data-bloom-level="evaluate"] {
  --bloom-color: #b8336a;
}

.theme-studio .tryx-bloom-rail li[data-bloom-level="create"] {
  --bloom-color: #11163f;
}

.theme-studio .tryx-bloom-rail li.is-active {
  background: var(--bloom-color);
  color: #fffdf4;
  box-shadow: 3px 4px 0 var(--ink);
  transform: translateY(-2px);
}

.theme-studio .tryx-bloom-rail li[data-bloom-level="remember"].is-active {
  color: var(--ink);
}

.theme-studio .tryx-bloom-rail li span,
.theme-studio .tryx-bloom-rail li small {
  display: block;
  font-family: var(--font-mono);
}

.theme-studio .tryx-bloom-rail li span {
  font-size: 8px;
  letter-spacing: 0.08em;
  opacity: 0.74;
}

.theme-studio .tryx-bloom-rail li strong {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  line-height: 1.2;
}

.theme-studio .tryx-bloom-rail li small {
  margin-top: 4px;
  font-size: 8.5px;
  line-height: 1.25;
  opacity: 0.78;
}

.theme-studio .tryx-graph .tg-node {
  --bloom-color: #d94922;
  --bloom-soft: rgba(217, 73, 34, 0.18);
}

.theme-studio .tryx-graph .tg-node[data-bloom="remember"] {
  --bloom-color: #b87800;
  --bloom-soft: rgba(255, 210, 84, 0.32);
}

.theme-studio .tryx-graph .tg-node[data-bloom="understand"] {
  --bloom-color: #2348d8;
  --bloom-soft: rgba(35, 72, 216, 0.18);
}

.theme-studio .tryx-graph .tg-node[data-bloom="apply"] {
  --bloom-color: #07815b;
  --bloom-soft: rgba(105, 242, 193, 0.34);
}

.theme-studio .tryx-graph .tg-node[data-bloom="analyze"] {
  --bloom-color: #d94922;
  --bloom-soft: rgba(255, 154, 118, 0.32);
}

.theme-studio .tryx-graph .tg-node[data-bloom="evaluate"] {
  --bloom-color: #b8336a;
  --bloom-soft: rgba(255, 211, 228, 0.6);
}

.theme-studio .tryx-graph .tg-node[data-bloom="create"] {
  --bloom-color: #11163f;
  --bloom-soft: rgba(17, 22, 63, 0.18);
}

.theme-studio .tryx-graph .tg-node .fill {
  fill: var(--bloom-color);
}

.theme-studio .tryx-graph .tg-node .halo {
  fill: var(--bloom-soft);
  stroke: var(--bloom-color);
}

.theme-studio .tryx-graph .tg-node .tg-bloom {
  fill: var(--bloom-color);
  font-weight: 700;
}

.theme-studio .tryx-graph .tg-label,
.theme-studio .tryx-graph .tg-bloom {
  paint-order: stroke;
  stroke: #fffdf4;
  stroke-linejoin: round;
}

.theme-studio .tryx-graph .tg-label {
  stroke-width: 3px;
  font-size: 8.8px;
  font-weight: 650;
}

.theme-studio .tryx-graph .tg-bloom {
  stroke-width: 2.5px;
  font-size: 7.4px;
}

.theme-studio .tryx-graph-detail[data-bloom] {
  border-width: 1.5px;
  border-color: var(--ink);
  background: #bce6ff;
}

.theme-studio .tryx-graph-detail .gd-bloom-focus {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.58;
}

.theme-studio .tryx-graph-detail .gd-bloom-focus strong {
  color: var(--burgundy);
}

/* Prove */
.theme-studio #prove {
  background: #fffdf4;
}

.theme-studio .pv-card {
  min-height: 280px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #fff6d6;
  box-shadow: 6px 7px 0 var(--ink);
}

.theme-studio .pv-card:nth-child(2) {
  background: #ffd3e4;
}

.theme-studio .pv-card:nth-child(3) {
  background: #d9ffd2;
}

.theme-studio .pv-card:nth-child(4) {
  background: #bce6ff;
}

.theme-studio .pv-body {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.65;
}

/* Engine */
.theme-studio #engine.system {
  background:
    radial-gradient(circle at 8% 12%, rgba(35, 72, 216, 0.28), transparent 24%),
    radial-gradient(circle at 92% 82%, rgba(255, 98, 54, 0.2), transparent 24%),
    var(--ink-deep);
  color: #fffdf4;
}

.theme-studio #engine.system::before {
  opacity: 0.16;
  background-image: radial-gradient(rgba(188, 230, 255, 0.7) 0.8px, transparent 0.8px);
  background-size: 22px 22px;
}

.theme-studio #engine .system-eyebrow,
.theme-studio #engine .system-sub,
.theme-studio #engine .text-ink-soft,
.theme-studio #engine .text-stone-500,
.theme-studio #engine .text-stone-600 {
  color: #bcc8d2 !important;
}

.theme-studio #engine .system-h,
.theme-studio #engine .system-h em {
  color: #fffdf4;
}

.theme-studio #engine .system-h em::after {
  border-color: #69f2c1;
}

.theme-studio .pipe-play {
  overflow: hidden;
  border: 2px solid #fffdf4;
  border-radius: 24px;
  background: #0d1338;
  color: #fffdf4;
  box-shadow: 9px 10px 0 #2348d8;
}

.theme-studio .pipe-play::before,
.theme-studio .pipe-play::after {
  display: none;
}

.theme-studio .pipe-play-cap {
  border-bottom: 1px solid rgba(255, 253, 244, 0.35);
  background: #172451;
}

.theme-studio .pipe-play-cap-label {
  color: #dbe6ff;
}

.theme-studio .pipe-play-btn {
  border: 1.5px solid #fffdf4;
  border-radius: 999px;
  background: #69f2c1;
  color: var(--ink-deep);
}

.theme-studio .pipe-play-btn:hover {
  background: #8affd7;
}

.theme-studio .pipe-play-input {
  color: #fffdf4;
}

.theme-studio .pipe-play-input .pipe-play-prompt {
  color: #ff8e6d;
}

.theme-studio .pipe-play-candidate {
  border-color: #bce6ff;
  background: #fff6d6;
}

.theme-studio .pipe-play-label {
  color: #4d567d;
}

.theme-studio .pipe-play-body,
.theme-studio .pipe-play-body mark.forbid {
  color: #171d4b;
}

.theme-studio .pipe-play-body.is-flagged mark.forbid {
  background: #ffd1c4;
  color: #9f2d13;
  text-decoration-color: #ff6236;
}

.theme-studio .pipe-play-row {
  border-color: rgba(219, 230, 255, 0.34);
  background: #172451;
}

.theme-studio .pipe-play-row.is-on {
  border-color: #ff9d82;
  background: #202f61;
}

.theme-studio .pipe-play-row.is-flag {
  border-color: #ff8e6d;
  background: #293464;
}

.theme-studio .pipe-play-id {
  color: #ff9d82;
}

.theme-studio .pipe-play-name {
  color: #fffdf4;
}

.theme-studio .pipe-play-reading {
  color: #dbe6ff;
}

.theme-studio .pipe-play-row .pipe-play-bar {
  background: rgba(219, 230, 255, 0.24);
}

.theme-studio .pipe-play-row .pipe-play-bar-fill {
  background: linear-gradient(to right, #ff7b55, #ffd1c4);
}

.theme-studio .pipe-play-verdict {
  border-color: rgba(219, 230, 255, 0.5);
  color: #dbe6ff;
}

.theme-studio .pipe-play-verdict[data-v="block"],
.theme-studio .pipe-play-verdict[data-v="flag"],
.theme-studio .pipe-play-verdict[data-v="leak"] {
  border-color: #ff8e6d;
  background: rgba(255, 98, 54, 0.16);
  color: #ffb29d;
}

.theme-studio .pipe-play-verdict[data-v="pass"] {
  border-color: #69f2c1;
  background: rgba(105, 242, 193, 0.12);
  color: #8affd7;
}

.theme-studio .pipe-play-l2-explainer {
  border-left-color: #ff8e6d;
  background: #172451;
  color: #fffdf4;
}

.theme-studio .pipe-play-l2-explainer .pipe-play-l2-explainer-title {
  color: #ff9d82;
}

.theme-studio .pipe-play-l2-explainer .pipe-play-l2-tiny {
  color: #dbe6ff;
}

.theme-studio .pipe-play-l2-quote {
  border-color: rgba(219, 230, 255, 0.38);
  background: rgba(219, 230, 255, 0.09);
}

.theme-studio .pipe-play-l2-meta,
.theme-studio .pipe-play-action {
  color: #ff9d82;
}

.theme-studio .pipe-play-output {
  border-color: #69f2c1;
  background: #153f43;
}

.theme-studio .pipe-play-output-label {
  color: #8affd7;
}

.theme-studio .pipe-play-output-body {
  color: #fffdf4;
}

@media (max-width: 720px) {
  .theme-studio .pipe-play {
    padding: 18px;
  }

  .theme-studio .pipe-play-cap {
    gap: 10px;
  }

  .theme-studio .pipe-play-cap-label {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .theme-studio .pipe-play-btn {
    flex: 0 0 auto;
    padding: 7px 11px;
    white-space: nowrap;
  }

  .theme-studio .pipe-play-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: start;
  }

  .theme-studio .pipe-play-id {
    grid-column: 1;
    grid-row: 1;
  }

  .theme-studio .pipe-play-name {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .theme-studio .pipe-play-reading {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .theme-studio .pipe-play-verdict {
    grid-column: 3;
    grid-row: 1;
  }

  .theme-studio .pipe-play-row .pipe-play-bar {
    display: none;
  }
}

/* Teachers and qualification */
.theme-studio #teachers {
  background: #d9ffd2;
}

.theme-studio #teachers .browser-frame:first-child {
  transform: rotate(-0.4deg);
}

.theme-studio #teachers .fig:nth-child(2) .browser-frame {
  transform: rotate(0.45deg);
}

.theme-studio #qualified {
  background: #ffd3e4 !important;
}

.theme-studio .verdict-mock {
  padding: 28px;
  background: #fffdf4;
}

.theme-studio .verdict {
  border: 1.5px solid var(--ink);
  border-radius: 999px;
}

/* Manifesto */
.theme-studio main > section.bg-burgundy-900 {
  border-top: 2px solid var(--ink) !important;
  border-bottom: 2px solid var(--ink) !important;
  background: #ff6236 !important;
  color: #fffdf4 !important;
}

.theme-studio main > section.bg-burgundy-900 .section-mark,
.theme-studio main > section.bg-burgundy-900 .text-burgundy-300 {
  color: #fffdf4 !important;
}

.theme-studio .pull-quote {
  max-width: 1080px;
  font-size: clamp(42px, 5.2vw, 76px) !important;
  font-weight: 690;
  line-height: 1.02 !important;
}

.theme-studio .pull-quote::before {
  color: #2348d8;
  font-family: var(--font-display);
}

.theme-studio .pull-quote em {
  color: #fff7ba !important;
}

.theme-studio .pull-quote em::after {
  border-color: #2348d8;
}

/* Final CTA */
.theme-studio #contact {
  overflow: hidden;
  border-top: 0 !important;
  background: #2348d8;
  color: #fffdf4;
}

.theme-studio #contact::before {
  opacity: 1;
  top: -130px;
  left: auto;
  right: -80px;
  width: 390px;
  height: 390px;
  border: 76px solid #ffcf4e;
  border-radius: 50%;
  background: transparent;
  transform: none;
}

.theme-studio #contact::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border-radius: 46% 54% 63% 37% / 52% 38% 62% 48%;
  background: #ff6236;
  transform: rotate(18deg);
}

.theme-studio #contact > div {
  position: relative;
  z-index: 2;
}

.theme-studio #contact .section-mark {
  display: inline-flex;
  padding: 9px 14px;
  border: 1.5px solid #fffdf4;
  border-radius: 999px;
  color: #fffdf4;
}

.theme-studio #contact h2 {
  max-width: 980px;
  margin-inline: auto;
  color: #fffdf4;
  font-size: clamp(58px, 7vw, 102px) !important;
  line-height: 0.93 !important;
}

.theme-studio #contact h2 em {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.02em 0.12em 0.06em;
  background: #fffdf4;
  color: #171d4b;
  font-style: normal;
  box-shadow: 0.1em 0.11em 0 #ff6236;
  transform: rotate(-1deg);
}

.theme-studio #contact h2 em::after {
  display: none;
}

.theme-studio #contact h2 + p {
  max-width: 720px;
  margin-top: 36px !important;
  color: #e9ecff !important;
  font-size: clamp(18px, 1.5vw, 22px) !important;
}

.theme-studio #contact .mt-12 {
  margin-top: 48px !important;
}

.theme-studio #contact .cta-primary {
  min-height: 62px;
  padding: 0 30px !important;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #ffcf4e;
  color: var(--ink);
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0;
  text-transform: none !important;
  box-shadow: 7px 8px 0 var(--ink);
}

.theme-studio #contact .cta-primary:hover {
  background: #ffda75;
  transform: translate(-2px, -2px);
  box-shadow: 9px 10px 0 var(--ink);
}

.theme-studio #contact .cta-ghost {
  color: #fffdf4;
  border-color: #fffdf4;
}

/* Footer */
.theme-studio .site-footer {
  padding-block: 48px;
  border-top: 2px solid var(--ink);
  background: #fff6d6;
}

.theme-studio .site-footer .bar {
  max-width: 86rem;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.theme-studio .site-footer .links {
  gap: 24px;
}

.theme-studio .site-footer a {
  color: var(--ink);
  font-weight: 650;
}

/* Responsive */
@media (max-width: 1100px) {
  .theme-studio .hero-bg h1 {
    font-size: clamp(62px, 7.3vw, 88px) !important;
  }

  .theme-studio .bloom-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 899px) {
  .theme-studio .site-nav,
  .theme-studio .site-nav .bar {
    min-height: 72px;
    height: 72px;
  }

  .theme-studio .brand .wordmark {
    font-size: 26px;
  }

  .theme-studio .hero-bg {
    min-height: auto;
  }

  .theme-studio .hero-bg .grid {
    row-gap: 72px;
  }

  .theme-studio .hero-bg .lg\:col-span-5 {
    max-width: 680px;
  }

  .theme-studio .hd-card {
    transform: rotate(0.5deg);
    box-shadow: 9px 11px 0 var(--ink);
  }

  .theme-studio .bloom-callout {
    grid-template-columns: 1fr;
  }

  .theme-studio .bloom-steps {
    grid-column: 1;
  }

  .theme-studio .student-topic-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html,
  body.theme-studio {
    max-width: 100%;
    overflow-x: clip;
  }

  .theme-studio .site-nav .bar {
    padding-inline: 18px;
  }

  .theme-studio .brand .glyph {
    width: 26px;
    height: 26px;
  }

  .theme-studio .brand .wordmark {
    font-size: 24px;
  }

  .theme-studio .nav-cta {
    min-height: 40px;
    padding-inline: 15px;
    font-size: 12px;
    box-shadow: 3px 3px 0 var(--burgundy);
  }

  .theme-studio .hero-bg > .max-w-7xl {
    padding-top: 56px !important;
    padding-bottom: 78px !important;
  }

  .theme-studio .hero-bg h1 {
    margin-top: 26px !important;
    font-size: clamp(50px, 15.5vw, 70px) !important;
    line-height: 0.92;
  }

  .theme-studio .hero-bg h1 + p {
    margin-top: 28px !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
  }

  .theme-studio .hero-bg .mt-10.flex {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 34px !important;
    gap: 18px;
  }

  .theme-studio .hero-bg .cta-primary {
    width: 100%;
  }

  .theme-studio .pillar-row {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 40px;
  }

  .theme-studio .hero-bg .mt-14.flex {
    align-items: flex-start;
    margin-top: 38px !important;
    font-size: 13px !important;
  }

  .theme-studio .hero-bg .mt-14.flex .bg-stone-400 {
    margin-top: 8px;
  }

  .theme-studio .hd-card {
    border-radius: 18px;
    box-shadow: 6px 7px 0 var(--ink);
  }

  .theme-studio .hd-meta {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 16px;
  }

  .theme-studio .hd-rail {
    margin-inline: 14px;
  }

  .theme-studio .hd-bubble {
    font-size: 13.5px;
  }

  .theme-studio .hd-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding-left: 2px;
  }

  .theme-studio .marquee-track {
    font-size: 11.5px;
  }

  .theme-studio main > section:not(.hero-bg) {
    padding-top: 86px !important;
    padding-bottom: 86px !important;
  }

  .theme-studio main > section h2.display {
    font-size: clamp(42px, 12vw, 58px) !important;
  }

  .theme-studio main > section h2 + p {
    font-size: 17px !important;
  }

  .theme-studio main > section > div > .grid.mb-14 {
    margin-bottom: 48px !important;
  }

  .theme-studio .card,
  .theme-studio .fig .frame,
  .theme-studio .corner-card,
  .theme-studio .browser-frame,
  .theme-studio .tryx-wrap,
  .theme-studio .lesson-demo {
    border-radius: 18px;
    box-shadow: 5px 6px 0 var(--ink);
  }

  .theme-studio .loop-fig .frame {
    padding: 20px 14px;
  }

  .theme-studio .loop-desc-grid {
    grid-template-columns: 1fr;
  }

  .theme-studio .path-card {
    transform: none !important;
  }

  .theme-studio .student-topic-card {
    margin-top: 42px;
    padding: 24px 19px;
    border-radius: 20px;
    box-shadow: 5px 6px 0 var(--ink);
  }

  .theme-studio .student-topic-card h3 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .theme-studio .ledger {
    box-shadow: 5px 6px 0 var(--ink);
  }

  .theme-studio .ledger > div {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1.5px solid var(--ink);
  }

  .theme-studio .ledger > div:last-child {
    border-bottom: 0;
  }

  .theme-studio .bloom-callout {
    margin-top: 58px;
    padding: 25px 20px;
    border-radius: 20px;
    box-shadow: 5px 6px 0 var(--ink);
  }

  .theme-studio .bloom-callout__label {
    width: auto;
    font-size: 10px;
  }

  .theme-studio .bloom-callout p {
    font-size: 16px;
  }

  .theme-studio .bloom-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .theme-studio .bloom-method-note {
    grid-template-columns: 1fr;
  }

  .theme-studio .tryx-bloom-intro {
    grid-template-columns: 1fr;
  }

  .theme-studio .tryx-bloom-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-studio #contact h2 {
    font-size: clamp(48px, 14vw, 68px) !important;
  }

  .theme-studio #contact::before {
    top: -165px;
    right: -70px;
    width: 240px;
    height: 240px;
    border-width: 48px;
  }

  .theme-studio #contact .mt-12 {
    align-items: stretch;
    flex-direction: column;
    margin-top: 42px !important;
  }

  .theme-studio #contact .cta-primary {
    width: 100%;
  }

  .theme-studio #contact .cta-ghost {
    align-self: center;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .theme-studio .student-topic-card__flow {
    grid-template-columns: 1fr;
  }

  .theme-studio .student-topic-connector {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* ============================================================
   Funding band — netidee, main funder. Sits above the footer
   on every page; logo keeps its own white field (brand-safe).
   ============================================================ */

.funder-band {
  border-top: 2px solid var(--ink);
  background: var(--paper-deep);
}

.funder-band .wrap {
  max-width: 86rem;
  margin-inline: auto;
  padding: 38px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px 48px;
}

.funder-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.funder-copy p {
  margin-top: 12px;
  max-width: 52ch;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.funder-copy strong {
  color: var(--ink);
  font-weight: 800;
}

.funder-logo {
  display: inline-flex;
  align-items: center;
  padding: 18px 24px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #fff;
  box-shadow: 6px 7px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.funder-logo:hover {
  transform: translate(-1px, -1px);
  box-shadow: 8px 9px 0 var(--burgundy);
}

.funder-logo img {
  display: block;
  width: 216px;
  height: auto;
}

@media (max-width: 640px) {
  .funder-band .wrap {
    padding: 30px 18px;
    gap: 22px;
  }
  .funder-logo {
    padding: 14px 18px;
    box-shadow: 4px 5px 0 var(--ink);
  }
  .funder-logo img {
    width: 178px;
  }
}

@media (min-width: 768px) {
  .funder-band .wrap {
    padding-inline: 40px;
  }
}

/* Illustrative-data chip (evals) */
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 13px;
  border: 2px solid var(--burgundy);
  border-radius: 999px;
  background: var(--paper-deep);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
