/* masterobm.com version 1. Layout and drawings, built on top of family.css (unchanged copy).
   Drawing rule: a cased gold line is the founder's. A plain line is carried by Master OBM.
   The casing also keeps the two apart without relying on color. */

body { background: var(--paper); color: var(--ink-900); }
section[id], .engine[id] { scroll-margin-top: 24px; }
.skip { --focus: var(--ink-900); position: absolute; left: 16px; top: -80px; z-index: 5; padding: 12px 18px; background: var(--ink-950); color: var(--paper); }
.skip:focus { top: 16px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.lead, .body, figcaption, .reach-row p, .cycle p { text-wrap: pretty; }

/* Links that are not buttons */
.go { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--carried); }
.go:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }

/* Header */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.mark { font-size: 1.6rem; line-height: 1; text-decoration: none; white-space: nowrap; padding-block: 10px; }
.mark i { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
.mark b { font-weight: 700; letter-spacing: -.03em; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 1.0625rem; }
.nav a:not(.action) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:not(.action):hover, .nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--carried); }
.nav .action { min-height: 48px; padding: 11px 20px; }
.menu { display: none; }

/* Drawings */
.draw { display: block; width: 100%; height: auto; overflow: visible; }
.draw path, .draw line { fill: none; stroke-linecap: butt; }
.draw text { font-family: var(--text); font-size: 18px; fill: var(--fg); }
.draw .sm { font-size: 17px; fill: var(--muted); }
.draw .cyc { font-size: 20px; }
.draw .b { font-weight: 600; }
.draw .mid { text-anchor: middle; }
.draw .end { text-anchor: end; }
.draw .ty { font-weight: 600; fill: var(--yours-text); }
.draw .c { stroke: var(--carried); stroke-width: 1.75; }
.draw .f { stroke: var(--fg); stroke-width: 2; }
.draw .case { stroke: var(--yours-text); stroke-width: 5; }
.draw .y { stroke: var(--gold); stroke-width: 3; }
.draw .dot { fill: var(--bg); stroke: var(--carried); stroke-width: 2; }
.draw .dot-f { fill: var(--fg); }
.draw .dot-y { fill: var(--gold); stroke: var(--yours-text); stroke-width: 1.5; }
.draw .box { fill: var(--bg); stroke: var(--carried); stroke-width: 1.5; }
.draw .box-y { fill: var(--bg); stroke: var(--gold); stroke-width: 3; }
.draw .box-yc { fill: none; stroke: var(--yours-text); stroke-width: 5; }
.draw .block { fill: var(--ink-900); }
.draw .on-block { fill: var(--paper); }
.draw .on-block-sm { fill: #BAC6D8; font-size: 16px; }
.draw .hc { fill: var(--carried); }
.draw .hf { fill: var(--fg); }
.draw .hy { fill: var(--yours-text); }
.tall { display: none; }
.ground-paper .key .is-yours::before, .ground-mist .key .is-yours::before { height: 5px; border: 1px solid var(--gold-text); }
.notes { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 14px 48px; margin-top: 36px; }
.example { font-size: 1.0625rem; color: var(--muted); }

/* Opening */
.open { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(64px, 8vw, 120px); }
.open h1 span { display: block; }
.open-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 28px 72px; align-items: end; margin-top: 34px; }
.open .lead { max-width: 56ch; }
.open figure { margin-top: clamp(44px, 5vw, 72px); }

/* Three starting points */
.starts { padding-bottom: var(--space); }
.starts ul { border-top: 1px solid var(--line); }
.starts li { border-bottom: 1px solid var(--line); }
.starts a { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 8px 48px; align-items: baseline; padding-block: 30px; text-decoration: none; }
.starts .say { font-family: var(--display); font-size: clamp(1.55rem, 2.5vw, 2.25rem); line-height: 1.2; letter-spacing: -.015em; }
.starts .to { font-weight: 600; text-decoration: underline; text-decoration-color: var(--carried); text-decoration-thickness: 1px; text-underline-offset: .22em; }
.starts a:hover .to { text-decoration-color: currentColor; text-decoration-thickness: 2px; }

/* What we do (ink) */
.belief .statement { font-size: clamp(2.2rem, 5.1vw, 4.75rem); line-height: 1.08; max-width: 23ch; }
.belief .after { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); }
.belief .after > div { grid-column: 6 / -1; display: grid; gap: 18px; }
.belief .after .body { max-width: 54ch; }
.belief figure { margin-top: clamp(72px, 9vw, 136px); }
.belief .draw { margin-top: 40px; }

/* One idea's route */
.route-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 72px; align-items: end; }
.route-head .body + .body { margin-top: 16px; }
.route figure { margin-top: clamp(56px, 7vw, 104px); }
.route .draw { margin-top: 36px; }
.fig-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; min-height: 44px; }
.replay { min-height: 44px; padding: 8px 0; border: 0; background: none; color: inherit; font: 600 1.0625rem/1.4 var(--text); text-decoration: underline; text-decoration-color: var(--carried); text-decoration-thickness: 1px; text-underline-offset: .22em; cursor: pointer; }
.replay:hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.draw .base { stroke: var(--line); stroke-width: 1.75; }
.draw .base-bar { stroke: var(--line); stroke-width: 7; }
.draw .bar { stroke: var(--carried); stroke-width: 7; }
.draw .trace { stroke-dasharray: 1; stroke-dashoffset: 0; }
.draw .arrive { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .is-armed .trace { stroke-dashoffset: 1; }
  .is-armed .arrive { opacity: .28; }
  .is-playing .trace { animation: trace var(--t, .4s) linear var(--d, 0s) both; }
  .is-playing .arrive { animation: arrive .25s ease-out var(--d, 0s) both; }
}
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes arrive { from { opacity: .28; } to { opacity: 1; } }

/* How far each kind of support goes */
.reach .wrap > .reach-head { max-width: 780px; margin-left: auto; }
.reach-head .body { margin-top: 20px; }
.reach-rows { margin-top: clamp(48px, 6vw, 88px); }
.reach-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 72px; align-items: center; padding-block: 44px; border-top: 1px solid var(--line); }
.reach-row h3 { font-size: 1.4rem; }
.reach-row p { margin-top: 10px; max-width: 38ch; color: var(--muted); }
.lanes { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr); row-gap: 14px; font-size: 1rem; color: var(--muted); }
.axis, .lane { display: grid; grid-template-columns: 3fr 4fr 4fr 4fr; align-items: center; }
.axis { grid-column: 2; padding-bottom: 4px; }
.lane { position: relative; height: 36px; }
.lane i { display: block; }
.own { height: 5px; background: var(--gold); border: 1px solid var(--yours-text); }
.held { height: 14px; background: var(--carried); }
.lane .s1 { grid-column: 1 / 2; } .lane .s24 { grid-column: 2 / 5; } .lane .s14 { grid-column: 1 / 5; }
.lane .s34 { grid-column: 3 / 5; }
.lane > * { grid-row: 1; }
.bits { grid-column: 3 / 5; display: flex; gap: 7%; padding-left: 4%; }
.bits i { flex: 0 0 12%; }
.lanes .ties { position: absolute; left: 132px; right: 0; bottom: 18px; height: 50px; pointer-events: none; }
.ties i { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--carried); }
.reach .notes { border-top: 1px solid var(--line); margin-top: 0; padding-top: 32px; }

/* Engines on the front page */
.engines figure { margin-top: clamp(52px, 6vw, 92px); }
.engines-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); justify-content: space-between; gap: 28px 72px; align-items: start; }
.engines-head .go { margin-top: 14px; }

/* Scale Your Capacity */
.syc .name { font-size: clamp(2.6rem, 8vw, 7.6rem); line-height: 1; }
.syc .name .tm { font: 400 .3em/1 var(--text); letter-spacing: 0; vertical-align: 1.55em; margin-left: .12em; }
.syc .lead { margin-top: 28px; max-width: 52ch; }
.cycle { margin-top: clamp(64px, 8vw, 112px); }
.cycle ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cycle li { padding-right: 40px; }
.cycle h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.3rem); letter-spacing: -.015em; margin-top: 26px; }
.cycle p { margin-top: 10px; color: var(--muted); max-width: 30ch; }
.cycle-back { display: none; }
.syc .acts { margin-top: clamp(52px, 6vw, 80px); }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 0; }
.about-grid h2 { grid-column: 1 / 8; }
.about-grid .story { grid-column: 8 / -1; display: grid; gap: 18px; align-content: start; padding-top: 12px; }
.fit { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 72px; padding-top: 44px; border-top: 1px solid var(--line); }
.fit li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.fit li:first-child { padding-top: 0; }

/* Closing */
.close { padding-block: clamp(72px, 9vw, 136px); border-top: 1px solid var(--line); }
.close .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px 72px; align-items: end; }
.close .body + .acts { margin-top: 26px; }
.foot a { display: inline-flex; align-items: center; min-height: 32px; }

/* Engines page */
.eng-open { padding-top: clamp(36px, 5vw, 80px); padding-bottom: clamp(56px, 7vw, 104px); }
.eng-open h1 { max-width: 13ch; }
.eng-open-row { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 28px 72px; align-items: end; margin-top: 34px; }
.catalog { padding-bottom: var(--space); }
.catalog > .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 88px; align-items: start; }
.map { position: sticky; top: 28px; }
.map .draw { width: auto; max-width: 100%; height: min(768px, calc(100vh - 96px)); margin-inline: 0 auto; }
.map figcaption { margin-top: 20px; }
.group + .group { margin-top: clamp(72px, 8vw, 120px); }
.group > h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); margin-bottom: 30px; }
.engine { padding-block: 38px 42px; border-top: 1px solid var(--line); }
.engine h3 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -.01em; }
.engine dl { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px 28px; margin-top: 18px; }
.engine dt { color: var(--muted); }
.engine .part { color: var(--yours-text); font-weight: 600; }
.engine .part + dd { font-weight: 600; }
.map .draw .node, .map .draw .edge { transition: opacity .25s ease; }
.map .head { fill: var(--carried); }
.map[data-on] .draw .node, .map[data-on] .draw .edge { opacity: .34; }
.map .draw .node.is-on, .map .draw .edge.is-on { opacity: 1; }
.map .draw .node.is-here .box { fill: var(--ink-900); stroke: var(--ink-900); }
.map .draw .node.is-here .box + text { fill: var(--paper); }
.map .draw .edge.is-on .c { stroke: var(--ink-900); stroke-width: 2.5; }
.map .draw .edge.is-on .sm { fill: var(--fg); }
.together .statement { font-size: clamp(2.2rem, 4.8vw, 4.4rem); line-height: 1.08; max-width: 17ch; }
.together .cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 44px; }
.together .cols > div { grid-column: 6 / -1; }
.together .acts { margin-top: 32px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { display: inline-flex; align-items: center; min-height: 48px; padding-inline: 4px; font-weight: 600; cursor: pointer; list-style: none; text-decoration: underline; text-decoration-color: var(--carried); text-underline-offset: .22em; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { --focus: var(--gold); position: absolute; right: 0; top: calc(100% + 8px); z-index: 4; display: grid; width: min(320px, calc(100vw - 2 * var(--gutter))); padding: 14px 24px 24px; background: var(--ink-950); color: var(--paper); }
  .menu nav a:not(.action) { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid #2C456B; text-decoration: none; }
  .menu nav .action { margin-top: 20px; }
  .top .wrap { min-height: 76px; }
}

@media (max-width: 1180px) {
  .draw.wide { display: none; }
  .draw.tall { display: block; max-width: 460px; margin-inline: auto; }
  .cycle .draw.wide { display: block; }
}
@media (max-height: 739px) and (min-width: 1001px) {
  .map { position: static; }
  .map .draw { width: 100%; height: auto; max-width: 420px; }
}

@media (max-width: 1000px) {
  .open h1 span { display: inline; }
  .open-row, .eng-open-row, .route-head, .engines-head, .close .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .belief .after > div, .together .cols > div { grid-column: 3 / -1; }
  .reach .wrap > .reach-head { margin-left: 0; }
  .reach-row { grid-template-columns: minmax(0, 1fr); }
  .reach-row p { max-width: 56ch; }
  .about-grid h2, .about-grid .story { grid-column: 1 / -1; }
  .about-grid { gap: 32px 0; }
  .fit { margin-top: 24px; grid-template-columns: minmax(0, 1fr); }
  .cycle ol { display: contents; }
  .cycle { display: grid; grid-template-columns: minmax(0, 1fr) 34px; max-width: 620px; }
  .cycle .draw.wide { display: none; }
  .cycle li { grid-column: 1; position: relative; padding: 0 20px 44px 34px; }
  .cycle li:not(:last-of-type)::after { content: ""; position: absolute; left: -1px; top: 16px; bottom: -9px; border-left: 2px solid var(--carried); }
  .cycle li:last-of-type { padding-bottom: 0; }
  .cycle li::before { content: ""; position: absolute; left: -8px; top: 9px; width: 14px; height: 14px; border: 2px solid var(--carried); border-radius: 50%; background: var(--bg); }
  .cycle h3 { margin-top: 0; }
  .cycle-back { display: block; position: relative; grid-column: 2; grid-row: 2 / 4; margin: 16px 0 -16px; border: 2px solid var(--carried); border-left: 0; }
  .cycle-back::before { content: ""; position: absolute; left: -8px; top: -7px; border: 6px solid transparent; border-right: 10px solid var(--carried); border-left: 0; }
  .catalog > .wrap { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .map { position: static; }
  .map .draw { display: block; width: 100%; height: auto; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .mark { font-size: 1.45rem; }
  .starts a { grid-template-columns: minmax(0, 1fr); padding-block: 24px; }
  .belief .after > div, .together .cols > div { grid-column: 1 / -1; }
  .lanes { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .lanes > span { margin-top: 12px; }
  .axis { grid-column: 1; }
  .lanes .ties { display: none; }
  .reach-row { padding-block: 36px; }
  .open .action, .close .action, .syc .action, .eng-open .action, .together .action { width: 100%; }
  .engine dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .engine dd + dt { margin-top: 14px; }
  .notes { display: grid; gap: 18px; }
}

/* Key under the support comparison matches its bars */
.key-bars li::before { height: 10px; background: var(--carried); }
.key-bars .is-yours::before { height: 5px; background: var(--gold); border: 1px solid var(--gold-text); }
