/* portfolio.masterobm.com. Layout and drawings on top of family.css (unchanged copy of Website Family/family.css).
   Same rule as the other sites: gold = the founder's (cased gold on light grounds), slate = carried by Master OBM. */

body { background: var(--paper); color: var(--ink-900); }
section[id], article[id], li[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, .kind-text p, .story p { text-wrap: pretty; }
h4 { margin: 0; }

/* 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; }
.ext { white-space: nowrap; }
.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; }
.brand { display: flex; align-items: baseline; gap: 14px; white-space: nowrap; }
.mark { font-size: 1.6rem; line-height: 1; text-decoration: none; padding-block: 10px; }
.mark i { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; }
.mark b { font-weight: 700; letter-spacing: -.03em; }
.brand .sub { padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted); font-size: 1.0625rem; }
.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 { text-decoration: underline; text-decoration-color: var(--carried); }
.nav .action { min-height: 48px; padding: 11px 20px; }
.menu { display: none; }

/* Opening */
.open { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(64px, 8vw, 120px); }
.open-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; align-items: end; }
.open h1 { max-width: 13ch; }
.open .lead { margin-top: 30px; max-width: 50ch; }
.open .acts { margin-top: 36px; }
.covers ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.covers a { display: block; }
.covers img, .card img { display: block; width: 100%; height: auto; background: var(--mist); }
.covers a:hover img { outline: 1px solid var(--ink-900); outline-offset: 3px; }
.covers figcaption { margin-top: 14px; }

/* Proof: in their words (ink) */
.words .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 64px 0; }
.quote blockquote { margin: 0; }
.quote figcaption { margin-top: 22px; color: var(--muted); }
.quote figcaption strong { color: var(--fg); font-weight: 600; }
.quote .go { margin-top: 10px; }
.quote-main { grid-column: 1 / 9; }
.quote-main blockquote p { font-family: var(--display); font-size: clamp(2.1rem, 4.4vw, 4.1rem); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.quote-side { grid-column: 9 / -1; align-self: end; padding-left: 40px; border-left: 1px solid var(--line); }
.quote-side blockquote p { font-family: var(--display); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.3; letter-spacing: -.01em; }
.quote-side .note { margin-top: 14px; color: var(--muted); font-size: 1rem; max-width: 34ch; }
.built { grid-column: 1 / -1; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 72px; align-items: end; }
.built h3 { font-weight: 400; color: var(--muted); font-size: 1.125rem; }
.built dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.built div { display: flex; flex-direction: column-reverse; }
.built dd { margin: 0; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.02em; }
.built dt { margin-top: 8px; color: var(--muted); }

/* Section heads */
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 72px; align-items: end; }
.head h2 { max-width: 18ch; }

/* The work */
.kind { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 28px 72px; padding-block: 56px; border-top: 1px solid var(--line); }
.head + .kind { margin-top: clamp(48px, 6vw, 88px); }
.job { font-size: 1rem; font-weight: 600; color: var(--muted); }
.kind h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.1; letter-spacing: -.015em; margin-top: 6px; }
.kind-text > p:not(.job):not(.engine-tag) { margin-top: 16px; color: var(--muted); max-width: 40ch; }
.engine-tag { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .9375rem; color: var(--muted); }
.engine-tag::before { content: ""; width: 28px; height: 2px; background: var(--carried); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 40px 28px; align-content: start; }
.card { display: flex; flex-direction: column; }
.card img { border: 1px solid var(--line); }
.card h4 { margin-top: 16px; font-size: 1.1875rem; line-height: 1.3; font-weight: 600; }
.card p { margin-top: 4px; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.card .go { display: inline-block; min-height: 0; margin-top: 2px; padding-block: 10px; font-size: 1rem; line-height: 1.35; }
.card .links { display: flex; flex-wrap: wrap; column-gap: 20px; }
.card-page { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-rows: 1fr auto auto auto; column-gap: 32px; }
.card-page img { grid-column: 1; grid-row: 1 / -1; }
.card-page h4, .card-page p, .card-page .go { grid-column: 2; }
.card-page h4 { grid-row: 2; margin-top: 0; }
.card-page p { grid-row: 3; }
.card-page .go { grid-row: 4; justify-self: start; }

/* Path diagram (HTML) */
.path-fig { margin-top: clamp(48px, 6vw, 88px); }
.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.flow li { position: relative; padding-right: 30px; display: flex; flex-direction: column; }
.flow .node { display: flex; align-items: center; min-height: 76px; padding: 12px 14px; border: 1.5px solid var(--carried); background: var(--bg); font-weight: 600; line-height: 1.25; }
.flow .is-yours .node { border: 3px solid var(--gold); box-shadow: 0 0 0 1px var(--yours-text); color: var(--ink-900); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 37px; right: 6px; width: 18px; height: 2px; background: var(--carried); }
.flow li:not(:last-child)::before { content: ""; position: absolute; top: 33px; right: 0; border: 5px solid transparent; border-left: 8px solid var(--carried); border-right: 0; }
.flow .say { margin-top: 10px; font-size: 1rem; color: var(--muted); line-height: 1.35; }
.flow .ex { margin-top: 10px; font-size: .9375rem; font-weight: 600; line-height: 1.35; text-decoration-color: var(--carried); }
.flow .ex:hover { text-decoration-color: currentColor; }
.notes { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 14px 48px; margin-top: 36px; }
.ground-paper .key .is-yours::before, .ground-white .key .is-yours::before, .ground-mist .key .is-yours::before { height: 5px; border: 1px solid var(--gold-text); }

/* Stories */
.story-list { margin-top: clamp(64px, 8vw, 112px); }
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px 72px; padding-block: 44px; border-top: 1px solid var(--line); }
.who h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.1; letter-spacing: -.015em; }
.who p { margin-top: 6px; color: var(--muted); }
.mini { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 40px; }
.mini li { position: relative; display: flex; align-items: center; min-height: 64px; padding: 10px 14px; border: 1.5px solid var(--carried); font-weight: 600; font-size: 1rem; line-height: 1.25; }
.mini li:not(:last-child)::after { content: ""; position: absolute; left: calc(100% + 6px); top: 50%; width: 22px; height: 2px; background: var(--carried); }
.mini li:not(:last-child)::before { content: ""; position: absolute; left: calc(100% + 26px); top: calc(50% - 4px); border: 5px solid transparent; border-left: 8px solid var(--carried); border-right: 0; }
.mini .is-yours { border: 3px solid var(--gold); box-shadow: 0 0 0 1px var(--yours-text); }
.story .what > p { margin-top: 22px; color: var(--muted); max-width: 60ch; }

/* Drawings (SVG) */
.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: 16px; fill: var(--muted); }
.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 .base { stroke: var(--line); stroke-width: 1.5; }
.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 .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 .hc { fill: var(--carried); }
.tall { display: none; }
.behind-fig { margin-top: clamp(56px, 7vw, 104px); }

/* One moving moment: the carried steps trace in once, when the figure comes into view */
.draw .trace { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .is-armed .trace { stroke-dashoffset: 1; }
  .is-armed .arrive { opacity: .25; }
  .is-playing .trace { animation: trace .3s linear var(--d, 0s) both; }
  .is-playing .arrive { animation: arrive .3s ease-out var(--d, 0s) both; }
}
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes arrive { from { opacity: .25; } to { opacity: 1; } }

/* Engine map */
.emap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 36px; margin-top: clamp(48px, 6vw, 88px); }
.emap section { border-top: 2px solid var(--ink-900); padding-top: 20px; }
.emap h3 { font-size: 1.125rem; }
.gpieces { margin-top: 10px; font-size: 1rem; font-weight: 600; }
.gpieces a, .pieces a { text-decoration-color: var(--carried); }
.emap ul { margin-top: 14px; }
.emap li { position: relative; padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.emap li::before { content: ""; position: absolute; left: 0; top: 19px; width: 10px; height: 10px; border: 1.5px solid var(--carried); }
.emap li.has::before { background: var(--ink-900); border-color: var(--ink-900); top: 20px; }
.emap li.has { color: var(--fg); font-weight: 600; font-size: 1.0625rem; }
.pieces { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; font-weight: 400; font-size: 1rem; }
.pieces a, .gpieces a { display: inline-flex; align-items: center; min-height: 32px; }
.engines .more { margin-top: 36px; }

/* Close */
.close { padding-block: clamp(72px, 9vw, 136px); }
.close .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px 72px; align-items: end; }
.close h2 { max-width: 16ch; }
.close .body { margin-top: 22px; }

/* Footer */
.foot a { display: inline-flex; align-items: center; min-height: 32px; }
.foot .small { margin-top: 10px; font-size: .9375rem; }

@media (max-width: 1180px) {
  .draw.wide { display: none; }
  .draw.tall { display: block; max-width: 460px; }
  .draw.tall text { font-size: 20px; }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 36px; }
  .flow li:nth-child(4)::after, .flow li:nth-child(4)::before { display: none; }
}

@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: 1000px) {
  .open-grid, .head, .close .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .covers ul { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; }
  .quote-main, .quote-side { grid-column: 1 / -1; }
  .quote-side { padding-left: 0; padding-top: 40px; border-left: 0; border-top: 1px solid var(--line); }
  .built { grid-template-columns: minmax(0, 1fr); }
  .kind, .story { grid-template-columns: minmax(0, 1fr); }
  .emap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 0; max-width: 460px; }
  .flow li { padding: 0 0 40px 0; }
  .flow li:last-child { padding-bottom: 0; }
  .flow .node { min-height: 56px; }
  .flow li:nth-child(4)::after, .flow li:nth-child(4)::before { display: block; }
  .flow li:not(:last-child)::after { top: auto; right: auto; left: 28px; bottom: 8px; width: 2px; height: 22px; }
  .flow li:not(:last-child)::before { top: auto; right: auto; left: 24px; bottom: 0; border: 5px solid transparent; border-top: 8px solid var(--carried); border-bottom: 0; }
  .flow .say, .flow .ex { padding-left: 46px; }
  .flow .say { margin-top: 8px; }
  .flow .ex { margin-top: 2px; }
  .card-page { grid-template-columns: minmax(0, 1fr); }
  .card-page img { grid-row: auto; }
  .card-page h4 { margin-top: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .mark { font-size: 1.45rem; }
  .brand { gap: 10px; }
  .brand .sub { padding-left: 10px; font-size: 1rem; }
  .open .action, .close .action { width: 100%; }
  .built dl { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .emap { grid-template-columns: minmax(0, 1fr); }
  .mini { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .mini li { min-height: 48px; margin-bottom: 30px; }
  .mini li:last-child { margin-bottom: 0; }
  .mini li:not(:last-child)::after { left: 22px; top: calc(100% + 1.5px); width: 2px; height: 20px; }
  .mini li:not(:last-child)::before { left: 18px; top: calc(100% + 18px); border: 5px solid transparent; border-top: 8px solid var(--carried); border-bottom: 0; }
  .notes { display: grid; gap: 18px; }
}
@media (max-width: 340px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .brand .sub { display: none; }
}
