/* ==========================================================================
   My Econics — Orange theme (editorial rework, loaded after studio.css)
   White pages, ink sections, one vivid orange. Matches the official logo and
   keeps the orange-highlighted headline; drops glass, gradients, badges and cards.
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-2: #FFF4EE;     /* warm tint sections */
  --ink: #0B1033;         /* deep navy: dark sections, footer, dark text on orange */
  --ink-2: #151B45;
  --mute: #55596E;        /* cool grey, 6.9:1 on white, 6.4:1 on tint */
  --mute-d: #A3A9C4;      /* cool grey, 8.0:1 on ink */
  --line-d: rgba(232, 235, 248, .16);
  --orange: #FF6701;      /* logo orange; fills only, ink text on it is 6.3:1 */
  --orange-text: #BE4C00; /* logo hue (24°), darkened for text on white: 5.0:1 */
  --orange-hl: #ED5F00;   /* logo hue, very large display text only: 3.4:1 */
  --orange-on-ink: #FF8A4C; /* orange text on ink, 8:1 */
  --blue: #102DBC;        /* logo blue: button hover fill, white text on it 9.9:1 */
  --head: #04009A;        /* logo dark blue: headings on light sections, 14.3:1 */
  --text: #141A3D;        /* navy ink for body copy, 16.9:1 (not saturated, so it never reads as a link) */
  --line: rgba(20, 26, 61, .14);
}

/* ---------- Brand colour roles: blue headings, navy text, blue hover ----------
   Light sections only. Dark sections, the footer and the orange band keep their own colours. */
body { color: var(--text); }
h1, h2, h3, .h2, .h3, .hero__title, .page-hero__title, .svc__t { color: var(--head); }
.dark, .site-footer, .cta-band { --head: currentColor; }
.primary-nav__link:hover, .primary-nav__link.is-current, .primary-nav__link[aria-current],
.breadcrumbs a:hover, .breadcrumbs [aria-current], .practices b, .svc-entry .dash-list,
.timeline__sum, .next-steps li::before, .next-steps strong { color: var(--text); }
.btn--primary:hover { background: var(--blue); color: #FFFFFF; }
.credit { background: rgba(11, 16, 51, .78); }
.credit--in { background: none; }


/* Section labels carry the brand colour */
.kicker, .page-hero__kicker { color: var(--orange-text); }
.kicker span { color: var(--mute); }
.dark .kicker, .dark .svc-group__label { color: var(--orange-on-ink); }
.dark .kicker span { color: var(--mute-d); }

/* ---------- Homepage hero: big headline, orange highlight ---------- */
.hero--headline { padding: clamp(24px, 5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.hero__tag--top { max-width: none; font-size: 16px; font-weight: 600; color: var(--orange-text); }
.hero__title { margin-top: 20px; font-size: clamp(46px, 7.8vw, 128px); line-height: .96; letter-spacing: -.045em; font-weight: 760; font-stretch: 108%; max-width: 12.5ch; text-wrap: balance; }
.hero__title .hl { color: var(--orange-hl); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px var(--gap); align-items: end; margin-top: clamp(32px, 4vw, 56px); }
.hero__text { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; color: var(--mute); max-width: 46ch; }
.hero--headline .btn-row { justify-content: flex-end; }

/* The closing band and primary buttons stay orange; the process line fills in orange */
.steps::after { background: var(--orange); }
.tint { background: var(--paper-2); }
.panel { background: var(--paper-2); }
.tint .panel { background: var(--paper); }
.form-card { background: var(--paper-2); }

/* Focus on white stays ink; on ink it is the lighter orange */
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--orange-on-ink); }
.dark a:hover, .site-footer a:not(.btn):hover { color: var(--orange-on-ink); }

@media (max-width: 1080px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero--headline .btn-row { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .hero__title { font-size: clamp(42px, 12vw, 60px); }
}

/* ---------- Homepage hero background: isometric facet field ----------
   Drawn by assets/js/hero-facets.js. Lives on the right, fades out under the copy,
   lights up once on load (intro ends within 4.5 s) and then rests (no loops). */
.hero--headline { position: relative; overflow: hidden; isolation: isolate; }
.hero--headline > .wrap { position: relative; z-index: 1; }
.facets { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s cubic-bezier(.05, .7, .1, 1) 1.2s;
  -webkit-mask-image: linear-gradient(100deg, transparent 34%, #000 72%); mask-image: linear-gradient(100deg, transparent 34%, #000 72%); }
.facets.is-ready { opacity: 1; }
.facets svg { display: block; width: 100%; height: 100%; }
.facets__lat { fill: none; stroke: var(--ink); stroke-opacity: .07; stroke-width: 1; vector-effect: non-scaling-stroke; }
/* Fade 1.2 s with Material 3's emphasized-decelerate curve: quick to appear, slow to settle */
.facets__tri { opacity: 0; transition: opacity 1.2s cubic-bezier(.05, .7, .1, 1); }
.facets__tri.is-in { opacity: var(--o, .2); }
/* Pointer glow: fast in so it feels responsive, slow out (the 1.2 s above) so it lingers */
.facets__tri.is-hot { opacity: .7; transition-duration: .2s; }
@media (max-width: 760px) {
  .facets { opacity: 0; -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 38%); mask-image: linear-gradient(180deg, #000 0, transparent 38%); }
  .facets.is-ready { opacity: .7; }
}
@media (prefers-reduced-motion: reduce) {
  .facets, .facets__tri { transition: none; }
}
@media print { .facets { display: none; } }

/* ---------- Homepage hero intro (CSS only, plays once on load) ----------
   Timing follows Material 3 motion guidance: large display text uses the extra-long
   range (900 ms) with the emphasized-decelerate curve; words 70 ms apart; supporting
   copy follows the headline; the orange sweep starts as the last words land.
   Whole intro: about 1.9 s. Reduced motion: everything is simply in place. */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .03em .16em; margin: -.08em -.03em -.16em; }
.hero__title .w__i { display: inline-block; }
.w1 { --n: 0; } .w2 { --n: 1; } .w3 { --n: 2; } .w4 { --n: 3; } .w5 { --n: 4; } .w6 { --n: 5; }
.w7 { --n: 6; } .w8 { --n: 7; } .w9 { --n: 8; } .w10 { --n: 9; } .w11 { --n: 10; } .w12 { --n: 11; }
@media (prefers-reduced-motion: no-preference) {
  .hero__title .w__i { animation: me-rise .9s cubic-bezier(.05, .7, .1, 1) both; animation-delay: calc(150ms + var(--n, 0) * 70ms); }
  .hero__title .hl { color: transparent; background: linear-gradient(90deg, var(--orange-hl) 0 50%, var(--head) 50% 100%) 0 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text;
    animation: me-sweep .7s cubic-bezier(.65, 0, .35, 1) both; animation-delay: calc(1000ms + (var(--n, 4) - 4) * 120ms); }
  .intro { animation: me-up .8s cubic-bezier(.05, .7, .1, 1) both; }
  .intro--1 { animation-duration: .6s; }
  .intro--2 { animation-delay: .8s; }
  .intro--3 { animation-delay: .92s; }
}
@keyframes me-rise { from { transform: translateY(140%); } }
@keyframes me-sweep { from { background-position: 100% 0; } }
@keyframes me-up { from { opacity: 0; transform: translateY(16px); } }
@media (forced-colors: active) { .hero__title .hl { color: CanvasText; background: none; } }

/* ---------- Menu button: icon only (the label stays for screen readers) ---------- */
.nav-icon { position: relative; display: block; width: 26px; height: 26px; }
.nav-icon i { position: absolute; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: width .3s cubic-bezier(.05, .7, .1, 1), transform .3s cubic-bezier(.05, .7, .1, 1); }
.nav-icon i:first-child { top: 8px; width: 26px; }
.nav-icon i:last-child { top: 16px; width: 16px; }
.nav-toggle:hover .nav-icon i:last-child, .nav-toggle:focus-visible .nav-icon i:last-child { width: 26px; }
.nav-icon--close i { top: 12px !important; width: 24px !important; right: 1px; }
.nav-icon--close i:first-child { transform: rotate(45deg); }
.nav-icon--close i:last-child { transform: rotate(-45deg); }
.nav-toggle { width: 44px; justify-content: center; padding: 0; }

/* ---------- Homepage: reassurance strip, shorter photo, mid-page CTA, 3-step process, phone header button ---------- */
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 16px; font-weight: 600; color: var(--text); }
.hero__proof li { display: inline-flex; align-items: center; gap: 10px; }
.hero__proof .icon { width: 18px; height: 18px; flex: none; color: var(--orange-text); }
.mid-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 72px; padding: 28px 32px; background: var(--paper-2); }
.mid-cta__text { font-size: clamp(20px, 1.8vw, 26px); font-weight: 620; letter-spacing: -.015em; color: var(--head); }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1079px) {
  .site-header__cta { display: inline-flex; margin-left: auto; }
  .site-header .nav-toggle { margin-left: 4px; }
  .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header__inner { gap: 10px; }
  .site-header__cta { min-height: 40px; padding: 0 12px; font-size: 14px; }
  .steps--3 { grid-template-columns: 1fr; }
  .hero__proof { gap: 10px 20px; font-size: 15px; }
}
@media (max-width: 380px) { .site-header .brand__logo { height: 32px; } }
.site-header__cta { white-space: nowrap; }
@media (max-width: 380px) { .site-header__cta { padding: 0 10px; font-size: 13px; } }

/* ---------- Case studies, testimonial slots ---------- */
/* Case studies: two tiles, each with a decorative product sketch */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case-tile { display: grid; grid-template-rows: auto 1fr; background: var(--paper-2); }
.case-tile__body { display: flex; flex-direction: column; align-items: flex-start; padding: 28px 32px 24px; }
.case-tile__title { margin-top: 10px; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.14; letter-spacing: -.02em; font-weight: 640; color: var(--head); max-width: 24ch; }
.case-tile__summary { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--text); max-width: 50ch; text-wrap: pretty; }
.case__value.case-tile__value { margin-top: 22px; gap: 10px; color: var(--text); text-wrap: pretty; }
.case-tile__more { margin-top: auto; padding-top: 20px; width: 100%; }
.case-tile__more summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; list-style: none; cursor: pointer; font-weight: 700; color: var(--head); }
.case-tile__more summary::-webkit-details-marker { display: none; }
.case-tile__more summary:hover { color: var(--blue); }
.case-tile__more summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.case-tile__more-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--orange-text); }
.case-tile__more-ic::before { content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid var(--orange-text); border-bottom: 2px solid var(--orange-text); transform: rotate(45deg); transition: transform .2s ease-out, margin .2s ease-out; }
.case-tile__more[open] .case-tile__more-ic::before { transform: rotate(-135deg); margin-top: 3px; }
.case-tile__more-body { padding: 4px 0 6px; font-size: 15.5px; line-height: 1.55; color: var(--mute); max-width: 62ch; }
.case-tile__more-body p + p { margin-top: 10px; }
.case-tile__more-body b { color: var(--text); }
/* Side by side: line up every row across the two tiles (title, summary, results, button), so they match open or closed */
@media (min-width: 901px) {
  @supports (grid-template-rows: subgrid) {
    .cases { grid-template-rows: repeat(6, auto); row-gap: 0; }
    .case-tile { grid-row: span 6; grid-template-rows: subgrid; }
    .case-tile__body { grid-row: span 5; display: grid; grid-template-rows: subgrid; justify-items: start; align-content: start; }
    .case-tile__more { margin-top: 0; }
  }
}
@media (max-width: 900px) {
  .cases { grid-template-columns: 1fr; }
  .case-tile .cv { height: auto; min-height: 270px; padding: 32px 20px; }
  .case-tile__body { padding: 26px 22px 18px; }
}
/* Product sketches */
.cv { position: relative; display: grid; place-items: center; align-content: center; gap: 18px; height: 360px; padding: 24px; overflow: hidden; color: #fff;
  background: radial-gradient(60% 55% at 50% 55%, rgba(255, 103, 1, .22), transparent 70%), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px, var(--ink); }
.cv-card { width: min(300px, 100%); padding: 20px; background: #fff; color: var(--text); border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.08); font-size: 14px; }
.cv-card__title { font-weight: 700; font-size: 16px; color: var(--head); margin-bottom: 12px; }
.cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cv-field { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
.cv-field small { display: block; font-size: 11px; font-weight: 500; color: var(--mute); }
.cv-room { display: flex; justify-content: space-between; margin-top: 10px; padding: 10px; border-radius: 8px; background: var(--paper-2); }
.cv-pay__label { margin-top: 12px; font-size: 12px; color: var(--mute); }
.cv-pay { display: flex; gap: 6px; margin-top: 6px; }
.cv-pay span { flex: 1; padding: 6px 0; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; font-size: 12px; color: var(--text); }
.cv-btn { display: block; margin-top: 14px; padding: 10px; text-align: center; border-radius: 8px; background: var(--orange); color: var(--ink); font-weight: 700; }
.cv-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); }
.cv-link__icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--ink); }
.cv-link__url b { color: var(--blue); }
.cv-chain { display: flex; align-items: center; gap: 22px; list-style: none; margin: 8px 0 0; padding: 0; }
.cv-chain li { position: relative; display: grid; place-items: center; width: 74px; height: 64px; border-radius: 10px; background: #151B45; border: 1px solid rgba(255,255,255,.16); font-weight: 700; font-size: 14px; }
.cv-chain li small { font-size: 11px; font-weight: 500; color: var(--mute-d); }
.cv-chain li + li::before { content: ""; position: absolute; left: -23px; top: 50%; width: 22px; height: 2px; background: rgba(255,255,255,.35); }
.cv-chain li.is-new { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.cv-chain li.is-new small { color: var(--ink); }
.cv-chain__note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #fff; }
.cv-chain__note .icon { color: var(--orange-on-ink); width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .is-in .cv-card, .is-in .cv-link { animation: cv-rise .8s cubic-bezier(.05, .7, .1, 1) both .15s; }
  .is-in .cv-chain li { animation: cv-pop .5s cubic-bezier(.33, 1, .68, 1) both; }
  .is-in .cv-chain li:nth-child(1) { animation-delay: .35s; } .is-in .cv-chain li:nth-child(2) { animation-delay: .55s; } .is-in .cv-chain li:nth-child(3) { animation-delay: .75s; }
}
@keyframes cv-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes cv-pop { from { opacity: 0; transform: scale(.7); } }

.case__sector { font-size: 15px; font-weight: 600; color: var(--orange-text); }
.case__value { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 16px; color: var(--mute); }
.case__value li { display: flex; gap: 10px; align-items: flex-start; }
.case__value .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--orange-text); }
.cases__more { margin-top: 64px; font-size: 20px; font-weight: 620; color: var(--head); }
.quote-slot { border: 2px dashed var(--line); padding: 24px; }
.quote-slot__q { font-size: 19px; line-height: 1.45; color: var(--mute); margin-bottom: 16px; font-style: italic; }
.todo { background: #FFF3D6; color: #5A3B00; padding: 2px 6px; }
p.todo { padding: 10px 14px; }
.quote-feature { max-width: 900px; padding-left: clamp(20px, 3vw, 40px); border-left: 4px solid var(--orange); }
.quote-feature blockquote p { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.3; letter-spacing: -.015em; font-weight: 560; color: var(--head); }
.quote-feature figcaption { margin-top: 20px; font-size: 17px; color: var(--text); }
.quotes-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.quotes-2 .quote-feature blockquote p { font-size: clamp(20px, 1.7vw, 25px); }
@media (max-width: 900px) { .quotes-2 { grid-template-columns: 1fr; } }

/* ---------- UI refresh (Nov 2026) ---------- */
/* Icon badge: navy circle with an orange line icon */
.icon-badge { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--orange-on-ink); }
.icon-badge .icon { width: 22px; height: 22px; }

/* Problems we fix, disciplines, expectations: tint cards with an icon */
.icon-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.icon-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.icon-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 28px 30px; background: var(--paper-2); }
.tint .icon-card { background: var(--paper); }
.dark .icon-card { background: var(--ink-2); }
.icon-card__t { margin-top: 6px; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.22; letter-spacing: -.012em; font-weight: 620; color: var(--head); max-width: 26ch; text-wrap: balance; }
.dark .icon-card__t { color: #fff; }
.icon-card .muted { font-size: 16.5px; line-height: 1.55; max-width: 44ch; }

/* More projects: tiles plus a call-to-action tile */
.proj-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; }
.proj-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 24px 26px; background: var(--paper-2); }
.proj-tile .icon-badge { margin-bottom: 8px; }
.proj-tile__sector { font-size: 14px; font-weight: 600; color: var(--orange-text); }
.proj-tile__t { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; font-weight: 620; color: var(--head); text-wrap: balance; }
.proj-tile__d { font-size: 15.5px; line-height: 1.5; color: var(--mute); }
.proj-tile--cta { justify-content: center; background: var(--ink); }
.proj-tile--cta .proj-tile__t { font-size: 22px; color: #fff; }
.proj-tile--cta .proj-tile__d { color: var(--mute-d); }
.proj-tile--cta .btn { margin-top: 12px; }
.proj-tile--cta .btn--primary:focus-visible { outline-color: var(--orange-on-ink); }

/* How a project runs: numbered circles on a line */
.steps--dots { padding-top: 0; }
.steps--dots::before, .steps--dots::after { display: block; top: 23px; left: 24px; right: calc((100% - 2 * var(--gap)) / 3 - 24px); }
.steps--dots::after { background: var(--orange); }
.steps--dots .step { border-top: 0; padding-top: 0; }
.steps--dots .step__n { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--line); font-size: 18px; font-weight: 700; color: var(--head); }
.steps--dots .step:last-child .step__n { background: var(--orange); box-shadow: none; color: var(--ink); }
@media (max-width: 760px) {
  .steps--dots { row-gap: 28px; }
  .steps--dots::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: linear-gradient(var(--line), var(--orange)); }
  .steps--dots::after { display: none; }
  .steps--dots .step { position: relative; padding-left: 68px; min-height: 48px; }
  .steps--dots .step__n { position: absolute; left: 0; top: -6px; margin: 0; }
}

/* Why My Econics: the picture stays in view; smaller on phones */
@media (max-width: 760px) { .media-split--why .media-split__media { max-width: 300px; } }

@media (max-width: 1080px) {
  .proj-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .icon-cards--3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .proj-tiles, .icon-cards { grid-template-columns: 1fr; }
  .icon-card { padding: 24px 22px 26px; }
}
@media (max-width: 760px) {
  .proj-tiles { gap: 12px; }
  .proj-tile:not(.proj-tile--cta) { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; padding: 20px; }
  .proj-tile:not(.proj-tile--cta) .icon-badge { grid-row: 1 / span 3; margin: 0; }
  .proj-tile:not(.proj-tile--cta) > :not(.icon-badge) { grid-column: 2; }
}

/* Service pages: one case tile lies on its side (picture left, story right) */
@media (min-width: 901px) {
  .cases.cases--single { grid-template-columns: 1fr; grid-template-rows: none; }
  .cases--single .case-tile { grid-row: auto; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: none; }
  .cases--single .case-tile__visual { grid-row: auto; }
  .cases--single .cv { height: 100%; min-height: 380px; }
  .cases--single .case-tile__body { grid-row: auto; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 3.6vw, 52px); }
  .cases--single .case-tile__title { font-size: clamp(24px, 2.3vw, 32px); }
  .cases--single .case-tile__more { margin-top: 0; }
}
.proj-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proj-tiles--1 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
@media (max-width: 760px) { .proj-tiles--2 { grid-template-columns: 1fr; } }
/* Service pages with no case study: projects sit as a row under the heading, icon on the left */
.proj-tiles--row.proj-tiles--1 { max-width: none; }
.proj-tiles--row .proj-tile { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; align-items: start; }
.proj-tiles--row .proj-tile .icon-badge { grid-row: 1 / span 3; margin: 0; }
.proj-tiles--row .proj-tile > :not(.icon-badge) { grid-column: 2; }

/* About: disciplines get an icon beside the name */
.rows__lead { display: inline-flex; align-items: center; gap: 16px; }
.rows__lead .icon-badge { width: 42px; height: 42px; }
.rows__lead .icon-badge .icon { width: 20px; height: 20px; }
.dark .icon-badge { background: var(--orange); color: var(--ink); }

/* Team: persona illustration on top, name below (same family as the case tiles) */
.team-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; }
.team-card { display: flex; flex-direction: column; background: var(--paper-2); }
.team-card__pic { aspect-ratio: 1; overflow: hidden; background: var(--ink); }
.team-card__pic svg, .team-card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 22px 24px 26px; }
.team-card__name { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.15; letter-spacing: -.015em; font-weight: 640; color: var(--head); }
.team-card__role { margin-top: 6px; font-size: 16px; font-weight: 600; color: var(--orange-text); }
.team-card .muted { margin-top: 10px; font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .team-card.is-in .persona__head, .team-card.is-in .persona__body { animation: persona-rise .9s cubic-bezier(.05, .7, .1, 1) both; transform-box: fill-box; }
  .team-card.is-in .persona__head { animation-delay: .12s; }
}
@keyframes persona-rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 1080px) { .team-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 760px) {
  .team-cards { grid-template-columns: 1fr; gap: 12px; }
  .team-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; }
  .team-card__body { padding: 16px 18px; }
}

/* Headings: a wider line so long headings take 2–3 lines instead of 4–5 */
.h2 { max-width: 20ch; }
.page-hero__title { max-width: 19ch; }
.media-split__body .h2 { max-width: 16ch; }

/* Decorative photos: shorter strips */
.bleed--short { height: clamp(180px, 24vw, 340px); }
.bleed--page { height: clamp(200px, 28vw, 380px); }

/* Closing band: optional secondary link beside the button */
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 40px; }
.cta-band .cta-band__actions .btn { margin-top: 0; }
.cta-band__link { font-weight: 600; color: var(--ink); }

/* Services: group pills that stay in view while you scroll the groups */
.pills-bar { position: sticky; top: var(--header-h); z-index: 40; padding: 12px 0; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) { .pills-bar { background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--head); font-weight: 600; font-size: 15.5px; text-decoration: none; transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out; }
.pill:hover { border-color: var(--blue); color: var(--blue); }
.pill__n { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--paper-2); color: var(--orange-text); font-size: 13px; font-weight: 700; }
.pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.is-active .pill__n { background: var(--orange); color: var(--ink); }
.svc-groups .group { scroll-margin-top: calc(var(--header-h) + 72px); }
@media (max-width: 760px) { .pills-bar { padding: 10px 0; } .pill { font-size: 14.5px; min-height: 38px; padding-left: 12px; } }
.svc-groups .media-split--top .media-split__media { top: calc(var(--header-h) + 100px); }
.proj-tiles--row .proj-tile { align-content: start; }
@media (max-width: 760px) { .proj-tile:not(.proj-tile--cta) { align-content: start; } }
@media (max-width: 900px) { .cases { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) {
  .cv-chain { gap: 14px; }
  .cv-chain li { width: 64px; height: 58px; font-size: 13px; }
  .cv-chain li + li::before { left: -15px; width: 14px; }
}
@media (max-width: 760px) {
  .icon-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-content: start; padding: 20px; }
  .icon-card .icon-badge { grid-row: 1 / span 2; width: 42px; height: 42px; }
  .icon-card > :not(.icon-badge) { grid-column: 2; }
  .icon-card__t { margin-top: 0; }
  .icon-cards { gap: 12px; }
}
