/* Overview section beneath the opening hero (Claude Studio version only). */
.ov {
  --ov-ink: #14211f;
  --ov-soft: #5d6a66;
  --ov-line: #e2dfd5;
  --ov-green: #1f9d63;
  --ov-red: #c8432b;
  position: relative;
  color: var(--ov-ink);
  background: #fbfaf6;
}
.ov-inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: clamp(72px, 9vw, 128px) clamp(64px, 8vw, 104px);
}
.ov-why {
  max-width: 16em;
  font: 600 clamp(30px, 4vw, 46px)/1.06 "Inter Tight", system-ui, sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.ov-why em { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: -.01em; }

/* ── the two cards ─────────────────────────────────────────── */
.ov-cards {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: clamp(32px, 4.5vw, 56px);
}
.ov-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid var(--ov-line);
  border-radius: 24px;
  background: #fdfcf9;
}
.ov-test { background: #f6f4ee; }
.ov-art { position: relative; flex: 1; display: grid; align-items: center; padding: 40px 36px 12px; }
.ov-cap { padding: 20px 36px 34px; }
.ov-cap h3 { font: 500 21px/1.2 "Inter Tight", system-ui, sans-serif; letter-spacing: -.02em; }
.ov-cap p { margin-top: 8px; max-width: 46ch; font-size: 14.5px; line-height: 1.55; color: var(--ov-soft); text-wrap: pretty; }

/* fine lines gathering into the spec file */
.ov-strands { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ov-strands path { fill: none; stroke: #7fd6a4; stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: .75; }
.ov-strands path:nth-child(even) { stroke: #b5e26b; }

.ov-sheet {
  position: relative;
  justify-self: end;
  width: min(100%, 372px);
  margin-right: clamp(0px, 6%, 44px);
  padding: 20px 24px 24px;
  border: 1px solid #e6e3da;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -22px rgba(31, 60, 48, .28);
  container-type: inline-size;
}
.ov-path { display: block; font: 11px/1.4 "JetBrains Mono", monospace; color: #7b8783; }
.ov-path b { font-weight: 500; color: #1f7a45; }
.ov-sheet strong { display: block; margin-top: 14px; font: 600 17px/1.2 "Inter Tight", system-ui, sans-serif; letter-spacing: -.02em; }
.ov-rule-line { margin-top: 8px; padding-bottom: 5px; }
.ov-rule {
  white-space: nowrap;
  font-size: min(14.5px, 4.7cqi);
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: var(--ov-green);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.ov-roped .ov-rule { text-decoration: none; }
.ov-bars { display: grid; gap: 8px; margin-top: 16px; }
.ov-bars i { display: block; height: 7px; border-radius: 4px; background: #efede6; }
.ov-bars i:nth-child(1) { width: 58%; }
.ov-bars i:nth-child(2) { width: 36%; }

/* test rows */
.ov-run { display: grid; gap: 10px; width: 100%; padding-left: 26px; }
.ov-file { font: 11px/1.4 "JetBrains Mono", monospace; color: #7b8783; padding-left: 4px; margin-bottom: 2px; }
.ov-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #e6e3da;
  border-radius: 13px;
  background: #fff;
}
.ov-row i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #bfe6cf; }
.ov-row s { display: block; height: 7px; border-radius: 4px; background: #efede6; }
.ov-fail {
  margin-left: -26px;
  border-color: var(--ov-red);
  box-shadow: 0 14px 30px -20px rgba(200, 67, 43, .55);
  font: 12px/1.35 "JetBrains Mono", monospace;
  color: #a13a26;
  padding-block: 13px;
}
.ov-fail b { flex: none; font-weight: 500; }

/* the rope: underline + tether, one stroke */
.ov-rope { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ov-rope path { fill: none; stroke: var(--ov-green); stroke-width: 1.75px; stroke-linecap: round; stroke-linejoin: round; }
.ov-rope circle { fill: #fff; stroke: var(--ov-red); stroke-width: 1.75px; }
.ov-rope .ov-knot { fill: var(--ov-red); stroke: none; }
.ov-cards:not(.ov-roped) .ov-rope { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ov-armed .ov-rope path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .ov-armed .ov-rope circle { opacity: 0; }
  .ov-armed.ov-live .ov-rope path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.6, .05, .25, 1); }
  .ov-armed.ov-live .ov-rope circle { opacity: 1; transition: opacity .3s 1.35s; }
}

/* ── client case ───────────────────────────────────────────── */
.ov-client {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  margin-top: 20px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--ov-line);
  border-radius: 24px;
  background: #f6f4ee;
}
.ov-credit { font-size: 13px; color: var(--ov-soft); }
.ov-credit strong { display: block; margin-top: 6px; font: 600 24px/1.1 "Inter Tight", system-ui, sans-serif; letter-spacing: -.035em; color: var(--ov-ink); }
.ov-story { margin-top: clamp(22px, 3vw, 36px); max-width: 24em; font: 500 clamp(19px, 2.1vw, 25px)/1.32 "Inter Tight", system-ui, sans-serif; letter-spacing: -.02em; text-wrap: pretty; }
.ov-surfaces { display: flex; flex-wrap: wrap; margin-top: clamp(24px, 3vw, 38px); border-top: 1px solid #d9d5c9; list-style: none; }
.ov-surfaces li { position: relative; flex: 1 0 auto; padding: 14px 14px 0 0; font: 11px/1.4 "JetBrains Mono", monospace; color: var(--ov-soft); white-space: nowrap; }
.ov-surfaces li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: #f6f4ee; border: 1.5px solid var(--ov-green); }
.ov-shot { padding: clamp(10px, 1.6vw, 18px); border: 1px solid #e6e3da; border-radius: 20px; background: #fff; box-shadow: 0 24px 50px -34px rgba(40, 50, 30, .35); }
.ov-shot img { display: block; width: 100%; height: auto; }

.ov-join { display: flex; justify-content: center; margin-top: clamp(44px, 6vw, 72px); }
.ov-join .pill { min-height: 46px; padding: 0 26px; font-size: 14.5px; }

@media (max-width: 1040px) {
  .ov-art { padding-inline: 24px; }
  .ov-cap { padding-inline: 24px; }
  .ov-run { padding-left: 18px; }
  .ov-fail { margin-left: -18px; }
}

/* ── stacked ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ov-cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ov-card { min-height: 0; }
  /* caption first on the spec card, so the file sits right above the test */
  .ov-git { flex-direction: column-reverse; }
  .ov-git .ov-art { padding: 8px 20px 40px; }
  .ov-git .ov-cap { padding: 28px 24px 16px; }
  .ov-test .ov-art { padding: 44px 20px 8px; }
  .ov-test .ov-cap { padding: 20px 24px 28px; }
  .ov-sheet, .ov-run { width: min(100%, 400px); margin-inline: auto; justify-self: center; }
  .ov-sheet { padding-inline: 18px; }
  .ov-run { padding-left: 0; }
  .ov-fail { order: -1; margin-left: 0; }
  .ov-file { order: -2; }
  .ov-strands { display: none; }
  .ov-client { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .ov-inner { width: calc(100% - 24px); }
  .ov-fail { font-size: 11px; gap: 9px; padding-inline: 12px; }
}
