:root { --grid-left: max(3rem, calc((100vw - 1180px) / 2)); } /* left edge of the 1180px content grid */
/* ==========================================================================
 * Forward — 2027 redesign layer.
 * Plain CSS on top of the Tailwind tokens in theme.js. Every colour comes from
 * the --c-* custom properties (with alpha), so nothing here introduces a new
 * colour. Motion states are scoped to html.motion, which is only set when the
 * motion stack loads and the visitor has not asked for reduced motion; without
 * it every element renders in its final, static state.
 * ======================================================================= */

/* ---- fonts: self-hosted Latin subsets (Google Fonts, SIL OFL) ------------ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/outfit-500-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 500; font-display: swap;
  src: url(fonts/playfair-500-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Native scrolling; in-page anchors glide with the browser's own smoothing. */
html { scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { overflow-x: clip; }
::selection { background: rgb(var(--c-brand)); color: rgb(var(--c-paper)); }

/* Until SplitText has run, hide what it will animate (no flash of unsplit
   text). site.js clears this; a <head> timeout clears it if scripts never load. */
html.motion.is-booting [data-split],
html.motion.is-booting [data-fade],
html.motion.is-booting [data-rise] { visibility: hidden; }

/* SplitText line masks clip with overflow: clip. Pad the mask so italic
   overhangs, descenders and tight line-heights are never cut, and pull the
   padding back with negative margins so the layout does not move. */
[data-split] > [class*="mask"] { padding: 0.06em 0.14em 0.16em 0.04em; margin: -0.06em -0.14em -0.16em -0.04em; }

/* ---- skip link ----------------------------------------------------------- */
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: 0.75rem 1rem;
  background: rgb(var(--c-ink)); color: rgb(var(--c-paper)); font: 600 0.875rem/1 Inter, sans-serif; transition: top 0.2s ease; }
.skip-link:focus { top: 1rem; }

/* ---- header (always visible) -------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 0.75rem 1rem; }
@media (min-width: 768px) { .site-header { padding: 1rem 1.5rem; } }
.site-header__bar { position: relative; margin: 0 auto; display: flex; height: 3.5rem; max-width: 1344px;
  align-items: center; justify-content: space-between; gap: 1rem; padding: 0 0.625rem 0 1rem;
  background: rgb(var(--c-paper) / 0.78); border: 1px solid rgb(var(--c-ink) / 0.08);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); color: rgb(var(--c-ink)); }
@media (min-width: 768px) { .site-header__bar { height: 4rem; padding: 0 0.75rem 0 1.25rem; } }
.brand-logo { position: relative; display: block; height: 2rem; width: 101px; flex-shrink: 0; }

.nav-links { display: none; gap: 2rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a, .nav-ext { position: relative; display: inline-flex; align-items: center; gap: 0.375rem;
  font: 600 0.875rem/1 Inter, sans-serif; color: rgb(var(--c-ink) / 0.72); transition: color .2s ease; }
.nav-links a:hover, .nav-links a.is-active, .nav-ext:hover { color: rgb(var(--c-ink)); }
.nav-links a::after, .nav-ext::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s cubic-bezier(.22,1,.36,1); }
.nav-ext::after { right: 1.25rem; }
/* site.css loads after Tailwind, so its display values beat .hidden: restate
   the breakpoints for the two header links that only show on larger screens. */
@media (max-width: 767px) { header .nav-ext { display: none; } }
@media (max-width: 639px) { header .fbtn--sm { display: none; } }
.nav-links a:hover::after, .nav-links a.is-active::after, .nav-ext:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

.menu-btn { display: inline-flex; flex-direction: column; height: 2.5rem; width: 2.5rem; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .menu-btn { display: none; } }
.menu-btn span { display: block; height: 1.5px; width: 1.25rem; background: currentColor; transition: transform .4s cubic-bezier(.22,1,.36,1); }
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.menu-overlay { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem 1.5rem 2.5rem; background: rgb(var(--c-paper)); color: rgb(var(--c-ink));
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s cubic-bezier(.76,0,.24,1), visibility 0s .7s; }
.menu-overlay.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s cubic-bezier(.76,0,.24,1), visibility 0s; }
.menu-overlay a.menu-big { display: block; overflow: clip; padding-bottom: .1em; font-family: Outfit, sans-serif; font-weight: 500;
  font-size: clamp(2.5rem, 1.5rem + 6vw, 4.5rem); line-height: 1.1; letter-spacing: -0.04em; }
.menu-overlay a.menu-big span { display: inline-block; transform: translateY(110%); transition: transform .8s cubic-bezier(.22,1,.36,1); }
.menu-overlay.is-open a.menu-big span { transform: none; }
.menu-overlay li:nth-child(2) a.menu-big span { transition-delay: .06s; }
.menu-overlay li:nth-child(3) a.menu-big span { transition-delay: .12s; }
.menu-overlay li:nth-child(4) a.menu-big span { transition-delay: .18s; }
.menu-overlay li:nth-child(5) a.menu-big span { transition-delay: .24s; }

/* ---- buttons ---------------------------------------------------------------
   One height, one type size, two weights of emphasis. Solid fills with brand
   red from below on hover; line only darkens its border. */
.fbtn { position: relative; isolation: isolate; display: inline-flex; height: 3rem; align-items: center; justify-content: center;
  gap: 0.625rem; overflow: hidden; padding: 0 1.25rem; font: 600 0.875rem/1 Inter, sans-serif; white-space: nowrap;
  transition: color .4s cubic-bezier(.22,1,.36,1), border-color .4s, background-color .4s; }
.fbtn--sm { height: 2.5rem; padding: 0 1rem; gap: 0.5rem; }
.fbtn--solid { background: rgb(var(--c-ink)); color: rgb(var(--c-paper)); }
.fbtn--solid::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(var(--c-brand));
  transform: translateY(101%); transition: transform .5s cubic-bezier(.22,1,.36,1); }
.fbtn--solid:hover::before, .fbtn--solid:focus-visible::before { transform: none; }
.fbtn--line { border: 1px solid rgb(var(--c-ink) / 0.2); color: rgb(var(--c-ink)); background: rgb(var(--c-paper) / 0.6); }
.fbtn--line:hover { border-color: rgb(var(--c-ink)); background: rgb(var(--c-paper)); }

.arrow { position: relative; display: inline-block; height: 1rem; width: 1rem; overflow: hidden; flex-shrink: 0; }
.arrow svg { position: absolute; inset: 0; height: 1rem; width: 1rem; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.arrow svg + svg { transform: translate(-120%, 120%); }
a:hover > .arrow svg:first-child, button:hover > .arrow svg:first-child, .insight:hover .arrow svg:first-child { transform: translate(120%, -120%); }
a:hover > .arrow svg + svg, button:hover > .arrow svg + svg, .insight:hover .arrow svg + svg { transform: none; }
.arrow--down svg + svg { transform: translateY(-120%); }
a:hover > .arrow--down svg:first-child { transform: translateY(120%); }

.tlink { position: relative; display: inline-flex; width: fit-content; align-self: flex-start; align-items: center; gap: 0.5rem;
  font: 600 0.875rem/1.2 Inter, sans-serif; }
.tlink::after { content: ""; position: absolute; left: 0; right: 1.5rem; bottom: -4px; height: 1px; background: currentColor;
  transform-origin: 100% 50%; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.tlink:hover::after, .insight:hover .tlink::after { transform: scaleX(0); }

/* ---- page curtain ------------------------------------------------------ */
.curtain { position: fixed; inset: 0; z-index: 95; pointer-events: none; background: rgb(var(--c-brand)); transform: scaleY(0); transform-origin: 50% 100%; }

/* ---- colour-bends background (hero + CTA) --------------------------------
   A WebGL canvas painted by site.js; a soft radial fallback shows if WebGL is
   unavailable. Canvas opacity keeps the brand red subtle on the white page. */
.bends { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(60% 55% at 78% 30%, rgb(var(--c-brand) / 0.14), transparent 70%),
              radial-gradient(50% 45% at 18% 80%, rgb(var(--c-brand-subtle) / 0.30), transparent 70%); }
.bends.has-gl { background: none; }
.bends canvas { display: block; height: 100%; width: 100%; opacity: .7; }
/* Hero intro runs in CSS from first paint, so it never waits for scripts.
   Each title line rises out of its own clip; the rest fades up after it. */
.hero-line { display: block; overflow: clip; padding: 0 0.12em 0.14em 0; margin: 0 -0.12em -0.14em 0; }
.hero-line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-line > span { animation: hero-line 1.2s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--d, 0s); }
  .hero-rise { animation: hero-rise 1.1s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--d, 0s); }
  .hero .bends { animation: hero-fade 1.8s ease-out both; }
}
@keyframes hero-line { from { transform: translateY(108%); } }
@keyframes hero-rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes hero-fade { from { opacity: 0; } }
.hero { position: relative; min-height: 100svh; overflow: hidden; background: rgb(var(--c-paper)); color: rgb(var(--c-ink)); }
.hero__fade { position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
  background: linear-gradient(to top, rgb(var(--c-paper)), rgb(var(--c-paper) / 0.6) 45%, rgb(var(--c-paper) / 0)); }
.cta__fade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgb(var(--c-paper) / 0.85), rgb(var(--c-paper) / 0.2) 60%, rgb(var(--c-paper) / 0)); }
.proof-cell { border-top: 1px solid rgb(var(--c-ink) / 0.14); }

/* ---- logo marquee -------------------------------------------------------- */
.mq { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.mq__track { display: flex; width: max-content; will-change: transform; }
.mq__copy { display: flex; flex-shrink: 0; align-items: center; gap: 4.5rem; padding-right: 4.5rem; }
.mq__copy img { opacity: .62; }
html:not(.motion) .mq__track { animation: mq 70s linear infinite; }
@keyframes mq { to { transform: translateX(-33.3333%); } }
@media (prefers-reduced-motion: reduce) { html:not(.motion) .mq__track { animation: none; } }

/* ---- statement ----------------------------------------------------------- */
.statement .word { display: inline-block; }

/* ---- why: full-height light-red panel, statement lights up while pinned -- */
.why { position: relative; background: rgb(var(--c-paper)); }
.why__panel { position: relative; overflow: hidden; background: rgb(var(--c-brand-subtle-bg)); color: rgb(var(--c-ink)); }
.why__inner { position: relative; margin: 0 auto; display: flex; min-height: 100svh; max-width: 1180px; flex-direction: column;
  justify-content: center; align-items: flex-start; gap: 2.5rem; padding: 7rem 1.5rem; }
@media (min-width: 768px) { .why__inner { padding: 7rem 2.5rem; } }
@media (min-width: 1024px) { .why__inner { padding: 7rem 3rem; } }
.why__text { max-width: 24ch; }
.why__text .word { display: inline-block; }
.why__accent .word.is-shine { background-image: linear-gradient(110deg, rgb(var(--c-brand)) 35%, rgb(var(--c-brand-subtle)) 50%, rgb(var(--c-brand)) 65%);
  background-size: 300% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: why-shine 1.4s cubic-bezier(.22,1,.36,1) forwards; }
@keyframes why-shine { to { background-position: 0% 0; } }

/* ---- the arc: three cards ---------------------------------------------------- */
.arc-card { border: 1px solid rgb(var(--c-ink) / 0.1); background: rgb(var(--c-paper)); }
.arc-card--fwd { position: relative; z-index: 1; border: 2px solid rgb(var(--c-brand)); background: rgb(var(--c-brand-subtle-bg) / 0.55);
  box-shadow: 0 30px 70px -28px rgb(var(--c-brand) / 0.5); }
@media (min-width: 1024px) { .arc-card--fwd { margin: -1.5rem 0; justify-content: center; } }

/* ---- services: Miquido-style rows ----------------------------------------- */
.svc-list { border-top: 1px solid rgb(var(--c-ink) / 0.12); }
.svc-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 2rem 0; border-bottom: 1px solid rgb(var(--c-ink) / 0.12); }
@media (min-width: 1024px) { .svc-row { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 3rem; padding: 2.5rem 0; align-items: start; } }
.svc-tag { border: 1px solid rgb(var(--c-ink) / 0.18); border-radius: 9999px; padding: 0.45rem 0.85rem;
  font: 600 0.75rem/1 Inter, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: rgb(var(--c-ink)); }

/* ---- mobile rails: below md, long lists turn into swipeable card carousels.
   The rail bleeds to the screen edges and snaps each card to the gutter; the
   thin line under it shows how far through the set you are (site.js). ------ */
.rail-progress { display: none; }
@media (max-width: 767px) {
  .rail { display: flex; flex-direction: row; align-items: stretch; gap: 0.75rem; width: calc(100% + 3rem); margin: 0 -1.5rem;
    padding: 0 1.5rem 0.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1.5rem;
    overscroll-behavior-x: contain; scrollbar-width: none; border-top: 0; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > li { flex: 0 0 min(80vw, 340px); scroll-snap-align: start; }
  .rail-progress { display: block; position: relative; height: 2px; margin-top: 1.5rem; background: rgb(var(--c-ink) / 0.1); }
  .rail-progress i { position: absolute; inset: 0; background: rgb(var(--c-brand)); transform-origin: 0 50%; transform: scaleX(0.2); transition: transform .25s ease-out; }
  /* services: rows framed as cards */
  .svc-list.rail .svc-row { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.75rem 1.5rem; border: 1px solid rgb(var(--c-ink) / 0.1); background: rgb(var(--c-paper)); }
  .svc-list.rail .svc-row > div:last-child { flex: 1; }
  .svc-list.rail .svc-row > div:last-child > div:last-child { margin-top: auto; padding-top: 0.75rem; } /* tags sit on the card's bottom edge */
  /* cost: the range leads, then the kind of work, then the bar */
  .cost-list.rail > li { flex-basis: min(72vw, 290px); }
  .cost-list.rail .cost-row { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border: 1px solid rgb(var(--c-ink) / 0.1); background: rgb(var(--c-paper)); }
  .cost-list.rail .cost-value { order: -1; font-size: clamp(1.875rem, 1.479rem + 1.69vw, 3rem); line-height: 1.08; letter-spacing: -0.028em; } /* = h3 */
  .cost-list.rail .cost-bar { margin-top: auto; }
}

/* ---- ten ways: sideways on desktop (motion), swipeable carousel below lg -- */
.hs { border-top: 1px solid rgb(var(--c-ink) / 0.08); }
.hs__pin { position: relative; display: flex; flex-direction: column; padding: 5rem 0 4rem; }
@media (min-width: 768px) { .hs__pin { padding: 7rem 0 5rem; } }
.hs__inner { display: flex; flex-direction: column; gap: 2.5rem; margin: 0 auto; width: 100%; max-width: 1180px; }
.hs__intro { padding: 0 1.5rem; }
@media (min-width: 768px) { .hs__intro { padding: 0 2.5rem; } }
@media (min-width: 1024px) { .hs__intro { padding: 0 3rem; } }
.hs__track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1.5rem; padding: 0 1.5rem 0.5rem; }
@media (min-width: 768px) { .hs__track { scroll-padding: 0 2.5rem; padding: 0 2.5rem 0.5rem; } }
.hs__card { display: flex; flex: 0 0 min(80vw, 340px); scroll-snap-align: start; flex-direction: column; gap: 2.5rem;
  border: 1px solid rgb(var(--c-ink) / 0.1); background: rgb(var(--c-paper)); padding: 1.75rem; }
.hs__progress { display: none; height: 1px; background: rgb(var(--c-ink) / 0.12); }
.hs__progress i { display: block; height: 100%; background: rgb(var(--c-brand)); transform-origin: 0 50%; transform: scaleX(0); }
@media (min-width: 1024px) {
  html:not(.motion) .hs__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); overflow: visible; padding: 0 3rem; }
  html:not(.motion) .hs__card { flex: none; }
  html.motion .hs__pin { height: 100vh; justify-content: center; padding: 0 var(--grid-left); }
  html.motion .hs__inner { flex-direction: row; align-items: center; gap: 0; max-width: none; margin: 0; }
  html.motion .hs__intro { width: min(36vw, 500px); padding: 0 4rem 0 0; flex-shrink: 0; }
  html.motion .hs__track { display: flex; width: max-content; overflow: visible; padding: 0; gap: 1.25rem; scroll-snap-type: none; }
  html.motion .hs__card { flex: 0 0 340px; min-height: 340px; }
  html.motion .hs__progress { display: block; position: absolute; left: var(--grid-left); right: var(--grid-left); bottom: 3rem; }
}


/* ---- method ---------------------------------------------------------------- */
.method { background: rgb(var(--c-paper)); color: rgb(var(--c-ink)); border-top: 1px solid rgb(var(--c-ink) / 0.08); }
.method__pin { position: relative; display: flex; flex-direction: column; padding: 5rem 1.5rem; }
@media (min-width: 768px) { .method__pin { padding: 7rem 2.5rem; } }
@media (min-width: 1024px) { .method__pin { padding: 9rem 3rem; } }
.method__inner { display: flex; flex-direction: column; gap: 3rem; margin: 0 auto; width: 100%; max-width: 1180px; }
.method__track { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .method__track { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (min-width: 1280px) { html:not(.motion) .method__track { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  padding: 2.5rem 0; border-top: 1px solid rgb(var(--c-ink) / 0.12); }
.step__num { font-family: Outfit, sans-serif; font-weight: 500; line-height: 1; letter-spacing: -0.06em;
  font-size: clamp(6rem, 4rem + 9vw, 13rem); color: rgb(var(--c-ink) / 0.08); transition: color .7s ease; }
.step.is-active .step__num, html:not(.motion) .step__num { color: rgb(var(--c-brand)); }
.method__progress { display: none; height: 1px; background: rgb(var(--c-ink) / 0.12); }
.method__progress i { display: block; height: 100%; background: rgb(var(--c-brand)); transform-origin: 0 50%; transform: scaleX(0); }
@media (min-width: 1024px) {
  html.motion .method__pin { height: 100vh; justify-content: center; padding: 0 var(--grid-left); }
  html.motion .method__inner { flex-direction: row; align-items: center; gap: 0; max-width: none; margin: 0; }
  html.motion .method__intro { width: min(36vw, 500px); padding-right: 4rem; }
  html.motion .method__track { display: flex; width: max-content; }
  html.motion .method__track .step { width: min(40vw, 540px); height: 62vh; max-height: 560px; flex-shrink: 0; padding: 0 2.5rem;
    border-top: 0; border-left: 1px solid rgb(var(--c-ink) / 0.12); }
  html.motion .method__progress { display: block; position: absolute; left: var(--grid-left); right: var(--grid-left); bottom: 3rem; }
}

/* ---- timeline: site.js sizes the rail to run from the first dot to the last */
.tl { position: relative; }
.tl__item { position: relative; padding-left: 2rem; }
@media (min-width: 768px) { .tl__item { padding-left: 3rem; } }
.tl__dot { position: absolute; left: 0; top: 0.95rem; z-index: 1; height: 11px; width: 11px; margin-left: -5px; border-radius: 9999px;
  background: rgb(var(--c-paper)); border: 1.5px solid rgb(var(--c-ink) / 0.3); transition: background .4s, border-color .4s; }
@media (min-width: 1280px) { .tl__dot { top: 1.15rem; } }
.tl__item.is-on .tl__dot, html:not(.motion) .tl__dot { background: rgb(var(--c-brand)); border-color: rgb(var(--c-brand)); }
.tl__rail { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: rgb(var(--c-ink) / 0.12); }
.tl__rail i { position: absolute; inset: 0; background: rgb(var(--c-brand)); transform-origin: 50% 0; transform: scaleY(0); }
html:not(.motion) .tl__rail i { transform: scaleY(1); }

/* ---- tabs with a sliding red underline ------------------------------------ */
.tabs { position: relative; display: flex; width: max-content; min-width: 100%; gap: 2rem; border-bottom: 1px solid rgb(var(--c-ink) / 0.1); }
@media (min-width: 768px) { .tabs { gap: 2.5rem; } }
.tab-btn { position: relative; flex-shrink: 0; padding: 0.875rem 0; font: 500 clamp(1.125rem, 1.081rem + 0.188vw, 1.25rem)/1.2 Outfit, sans-serif; letter-spacing: -0.005em; /* = lead */
  color: rgb(var(--c-muted)); transition: color .3s; }
.tab-btn:hover, .tab-btn[aria-selected="true"] { color: rgb(var(--c-ink)); }
.tabs-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: rgb(var(--c-brand));
  transition: transform .55s cubic-bezier(.22,1,.36,1), width .55s cubic-bezier(.22,1,.36,1); }

/* ---- case stack ------------------------------------------------------------- */
.case { position: relative; background: rgb(var(--c-paper)); border: 1px solid rgb(var(--c-ink) / 0.12); transform-origin: 50% 0; }
.case__media { position: relative; overflow: hidden; }
.case__media img.case__photo { position: absolute; inset: -8% 0; height: 116%; width: 100%; object-fit: cover; }

/* ---- range bars -------------------------------------------------------------- */
.cost-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
.cost-row { padding: 1.25rem 0; border-bottom: 1px solid rgb(var(--c-ink) / 0.1); }
.cost-row:first-child { border-top: 1px solid rgb(var(--c-ink) / 0.1); }
@media (min-width: 1024px) {
  .cost-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 7rem; gap: 3rem; align-items: center; }
}
.cost-bar { position: relative; height: 1.25rem; margin-top: 0.5rem; background: rgb(var(--c-ink) / 0.07); }
@media (min-width: 1024px) { .cost-bar { margin-top: 0; } }
.cost-bar i { position: absolute; top: 0; bottom: 0; left: 0; transform-origin: 0 50%; }
.cost-bar__low { background: rgb(var(--c-brand)); }
.cost-bar__range { background: rgb(var(--c-brand-subtle)); }

/* ---- insights (the whole card is the link) ----------------------------------- */
.insight__link::after { content: ""; position: absolute; inset: 0; }
.insight__img { overflow: hidden; }
.insight__img img { transition: transform 1.1s cubic-bezier(.22,1,.36,1); }
.insight:hover .insight__img img { transform: scale(1.05); }
.insight h3 { transition: color .3s; }
.insight:hover h3 { color: rgb(var(--c-brand)); }

/* footer wordmark: light grey, 85% visible above the page edge */
.footer-mark-wrap { margin-top: 2.5rem; width: 100%; aspect-ratio: 6.1 / 1; overflow: hidden; }
.footer-mark { display: block; width: 100%; height: auto; opacity: .07; }

/* back to top */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; height: 3rem; width: 3rem; align-items: center; justify-content: center;
  background: rgb(var(--c-paper) / 0.85); border: 1px solid rgb(var(--c-ink) / 0.12); color: rgb(var(--c-ink));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .4s, transform .5s cubic-bezier(.22,1,.36,1), visibility 0s .4s, background-color .3s, color .3s, border-color .3s; }
@media (min-width: 768px) { .to-top { right: 1.5rem; bottom: 1.5rem; } }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none;
  transition: opacity .4s, transform .5s cubic-bezier(.22,1,.36,1), visibility 0s, background-color .3s, color .3s, border-color .3s; }
.to-top:hover { background: rgb(var(--c-brand)); border-color: rgb(var(--c-brand)); color: rgb(var(--c-paper)); }
.to-top svg { transition: transform .4s cubic-bezier(.22,1,.36,1); }
.to-top:hover svg { transform: translateY(-2px); }

/* gradient art (contact): soften the clipped box edges */
.art--cta, .art--hero {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 70%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
