/* marylynn-mlb.github.io: shared styles.
   Palette and type carried over from the Squarespace site. */
:root {
  --sand: #E1D9C1;
  --teal: #062A30;
  --gold: #F2C200;   /* sunlit gold: text only on teal; on light grounds it is a fill or highlighter */
  --red: #E3263E;    /* crimson: text on teal or sand; never touches gold */
  --grey: #B3BCBC;   /* mist: teal text only, crimson as fill only */
  --card: #EFE9D6;
  --muted: #3C5A5E;
  --quiet: #55585D;
  --gutter: 48px;
}
@media (max-width: 720px) { :root { --gutter: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--teal);
  font-family: 'Work Sans', system-ui, sans-serif;
  line-height: 1.5;
}
a { color: var(--teal); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.site-header :focus-visible, .bets :focus-visible, .moves :focus-visible, .site-footer--teal :focus-visible { outline-color: var(--gold); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--teal); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }

/* Type helpers */
.display { font-family: 'Unbounded', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.label { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Header and nav */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); background: var(--teal); position: relative; z-index: 3; }
.logo { display: block; line-height: 0; }
.logo img { display: block; height: 48px; width: auto; transform: rotate(-4deg); }   /* the MLB art is drawn level; the tilt lives here */
.nav { display: flex; flex-wrap: wrap; gap: 6px 30px; font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.nav a { color: var(--sand); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.nav a:focus-visible, .logo:focus-visible { outline-color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 30px; background: var(--teal); border: 2px solid var(--teal); border-radius: 25px; text-decoration: none; color: var(--sand); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--teal); }
.btn-outline { background: transparent; color: var(--teal); }
.link:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 40px var(--gutter); background: var(--grey); color: var(--teal); font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.site-footer--teal { background: var(--teal); color: var(--sand); padding-top: 36px; padding-bottom: 48px; }
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Home ---------- */
.hero { padding: 40px var(--gutter) 0; }
.hero h1 { margin: 0 0 24px; font-size: clamp(40px, 9vw, 80px); line-height: 1; letter-spacing: -0.03em; position: relative; z-index: 3; }
.hero h1 .nw { white-space: nowrap; }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: stretch; }
.hero-text { flex: 1 1 360px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-width: 0; padding-bottom: 24px; }
.hero-text h2 { font-size: clamp(30px, 5vw, 52px); color: var(--teal); }
.hero-text h2 { position: relative; z-index: 4; text-wrap: balance; padding-bottom: .35em; }
.hero-text h2 .nw { white-space: nowrap; }
/* The MLB tag finishes the sentence: inline after "me" on desktop, may overlap the gold block. On phones the stage copy is used instead. */
.mlb-inline { display: inline-block; height: 1.8em; width: auto; vertical-align: -0.42em; margin: -0.8em -3.35em -0.6em 0.12em; transform: rotate(-4deg); }
.hero-stage .mlb { display: none; }
.hero-text h2 .hl { background: linear-gradient(transparent 52%, var(--gold) 52%, var(--gold) 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; }
.hero-text p { margin: 0 0 32px; font-size: 21px; line-height: 1.6; text-wrap: pretty; }
.hero-stage { flex: 0 0 400px; min-width: 280px; max-width: 100%; position: relative; height: 440px; margin: -56px 0 0 auto; clip-path: inset(-200px -200px 0 -200px); }
.hero-stage .block { position: absolute; left: 0; right: 0; bottom: 0; top: 70px; background: var(--gold); }
.hero-stage .mlb { position: absolute; left: -30%; top: 9%; width: 52%; height: auto; transform: rotate(-4deg); z-index: 3; }   /* completes "My friends call me"; may overlap the gold block */
.hero-stage .me { position: absolute; left: 0; top: 0; width: 100%; height: auto; z-index: 2; }
@media (max-width: 900px) {
  .hero-stage { margin: 0 auto; flex-basis: 100%; max-width: 400px; }
  .hero-stage .mlb { display: block; left: 0; top: 2%; width: 40%; }
  .mlb-inline { display: none; }
  .hero-text { padding-bottom: 0; }
  .hero-text p { margin-bottom: 8px; font-size: 19px; }
}

.band-grey { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 48px; padding: 40px var(--gutter); background: var(--grey); border-bottom: 2px solid var(--teal); }
.band-grey .copy { flex: 1 1 420px; max-width: 700px; display: flex; flex-direction: column; gap: 10px; }
.band-grey h3 { font-size: clamp(22px, 3vw, 31px); }
.band-grey p { margin: 0; font-size: 19px; line-height: 1.6; }
.band-grey .label { color: var(--teal); }

.bets { position: relative; display: flex; align-items: stretch; background: var(--teal); color: var(--sand); overflow: hidden; }
.bets .bulb { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: 24%; object-fit: contain; object-position: left center; -webkit-mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, #000 62%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, #000 55%, transparent 100%), linear-gradient(to bottom, #000 62%, transparent 100%); mask-composite: intersect; pointer-events: none; z-index: 0; }
.bets .inner { position: relative; z-index: 1; flex: 1 1 auto; display: flex; flex-direction: column; gap: 28px; padding: 64px 56px 64px 20%; justify-content: center; }
.bets h3 { font-size: clamp(22px, 3vw, 31px); color: var(--gold); max-width: 900px; }
.bets .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 56px; }
.bets p { margin: 0; font-size: 19px; line-height: 1.65; }
@media (max-width: 800px) {
  .bets .bulb { max-width: none; width: 70%; opacity: .16; }
  .bets .inner { padding: 48px var(--gutter); }
  .bets .cols { grid-template-columns: 1fr; }
}

.moves { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; padding: 40px var(--gutter); border-top: 2px solid var(--teal); border-bottom: 2px solid var(--teal); background: var(--teal); color: var(--sand); font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: clamp(16px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -0.02em; text-transform: uppercase; }
.moves .sep { color: var(--red); }
/* Left-aligned with the paragraph text in the bets band above */
.moves { justify-content: flex-start; padding-left: 20%; }
@media (max-width: 800px) { .moves { padding-left: var(--gutter); } }
@media (max-width: 560px) { .moves { flex-direction: column; align-items: flex-start; } .moves .sep { transform: rotate(90deg); } }

.experience { display: flex; flex-direction: column; gap: 56px; padding: 80px var(--gutter); }
@media (max-width: 720px) { .experience { padding: 48px var(--gutter); gap: 40px; } }
.exp-top { display: flex; flex-wrap: wrap; gap: 24px 64px; }
.exp-top h3 { flex: 0 0 280px; font-size: clamp(22px, 3vw, 31px); }
@media (max-width: 720px) { .exp-top h3 { flex-basis: 100%; } }
.exp-top .body { flex: 1 1 460px; max-width: 720px; display: flex; flex-direction: column; gap: 20px; font-size: 19px; line-height: 1.65; }
.exp-top p { margin: 0; }
.exp-top .li-link { font-weight: 700; color: var(--red); }
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; }
.exp-card { background: var(--card); border: 2px solid var(--teal); padding: 28px; }
.exp-card .label { font-size: 14px; }
.exp-card h4 { margin: 6px 0 16px; font-family: 'Unbounded', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 22px; letter-spacing: -0.01em; }
.exp-card ul { margin: 14px 0 0; padding-left: 20px; font-size: 18px; line-height: 1.7; }
.exp-card h4 + ul { margin-top: 0; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 56px var(--gutter); background: var(--red); }
.cta h3 { font-size: clamp(22px, 3vw, 31px); max-width: 640px; }
.cta .btn { min-height: 56px; padding: 0 32px; font-size: 17px; letter-spacing: .06em; text-transform: none; }

/* ---------- The Lab index ---------- */
.index-hero { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-end; padding: 72px var(--gutter) 56px; }
.index-hero .title { display: flex; flex-direction: column; gap: 14px; flex: 0 1 auto; max-width: 100%; }
.index-hero h1 { font-size: clamp(44px, 12vw, 104px); line-height: .95; letter-spacing: -0.03em; color: var(--red); overflow-wrap: anywhere; }
.index-hero .note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--quiet); max-width: 0; min-width: 100%; }
.index-hero .intro { flex: 1 1 380px; max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.index-hero .intro .lead { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 700; }
.index-hero .intro p { margin: 0; font-size: 18px; line-height: 1.6; }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 20px var(--gutter); border-top: 2px solid var(--teal); border-bottom: 2px solid var(--teal); }
.filters .group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip { cursor: pointer; min-height: 44px; padding: 0 20px; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--teal); border-radius: 25px; background: transparent; color: var(--teal); }
.chip[aria-pressed="true"] { background: var(--teal); color: var(--sand); }
.chip .count { opacity: .75; }
.no-js .filters { display: none; }

.grid-wrap { padding: 48px var(--gutter) 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 32px; }
.empty { margin: 0; padding: 48px 0; font-size: 22px; font-style: italic; color: var(--muted); }
.card { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--teal); text-decoration: none; color: var(--teal); }
a.card { transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--teal); }
.card[hidden] { display: none; }
.thumb { position: relative; height: 210px; overflow: hidden; border-bottom: 2px solid var(--teal); }
.thumb .sheet { position: absolute; left: 32px; right: 32px; top: 30px; bottom: -24px; background: var(--card); border: 2px solid var(--teal); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.thumb .sheet i { display: block; height: 10px; background: #E1D9C1; }
.thumb .sheet i:first-child { width: 46%; background: #CFC6A8; }
.thumb .sheet i:nth-child(2) { width: 78%; }
.thumb .sheet i:nth-child(3) { width: 62%; }
.thumb .sheet i:nth-child(4) { width: 70%; }
.thumb .word { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) rotate(-5deg); text-align: center; font-family: 'Permanent Marker', cursive; font-size: 76px; line-height: 1; color: var(--teal); padding: 0 8px; }
.thumb img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 26px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-meta .kind { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border: 2px solid var(--teal); background: var(--card); border-radius: 25px; color: var(--teal); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--teal); background: var(--card); }
.badge.live { background: var(--gold); }
.badge.live::before { background: var(--teal); }
.badge.dev, .badge.idea, .badge.retired { border-style: dashed; }
.card h2 { font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 17px; line-height: 1.55; }

/* ---------- Project page ---------- */
.crumb { padding: 28px var(--gutter) 0; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.crumb a, .pager a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumb a:hover, .pager a:hover { text-decoration: underline; text-underline-offset: 6px; }
.p-hero { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; padding: 24px var(--gutter) 64px; }
.p-hero .info { flex: 1 1 440px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pills .pill { padding: 4px 12px; border: 2px solid var(--teal); border-radius: 25px; background: var(--card); }
.pills .badge { padding: 4px 12px; }
.p-hero h1 { font-size: clamp(40px, 8vw, 76px); line-height: .98; letter-spacing: -0.03em; color: var(--red); overflow-wrap: anywhere; }
.p-hero .tagline { margin: 0; font-size: clamp(22px, 3vw, 28px); line-height: 1.25; font-weight: 700; }
.p-hero .summary { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.p-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.p-visual { flex: 1 1 380px; position: relative; height: 420px; overflow: hidden; border: 2px solid var(--teal); min-width: 0; }
.p-visual .sheet { position: absolute; left: 44px; right: 44px; top: 44px; bottom: -30px; background: var(--card); border: 2px solid var(--teal); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.p-visual .sheet i { display: block; height: 14px; background: #E1D9C1; }
.p-visual .sheet i:first-child { width: 42%; background: #CFC6A8; }
.p-visual .sheet i:nth-child(2) { width: 80%; }
.p-visual .sheet i:nth-child(3) { width: 64%; }
.p-visual .sheet i:nth-child(4) { width: 72%; }
.p-visual .sheet i:nth-child(5) { width: 50%; }
.p-visual .word { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) rotate(-5deg); text-align: center; font-family: 'Permanent Marker', cursive; line-height: 1; color: var(--teal); }
@media (max-width: 720px) { .p-visual .word { font-size: 72px !important; } }
.p-visual img.shot { width: 100%; height: 100%; object-fit: cover; display: block; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--teal); border-bottom: 2px solid var(--teal); background: var(--card); }
.fact { padding: 22px 28px; border-right: 2px solid var(--teal); }
.fact:first-child { padding-left: var(--gutter); }
.fact:last-child { padding-right: var(--gutter); border-right: 0; }
.fact .v { margin-top: 6px; font-size: 19px; font-weight: 700; }
@media (max-width: 720px) { .fact { border-right: 0; border-bottom: 2px solid var(--teal); padding-left: var(--gutter); padding-right: var(--gutter); } .fact:last-child { border-bottom: 0; } }

.story { padding: 72px var(--gutter) 24px; display: flex; flex-direction: column; gap: 64px; }
@media (max-width: 720px) { .story { padding-top: 48px; gap: 44px; } }
.row { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.row h2 { flex: 0 0 220px; font-size: 17px; line-height: 1.25; letter-spacing: -0.01em; }
.row h2 .sub { display: block; margin-top: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
@media (max-width: 720px) { .row h2 { flex-basis: 100%; } }
.prose { flex: 1 1 460px; max-width: 700px; display: flex; flex-direction: column; gap: 20px; font-size: 20px; line-height: 1.6; min-width: 0; }
.prose.loose { gap: 28px; }
.prose p { margin: 0; }
.prose p.lead strong { font-weight: 700; background: linear-gradient(transparent 58%, var(--hl, var(--gold)) 58%); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; }
.prose a { color: var(--teal); }

.shots { padding: 48px var(--gutter) 72px; }
.shots h2 { margin: 0 0 28px; font-size: 17px; letter-spacing: -0.01em; }
.shots .shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.shots figure img { width: 100%; height: auto; border: 2px solid var(--teal); display: block; background: var(--card); }
.shots figcaption { font-size: 16px; line-height: 1.45; color: var(--muted); }
.spacer { height: 48px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px var(--gutter); border-top: 2px solid var(--teal); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Long-form ---------- */
.long { padding: 72px var(--gutter) 96px; }
@media (max-width: 720px) { .long { padding-top: 40px; padding-bottom: 56px; } }
.long .wrap { max-width: 1100px; margin: 0 auto; }
.long .head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding-bottom: 28px; margin-bottom: 48px; border-bottom: 2px solid var(--teal); }
.long .head h1 { font-size: clamp(26px, 4vw, 34px); }
.long .head .when { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.article { max-width: 720px; font-size: 19px; line-height: 1.7; }
.article h2 { margin: 44px 0 12px; font-size: 21px; line-height: 1.3; font-weight: 700; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 36px 0 12px; font-size: 19px; line-height: 1.3; font-weight: 700; }
.article p { margin: 0 0 20px; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 24px; }
.article li { margin-bottom: 8px; }
.article strong.hl { font-weight: 700; background: linear-gradient(transparent 58%, var(--gold) 58%); }
.article .kicker { font-family: 'Unbounded', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }

@media (prefers-reduced-motion: reduce) {
  .btn, a.card { transition: none; }
  .btn:hover, a.card:hover { transform: none; }
}

/* Embeds inside project text (e.g. a playlist) */
.prose iframe { width: 100%; max-width: 560px; border: 0; border-radius: 12px; }
.prose img { height: auto; }

/* ---------- Screenshot viewer ---------- */
.zoom { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; position: relative; font: inherit; }
.zoom::after { content: "Enlarge"; position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; background: var(--teal); color: var(--sand); font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 25px; opacity: 0; transition: opacity .12s ease; }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .zoom::after { opacity: 1; } }
html.lb-open { overflow: hidden; }
.lightbox { padding: 0; border: 2px solid var(--teal); background: var(--sand); color: var(--teal); width: min(96vw, 1400px); max-width: none; max-height: 96vh; overflow: hidden; }
.lightbox::backdrop { background: rgba(6, 42, 48, .88); }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 12px 8px 20px; border-bottom: 2px solid var(--teal); font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lb-close, .lb-nav { cursor: pointer; font-family: 'Space Grotesk', sans-serif; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); background: var(--card); border: 2px solid var(--teal); border-radius: 25px; }
.lb-close { min-height: 44px; padding: 0 18px; font-size: 13px; }
.lb-nav { width: 48px; height: 48px; font-size: 20px; flex: 0 0 auto; }
.lb-nav[hidden] { display: none; }
.lb-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: var(--card); }
.lb-img { display: block; max-width: 100%; max-height: calc(96vh - 190px); width: auto; height: auto; object-fit: contain; border: 2px solid var(--teal); background: #fff; }
.lb-cap { margin: 0; padding: 12px 20px 16px; font-size: 16px; line-height: 1.45; color: var(--muted); min-height: 1.45em; }
@media (max-width: 720px) {
  .lb-stage { padding: 8px; gap: 10px; flex-wrap: wrap; overflow-y: auto; }
  .lb-img { order: 0; flex: 0 0 100%; max-height: calc(96vh - 260px); }
  .lb-prev { order: 1; }
  .lb-next { order: 2; }
}

/* Card teaser: first screenshot faded under the word */
.thumb img.teaser { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: .35; filter: grayscale(1); mix-blend-mode: multiply; }   /* the card keeps its true palette color; the screenshot only adds texture */

/* Project page hero screenshot */
.p-visual .hero-zoom { display: block; position: relative; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }
.p-visual .hero-zoom::after { content: "Enlarge"; position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; background: var(--teal); color: var(--sand); font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 25px; opacity: 0; transition: opacity .12s ease; }
.p-visual .hero-zoom:hover::after, .p-visual .hero-zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .p-visual .hero-zoom::after { opacity: 1; } }
.p-visual.has-shot { height: auto; align-self: flex-start; background: var(--card) !important; }
.p-visual.has-shot img.shot { width: 100%; height: auto; max-height: 560px; object-fit: contain; display: block; background: var(--card); }

/* Consulting page */
.long.wide .article { max-width: none; }
.long.wide .article > p, .long.wide .article > ul, .long.wide .article > h2, .long.wide .article > h3 { max-width: 720px; }
.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 28px; margin: 8px 0 40px; }
.package { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--teal); padding: 28px 28px 30px; font-size: 17px; line-height: 1.55; }
.package .tag { margin: 0 0 10px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.package h3 { margin: 0 0 12px; font-size: 26px; line-height: 1.15; }
.package p { margin: 0 0 14px; }
.package h4 { margin: 12px 0 8px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.package ul { margin: 0 0 16px; padding-left: 20px; }
.package li { margin-bottom: 6px; }
.package .meta { margin: auto 0 0; padding-top: 16px; border-top: 2px solid var(--teal); font-weight: 600; }
.article .cta-row { margin: 28px 0 0; }
.article a.btn { color: var(--sand); text-decoration: none; }
.article .bio { padding: 24px 28px; background: var(--card); border: 2px solid var(--teal); }

.phases { margin: 0 0 24px; padding-left: 24px; max-width: 720px; }
.phases li { margin-bottom: 12px; }
.phases li span { color: var(--muted); font-weight: 600; }

/* The Lab index: learned band */
.learned { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; max-width: 1344px; margin: 0 auto 72px; padding: 36px var(--gutter); border-top: 2px solid var(--teal); }
.learned .copy { flex: 1 1 420px; min-width: 0; }
.learned .label { margin-bottom: 10px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.learned h3 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; }
.learned p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 560px; }

/* pull quote */
.long .article blockquote { margin: 40px 0; padding: 4px 0 4px 28px; border-left: 6px solid var(--gold); max-width: 720px; }
.long .article blockquote p { margin: 0; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.35; letter-spacing: -0.01em; color: var(--teal); }

/* Consulting landing: Partnership Foundations */
.landing { overflow-x: clip; font-size: 16px; line-height: 1.6; }
.landing .pf-in { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); }
.landing h1, .landing h2, .landing h3 { margin: 0; }
.landing .btn.light { background: var(--sand); border-color: var(--sand); color: var(--teal); }
.pf-hero { position: relative; background: var(--teal); color: var(--sand); padding: 88px 0 80px; overflow: hidden; }
.pf-hero::before { content: ""; position: absolute; right: -120px; top: -140px; width: 560px; height: 560px; border-radius: 50%; border: 56px solid var(--grey); opacity: .25; }
.pf-hero::after { content: ""; position: absolute; right: 120px; bottom: -150px; width: 300px; height: 300px; border-radius: 50%; background: var(--red); }
.pf-hero .pf-in { position: relative; z-index: 1; }
.pf-hero .eyebrow { margin: 0 0 18px; font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.pf-hero h1 { font-size: clamp(38px, 7.2vw, 84px); max-width: 860px; }
.pf-hero h1 span { color: var(--gold); display: block; }
.pf-hero .hero-lede { margin: 28px 0 36px; max-width: 560px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.4; font-weight: 600; }
.pf-hero .hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.pf-hero .hero-link { color: var(--sand); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; text-underline-offset: 5px; }
.pf-intro { padding: 72px 0 24px; }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: start; }
.intro-copy p { margin: 0 0 14px; font-size: 18px; line-height: 1.5; max-width: 480px; }
.intro-copy p.strong { font-weight: 700; margin-top: 22px; }
.intro-qs { list-style: none; counter-reset: q; margin: 0; padding: 0; display: grid; gap: 14px; }
.intro-qs li { counter-increment: q; display: flex; gap: 16px; align-items: center; padding: 16px 20px; background: var(--card); border: 2px solid var(--teal); }
.intro-qs li::before { content: counter(q); font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 32px; line-height: 1; color: var(--red); -webkit-text-stroke: 1.5px var(--teal); }
.intro-qs li span { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 16px; line-height: 1.35; }
.pf-main { padding: 48px 0 24px; }
.pf-h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.15; max-width: 760px; }
.pf-sub { margin: 14px 0 36px; font-size: 16px; color: var(--muted); max-width: 640px; }
.pf-rowlabel { margin: 0 0 14px; display: flex; align-items: center; gap: 14px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pf-rowlabel::after { content: ""; flex: 1; height: 2px; background: var(--teal); }
.pf-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin: 0 0 40px; }
.pf-grid .pf-card { grid-column: span 2; }
.pf-grid.second .pf-card { grid-column: span 3; }
.pf-card { text-align: left; }
.pf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 20px 12px; border-bottom: 2px solid var(--teal); }
.pf-head .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .1em; }
.pf-head .verb { font-family: 'Unbounded', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(24px, 3vw, 34px); line-height: 1; }
.pf-card .pf-head { background: var(--teal); color: var(--sand); }
.pf-grid.second .pf-card .pf-head { background: var(--grey); color: var(--teal); }
.pf-body { padding: 20px 20px 18px; font-size: 15px; line-height: 1.5; }
.pf-body h3 { font-size: 19px; line-height: 1.2; margin-bottom: 8px; }
.pf-body .pitch { margin: 0 0 14px; font-weight: 700; }
.pf-body dl { margin: 0; }
.pf-body dt { margin: 12px 0 3px; font-family: 'Space Grotesk', sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pf-body dd { margin: 0; }
.pf-meta { margin: auto 20px 0; padding: 14px 0 18px; border-top: 2px solid var(--teal); font-size: 14px; font-weight: 600; }
.pf-body + .pf-meta { margin-top: auto; }
.pf-how { padding: 40px 0 72px; }
.pf-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pf-steps .n {  font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 56px; line-height: 1; display: inline-block; padding: 8px 14px; background: var(--gold); color: var(--teal); margin-bottom: 14px; }
.pf-steps h3 { font-size: 18px; margin-bottom: 8px; }
.pf-steps p { margin: 0; font-size: 15px; line-height: 1.55; }
.pf-note { margin: 32px 0 0; font-size: 16px; font-weight: 600; max-width: 640px; }
.pf-close { background: var(--red); color: var(--teal); padding: 64px 0 72px; }
.pf-close h2 { font-size: clamp(24px, 3.6vw, 40px); }
.pf-close p { margin: 12px 0 28px; font-size: 17px; }
@media (max-width: 960px) { .pf-grid .pf-card, .pf-grid.second .pf-card { grid-column: span 6; } .pf-grid.second { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 820px) { .intro-cols { grid-template-columns: 1fr; } .pf-steps { grid-template-columns: 1fr; gap: 28px; } .pf-hero { padding: 56px 0 56px; } .pf-hero::before { width: 360px; height: 360px; border-width: 36px; right: -140px; top: -120px; } .pf-hero::after { width: 180px; height: 180px; right: 20px; bottom: -90px; } }

.pf-more { margin: 14px 0 0; font-weight: 700; font-size: 14px; }
.pf-more span { text-decoration: underline; text-underline-offset: 4px; }
/* Package detail pages */
.pk-hero { padding: 64px 0 60px; }
.pf-hero .backlink, .pk-hero .backlink { margin: 0 0 28px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pf-hero .backlink a, .pk-hero .backlink a { color: inherit; text-underline-offset: 4px; }
.pk-hero h1 { font-size: clamp(34px, 6vw, 68px); }
.pk-intro { padding: 64px 0 16px; }
.pk-copy p { max-width: 520px; }
.pk-best { padding: 22px 24px; background: var(--card); border: 2px solid var(--teal); font-size: 15px; line-height: 1.55; }
.pk-best p { margin: 0; }
.pk-best .k { margin-bottom: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pk-included { padding: 40px 0 24px; }
.pk-list { list-style: none; margin: 28px 0 0; padding: 0; border-top: 2px solid var(--teal); }
.pk-list li { display: grid; grid-template-columns: 64px minmax(200px, 300px) 1fr; gap: 8px 28px; align-items: start; padding: 22px 0; border-bottom: 2px solid var(--teal); }
.pk-list .n { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 36px; line-height: 1; color: var(--red); -webkit-text-stroke: 1.5px var(--teal); }
.pk-list h3 { font-size: 18px; line-height: 1.25; }
.pk-list p { margin: 0; font-size: 15px; line-height: 1.55; }
.pk-how { padding-top: 40px; padding-bottom: 40px; }
.pk-terms { padding: 24px 0 56px; }
.pk-two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 64px; align-items: start; }
.pk-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 14px; }
.pk-fact { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--card); border: 2px solid var(--teal); }
.pk-fact .l { font-family: 'Space Grotesk', sans-serif; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pk-fact .v { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 16px; line-height: 1.25; }
.pk-fnote { margin: 0; font-size: 15px; color: var(--muted); }
.pk-work { font-size: 15px; line-height: 1.6; }
.pk-work h2 { margin-bottom: 18px; }
.pk-work p { margin: 0 0 14px; }
.pk-result { background: var(--gold); color: var(--teal); padding: 56px 0 60px; }
.pk-result .k { margin: 0 0 14px; font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pk-result .big { margin: 0; max-width: 860px; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: clamp(20px, 2.8vw, 30px); line-height: 1.3; letter-spacing: -0.01em; }
.pk-others { padding: 48px 0 56px; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.pk-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--card); border: 2px solid var(--teal); color: var(--teal); text-decoration: none; font-weight: 700; font-size: 14px; }
.pk-chip span { font-family: 'Space Grotesk', sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pk-chip:hover { background: var(--teal); color: var(--sand); }
.pk-chip:hover span { color: var(--grey); }
@media (max-width: 820px) { .pk-list li { grid-template-columns: 48px 1fr; } .pk-list p { grid-column: 2; } .pk-two { grid-template-columns: 1fr; } .pk-facts { grid-template-columns: 1fr; } .pk-hero { padding: 44px 0 44px; } }
.pk-ext { margin-top: 40px; padding: 22px 26px; background: var(--card); border: 2px solid var(--teal); max-width: 860px; }
.pk-ext .k { margin: 0 0 6px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pk-ext h3 { margin: 0 0 8px; font-size: 18px; }
.pk-ext p:last-child { margin: 0; font-size: 15px; line-height: 1.55; }

.pf-intro, .pf-main, .pk-intro, .pk-included, .pk-terms { border-bottom: 0; }
.pf-how { border-top: 2px solid var(--teal); }
.pk-others { border-top: 2px solid var(--teal); }
.pf-card .pf-meta { margin: auto 20px 0; padding: 14px 0 18px; font-size: 14px; font-weight: 600; }
.pf-card .pf-more { margin: 14px 0 0; font-size: 14px; }
.pf-card .pf-body .pitch { font-size: 15px; }
.pk-line { margin: 20px 0 14px; padding: 18px 20px; background: var(--card); border: 2px solid var(--teal); font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.4; }
.pf-grid.two .pf-card { grid-column: span 3; }
.pf-grid.two .pf-card .pf-body { padding: 24px 24px 20px; font-size: 16px; }
.pf-grid.two .pf-card .pf-body h3 { font-size: 22px; }
.pf-grid.two .pf-card .pf-body .pitch { font-size: 17px; }
.pf-grid.two .pf-meta { margin: auto 24px 0; }
.pf-steps li h3 { margin-top: 0; }
@media (max-width: 960px) { .pf-grid.two .pf-card { grid-column: span 6; } }
.pk-ex { margin: 6px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.55; }
.pk-ex li { margin: 0 0 6px; }
.pk-ext + .pk-ext { margin-top: 20px; }
.pf-bridge { grid-column: span 3; align-self: center; padding: 0 0 0 24px; max-width: 460px; }
.pf-bridge p { margin: 0 0 14px; font-size: 18px; line-height: 1.5; }
@media (max-width: 960px) { .pf-bridge { grid-column: span 6; padding: 0; } }

.hl { background: linear-gradient(transparent 52%, var(--gold) 52%, var(--gold) 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; }

/* Three cards with dropdowns on the Consulting fork page */
.pf-grid.three { align-items: start; }
.pf-grid.three .pf-card { grid-column: span 2; }
.pf-grid.three .pf-head .verb { font-size: clamp(17px, 1.9vw, 24px); }
.pf-grid.three .pf-head { justify-content: flex-start; gap: 14px; }
.pf-grid.three .pf-head .verb { text-align: left; }
.pf-grid.three .pf-body { min-height: 392px; box-sizing: border-box; }
.pf-grid.three .pf-head, .pf-grid.three .pf-meta { box-sizing: border-box; }
.pf-grid.three .pf-meta { margin-top: 0; }
.cd { border-top: 2px solid var(--teal); }
.cd summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; cursor: pointer; list-style: none; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.cd summary::-webkit-details-marker { display: none; }
.cd summary:hover .cd-lab { text-decoration: underline; text-underline-offset: 4px; }
.cd summary:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.cd .lab-o { display: none; }
.cd[open] .lab-c { display: none; }
.cd[open] .lab-o { display: inline; }
.cd-ar { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 20px; line-height: 1; letter-spacing: -0.02em; color: var(--red); transform: rotate(90deg); transition: transform .15s ease; }
.cd[open] .cd-ar { transform: rotate(-90deg); }
.cd-list { display: flex; flex-direction: column; padding: 4px 20px 20px; }
.cd-list.plug { gap: 12px; }
.mp-node { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; background: var(--card); color: var(--teal); border: 2px solid var(--teal); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.mp-node:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--teal); }
.mp-node .v { font-family: 'Unbounded', sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; font-size: 16px; line-height: 1.1; }
.mp-node .t { font-weight: 700; font-size: 14px; line-height: 1.3; }
.mp-node .q { font-size: 13px; line-height: 1.4; color: var(--muted); }
.mp-node.alt { background: transparent; border-style: dashed; }
.mp-sep { flex: none; height: 34px; display: flex; align-items: center; justify-content: center; transform: rotate(90deg); font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: -0.02em; color: var(--red); }
@media (max-width: 960px) { .pf-grid.three .pf-card { grid-column: span 6; } .pf-grid.three .pf-body { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .cd-ar, .mp-node { transition: none; } .mp-node:hover { transform: none; } }

/* Personal note band on the Consulting fork page */
.pf-note-band { background: #B3BCBC; color: #082B30; border-bottom: 2px solid #082B30; overflow: hidden; }
.nb { display: grid; grid-template-columns: 104px 1fr; column-gap: 32px; align-items: center; padding: 22px 0; }
.nb-photo { display: block; width: 104px; height: 124px; margin: 0; object-fit: cover; object-position: 50% 8%; border-radius: 50%; background: #E1D9C1; border: 2px solid #082B30; box-sizing: border-box; }
.nb-text { align-self: center; max-width: 780px; padding: 0; }
.nb-text p { margin: 0; font-size: 18px; line-height: 1.5; }
.nb-text .nb-mark { display: inline-block; height: 1.7em; width: auto; vertical-align: middle; margin-left: 6px; }
@media (max-width: 640px) { .nb { grid-template-columns: 72px 1fr; column-gap: 16px; } .nb-photo { width: 72px; height: 86px; } .nb-text p { font-size: 16px; } .nb-text .nb-mark { height: 1.6em; } }
