/* =============================================================
   O Lab Plus case study — maintenance / platform-ownership layout
   Loaded after styles.css; consumes the page-local token block
   set on #top (--ink, --grad, --paper, …).
   Namespace: .ol-*
   ============================================================= */

/* ---------- Accent tokens (logo gold, darkened for text contrast) */
#top {
  --ol-gold: #E8B04F;          /* logo gold — graphics, dark surfaces */
  --ol-amber: #C58F26;         /* mid tone — borders, gradients */
  --ol-accent: #8A5D12;        /* text-safe accent on paper (5.1:1) */
  --ol-accent-soft: rgba(184, 121, 31, 0.09);
  --ol-accent-line: rgba(184, 121, 31, 0.24);
  --ol-grad-warm: linear-gradient(95deg, #B8791F, #E8B04F);
  --ol-grad-dark: linear-gradient(95deg, #E8B04F, #F5D48C);
}

/* ---------- Scroll reveal (progressive enhancement, js/reveal.js)
   Only applies once <html> gets .nc-reveal, so with JS off,
   reduced motion, or no IntersectionObserver everything shows. */
html.nc-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
html.nc-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Layout primitives ---------- */
.ol-section { padding: clamp(60px, 7.5vw, 116px) var(--gutter); }
.ol-section--tight { padding-top: clamp(20px, 3vw, 40px); }
.ol-section--flush { padding-bottom: clamp(24px, 3vw, 44px); }
/* .ol-section--rule: the line itself lives in styles.css (.nc-rule group) so it
   stays inside the content column instead of spanning the viewport. */
.ol-wrap--narrow { max-width: 900px; margin-inline: auto; }
.ol-prose { max-width: 62ch; }

/* ---------- Shared type ---------- */
.ol-eyebrow { margin: 0 0 18px; }

.ol-h2 {
  font-family: var(--ff-title); font-weight: 700;
  font-size: clamp(1.95rem, 4.1vw, 2.95rem);
  line-height: 1.03; letter-spacing: -0.035em;
  color: var(--ink); margin: 0; text-wrap: balance;
}
.ol-h2--dark { color: #fff; }
.ol-h3 {
  font-family: var(--ff-title); font-weight: 700; font-size: 20px;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 10px;
}
.ol-lead {
  font-family: var(--ff-body); font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6; color: var(--ink-60); margin: 22px 0 0;
}
.ol-body { font-family: var(--ff-body); font-size: 16.5px; line-height: 1.65; color: var(--ink-60); margin: 0; }
.ol-body + .ol-body { margin-top: 16px; }
/* ---------- Buttons ---------- */
.ol-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-title); font-size: 15px; font-weight: 600;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.ol-btn__arrow { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.ol-btn:hover .ol-btn__arrow { transform: translateX(3px); }

/* Black primary, neutral shadow. On dark panels use .ol-btn--light instead. */
.ol-btn--primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -16px rgba(10, 10, 8, 0.7); }
.ol-btn--primary:hover { background: var(--ink-elevated); transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(10, 10, 8, 0.8); }

.ol-btn--ghost { border-color: var(--border-ink-strong); color: var(--ink); }
.ol-btn--ghost:hover { border-color: var(--ink); background: rgba(10, 10, 8, 0.05); transform: translateY(-2px); }

.ol-btn--light { background: #fff; color: var(--ink); }
.ol-btn--light:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.6); }

.ol-btn--ghost-dark { border-color: rgba(255, 255, 255, 0.3); color: var(--on-dark); }
.ol-btn--ghost-dark:hover { border-color: rgba(255, 255, 255, 0.72); color: #fff; transform: translateY(-2px); }

/* ---------- Browser frame (hero + inline shots) ---------- */
.ol-browser {
  border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: 0 44px 80px -40px rgba(10, 10, 8, 0.42);
}
.ol-browser__bar {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 16px;
  background: var(--ink);
}
.ol-browser__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); flex: 0 0 auto; }
.ol-browser__url {
  margin-left: 12px; font-family: var(--ff-mono); font-size: 12px; color: var(--on-dark-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* No fixed aspect ratio: the shot takes the image's own proportions so a
   screenshot is never cropped. The img's width/height attributes reserve
   the box before load, so this costs no layout shift. */
.ol-browser__shot { position: relative; overflow: hidden; background: var(--surface-light); }
.ol-browser__shot img {
  width: 100%; height: auto; display: block;
}

/* ---------- Engagement band (dark) ---------- */
.ol-band {
  position: relative; overflow: hidden;
  background: var(--ink); border-radius: 32px;
  padding: clamp(30px, 4vw, 52px) clamp(24px, 4vw, 56px);
}
.ol-band::before,
.ol-band::after {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  pointer-events: none;
}
.ol-band::before { top: -46%; left: -6%; background: radial-gradient(circle, rgba(232, 176, 79, 0.26), transparent 68%); }
.ol-band::after { bottom: -50%; right: -6%; background: radial-gradient(circle, rgba(184, 121, 31, 0.3), transparent 68%); }

.ol-meta {
  position: relative; z-index: 1; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 48px);
}
.ol-meta__item {
  position: relative;
}
.ol-meta__item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: calc(clamp(24px, 3.6vw, 48px) * -0.5);
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.ol-meta__term {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--on-dark-muted); margin: 0 0 10px;
}
.ol-meta__def {
  font-family: var(--ff-title); font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.15; letter-spacing: -0.025em;
  color: #fff; margin: 0;
}

/* ---------- Two-column intro ---------- */
.ol-split {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.ol-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.ol-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-title); font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface-light); border: 1px solid var(--border-ink);
  padding: 9px 16px; border-radius: 999px;
}
.ol-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ol-grad-warm); flex: 0 0 auto;
}

.ol-quotepanel {
  position: relative; background: var(--surface-light);
  border: 1px solid var(--border-ink); border-radius: 24px;
  padding: clamp(26px, 3vw, 38px);
}
.ol-quotepanel__kicker {
  font-family: var(--ff-title); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45); margin: 0;
}
.ol-quotepanel__mark {
  font-family: var(--ff-title); font-size: 56px; font-weight: 800; line-height: 0.7;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ol-quotepanel__text {
  font-family: var(--ff-title); font-weight: 600;
  font-size: clamp(18px, 2vw, 22px); line-height: 1.4; letter-spacing: -0.02em;
  color: var(--ink); margin: 14px 0 0;
}
.ol-quotepanel__meta {
  font-family: var(--ff-body); font-size: 14px; line-height: 1.5; color: var(--ink-45);
  margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--border-ink);
}

/* ---------- Risk / answer comparison ---------- */
.ol-compare {
  border: 1px solid var(--border-ink); border-radius: 24px; overflow: hidden;
  background: var(--surface-light);
}
.ol-compare__head, .ol-compare__row { display: grid; grid-template-columns: 1fr 1fr; }
.ol-compare__head > div {
  font-family: var(--ff-title); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; padding: 16px clamp(18px, 2.2vw, 28px);
}
.ol-compare__head > div:first-child { color: var(--ink-35); }
.ol-compare__head > div:last-child { color: var(--ink); background: var(--ol-accent-soft); }
.ol-compare__row > div {
  display: flex; gap: 12px; align-items: flex-start;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 28px);
  border-top: 1px solid var(--border-ink);
  font-family: var(--ff-body); font-size: 15.5px; line-height: 1.5;
}
.ol-compare__row > div:first-child { color: var(--ink-45); }
.ol-compare__row > div:last-child { color: var(--ink); background: var(--ol-accent-soft); }
.ol-compare__row a { color: var(--ink); border-bottom: 1px solid var(--ol-accent-line); font-weight: 600; }
.ol-compare__row a:hover { border-bottom-color: var(--ol-accent); }

/* ---------- Timeline ---------- */
.ol-timeline { position: relative; margin-top: clamp(36px, 4vw, 56px); padding-left: 0; list-style: none; }
.ol-timeline::before {
  content: ""; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px;
  background: linear-gradient(180deg, #8A5D12, #C58F26 55%, rgba(232, 176, 79, 0.2));
}
.ol-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: clamp(18px, 2.6vw, 34px); }
.ol-step + .ol-step { margin-top: clamp(20px, 2.4vw, 30px); }
.ol-step__node {
  position: relative; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-mono); font-size: 13px; font-weight: 700; color: #fff;
  background: var(--grad); box-shadow: 0 0 0 6px var(--paper);
}
.ol-step__card {
  background: var(--surface-light); border: 1px solid var(--border-ink);
  border-radius: 22px; padding: clamp(22px, 2.6vw, 30px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.ol-step__card:hover { transform: translateY(-3px); border-color: var(--border-ink-strong); }
.ol-step__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ol-step__when {
  font-family: var(--ff-mono); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink-45); white-space: nowrap;
}
.ol-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.ol-list--two { grid-template-columns: 1fr 1fr; column-gap: 26px; }
.ol-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--ff-body); font-size: 15px; line-height: 1.5; color: var(--ink-60);
}
.ol-list li::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 8px;
  border-radius: 50%; background: var(--ol-grad-warm);
}

/* ---------- Detail panel: a labelled list on its own surface ----------
   Used under the prose in a feature row, so the walkthrough paragraph and the
   itemised detail read as two different kinds of text instead of one column of
   grey. Same surface and label treatment as .rv-detail on the ReactView case,
   so the two pages read as one system. No rules between the rows: the gap and
   the bullets carry the separation. */
.ol-panel {
  margin-top: clamp(22px, 2.4vw, 28px);
  padding: clamp(20px, 2.2vw, 26px) clamp(22px, 2.4vw, 28px);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border-ink); border-radius: 16px;
}
.ol-panel__label {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--ol-accent);
  margin: 0 0 12px;
}
.ol-panel .ol-list { margin: 0; gap: 10px; }
.ol-panel .ol-list li { font-size: 14.5px; line-height: 1.6; }
.ol-panel .ol-list li::before { margin-top: 7px; }

/* ---------- Order path: the real status chain ----------
   Grid rather than a flex chain: eight stages never fit on one row at a
   readable width, and a flex chain leaves a single orphan stretched across
   the second row. Four-up × two rows wraps predictably, and reading order
   carries the sequence, so no numbers or arrow glyphs are needed. */
.ol-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: clamp(30px, 3.6vw, 44px); }
.ol-flow__stage {
  position: relative; overflow: hidden;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    linear-gradient(145deg, rgba(232, 176, 79, 0.42), rgba(255, 255, 255, 0.14) 46%, rgba(184, 121, 31, 0.26) 100%) border-box;
  border: 1px solid transparent; border-radius: 16px; padding: 16px 18px;
}
.ol-flow__stage::before {
  content: ""; position: absolute; pointer-events: none;
  top: -46%; right: -22%; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 176, 79, 0.18), transparent 68%);
}
.ol-flow__name { position: relative; font-family: var(--ff-title); font-weight: 700; font-size: 14.5px; letter-spacing: -0.015em; color: #fff; margin: 0 0 5px; }
.ol-flow__gloss { position: relative; font-family: var(--ff-body); font-size: 13px; line-height: 1.45; color: var(--on-dark-muted); margin: 0; }
.ol-flow__detours { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 30px); margin-top: clamp(20px, 2.4vw, 28px); }
.ol-flow__detour {
  background: var(--surface-light);
  border: 1px solid var(--border-ink); border-radius: 16px; padding: 16px 18px;
}
.ol-flow__detour-title { font-family: var(--ff-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ol-accent); margin: 0 0 8px; }
.ol-flow__detour-text { font-family: var(--ff-body); font-size: 14.5px; line-height: 1.55; color: var(--ink-60); margin: 0; }

/* ---------- Feature row: copy beside a real screen ----------
   The shot column carries .ol-browser, whose height is intrinsic to the
   screenshot (see the frame rule above). :nth-child(even) alternates sides
   if a second row is ever added. */
.ol-features { display: grid; gap: 0; margin-top: clamp(34px, 4vw, 52px); }
.ol-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 58px); align-items: center; }
.ol-feature:nth-child(even) .ol-feature__copy { order: 2; }
/* Keep the screenshot in the wider column on both sides of the alternation. */
.ol-feature:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
.ol-feature__shot { position: relative; }
/* The copy column carries a heading, a paragraph and a panel, so its heading
   needs more weight than a card title to stay the top of that stack. */
.ol-feature__copy .ol-h3 {
  font-size: clamp(21px, 2.1vw, 25px); line-height: 1.15;
  letter-spacing: -0.025em; margin-bottom: 14px;
}
.ol-feature__copy .ol-body { color: var(--ink-70); }
/* Hairline between rows. Grid gap is 0 so the margin and padding can be equal,
   which centres the rule in the space rather than hanging it off the next row.
   Matches the weight of .ol-section--rule, so rows and sections read as the
   same kind of division at two scales. */
.ol-feature + .ol-feature {
  margin-top: clamp(44px, 5.4vw, 80px);
  padding-top: clamp(44px, 5.4vw, 80px);
  border-top: 1px solid var(--border-ink);
}

/* ---------- Compact module grid (the rest of the surface area) ---------- */
.ol-modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); margin-top: clamp(30px, 3.6vw, 44px); }
.ol-module {
  position: relative; overflow: hidden;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    linear-gradient(145deg, rgba(232, 176, 79, 0.55), rgba(255, 255, 255, 0.18) 42%, rgba(184, 121, 31, 0.35) 100%) border-box;
  border: 1px solid transparent;
  border-radius: 18px; padding: clamp(20px, 2.2vw, 26px);
}
.ol-module::before {
  content: ""; position: absolute; pointer-events: none;
  top: -40%; right: -20%; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 176, 79, 0.22), transparent 68%);
}
.ol-module__title {
  position: relative;
  font-family: var(--ff-title); font-weight: 700; font-size: 16px; letter-spacing: -0.015em;
  color: #fff; margin: 0 0 8px;
}
.ol-module__text {
  position: relative;
  font-family: var(--ff-body); font-size: 14.5px; line-height: 1.55;
  color: var(--on-dark-muted); margin: 0;
}

/* ---------- Provenance note (why the screen is safe to show) ---------- */
.ol-note {
  display: flex; gap: 13px; align-items: flex-start;
  margin-top: clamp(26px, 3vw, 36px); padding: 16px 20px;
  border: 1px dashed var(--border-ink-strong); border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  font-family: var(--ff-body); font-size: 14px; line-height: 1.55; color: var(--ink-45);
}
.ol-note strong { color: var(--ink); font-weight: 600; }
.ol-note svg { flex: 0 0 auto; color: var(--ol-accent); margin-top: 2px; }

/* ---------- Result panel ---------- */
.ol-result { position: relative; overflow: hidden; background: var(--ink); border-radius: 32px; padding: clamp(30px, 4.4vw, 60px); }
.ol-result::before {
  content: ""; position: absolute; top: -34%; right: -8%; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 176, 79, 0.34), rgba(184, 121, 31, 0.18) 42%, transparent 70%);
  pointer-events: none;
}
.ol-result__inner { position: relative; z-index: 1; }
.ol-result__statement {
  font-family: var(--ff-title); font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.28; letter-spacing: -0.03em;
  color: #fff; margin: 0; max-width: 32ch; text-wrap: balance;
}
.ol-result__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 32px); margin-top: clamp(30px, 3.6vw, 46px);
  padding-top: clamp(26px, 3vw, 38px); border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.ol-result__label { font-family: var(--ff-title); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0 0 10px; }
.ol-result__text { font-family: var(--ff-body); font-size: 15px; line-height: 1.6; color: var(--on-dark); margin: 0; }

/* ---------- Playbook cards ---------- */
.ol-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 24px); margin-top: clamp(34px, 4vw, 52px); }
.ol-card {
  background: var(--surface-light); border: 1px solid var(--border-ink); border-radius: 22px;
  padding: clamp(24px, 2.6vw, 32px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.35s;
}
.ol-card:hover { transform: translateY(-4px); border-color: var(--border-ink-strong); box-shadow: 0 22px 40px -26px rgba(10, 10, 8, 0.4); }
.ol-card__icon {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--ol-accent-soft); border: 1px solid var(--ol-accent-line); color: var(--ol-accent);
  margin-bottom: 18px;
}

/* ---------- FAQ ---------- */
.ol-faq { margin-top: clamp(30px, 3.6vw, 46px); border-top: 1px solid var(--border-ink); }
.ol-faq__item { border-bottom: 1px solid var(--border-ink); }
.ol-faq__item summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: clamp(20px, 2.2vw, 26px) 0; cursor: pointer; list-style: none;
  font-family: var(--ff-title); font-weight: 600; font-size: clamp(16.5px, 1.8vw, 19px);
  letter-spacing: -0.02em; color: var(--ink); transition: color 0.25s;
}
.ol-faq__item summary::-webkit-details-marker { display: none; }
.ol-faq__item summary:hover { color: var(--ol-accent); }
.ol-faq__sign { position: relative; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; }
.ol-faq__sign::before, .ol-faq__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor;
  transform: translate(-50%, -50%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}
.ol-faq__sign::before { width: 15px; height: 2px; }
.ol-faq__sign::after { width: 2px; height: 15px; }
.ol-faq__item[open] .ol-faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.ol-faq__answer {
  font-family: var(--ff-body); font-size: 16px; line-height: 1.65; color: var(--ink-60);
  margin: 0 0 clamp(22px, 2.4vw, 28px); max-width: 68ch;
}
.ol-faq__answer a { color: var(--ink); border-bottom: 1px solid rgba(10, 10, 8, 0.3); }
.ol-faq__answer a:hover { border-bottom-color: var(--ol-accent); }

/* ---------- Closing CTA ---------- */
.ol-cta {
  position: relative; overflow: hidden; background: var(--ink);
  border-radius: 36px; padding: clamp(38px, 5.6vw, 84px) clamp(26px, 4vw, 72px);
  text-align: center;
}
.ol-cta::before, .ol-cta::after {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; pointer-events: none;
}
.ol-cta::before { top: -30%; left: -8%; background: radial-gradient(circle, rgba(232, 176, 79, 0.26), transparent 70%); }
.ol-cta::after { bottom: -34%; right: -6%; background: radial-gradient(circle, rgba(184, 121, 31, 0.28), transparent 70%); }
.ol-cta__inner { position: relative; z-index: 1; }
.ol-cta__lead { font-family: var(--ff-body); font-size: clamp(16.5px, 1.8vw, 19px); line-height: 1.6; color: var(--on-dark-muted); max-width: 58ch; margin: 22px auto 0; }
.ol-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Next case study ---------- */
.ol-next {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--surface-light); border: 1px solid var(--border-ink); border-radius: 24px;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 38px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.ol-next:hover { transform: translateY(-3px); border-color: var(--border-ink-strong); }
.ol-next__label { font-family: var(--ff-title); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-45); margin: 0 0 8px; }
.ol-next__title { font-family: var(--ff-title); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -0.03em; color: var(--ink); margin: 0; }
.ol-next__go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-title); font-size: 15px; font-weight: 600; color: var(--ink); }
.ol-next:hover .ol-next__go span { transform: translateX(4px); }
.ol-next__go span { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* ---------- Sticky mobile CTA ---------- */
.ol-sticky {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(10, 10, 8, 0.94); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px;
  padding: 12px 12px 12px 18px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateY(140%); opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}
.ol-sticky.is-in { transform: none; opacity: 1; }
.ol-sticky__text { font-family: var(--ff-title); font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; }
.ol-sticky__text span { display: block; font-family: var(--ff-body); font-size: 12.5px; font-weight: 400; color: var(--on-dark-muted); margin-top: 2px; }
.ol-sticky .ol-btn { padding: 12px 20px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .ol-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 4vw, 34px); }
  .ol-meta__item:not(:first-child)::before {
    left: calc(clamp(22px, 4vw, 34px) * -0.5);
  }
  /* Drop the left-edge divider on the first cell of each row */
  .ol-meta__item:nth-child(odd)::before { display: none; }
  .ol-result__grid { grid-template-columns: 1fr; gap: 22px; }
  .ol-cards { grid-template-columns: 1fr; }
  .ol-modules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .ol-split { grid-template-columns: 1fr; }
  .ol-sticky { display: flex; }
  /* Stack every feature row copy-first, overriding the alternation */
  .ol-feature { grid-template-columns: 1fr; }
  .ol-feature:nth-child(even) .ol-feature__copy { order: 0; }
  .ol-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ol-meta { grid-template-columns: 1fr; gap: 22px; }
  .ol-meta__item:not(:first-child)::before { display: none; }
  .ol-meta__item:not(:first-child) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 22px;
  }
  .ol-compare__head { display: none; }
  .ol-compare__row { grid-template-columns: 1fr; }
  .ol-compare__row > div:first-child { padding-bottom: 8px; }
  .ol-compare__row > div:last-child { border-top: 0; }
  .ol-list--two { grid-template-columns: 1fr; }
  .ol-step { grid-template-columns: 32px 1fr; gap: 16px; }
  .ol-step__node { width: 32px; height: 32px; font-size: 11.5px; box-shadow: 0 0 0 5px var(--paper); }
  .ol-timeline::before { left: 15px; }
  .ol-btn { width: 100%; }
  .ol-sticky .ol-btn { width: auto; }
  .ol-modules { grid-template-columns: 1fr; }
  .ol-flow { grid-template-columns: 1fr; }
  .ol-flow__detours { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ol-card, .ol-step__card, .ol-next, .ol-btn, .ol-sticky { transition: none; }
  .ol-card:hover, .ol-step__card:hover, .ol-next:hover, .ol-btn:hover { transform: none; }
}
