/* ==========================================================================
   fredlackey.com: project briefs in color
   One component system, a confident palette, per-project accents.

   Fonts
     Display and labels: Bricolage Grotesque (expressive, tight, big numerals)
     Reading text:       Source Serif 4
   Palette
     Midnight  #14213d  primary: headers, dark bands, diagrams
     Signal    #f26b38  site accent: kickers, CTAs, home highlights
     Saffron   #f7b733  highlight marker; Backup Exec project color
     Teal      #13a89e  DHS project color
     Cream     #fbf5ea  reading background
   Each page sets --proj, --proj-ink, --proj-soft, --proj-on-dark and --hl.
   ========================================================================== */

:root {
  --midnight: #14213d;
  --midnight-2: #1f3158;
  --ink: #17171c;
  --ink-2: #3f3e46;
  --muted: #5b5a63;          /* 6.3:1 on cream */
  --cream: #fbf5ea;
  --cream-2: #f3eadb;
  --white: #fffdf9;
  --rule: #e2d6c2;
  --signal: #f26b38;
  --signal-ink: #b03f15;     /* 5.3:1 on cream */
  --saffron: #f7b733;
  --teal: #13a89e;

  /* project defaults (home page) */
  --proj: var(--signal);
  --proj-ink: var(--signal-ink);
  --proj-soft: #fde3d7;
  --proj-on-dark: #ff9d76;   /* 6.6:1 on midnight */
  --hl: rgba(247, 183, 51, 0.6);

  --display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, serif;

  --max: 1180px;
  --measure: 41rem;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}
body.p-dhs {
  --proj: var(--teal);
  --proj-ink: #0b6b64;       /* 6.0:1 on cream */
  --proj-soft: #d3efea;
  --proj-on-dark: #5fd6cc;   /* 8.6:1 on midnight */
  --hl: rgba(19, 168, 158, 0.32);
}
body.p-bex {
  --proj: var(--saffron);
  --proj-ink: #8a5a00;       /* 5.6:1 on cream */
  --proj-soft: #fdecc4;
  --proj-on-dark: #ffd36b;   /* 10:1 on midnight */
  --hl: rgba(247, 183, 51, 0.6);
}

/* More project accents. Each pairs a fill midnight text reads on, an ink for
   text on cream (5.8:1 or better) and a tint that reads on midnight (9:1 or better). */
body.p-spam { /* lime: SpamJammer */
  --proj: #9bd35a;
  --proj-ink: #3f6b12;
  --proj-soft: #e4f3d2;
  --proj-on-dark: #b8e986;
  --hl: rgba(155, 211, 90, 0.45);
}
body.p-ramian { /* sky: Ramian Technologies */
  --proj: #4fb3e8;
  --proj-ink: #11618f;
  --proj-soft: #d6ecf8;
  --proj-on-dark: #8fd0f5;
  --hl: rgba(79, 179, 232, 0.4);
}
body.p-amzn { /* pink: Amazon */
  --proj: #f28fb0;
  --proj-ink: #a3285a;
  --proj-soft: #fbdde8;
  --proj-on-dark: #f7b3ca;
  --hl: rgba(242, 143, 176, 0.45);
}
body.p-spot { /* lilac: Spotless Software */
  --proj: #b49cf0;
  --proj-ink: #5b3fb0;
  --proj-soft: #e9e1fb;
  --proj-on-dark: #cbbaf7;
  --hl: rgba(180, 156, 240, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--midnight); }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--text); font-size: 1.125rem; line-height: 1.65; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--proj-ink); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; margin: 0; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- type */
.kicker { font-family: var(--display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--proj-ink); margin: 0 0 1rem; display: flex; align-items: center; gap: 0.6rem; }
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--proj); }
.dark .kicker, .color .kicker { color: var(--proj-on-dark); }
.color .kicker { color: var(--midnight); }
.display { font-size: clamp(2.6rem, 7.4vw, 5.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; max-width: 44rem; }
.lede-hero { margin-top: 1.4rem; }
.lede-follow { margin-top: 1rem; }
.lede.intro { margin: 1rem 0 2.4rem; color: var(--ink-2); }
.dark .lede.intro { color: #cdd3e2; }
.hero-action { margin-top: 1.8rem; }
.h2.spaced { margin-bottom: 2.6rem; }
/* The one highlight treatment: a colored marker behind the phrase. */
.hl, .key { background: linear-gradient(to top, var(--hl) 0 52%, transparent 52%); padding: 0 0.1em; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dark .hl { background: linear-gradient(to top, rgba(242, 107, 56, 0.55) 0 45%, transparent 45%); color: #fff; }
.p-dhs .dark .hl { background: linear-gradient(to top, rgba(19, 168, 158, 0.6) 0 45%, transparent 45%); }
.p-bex .dark .hl { background: linear-gradient(to top, rgba(247, 183, 51, 0.5) 0 45%, transparent 45%); }
.p-spam .dark .hl { background: linear-gradient(to top, rgba(155, 211, 90, 0.5) 0 45%, transparent 45%); }
.p-ramian .dark .hl { background: linear-gradient(to top, rgba(79, 179, 232, 0.55) 0 45%, transparent 45%); }
.p-amzn .dark .hl { background: linear-gradient(to top, rgba(242, 143, 176, 0.5) 0 45%, transparent 45%); }
.p-spot .dark .hl { background: linear-gradient(to top, rgba(180, 156, 240, 0.55) 0 45%, transparent 45%); }

/* ---------------------------------------------------------------- bands */
.band { padding: clamp(56px, 9vw, 110px) 0; }
.dark { background: var(--midnight); color: #eef0f6; }
.dark .lede, .dark p { color: #cdd3e2; }
.color { background: var(--proj); color: var(--midnight); }
.soft { background: var(--cream-2); }
.white { background: var(--white); }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--midnight); color: #fff; position: sticky; top: 0; z-index: 30; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: #fff; text-decoration: none; }
.wordmark span { color: var(--proj-on-dark); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-family: var(--display); font-size: 0.95rem; font-weight: 600; }
.nav a { color: #cdd3e2; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current] { color: #fff; border-bottom-color: var(--proj); }
.nav-toggle { display: none; font: 700 0.95rem var(--display); color: #fff; background: transparent; border: 2px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.nav-toggle:hover { border-color: #fff; }
@media (max-width: 720px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; padding: 4px 0 10px; }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .js .nav a[aria-current] { border-bottom-color: var(--proj); }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-art { border-radius: var(--radius); overflow: hidden; }
.crumbs { font-family: var(--display); font-size: 0.9rem; color: #aab3c8; margin-bottom: 1.4rem; }
.crumbs a { color: #cdd3e2; }
.short-link { display: inline-block; margin-top: 1.6rem; font-family: var(--display); font-weight: 600; font-size: 0.9rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--proj-on-dark); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- brief + stats */
.brief-band { padding-top: 0; background: linear-gradient(to bottom, var(--midnight) 0 90px, var(--proj) 90px); }
.brief .kicker { color: var(--proj-ink); }
.brief { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 4vw, 44px); box-shadow: 0 18px 40px -24px rgba(20, 33, 61, 0.45); }
.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px clamp(20px, 3vw, 40px); }
.brief-grid h2 { font-size: 1.05rem; letter-spacing: 0; color: var(--proj-ink); margin-bottom: 0.4rem; }
.brief-grid p { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) { .brief-grid { grid-template-columns: 1fr; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.stat { border-radius: 12px; padding: 20px 18px; background: var(--midnight); color: #eef0f6; }
.stat:nth-child(2) { background: var(--proj); color: var(--midnight); }
.stat:nth-child(3) { background: var(--midnight-2); }
.stat:nth-child(4) { background: var(--proj-soft); color: var(--midnight); }
.stat strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 0.95; letter-spacing: -0.04em; }
.stat:nth-child(odd) strong { color: var(--proj-on-dark); }
.stat span { display: block; margin-top: 8px; font-family: var(--display); font-size: 0.92rem; line-height: 1.35; font-weight: 500; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- case layout */
.case { display: grid; grid-template-columns: minmax(0, var(--measure)) 300px; justify-content: space-between; gap: clamp(32px, 6vw, 72px); }
.case-body h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin: 3.2rem 0 1.2rem; }
.case-body h2::before { content: ""; display: block; width: 48px; height: 6px; border-radius: 3px; background: var(--proj); margin-bottom: 1rem; }
.case-body > h2:first-child { margin-top: 0; }
.case-body h3 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; letter-spacing: -0.015em; }
.case-body ul { padding-left: 1.2em; }
.case-body li { margin-bottom: 0.55em; }
.case-body li::marker { color: var(--proj); }

.facts { position: sticky; top: 84px; align-self: start; font-family: var(--display); font-size: 0.95rem; line-height: 1.4; background: var(--midnight); color: #eef0f6; border-radius: var(--radius); overflow: hidden; }
.facts h2 { background: var(--proj); color: var(--midnight); font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 14px 20px; }
.facts dl { margin: 0; padding: 6px 20px 8px; }
.facts dt { color: var(--proj-on-dark); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 14px; }
.facts dd { margin: 3px 0 0; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.12); font-weight: 500; }
.facts dd:last-child { border-bottom: 0; }
.facts .facts-foot { padding: 0 20px 20px; font-size: 0.85rem; color: #aab3c8; }
@media (max-width: 980px) { .case { grid-template-columns: minmax(0, 1fr); } .facts { position: static; order: -1; } }

/* decisions: numbered cards */
.decisions { counter-reset: d; margin: 1.4rem 0 1.6rem; display: grid; gap: 12px; }
.decisions dt { counter-increment: d; font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.25; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; margin-top: 10px; }
.decisions dt::before { content: counter(d); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--proj); color: var(--midnight); font-weight: 800; font-size: 1.3rem; }
.decisions dd { margin: -4px 0 0 56px; color: var(--ink-2); }

/* lab-launch / step flow */
.steps { list-style: none; counter-reset: s; padding: 0 !important; margin: 1.6rem 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; background: var(--white); border: 1px solid var(--rule); border-left: 6px solid var(--proj); border-radius: 12px; padding: 16px 18px 16px 70px; margin: 0 !important; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--proj-ink); letter-spacing: -0.03em; }
.steps li::marker { content: none; }

/* figures */
.figure { margin: 2rem 0; }
.figure .frame { border-radius: var(--radius); background: var(--midnight); padding: clamp(14px, 2.6vw, 26px); }
.figure .frame.light { background: var(--white); border: 1px solid var(--rule); }
.figure figcaption { margin-top: 0.6rem; font-family: var(--display); font-size: 0.9rem; color: var(--muted); }
.figure.scroll .frame { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-hint { display: none; }
@media (max-width: 640px) { .figure.scroll svg { min-width: 600px; } .scroll-hint { display: inline; } }

/* idle cost bars */
.idle { display: grid; gap: 18px; font-family: var(--display); color: #eef0f6; }
.idle .row-label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.idle .row-label b { font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.idle .track { height: 28px; border-radius: 8px; background: rgba(255,255,255,0.08); overflow: hidden; }
.idle .fill { height: 100%; border-radius: 8px; }
.idle .fill.before { width: 100%; background: repeating-linear-gradient(45deg, #f26b38 0 12px, #e05a28 12px 24px); }
.idle .fill.after { width: 0.6%; background: var(--proj); }
.idle .note { font-size: 0.9rem; color: #aab3c8; margin: 0; }
.idle .row-label b.good { color: var(--proj-on-dark); }

/* per-student breakdown (drill-down) */
.drill { display: grid; gap: 10px; font-family: var(--display); }
.drill .lvl { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.drill .lvl b { font-size: 0.9rem; color: var(--midnight); }
.drill .bar { display: flex; gap: 3px; height: 34px; }
.drill .bar i { flex: 1; border-radius: 6px; background: var(--proj); display: grid; place-items: center; font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--midnight); min-width: 0; overflow: hidden; }
.drill .bar i:nth-child(3n+2) { background: var(--midnight); color: #fff; }
.drill .bar i:nth-child(3n) { background: var(--saffron); }
.drill .bar.fine i { font-size: 0; }
@media (max-width: 520px) { .drill .lvl { grid-template-columns: 1fr; gap: 4px; } }

/* key numbers panel (Backup Exec) */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.numbers div { background: var(--midnight); color: #eef0f6; border-radius: 12px; padding: 18px; }
.numbers strong { display: block; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--proj-on-dark); letter-spacing: -0.04em; }
.numbers span { display: block; margin-top: 6px; font-family: var(--display); font-size: 0.9rem; }
@media (max-width: 700px) { .numbers { grid-template-columns: 1fr 1fr; } }

/* oversized pull quote band */
.quote-band figure { margin: 0; }
.quote-band blockquote { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 5.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 22ch; }
.quote-band blockquote::before { content: "\201C"; display: block; font-size: 1.6em; line-height: 0.6; color: var(--proj-on-dark); }
.quote-band figcaption { margin-top: 1.2rem; font-family: var(--display); font-weight: 600; color: var(--proj-on-dark); }
.color.quote-band figcaption, .color.quote-band blockquote::before { color: var(--midnight); }

/* closing CTA band */
.cta-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: end; }
.cta-grid p { color: var(--midnight); }
@media (max-width: 820px) { .cta-grid { grid-template-columns: 1fr; } }
.button { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1rem; text-decoration: none; padding: 14px 22px; border-radius: 999px; background: var(--midnight); color: #fff; border: 2px solid var(--midnight); }
.button:hover { background: transparent; color: var(--midnight); }
.dark .button { background: var(--proj); border-color: var(--proj); color: var(--midnight); }
.dark .button:hover { background: transparent; color: var(--proj-on-dark); }

/* ---------------------------------------------------------------- home */
.hero-home .portrait { position: relative; }
.hero-home .portrait img { border-radius: 50% 50% var(--radius) var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; border: 6px solid var(--proj); }
.hero-home .portrait .badge { position: absolute; right: -6px; bottom: 18px; background: var(--saffron); color: var(--midnight); font-family: var(--display); font-weight: 800; padding: 10px 16px; border-radius: 999px; font-size: 0.95rem; box-shadow: 0 10px 24px -12px rgba(0,0,0,0.5); }
/* Rotating factoid pill: phrases are stacked in place; script sets the track width
   to the active phrase so the pill grows and shrinks. The active phrase slides up in,
   the old one slides up out. */
.hero-home .portrait .badge { overflow: hidden; }
.badge-track { display: block; position: relative; height: 1.35em; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.badge-track > span { position: absolute; right: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(110%); transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s ease; }
.badge-track > span.is-active { opacity: 1; transform: translateY(0); }
.badge-track > span.is-leaving { opacity: 0; transform: translateY(-110%); }
@media (prefers-reduced-motion: reduce) { .badge-track > span { transform: none; } .badge-track { transition: none; } }
@media (max-width: 860px) { .hero-home .portrait .badge { font-size: 0.85rem; padding: 9px 14px; } }
.badge-toggle { position: absolute; right: -6px; bottom: -26px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--midnight-2); cursor: pointer; display: grid; place-items: center; }
.badge-toggle::before { content: ""; width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.badge-toggle[aria-pressed="true"]::before { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 860px) { .hero-home .portrait { max-width: 320px; } }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card { border-radius: var(--radius); overflow: hidden; background: var(--midnight); color: #eef0f6; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card .art { background: var(--midnight-2); }
.card .body { padding: clamp(20px, 3vw, 30px); display: flex; flex-direction: column; flex: 1; }
.card .tag { font-family: var(--display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-on-dark); margin-bottom: 0.6rem; }
.card h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 0.8rem; }
.card p { color: #cdd3e2; }
.card .mini { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0.4rem 0 1.2rem; font-family: var(--display); }
.card .mini strong { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--c-on-dark); line-height: 1; }
.card .mini span { font-size: 0.85rem; color: #cdd3e2; }
.card .go { margin-top: auto; align-self: flex-start; font-family: var(--display); font-weight: 700; background: var(--c); color: var(--midnight); padding: 10px 18px; border-radius: 999px; }
.card.c-dhs { --c: var(--teal); --c-on-dark: #5fd6cc; }
.card.c-bex { --c: var(--saffron); --c-on-dark: #ffd36b; }
.card.c-spam { --c: #9bd35a; --c-on-dark: #b8e986; }
.card.c-ramian { --c: #4fb3e8; --c-on-dark: #8fd0f5; }
.card.c-amzn { --c: #f28fb0; --c-on-dark: #f7b3ca; }
.card.c-spot { --c: #b49cf0; --c-on-dark: #cbbaf7; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.minor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.minor div { background: var(--white); border-radius: var(--radius); padding: 22px; border-top: 6px solid var(--signal); }
.minor div:nth-child(3n+2) { border-top-color: var(--teal); }
.minor div:nth-child(3n) { border-top-color: var(--saffron); }
.minor h3 a { color: inherit; text-decoration-color: var(--signal); }
.all-briefs { margin: 1.6rem 0 0; }
.minor h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.minor p { font-size: 1rem; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .minor { grid-template-columns: 1fr; } }

/* titles mosaic */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.group { border-radius: var(--radius); padding: 24px; }
.group h3 { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.group ul { list-style: none; margin: 0; padding: 0; }
.group li { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.15; letter-spacing: -0.02em; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.group li:last-child { border-bottom: 0; }
.group.lead { background: var(--signal); color: var(--midnight); }
.group.lead li { border-bottom-color: rgba(20,33,61,0.2); }
.group.build { background: var(--midnight-2); color: #fff; }
.group.build h3 { color: #5fd6cc; }
.group.serve { background: var(--saffron); color: var(--midnight); }
.group.serve li { border-bottom-color: rgba(20,33,61,0.2); }
@media (max-width: 860px) { .mosaic { grid-template-columns: 1fr; } }
.focus { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.focus li { font-family: var(--display); font-weight: 600; font-size: 0.95rem; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); color: #eef0f6; border: 1px solid rgba(255,255,255,0.2); }
.focus li.t { background: var(--teal); border-color: var(--teal); color: var(--midnight); }
.focus li.s { background: var(--saffron); border-color: var(--saffron); color: var(--midnight); }
.focus li.o { background: var(--signal); border-color: var(--signal); color: var(--midnight); }

/* life */
.life { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; grid-column: span 2; }
.tile.wide { grid-column: span 4; }
.tile.half { grid-column: span 3; }
.tile .pic img, .tile .pic svg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile .txt { padding: 20px 22px 22px; }
.tile h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.tile p { font-size: 1rem; color: var(--ink-2); margin: 0; }
.tile.dark-t { background: var(--midnight); }
.tile.dark-t h3 { color: #fff; }
.tile.dark-t p { color: #cdd3e2; }
.tile .txt-only { padding-top: 28px; }
.tile .big { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--signal); }
@media (max-width: 900px) { .tile, .tile.wide, .tile.half { grid-column: span 3; } }
@media (max-width: 620px) { .tile, .tile.wide, .tile.half { grid-column: span 6; } }

/* beliefs */
.beliefs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 56px; }
.belief { margin: 0; }
.belief blockquote { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.18; letter-spacing: -0.02em; color: #fff; }
.belief figcaption { margin-top: 0.7rem; font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--saffron); }
.belief.big { grid-column: 1 / -1; }
.belief.big blockquote { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; }
@media (max-width: 760px) { .beliefs { grid-template-columns: 1fr; } }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; gap: 14px; font-family: var(--display); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; color: var(--midnight); }
.form input, .form textarea { font: inherit; font-family: var(--text); font-weight: 400; font-size: 1.05rem; padding: 12px 14px; border-radius: 10px; border: 2px solid rgba(20,33,61,0.25); background: var(--white); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--midnight); outline: none; box-shadow: 0 0 0 3px rgba(20,33,61,0.25); }
.form .button { justify-self: start; cursor: pointer; }
.form .button[disabled] { opacity: 0.6; cursor: wait; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 700; color: var(--midnight); min-height: 1.4em; }
.form-status.error { color: #7a1d00; }
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); border-top: 6px solid var(--signal); box-shadow: 0 18px 40px -24px rgba(20,33,61,0.35); align-self: start; }
.topics { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 14px; }
.topics li { padding-left: 18px; border-left: 4px solid var(--teal); color: var(--ink-2); }
.topics li:nth-child(2n) { border-left-color: var(--saffron); }
.topics li:nth-child(3n) { border-left-color: var(--signal); }
.topics strong { display: block; font-family: var(--display); color: var(--midnight); }

.site-footer { background: var(--midnight); color: #aab3c8; font-family: var(--display); font-size: 0.95rem; padding: 28px 0 36px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer a { color: #fff; }
.site-footer .ai-note { display: block; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.14); }
.site-footer .ai-note p { margin: 0; text-wrap: pretty; max-width: 60rem; font-family: var(--text); font-size: 0.875rem; line-height: 1.55; color: #aab3c8; }
.site-footer .ai-note strong { font-family: var(--display); font-weight: 700; color: var(--saffron); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.color .kicker::before { background: var(--midnight); }
.tile.dark-t .big { color: var(--signal); }
.tile.dark-t .big.alt { color: var(--saffron); }
.card .art svg { width: 100%; aspect-ratio: 4 / 3; }
.brief .kicker::before { background: var(--proj); }

/* ---------------------------------------------------------------- not found */
.not-found .display { max-width: 14ch; }
.not-found .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* ---------------------------------------------------------------- print: a brief saved as PDF */
@media print {
  .site-header, .skip, .nav-toggle, .badge-toggle, .cta-grid .button, .form { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band { padding: 18pt 0; }
  .dark, .color, .soft, .brief-band { background: #fff !important; color: #000 !important; }
  .dark p, .dark .lede, .quote-band blockquote, .belief blockquote { color: #000 !important; }
  .case { grid-template-columns: 1fr; }
  .facts { position: static; }
  .figure, .stat, .decisions dt, .steps li { break-inside: avoid; }
  .figure.scroll svg { min-width: 0; }
  a { color: inherit; }
}

/* ---------------------------------------------------------------- uid.fredlackey.com
   The rules above are a copy of fredlackey.com's stylesheet; keep them in step.
   Everything below is the generator's own. */
:root { --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
code, pre { font-family: var(--mono); font-size: 0.92em; }
.case-body code { background: var(--cream-2); padding: 0.1em 0.35em; border-radius: 5px; }
.builder { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); border-top: 6px solid var(--signal); display: grid; gap: 14px; font-family: var(--display); }
.builder h2 { font-size: 1.4rem; margin: 0; color: var(--midnight); }
.builder .row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.builder label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--midnight); }
.builder input, .builder select { font: inherit; font-family: var(--mono); font-weight: 400; font-size: 1rem; padding: 10px 12px; border-radius: 10px; border: 2px solid rgba(20,33,61,0.25); background: var(--white); color: var(--ink); width: 100%; }
.builder fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; font-size: 0.9rem; color: var(--midnight); }
.builder fieldset legend { padding: 0; margin-bottom: 6px; }
.builder fieldset label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.builder fieldset input { width: auto; }
.builder .preview { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-2); background: var(--cream-2); border-radius: 8px; padding: 8px 12px; overflow-wrap: anywhere; }
.builder .button { justify-self: start; cursor: pointer; border: 0; }
.builder .note { font-family: var(--text); font-size: 0.9rem; color: var(--muted); margin: 0; }
@media (max-width: 560px) { .builder .row { grid-template-columns: 1fr; } }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.2rem 0; }
.examples a { display: block; font-family: var(--mono); font-size: 0.95rem; background: var(--white); border-radius: 10px; padding: 12px 14px; border-left: 4px solid var(--teal); text-decoration: none; color: var(--midnight); overflow-wrap: anywhere; }
.examples a:nth-child(2n) { border-left-color: var(--saffron); }
.examples a:nth-child(3n) { border-left-color: var(--signal); }
.examples a span { display: block; font-family: var(--text); font-size: 0.88rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) { .examples { grid-template-columns: 1fr; } }
.codeblock { background: var(--midnight); color: #eef0f6; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: 0.92rem; line-height: 1.55; }
.ref { width: 100%; border-collapse: collapse; font-size: 1rem; margin: 1rem 0 1.4rem; }
.ref th, .ref td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.ref th { font-family: var(--display); font-weight: 700; color: var(--midnight); white-space: nowrap; }
.result .path { margin: 0.4rem 0 1.4rem; color: #cdd3e2; }
.result .path code { color: var(--proj-on-dark); }
.output { background: var(--midnight-2); border-radius: var(--radius); overflow: hidden; }
.output-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; color: var(--proj-on-dark); }
.output-actions { display: flex; gap: 10px; text-transform: none; letter-spacing: 0; }
.output-actions .button { padding: 8px 16px; font-size: 0.95rem; cursor: pointer; border: 0; }
.output-actions .button.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35); }
.output pre { margin: 0; padding: 18px 20px; color: #fff; overflow-x: auto; font-size: 1rem; line-height: 1.6; max-height: 70vh; }
.result .hero-action a { color: #fff; }
.builder [hidden] { display: none; }
.hero-grid > *, .builder, .builder label, .case-body { min-width: 0; }
.codeblock { max-width: 100%; }
.ref { table-layout: fixed; }
.ref th { width: 7.5rem; white-space: normal; }
.ref td { overflow-wrap: anywhere; }
@media (max-width: 520px) { .output pre { font-size: 0.78rem; padding: 14px; } }
