/* ==========================================================================
   Product Scope: DESIGN UPLIFT (preview pages under /uplift/ only)
   One stylesheet for all nine preview pages. Loaded AFTER /assets/css/styles.css.
   Merged from the three designers' group files (home-services, about-cases,
   articles-projects) on 20 Nov 2026; see _source/drafts/uplift/review/REVIEW.md.

   Rules of the system
   - No new colours: only the existing tokens (--brand, --cta-blue, --band-*).
   - Bands: white / pale navy / blush / champagne, never the same tint twice in a
     row; navy CTA closes every page; the near-black band is Home > Case Studies only.
   - All motion is CSS, lives inside prefers-reduced-motion: no-preference, and
     scroll-driven motion sits behind @supports so other browsers see the end state.
   - CSP-safe: no inline styles/scripts are needed by anything here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* rhythm */
  --u-space: clamp(64px, 8vw, 112px);                       /* every section, top + bottom */
  --u-space-cta: clamp(72px, 9vw, 120px);                   /* the navy CTA band */
  --u-head-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); /* page header, clears the fixed header */
  --u-head-bottom: clamp(56px, 7vw, 96px);
  --u-overlap: clamp(72px, 9vw, 128px);                     /* how far a block rides over the header band edge */
  --u-gap: clamp(20px, 2.4vw, 32px);                        /* card grid gutter */

  /* type */
  --u-h1: clamp(2.6rem, 1.5rem + 4.2vw, 4.6rem);
  --u-h2: clamp(2rem, 1.35rem + 2.4vw, 3.2rem);
  --u-lead-size: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  --u-statement: clamp(1.35rem, 1rem + 1.35vw, 2.05rem);
  --u-numeral: clamp(3.4rem, 1.6rem + 6.4vw, 7rem);
  --u-ink-2: #3f4b55;                                       /* secondary text: 8.9:1 white, 7.1:1 pale navy, 7.4:1 blush, 7.2:1 champagne */

  /* surfaces */
  --u-radius: 16px;                                         /* cards, photos */
  --u-radius-lg: 22px;                                      /* panels, floating cards, big tiles */
  --u-shadow: 0 8px 24px rgba(30, 58, 95, .08);             /* at rest */
  --u-shadow-lift: 0 26px 56px rgba(30, 58, 95, .18), 0 6px 16px rgba(30, 58, 95, .08); /* hover / floating */
  --u-shadow-photo: 0 30px 64px -16px rgba(16, 24, 34, .38);
  --u-ease: cubic-bezier(.22, .61, .36, 1);

  /* brand motif: the logo's four corner brackets */
  --u-mark-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23ffffff' stroke-width='5' stroke-linecap='square'%3E%3Cpolyline points='10,40 10,10 40,10'/%3E%3Cpolyline points='60,10 90,10 90,40'/%3E%3Cpolyline points='90,60 90,90 60,90'/%3E%3Cpolyline points='40,90 10,90 10,60'/%3E%3C/svg%3E");
  --u-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

html, body { overflow-x: clip; }

/* --------------------------------------------------------------------------
   1. TYPE SCALE (one h1, one h2 everywhere)
   -------------------------------------------------------------------------- */
h1, h2, h3 { overflow-wrap: normal; }
main h2, .pd-continue h2, .pf-feature__body h2 { font-size: var(--u-h2); line-height: 1.1; letter-spacing: -.015em; }
.section-head h2::after, .cs-head__main h2::after, .h2-rule::after, .howiwork-fb h2::after, .pd-continue h2::after { margin-top: 22px; }
.section-head, .cs-head { margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head p, .cs-head__main p { font-size: var(--u-lead-size); line-height: 1.5; color: var(--u-ink-2); text-wrap: pretty; }
@media (max-width: 680px) { .cs-head__main { max-width: none; width: 100%; } }

/* --------------------------------------------------------------------------
   2. SECTION RHYTHM + BANDS
   The base file collapses the top padding of a section that follows another
   plain one (styles.css "Collapse doubled padding"). That stays right for
   white-on-white, but it also caught tinted bands and the section after them.
   Its selector is (0,12,0), so these two documented !important rules restore
   the full rhythm wherever the colour changes.
   -------------------------------------------------------------------------- */
.section { padding-block: var(--u-space); }
.section--feature { padding-block: 0; }
.u-band-cool, .up-band-cool { background: var(--band-cool); }
.u-band-warm, .section--warm, .section--warm-band { background: var(--band-warm); }
.u-band-third, .up-band-third, .section--third { background: var(--band-third); }

.section:is(.u-band-cool, .up-band-cool, .u-band-warm, .section--warm-band, .u-band-third, .up-band-third, .section--third, .home-projects-wrap),
:is(.u-band-cool, .up-band-cool, .u-band-warm, .section--warm-band, .u-band-third, .up-band-third, .section--third, .home-projects-wrap) + .section:not(.cta-band) { padding-top: var(--u-space) !important; }

/* --------------------------------------------------------------------------
   3. BUTTONS + LINKS
   -------------------------------------------------------------------------- */
.btn { border-radius: 6px; padding: 15px 28px; min-height: 48px; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .25s var(--u-ease), box-shadow .25s ease; }
.btn:hover { box-shadow: 0 10px 22px -10px rgba(20, 30, 45, .45); }
/* (not on buttons that already carry a text arrow: product card, project quick links, Continue exploring) */
:is(.btn--primary, .btn--dark, .cs-head__btn):not(.product-card__btn, .pd-continue .btn, .pd-hero__links .btn)::after {
  content: ""; width: 1em; height: 1em; flex: 0 0 auto; background: currentColor;
  -webkit-mask: var(--u-arrow) center / contain no-repeat; mask: var(--u-arrow) center / contain no-repeat;
  transition: transform .25s var(--u-ease);
}
/* back links and the auto-slide pause button: 44px tap targets */
.back-link { min-height: 44px; }
.gallery__toggle { width: 44px; height: 44px; }
/* separators in article meta lines: was #9aa2a8 (2.6:1 on white, 2.1:1 on blush) */
.art-card__sep { color: var(--muted); }
/* the article sidebar search only changed its underline colour on focus: give it the standard ring */
.sidebar-search input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* keyboard ring stays visible on dark bands and photos */
.u-homehero :focus-visible, .home-cs :focus-visible, .post-hero :focus-visible, .home-tile:focus-visible, .home-tile :focus-visible { outline-color: #fff; }

/* --------------------------------------------------------------------------
   4. ICONS: tile on white, disc on tints (one size family)
   -------------------------------------------------------------------------- */
.u-chip, .u-cards .deliver__icon, .u-feat .feat-row__icon {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand-tint); color: var(--brand); transition: background .3s ease, color .3s ease, transform .4s var(--u-ease);
}
.u-chip svg, .u-cards .deliver__icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.u-chip--sm, .u-card .u-chip, .u-feat .feat-row__icon { width: 48px; height: 48px; border-radius: 12px; }
.u-chip--sm svg, .u-card .u-chip svg, .u-feat .feat-row__icon svg { width: 24px; height: 24px; }
.u-disc, .u-band-third .principle2__ico, .u-howiwork .u-chip {
  display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--brand); transition: background .3s ease, color .3s ease;
}
.u-disc svg, .u-band-third .principle2__ico svg { width: 24px; height: 24px; }
.deliver2:hover .u-chip, .u-cards .deliver:hover .deliver__icon, .u-card:hover .u-chip, .u-col:hover .u-chip,
.pitem:hover .u-chip, .u-feat .feat-row:hover .feat-row__icon, .principle2:hover .principle2__ico { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   5. CARDS (one radius, one shadow, one hover)
   -------------------------------------------------------------------------- */
.u-card, .u-feat .feat-row, .u-cards .deliver, .u-status .home-ledger__row, .u-highlights .tl-card {
  background: #fff; border: 0; border-radius: var(--u-radius); box-shadow: var(--u-shadow);
  transition: transform .4s var(--u-ease), box-shadow .4s ease;
}
.u-card:hover, .u-feat .feat-row:hover, .u-cards .deliver:hover, .u-status .home-ledger__row:hover, .u-highlights .tl-card:hover { box-shadow: var(--u-shadow-lift); }

/* Scope brackets: white corners that appear over photo tiles on hover/focus (Home) */
.u-scope {
  position: absolute; inset: 16px; z-index: 0; pointer-events: none;
  --c: #fff; --l: 26px; --t: 2px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t), linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t), linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t), linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t), linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat; opacity: 0; transition: opacity .35s ease;
}
.home-panel:hover .u-scope, .home-panel:focus-within .u-scope, .home-tile:hover .u-scope, .home-tile:focus-within .u-scope { opacity: .9; }

/* Framed photo: the logo's burgundy corners drawn just outside an image (page headers, case cover) */
.u-frame { position: relative; }
.u-frame::before {
  content: ""; position: absolute; inset: -14px; z-index: 2; pointer-events: none;
  --c: var(--brand); --l: 44px; --t: 3px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t), linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t), linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t), linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t), linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
}

/* --------------------------------------------------------------------------
   6. PAGE HEADER: one pattern for every interior page
   pale-navy band · display h1 + 64px rule · Poppins lead · variants:
   .u-pagehead (photo breaks the band edge), .u-hero--split (photo inside),
   .u-hero--detail (cover image breaks the edge), .up-hero (text right + straddle)
   -------------------------------------------------------------------------- */
.u-pagehead, .u-hero, .up-hero { position: relative; isolation: isolate; overflow-x: clip; background: var(--band-cool); padding: var(--u-head-top) 0 var(--u-head-bottom); text-align: left; }
:is(.u-pagehead, .u-hero, .up-hero) h1 { font-size: var(--u-h1); line-height: 1.04; letter-spacing: -.02em; font-weight: 600; margin: 0; text-wrap: balance; }
:is(.u-pagehead, .u-hero, .up-hero) h1::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--brand); margin-top: 22px; transform-origin: left center; }
:is(.u-pagehead, .u-hero, .up-hero) .back-link { margin-bottom: clamp(14px, 2vw, 24px); }
/* lead (first paragraph) and secondary text */
.u-lead, .up-hero__text p:first-child, .up-project .up-hero h1 + p {
  font-family: var(--font-heading); font-weight: 400; font-size: var(--u-lead-size); line-height: 1.5; color: var(--heading); text-wrap: pretty;
}
.u-lead { margin: 26px 0 0; max-width: 40ch; }
.u-sub, .up-hero__text p, .u-pagehead__body > p { color: var(--u-ink-2); font-size: 1.05rem; line-height: 1.65; }
.u-sub { margin: 16px 0 0; max-width: 56ch; }
.u-pagehead__body > p { font-family: var(--font-heading); font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); margin: 26px 0 0; max-width: 58ch; }
.u-pagehead .btn-row { margin-top: 32px; }

/* Split header: text left, photo right (About, Case Studies, Services) */
.u-hero__grid, .u-pagehead__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.u-hero h1 { max-width: 16ch; }
.u-hero__media img, .u-pagehead__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 22%; border-radius: var(--u-radius); box-shadow: var(--u-shadow-photo); }
.u-layer { isolation: isolate; }
.u-layer::after { content: ""; position: absolute; z-index: -1; inset: 18% -26px -26px 22%; border-radius: var(--u-radius); background: var(--band-third); }

/* Services: the photo drops below the band edge; the next section makes room for it */
.u-pagehead__media { margin-bottom: calc(-1 * var(--u-overlap)); }
.u-pagehead__media img { aspect-ratio: 5 / 6; object-position: 50% 45%; }
.section.u-after-head { padding-top: calc(var(--u-overlap) + clamp(40px, 5vw, 64px)); }
.u-after-head .panel { padding: clamp(28px, 4.4vw, 64px); border-radius: var(--u-radius-lg); }

/* Case Studies: a fanned stack of three case photos */
.u-hero--cases .u-hero__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.u-stackimg { position: relative; aspect-ratio: 1 / .8; }
.u-stackimg img { position: absolute; object-fit: cover; border-radius: var(--u-radius); box-shadow: 0 24px 50px rgba(30, 58, 95, .22); border: 6px solid #fff; }
.u-stackimg__a { width: 62%; aspect-ratio: 4 / 3; left: 0; top: 4%; transform: rotate(-4deg); }
.u-stackimg__b { width: 58%; aspect-ratio: 4 / 3; right: 0; top: 0; transform: rotate(3deg); z-index: 1; }
.u-stackimg__c { width: 64%; aspect-ratio: 16 / 10; left: 18%; bottom: 0; z-index: 2; }

/* Case detail: text only; the framed cover overlaps the band edge */
.u-hero--detail { padding-bottom: calc(var(--u-overlap) + var(--u-head-bottom)); }
.u-hero--detail h1 { max-width: 20ch; }

/* Index/project header: title left, text right; the next block straddles the edge */
.up-hero__grid { display: grid; grid-template-columns: minmax(min-content, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.up-hero__text > :first-child { margin-top: 0; }
.up-hero__text p { margin: 0 0 .9em; }
.up-hero__text p:last-child { margin-bottom: 0; }
.up-hero:has(+ .up-straddle) { padding-bottom: calc(var(--u-overlap) + var(--u-head-bottom)); }
.up-hero + .up-straddle { position: relative; z-index: 1; margin-top: calc(-1 * var(--u-overlap)); padding-top: 0; }
.up-project .up-hero__grid { align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.up-project .up-hero h1 + p { margin-top: 22px; }

/* --------------------------------------------------------------------------
   7. NAVY CTA BAND (every page)
   -------------------------------------------------------------------------- */
.u-cta { position: relative; overflow: hidden; isolation: isolate; padding-block: var(--u-space-cta); }
.u-cta::before { content: ""; position: absolute; z-index: -1; right: -60px; top: 50%; width: clamp(260px, 30vw, 420px); aspect-ratio: 1; transform: translateY(-50%); background: var(--u-mark-white) center / contain no-repeat; opacity: .08; pointer-events: none; }
.u-cta .cta-row h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); line-height: 1.1; letter-spacing: -.015em; }
.u-cta .cta-row h2::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: #fff; margin-top: 20px; }
.u-cta .cta-row p { font-size: clamp(1.05rem, 1rem + .25vw, 1.15rem); color: #e1e8f2; margin-top: 18px; }
.u-cta .btn { padding: 17px 34px; font-size: 1rem; }
.u-cta .btn:hover { box-shadow: 0 10px 22px rgba(0, 0, 0, .25); }

/* ==========================================================================
   8. HOME
   ========================================================================== */
/* Hero: taller, bigger title, the lens re-cropped to the right and framed */
.u-homehero { background: #10161b; overflow: hidden; min-height: clamp(620px, 94vh, 900px); display: flex; align-items: center; }
.u-homehero .hero__inner { padding-top: clamp(130px, 14vw, 170px); padding-bottom: calc(var(--u-overlap) + clamp(48px, 6vw, 96px)); }
.u-homehero .hero__col { max-width: 700px; }
.u-homehero .hero__title { font-size: clamp(2.3rem, 4.4vw, 3.45rem); line-height: 1.1; letter-spacing: -.015em; }
.u-homehero .hero__title::after { margin-top: 22px; }
.u-homehero .hero__lead { font-size: clamp(1.12rem, 1.5vw, 1.3rem); color: #eef2f5; max-width: 620px; }
.u-homehero .btn { padding: 16px 30px; }
.u-homehero__frame { display: none; }
@media (min-width: 961px) {
  .u-homehero .hero__bg { width: 130%; max-width: none; left: 11.7%; right: auto; transform-origin: 78% 54%; }
  .u-homehero::after { background: linear-gradient(90deg, rgba(16,22,27,.94) 0%, rgba(16,22,27,.8) 34%, rgba(16,22,27,.3) 60%, rgba(16,22,27,.05) 100%); }
  .u-homehero__frame { display: block; position: absolute; z-index: 0; pointer-events: none; width: 37vw; max-width: 600px; aspect-ratio: 1; left: 78%; top: 52%; transform: translate(-50%, -50%); opacity: .85; overflow: visible; }
}
@media (max-width: 960px) {
  .u-homehero { min-height: 0; }
  .u-homehero .hero__bg { object-position: 56% 50%; }
  .u-homehero::after { background: linear-gradient(180deg, rgba(16,22,27,.78) 0%, rgba(16,22,27,.7) 55%, rgba(16,22,27,.86) 100%); }
}

/* How I Help: a white panel layered over the bottom of the hero */
.section.u-lift { position: relative; z-index: 2; padding-top: 0; }
.u-lift__panel { margin-top: calc(-1 * var(--u-overlap)); background: #fff; border-radius: var(--u-radius-lg); padding: clamp(28px, 4.4vw, 60px); box-shadow: var(--u-shadow-photo); }
.u-lift .deliver2-grid { gap: clamp(28px, 3.6vw, 52px); }
.u-lift .deliver2 { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; border-top: 2px solid rgba(128, 0, 32, .16); padding-top: 26px; }
.u-lift .deliver2::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 64px; background: var(--brand); transition: width .6s var(--u-ease); }
.u-lift .deliver2:hover::before { width: 100%; }
.u-lift .deliver2 h3, .u-lift .deliver2 p { grid-column: 1 / -1; }
.u-lift .deliver2__num { justify-self: end; margin: 0; font-size: clamp(2.8rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px var(--brand); transition: color .4s ease; }
.u-lift .deliver2:hover .deliver2__num { color: var(--brand); }
.u-lift .deliver2 h3 { font-size: clamp(1.2rem, 1.6vw, 1.38rem); margin: 22px 0 .55em; }
.u-lift .deliver2 p { color: var(--ink); font-size: 1.02rem; }

/* Case Studies: the one dark band, staggered photo panels */
.home-cs { padding-block: var(--u-space); }
.home-cs .cs-head__main p { color: #dbe3ea; }
.home-panel { transition: transform .5s var(--u-ease), border-color .3s ease, box-shadow .5s ease; }
.home-panel > img { transition: transform 1.2s var(--u-ease); }
.home-panel:hover { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.home-panel__body { position: relative; z-index: 1; padding: 26px 24px; }
.home-panel__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .45em; margin-bottom: 12px; }
.u-year { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.35rem, 1.8vw, 1.65rem); letter-spacing: -.01em; text-transform: none; color: #fff; }
.home-panel h3 { font-size: clamp(1.2rem, 1.5vw, 1.38rem); line-height: 1.22; }
@media (min-width: 900px) {
  .home-cases { gap: clamp(14px, 1.6vw, 22px); padding-bottom: 56px; }
  .home-panel { min-height: 500px; }
  .home-panel:nth-child(even) { margin-top: 56px; margin-bottom: -56px; }
}

/* Current Client Work: blush band, three status cards */
.home-now.u-band-warm { padding-block: var(--u-space); }
.u-status { gap: var(--u-gap); }
.u-status .home-ledger__row { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 2.6vw, 34px); }
.u-status .home-ledger__row::before { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 4px; transform: scaleX(.18); transform-origin: left; border-radius: var(--u-radius) var(--u-radius) 0 0; }
.u-status .home-ledger__row:hover { background: #fff; }
.u-status .home-ledger__row:hover::before { transform: scaleX(1); }
.u-status .home-ledger__title { font-size: clamp(1.25rem, 1.7vw, 1.45rem); line-height: 1.22; }
.u-status .home-ledger__text { color: var(--ink); font-size: 1.01rem; }
@media (min-width: 900px) {
  .u-status { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .u-status .home-ledger__row { grid-template-columns: none; }
  .u-status .home-ledger__date { flex-direction: row; }
}

/* Projects mosaic: bigger titles, scope-bracket hover */
.home-tile { border-radius: var(--u-radius); box-shadow: 0 24px 48px -26px rgba(30, 58, 95, .7); transition: transform .5s var(--u-ease), box-shadow .5s ease; }
.home-tile:hover { box-shadow: 0 34px 60px -26px rgba(30, 58, 95, .8); }
.home-tile__body { position: relative; z-index: 1; padding: 28px 30px; }
@media (min-width: 900px) {
  .home-mosaic { grid-template-rows: repeat(2, clamp(200px, 17vw, 236px)); gap: 20px; }
  .home-tile--a .home-tile__title { font-size: clamp(1.6rem, 2.4vw, 2.3rem); line-height: 1.1; }
}

/* Articles teaser (rendered by main.js) */
.feat-lead__media { border-radius: var(--u-radius); box-shadow: var(--u-shadow-lift); }
.feat-lead .art-title { font-size: clamp(1.5rem, 2.4vw, 2.15rem); line-height: 1.18; letter-spacing: -.01em; }
.feat-side { gap: clamp(16px, 2vw, 24px); }
.feat-mini { padding: 10px; margin: -10px; border-radius: 14px; transition: background .3s ease, transform .4s var(--u-ease), box-shadow .3s ease; }
.feat-mini:hover { background: var(--band-cool); }
.feat-mini__media { border-radius: 10px; }
.feat-mini .art-title { font-size: 1.06rem; }

/* ==========================================================================
   9. SERVICES
   ========================================================================== */
.u-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-gap); margin-top: 0; }
.u-cards .deliver { padding: clamp(24px, 2.4vw, 32px); }
.u-cards .deliver__icon { margin-bottom: 22px; }
.u-cards .deliver h3 { font-size: clamp(1.15rem, 1.4vw, 1.28rem); }
.u-cards .deliver p { color: var(--ink); font-size: 1rem; line-height: 1.6; }
@media (max-width: 960px) { .u-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .u-cards { grid-template-columns: 1fr; gap: 14px; } }

/* Photo strip: taller; the others dim while one is hovered */
.section--feature + .u-strip { margin-top: var(--u-space); }
.u-strip img { height: clamp(200px, 24vw, 340px); transition: filter .5s ease; }
.u-strip:hover img { filter: saturate(.75) brightness(.9); }
.u-strip img:hover { filter: none; }

/* Working With Me: champagne band, icon discs, hairline rules */
.u-band-third .principles2 { gap: clamp(30px, 3.4vw, 44px) clamp(32px, 4vw, 56px); }
.u-band-third .principle2 { border-top: 1px solid rgba(128, 0, 32, .22); padding-top: 24px; }
.u-band-third .principle2__head { gap: 14px; margin-bottom: 12px; }
.u-band-third .principle2 h3 { font-size: clamp(1.12rem, 1.4vw, 1.25rem); }
.u-band-third .principle2 p { color: var(--ink); font-size: 1rem; line-height: 1.6; }

/* FAQ: white, larger questions, round toggles, layered photo */
.u-faq .faq__item summary { font-size: clamp(1.1rem, 1.5vw, 1.25rem); padding: 26px 64px 26px 0; }
.u-faq .faq__item summary::after { right: 0; width: 40px; height: 40px; border: 1.5px solid var(--brand); border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; transition: background .25s ease, color .25s ease; }
.u-faq .faq__item summary:hover::after, .u-faq .faq__item[open] > summary::after { background: var(--brand); color: #fff; }
.u-faq .faq__item p { font-size: 1.04rem; }
.u-faq .faq-grid__media { position: relative; padding: 0 24px 24px 0; }
.u-faq .faq-grid__media::before { content: ""; position: absolute; left: 24px; top: 24px; right: 0; bottom: 0; border-radius: var(--u-radius); background: var(--band-cool); }
.u-faq .faq-grid__media img { position: relative; border-radius: var(--u-radius); aspect-ratio: 4 / 3; box-shadow: var(--u-shadow-lift); }

/* ==========================================================================
   10. ABOUT
   ========================================================================== */
.u-statement { font-family: var(--font-heading); font-weight: 500; font-size: var(--u-statement); line-height: 1.38; letter-spacing: -.01em; color: var(--heading); max-width: 34ch; margin: 0 0 clamp(40px, 5vw, 68px); text-wrap: pretty; }
.u-intro .u-statement { max-width: 46ch; padding-left: clamp(18px, 2vw, 28px); border-left: 4px solid var(--brand); }
.u-statement--sm { font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); max-width: none; margin-bottom: 1.2em; }
.u-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.u-col { border-top: 1px solid var(--line); padding-top: 26px; }
.u-col .u-chip { margin-bottom: 18px; }
.u-col p { margin: 0; color: var(--ink); }
.u-btns { margin-top: clamp(36px, 4vw, 52px); }

/* Big numerals (About stats) */
.u-numerals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; margin: clamp(10px, 2vw, 24px) 0 clamp(40px, 5vw, 64px); border: 0; }
.u-numerals .tl-stat { padding: 8px clamp(16px, 3vw, 40px) 8px 0; }
.u-numerals .tl-stat + .tl-stat { border-left: 1px solid rgba(128, 0, 32, .2); padding-left: clamp(16px, 3vw, 40px); }
.u-numerals .tl-stat strong { font-size: var(--u-numeral); letter-spacing: -.03em; line-height: .95; }
.u-numerals .tl-stat span { display: block; margin-top: 10px; font-family: var(--font-heading); font-size: 1rem; color: var(--heading); }

/* Highlights timeline on champagne */
.u-highlights .tl-rail::before { background: rgba(128, 0, 32, .3); }
.u-highlights .tl-card { flex-basis: 320px; padding: 28px; }
.u-highlights .tl-card::before { background: var(--band-third); }
.u-highlights .tl-card__year { font-size: .9rem; }
.u-highlights .tl-card h3 { font-size: 1.22rem; }
.u-highlights .tl-card p { color: var(--u-ink-2); font-size: .96rem; }
.u-highlights .tl-hint { color: #5b5240; }

/* How I Work: icons instead of numbers, larger lead */
.u-howiwork { min-height: 640px; }
.u-howiwork .howiwork-fb__lead { font-size: var(--u-lead-size); color: var(--heading); }
.u-principles { gap: 22px; }
.u-principles .pitem { grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.u-principles .pitem p { padding-top: 2px; }

/* ==========================================================================
   11. CASE STUDIES INDEX: layered rows (photo + overlapping tinted card)
   ========================================================================== */
.u-cs { gap: clamp(48px, 6vw, 88px); }
.u-cs .cs-row, .u-cs .cs-row--warm, .u-cs .cs-row--cool, .u-cs .cs-row--third { background: transparent; border-radius: 0; overflow: visible; box-shadow: none; }
.u-cs .cs-row:hover { transform: none; box-shadow: none; }
.u-cs .cs-row__inner { grid-template-columns: repeat(12, 1fr); align-items: center; }
.u-cs .cs-row__media { grid-column: 1 / 8; grid-row: 1; aspect-ratio: 16 / 11; border-radius: var(--u-radius); box-shadow: var(--u-shadow); }
.u-cs .cs-row__body { grid-column: 7 / 13; grid-row: 1; z-index: 1; border-radius: var(--u-radius); padding: clamp(30px, 3.6vw, 52px); box-shadow: var(--u-shadow); transition: transform .45s var(--u-ease), box-shadow .45s ease; }
.u-cs .cs-row--flip .cs-row__media { grid-column: 6 / 13; order: 0; }
.u-cs .cs-row--flip .cs-row__body { grid-column: 1 / 7; }
.u-cs .cs-row--warm .cs-row__body { background: var(--band-warm); }
.u-cs .cs-row--cool .cs-row__body { background: var(--band-cool); }
.u-cs .cs-row--third .cs-row__body { background: var(--band-third); }
.u-cs .cs-row:hover .cs-row__body { box-shadow: var(--u-shadow-lift); }
.u-cs .cs-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--u-ease); }
/* "Read More": the near-black button becomes the site's outline button (one button family) */
.u-cs .btn--dark { background: transparent; border-color: var(--brand); color: var(--brand); }
.u-cs .btn--dark:hover, .u-cs .cs-row:hover .btn--dark { background: var(--brand); border-color: var(--brand); color: #fff; }
.u-cs .cs-row__tag { font-size: .8rem; }
.u-cs .cs-row__body h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -.01em; }
.u-cs .cs-row__body p { color: var(--u-ink-2); font-size: 1.02rem; }
.u-cs .cs-row:focus-within .cs-row__body { outline: 3px solid var(--brand); outline-offset: 3px; }

/* ==========================================================================
   12. CASE STUDY (long template)
   ========================================================================== */
.u-cover { margin-top: calc(-1 * var(--u-overlap)); position: relative; z-index: 1; }
.u-cover__img img { width: 100%; aspect-ratio: 16 / 6.4; object-fit: cover; border-radius: var(--u-radius); box-shadow: var(--u-shadow-photo); }
.u-summary { position: relative; z-index: 3; margin: clamp(-64px, -5vw, -40px) clamp(16px, 4vw, 56px) 0; background: #fff; border-radius: var(--u-radius); box-shadow: var(--u-shadow-lift);
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 3vw, 40px); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.u-summary__title { margin: 4px 0 0; white-space: nowrap; }
.u-summary__facts { display: grid; grid-template-columns: .8fr 1.7fr 1fr 1.25fr .85fr; gap: 22px; margin: 0; }
.u-summary__facts > div + div { margin-top: 0; }
.u-summary__facts dd { font-size: .95rem; }
/* the summary strip already covers the cover's lower corners: only the upper brackets show */
.u-cover .u-frame::before { background:
  linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
  linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat; }

/* Editorial: title column left, reading column right */
.u-editorial { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.u-editorial__head { position: sticky; top: calc(var(--header-h) + 32px); }
.u-editorial__head h2 { margin: 0; }
.u-editorial__body { max-width: 72ch; font-size: 1.06rem; }
.u-editorial__body .lead { font-family: var(--font-heading); font-size: clamp(1.15rem, 1rem + .45vw, 1.32rem); line-height: 1.5; color: var(--heading); margin-bottom: 1.3em; }

/* Objectives: photo + icon cards */
.u-obj { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--u-gap); align-items: stretch; }
.u-obj__media { border-radius: var(--u-radius); overflow: hidden; min-height: 320px; position: relative; }
.u-obj__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.u-obj__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--u-gap) * .7); }
.u-card, .u-feat .feat-row { padding: clamp(22px, 2.4vw, 30px); }
.u-card .u-chip { margin-bottom: 16px; }
.u-card h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 .45em; }
.u-card p { margin: 0; color: var(--u-ink-2); font-size: .96rem; line-height: 1.55; }

/* Development process: vertical rail with line-icon nodes */
.u-process { position: relative; padding-left: clamp(0px, 7vw, 96px); }
.u-process::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(var(--brand), rgba(128, 0, 32, .15)); transform-origin: top; }
.u-process .cs-phase { position: relative; border-radius: var(--u-radius); }
.u-node { position: absolute; left: calc(-1 * clamp(0px, 7vw, 96px)); top: clamp(28px, 4vw, 52px); width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--brand); border: 2px solid var(--brand); display: grid; place-items: center; box-shadow: 0 0 0 8px #fff; }
.u-node svg { width: 26px; height: 26px; }
.u-process .cs-phase__num { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.u-process .cs-phase h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem); letter-spacing: -.01em; }
.u-process .cs-phase__lead { font-family: var(--font-heading); font-size: 1.08rem; color: var(--u-ink-2); margin-bottom: 30px; }
.u-process .cs-step p { color: var(--u-ink-2); }

/* Key features: white cards on champagne */
.feat-intro { font-size: var(--u-lead-size); font-family: var(--font-heading); color: var(--heading); max-width: 62ch; line-height: 1.5; }
.u-feat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-gap); }
.u-feat .feat-row { flex-direction: column; gap: 16px; }
.u-feat .feat-row__body h3 { font-size: 1.12rem; line-height: 1.3; }
.u-feat .feat-row__body p { color: var(--u-ink-2); font-size: .96rem; }

/* Challenges: blush problem, pale-navy answer, arrow in a burgundy disc */
.u-ps .cs-ps__item { border-top: 0; padding-top: 0; }
.u-ps .cs-ps__item > h3 { font-size: clamp(1.3rem, 1.05rem + .9vw, 1.75rem); letter-spacing: -.01em; }
.u-ps .cs-ps__challenge { background: var(--band-warm); }
.u-ps .cs-ps__challenge, .u-ps .cs-ps__solution { padding: clamp(24px, 3vw, 38px); border-radius: var(--u-radius); }
.u-ps .cs-ps__label { display: flex; align-items: center; gap: 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.u-ps .cs-ps__label svg { width: 20px; height: 20px; }
.u-ps .cs-ps__cols p { font-size: 1rem; }
.u-ps .cs-ps__arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(128, 0, 32, .25); }
.u-ps .cs-ps__arrow svg { width: 22px; height: 22px; transition: transform .3s var(--u-ease); }

/* Results: big numbers, big quote mark, voices on a blush panel */
.u-bignums { gap: 0; text-align: left; }
.u-bignums .cs-stat { padding: 6px clamp(18px, 3vw, 40px); }
.u-bignums .cs-stat:first-child { padding-left: 0; }
.u-bignums .cs-stat + .cs-stat { border-left: 1px solid rgba(128, 0, 32, .2); }
.u-bignums .cs-stat strong { font-size: clamp(3rem, 1.5rem + 4.6vw, 5.6rem); letter-spacing: -.03em; }
.u-bignums .cs-stat b { font-size: 1.12rem; margin-top: 16px; }
.u-bignums .cs-stat p { color: var(--u-ink-2); font-size: .98rem; }
.u-proof { border-top: 0; padding-top: 0; align-items: stretch; }
.u-proof .cs-testimonial { position: relative; padding-top: 8px; }
.u-quote { display: block; width: clamp(48px, 5vw, 72px); height: auto; color: var(--brand); opacity: .9; margin-bottom: 22px; }
.u-proof .cs-testimonial blockquote { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.45; }
.u-proof .cs-voices { background: var(--band-warm); border-radius: var(--u-radius); padding: clamp(24px, 3vw, 36px); }
.u-proof .cs-voice + .cs-voice { border-top-color: rgba(128, 0, 32, .15); }

/* ==========================================================================
   13. ARTICLE CARDS (blog grid, related)
   ========================================================================== */
.art-grid { gap: clamp(40px, 4.5vw, 60px) var(--u-gap); }
.up-blog .art-card__img, .up-article .art-card__img { border-radius: 14px; aspect-ratio: 3 / 2; transition: box-shadow .4s ease, transform .4s var(--u-ease); }
.art-card__img img { transition: transform .9s var(--u-ease); }
.up-blog .art-card:hover .art-card__img, .up-article .art-card:hover .art-card__img { box-shadow: var(--u-shadow-lift); }
.art-card__title { font-size: clamp(1.15rem, 1rem + .35vw, 1.3rem); line-height: 1.25; }
.up-blog .art-card__title, .up-article .section--warm-band .art-card__title { display: inline; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 2px no-repeat; transition: color .2s ease, background-size .45s var(--u-ease); }
.art-card:hover .art-card__title, .art-card:focus-visible .art-card__title { background-size: 100% 2px; }

/* ==========================================================================
   14. BLOG INDEX
   ========================================================================== */
.up-feature { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 30px); align-items: stretch; }
.up-feature .feat-lead { position: relative; display: grid; grid-template-rows: 1fr auto auto; overflow: hidden; isolation: isolate; min-height: clamp(380px, 42vw, 560px); border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow-lift); background: var(--cta-blue); }
.up-feature .feat-lead__media { grid-area: 1 / 1 / -1 / -1; position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.up-feature .feat-lead__media img { transition: transform 1.4s var(--u-ease); }
.up-feature .feat-lead::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(0deg, rgba(14, 22, 30, .9) 0%, rgba(14, 22, 30, .45) 42%, rgba(14, 22, 30, 0) 70%); }
.up-feature .feat-lead .art-tag { grid-row: 2; justify-self: start; margin: 0 clamp(22px, 3vw, 40px) 14px; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: #fff; }
.up-feature .feat-lead .art-title { grid-row: 3; margin: 0 clamp(22px, 3vw, 40px) clamp(24px, 3vw, 40px); font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.8rem); line-height: 1.1; letter-spacing: -.01em; max-width: 20ch; }
.up-feature .feat-lead .art-link { color: #fff; }
.up-feature .feat-lead .art-link::after { content: ""; position: absolute; inset: 0; }
.up-feature .feat-lead .art-link:focus-visible { outline: 0; }
.up-feature .feat-lead:focus-within { outline: 3px solid var(--brand); outline-offset: 4px; }
.up-feature .feat-side { gap: 12px; align-content: stretch; }
.up-feature .feat-mini { position: relative; grid-template-columns: 112px 1fr; gap: 16px; padding: 12px; margin: 0; background: #fff; border-radius: var(--u-radius); box-shadow: var(--u-shadow); }
.up-feature .feat-mini::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 2px; background: var(--brand); transform: scaleY(0); transition: transform .3s var(--u-ease); }
.up-feature .feat-mini:hover { background: #fff; box-shadow: var(--u-shadow-lift); }
.up-feature .feat-mini:hover::before { transform: scaleY(1); }
.up-feature .feat-mini .art-title { font-size: 1.02rem; line-height: 1.3; }
.up-feature .feat-mini .art-link::after { content: ""; position: absolute; inset: 0; }
.up-feature .feat-mini:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.up-feature .feat-mini .art-link:focus-visible { outline: 0; }

.up-all .cs-head { margin-bottom: 26px; }
.up-toolbar { background: var(--band-warm); border-radius: var(--u-radius-lg); padding: clamp(18px, 2.4vw, 28px); margin-bottom: clamp(40px, 5vw, 64px); display: grid; gap: 18px; }
.up-toolbar .posts-search { margin: 0; max-width: 520px; min-height: 48px; border-color: transparent; box-shadow: 0 2px 10px rgba(128, 0, 32, .08); }
.up-toolbar .posts-search input { min-height: 40px; }
.up-toolbar .posts-search:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.up-toolbar .posts-search__note:not(:empty) { position: static; margin-left: auto; }
.up-toolbar .cat-chips { margin: 0; }
.up-toolbar .cat-chip { min-height: 36px; border-color: rgba(128, 0, 32, .14); transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s var(--u-ease); }
@media (max-width: 640px) { .up-toolbar { padding: 14px; } }

/* ==========================================================================
   15. ARTICLE
   ========================================================================== */
.up-immersive .post-hero__bg { height: clamp(460px, 78vh, 720px); }
.up-immersive .post-hero__overlay { background:
  linear-gradient(0deg, rgba(14, 22, 30, .92) 0%, rgba(14, 22, 30, .45) 45%, rgba(14, 22, 30, .1) 100%),
  linear-gradient(90deg, rgba(14, 22, 30, .5) 0%, rgba(14, 22, 30, 0) 65%); }
.up-immersive .post-hero__overlay .container { padding-bottom: clamp(36px, 6vw, 84px); }
.up-immersive h1 { font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.4rem); max-width: 18ch; line-height: 1.05; letter-spacing: -.02em; }
.up-immersive .back-link { color: #fff; opacity: .9; margin-bottom: clamp(20px, 3vw, 36px); }
.up-immersive .back-link:hover { opacity: 1; color: #fff; }
.up-immersive .post-hero__meta { color: #fff; font-size: .8rem; letter-spacing: .14em; }
@media (min-width: 901px) { .up-immersive h1 { max-width: min(18ch, calc(100% - 400px)); } }
.up-progress { display: none; }

.up-article .post-hero + .section { padding-top: clamp(40px, 5vw, 72px); }
.up-article .post-layout { grid-template-columns: minmax(0, 720px) 330px; justify-content: space-between; gap: clamp(40px, 5vw, 80px); }
.up-article .prose { font-size: 1.125rem; line-height: 1.78; }
.up-article .prose p { margin-bottom: 1.3em; }
.up-article .prose .lead { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.45rem); line-height: 1.55; color: var(--heading); margin-bottom: 1.6em; }
.up-article .prose h2 { font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.05rem); line-height: 1.18; margin: 2.2em 0 .8em; }
.up-article .prose h2::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--brand); margin-top: 14px; }
.up-article .prose img { border-radius: 14px; box-shadow: var(--u-shadow-lift); margin: 2.2em 0; }
.up-article .post-nav { margin-top: 56px; padding-top: 28px; }
@media (min-width: 901px) {
  .up-article .post-sidebar .product-card { position: relative; z-index: 2; margin-top: calc(-1 * clamp(150px, 14vw, 210px)); box-shadow: var(--u-shadow-lift); }
}
.up-article .product-card { border-radius: var(--u-radius-lg); padding: 22px 22px 24px; }
.up-article .product-card__img { border-radius: 12px; }
.up-article .post-sidebar > * + * { margin-top: 48px; }
.up-article .post-sidebar .feat-lead__media { border-radius: 14px; box-shadow: none; }
.up-article .post-sidebar .feat-mini__media { border-radius: 10px; }
.up-article .section--warm-band .section-head { margin-bottom: 36px; }

/* ==========================================================================
   16. PROJECTS INDEX
   ========================================================================== */
#featured.up-straddle { padding-bottom: var(--u-space); }
#featured .pf-feature { background: #fff; box-shadow: var(--u-shadow-lift); border-radius: var(--u-radius-lg); padding: clamp(26px, 4vw, 56px); grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); }
#featured .pf-feature__body h2::after { content: ""; display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--brand); margin-top: 22px; }
#featured .pf-feature__body p { font-size: 1.04rem; line-height: 1.7; }
#featured .pf-feature__media { position: relative; isolation: isolate; padding: clamp(14px, 2vw, 26px) 0; }
#featured .pf-feature__media::before { content: ""; position: absolute; z-index: -1; inset: 0 -8% 0 12%; border-radius: var(--u-radius-lg); background: var(--band-warm); }
#featured .pf-feature__media img { transition: transform .9s var(--u-ease); filter: drop-shadow(0 22px 30px rgba(30, 58, 95, .22)); }
@media (max-width: 860px) {
  #featured .pf-feature { grid-template-columns: 1fr; }
  #featured .pf-feature__media::before { inset: 0 -4% 0 6%; }
}

#projects .proj-grid { gap: var(--u-gap); }
.pf-proj--big { background: transparent; box-shadow: none; overflow: hidden; border-radius: var(--u-radius-lg); padding-bottom: 6px; }
.pf-proj--big:hover { transform: none; box-shadow: none; }
.pf-proj--big .proj-card__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--u-radius-lg); overflow: hidden; isolation: isolate; box-shadow: var(--u-shadow-lift); }
.pf-proj--big .proj-card__media img { transition: transform 1s var(--u-ease); }
.pf-proj--big .proj-card__media::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(14, 22, 30, .88) 0%, rgba(14, 22, 30, .35) 38%, rgba(14, 22, 30, 0) 62%); }
.up-tile-title { position: absolute; z-index: 1; left: clamp(20px, 2.6vw, 32px); right: 20px; bottom: calc(clamp(40px, 4vw, 52px) + 14px); margin: 0; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); line-height: 1.1; }
.up-tile-title .art-link { color: #fff; }
.pf-proj .up-tile-title a::after { content: ""; position: absolute; inset: -100vh -100vw; }
.pf-proj .up-tile-title a:focus-visible { outline: 0; }
.pf-proj--big:focus-within .proj-card__media { outline: 3px solid var(--brand); outline-offset: 3px; }
.pf-proj--big .proj-card__body { position: relative; z-index: 1; margin: calc(-1 * clamp(40px, 4vw, 52px)) clamp(14px, 2vw, 24px) 0; padding: clamp(18px, 2.2vw, 26px); background: #fff; border-radius: var(--u-radius); box-shadow: var(--u-shadow); transition: transform .4s var(--u-ease); pointer-events: none; }
.pf-proj--big .proj-card__body p { color: var(--ink); }

.pf-minis--2 .feat-mini { grid-template-columns: 128px 1fr; gap: 18px; margin: 0; border-radius: var(--u-radius); box-shadow: var(--u-shadow); transition: transform .3s var(--u-ease), box-shadow .3s ease; }
.pf-minis--2 .feat-mini:hover { background: #fff; box-shadow: var(--u-shadow-lift); }
.pf-minis--2 .feat-mini__media { border-radius: 12px; aspect-ratio: 4 / 3; box-shadow: none; }
.pf-minis--2 .feat-mini .art-title { font-size: 1.1rem; }
.pf-mini-text { font-size: .95rem; color: var(--u-ink-2); }
@media (max-width: 560px) { .pf-minis--2 .feat-mini { grid-template-columns: 96px 1fr; gap: 14px; } }

/* ==========================================================================
   17. PROJECT PAGE
   ========================================================================== */
.up-project .up-hero__text { font-size: 1.04rem; line-height: 1.72; padding-top: 6px; }
.up-project .pd-top--boxed .pd-top__box { background: #fff; box-shadow: var(--u-shadow-lift); border-radius: var(--u-radius-lg); }
.up-project .pd-top--boxed { padding-bottom: 0; }
.up-project .pd-top--boxed + .pd-story { margin-top: clamp(28px, 3vw, 40px); padding-top: 0; }
.up-project .pd-card.pd-details { background: var(--band-cool); border: 0; box-shadow: none; border-radius: var(--u-radius); }
.up-project .pd-showcase__frames { position: relative; }
.up-project .pd-showcase .pf-tabs__tab { min-height: 40px; padding: 8px 16px; transition: background .2s, color .2s, border-color .2s, transform .2s var(--u-ease); }
.up-project .cs-phase.pd-phase { padding: clamp(26px, 4vw, 56px); border-radius: var(--u-radius-lg); }
.up-project .cs-phase + .cs-phase { margin-top: clamp(20px, 2.6vw, 30px); }
.up-project .up-phase__head { display: flex; align-items: center; gap: 16px; }
.up-project .u-disc { width: 56px; height: 56px; box-shadow: 0 6px 16px rgba(30, 58, 95, .08); }
.up-project .u-disc svg { width: 28px; height: 28px; }
.up-project .pd-phase h3 { font-size: clamp(1.45rem, 1.15rem + 1vw, 1.9rem); margin: 0; }
.up-project .pd-phase .pd-prose { font-size: 1.05rem; line-height: 1.75; }
@media (min-width: 961px) {
  .up-project .cs-phase.pd-phase { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
  .up-project .up-phase__head { flex-direction: column; align-items: flex-start; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
  .up-project .pd-phase .pd-prose { margin-top: 0; max-width: 72ch; }
}
.section.pd-continue.up-band-cool { padding-block: var(--u-space); }
.up-project .pd-continue__card { border-radius: var(--u-radius-lg); box-shadow: var(--u-shadow-lift); }
.up-project .pd-continue__more .art-card { min-height: clamp(300px, 28vw, 380px); border-radius: var(--u-radius-lg); }
.up-project .pd-continue__more .art-card__img { position: absolute; inset: 0; height: auto; aspect-ratio: auto; }
.up-project .pd-continue__more .art-card__img img { width: 100%; height: 100%; object-fit: cover; }
.up-project .pd-continue__more .art-card__title { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); padding: 26px; background: none; }

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .u-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .u-summary { grid-template-columns: 1fr; }
  .u-summary__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .u-obj { grid-template-columns: 1fr; }
  .u-obj__media { aspect-ratio: 16 / 7; min-height: 0; }
}
@media (max-width: 900px) {
  .u-hero__grid, .u-hero--cases .u-hero__grid { grid-template-columns: 1fr; }
  .u-hero__media { max-width: 520px; }
  .u-stackimg { max-width: 520px; width: 100%; }
  .u-cols3 { grid-template-columns: 1fr; }
  .u-editorial { grid-template-columns: 1fr; gap: 8px; }
  .u-editorial__head { position: static; }
  .u-cs .cs-row__inner, .u-cs .cs-row--flip .cs-row__inner { grid-template-columns: 1fr; }
  .u-cs .cs-row__media, .u-cs .cs-row--flip .cs-row__media { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 10; min-height: 0; }
  .u-cs .cs-row__body, .u-cs .cs-row--flip .cs-row__body { grid-column: 1; grid-row: 2; margin: -48px 14px 0; }
}
@media (max-width: 860px) {
  .u-pagehead__grid, .up-hero__grid, .up-project .up-hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .u-pagehead__media { margin: 8px 8px calc(-1 * 56px); }
  .u-pagehead__media img { aspect-ratio: 4 / 3; object-position: 50% 35%; }
  .section.u-after-head { padding-top: calc(56px + 40px); }
  .up-feature { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { #projects .proj-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .u-frame::before { inset: -9px; --l: 30px; --t: 3px; }
  .u-layer::after { inset: 22% -12px -12px 30%; }
  .u-hero__media img { aspect-ratio: 4 / 4; }
  .u-numerals { grid-template-columns: 1fr; gap: 24px; }
  .u-numerals .tl-stat, .u-numerals .tl-stat + .tl-stat { border-left: 0; padding: 0 0 22px; border-bottom: 1px solid rgba(128, 0, 32, .2); }
  .u-bignums { grid-template-columns: 1fr; gap: 0; }
  .u-bignums .cs-stat, .u-bignums .cs-stat + .cs-stat { border-left: 0; padding: 22px 0; border-top: 1px solid rgba(128, 0, 32, .2); }
  .u-bignums .cs-stat:first-child { border-top: 0; padding-top: 0; }
  .u-feat, .u-obj__grid { grid-template-columns: 1fr; }
  .u-summary { margin-inline: 0; }
  .u-summary__facts { grid-template-columns: 1fr 1fr; }
  .u-cover__img img { aspect-ratio: 4 / 3; }
  .u-process { padding-left: 0; }
  .u-process::before { display: none; }
  .u-node { position: static; width: 48px; height: 48px; margin-bottom: 14px; box-shadow: none; }
  .u-ps .cs-ps__arrow { justify-self: center; transform: rotate(90deg); padding: 0; }
}
@media (max-width: 680px) {
  .u-lift__panel { border-radius: 18px; }
  .u-lift .deliver2-grid { gap: 34px; }
  .home-panel { min-height: 420px; }
  .u-cta::before { width: 240px; right: -100px; top: 30%; }
  .u-faq .faq-grid__media { padding: 0 14px 14px 0; }
  .u-faq .faq-grid__media::before { left: 14px; top: 14px; }
}

/* ==========================================================================
   19. MOTION: everything here is skipped under prefers-reduced-motion
   (hover lifts and zooms too, so the reduced-motion page is fully static)
   ========================================================================== */
@keyframes u-rise   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes u-rule   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes u-unveil { from { clip-path: inset(0 0 100% 0 round 16px); transform: scale(1.06); } to { clip-path: inset(0 0 0 0 round 16px); transform: none; } }
@keyframes u-settle { from { transform: scale(1.08); } to { transform: none; } }
@keyframes u-focus  { from { opacity: 0; transform: translate(-50%, -50%) scale(1.3) rotate(-6deg); } to { opacity: .85; transform: translate(-50%, -50%) scale(1) rotate(0); } }
@keyframes u-frame-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes u-fan-a  { from { transform: rotate(0) translate(16%, 6%); } }
@keyframes u-fan-b  { from { transform: rotate(0) translate(-16%, 8%); } }
@keyframes u-in     { from { opacity: 0; translate: 0 36px; } to { opacity: 1; translate: 0 0; } }  /* `translate`, so hover `transform` still works */
@keyframes u-drift  { from { transform: scale(1.14) translateY(-4%); } to { transform: scale(1.14) translateY(4%); } }
@keyframes u-grow   { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes u-pan    { from { object-position: 25% 50%; } to { object-position: 75% 50%; } }
@keyframes u-header-drift { to { transform: translateY(14%) scale(1.04); } }
@keyframes u-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  /* entrances: one sequence for every header */
  .u-homehero .hero__bg { animation: u-settle 16s var(--u-ease) both; }
  .u-homehero__frame { animation: u-focus 1.6s .5s var(--u-ease) both; }
  .u-homehero .hero__brand   { animation: u-rise .8s .05s var(--u-ease) both; }
  .u-homehero .hero__title   { animation: u-rise .8s .15s var(--u-ease) both; }
  .u-homehero .hero__lead    { animation: u-rise .8s .3s var(--u-ease) both; }
  .u-homehero .hero__actions { animation: u-rise .8s .45s var(--u-ease) both; }
  :is(.u-pagehead, .u-hero, .up-hero) h1, .up-immersive h1 { animation: u-rise .8s var(--u-ease) both; }
  :is(.u-pagehead, .u-hero, .up-hero) h1::after { animation: u-rule .8s .4s var(--u-ease) both; }
  .u-pagehead__body > p, .u-pagehead .btn-row, .u-lead, .u-sub, .up-hero__text, .up-hero h1 + p, .up-immersive .post-hero__meta { animation: u-rise .8s .15s var(--u-ease) both; }
  .u-pagehead .btn-row, .u-sub { animation-delay: .27s; }
  .u-pagehead__media img, .u-hero__media img, .u-cover__img img { animation: u-unveil 1.2s .2s var(--u-ease) both; }
  .u-frame::before { animation: u-frame-in 1.2s .5s var(--u-ease) both; }
  .u-stackimg__a { animation: u-fan-a 1.1s .2s var(--u-ease) both; }
  .u-stackimg__b { animation: u-fan-b 1.1s .3s var(--u-ease) both; }
  .u-stackimg__c { animation: u-rise 1s .1s var(--u-ease) both; }
  .up-feature .feat-lead__media img, .up-immersive .post-hero__bg { animation: u-settle 2.2s var(--u-ease) both; }
  .up-project .pd-showcase .pf-tabs__frame.is-active img { animation: u-rise .6s var(--u-ease) both; }

  /* hover lifts and zooms */
  .btn:hover, .up-toolbar .cat-chip:hover, .up-project .pd-showcase .pf-tabs__tab:hover { transform: translateY(-2px); }
  .btn:hover::after, .cs-row:hover .btn::after { transform: translateX(4px); }
  .u-card:hover, .u-feat .feat-row:hover, .u-cards .deliver:hover, .u-status .home-ledger__row:hover, .u-highlights .tl-card:hover,
  .home-tile:hover, .u-cs .cs-row:hover .cs-row__body, .up-blog .art-card:hover .art-card__img, .up-article .art-card:hover .art-card__img,
  .pf-proj--big:hover .proj-card__body { transform: translateY(-6px); }
  .home-panel:hover { transform: translateY(-8px); }
  .pf-minis--2 .feat-mini:hover { transform: translateY(-4px); }
  .feat-mini:hover, .up-feature .feat-mini:hover { transform: translateX(4px); }
  .home-panel:hover > img, .home-tile:hover .home-tile__img, .u-cs .cs-row:hover .cs-row__media img, .art-card:hover .art-card__img img,
  .pf-proj--big:hover .proj-card__media img { transform: scale(1.06); }
  .up-feature .feat-lead:hover .feat-lead__media img { transform: scale(1.05); }
  #featured .pf-feature__media:hover img { transform: translateY(-6px) scale(1.02); }
  .u-ps .cs-ps__item:hover .cs-ps__arrow svg { transform: translateX(3px); }
  .up-project .pd-continue__more .art-card:hover .art-card__img { transform: none; box-shadow: none; }
  /* card rows in Services / Working With Me stagger by .08s */
  .reveal-up { transform: translateY(26px); transition: opacity .7s var(--u-ease), transform .7s var(--u-ease); }
  .u-cards .reveal-up:not(.is-in):nth-child(3n+2), .principles2 .reveal-up:not(.is-in):nth-child(3n+2) { transition-delay: .08s; }
  .u-cards .reveal-up:not(.is-in):nth-child(3n), .principles2 .reveal-up:not(.is-in):nth-child(3n) { transition-delay: .16s; }

  /* scroll-driven (Chromium, Safari 18+); elsewhere the static end state shows */
  @supports (animation-timeline: view()) {
    .u-strip img { animation: u-pan linear both; animation-timeline: view(); }
    .u-strip img:nth-child(even) { animation-direction: reverse; }
    .u-parallax img { animation: u-drift linear both; animation-timeline: view(); }
    .u-process::before { animation: u-grow linear both; animation-timeline: view(); animation-range: entry 20% cover 70%; }
    .u-cs .cs-row__body, .u-numerals .tl-stat, .u-bignums .cs-stat,
    .up-blog .art-grid > .art-card, .pf-minis > .feat-mini, .up-project .cs-phase { animation: u-in linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
    .up-immersive .post-hero__bg { animation: u-header-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
  @supports (animation-timeline: scroll()) {
    .up-progress { display: block; position: fixed; z-index: 101; left: 0; right: 0; top: var(--header-h); height: 3px; background: var(--brand); transform-origin: left; animation: u-progress linear both; animation-timeline: scroll(root); pointer-events: none; }
  }
}


/* ===== Colour Option B "tighten the roles" (20 Nov 2026): burgundy = brand+action, navy = structure+status, two tints only (cool + warm stone), links burgundy. Delete this block to revert to the current palette. ===== */
/* OPTION B "Tighten the roles" (recommended). Draft override only: loads after /assets/css/styles.css.
   Same hues. Fewer surface tints, one meaning per colour.
   burgundy #800020 = brand + action (buttons, links, rules, eyebrows)
   navy     #1e3a5f = structure + information (header, CTA band, status, ledger)
   tints    = two only: cool #dde6ef and pale cool grey #eef2f6 (blush, champagne and grey retired; no warm tints; David chose option 3, 20 Nov 2026)
   gold     #c9a227 = one small signal: "in progress" dot; never text */
:root {
  --band-warm: #eef2f6;
  --band-third: #eef2f6;
  --bg-alt: #eef2f6;
  --link: var(--brand);
  --link-hover: var(--brand-dark);
}
/* Current client work: status is information, not alarm. Navy bars, gold live dot, navy label. */
.home-ledger__row { border-color: rgba(30, 58, 95, .14); }
.home-ledger__row::before,
.home-ledger__row:nth-child(2)::before,
.home-ledger__row:nth-child(3)::before { background: var(--cta-blue); }
.home-ledger__date span { border-color: rgba(30, 58, 95, .28); color: var(--cta-blue); }
.home-ledger__date span::before { background: var(--gold); }
.home-ledger__date span { background: #e8eef5; border-color: transparent; }
.cs-phase--alt { background: var(--band-cool); } /* keep phases alternating warm / cool */

/* ===== PHONE DESIGN (mobile-only layout, calmer motion; from the mobile design agent, 21 Nov 2026) ===== */
/* ==========================================================================
   Product Scope: MOBILE DESIGN (draft, 20 Nov 2026)
   Loads AFTER /assets/css/styles.css, /uplift/css/uplift.css (+ oneoffs/families/
   articles). Phones are designed here, not squeezed: same words, links, images and
   identity (burgundy = brand + action, navy = structure, cool tints only).

   Principles
   1. One calm column, 20px gutters, a tighter rhythm (48px sections, not 64-112px).
   2. Nothing moves on its own on a phone: no entrances, no scroll-linked motion,
      no hover lifts that stick after a tap. Content is simply there (no pop-in).
   3. The header is 60px and never changes height. Every control is >= 44px
      (buttons 48px), inputs >= 16px, images reserve their space (no layout shift).
   4. Swipe rails only where the items are a set of peers (case-study tiles,
      objectives, key features, related articles): next card peeks + dots.
   5. Long step lists (Development Process) become accordions; closed panels use
      hidden="until-found", so find-in-page still reaches every word.
   6. Colours are tokens (--m-*) on top of the existing ones, so the band rhythm
      being explored elsewhere can change them in one place.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. No motion on touch screens at any width (phones and tablets).
      Covers the uplift entrances, the scroll-driven pans/drifts/progress bar,
      the base scroll-reveal and the sticky hover lifts.
   -------------------------------------------------------------------------- */
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  main *, main *::before, main *::after { animation: none !important; }
  .reveal-up, .reveal-up.is-in { opacity: 1; transform: none; transition: none; will-change: auto; }
  .cs-row.reveal { opacity: 1; }
  .cs-row.reveal .cs-row__inner { transform: none; transition: none; }
  .up-progress { display: none !important; }
  /* a tap leaves :hover applied on touch screens; keep cards and photos still */
  .btn:hover, .btn:hover::after, .cs-row:hover .btn::after,
  .u-card:hover, .u-feat .feat-row:hover, .u-cards .deliver:hover, .u-status .home-ledger__row:hover, .u-highlights .tl-card:hover,
  .home-tile:hover, .home-panel:hover, .u-cs .cs-row:hover .cs-row__body, .up-blog .art-card:hover .art-card__img, .up-article .art-card:hover .art-card__img,
  .pf-proj--big:hover .proj-card__body, .pf-minis--2 .feat-mini:hover, .feat-mini:hover, .up-feature .feat-mini:hover, .home-ledger__row:hover,
  .deliver2:hover .u-chip, .u-cards .deliver:hover .deliver__icon, .u-card:hover .u-chip, .u-col:hover .u-chip, .pitem:hover .u-chip, .u-feat .feat-row:hover .feat-row__icon,
  .home-panel:hover > img, .home-tile:hover .home-tile__img, .u-cs .cs-row:hover .cs-row__media img, .art-card:hover .art-card__img img,
  .pf-proj--big:hover .proj-card__media img, .up-feature .feat-lead:hover .feat-lead__media img, #featured .pf-feature__media:hover img,
  .feat-lead:hover .feat-lead__media img, .feat-mini:hover .feat-mini__media img, .product-card__img:hover img { transform: none; }
  .u-strip:hover img { filter: none; }
}

/* --------------------------------------------------------------------------
   1. PHONES (<= 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {

  /* ---- 1.1 tokens: rhythm, type, and the mobile-only colours ---- */
  :root {
    --header-h: 60px;
    --m-gutter: 20px;
    --u-space: 48px;
    --u-space-cta: 56px;
    --u-head-top: calc(var(--header-h) + 32px);
    --u-head-bottom: 36px;
    --u-overlap: 40px;
    --u-gap: 14px;
    --u-h1: 2.15rem;             /* 34px: 3-4 lines for long titles at 375 */
    --u-h2: 1.7rem;              /* 27px */
    --u-lead-size: 1.08rem;
    --u-statement: 1.25rem;
    --u-numeral: 2.9rem;
    --m-rule-gap: 14px;          /* burgundy rule under headings */
    --m-card-pad: 18px;
    --m-dock-bg: var(--brand);
    --m-dock-ink: #fff;
    --m-dot: rgba(30, 58, 95, .22);
    --m-dot-on: var(--brand);
    --m-dot-dark: rgba(255, 255, 255, .32);
    --m-dot-dark-on: #fff;
  }
  .container { padding-inline: var(--m-gutter); }

  /* ---- 1.2 header: compact, fixed height, big menu targets ---- */
  .site-header .container { min-height: var(--header-h); gap: 12px; }
  .site-logo { min-height: 44px; gap: 10px; }
  .site-logo .ps-mark { width: 32px; height: 32px; }
  .site-logo__name { font-size: .95rem; }
  .nav-toggle { width: 48px; height: 48px; padding: 0; margin-right: -12px; align-items: center; justify-content: center; }
  .main-nav.open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: 0 18px 30px rgba(0, 0, 0, .25); }
  .main-nav ul { padding: 4px var(--m-gutter) 14px; }
  .main-nav a { display: flex; align-items: center; min-height: 52px; padding: 0; font-size: 1.05rem; }
  .main-nav a::after { bottom: 10px; }

  /* ---- 1.3 type and section heads ---- */
  .section-head, .cs-head { margin-bottom: 24px; }
  .cs-head { gap: 18px; }
  .section-head h2::after, .cs-head__main h2::after, .h2-rule::after, .howiwork-fb h2::after, .pd-continue h2::after { margin-top: var(--m-rule-gap); }
  main h2 { line-height: 1.14; text-wrap: balance; }
  .section-head p, .cs-head__main p { font-size: 1.05rem; line-height: 1.55; margin-top: 14px; text-wrap: pretty; }
  :is(.u-pagehead, .u-hero, .up-hero) h1 { line-height: 1.08; }
  :is(.u-pagehead, .u-hero, .up-hero) h1::after { margin-top: 16px; }
  .u-lead, .u-pagehead__body > p { margin-top: 18px; font-size: 1.05rem; }
  .prose { font-size: 1.0625rem; line-height: 1.7; }

  /* ---- 1.4 buttons: full-width, thumb-height, stacked (primary first) ---- */
  .btn { min-height: 48px; padding: 12px 20px; font-size: .95rem; justify-content: center; }
  .btn-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .btn-row .btn { width: 100%; margin: 0; }
  .cta-row .btn, .u-cta .btn { width: 100%; padding: 14px 20px; }

  /* ---- 1.5 cards with one stretched link are tappable edge to edge ---- */
  .feat-mini { position: relative; }
  .feat-mini .art-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  .feat-mini:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 12px; }
  .feat-mini .art-link:focus-visible { outline: 0; }

  /* ---- 1.6 swipe rails (set by class here, dots added by mobile.js) ---- */
  .home-cases,
  .u-obj__grid, .u-feat,
  .up-article [data-related].art-grid {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%;
    gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--m-gutter)); padding: 4px var(--m-gutter) 14px; scroll-padding-inline: var(--m-gutter);
    scrollbar-width: none; align-items: stretch;
  }
  .home-cases::-webkit-scrollbar, .u-obj__grid::-webkit-scrollbar, .u-feat::-webkit-scrollbar, .up-article [data-related].art-grid::-webkit-scrollbar { display: none; }
  .home-cases > *, .u-obj__grid > *, .u-feat > *, .up-article [data-related].art-grid > * { scroll-snap-align: start; grid-column: auto; min-width: 0; }
  .m-dots { display: flex; justify-content: center; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
  .m-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--m-dot); transition: background .2s ease; }
  .m-dots span.is-on { background: var(--m-dot-on); }
  .home-cs .m-dots span { background: var(--m-dot-dark); }
  .home-cs .m-dots span.is-on { background: var(--m-dot-dark-on); }
  [data-m-rail]:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }

  /* ---- 1.7 accordions (Development Process; built by mobile.js) ---- */
  .m-acc__btn { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 44px; cursor: pointer; font: inherit; color: inherit; }
  .m-acc__btn::after { content: "+"; flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); font-family: var(--font-heading); font-weight: 400; font-size: 1.3rem; line-height: 1; }
  .m-acc__btn[aria-expanded="true"]::after { content: "\2212"; background: var(--brand); color: #fff; }
  .m-acc__btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 4px; }

  /* ---- 1.8 sticky Contact (built by mobile.js; see decision note) ---- */
  .m-dock {
    position: fixed; z-index: 90; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
    border-radius: 999px; background: var(--m-dock-bg); color: var(--m-dock-ink);
    font-family: var(--font-heading); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
    box-shadow: 0 10px 24px rgba(20, 30, 45, .28);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s;
  }
  .m-dock::after { content: ""; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--u-arrow) center / contain no-repeat; mask: var(--u-arrow) center / contain no-repeat; }
  .m-dock:hover, .m-dock:focus-visible { color: var(--m-dock-ink); background: var(--brand-dark); }
  .m-dock:focus-visible { outline: 3px solid var(--cta-blue); outline-offset: 3px; }
  .m-dock.is-shown { opacity: 1; visibility: visible; transition: opacity .2s ease; }

  /* ---- 1.9 navy CTA band ---- */
  .u-cta::before { display: none; }   /* the watermark sat behind the heading on phones */
  .u-cta .cta-row { gap: 24px; }
  .u-cta .cta-row h2 { font-size: 1.65rem; line-height: 1.15; }
  .u-cta .cta-row h2::after { margin-top: 14px; }
  .u-cta .cta-row p { font-size: 1rem; line-height: 1.6; margin-top: 14px; }

  /* ---- 1.10 footer: quick to use with a thumb ---- */
  .site-footer { padding-top: 40px; }
  .footer-main { gap: 26px; padding-bottom: 20px; }
  .footer-brand__lock { margin-bottom: 12px; }
  .footer-brand p { margin: 0; }
  .site-footer h3, .footer-col h3 { margin-bottom: 6px; }
  .footer-links--2 { columns: 2; column-gap: 16px; }
  .site-footer li, .footer-col li { margin: 0; }
  .footer-links--2 a { display: flex; align-items: center; min-height: 44px; font-size: 1rem; }
  .footer-social { gap: 10px; margin-top: 8px; }
  .footer-social a, .footer-social a:hover { width: 48px; height: 48px; }
  .footer-social svg { width: 20px; height: 20px; }
  .footer-legal { gap: 6px; padding: 18px 0 calc(22px + env(safe-area-inset-bottom, 0px)); }
  .footer-legal__links { gap: 0 24px; }
  .footer-legal__links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: .95rem; }
  .footer-totop { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 6px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; color: #cfd6db; }

  /* ==========================================================================
     2. HOME
     ========================================================================== */
  .u-homehero .hero__inner { padding-top: calc(var(--header-h) + 36px); padding-bottom: calc(var(--u-overlap) + 36px); }
  .hero__brand { gap: 10px; margin-bottom: 18px; }
  .hero__brand-icon, .hero__brand > svg { height: 34px; width: auto; }
  .hero__brand-name { font-size: 1.15rem; }
  .u-homehero .hero__title { font-size: 2rem; line-height: 1.12; text-wrap: balance; }
  .u-homehero .hero__lead { font-size: 1.02rem; line-height: 1.6; }
  .u-homehero .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
  .u-homehero .hero__actions .btn { width: 100%; margin: 0; padding: 12px 14px; }

  .u-lift__panel { padding: 24px 20px 26px; border-radius: 18px; }
  .u-lift .deliver2-grid { gap: 26px; }
  .u-lift .deliver2 { padding-top: 20px; }
  .u-lift .deliver2 .u-chip { width: 44px; height: 44px; border-radius: 12px; }
  .u-lift .deliver2 .u-chip svg { width: 22px; height: 22px; }
  .u-lift .deliver2__num { font-size: 2.2rem; }
  .u-lift .deliver2 h3 { font-size: 1.12rem; margin: 14px 0 6px; }
  .u-lift .deliver2 p { font-size: .98rem; line-height: 1.55; margin: 0; }

  .home-cs .cs-head { margin-bottom: 22px; }
  .home-panel { min-height: 0; max-width: none; aspect-ratio: 4 / 5; border-radius: var(--u-radius); }
  .home-panel__body { padding: 20px; }
  .home-panel h3 { font-size: 1.15rem; }
  .u-year { font-size: 1.25rem; }

  .u-status { gap: 12px; }
  .u-status .home-ledger__row { padding: 20px 18px; gap: 10px; }
  .u-status .home-ledger__title { font-size: 1.15rem; }
  .u-status .home-ledger__text { font-size: .97rem; line-height: 1.55; }

  .home-mosaic { gap: 12px; }
  .home-tile { min-height: 0; aspect-ratio: 16 / 10; }
  .home-tile__body { padding: 18px 20px; }
  .home-tile__title, .home-tile--a .home-tile__title { font-size: 1.25rem; }

  .articles-feature { gap: 26px; }
  .feat-lead .art-title { font-size: 1.3rem; line-height: 1.22; }
  .feat-side { gap: 14px; }
  .feat-mini { grid-template-columns: 96px 1fr; gap: 14px; padding: 0; margin: 0; }
  .feat-mini .art-title { font-size: 1rem; line-height: 1.3; }

  /* ==========================================================================
     3. INTERIOR PAGE HEADERS (Services, About, Projects, Contact, case study)
     ========================================================================== */
  .u-pagehead__grid, .u-hero__grid, .up-hero__grid { gap: 22px; }
  .u-pagehead .btn-row { margin-top: 24px; }
  .u-pagehead__media { margin: 4px 8px calc(-1 * var(--u-overlap)); }
  .u-pagehead__media img { aspect-ratio: 3 / 2; }
  .section.u-after-head { padding-top: calc(var(--u-overlap) + 36px); }
  .u-frame::before { inset: -8px; --l: 26px; }
  .u-hero__media { max-width: none; }
  .u-hero__media img { aspect-ratio: 4 / 3.4; }
  .up-hero__text p, .up-hero__text p:first-child { font-size: 1.05rem; line-height: 1.6; }

  /* ==========================================================================
     4. SERVICES
     ========================================================================== */
  /* the "What I Do" panel becomes a full-bleed band so its cards get the full width */
  .u-after-head .panel { margin-inline: calc(-1 * var(--m-gutter)); border-radius: 0; padding: 36px var(--m-gutter); }
  .u-cards { gap: 12px; }
  .u-cards .deliver { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: var(--m-card-pad); }
  .u-cards .deliver__icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
  .u-cards .deliver__icon svg { width: 22px; height: 22px; }
  .u-cards .deliver h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
  .u-cards .deliver p { grid-column: 1 / -1; margin-top: 10px; font-size: .97rem; line-height: 1.55; }

  .section--feature + .u-strip { margin-top: var(--u-space); }
  .u-strip img, .photo-strip img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

  .u-band-third .principles2 { gap: 0; }
  .u-band-third .principle2 { padding: 18px 0 20px; }
  .u-band-third .principle2__head { gap: 12px; margin-bottom: 8px; }
  .u-band-third .principle2__ico, .u-disc { width: 40px; height: 40px; }
  .u-band-third .principle2__ico svg { width: 20px; height: 20px; }
  .u-band-third .principle2 h3 { font-size: 1.08rem; }
  .u-band-third .principle2 p { font-size: .97rem; line-height: 1.55; }

  .faq-grid { gap: 28px; }
  .u-faq .faq__item summary { font-size: 1.04rem; line-height: 1.4; padding: 18px 54px 18px 0; min-height: 44px; }
  .u-faq .faq__item summary::after { width: 36px; height: 36px; font-size: 1.2rem; }
  .u-faq .faq__item p { font-size: 1rem; margin-bottom: 20px; }
  .u-faq .faq-grid__media { max-width: none; padding: 0 12px 12px 0; }
  .u-faq .faq-grid__media::before { left: 12px; top: 12px; }
  .u-faq .faq-grid__media img { aspect-ratio: 16 / 10; }

  /* ==========================================================================
     5. CASE STUDY (Nucleus, long template)
     ========================================================================== */
  .u-hero--detail .back-link { margin-bottom: 10px; }
  .u-cover__img img { aspect-ratio: 16 / 10; }
  .u-summary { margin: -28px 10px 0; padding: 18px 18px 8px; gap: 6px; }
  .u-summary__title { white-space: normal; margin: 0; }
  /* a spec sheet: label left, value right, one row each */
  .u-summary__facts { grid-template-columns: 1fr; gap: 0; }
  .u-summary__facts > div { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); column-gap: 12px; align-items: start; padding: 12px 0 12px 30px; }
  .u-summary__facts > div + div { margin-top: 0; border-top: 1px solid var(--line); }
  .u-summary__facts dt { margin: 0; font-size: .86rem; line-height: 1.35; }
  .u-summary__facts dd { font-size: .92rem; line-height: 1.4; }

  .u-editorial { gap: 0; }
  .u-editorial__head h2 { margin-bottom: 20px; }
  .u-editorial__body { font-size: 1.0625rem; }
  .u-editorial__body .lead { font-size: 1.15rem; margin-bottom: 1.1em; }
  .u-statement--sm { font-size: 1.15rem; line-height: 1.45; }

  .u-obj { gap: 16px; }
  .u-obj__media { aspect-ratio: 16 / 9; min-height: 0; }
  .u-card, .u-feat .feat-row { padding: var(--m-card-pad) var(--m-card-pad) 20px; }
  .u-card .u-chip { width: 44px; height: 44px; margin-bottom: 12px; }
  .u-card h3, .u-feat .feat-row__body h3 { font-size: 1.05rem; }
  .u-card p, .u-feat .feat-row__body p { font-size: .95rem; }
  .feat-intro { font-size: 1.05rem; margin-bottom: 18px; }
  .u-feat .feat-row { gap: 12px; }

  .u-process .cs-phase { padding: 20px 18px; }
  .u-process .cs-phase + .cs-phase { margin-top: 12px; }
  .u-node { width: 40px; height: 40px; margin-bottom: 10px; }
  .u-node svg { width: 20px; height: 20px; }
  .u-process .cs-phase h3 { font-size: 1.22rem; line-height: 1.25; margin: 4px 0 6px; }
  .u-process .cs-phase__lead { font-size: 1rem; margin-bottom: 0; }
  .u-process .cs-steps { grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
  .u-process .cs-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; align-items: center; padding-top: 14px; }
  .u-process .cs-step__icon { margin: 0; }
  .u-process .cs-step__icon svg { width: 24px; height: 24px; }
  .u-process .cs-step h4 { margin: 0; font-size: 1rem; line-height: 1.3; }
  .u-process .cs-step p { grid-column: 1 / -1; margin-top: 8px; font-size: .95rem; }

  .u-ps .cs-ps__item + .cs-ps__item { margin-top: 34px; }
  .u-ps .cs-ps__item > h3 { font-size: 1.2rem; line-height: 1.28; margin-bottom: 14px; }
  .u-ps .cs-ps__cols { gap: 0; }
  .u-ps .cs-ps__challenge, .u-ps .cs-ps__solution { padding: 18px 18px 20px; }
  .u-ps .cs-ps__arrow { position: relative; z-index: 1; width: 40px; height: 40px; margin: -10px auto; box-shadow: 0 0 0 5px #fff; }
  .u-ps .cs-ps__arrow svg { width: 18px; height: 18px; }
  .u-ps .cs-ps__cols p { font-size: .97rem; line-height: 1.6; }

  .u-bignums .cs-stat, .u-bignums .cs-stat + .cs-stat { padding: 18px 0; }
  .u-bignums .cs-stat strong { font-size: 2.7rem; }
  .u-bignums .cs-stat b { font-size: 1.05rem; margin-top: 8px; }
  .u-proof { gap: 26px; margin-top: 18px; }
  .u-quote { width: 40px; margin-bottom: 14px; }
  .u-proof .cs-testimonial blockquote { font-size: 1.18rem; line-height: 1.45; }
  .u-proof .cs-voices { padding: 20px 18px; }

  /* ==========================================================================
     6. ARTICLE
     ========================================================================== */
  .up-immersive .post-hero__bg { height: 440px; }   /* fixed: no vh, so the URL bar cannot resize it */
  .up-immersive .post-hero__overlay .container { padding-bottom: 28px; }
  .up-immersive .back-link { margin-bottom: 14px; }
  .up-immersive .post-hero__meta { font-size: .72rem; letter-spacing: .12em; line-height: 1.6; }
  .up-immersive h1 { font-size: 1.95rem; line-height: 1.1; }
  .post-hero__overlay h1::before { margin-bottom: 14px; }
  .up-article .post-hero + .section { padding-top: 24px; }
  .post-layout:has(.product-card) { gap: 30px; align-items: stretch; }   /* base grid rule left these flex items shrink-wrapped */

  /* compact product card: same content, a third of the height, still before the story */
  .up-article .product-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px 16px 18px; box-shadow: var(--u-shadow); }
  .up-article .product-card__label { grid-column: 1 / -1; margin-bottom: 10px; }
  .up-article .product-card__img { grid-column: 1; grid-row: 2 / span 2; margin: 0; }
  .up-article .product-card__title { grid-column: 2; grid-row: 2; font-size: 1.05rem; margin: 0 0 4px; }
  .up-article .product-card__text { grid-column: 2; grid-row: 3; font-size: .9rem; margin: 0; }
  .up-article .product-card__btn { grid-column: 1 / -1; margin-top: 14px; }
  .up-article .product-card__btn + .product-card__btn { margin-top: 10px; }

  /* reading: 17px / 1.7 on a 335px measure (about 40 characters a line) */
  .up-article .prose { font-size: 1.0625rem; line-height: 1.72; }
  .up-article .prose p { margin-bottom: 1.15em; }
  .up-article .prose .lead { font-size: 1.18rem; line-height: 1.55; margin-bottom: 1.2em; }
  .up-article .prose h2 { font-size: 1.4rem; line-height: 1.22; margin: 1.9em 0 .7em; }
  .up-article .prose h2::after { width: 48px; margin-top: 10px; }
  .up-article .prose img { width: 100%; height: auto; margin: 1.6em 0; border-radius: 12px; box-shadow: var(--u-shadow); }
  .up-article .post-nav { margin-top: 36px; padding-top: 8px; gap: 12px; }
  .post-nav a { display: inline-flex; align-items: center; min-height: 48px; }

  .up-article .post-sidebar > * + * { margin-top: 0; }
  .sidebar-search label { margin-bottom: 12px; }
  .sidebar-search input { width: 100%; min-height: 48px; font-size: 16px; }
  .cat-chips { gap: 8px; margin-bottom: 0; }
  .cat-chip, .up-toolbar .cat-chip { min-height: 44px; padding: 8px 16px; }
  .post-sidebar .feat-lead { margin-bottom: 20px; }
  .up-article [data-related].art-grid { grid-auto-columns: 80%; }
  .up-article .art-card__img { aspect-ratio: 3 / 2; }
  .art-card__meta { flex-wrap: wrap; row-gap: 2px; }

  /* ==========================================================================
     7. PROJECTS INDEX
     ========================================================================== */
  #featured .pf-feature { padding: 20px 18px 22px; gap: 22px; }
  #featured .pf-feature__media::before { inset: 0 -3% 0 10%; }
  #featured .pf-feature__body p { font-size: 1rem; line-height: 1.6; }
  #projects .proj-grid { gap: 22px; }
  .up-tile-title { font-size: 1.45rem; left: 18px; bottom: calc(36px + 14px); }
  .pf-proj--big .proj-card__body { margin: -36px 12px 0; padding: 16px 16px 18px; }
  .pf-proj--big .proj-card__body p { font-size: .98rem; line-height: 1.55; margin: 0; }
  .pf-minis--2 { gap: 12px; margin-top: 22px; }
  /* thumb + title on one line, the description full width below: about half the height */
  .pf-minis--2 .feat-mini { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "m t" "x x"; column-gap: 14px; row-gap: 10px; align-items: center; padding: 14px 16px 16px; background: #fff; }
  .pf-minis--2 .feat-mini > div { display: contents; }
  .pf-minis--2 .feat-mini__media { grid-area: m; aspect-ratio: 1; border-radius: 10px; }
  .pf-minis--2 .feat-mini .art-title { grid-area: t; margin: 0; font-size: 1.08rem; line-height: 1.25; }
  .pf-mini-text { grid-area: x; margin: 0; font-size: .95rem; line-height: 1.55; }

  /* ==========================================================================
     8. ABOUT + CONTACT (glance)
     ========================================================================== */
  .u-statement { margin-bottom: 28px; }
  .u-intro .u-statement { padding-left: 16px; border-left-width: 3px; }
  .u-cols3 { gap: 24px; }
  .u-col { padding-top: 20px; }
  .u-col .u-chip { width: 44px; height: 44px; margin-bottom: 12px; }
  .u-btns { margin-top: 28px; }
  .u-numerals { margin: 8px 0 32px; gap: 0; }
  .u-numerals .tl-stat, .u-numerals .tl-stat + .tl-stat { padding: 16px 0; }
  .u-howiwork { min-height: 0; }
  .u-highlights .tl-card { padding: 22px 20px; }

  /* Contact: the form comes straight after "Send a message"; the reassurance follows */
  .u-contact .contact-panel { gap: 0; padding: 22px 16px; }
  .u-contact .contact-panel__intro { display: contents; }
  .u-contact .contact-panel__intro > h2 { order: 0; margin: 0 6px; }
  .u-contact .contact-panel__form { order: 1; margin-top: 20px; }
  .u-contact .contact-panel__intro > p { order: 2; margin: 22px 6px 0; }
  .u-contact .contact-panel__intro > p + p { margin-top: 14px; }
  .u-contact__meta { order: 3; margin: 22px 6px 0; }
  .contact-form input, .contact-form textarea { font-size: 16px; }
}


/* --------------------------------------------------------------------------
   2. TABLETS AND SMALL LAPTOPS (641-900px): the uplift layout already works here;
      only targets, the stat row and the footer need help.
   -------------------------------------------------------------------------- */
@media (min-width: 641px) and (max-width: 900px) {
  /* the count-up re-wrapped "150,000" in the three-column stat row (measured CLS 0.05) */
  .u-bignums .cs-stat strong { white-space: nowrap; font-size: clamp(2.4rem, 1rem + 3.6vw, 3.4rem); font-variant-numeric: tabular-nums; }
  .footer-links--2 a, .footer-legal__links a, .footer-totop { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .site-footer li, .footer-col li { margin-bottom: 0; }
  .footer-social a, .footer-social a:hover { width: 48px; height: 48px; }
  .post-nav a { display: inline-flex; align-items: center; min-height: 48px; }
  .cat-chip { min-height: 44px; }
  .sidebar-search input { min-height: 48px; font-size: 16px; }
  .site-logo { min-height: 44px; }
  .nav-toggle { width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center; }
}


/* ===== PHONE ANTI-JANK FIXES (from the jank audit; F1-F9, 21 Nov 2026) ===== */
/* ==========================================================================
   PROPOSED mobile anti-jank fixes for the design uplift. NOT APPLIED ANYWHERE.
   Intended to load after /uplift/css/uplift.css (or be merged into it).
   Each block is keyed to an item in REPORT.md (F1..F9). Desktop is untouched
   except F2 (a pure bug fix) and F3 (touch-only by definition).
   ========================================================================== */

/* F1. One motion per element, one clock. [uplift-introduced]
   uplift.css:738-739 and uplift-oneoffs.css:250 put a scroll-linked `u-in` (opacity 0->1,
   translate 36px) on elements that main.js:481-489 ALSO gives `.reveal-up` (time-based
   transform 26px, uplift.css:728). They stack to ~62px of travel on two different clocks
   (scroll position vs a .7s transition), and opacity follows scroll so a card parks
   half-faded whenever the thumb stops. Blog: 65 of 67 entering cards; case study: 3 stats;
   project: 3 phases. On phones keep only the IntersectionObserver reveal. */
@media (hover: none), (max-width: 900px) {
  .u-cs .cs-row__body, .u-numerals .tl-stat, .u-bignums .cs-stat,
  .up-blog .art-grid > .art-card, .pf-minis > .feat-mini, .up-project .cs-phase,
  .u-cs2dec .cs2-row, .u-why .u-card, .u-cs2obj .u-cards .deliver {
    animation: none !important;
  }
  /* scroll-driven decoration that repaints every frame on the main thread */
  .u-strip img { animation: none !important; }              /* u-pan animates object-position: not compositable */
  .u-parallax img { animation: none !important; transform: none; }
  .up-immersive .post-hero__bg { animation: none !important; }  /* u-settle then u-header-drift: two animations on one hero image */
}

/* F2. Opacity snaps instead of fading. [uplift-introduced]
   uplift.css:120-122 `.u-cards .deliver, .u-status .home-ledger__row, .u-feat .feat-row ...
   { transition: transform .4s, box-shadow .4s }` (specificity 0,2,0) beats `.reveal-up`'s
   `transition: opacity, transform` (0,1,0), so these cards pop from opacity 0 to 1 in one
   frame while still sliding 26px. Measured: transition-property "transform, box-shadow". */
.u-card.reveal-up, .u-feat .feat-row.reveal-up, .u-cards .deliver.reveal-up,
.u-status .home-ledger__row.reveal-up, .u-highlights .tl-card.reveal-up {
  transition: opacity .5s ease, transform .5s var(--u-ease), box-shadow .4s ease;
}

/* F3. Hover lifts stick after a tap on touch screens. [uplift-introduced, 16 new rules; 33 pre-existing]
   uplift.css:712-726 are not inside (hover: hover). Measured: tapping a services card or a
   case-study card leaves it at translateY(-6px) with :hover stuck on until the next tap.
   Best fix is in source: wrap uplift.css:712-726 in `@media (hover: hover) and (pointer: fine) { ... }`.
   Override version: */
@media (hover: none) {
  .btn:hover, .up-toolbar .cat-chip:hover, .up-project .pd-showcase .pf-tabs__tab:hover,
  .u-card:hover, .u-feat .feat-row:hover, .u-cards .deliver:hover, .u-status .home-ledger__row:hover, .u-highlights .tl-card:hover,
  .home-tile:hover, .u-cs .cs-row:hover .cs-row__body, .up-blog .art-card:hover .art-card__img, .up-article .art-card:hover .art-card__img,
  .pf-proj--big:hover .proj-card__body, .home-panel:hover, .pf-minis--2 .feat-mini:hover, .feat-mini:hover, .up-feature .feat-mini:hover,
  .home-panel:hover > img, .home-tile:hover .home-tile__img, .u-cs .cs-row:hover .cs-row__media img, .art-card:hover .art-card__img img,
  .pf-proj--big:hover .proj-card__media img, .up-feature .feat-lead:hover .feat-lead__media img, #featured .pf-feature__media:hover img,
  .u-resfeat__media:hover img, .u-why .u-card:hover, .u-cs2dec .cs2-row:hover,
  .deliver2:hover .u-chip, .u-cards .deliver:hover .deliver__icon, .u-card:hover .u-chip, .u-col:hover .u-chip, .pitem:hover .u-chip, .u-feat .feat-row:hover .feat-row__icon {
    transform: none;
  }
  .btn:hover::after, .cs-row:hover .btn::after, .u-ps .cs-ps__item:hover .cs-ps__arrow svg { transform: none; }
  .u-lift .deliver2:hover::before { width: 64px; }
  .u-status .home-ledger__row:hover::before { transform: scaleX(.18); }
}

/* F4. Smaller, shorter reveal on phones. [uplift-introduced: 16px/.6s -> 26px/.7s + .08/.16s stagger]
   Measured average visible offset of moving content while scrolling at 375: original 10-13px,
   uplift 14-25px (+40-90%). On a 375px screen 26px is 3.2% of the viewport per block. */
@media (hover: none), (max-width: 900px) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal-up { transform: translateY(12px); transition: opacity .45s ease, transform .45s var(--u-ease); }
    .u-cards .reveal-up:not(.is-in):nth-child(3n+2), .principles2 .reveal-up:not(.is-in):nth-child(3n+2),
    .u-cards .reveal-up:not(.is-in):nth-child(3n), .principles2 .reveal-up:not(.is-in):nth-child(3n) { transition-delay: 0s; }  /* 1-column on phones: a stagger only adds lag */
  }
}

/* F5. Page-head entrances: one gentle move, not four. [uplift-introduced]
   uplift.css:693-708: h1 rise 22px + rule + lead rise + buttons rise + image clip-path unveil
   with scale(1.06) (1.2s) on every page head; on phones the photo stacks under the text, so
   the unveil plays at the fold edge while the user is already scrolling. */
@media (hover: none), (max-width: 860px) {
  @media (prefers-reduced-motion: no-preference) {
    .u-pagehead__media img, .u-hero__media img, .u-cover__img img, .u-cs2head__media img { animation: u-fade .6s .1s ease both; }
    .u-frame::before { animation: none; }
  }
}
@keyframes u-fade { from { opacity: 0; } to { opacity: 1; } }

/* F6. vh on a tall hero: use the small viewport so in-app browsers (LinkedIn / Instagram webviews,
   which still resize vh with their toolbars) do not move the article 44px when the bar hides.
   Measured with a 56px viewport change: article content moved 44px (78vh of 56px). */
.up-immersive .post-hero__bg { height: clamp(460px, 78vh, 720px); height: clamp(460px, 78svh, 720px); }
.u-homehero { min-height: clamp(620px, 94vh, 900px); min-height: clamp(620px, 94svh, 900px); }
@media (max-width: 960px) { .u-homehero { min-height: 0; } }

/* F7. Reading-progress bar sits on a hard-coded header height. Fine at today's 84px + 4px
   border (measured: header 88px tall, bar at top 84px, so it overlaps the header's bottom 4px).
   Pin it to the header's real bottom edge instead. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .up-progress { top: calc(var(--header-h) + 4px); }
  }
}

/* F8. Tap targets under 44px (mostly pre-existing). */
@media (pointer: coarse) {
  .footer-social a { min-width: 44px; min-height: 44px; }
  .footer-legal a, .footer-totop, .back-link, .post-nav__prev, .post-nav__next { display: inline-flex; align-items: center; min-height: 44px; }
  .home-tile__link { display: inline-flex; align-items: center; min-height: 44px; }
  .up-project .pd-showcase .pf-tabs__tab, .pf-tabs__tab { min-height: 44px; }
  .gallery__toggle { min-width: 44px; min-height: 44px; }
  .up-toolbar .cat-chip, .cat-chip { min-height: 44px; }
}

/* === PALETTE v5 START (generated by _source/drafts/uplift/colour/final/build_palette_css.py; do not hand-edit) === */
/* roles: page header light blue; reading white; supporting light grey; text-led proof navy; closing CTA navy; footer slate; black only where a section is image-led */
:root {
  --bl-ink: #1e3a5f;
  --bl-navy: #1e3a5f;
  --bl-burg: #1e3a5f;
  --bl-t1: #eef2f6;
  --bl-t2: #dde6ef;
  --bl-on-dark-2: #c9d3de;
  --bl-on-brand-2: #eef1f5;
  --bl-label: #ff9fb2;
  --bl-accent: #c8173f;
  --bl-line-dark: rgba(255, 255, 255, .18);
}

/* --------------------------------------------------------------------------
   1. SURFACES (section role -> colour)
   -------------------------------------------------------------------------- */
/* closing CTA: deep navy */
.cta-band.u-cta { background-color: var(--bl-navy); }

/* approach / proof: ink */
.section.u-band-third,                       /* Services: Working With Me; Resources: Why */
.section.section--third,                     /* Case study: Key Features; About: Highlights */
.section.u-cs2dec                            /* Herbie: Key Product Decisions */
{ background-color: var(--bl-ink); }

/* the key point: burgundy */
.home-cs,                                    /* Home: Case Studies */
.section.u-cs2quote                          /* Herbie: the rule */
{ background-color: var(--bl-burg); }

/* long listing / story sections: tint 1, so no page is a long run of white */
.u-hero--cases + .section,                   /* Case studies index rows */
.section.up-all,                             /* Blog index + categories */
.section.pd-story,                           /* Project page: the story */
.section.u-guides,                           /* Resources: Guides */
.section.u-cs2role,                          /* Herbie: My Role */
.section.u-cs2story,                         /* Herbie: the full story */
.section.u-doc                               /* Legal: the document sheet sits on tint */
{ background-color: var(--bl-t1); }

/* cards that used a tint now sit on tint 1: they turn white */
.u-cs .cs-row__body, .u-cs .cs-row--warm .cs-row__body, .u-cs .cs-row--cool .cs-row__body, .u-cs .cs-row--third .cs-row__body { background-color: #fff; }
.pd-story .cs-phase, .pd-story .cs-phase--warm, .pd-story .cs-phase--cool, .pd-story .cs-phase--third, .pd-story .cs-phase--alt { background-color: #fff; }
.u-cs2story .cs2-next { background-color: #fff; }
.up-toolbar { background-color: var(--bl-t2); }  /* filter bar on tint 1: one step deeper */

/* --------------------------------------------------------------------------
   2. TEXT ON INK, NAVY AND BURGUNDY
   Colour tokens are re-pointed inside the section, and reset again on the
   white / tinted cards that sit on it (cards keep dark text).
   -------------------------------------------------------------------------- */
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec) {
  color: var(--bl-on-dark-2);
  --heading: #fff; --ink: var(--bl-on-dark-2); --muted: var(--bl-on-dark-2); --u-ink-2: var(--bl-on-dark-2);
  --text-lead: var(--bl-on-dark-2); --line: var(--bl-line-dark);
  --link: #fff; --link-hover: #fff; --link-decoration: rgba(255, 255, 255, .55); --focus: #fff;
}
:is(.home-cs, .section.u-cs2quote) {
  color: var(--bl-on-brand-2);
  --heading: #fff; --ink: var(--bl-on-brand-2); --muted: var(--bl-on-brand-2); --u-ink-2: var(--bl-on-brand-2);
  --text-lead: var(--bl-on-brand-2); --line: rgba(255, 255, 255, .28);
  --link: #fff; --link-hover: #fff; --link-decoration: rgba(255, 255, 255, .6); --focus: #fff;
}
/* cards on dark keep the light-surface tokens */
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .home-cs)
  :is(.u-card, .tl-card, .feat-row, .deliver, .cs2-row, .cs-voices) {
  color: var(--ink);
  --heading: #20282d; --ink: #263037; --muted: #54606a; --u-ink-2: #3f4b55; --text-lead: #43505a; --line: #e3e8ea;
  --link: var(--brand); --link-hover: var(--brand-dark); --link-decoration: rgba(128, 0, 32, .55); --focus: var(--brand);
}

/* headings, leads and literal colours the tokens do not reach */
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .section.u-cs2quote)
  :is(.section-head, .cs-head__main) :is(h2, p),
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec) .feat-intro { color: #fff; }
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec) :is(.section-head, .cs-head__main) p { color: var(--bl-on-dark-2); }
:is(.section.u-cs2quote, .home-cs) :is(.section-head, .cs-head__main) p { color: var(--bl-on-brand-2); }

/* burgundy accent rules: lifted burgundy on ink, white on burgundy */
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec) :is(.section-head h2, .cs-head__main h2, .h2-rule)::after { background-color: var(--bl-accent); }
:is(.section.u-cs2quote) :is(.section-head h2, .cs-head__main h2, .h2-rule)::after { background-color: #fff; }

/* links (outside cards) and focus */
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .home-cs, .section.u-cs2quote, .cta-band.u-cta)
  a:not(.btn) { color: #fff; text-decoration-color: rgba(255, 255, 255, .55); }
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .home-cs, .section.u-cs2quote, .cta-band.u-cta)
  :focus-visible { outline-color: #fff; }
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .home-cs)
  :is(.u-card, .tl-card, .feat-row, .deliver, .cs2-row, .cs-voices) a:not(.btn) { color: var(--heading); text-decoration-color: rgba(128, 0, 32, .55); }
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .home-cs)
  :is(.u-card, .tl-card, .feat-row, .deliver, .cs2-row, .cs-voices) :focus-visible { outline-color: var(--brand); }
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .home-cs, .section.u-cs2quote) ::selection { background-color: rgba(255, 255, 255, .3); color: #fff; }

/* buttons on dark / burgundy: white primary, white outline */
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .section.u-cs2quote) .btn--primary { background-color: #fff; border-color: #fff; color: var(--brand); }
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .section.u-cs2quote) .btn--primary:hover { background-color: #eef1f5; border-color: #eef1f5; color: var(--brand-dark); }
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .section.u-cs2quote) :is(.btn--outline, .btn--dark) { background-color: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; }
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .section.u-cs2quote) :is(.btn--outline, .btn--dark):hover { background-color: #fff; border-color: #fff; color: var(--brand); }

/* phone swipe-rail dots on dark */
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec) .m-dots span { background-color: rgba(255, 255, 255, .32); }
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec) .m-dots span.is-on { background-color: #fff; }

/* --------------------------------------------------------------------------
   3. COMPONENT DETAILS
   -------------------------------------------------------------------------- */
/* Services / Resources (ink): Working With Me hairlines and white icon discs */
.section.u-band-third .principle2 { border-top-color: var(--bl-line-dark); }
.section.u-band-third .principle2 :is(h3, h3 a) { color: #fff; }
.section.u-band-third .principle2 p { color: var(--bl-on-dark-2); }
.section.u-band-third .principle2:hover .principle2__ico { background-color: var(--bl-accent); color: #fff; }
.section.u-band-third .pf-pill { background-color: #fff; color: var(--brand); }

/* About (ink): highlights timeline */
.u-highlights .tl-rail::before { background-color: rgba(255, 255, 255, .22); }
.u-highlights .tl-card::before { background-color: #fff; border-color: var(--bl-accent); }
.u-highlights .tl-hint { color: var(--bl-on-dark-2); }
.u-highlights .tl-stat strong { color: #fff; }
.u-highlights .tl-stats { border-bottom-color: var(--bl-line-dark); }

/* Case study (ink): Key Features cards stay white */
.section.section--third .feat-row { border-top-color: transparent; }

/* Herbie (ink): decision rows stay white cards */
.section.u-cs2dec .cs2-rows { border-top-color: var(--bl-accent); }

/* Case study results (burgundy): numerals, dividers, quote */

/* Herbie rule (burgundy): quote mark and statement in white */
.u-cs2quote .u-quote { color: #fff; }
.u-cs2quote .cs2-pull { color: #fff; border-color: #fff; }
.u-cs2quote .cs2-pull small { color: var(--bl-label); }

/* Home case studies (burgundy): head copy and the "read all" button */
.home-cs .cs-head__main h2 { color: #fff; }
.home-cs .cs-head__main h2::after { background-color: #fff; }
.home-cs .btn--outline:hover { color: var(--brand); }
.home-cs .home-panel { border-color: rgba(255, 255, 255, .18); }

main > .section:has(.u-bignums) { background-color: #fff; }
.home-cs { background-color: #080c12; }  /* the one black band: image-led */

:root{ --p-slate:#1b2329; --p-burg:#800020; --p-burg-dark:#5e0018; --p-signal:#3a6ea5; --footer-bg:var(--p-slate); }
.site-footer{background:var(--p-slate);border-top:3px solid var(--p-burg)}
/* Buttons on light sections: solid burgundy (outline buttons become solid) */
main .section:not(.cta-band):not(.section--third):not(.u-cs2dec):not(:has(.u-bignums)) .btn--outline{background:var(--p-burg);border-color:var(--p-burg);color:#fff}
main .section:not(.cta-band):not(.section--third):not(.u-cs2dec):not(:has(.u-bignums)) .btn--outline:hover{background:var(--p-burg-dark);border-color:var(--p-burg-dark);color:#fff}
.hero .btn--primary,.up-hero .btn--primary,.u-hero .btn--primary{background:var(--p-burg);border-color:var(--p-burg);color:#fff}
.btn--primary{background-color:var(--p-burg);border-color:var(--p-burg);color:#fff}
.cta-band .btn--primary{background:#fff;border-color:#fff;color:var(--p-burg)}
/* Status pills: signal blue outline */
.home-ledger__date span,.pf-pill{background:#fff;color:var(--p-signal);border:1.5px solid var(--p-signal)}
.home-ledger__date span::before{background:var(--p-signal)}


/* Home rhythm: photo hero > white > black (images) > light blue > white > light grey > navy CTA > slate footer */
body:has(.u-homehero) .home-now { background-color: #dde6ef; }
body:has(.u-homehero) .home-projects-wrap { background-color: #fff; }
body:has(.u-homehero) main > section.section:not(.u-lift):not(.home-projects-wrap):not(.cta-band) { background-color: #eef2f6; }
body:has(.u-homehero) .home-cs .btn--outline { background-color: transparent; border-color: rgba(255,255,255,.6); color: #fff; }


/* Herbie pull-quote label on navy: burgundy text is never used on dark */
.section.u-cs2quote .cs2-pull small { color: var(--bl-label); }

/* Comment 9: no red lines on navy. Heading rules and accents on dark sections are white or light blue */
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec) :is(.section-head h2, .cs-head__main h2, .h2-rule)::after { background-color: #fff; }
.section.u-cs2dec .cs2-rows { border-top-color: rgba(255, 255, 255, .5); }
.u-highlights .tl-card::before { background-color: #fff; border-color: #dde6ef; }
.section.u-band-third .principle2:hover .principle2__ico { background-color: #fff; color: #1e3a5f; }

/* === PALETTE v5 END === */

/* === FEEDBACK v1 START (generated by _source/drafts/uplift/feedback/build_feedback_css.py from feedback/blocks/*.css; do not hand-edit) === */
/* ---- 01-cards-brackets.css ---- */
/* ==========================================================================
   HOW I HELP CARDS + NO BRACKETS ON PHOTOS (David, 21 Nov 2026)
   1. Home "How I Help": no numerals; icon and title on one row (title
      vertically centred beside the icon), description below from the icon's
      left edge. On three columns the cards share rows (subgrid), so the
      icons and the paragraphs line up whatever the title length.
   2. The logo's corner brackets are no longer drawn over or around photos.
      The header, footer, favicon and the lockup above the Home hero heading
      are untouched.
   ========================================================================== */

/* 1. How I Help */
.u-lift .deliver2__num { display: none; }
.u-lift .deliver2 { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 16px; row-gap: 0; }
.u-lift .deliver2 .u-chip { grid-column: 1; grid-row: 1; align-self: center; }
/* title capped at 1.3rem (was up to 1.38rem) so "Workflow Automation" keeps to one line beside the icon at full width */
.u-lift .deliver2 h3 { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: clamp(1.12rem, .9rem + .5vw, 1.3rem); line-height: 1.22; text-wrap: balance; }
.u-lift .deliver2 p { grid-column: 1 / -1; grid-row: 2; align-self: start; margin: 14px 0 0; }
@media (min-width: 761px) {
  /* three columns: each card spans two shared rows, so row 1 (icon + title) and row 2 (text) match across the cards */
  .u-lift .deliver2-grid { row-gap: 0; }
  .u-lift .deliver2 { grid-row: span 2; grid-template-rows: subgrid; }
}
@media (min-width: 761px) and (max-width: 900px) {
  /* tablet: narrow columns, so a smaller icon and title keep the title to two or three short lines */
  .u-lift .deliver2 { column-gap: 12px; }
  .u-lift .deliver2 .u-chip { width: 44px; height: 44px; border-radius: 12px; }
  .u-lift .deliver2 .u-chip svg { width: 22px; height: 22px; }
  .u-lift .deliver2 h3 { font-size: 1.08rem; }
  .u-lift .deliver2 p { font-size: .98rem; }
}
@media (max-width: 640px) {
  .u-lift .deliver2 { column-gap: 14px; }
  .u-lift .deliver2 h3 { font-size: 1.12rem; margin: 0; }
  .u-lift .deliver2 p { margin: 10px 0 0; }
}

/* 2. No brackets on photos */
.u-scope { display: none; }                                            /* Home case-study panels, Home projects mosaic, Herbie "More Case Studies" tiles */
.u-frame::before, .u-cover .u-frame::before { content: none; display: none; animation: none; }  /* page-header photos and case-study covers */
.u-homehero__frame { display: none; animation: none; }                 /* SVG brackets over the Home hero photo */

/* ---- 02-buttons.css ---- */
/* === BUTTONS v1 START: two roles, same behaviour everywhere ===
   PRIMARY   (.btn--primary; first button in .pd-continue): the one main action. Solid.
   SECONDARY (.btn--outline, .btn--dark, any other .btn): supporting action. Outline.
   Hover / keyboard focus = reversal of colours. No lift, no shadow, colour fade only (150 ms).
   Pressed = the filled look in its deeper shade. Hover only on a real pointer (touch keeps resting colours).
   Light context is the default; dark context = navy, black, slate and the photo hero.
   Tokens (--b-*) are only set here, so their selectors stay low; the consuming rules carry
   :not(#_) (one ID weight) so they beat every class-only button rule above without !important. */

/* 1. tokens: light context (default) */
.btn {
  --b-bg: transparent; --b-fg: #800020; --b-bd: #800020;    /* secondary resting */
  --b-hbg: #800020;    --b-hfg: #ffffff; --b-hbd: #800020;  /* secondary hover / focus */
  --b-abg: #5e0018;    --b-afg: #ffffff; --b-abd: #5e0018;  /* pressed */
  --b-ring: #800020;
}
.btn--primary, .pd-continue .btn-row .btn:first-child {
  --b-bg: #800020;  --b-fg: #ffffff; --b-bd: #800020;
  --b-hbg: #ffffff; --b-hfg: #800020; --b-hbd: #800020;
}

/* 2. tokens: dark context (navy CTA and proof bands, black Home case studies, photo hero, slate footer) */
:is(.cta-band, .post-cta, .hero, .u-homehero, .home-cs, .site-footer,
    .section.u-band-third, .section.section--third, .section.u-cs2dec, .section.u-cs2quote) .btn {
  --b-bg: transparent; --b-fg: #ffffff; --b-bd: rgba(255, 255, 255, .6);
  --b-hbg: #ffffff;    --b-hfg: #800020; --b-hbd: #ffffff;
  --b-abg: #ffffff;    --b-afg: #5e0018; --b-abd: #ffffff;
  --b-ring: #ffffff;
}
:is(.cta-band, .post-cta, .hero, .u-homehero, .home-cs, .site-footer,
    .section.u-band-third, .section.section--third, .section.u-cs2dec, .section.u-cs2quote) :is(.btn--primary, .pd-continue .btn-row .btn:first-child) {
  --b-bg: #ffffff;     --b-fg: #800020; --b-bd: #ffffff;
  --b-hbg: transparent; --b-hfg: #ffffff; --b-hbd: #ffffff;
}

/* 3. tokens: white cards that sit on a dark band go back to light */
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .section.u-cs2quote, .home-cs)
  :is(.u-card, .tl-card, .feat-row, .deliver, .cs2-row, .cs-voices) .btn {
  --b-bg: transparent; --b-fg: #800020; --b-bd: #800020;
  --b-hbg: #800020;    --b-hfg: #ffffff; --b-hbd: #800020;
  --b-abg: #5e0018;    --b-afg: #ffffff; --b-abd: #5e0018;
  --b-ring: #800020;
}
:is(.section.u-band-third, .section.section--third, .section.u-cs2dec, .section.u-cs2quote, .home-cs)
  :is(.u-card, .tl-card, .feat-row, .deliver, .cs2-row, .cs-voices) .btn--primary {
  --b-bg: #800020;  --b-fg: #ffffff; --b-bd: #800020;
  --b-hbg: #ffffff; --b-hfg: #800020; --b-hbd: #800020;
}

/* 4. resting state (also what a tap leaves behind on touch screens) */
.btn:not(#_) {
  background-color: var(--b-bg); color: var(--b-fg); border-color: var(--b-bd);
  box-shadow: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

/* 5. hover (real pointer only) and keyboard focus: reversal of colours */
@media (hover: hover) and (pointer: fine) {
  .btn:not(#_):hover, .cs-row:hover .btn:not(#_) {
    background-color: var(--b-hbg); color: var(--b-hfg); border-color: var(--b-hbd);
    box-shadow: none; transform: none;
  }
}
.btn:not(#_):focus-visible {
  background-color: var(--b-hbg); color: var(--b-hfg); border-color: var(--b-hbd);
  box-shadow: none; transform: none;
  outline: 3px solid var(--b-ring); outline-offset: 3px;
}

/* 6. pressed */
.btn:not(#_):active, .cs-row .btn:not(#_):active {
  background-color: var(--b-abg); color: var(--b-afg); border-color: var(--b-abd);
  box-shadow: none; transform: none;
}

/* 7. filter chips: same rule, no lift (colour change only) */
.up-toolbar .cat-chip:not(#_):hover { transform: none; }
/* === BUTTONS v1 END === */

/* ---- 03-about.css ---- */
/* === 03 ABOUT (feedback #7, #8, #11, #10 layout only) ===================== */

/* #7 Header portrait: a clean rounded photo inside the band.
   No offset pale panel, no heavy drop shadow; crop keeps David's face in frame. */
.u-hero--split .u-layer::after { content: none; }
.u-hero--split .u-hero__media { justify-self: end; width: 100%; max-width: 500px; }
.u-hero--split .u-hero__media img { aspect-ratio: 4 / 4.2; object-position: 62% 28%; box-shadow: 0 10px 28px -14px rgba(16, 24, 34, .3); }

/* #8 Intro: icon left, text right, top-aligned (the site pattern for cards with no title) */
.u-intro .u-cols3 { column-gap: clamp(28px, 3.4vw, 48px); }
.u-intro .u-col { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: start; padding-top: 24px; }
.u-intro .u-col .u-chip { width: 48px; height: 48px; border-radius: 12px; margin: 0; }
.u-intro .u-col .u-chip svg { width: 24px; height: 24px; }
.u-intro .u-col p { margin: 0; padding-top: 1px; line-height: 1.6; }

/* #10 (layout only, text untouched): stat dividers were burgundy on navy; make them the dark-section hairline */
.u-highlights .u-numerals .tl-stat, .u-highlights .u-numerals .tl-stat + .tl-stat { border-left-color: rgba(255, 255, 255, .18); border-bottom-color: rgba(255, 255, 255, .18); }

/* #11 + comment 28: How I Work. The lightbulb photo is the background of the whole section, text runs the full container width.
   A dark overlay keeps every text colour at AA (checked by sampling the rendered background). */
.howiwork-fb.u-howiwork { display: block; position: relative; isolation: isolate; overflow: hidden; min-height: 0; background: #080c12; color: #c9d3de; }
.u-howiwork .howiwork-fb__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.u-howiwork .howiwork-fb__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 42%;
  transform: none; animation: none; -webkit-mask-image: none; mask-image: none;
}
.u-howiwork .howiwork-fb__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(8, 12, 18, .8), rgba(8, 12, 18, .8)); }
.u-howiwork .howiwork-fb__body { padding-top: var(--u-space); padding-bottom: var(--u-space); }
.u-howiwork .howiwork-fb__inner { max-width: none; margin-inline: 0; }
.u-howiwork .howiwork-fb__lead { max-width: none; }
.u-howiwork h2 { color: #fff; }
.u-howiwork h2::after { background: #fff; }
.u-howiwork .howiwork-fb__lead { color: #e1e8f2; }
.u-howiwork .principle-list--num .pitem p { color: #d6dfe9; }
.u-howiwork .principle-list--num .pitem strong { color: #fff; }
.u-howiwork .howiwork-fb__note { color: #fff; border-top-color: rgba(255, 255, 255, .22); }
/* use the width: steps in two columns on laptops and up so lines stay readable */
@media (min-width: 901px) {
  .u-howiwork .principle-list--num { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); row-gap: 4px; }
}
@media (max-width: 640px) {
  .u-intro .u-col { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding-top: 18px; }
  .u-intro .u-col .u-chip { width: 44px; height: 44px; }
  .u-intro .u-col .u-chip svg { width: 22px; height: 22px; }
  .u-intro .u-col p { padding-top: 0; }
  /* stats: numeral and label on one row each, white hairlines (was a tall stack with burgundy lines on navy) */
  .u-highlights .u-numerals .tl-stat, .u-highlights .u-numerals .tl-stat + .tl-stat {
    display: grid; grid-template-columns: 8.2rem minmax(0, 1fr); column-gap: 14px; align-items: center;
    padding: 14px 0; border-bottom-color: rgba(255, 255, 255, .18);
  }
  .u-highlights .u-numerals .tl-stat strong { font-size: 2.4rem; }
  .u-highlights .u-numerals .tl-stat span { margin-top: 0; }
}
/* === 03 ABOUT END === */

/* ---- 04-services.css ---- */
/* === 04 SERVICES (FEEDBACK-LOG #12-#15) ===
   Scope: only the Services page has a header-following section directly followed by the photo strip.
   --svc: main:has(> .section.u-after-head + .u-strip) */

/* #12 Header photo stays inside the light-blue band; no overhang, so no compensating gap below */
main:has(> .section.u-after-head + .u-strip) .u-pagehead { padding-bottom: clamp(48px, 5vw, 72px); }
main:has(> .section.u-after-head + .u-strip) .u-pagehead__media { margin-bottom: 0; }

/* #13 What I Do: full-width navy band (header above is light blue; photo strip below), white cards */
main:has(> .section.u-after-head + .u-strip) > .section.u-after-head {
  background-color: #1e3a5f;
  padding-block: var(--u-space);
}
main:has(> .section.u-after-head + .u-strip) > .section.u-after-head .panel--warm {
  background: transparent; padding: 0; margin: 0; border-radius: 0;
}
main:has(> .section.u-after-head + .u-strip) > .section.u-after-head .section-head h2 { color: #fff; }
main:has(> .section.u-after-head + .u-strip) > .section.u-after-head .section-head h2::after { background-color: #fff; }
main:has(> .section.u-after-head + .u-strip) > .section.u-after-head .section-head p { color: #c9d3de; }
main:has(> .section.u-after-head + .u-strip) > .section.u-after-head .u-cards .deliver { box-shadow: none; }
main:has(> .section.u-after-head + .u-strip) > .section.u-after-head .u-cards .deliver:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }

/* #14 Icon chip left, title beside it vertically centred, description below from the chip's left edge.
   The first row is a fixed 56px (chip height), so one- and two-line titles keep the same rhythm. */
main:has(> .section.u-after-head + .u-strip) .u-cards .deliver {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: minmax(56px, auto) auto;
  column-gap: 16px; align-items: center; align-content: start;
}
main:has(> .section.u-after-head + .u-strip) .u-cards .deliver__icon {
  width: 56px; height: 56px; margin: 0; border-radius: 14px;
  background-color: #800020; color: #fff;
}
main:has(> .section.u-after-head + .u-strip) .u-cards .deliver:hover .deliver__icon { background-color: #1e3a5f; color: #fff; }
main:has(> .section.u-after-head + .u-strip) .u-cards .deliver h3 { margin: 0; line-height: 1.25; font-size: clamp(1.08rem, 1.25vw, 1.2rem); }
main:has(> .section.u-after-head + .u-strip) .u-cards .deliver p { grid-column: 1 / -1; margin: 16px 0 0; align-self: start; }

/* #15 Photo strip: a flush image band between the two navy sections, no white above or below */
main:has(> .section.u-after-head + .u-strip) > .u-strip { margin: 0; }
main:has(> .section.u-after-head + .u-strip) > .u-strip img { height: clamp(160px, 17vw, 250px); }
main:has(> .section.u-after-head + .u-strip) > .u-strip + .section { padding-top: var(--u-space) !important; } /* matches the existing !important at uplift.css:76 */

/* Phones: tighter header, 2x2 strip at a short ratio, chip 48px */
@media (max-width: 640px) {
  main:has(> .section.u-after-head + .u-strip) .u-pagehead { padding-bottom: 32px; }
  main:has(> .section.u-after-head + .u-strip) .u-pagehead__media { margin: 4px 0 0; }
  main:has(> .section.u-after-head + .u-strip) > .section.u-after-head { padding-block: 48px; }
  main:has(> .section.u-after-head + .u-strip) > .section.u-after-head .panel--warm { margin-inline: 0; padding: 0; }
  main:has(> .section.u-after-head + .u-strip) .u-cards .deliver { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: minmax(48px, auto) auto; column-gap: 14px; }
  main:has(> .section.u-after-head + .u-strip) .u-cards .deliver__icon { width: 48px; height: 48px; border-radius: 12px; }
  main:has(> .section.u-after-head + .u-strip) .u-cards .deliver__icon svg { width: 24px; height: 24px; }
  main:has(> .section.u-after-head + .u-strip) .u-cards .deliver h3 { font-size: 1.06rem; }
  main:has(> .section.u-after-head + .u-strip) .u-cards .deliver p { margin-top: 12px; }
  main:has(> .section.u-after-head + .u-strip) > .u-strip { margin: 0; }
  main:has(> .section.u-after-head + .u-strip) > .u-strip img { height: auto; aspect-ratio: 16 / 10; }
}
/* Tablet: header stacks; keep the photo inside the band there too */
@media (min-width: 641px) and (max-width: 900px) {
  main:has(> .section.u-after-head + .u-strip) .u-pagehead__media { margin: 8px 0 0; }
  main:has(> .section.u-after-head + .u-strip) .u-pagehead { padding-bottom: 48px; }
}

/* ---- 05-cases-projects.css ---- */
/* === 05 CASE STUDIES INDEX + PROJECTS INDEX (FEEDBACK-LOG #16-#20) ===
   Scope: Case Studies index = main:has(> .u-hero--cases) / .u-hero--cases + .section .u-cs
          Projects index     = body.up-projects
   No markup change. No colour outside the palette. Buttons untouched. */

/* Both index pages: one modest section rhythm (scoped token, so the !important at uplift.css:76 follows it) */

/* ---------- #16 Case Studies header: one straight photo inside the band, like Services ---------- */
@media (min-width: 901px) { .u-hero--cases .u-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.u-hero--cases .u-stackimg { aspect-ratio: auto; }
.u-hero--cases .u-stackimg .u-stackimg__b,
.u-hero--cases .u-stackimg .u-stackimg__c { display: none; }
.u-hero--cases .u-stackimg .u-stackimg__a {
  position: static; display: block; width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: 50% 50%;
  transform: none; border: 0; border-radius: var(--u-radius); box-shadow: var(--u-shadow);
  animation: u-fade .6s .1s ease both;
}
@media (prefers-reduced-motion: reduce) { .u-hero--cases .u-stackimg .u-stackimg__a { animation: none; } }

/* ---------- #17 Case-study rows: one white card, image left, text right, no overlap ---------- */
.u-hero--cases + .section .u-cs { gap: clamp(20px, 2.4vw, 28px); margin-top: 0; }
.u-hero--cases + .section .u-cs .cs-row {
  background: #fff; border-radius: var(--u-radius); overflow: hidden; box-shadow: var(--u-shadow);
  transition: box-shadow .3s ease;
}
.u-hero--cases + .section .u-cs .cs-row:hover { transform: none; box-shadow: var(--u-shadow-lift); }
.u-hero--cases + .section .u-cs .cs-row:focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.u-hero--cases + .section .u-cs .cs-row__inner,
.u-hero--cases + .section .u-cs .cs-row--flip .cs-row__inner {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch;
}
.u-hero--cases + .section .u-cs .cs-row__media,
.u-hero--cases + .section .u-cs .cs-row--flip .cs-row__media {
  grid-column: 1; grid-row: 1; order: 0; aspect-ratio: auto; min-height: 280px;
  border-radius: 0; box-shadow: none;
}
.u-hero--cases + .section .u-cs .cs-row__body,
.u-hero--cases + .section .u-cs .cs-row--flip .cs-row__body,
.u-hero--cases + .section .u-cs .cs-row:hover .cs-row__body {
  grid-column: 2; grid-row: 1; margin: 0; padding: clamp(26px, 3vw, 40px);
  background: #fff; border-radius: 0; box-shadow: none; transform: none; outline: 0; animation: none;
}
.u-hero--cases + .section .u-cs .cs-row__tag { margin-bottom: 10px; }
.u-hero--cases + .section .u-cs .cs-row__body h3 { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); line-height: 1.25; margin: 0 0 .5em; }
.u-hero--cases + .section .u-cs .cs-row__body p { margin: 0 0 1.3em; max-width: 62ch; }

/* phones and small tablets: image on top, text below, nothing overlapping */
@media (max-width: 760px) {
  .u-hero--cases + .section .u-cs .cs-row__inner,
  .u-hero--cases + .section .u-cs .cs-row--flip .cs-row__inner { grid-template-columns: 1fr; }
  .u-hero--cases + .section .u-cs .cs-row__media,
  .u-hero--cases + .section .u-cs .cs-row--flip .cs-row__media { aspect-ratio: 16 / 9; min-height: 0; }
  .u-hero--cases + .section .u-cs .cs-row__body,
  .u-hero--cases + .section .u-cs .cs-row--flip .cs-row__body,
  .u-hero--cases + .section .u-cs .cs-row:hover .cs-row__body { grid-column: 1; grid-row: 2; padding: 20px 18px 22px; }
}
@media (max-width: 640px) {
  .u-hero--cases + .section .u-cs { gap: 16px; }
  .u-hero--cases .u-stackimg { max-width: none; }
  .u-hero--cases .u-stackimg .u-stackimg__a { aspect-ratio: 3 / 2; }
  .u-hero--cases + .section .u-cs .cs-row__body h3 { font-size: 1.2rem; }
}

/* Projects-page rules (#18-#20) moved to 22-projects-restart.css */

/* ---- 06-blog.css ---- */
/* ==========================================================================
   06-blog.css  Blog index (/uplift/blog/) + category pages (/uplift/blog/category/*)
   FEEDBACK-LOG #21, #22, #24. Scoped to body.up-blog; Home is untouched.
   Backgrounds, top to bottom:
     index:    light blue header > white featured > light blue All Articles (navy filter panel) > navy CTA > slate footer
     category: light blue header > white articles (navy filter panel) > navy CTA > slate footer
   ========================================================================== */

/* ---- 1. Header ends cleanly: nothing rides over its edge (#21) ---- */
.up-blog .up-hero:has(+ .up-straddle) { padding-bottom: var(--u-head-bottom); }
.up-blog .up-hero + .section.up-straddle {
  margin-top: 0; padding-block: clamp(48px, 6vw, 80px); background-color: #fff;
}
@media (max-width: 640px) { .up-blog .up-hero + .section.up-straddle { padding-block: 32px 40px; } }

/* ---- 2. Featured: one wide lead card + four equal rows beside it ---- */
.up-blog .up-feature { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }

/* lead: photo fully visible on top, title on a solid navy band below */
.up-blog .up-feature .feat-lead {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  border-radius: var(--u-radius-lg); background: #1e3a5f; box-shadow: none;
}
.up-blog .up-feature .feat-lead::after { content: none; }
.up-blog .up-feature .feat-lead__media {
  position: static; inset: auto; z-index: auto; flex: 0 0 auto;
  aspect-ratio: 16 / 9; border-radius: 0; box-shadow: none;
}
.up-blog .up-feature .feat-lead__media img,
.up-blog .up-feature .feat-lead:hover .feat-lead__media img { transform: none; transition: none; animation: none; }
.up-blog .up-feature .feat-lead .art-tag { align-self: flex-start; margin: clamp(20px, 2.4vw, 28px) clamp(22px, 3vw, 36px) 12px; }
.up-blog .up-feature .feat-lead .art-title {
  margin: 0 clamp(22px, 3vw, 36px) clamp(22px, 2.6vw, 32px);
  font-size: clamp(1.45rem, 1rem + 1.5vw, 2.2rem); line-height: 1.15; max-width: 26ch;
}
.up-blog .up-feature .feat-lead .art-link,
.up-blog .up-feature .feat-lead:hover .art-link { color: #fff; text-decoration: none; }
/* lead hover: one effect, the title underlines */
.up-blog .up-feature .feat-lead:hover .art-link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.up-blog .up-feature .feat-lead:focus-within { outline: 3px solid var(--brand); outline-offset: 4px; }

/* secondary: four rows, same size, thumbnail left, label + title right */
.up-blog .up-feature .feat-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 12px; align-content: stretch; }
.up-blog .up-feature .feat-mini {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center;
  margin: 0; padding: 12px 16px 12px 12px; border-radius: var(--u-radius);
  background: #eef2f6; box-shadow: none; transform: none; transition: background-color .2s ease;
}
.up-blog .up-feature .feat-mini::before { content: none; }
.up-blog .up-feature .feat-mini__media { aspect-ratio: 4 / 3; border-radius: 10px; box-shadow: none; }
.up-blog .up-feature .feat-mini__media img { transform: none; transition: none; }
.up-blog .up-feature .feat-mini .art-tag { margin: 0 0 6px; }
.up-blog .up-feature .feat-mini .art-title { margin: 0; font-size: 1rem; line-height: 1.3; }
.up-blog .up-feature .feat-mini .art-link { color: var(--heading); transition: color .2s ease; }

/* #24: ONE hover effect on the rows: the title turns burgundy. No move, no zoom,
   no bar, no shadow change; the whole card is the hit area so children never flicker */
.up-blog .up-feature .feat-mini:hover,
.up-blog .up-feature .feat-mini:focus-within { background: #eef2f6; box-shadow: none; transform: none; }
.up-blog .up-feature .feat-mini:hover .feat-mini__media img { transform: none; }
.up-blog .up-feature .feat-mini:hover .art-link { color: var(--brand); }
.up-blog .up-feature .feat-mini:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---- 3. All Articles: own band, normal header rhythm (#22) ---- */
/* !important: styles.css:276 zeroes padding-top between plain sections with a (0,12,0) selector */
.up-blog .section.up-all { padding-top: clamp(48px, 6vw, 80px) !important; background-color: #fff; }
.up-blog .section.up-straddle + .section.up-all { background-color: #dde6ef; }
.up-blog .up-all .cs-head { margin-bottom: clamp(20px, 2.4vw, 28px); }

/* filter panel: bolder, navy, white search, white outline pills */
.up-blog .up-toolbar {
  background-color: #1e3a5f; box-shadow: none;
  padding: clamp(18px, 2.4vw, 28px); margin-bottom: clamp(32px, 4vw, 48px);
}
.up-blog .up-toolbar .posts-search { background: #fff; border-color: #fff; box-shadow: none; }
.up-blog .up-toolbar .posts-search:focus-within { outline: 3px solid #fff; outline-offset: 3px; box-shadow: none; }
.up-blog .up-toolbar .cat-chip {
  background: transparent; border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; transform: none;
}
.up-blog .up-toolbar .cat-chip span { color: #c9d3de; }
.up-blog .up-toolbar .cat-chip:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; transform: none; }
.up-blog .up-toolbar .cat-chip:hover span { color: #fff; }
.up-blog .up-toolbar .cat-chip--active,
.up-blog .up-toolbar .cat-chip--active:hover { background: #fff; border-color: #fff; color: #1e3a5f; }
.up-blog .up-toolbar .cat-chip--active span,
.up-blog .up-toolbar .cat-chip--active:hover span { color: #54606a; }
.up-blog .up-toolbar .cat-chip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* grid cards (#24): one hover effect, the title turns burgundy (base styles.css:575).
   Drop the image lift, image zoom, shadow and the animated underline. */
.up-blog .art-card:hover .art-card__img,
.up-blog .art-card:hover .art-card__img img { transform: none; box-shadow: none; }
.up-blog .art-card .art-card__title,
.up-blog .art-card:hover .art-card__title,
.up-blog .art-card:focus-visible .art-card__title { background-size: 0 2px; }

/* ---- 4. Tablet: lead full width, rows as a 2 x 2 grid below ---- */
@media (max-width: 860px) {
  .up-blog .up-feature { grid-template-columns: 1fr; gap: 16px; }
  .up-blog .up-feature .feat-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 1fr; }
}

/* ---- 5. Phone: lead, then the four stacked, tight ---- */
@media (max-width: 640px) {
  .up-blog .up-feature { gap: 12px; }
  .up-blog .up-feature .feat-side { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 10px; }
  .up-blog .up-feature .feat-lead__media { aspect-ratio: 3 / 2; }
  .up-blog .up-feature .feat-lead .art-tag { align-self: flex-start; margin: 16px 18px 10px; }
  .up-blog .up-feature .feat-lead .art-title { margin: 0 18px 18px; font-size: 1.35rem; }
  .up-blog .up-feature .feat-mini { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; padding: 10px 14px 10px 10px; }
  .up-blog .up-feature .feat-mini .art-title { font-size: .98rem; }
  .up-blog .up-toolbar { padding: 14px; margin-bottom: 28px; }
}

/* ---- 07-project-pages.css ---- */
/* Comment 23: project pages have too much movement in the text. Text is static; images and the logo mark are left alone.
   Scoped to .up-project (individual project pages). */
.up-project :is(.up-hero, .u-pagehead, .u-hero) h1,
.up-project .up-hero h1 + p,
.up-project .up-hero__text,
.up-project .u-pagehead__body > p,
.up-project .u-pagehead .btn-row,
.up-project .u-lead,
.up-project .u-sub { animation: none; }
/* story phases no longer slide in as you scroll */
.up-project .cs-phase,
.up-project .pd-phase { animation: none; transform: none; transition: none; opacity: 1; }
/* generic scroll-reveal on paragraphs */
.up-project .reveal-up,
.up-project .reveal-up.is-in { opacity: 1; transform: none; transition: none; }

/* ---- 08-articles.css ---- */
/* Comment 25: article pages. Less text appearing (no per-paragraph fade and slide, no rising headline), and a tighter end:
   the gap after the Previous / Next Article links and before "You may also like" is cut. Scoped to .up-article. */
.up-article .reveal-up,
.up-article .reveal-up.is-in { opacity: 1; transform: none; transition: none; }
.up-article .post-hero__meta,
.up-article .post-hero h1 { animation: none; }
@media (min-width: 641px) {
  .up-article main > section:has(.post-nav) { padding-bottom: 32px; }
  .up-article .post-nav { margin-top: 36px; }
  .up-article [data-related-section] { padding-top: 64px; padding-bottom: 72px; }
}

/* ---- 09-article-hover.css ---- */
/* Comment 26: ONE hover for every article card and article list item, site-wide (the state David chose):
   a light-blue wash behind the card and a dark burgundy title. No movement, scale, lift, bar, underline animation or image zoom.
   Resolves comment 24 (double hover). Equal-specificity doubling (.x.x) is used so this wins over earlier hover rules. */
/* list items: thumbnail left, text right (sidebar lists, blog featured list, project-page lists) */
.feat-mini.feat-mini:hover,
.up-feature .feat-mini.feat-mini:hover,
.pf-minis--2 .feat-mini.feat-mini:hover { background: #dde6ef; box-shadow: none; transform: none; }
.feat-mini.feat-mini:hover::before,
.up-feature .feat-mini.feat-mini:hover::before { transform: scaleY(0); }
.feat-mini.feat-mini:hover .art-link,
.feat-mini.feat-mini:hover .art-title { color: #5e0018; }
.feat-mini.feat-mini:hover .feat-mini__media img { transform: none; }
/* cards: image on top, title below. The card gets 10px of padding and an equal negative margin, so layout does not move
   but there is room for the light-blue wash behind the image and text on hover */
.art-card { padding: 10px; margin: -10px; border-radius: 16px; transition: background-color .2s ease; }
.art-card.art-card:hover { background-color: #dde6ef; box-shadow: none; transform: none; }
.art-card.art-card:hover .art-card__img,
.up-blog .art-card.art-card:hover .art-card__img,
.up-article .art-card.art-card:hover .art-card__img { box-shadow: none; transform: none; }
.art-card.art-card:hover .art-card__img img { transform: none; }
.art-card.art-card:hover .art-card__title { color: #5e0018; background-size: 0 2px; }
/* large lead article (Home): no zoom, same wash, dark burgundy title */
.feat-lead.feat-lead:hover { box-shadow: none; transform: none; }
.feat-lead.feat-lead:hover .feat-lead__media img { transform: none; }
/* Home lead article (comment 33, again): no frame, no wash, nothing outside the page edge. The image dims slightly and the title turns dark burgundy. */
body:has(.u-homehero) .articles-feature .feat-lead { padding: 0; margin: 0; background: none; }
body:has(.u-homehero) .articles-feature .feat-lead.feat-lead:hover { background: none; box-shadow: none; }
body:has(.u-homehero) .articles-feature .feat-lead.feat-lead:hover .art-link,
body:has(.u-homehero) .articles-feature .feat-lead.feat-lead:hover .art-title { color: #5e0018; }
body:has(.u-homehero) .articles-feature .feat-lead.feat-lead:hover .feat-lead__media img { filter: brightness(.92); }
/* project-page "continue exploring" tiles (white title on a dark image): no movement or shadow, no halo */
.pd-continue__more .art-card { padding: 0; margin: 0; border-radius: var(--u-radius, 12px); }
.pd-continue__more .art-card.art-card:hover { transform: none; box-shadow: none; background-color: transparent; }
.pd-continue__more .art-card.art-card:hover .art-card__title { color: #fff; }

/* ---- 10-spacing.css ---- */
/* Comment 27: less white space between sections and above section titles in the text-led sections.
   One shared value drives every section's top and bottom padding, so changing it here tightens the whole site consistently.
   Was clamp(64px, 8vw, 112px) (up to 224px between two content blocks); now up to 128px. */
:root {
  --u-space: clamp(40px, 5vw, 64px);
  --u-space-cta: clamp(48px, 6vw, 80px);
}

/* ---- 11-photo-backgrounds.css ---- */
/* Comments 29, 30, 31.
   29: Services: the four-photo strip is removed; the PROJECTS photo is the background of "Working With Me".
   30: Home: the AI cube photo is the background of the Projects section.
   31: Home project tiles no longer put their title over the screenshot: stacked cards, screenshot fully visible, title below
       (same treatment as the Projects page). Hover is the site-wide one (light-blue wash, dark burgundy title). */

/* ---- 29 Services ---- */
main:has(> .section.u-after-head + .u-strip) > .u-strip { display: none; }
main:has(> .section.u-after-head + .u-strip) > .section.u-band-third {
  background: linear-gradient(rgba(8, 12, 18, .56), rgba(8, 12, 18, .56)), url(/assets/img/strip-1.jpg) center / cover no-repeat, #080c12;
}

/* ---- 30 Home Projects on the AI photo ---- */
body:has(.u-homehero) .section.home-projects-wrap {
  background: linear-gradient(rgba(8, 12, 18, .8), rgba(8, 12, 18, .86)), url(/assets/img/strip-4.jpg) center / cover no-repeat, #080c12;
}
.home-projects-wrap h2 { color: #fff; }
.home-projects-wrap h2::after { background: #fff; }
.home-projects-wrap .cs-head__main p { color: #dbe3ea; }
.home-projects-wrap .btn--outline {
  --b-bg: transparent; --b-fg: #ffffff; --b-bd: rgba(255, 255, 255, .6);
  --b-hbg: #ffffff; --b-hfg: #800020; --b-hbd: #ffffff;
  --b-abg: #ffffff; --b-afg: #5e0018; --b-abd: #ffffff; --b-ring: #ffffff;
}
.home-projects-wrap :focus-visible { outline-color: #fff; }

/* ---- 31 Home project tiles: stacked cards. Comment 32: dark translucent glass so they blend into the photo (no white strip) ---- */
.home-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: clamp(16px, 2vw, 24px); }
.home-tile {
  display: flex; flex-direction: column; position: relative; min-height: 0; aspect-ratio: auto;
  background: rgba(8, 12, 18, .7); color: #fff; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--u-radius-lg); overflow: hidden; isolation: auto;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: none; transform: none; transition: background-color .2s ease, border-color .2s ease;
}
.home-tile--a, .home-tile--b, .home-tile--c { grid-column: auto; grid-row: auto; }
.home-tile::after { content: none; }
.home-tile__img, .home-tile:hover .home-tile__img {
  position: static; inset: auto; z-index: auto; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: 50% 0; transform: none;
}
.home-tile__body { position: static; padding: 18px 22px 20px; }
.home-tile__title, .home-tile--a .home-tile__title { margin: 0; max-width: none; font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.25; color: #fff; }
.home-tile__link, .home-tile__link:hover { color: inherit; }
.home-tile:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .32); box-shadow: none; transform: none; }
.home-tile:hover .home-tile__title { color: #fff; }
.home-tile:focus-within { outline-color: #fff; }
@media (max-width: 760px) {
  .home-mosaic { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .home-tile__body { padding: 14px 18px 16px; }
}

/* ---- 12-about-timeline.css ---- */
/* === 12 ABOUT: HIGHLIGHTS ON LIGHT + STATIC TIMELINE (feedback #34) ========
   Overrides the navy "section--third" role and 03-about.css for the About
   Highlights section only. Page rhythm becomes:
   light blue header > white intro > light grey Highlights > black How I Work
   (image-led) > navy CTA > slate footer. */

/* 1. Highlights becomes a light grey section: re-point the dark-section tokens back to light ones */
.section.section--third.u-highlights {
  background-color: #eef2f6; color: #263037;
  --heading: #20282d; --ink: #263037; --muted: #54606a; --u-ink-2: #3f4b55; --text-lead: #43505a; --line: #d5dce3;
  --link: var(--brand); --link-hover: var(--brand-dark); --link-decoration: rgba(128, 0, 32, .55); --focus: var(--brand);
}
.section.section--third.u-highlights .section-head h2 { color: #20282d; }
.section.section--third.u-highlights .section-head p { color: #3f4b55; }
.section.section--third.u-highlights .section-head h2::after { background-color: #800020; }
.section.section--third.u-highlights .section-head a:not(.btn) { color: #800020; text-decoration-color: rgba(128, 0, 32, .55); }
.section.section--third.u-highlights :focus-visible { outline-color: #800020; }
.section.section--third.u-highlights ::selection { background-color: #f3e1e6; color: #20282d; }

/* stats: burgundy figures, ink labels, grey hairlines */
.section.section--third.u-highlights .tl-stats { border-bottom-color: #d5dce3; }
.section.section--third.u-highlights .tl-stat strong { color: #800020; }
.section.section--third.u-highlights .tl-stat span { color: #263037; }
.section.section--third.u-highlights .u-numerals .tl-stat,
.section.section--third.u-highlights .u-numerals .tl-stat + .tl-stat { border-left-color: #d5dce3; border-bottom-color: #d5dce3; }

/* 2. Timeline: static, newest first (the markup is already newest first), every card fully visible */
.u-highlights .tl-rail { overflow: visible; padding-top: 0; }
.u-highlights .tl-rail::before { content: none; }
.u-highlights .tl-hint,
.u-highlights .tl-rail .gallery__toggle { display: none; }
/* main.js clones the cards for its loop and writes an inline translateX every few seconds:
   hide the clones and pin the track (inline style, so !important is unavoidable here) */
.u-highlights .tl-rail .tl-card[aria-hidden="true"] { display: none; }
.u-highlights .tl-rail .gallery__track {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px 24px; padding-top: 24px;
  transform: none !important; transition: none !important; will-change: auto;
}
.u-highlights .tl-rail .tl-card { flex: none; width: auto; min-width: 0; padding: 26px 26px 28px; }
/* dot at the top-left of each card, joined to the next card in the row by a line */
.u-highlights .tl-rail .tl-card::before {
  top: -22px; left: 26px; z-index: 1; width: 14px; height: 14px; box-sizing: border-box;
  background-color: #fff; border: 3px solid #800020;
}
.u-highlights .tl-rail .tl-card::after {
  content: ""; position: absolute; top: -16px; left: 0; right: -24px; height: 2px;
  background: rgba(128, 0, 32, .28); pointer-events: none;
}
.u-highlights .tl-rail .tl-card:nth-child(3n)::after { right: 0; }
/* years as a clear label */
.u-highlights .tl-rail .tl-card__year { display: block; font-size: .95rem; letter-spacing: .06em; color: #800020; }
.u-highlights .tl-rail .tl-card h3 { margin: 8px 0 10px; }

/* tablet: two columns */
@media (min-width: 641px) and (max-width: 900px) {
  .u-highlights .tl-rail .gallery__track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 20px; }
  .u-highlights .tl-rail .tl-card::after { right: -20px; }
  .u-highlights .tl-rail .tl-card:nth-child(3n)::after { right: -20px; }
  .u-highlights .tl-rail .tl-card:nth-child(2n)::after { right: 0; }
}

/* phones: one column, a vertical line down the left with a dot per card */
@media (max-width: 640px) {
  .section.section--third.u-highlights .u-numerals .tl-stat,
  .section.section--third.u-highlights .u-numerals .tl-stat + .tl-stat { border-bottom-color: #d5dce3; }
  .u-highlights .tl-rail .gallery__track { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 0 0 26px; position: relative; }
  .u-highlights .tl-rail .gallery__track::before {
    content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: rgba(128, 0, 32, .28);
  }
  .u-highlights .tl-rail .tl-card { padding: 20px 20px 22px; }
  .u-highlights .tl-rail .tl-card::before { top: 24px; left: -27px; }
  .u-highlights .tl-rail .tl-card::after { content: none; }
}
/* === 12 ABOUT END === */

/* ---- 14-project-pages.css ---- */
/* Comment 37: individual project pages (body.up-project, 13 pages under /uplift/projects/<name>/).
   1. Broken spacing: the white "The product" card sat flush on the top edge of the grey story band, 40px under the
      gallery card. Cause: .pd-top--boxed had no bottom padding and .pd-story swapped its top padding for a top margin
      (styles.css:1863-1864, uplift.css:592-593), which only worked while both sections were white. Now every card sits
      inside its own band with var(--u-space) above and below, and the gallery card no longer rides over the header.
   2. Header: the About / Services pattern. Light-blue band, title, tagline, buttons and intro on the left, ONE clean
      image on the right, fully inside the band (rounded, light shadow, no overlap, no offset panel, no brackets).
      The image is the project's own product shot (assets/img/proj-<name>.webp; Pass PM Exams uses ppe-card.jpg,
      Family Assistant its own project photo). CSS only: it is a pseudo-element, so it is decorative (the same
      screens are in the gallery below, with alt text). The page is identified by its "More projects" data-exclude.
   Backgrounds, top to bottom: light blue header, white gallery, light grey story, light blue Continue exploring,
   navy call to action, slate footer. */

/* ---- 1. spacing: each card inside its band, equal padding, no straddle ---- */
.up-project .up-hero:has(+ .up-straddle) { padding-bottom: var(--u-head-bottom); }
.up-project .up-hero + .section.up-straddle { margin-top: 0; }
.up-project .section.pd-top--boxed { background-color: #fff; padding-block: var(--u-space); }
/* :not(#_) adds one ID weight: it has to beat styles.css:276, the 0,12,0 "two white sections in a row" rule that zeroes this top padding */
.up-project .section.pd-top--boxed + .section.pd-story:not(#_) { margin-top: 0; padding-block: var(--u-space); }
/* a lighter shadow that stays inside the padding (was 0 26px 56px, cut by the band edge) */
.up-project .pd-top--boxed .pd-top__box,
.up-project .pd-continue__card { box-shadow: 0 12px 30px -10px rgba(30, 58, 95, .2), 0 2px 6px rgba(30, 58, 95, .06); }
.up-project .pd-story .cs-phase + .cs-phase { margin-top: var(--u-gap); }

/* ---- 2. header: text left, one product shot right (About / Services proportions) ---- */
.up-project .up-hero .up-hero__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  column-gap: clamp(36px, 6vw, 96px); row-gap: 0; align-items: center;
}
.up-project .up-hero__grid > div:first-child { grid-column: 1; grid-row: 1; }
/* pages without project links (Family Assistant): keep a gap between the tagline and the introduction */
.up-project .up-hero__grid > div:first-child:not(:has(.pd-hero__links)) { margin-bottom: clamp(16px, 2.2vw, 26px); }
.up-project .up-hero__grid > .up-hero__text { grid-column: 1; grid-row: 2; padding-top: 0; font-size: 1rem; line-height: 1.65; }
.up-project .up-hero__grid > .up-hero__text p:first-child { font-size: 1.05rem; line-height: 1.65; color: var(--u-ink-2); }
.up-project .up-hero__grid::after {
  content: ""; grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center;
  width: 100%; max-width: 560px; aspect-ratio: 16 / 10;
  background: #1e3a5f var(--pp-shot, url(/assets/img/strip-4.jpg)) center / cover no-repeat;
  border-radius: var(--u-radius); box-shadow: 0 10px 28px -14px rgba(16, 24, 34, .3);
}
body:has([data-exclude="ai-splicer"])            { --pp-shot: url(/assets/img/proj-ai-splicer.webp); }
body:has([data-exclude="cake-or-death-cooking"]) { --pp-shot: url(/assets/img/proj-cake-or-death-cooking.webp); }
body:has([data-exclude="cantabria-places-map"])  { --pp-shot: url(/assets/img/proj-cantabria-places-map.webp); }
body:has([data-exclude="continuum"])             { --pp-shot: url(/assets/img/proj-continuum.webp); }
body:has([data-exclude="daily-maths-challenge"]) { --pp-shot: url(/assets/img/proj-daily-maths-challenge.webp); }
body:has([data-exclude="family-assistant"])      { --pp-shot: url(/assets/img/project-family-assistant.jpg); }
body:has([data-exclude="finance-app"])           { --pp-shot: url(/assets/img/proj-finance-app.webp); }
body:has([data-exclude="my-portable-life"])      { --pp-shot: url(/assets/img/proj-my-portable-life.webp); }
body:has([data-exclude="pass-pm-exams"])         { --pp-shot: url(/assets/img/ppe-card.jpg); }
body:has([data-exclude="product-scope-website"]) { --pp-shot: url(/assets/img/proj-product-scope-website.webp); }
body:has([data-exclude="readroute"])             { --pp-shot: url(/assets/img/proj-readroute.webp); }
body:has([data-exclude="tv-planner"])            { --pp-shot: url(/assets/img/proj-tv-planner.webp); }
body:has([data-exclude="weather-alert-spain"])   { --pp-shot: url(/assets/img/proj-weather-alert-spain.webp); }

/* tablet and phone: one column, the shot after the intro, full width */
@media (max-width: 900px) {
  .up-project .up-hero .up-hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .up-project .up-hero__grid::after { grid-column: 1; grid-row: 3; justify-self: stretch; max-width: 620px; margin-top: 28px; }
}
@media (max-width: 640px) {
  .up-project .up-hero__grid::after { margin-top: 22px; border-radius: 12px; }
}

/* ---- 15-index-headers.css ---- */
/* === 15 INDEX HEADERS: Projects + Articles (+ blog categories) follow the About / Services / Case Studies layout (FEEDBACK-LOG #38) ===
   Scope: body.up-projects (Projects index) and body.up-blog (Articles index + /blog/category/*). Project detail pages (.up-project) untouched.
   Text left (title, rule, lead, secondary text), ONE clean photo right, fully inside the light-blue band.
   No markup change: the photo is the grid's ::after (decorative, not announced). Same columns, gap, ratio, radius and shadow as the
   Case Studies header (05-cases-projects.css), so all five top-level index headers share one pattern.
   Band padding is left as 05/06 set it (head-top / head-bottom, nothing straddles the edge). */

.up-projects .up-hero .up-hero__grid::after,
.up-blog .up-hero .up-hero__grid::after {
  content: ""; display: block; width: 100%; aspect-ratio: 4 / 3;
  background: #1e3a5f var(--ix-photo) center / cover no-repeat;
  border-radius: var(--u-radius); box-shadow: var(--u-shadow);
  pointer-events: none;
}
/* Projects: the AI cube, "independent products built with AI"; the featured card below already shows Weather Alerts */
.up-projects .up-hero { --ix-photo: url(/assets/img/strip-4.jpg); --ix-pos: 58% 50%; }
/* Articles and every category page: a calm writing desk (notebooks, pens, someone drafting on a tablet), not any article's card photo */
.up-blog .up-hero { --ix-photo: url(/assets/img/kateryna-hliznitsova-hMmqVfjtTAY-unsplash-1024x684.jpg); --ix-pos: 50% 50%; }
.up-projects .up-hero .up-hero__grid::after,
.up-blog .up-hero .up-hero__grid::after { background-position: var(--ix-pos); }

/* Laptop and up: two columns like Case Studies; title + text stacked on the left, centred against the photo */
@media (min-width: 901px) {
  .up-projects .up-hero .up-hero__grid,
  .up-blog .up-hero .up-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: clamp(36px, 6vw, 96px); row-gap: 0; align-items: start;
  }
  .up-projects .up-hero .up-hero__grid > h1,
  .up-blog .up-hero .up-hero__grid > h1 { grid-column: 1; grid-row: 2; max-width: 16ch; }
  .up-projects .up-hero .up-hero__text,
  .up-blog .up-hero .up-hero__text { grid-column: 1; grid-row: 3; margin-top: 26px; max-width: 58ch; }
  .up-projects .up-hero .up-hero__grid::after,
  .up-blog .up-hero .up-hero__grid::after { grid-column: 2; grid-row: 1 / -1; align-self: center; }
}

/* Tablet and phone: one column, the photo under the text, modest height, no big gaps */
@media (max-width: 900px) {
  .up-projects .up-hero .up-hero__grid,
  .up-blog .up-hero .up-hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; align-items: start; }
  .up-projects .up-hero .up-hero__text,
  .up-blog .up-hero .up-hero__text { margin-top: 22px; }
  .up-projects .up-hero .up-hero__grid::after,
  .up-blog .up-hero .up-hero__grid::after { margin-top: 28px; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .up-projects .up-hero .up-hero__text,
  .up-blog .up-hero .up-hero__text { margin-top: 18px; }
  .up-projects .up-hero .up-hero__grid::after,
  .up-blog .up-hero .up-hero__grid::after { margin-top: 22px; aspect-ratio: 3 / 2; }
}
/* === 15 INDEX HEADERS END === */

/* ---- 16-a11y-fixes.css ---- */
/* === 16 ACCESSIBILITY FIXES (WCAG 2.2 AA review, 22 Nov 2026) ===
   Report: _source/drafts/uplift/review/ACCESSIBILITY.md. Merged last, after block 15.
   Rules here change no approved colour, no layout and no spacing on screen: they only affect
   keyboard focus, scrolling to a focused element, Windows high contrast (forced colours) and
   one looping animation. Each fix was injected into the live preview and re-measured. */

/* A1. Phones and tablets (<=960px): the closed menu is only squashed to max-height 0, so its
   eight links stay in the Tab order and take focus invisibly behind the header (measured on all
   110 previews at 375). Hide the closed menu from keyboard and screen readers; the visibility
   switch waits for the existing .3s height transition, so the open/close animation is unchanged.
   (Same bug on the live site: assets/css/styles.css:698-709.) */
@media (max-width: 960px) {
  .site-header .main-nav:not(.open) { visibility: hidden; transition: max-height .3s ease, visibility 0s linear .3s; }
  .site-header .main-nav.open { visibility: visible; transition: max-height .3s ease, visibility 0s linear 0s; }
}

/* A2. Herbie "More case studies" reuses .home-tile, whose focus ring block 11 made white for the
   Home AI photo (uplift.css: ".home-tile:focus-within { outline-color: #fff; }"). On Herbie the
   tiles sit on light blue, so the ring measured 1.26:1. Burgundy there: 10.9:1 on #dde6ef. */
.u-cs2more .home-tile:focus-within { outline-color: #800020; }

/* A3. Focus not obscured. The sticky header and, on phones, the sticky Contact pill (.m-dock,
   bottom right, 48px) partly covered focused links when Tab scrolled them to a screen edge.
   Scroll padding keeps a focused element clear of both. No visual change at rest. */
html { scroll-padding-top: calc(var(--header-h, 84px) + 16px); }
@media (max-width: 640px) {
  html { scroll-padding-bottom: 88px; }
}

/* A4. Windows high contrast (forced colours). These fields show focus with box-shadow and a
   border colour only; forced colours removes the shadow and recolours the border, so focus became
   invisible (seen on Contact). Give them a system-colour outline in that mode only. */
@media (forced-colors: active) {
  .contact-form input:focus-visible, .contact-form textarea:focus-visible,
  .contact-form--bare input:focus-visible, .contact-form--bare textarea:focus-visible,
  .sidebar-search input:focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }
  .posts-search:focus-within { outline: 3px solid Highlight; outline-offset: 2px; }
  /* card links that hide their own ring and rely on the card's :focus-within outline keep it,
     but make sure the card ring is drawn in a system colour */
  .home-tile:focus-within, .home-panel:focus-within, .feat-lead:focus-within, .feat-mini:focus-within,
  .pf-proj--big:focus-within, .cs-row:focus-within .cs-row__body { outline-color: Highlight; }
}

/* A5. The pulsing "live" dot in Home Current Client Work blinks forever (WCAG 2.2.2 asks that
   anything blinking for more than 5 seconds can be paused). Two pulses (4.8s), then it rests.
   Reduced-motion users already get no pulse (styles.css:237). */
.home-ledger__date span::before { animation-iteration-count: 2; }

/* A6. Small light text on photos: Home hero intro (#eef2f5) and the pink year/client line on the
   Home Case Studies tiles pass AA over 90% of their box (4.8 to 4.9:1) but dip to 4.0 to 4.2:1
   over the brightest parts of the photos. A soft dark halo, invisible against the dark photos,
   darkens the pixels right around the letters (measured p10 4.91 -> 5.18 on the hero intro).
   The durable fix is a slightly stronger photo overlay: David's call (see report M4). */
.u-homehero .hero__lead, .home-cs .home-panel__meta { text-shadow: 0 0 2px rgba(8, 12, 18, .7), 0 1px 3px rgba(8, 12, 18, .6); }
/* NOT ACTIVE (David's decision, report M2): Contact field edges are white on the light-blue panel
   (1.27:1) with a 1px #e3e8ea border (1.2:1). WCAG 1.4.11 wants 3:1 for the edge of a field.
   Palette grey #8996a2 gives 3.0:1 on white and keeps the look quiet:
.u-contact .contact-form--bare input:not([type=hidden]), .u-contact .contact-form--bare textarea { border-color: #8996a2; }
*/
/* === 16 END === */

/* ---- 17-consistency.css ---- */
/* === 17 CONSISTENCY + FINESSE (site-wide review, 22 Nov 2026) ================
   Report: _source/drafts/uplift/review/CONSISTENCY-AND-CODE.md (part C lists what is
   here and what is waiting for David). CSS only, no colour change on any approved page,
   no content or markup change. Merged after block 16 (accessibility).
   Note on specificity: this block sits inside uplift.css, which loads BEFORE
   uplift-oneoffs.css (Contact, Legal, Resources, Herbie, 404), so rules aimed at those
   pages carry one extra type or class to win. Two `:not(#_)` are needed to beat the
   (0,12,0) "collapse doubled padding" rule at styles.css:276 (see report, part B).
   ========================================================================== */

/* ---- 1. Herbie: "My Role" and "The full story" started flush at the top of their grey
   band (padding-top 0 from styles.css:276, because both are plain .section after a plain
   .section). Every other band has var(--u-space) above its heading. ---- */
.section.u-cs2role:not(#_), .section.u-cs2story:not(#_) { padding-top: var(--u-space); }

/* ---- 2. Photos stay inside their own section (David #12; shared brief rule).
   2a Herbie header: the mock-up hung 128px into the navy quote band. It now ends inside
   the light-blue header; the quote band gets the normal rhythm; the offset pale panel
   behind it goes (David #7 on About) and the heavy drop shadow becomes the header-photo one. */
.u-cs2head .u-cs2head__media { margin-bottom: 0; align-self: center; }
.u-cs2head .u-cs2head__media.u-layer::after { content: none; }
.u-cs2head .u-cs2head__media img { box-shadow: 0 10px 28px -14px rgba(16, 24, 34, .3); }
main .section.u-cs2quote { padding-top: var(--u-space); }

/* 2b Case-study detail (long template, 9 pages): the cover photo rode over the header edge
   (header bottom padding 224px, cover margin-top -128px). Header now ends after the title;
   the cover sits in its own white band; the summary card still overlaps the photo's foot. */
.u-hero.u-hero--detail { padding-bottom: var(--u-head-bottom); }
main > .u-cover { margin-top: 0; padding-top: var(--u-space); }

/* ---- 3. Icon and text pattern on the cards that still had the icon ABOVE the title
   (David #3/#8/#14: chip left, title beside it vertically centred, text below from the
   chip's left edge). Case-study Objectives + Resources "Why" (.u-card), Key Features
   (.feat-row), Herbie Objectives (.deliver) and the step lists (.cs-step). ---- */
.u-card:has(> .u-chip) { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; align-items: center; align-content: start; }
.u-card:has(> .u-chip) > .u-chip { grid-column: 1; grid-row: 1; margin: 0; }
.u-card:has(> .u-chip) > h3 { grid-column: 2; grid-row: 1; margin: 0; }
.u-card:has(> .u-chip) > p { grid-column: 1 / -1; margin-top: 14px; }

.u-feat .feat-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-items: center; align-content: start; }
.u-feat .feat-row .feat-row__body { display: contents; }
.u-feat .feat-row .feat-row__icon { grid-column: 1; grid-row: 1; margin: 0; }
.u-feat .feat-row .feat-row__body h3 { grid-column: 2; grid-row: 1; margin: 0; }
.u-feat .feat-row .feat-row__body p { grid-column: 1 / -1; margin: 14px 0 0; }

main .u-cs2obj .u-cards .deliver { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; align-items: center; align-content: start; }
main .u-cs2obj .u-cards .deliver__icon { grid-column: 1; grid-row: 1; margin: 0; }
main .u-cs2obj .u-cards .deliver h3 { grid-column: 2; grid-row: 1; margin: 0; }
main .u-cs2obj .u-cards .deliver p { grid-column: 1 / -1; margin: 14px 0 0; }

main .cs-step:has(> .cs-step__icon) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; align-content: start; }
main .cs-step:has(> .cs-step__icon) > .cs-step__icon { grid-column: 1; grid-row: 1; margin: 0; }
main .cs-step:has(> .cs-step__icon) > h4 { grid-column: 2; grid-row: 1; margin: 0; }
main .cs-step:has(> .cs-step__icon) > p { grid-column: 1 / -1; margin-top: 12px; }

/* ---- 4. One card hover: the shadow deepens, nothing moves, icons do not twist
   (David #1, #2, #23, #25, #26). Was: lift 6-8px on Home ledger and case-study panels,
   About timeline, case-study Objectives and Key Features, Herbie objectives and decision
   rows, Resources "Why" (plus a -6deg chip rotation) and the Resources screenshot. ---- */
@media (prefers-reduced-motion: no-preference) {
  body .u-card:hover, body .u-feat .feat-row:hover, body .u-cards .deliver:hover, body .u-status .home-ledger__row:hover,
  body .u-highlights .tl-card:hover, body .home-panel:hover, body .u-why .u-card:hover, body .u-cs2dec .cs2-row:hover,
  body .u-why .u-card:hover .u-chip, body .u-resfeat__media:hover img { transform: none; }
}

/* ---- 5. One section rhythm: var(--u-space) top and bottom (64px at 1440, 51 at 1024,
   41 at 820). Outliers were the blog bands (80px, a literal clamp), the article "You may
   also like" band (72px bottom) and Continue exploring on project pages (80px bottom). ---- */
.up-blog .up-hero + .section.up-straddle { padding-block: var(--u-space); }
.up-blog .section.up-all:not(#_) { padding-top: var(--u-space) !important; } /* only to out-rank the !important at uplift.css:1908 (block 06) */
@media (min-width: 641px) { .up-article main [data-related-section] { padding-top: var(--u-space); padding-bottom: var(--u-space); } }
main .section.pd-continue.up-band-cool { padding-bottom: var(--u-space) !important; } /* styles.css:1709 sets this band's padding with !important */

/* ---- 6. About "How I Work": the text block started 17px left of the container and ran
   78px past its right edge (styles.css:976 pads by 100vw, block 03 lifted the max-width).
   It now spans exactly the container, like every other section. ---- */
.u-howiwork .howiwork-fb__body { padding-inline: var(--m-gutter, 24px); }
.u-howiwork .howiwork-fb__inner { width: 100%; max-width: calc(var(--container) - 48px); margin-inline: auto; }

/* 6b About header on tablets: once the header stacks (900px and below) the portrait kept
   justify-self: end (block 03), so it hung off to the right under left-aligned text
   (820: portrait at x 281, h1 at x 24). Case Studies index already sat at the left edge. */
@media (max-width: 900px) { .u-hero--split .u-hero__media { justify-self: start; } }

/* ---- 7. Article sidebar "More Articles": the lead title inherited the Home teaser size
   (34px in a 330px column, five lines). Sidebar size now. ---- */
.up-article .post-sidebar .feat-lead .art-title { font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; }

/* ---- 8. Herbie "More Case Studies": block 11's dark glass tiles (made for the Home photo
   band) leaked onto Herbie's light-blue band and read as grey boxes. Same treatment as the
   Projects page cards: white card, screenshot on top, dark title, shadow deepens on hover. ---- */
main .u-cs2more .cs2-tiles .home-tile { min-height: 0; background: #fff; border: 0; border-radius: var(--u-radius); box-shadow: var(--u-shadow); -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--heading); transition: box-shadow .2s ease; }
main .u-cs2more .cs2-tiles .home-tile:hover { background: #fff; box-shadow: var(--u-shadow-lift); }
main .u-cs2more .cs2-tiles .home-tile__title, main .u-cs2more .cs2-tiles .home-tile__link,
main .u-cs2more .cs2-tiles .home-tile:hover .home-tile__title { color: var(--heading); }
main .u-cs2more .cs2-tiles .home-tile:hover .home-tile__link { color: var(--brand); }
main .u-cs2more .cs2-tiles .cs2-tilemeta { color: var(--brand); }
/* focus ring on these tiles: block 16 (A2) */
/* === 17 CONSISTENCY END === */

/* ---- 20-polish.css ---- */
/* Review follow-ups David approved (22 Nov 2026): one card-title scale, Services header image, Resources numerals.
   Laptop and up only: phone sizes were tuned separately and are reviewed in the phone pass. */

/* ---- One card-title scale: 18 (dense grids of 3+ and list items), 20.8 (standard card), 24 (feature and listing cards) ---- */
@media (min-width: 641px) {
  /* 18px: dense grids (doubled/tripled classes only to beat older, more specific size rules) */
  main .tl-card.tl-card.tl-card h3, main .principle2__head.principle2__head.principle2__head h3,
  main .feat-row__body.feat-row__body.feat-row__body h3, main .u-card h3, main .u-cards .deliver h3,
  main .feat-mini .art-title, main .up-feature .feat-mini .art-title,
  .up-blog .up-feature .feat-mini.feat-mini .art-title.art-title { font-size: 1.125rem; }
  /* 20.8px: standard cards */
  main .home-panel__body h3, main .home-tile__title, main .home-tile--a .home-tile__title,
  main:has(.u-cs2dec) .deliver h3, main .cs2-row__head.cs2-row__head.cs2-row__head h3,
  main:has(.u-guides) :is(.u-card, .deliver2) h3 { font-size: 1.3rem; }
  /* 24px: feature and listing cards */
  main .u-status .home-ledger__title, main .up-projects .up-tile-title,
  .u-hero--cases + .section .u-cs .cs-row__body h3, main .u-cs .cs-row__body h3 { font-size: 1.5rem; }
}

/* ---- Services header image: the soft shadow and 4:3 crop used on every other index header ---- */
@media (min-width: 901px) {
  .u-pagehead .u-pagehead__media img { aspect-ratio: 4 / 3; object-position: 50% 50%; box-shadow: var(--u-shadow); }
}

/* ---- Resources "Guides": the outlined 01-06 numerals go (as on Home). Reading order is still the order on the page ---- */
.u-guides .deliver2__num { display: none; }

/* ---- 22-projects-restart.css ---- */
/* === 22 PROJECTS PAGE RESTART (FEEDBACK-LOG #18-#20, #36, #40-#42, #44, #45) ===
   Scope: body.up-projects, sections #featured and #projects only (the header is block 15, untouched).
   REPLACES every Projects-page rule in blocks 05 (lines 65-126), 13, 19 and 21: delete those from the build.
   CSS only, no markup change, no `order` added (the media link in #featured is aria-hidden and tabindex -1;
   styles.css:1872 already puts it on the right on laptops; on phones it is reset to DOM order).
   Three tiers, one card language (white, hairline #d5dce3, 22px radius, soft shadow, hover = deeper shadow, no movement):
     1. ONE big highlight: Weather Alerts Spain, a wide split card, text left, the laptop large on a light-blue panel
        that fills the right side of the card. Title 50px at 1440.
     2. TWO smaller highlights: Continuum and Pass PM Exams, screenshot on top at 16:10, 24px title.
     3. THE REST (11): a compact two-column index of horizontal cards, 168 x 105 thumbnail left, 18px title and the
        full description beside it; the odd last card spans both columns (no hole).
   Backgrounds: light-blue header, NAVY featured band (the stage for the one big highlight), WHITE More projects,
   navy call to action (separated from the featured band by the long white section), slate footer.
   `:nth-child(n)` on the list cards only lifts specificity to (1,4,0) so this still wins if block 19 is left in. */

/* ---------- section rhythm: nothing straddles, equal modest padding ---------- */
.up-projects .up-hero:has(+ #featured) { padding-bottom: var(--u-head-bottom); }
.up-projects .up-hero + #featured.up-straddle { margin-top: 0; padding-block: var(--u-space); }
.up-projects #featured.section { background-color: #1e3a5f; }
.up-projects #projects.section { background-color: #fff; }
.up-projects #projects .section-head { margin-bottom: clamp(28px, 3vw, 40px); }
.up-projects #projects .section-head h2::after { background-color: #800020; }

/* ---------- 1. the big highlight ---------- */
.up-projects #featured .pf-feature {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: 0; align-items: stretch;
  padding: 0; overflow: hidden;
  background: #fff; border: 1px solid #d5dce3; border-radius: var(--u-radius-lg);
  box-shadow: 0 26px 56px rgba(8, 12, 18, .28);
}
.up-projects #featured .pf-feature__body {
  align-self: center; padding: clamp(32px, 3.9vw, 56px);
}
.up-projects #featured .pf-feature__body h2 {
  font-size: clamp(2.4rem, 1.7rem + 1.6vw, 3.2rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .5em;
}
.up-projects #featured .pf-feature__body h2::after { margin-top: 20px; background: #800020; }
.up-projects #featured .pf-feature__body p { font-size: 1.0625rem; line-height: 1.7; max-width: 54ch; color: var(--ink); }
.up-projects #featured .pf-feature__body .btn-row { margin-top: 1.6em; }
.up-projects #featured .pf-feature__media {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 2.6vw, 36px); margin: 0;
  background: #dde6ef; border-radius: 0; box-shadow: none; overflow: visible;
}
.up-projects #featured .pf-feature__media::before { content: none; }
.up-projects #featured .pf-feature__media img,
.up-projects #featured .pf-feature__media:hover img {
  width: 100%; max-width: 640px; height: auto; aspect-ratio: auto; object-fit: contain; margin: 0;
  transform: none; filter: drop-shadow(0 18px 26px rgba(30, 58, 95, .24));
}

/* ---------- 2. the two smaller highlights ---------- */
.up-projects #projects .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u-gap); align-items: stretch; }
.up-projects #projects .pf-proj--big {
  position: relative; display: flex; flex-direction: column; margin: 0; padding: 0;
  background: #fff; border: 1px solid #d5dce3; border-radius: var(--u-radius-lg); overflow: hidden;
  box-shadow: var(--u-shadow); transform: none; transition: box-shadow .25s ease;
}
.up-projects #projects .pf-proj--big .proj-card__media { display: contents; }
.up-projects #projects .pf-proj--big .proj-card__media::after { content: none; }
.up-projects #projects .pf-proj--big .proj-card__media img,
.up-projects #projects .pf-proj--big:hover .proj-card__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0;
  transform: none; border-bottom: 1px solid #d5dce3;
}
.up-projects #projects .pf-proj--big .up-tile-title {
  position: static; margin: 0; padding: 24px 28px 0; font-size: 1.5rem; line-height: 1.2;
}
.up-projects #projects .pf-proj .up-tile-title a::after { inset: 0; z-index: 1; }
.up-projects #projects .pf-proj--big .proj-card__body,
.up-projects #projects .pf-proj--big:hover .proj-card__body {
  flex: 1; margin: 0; padding: 10px 28px 28px; background: transparent; border-radius: 0; box-shadow: none; transform: none;
}
.up-projects #projects .pf-proj--big .proj-card__body p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--u-ink-2); }

/* ---------- 3. the rest: compact two-column index (variant A) ---------- */
.up-projects #projects .pf-minis--2 {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--u-gap); align-items: stretch;
  margin-top: clamp(32px, 3.4vw, 48px); padding-top: 0; border-top: 0;
}
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) {
  position: relative; grid-column: auto; display: grid; grid-template-columns: 168px minmax(0, 1fr);
  grid-template-areas: none; column-gap: 20px; row-gap: 0; align-items: start; align-content: start;
  margin: 0; padding: 16px 20px 16px 16px;
  background: #fff; border: 1px solid #d5dce3; border-radius: 16px; overflow: visible;
  box-shadow: var(--u-shadow); transform: none; transition: box-shadow .25s ease;
}
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n)::before { content: none; }
/* odd last card (11th) spans both columns: a wide card, thumbnail left, no hole */
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n):last-child:nth-child(odd) { grid-column: 1 / -1; }
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) .feat-mini__media {
  display: block; grid-area: auto; width: 168px; aspect-ratio: 16 / 10; margin: 0; flex: none;
  border: 1px solid #d5dce3; border-radius: 10px; box-shadow: none; overflow: hidden;
}
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) .feat-mini__media img,
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n):hover .feat-mini__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: none;
}
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) > div { display: block; flex: none; padding: 2px 0 0; }
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) .art-title {
  grid-area: auto; margin: 0 0 6px; font-size: 1.125rem; line-height: 1.3;
}
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) .pf-mini-text {
  grid-area: auto; margin: 0; font-size: .95rem; line-height: 1.55; color: var(--u-ink-2); max-width: 72ch;
}

/* ---------- hover and focus, all cards: shadow deepens, title dark burgundy, nothing moves, no wash ---------- */
.up-projects #featured .pf-feature:hover { box-shadow: 0 30px 64px rgba(8, 12, 18, .36); }
.up-projects #projects .pf-proj--big .up-tile-title .art-link,
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) .art-link { color: var(--heading); transition: color .2s ease; }
.up-projects #projects .pf-proj--big:hover,
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n):hover { background: #fff; box-shadow: var(--u-shadow-lift); transform: none; }
.up-projects #projects .pf-proj--big:hover .up-tile-title .art-link,
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n):hover .art-link,
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n):hover .art-title { color: #5e0018; }
.up-projects #projects .pf-proj--big:focus-within,
.up-projects #projects .pf-minis--2 .feat-mini:nth-child(n):focus-within { outline: 3px solid var(--brand); outline-offset: 3px; }
.up-projects #projects .pf-proj--big .art-link:focus-visible,
.up-projects #projects .pf-minis--2 .feat-mini .art-link:focus-visible { outline: 0; }

/* ---------- laptop narrow (861-1199): slightly tighter big card ---------- */
@media (min-width: 861px) and (max-width: 1199px) {
  .up-projects #featured .pf-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

/* ---------- tablet and below: the big card stacks, laptop panel on top (DOM order) ---------- */
@media (max-width: 860px) {
  .up-projects #featured .pf-feature { grid-template-columns: minmax(0, 1fr); }
  .up-projects #featured .pf-feature__media { order: 0; padding: clamp(22px, 5vw, 40px); }
  .up-projects #featured .pf-feature__media img { max-width: 560px; }
  .up-projects #featured .pf-feature__body { padding: clamp(24px, 4.5vw, 40px); }
}

/* ---------- below 1024: index cards keep two columns, thumbnail and title side by side, text below ---------- */
@media (max-width: 1023px) {
  .up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) {
    grid-template-columns: 128px minmax(0, 1fr); align-items: center; row-gap: 12px; padding: 14px;
  }
  .up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) > div { display: contents; }
  .up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) .feat-mini__media { grid-column: 1; grid-row: 1; width: 128px; }
  .up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) .art-title { grid-column: 2; grid-row: 1; margin: 0; }
  .up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) .pf-mini-text { grid-column: 1 / -1; grid-row: 2; align-self: start; }
  .up-projects #projects .pf-proj--big .up-tile-title { font-size: 1.3rem; padding: 18px 20px 0; }
  .up-projects #projects .pf-proj--big .proj-card__body,
  .up-projects #projects .pf-proj--big:hover .proj-card__body { padding: 8px 20px 20px; }
}

/* ---------- phone: one column, tight ---------- */
@media (max-width: 640px) {
  .up-projects #featured .pf-feature__media { padding: 18px; }
  .up-projects #featured .pf-feature__body { padding: 22px 18px 24px; }
  .up-projects #featured .pf-feature__body h2 { font-size: 2rem; }
  .up-projects #featured .pf-feature__body h2::after { margin-top: 14px; }
  .up-projects #featured .pf-feature__body p { font-size: 1rem; line-height: 1.6; }
  .up-projects #projects .proj-grid,
  .up-projects #projects .pf-minis--2 { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .up-projects #projects .pf-minis--2 { margin-top: 24px; }
  .up-projects #projects .pf-proj--big .up-tile-title { font-size: 1.25rem; padding: 14px 16px 0; }
  .up-projects #projects .pf-proj--big .proj-card__body,
  .up-projects #projects .pf-proj--big:hover .proj-card__body { padding: 6px 16px 16px; }
  .up-projects #projects .pf-proj--big .proj-card__body p { font-size: .95rem; line-height: 1.55; }
  .up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) { grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; row-gap: 10px; padding: 12px; border-radius: 14px; }
  .up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) .feat-mini__media { width: 112px; }
  .up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) .art-title { font-size: 1.0625rem; }
  .up-projects #projects .pf-minis--2 .feat-mini:nth-child(n) .pf-mini-text { font-size: .93rem; }
}
/* === 22 PROJECTS PAGE RESTART END === */

/* ---- 23-about-redesign.css ---- */
/* === 23 ABOUT REDESIGN (feedback #48, also #34, #39, #10 layout only) ==========
   Needs the hand-built markup in uplift/about/index.html (new .u-estate section,
   timeline as .ab-tl > .ab-era > .ab-era__list > .ab-tl__item, .u-ab23 on Highlights).
   Page rhythm: light blue header > white intro > light grey The Platforms >
   black How I Work (image-led) > white Highlights + timeline > navy CTA > slate footer.
   Replaces for About: 03-about.css:16-17 and :46-52 (stat hairlines/phone stats),
   12-about-timeline.css whole timeline part (:27-73, .tl-rail markup no longer exists)
   and its light-grey background (:8). Keeps 03 header, intro and How I Work. */

.ab-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 1. The Platforms: the estate as one portfolio (light grey) ---------- */
.section.u-estate { background-color: #eef2f6; color: #263037; padding-block: var(--u-space); }
.u-estate .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.u-estate .section-head h2 { color: #20282d; }
.u-estate .section-head h2::after { background-color: #800020; }
.ab-estate { list-style: none; margin: 0 -12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
.ab-estate li { margin: 0; padding: 0; }
.ab-estate__tile { display: flex; flex-direction: column; height: 100%; padding: 12px; border-radius: 14px; text-decoration: none; color: inherit; background-color: transparent; transition: background-color .2s ease; }
.ab-estate__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #fff; border: 1px solid #d5dce3; }
.ab-estate__shot img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 0 0; }
.ab-estate li:nth-child(5) .ab-estate__shot img { object-position: 100% 100%; } /* Herbie: show the chat panel, not the empty page */
.ab-estate__name { display: block; margin-top: 14px; font-family: var(--font-heading); font-weight: 600; font-size: 1.2rem; line-height: 1.25; color: #20282d; transition: color .2s ease; }
.ab-estate__cs { display: block; margin-top: 4px; font-size: .94rem; line-height: 1.45; color: #54606a; }
.ab-estate__tile:hover { background-color: #dde6ef; }
.ab-estate__tile:hover .ab-estate__name { color: #5e0018; }
.ab-estate__tile:focus-visible { outline: 2px solid #800020; outline-offset: 2px; }

/* ---------- 2. Highlights becomes white (was light grey in block 12) ---------- */
.section.section--third.u-highlights.u-ab23 { background-color: #ffffff; }

/* stats: one calm light-grey panel, burgundy figures, grey hairlines (text unchanged) */
.u-ab23 .u-numerals { background: #eef2f6; border-radius: 14px; padding: 26px clamp(20px, 3vw, 40px); margin: 8px 0 clamp(40px, 5vw, 64px); }
.section.section--third.u-highlights.u-ab23 .u-numerals .tl-stat + .tl-stat { border-left-color: #d5dce3; }

/* ---------- 3. The timeline: three eras, large year markers, one continuous rail ---------- */
.ab-tl { display: grid; gap: 0; }
.ab-era { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: clamp(28px, 4vw, 56px); padding: 34px 0 30px; border-top: 1px solid #d5dce3; }
.ab-era:first-child { border-top: 0; padding-top: 0; }
.ab-era__head { margin: 0; align-self: start; position: sticky; top: 104px; font-family: var(--font-heading); }
.ab-era__head::after { content: none; }
.ab-era__new { display: block; font-size: clamp(3.2rem, 5.6vw, 4.8rem); font-weight: 700; line-height: .9; letter-spacing: -.03em; color: #800020; }
.ab-era__old { display: block; font-size: 1.7rem; font-weight: 600; line-height: 1; letter-spacing: -.01em; color: #54606a; }
.ab-era__old::before { content: ""; display: block; width: 2px; height: 26px; margin: 12px 0 12px 6px; background: #d196a7; }

.ab-era__list { list-style: none; margin: 0; padding: 0; position: relative; }
.ab-era__list::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: #e6c2cc; }
.ab-tl__item {
  position: relative; margin: 0 0 4px 24px; padding: 16px 20px; border-radius: 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) 208px; grid-template-rows: auto 1fr; grid-template-areas: "meta img" "desc img"; column-gap: 28px; align-items: start;
  transition: background-color .2s ease;
}
.ab-tl__item:last-child { margin-bottom: 0; }
.ab-tl__item:not(:has(.ab-tl__img)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "desc"; }
.ab-tl__item::before { content: ""; position: absolute; left: -30px; top: 23px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 3px solid #800020; }
.ab-tl__meta { grid-area: meta; }
.ab-tl__yr { display: block; font-family: var(--font-heading); font-weight: 600; font-size: .92rem; letter-spacing: .06em; color: #800020; }
.ab-tl__item h4 { margin: 6px 0 8px; font-size: 1.24rem; line-height: 1.3; color: #20282d; transition: color .2s ease; }
.ab-tl__link { color: inherit; text-decoration: none; }
.ab-tl__link::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.ab-tl__link:focus-visible { outline: 2px solid #800020; outline-offset: 3px; }
.ab-tl__desc { grid-area: desc; margin: 0; max-width: 62ch; font-size: 1rem; line-height: 1.6; color: #3f4b55; }
.ab-tl__desc a { position: relative; z-index: 1; }
.ab-tl__img { grid-area: img; display: block; width: 100%; height: auto; max-width: none; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
/* the old dark-band link rule (palette block, :is(.section.section--third ...) a:not(.btn) => white) still matches this now-light section */
.section.section--third.u-highlights.u-ab23 a:not(.btn) { color: #800020; text-decoration-color: rgba(128, 0, 32, .55); }
.section.section--third.u-highlights.u-ab23 a.ab-tl__link { color: inherit; text-decoration: none; }
.ab-tl__item:has(.ab-tl__link):hover { background-color: #dde6ef; }
.ab-tl__item:has(.ab-tl__link):hover h4 { color: #5e0018; }

/* tablet 641-900: era markers become a row above their entries */
@media (max-width: 900px) {
  .ab-era { grid-template-columns: minmax(0, 1fr); row-gap: 18px; padding: 28px 0 24px; }
  .ab-era__head { position: static; display: flex; align-items: center; gap: 14px; }
  .ab-era__new { font-size: 3rem; }
  .ab-era__old { display: flex; align-items: center; gap: 14px; font-size: 1.5rem; }
  .ab-era__old::before { width: 28px; height: 2px; margin: 0; }
  .ab-tl__item { grid-template-columns: minmax(0, 1fr) 180px; column-gap: 22px; }
  .ab-estate { gap: 10px 4px; }
  .ab-estate__name { font-size: 1.08rem; }
  .ab-estate__cs { font-size: .88rem; }
}

/* phones: rail on the left, small thumbnail beside the title, description full width */
@media (max-width: 640px) {
  .ab-estate { grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0 -10px; }
  .ab-estate__tile { display: grid; grid-template-columns: 116px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; padding: 10px; align-items: start; }
  .ab-estate__shot { grid-row: 1 / 3; }
  .ab-estate__name { margin-top: 0; font-size: 1.05rem; }
  .ab-estate__cs { font-size: .88rem; }

  .u-ab23 .u-numerals { padding: 4px 18px; margin: 4px 0 28px; }
  .section.section--third.u-highlights.u-ab23 .u-numerals .tl-stat { border-left: 0; }
  .section.section--third.u-highlights.u-ab23 .u-numerals .tl-stat:last-child { border-bottom: 0; }

  .ab-era { padding: 22px 0 18px; row-gap: 12px; }
  .ab-era__new { font-size: 2.6rem; }
  .ab-era__old { font-size: 1.3rem; gap: 12px; }
  .ab-era__old::before { width: 22px; }
  .ab-era__list::before { left: 6px; }
  .ab-tl__item { margin: 0 0 4px 22px; padding: 12px 12px 14px; grid-template-columns: minmax(0, 1fr) 84px; grid-template-areas: "meta img" "desc desc"; column-gap: 14px; }
  .ab-tl__item::before { left: -21px; top: 17px; width: 12px; height: 12px; border-width: 3px; }
  .ab-tl__item h4 { font-size: 1.08rem; margin: 4px 0 0; }
  .ab-tl__desc { margin-top: 8px; font-size: .95rem; }
  .ab-tl__img { aspect-ratio: 1 / 1; border-radius: 8px; }
}
/* === 23 ABOUT REDESIGN END === */

/* ---- 26-projects-hero.css ---- */
/* === 26 PROJECTS HERO + SECONDARY HIGHLIGHTS (FEEDBACK-LOG #18-#20, #36, #40-#45; David: "the two secondary need to
   stand out more" and "the main project can sit on an image of the weather ... no white background, then the two
   secondary get the blue background and the text white") ===
   Scope: body.up-projects #featured and the two .pf-proj--big cards in #projects. Merged after block 22 (and 22b);
   OVERRIDES the featured and secondary parts of 22. The compact index of eleven (22 + 22b) is untouched.
   1. #featured: no white card. The section itself is an image-led band: the storm-over-sunflowers photograph used
      for the "My First Vibe-Coded Product: Weather Alerts Spain" article and the project page's social image,
      under a near-black overlay (measured: white text and #d6dfe9 body text pass AA, see the report).
      Text left, laptop right on laptops; laptop on top on tablet and phone (DOM order). Buttons use the
      dark-context tokens of block 02 (primary white with burgundy text, secondary white outline), white focus rings.
   2. The two secondary highlights: navy #1e3a5f cards, white 24px title, #d6dfe9 text, screenshot on top at 16:10.
      Hover: nothing moves, a rgba(255,255,255,.35) inner outline appears and the title is underlined.
      Keyboard focus: burgundy ring outside the card (it sits on the white section).
   Sequence: light-blue header, photo band (dark), white More projects, navy call to action, slate footer. */

/* ---------- 1. the photo band ---------- */
.up-projects #featured.section {
  background: linear-gradient(rgba(8, 12, 18, .65), rgba(8, 12, 18, .75)),
              url(/assets/img/post-my-first-vibe-coded-product-weather-alert-spain.jpg) center 45% / cover no-repeat;
  background-color: #080c12;
  color: #d6dfe9;
}
.up-projects #featured .pf-feature,
.up-projects #featured .pf-feature:hover {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: clamp(32px, 4vw, 64px); align-items: center;
  padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
}
.up-projects #featured .pf-feature__body { align-self: center; padding: 0; }
.up-projects #featured .pf-feature__body h2 { color: #fff; }
.up-projects #featured .pf-feature__body h2::after { background: #fff; }
.up-projects #featured .pf-feature__body p { color: #d6dfe9; }
.up-projects #featured .pf-feature__media,
.up-projects #featured .pf-feature__media:hover {
  padding: 0; margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.up-projects #featured .pf-feature__media img,
.up-projects #featured .pf-feature__media:hover img {
  width: 100%; max-width: 680px; height: auto; object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(8, 12, 18, .55));
}
/* buttons: the dark-context tokens of block 02 (same values as its .hero / .cta-band group) */
.up-projects #featured .btn {
  --b-bg: transparent; --b-fg: #ffffff; --b-bd: rgba(255, 255, 255, .6);
  --b-hbg: #ffffff;    --b-hfg: #800020; --b-hbd: #ffffff;
  --b-abg: #ffffff;    --b-afg: #5e0018; --b-abd: #ffffff;
  --b-ring: #ffffff;
}
.up-projects #featured .btn--primary {
  --b-bg: #ffffff;      --b-fg: #800020; --b-bd: #ffffff;
  --b-hbg: transparent; --b-hfg: #ffffff; --b-hbd: #ffffff;
}
.up-projects #featured :focus-visible { outline-color: #fff; }

/* ---------- 2. the two secondary highlights: navy, white text ---------- */
.up-projects #projects .pf-proj--big,
.up-projects #projects .pf-proj--big:hover {
  background: #1e3a5f; border: 1px solid #1e3a5f; box-shadow: var(--u-shadow); transform: none;
  outline: 2px solid transparent; outline-offset: -2px;
  transition: outline-color .2s ease;
}
.up-projects #projects .pf-proj--big .proj-card__media img,
.up-projects #projects .pf-proj--big:hover .proj-card__media img { border-bottom: 0; }
.up-projects #projects .pf-proj--big .up-tile-title { font-size: 1.5rem; }
.up-projects #projects .pf-proj--big .up-tile-title .art-link,
.up-projects #projects .pf-proj--big:hover .up-tile-title .art-link {
  color: #fff; text-decoration: none; text-underline-offset: .18em; text-decoration-thickness: 2px;
}
.up-projects #projects .pf-proj--big .proj-card__body p { color: #d6dfe9; }
.up-projects #projects .pf-proj--big:hover { outline-color: rgba(255, 255, 255, .35); }
.up-projects #projects .pf-proj--big:hover .up-tile-title .art-link { text-decoration-line: underline; }
/* keyboard: burgundy ring outside the card (on the white section), title underlined */
.up-projects #projects .pf-proj--big:focus-within { outline: 3px solid #800020; outline-offset: 3px; }
.up-projects #projects .pf-proj--big:focus-within .up-tile-title .art-link { text-decoration-line: underline; }

/* ---------- laptop narrow (861-1199) ---------- */
@media (min-width: 861px) and (max-width: 1199px) {
  .up-projects #featured .pf-feature,
  .up-projects #featured .pf-feature:hover { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 3.4vw, 44px); }
}

/* ---------- tablet and phone: stacked, laptop on top (DOM order) ---------- */
@media (max-width: 860px) {
  .up-projects #featured .pf-feature,
  .up-projects #featured .pf-feature:hover { grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 4vw, 32px); }
  .up-projects #featured .pf-feature__media { padding: 0; justify-content: center; }
  .up-projects #featured .pf-feature__media img { max-width: 600px; }
  .up-projects #featured .pf-feature__body { padding: 0; }
}
@media (max-width: 1023px) {
  .up-projects #projects .pf-proj--big .up-tile-title { font-size: 1.375rem; }
}
@media (max-width: 640px) {
  .up-projects #featured .pf-feature__media { padding: 0; }
  .up-projects #featured .pf-feature__body { padding: 0; }
  .up-projects #projects .pf-proj--big .up-tile-title { font-size: 1.3rem; }
}
/* === 26 PROJECTS HERO END === */

/* ---- 27-articles-hero.css ---- */
/* === 27 ARTICLES HERO + TOPIC TOGGLE: Articles index (/blog/) + category pages (/blog/category/*) ===
   David: (A) "put it on the image as the background and take an excerpt, and drop the others as they are on the list anyway"
          (B) "the filters should have an open/close option ... Just the search."
   Markup: blog/index.html featured box carries data-num="1" data-excerpt; main.js (block at the end of the file) adds
   .feat-hero, the excerpt (.feat-hero__excerpt), the aria-hidden "Read the article" label (.feat-hero__cta) and the
   "Browse by topic" button (.up-topics-toggle, toolbar gets .up-toolbar--toggle). Home is untouched (no data-excerpt).
   Backgrounds, top to bottom:
     index:    light blue header > black image-led hero (photo + overlay) > light blue All Articles (navy panel) > navy CTA > slate footer
     category: light blue header > white articles (navy panel) > navy CTA > slate footer (unchanged)
   Overrides block 06 sections 1, 2, 4, 5 (featured) and the phone chip rule styles.css:1061. */

/* ---- 1. The hero band: the lead's photo is the section background ---- */
.up-blog .section.up-straddle:has(.feat-hero) {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: clamp(440px, 38vw, 560px);
  padding-block: clamp(56px, 6vw, 88px);
  background-color: #080c12;
}
.up-blog .section.up-straddle:has(.feat-hero) > .container { width: 100%; }
.up-blog .up-feature:has(.feat-hero) { display: block; position: static; }
/* no scroll-reveal on the hero: the reveal's will-change/transform (styles.css:290) would make the feature box the
   containing block and trap the photo inside the text column */
.up-blog .up-feature.reveal-up:has(.feat-hero) { opacity: 1; transform: none; will-change: auto; transition: none; }

/* the article: plain text column over the photo (undo the 06 navy card) */
.up-blog .up-feature .feat-lead.feat-hero {
  position: static; isolation: auto; display: flex; flex-direction: column; align-items: flex-start;
  min-height: 0; max-width: 44rem; overflow: visible;
  background: none; border-radius: 0; box-shadow: none; outline: 0;
}
.up-blog .up-feature .feat-lead.feat-hero::after { content: none; }
.up-blog .up-feature .feat-lead.feat-hero:focus-within { outline: 0; }

/* photo + overlay fill the whole section, behind the text */
.up-blog .up-feature .feat-hero .feat-lead__media {
  position: absolute; inset: 0; z-index: -1;
  aspect-ratio: auto; border-radius: 0; box-shadow: none; overflow: hidden;
}
.up-blog .up-feature .feat-hero .feat-lead__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transform: none; animation: none; transition: filter .2s ease;
}
/* overlay: dark where the text sits (left), lighter on the right so the photo still reads */
.up-blog .up-feature .feat-hero .feat-lead__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, .9) 0%, rgba(8, 12, 18, .84) 48%, rgba(8, 12, 18, .5) 78%, rgba(8, 12, 18, .4) 100%),
    linear-gradient(0deg, rgba(8, 12, 18, .35) 0%, rgba(8, 12, 18, 0) 55%);
}

/* text */
.up-blog .up-feature .feat-hero .art-tag { align-self: flex-start; margin: 0 0 16px; }
.up-blog .up-feature .feat-hero .art-title {
  margin: 0 0 16px; max-width: 22ch;
  font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3rem); line-height: 1.1; letter-spacing: -.01em;
}
.up-blog .up-feature .feat-hero .art-link,
.up-blog .up-feature .feat-hero:hover .art-link { color: #fff; text-decoration: none; }
.up-blog .up-feature .feat-hero__excerpt {
  margin: 0 0 26px; max-width: 58ch; color: #fff;
  font-size: 1.125rem; line-height: 1.55;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
/* "Read the article": the primary button for dark backgrounds (white fill, burgundy text). It is a label, the
   stretched title link below is the real hit area, so it keeps its resting colours */
.up-blog .up-feature .feat-hero__cta.btn {
  --b-bg: #ffffff; --b-fg: #800020; --b-bd: #ffffff;
  --b-hbg: #ffffff; --b-hfg: #800020; --b-hbd: #ffffff;
  pointer-events: none;
}

/* whole hero clickable: the title link stretches over the section */
.up-blog .up-feature .feat-hero .art-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.up-blog .up-feature .feat-hero .art-link:focus-visible { outline: 0; }
.up-blog .up-feature .feat-hero .art-link:focus-visible::after { outline: 3px solid #fff; outline-offset: -8px; border-radius: 10px; }

/* hover: the title underlines and the photo dims a touch. No movement */
.up-blog .up-feature .feat-lead.feat-hero:hover { transform: none; box-shadow: none; background: none; }
.up-blog .up-feature .feat-hero:hover .art-link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.up-blog .up-feature .feat-hero:hover .feat-lead__media img { filter: brightness(.92); transform: none; }

/* no side list on this page (the renderer draws none with data-num="1"; belt and braces) */
.up-blog .up-feature:has(.feat-hero) .feat-side { display: none; }

/* no JS: the featured box stays empty, so drop the band and let All Articles go white (light blue header above) */
.up-blog .section.up-straddle:not(:has(.feat-lead)) { display: none; }
.up-blog .section.up-straddle:not(:has(.feat-lead)) + .section.up-all,
/* while a search is active the search code hides the hero band inline: keep the bands different then too */
.up-blog .section.up-straddle[style*="none"] + .section.up-all { background-color: #fff; }

/* tablet: full-width overlay (the text runs wider than the dark side) */
@media (max-width: 900px) {
  .up-blog .section.up-straddle:has(.feat-hero) { min-height: 420px; padding-block: 56px; }
  .up-blog .up-feature .feat-hero .feat-lead__media::after {
    background: linear-gradient(0deg, rgba(8, 12, 18, .9) 0%, rgba(8, 12, 18, .84) 60%, rgba(8, 12, 18, .72) 100%);
  }
}
/* phone: shorter band, three lines of excerpt */
@media (max-width: 640px) {
  .up-blog .section.up-straddle:has(.feat-hero) { min-height: 360px; padding-block: 40px; }
  .up-blog .up-feature .feat-hero .art-tag { margin-bottom: 12px; }
  .up-blog .up-feature .feat-hero .art-title { font-size: 1.6rem; line-height: 1.15; margin-bottom: 12px; }
  .up-blog .up-feature .feat-hero__excerpt { font-size: 1rem; margin-bottom: 20px; -webkit-line-clamp: 3; line-clamp: 3; }
  .up-blog .up-feature .feat-hero .art-link:focus-visible::after { outline-offset: -5px; }
}
@media (prefers-reduced-motion: reduce) {
  .up-blog .up-feature .feat-hero .feat-lead__media img { transition: none; }
}

/* ---- 2. Filter panel: search always shown, topics behind "Browse by topic" ---- */
.up-blog .up-toolbar.up-toolbar--toggle {
  display: grid; grid-template-columns: min(520px, 100%) auto; justify-content: start; align-items: center;
  column-gap: 14px; row-gap: 18px;
}
.up-blog .up-toolbar--toggle .posts-search { grid-column: 1; }
.up-blog .up-toolbar--toggle .cat-chips { grid-column: 1 / -1; }
/* category pages have no search: the toggle sits alone at the top of the panel */
.up-blog .up-toolbar--toggle:not(:has(.posts-search)) { grid-template-columns: auto; }

.up-blog .up-topics-toggle {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  min-height: 48px; padding: 0 20px; margin: 0;
  font-family: var(--font-heading); font-weight: 600; font-size: .92rem; line-height: 1.2; color: #fff;
  background: transparent; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px;
  cursor: pointer; transition: none;
}
.up-blog .up-topics-toggle:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.up-blog .up-topics-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* open state = the chevron turns; no fill, so it never reads like the selected (white) topic chip */
.up-blog .up-topics-toggle__icon { width: 18px; height: 18px; flex: 0 0 auto; transition: none; }
.up-blog .up-topics-toggle[aria-expanded="true"] .up-topics-toggle__icon { transform: rotate(180deg); }
.up-blog .up-topics-toggle[hidden] { display: none; }
@media (pointer: coarse) { .up-blog .up-topics-toggle { min-height: 48px; } }

/* chips: `hidden` wins; when shown they show on phones too (replaces styles.css:1061, which hid them on the index phone view) */
.up-blog .up-toolbar .cat-chips[hidden] { display: none; }
/* no-JS chips (the static `a.chip` fallback in the page) were burgundy text on navy: give them the JS chip look */
.up-blog .up-toolbar .cat-chips > a.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 8px 15px;
  font-family: var(--font-heading); font-weight: 600; font-size: .82rem; line-height: 1.2; text-decoration: none;
  color: #fff; background: transparent; border: 1.5px solid rgba(255, 255, 255, .6); border-radius: 999px;
}
.up-blog .up-toolbar .cat-chips > a.chip:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.up-blog .up-toolbar .cat-chips > a.chip[aria-current] { background: #fff; border-color: #fff; color: #1e3a5f; }
.up-blog .up-toolbar .cat-chips > a.chip:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (pointer: coarse) { .up-blog .up-toolbar .cat-chips > a.chip { min-height: 44px; } }
@media (max-width: 640px) {
  .up-blog .up-toolbar .cat-chips[data-categories]:not([hidden]) { display: flex; }
  .up-blog .up-toolbar.up-toolbar--toggle { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .up-blog .up-topics-toggle { width: 100%; justify-content: center; }
}

/* ---- 28-case-studies-filter.css ---- */
/* === 28 CASE STUDIES FILTER (22 Nov 2026): chip bar only, above the original case-study rows ===
   Page: case-studies/index.html. Markup: .csx-filter (chips + live count). Script: assets/js/main.js ([data-cs-filter]).
   The case-study rows themselves are the original design (05-cases-projects.css). */
.csx-filter[hidden] { display: none; }
.csx-filter { margin: 0 0 clamp(22px, 2.6vw, 32px); }
.csx-filter__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 12px; }
.csx-filter__intro { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: .95rem; color: #263037; }
.csx-filter__count { margin: 0; font-size: .9rem; color: #54606a; }
.csx-filter__chips { display: flex; flex-wrap: wrap; gap: 10px; }
/* chips reuse the Projects filter pill (.pf-chip in styles.css): burgundy outline, solid burgundy when pressed */
.csx-filter .csx-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 15px; font-size: .84rem; line-height: 1.2; }
.csx-filter .csx-chip:hover { background: #f3e1e6; color: #5e0018; }
.csx-filter .csx-chip[aria-pressed="true"] { background: #800020; color: #fff; }
.csx-filter .csx-chip[aria-pressed="true"]:hover { background: #5e0018; color: #fff; }
.csx-filter .csx-chip:focus-visible { outline: 3px solid #800020; outline-offset: 3px; }
.csx-filter .csx-chip { min-height: 44px; }
.csx-filter__chips { gap: 8px; }
.csx-filter .csx-chip { padding: 8px 14px; font-size: .84rem; }

/* ---- 29-list-headers.css ---- */
/* === 29 LIST-PAGE HEADERS: Case Studies, Projects, Articles (David: "put the header effect on all three list pages") ===
   The same header as Services: pale-blue band, text left, a framed photo right that unveils (u-unveil, uplift.css ~703,
   reduced-motion falls back to a fade). Markup: <section class="u-hero u-hero--split"> with .u-hero__media.u-frame.
   Photos: Case Studies cs-jury.jpg (already on the page), Projects strip-4.jpg (AI cube), Articles strip-3.jpg (notes and laptops).
   Replaces block 05 #16 (single fading photo) for the Case Studies header. The photo sits INSIDE the band (no overlap) so
   the dark image-led band below (Projects, Articles) is not crowded. */
.u-hero--cases .u-hero__media img,
.up-hero--list .u-hero__media img { aspect-ratio: 4 / 3.4; object-position: 50% 45%; }
.u-hero--cases .u-hero__grid,
.up-hero--list .u-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 900px) {
  .u-hero--cases .u-hero__grid,
  .up-hero--list .u-hero__grid { grid-template-columns: 1fr; }
  .u-hero--cases .u-hero__media img,
  .up-hero--list .u-hero__media img { aspect-ratio: 3 / 2; }
}

/* Projects: the featured band is no longer pulled up under the header (that overlap belonged to the old text-only header), so it needs its own top padding: David's screenshot showed the title touching the top edge of the photo band. */
.up-projects .up-hero--list + #featured.section { margin-top: 0; padding-top: var(--u-space); }

/* Headers with no photo take the full width (David: "drop the top images on the project pages" and "the title and text should be full width as there is no image"):
   project pages (the ::after shot from block 14 is removed), Contact, Privacy, Terms and Resources. The Articles category pages keep their photo (block 15). */
.up-project .up-hero__grid::after { content: none; display: none; }
.up-project .up-hero .up-hero__grid,
body:not(.up-blog):not(.up-projects):not(.up-project) .up-hero .up-hero__grid { grid-template-columns: minmax(0, 1fr); column-gap: 0; row-gap: clamp(18px, 2.2vw, 28px); }
.up-project .up-hero .up-hero__grid { row-gap: 0; }
.up-project .up-hero__grid > div:first-child,
.up-project .up-hero__grid > .up-hero__text,
body:not(.up-blog):not(.up-projects):not(.up-project) .up-hero__grid > * { grid-column: 1; max-width: none; }
.up-project .up-hero__grid > .up-hero__text,
body:not(.up-blog):not(.up-projects):not(.up-project) .up-hero__text { max-width: 64rem; }

/* About timeline: the launch / completion note under an entry's description (Launched February 2026 and the like). */
.ab-tl__note { display: block; margin-top: 8px; font-size: .88rem; font-weight: 600; letter-spacing: .01em; color: #54606a; }
.ab-era__theme { display: block; margin-top: 14px; max-width: 15ch; font-size: .98rem; font-weight: 600; line-height: 1.35; color: #54606a; }
@media (max-width: 900px) { .ab-era__theme { margin-top: 0; max-width: none; } }
/* === FEEDBACK v1 END === */
