/* ============================================================
   BURVIC — elevated homepage layer. Loaded after burvic.css on
   index.html only. Same tokens, same faces; it adds the drawn hero,
   the sun full stop, a service bento with a lead cell, the
   scroll-drawn process line and the proof section.
   ============================================================ */
:root {
  --hedge: #3E7A48;
  --hedge-deep: #2C5A34;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- The sun full stop: one device, everywhere ---------- */
.dot { color: var(--sun); }
.section--sun .dot { color: var(--on-sun); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 60px) clamp(56px, 8vw, 104px); }
@media (min-width: 901px) { .hero__grid { grid-template-columns: 6.2fr 5.8fr; } }
.hero h1 { font-size: clamp(2.9rem, 6.2vw, 5.4rem); letter-spacing: -0.035em; line-height: 0.98; }
.hero__copy .lede { max-width: 34ch; font-size: 1.2rem; line-height: 1.55; }
/* The headline sets in place. The marker is the only thing that draws. */
.hero__copy h1, .hero__copy .lede, .hero__copy .hero__ctas, .hero__art { animation: none; }
.hero__note {
  margin-top: 18px; font-size: 0.93rem; color: var(--ink-soft); font-weight: 600;
  display: flex; gap: 10px; align-items: center;
}
.hero__note::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex: none; }
.hero .mark-u svg { bottom: -0.14em; }

/* ---- The drawn site: a browser frame the marker fills in ---- */
.frame { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(15, 23, 51, 0.18)); }
:root[data-theme="dark"] .frame { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6)); }
.frame .f-shell {
  fill: var(--surface); stroke: var(--ink); stroke-width: 2.5;
  stroke-dasharray: 2000; stroke-dashoffset: 2000;
  animation: ev-draw 1s 0.55s var(--ease-out) forwards;
}
.frame .f-dot { fill: var(--line-control); }
.frame .b-h1, .frame .b-h2 { fill: var(--mist-deep); animation: ev-toInk 0.4s 1.55s forwards; }
.frame .b-p { fill: var(--mist-deep); animation: ev-toSoft 0.4s 1.75s forwards; }
.frame .b-logo, .frame .b-nav { fill: var(--mist-deep); animation: ev-toSoft 0.4s 1.3s forwards; }
.frame .b-cta { fill: var(--mist-deep); animation: ev-toCobalt 0.4s 2.05s forwards; }
.frame .b-cta-t { fill: var(--sun); opacity: 0; animation: ev-fadeIn 0.3s 2.3s forwards; }
.frame .b-img { fill: var(--mist-deep); animation: ev-toHedge 0.5s 2.25s forwards; }
.frame .b-leaf { fill: #FFFFFF; opacity: 0; animation: ev-fadeIn 0.4s 2.6s forwards; }
.frame .b-card { fill: var(--mist-deep); animation: ev-toMist 0.4s 2.5s forwards; }
.frame .b-card-l { fill: var(--line-control); opacity: 0; animation: ev-fadeIn 0.3s 2.75s forwards; }
@keyframes ev-draw     { to { stroke-dashoffset: 0; } }
@keyframes ev-toInk    { to { fill: var(--ink); } }
@keyframes ev-toSoft   { to { fill: var(--ink-soft); } }
@keyframes ev-toCobalt { to { fill: var(--cobalt-solid); } }
@keyframes ev-toHedge  { to { fill: var(--hedge); } }
@keyframes ev-toMist   { to { fill: var(--mist); } }
@keyframes ev-fadeIn   { to { opacity: 1; } }
/* Marker sweeps: drawn, then lifted. */
.frame .mk {
  fill: none; stroke: var(--sun); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.92; stroke-dasharray: 420; stroke-dashoffset: 420; mix-blend-mode: multiply;
}
:root[data-theme="dark"] .frame .mk { mix-blend-mode: normal; opacity: 0.85; }
.frame .mk-1 { animation: ev-sweep 0.9s 1.25s var(--ease-out) forwards; }
.frame .mk-2 { animation: ev-sweep 0.9s 1.8s var(--ease-out) forwards; }
.frame .mk-3 { animation: ev-sweep 0.9s 2.25s var(--ease-out) forwards; }
@keyframes ev-sweep { 0% { stroke-dashoffset: 420; } 55% { stroke-dashoffset: 0; opacity: 0.92; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* Evidence chips: facts, attached to the drawing. No floating loop. */
.ev-chip {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); color: var(--ink); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-chip); border: 1px solid var(--line);
  opacity: 0; transform: translateY(8px); animation: ev-chipIn 0.5s var(--ease-out) forwards;
}
.ev-chip strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; letter-spacing: -0.02em; }
.ev-chip small { font-weight: 600; color: var(--ink-soft); font-size: 0.86rem; }
.ev-chip--sun { background: var(--sun); color: var(--on-sun); border-color: transparent; }
.ev-chip--sun small { color: rgba(15, 23, 51, 0.72); }
.ev-chip--a { left: -28px; bottom: 34px; animation-delay: 2.9s; }
.ev-chip--b { right: -18px; top: 26px; animation-delay: 3.05s; }
.ev-chip--live {
  left: 50%; bottom: -22px; transform: translate(-50%, 8px);
  flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px;
  border-radius: var(--r-pill); font-weight: 700; font-size: 0.92rem;
  animation-name: ev-chipInC; animation-delay: 3.2s; text-decoration: none;
}
.ev-chip--live:hover { text-decoration: none; color: var(--cobalt); }
.ev-chip--live i { width: 9px; height: 9px; border-radius: 50%; background: var(--hedge); box-shadow: 0 0 0 4px rgba(62, 122, 72, 0.18); }
@keyframes ev-chipIn  { to { opacity: 1; transform: translateY(0); } }
@keyframes ev-chipInC { to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 900px) {
  .hero__copy .lede { max-width: 60ch; }
  .ev-chip--a { left: 8px; bottom: 30px; }
  .ev-chip--b { right: 8px; top: 10px; }
}

/* ---------- Services: a bento with a lead ---------- */
.ev-lead { grid-column: span 4; grid-row: span 2; }
.ev-side { grid-column: span 2; }
.ev-band { grid-column: span 6; flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
.ev-band > div { flex: 1 1 340px; display: flex; flex-direction: column; gap: 10px; }
.ev-band .cell-link { margin-top: 0; }
.bento__cell--paper { background: var(--surface); border-color: var(--line-control); }
.bento__cell--paper:hover { border-color: var(--cobalt); }
/* The lead cell carries a small drawing in the same language as the hero. */
.mini {
  margin-top: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  padding: 14px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; aspect-ratio: 16 / 7;
}
.mini i { display: block; border-radius: 6px; background: var(--mist-deep); }
.mini .m-1 { height: 14px; width: 62%; background: var(--ink); }
.mini .m-2 { height: 8px; width: 88%; margin-top: 8px; }
.mini .m-3 { height: 8px; width: 74%; margin-top: 6px; }
.mini .m-4 { height: 26px; width: 44%; margin-top: 12px; border-radius: 999px; background: var(--cobalt-solid); }
.mini .m-img { grid-row: 1 / -1; border-radius: 8px; background: linear-gradient(160deg, var(--hedge), var(--hedge-deep)); }
@media (max-width: 900px) {
  .ev-lead, .ev-side, .ev-band { grid-column: auto; grid-row: auto; }
  .ev-band { flex-direction: column; align-items: flex-start; }
}

/* ---------- Process: a line the scroll draws ---------- */
.steps-wrap { position: relative; margin-top: clamp(34px, 5vw, 56px); }
.steps-wrap .steps { margin-top: 0; }
.step:not(:last-child)::after { display: none; }
.step__num { font-size: 3.2rem; letter-spacing: -0.03em; }
.steps__line { position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.steps__line rect { fill: rgba(255, 255, 255, 0.22); }
.steps__line .ink { fill: none; stroke: var(--sun); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
@supports (animation-timeline: view()) {
  .steps__line .ink { animation: ev-lineDraw linear both; animation-timeline: view(); animation-range: entry 10% cover 55%; }
}
.steps-wrap.in-view .steps__line .ink { transition: stroke-dashoffset 1.4s var(--ease-out); stroke-dashoffset: 0; }
@keyframes ev-lineDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .steps__line { display: none; } }

/* ---------- Proof: the work and the words, one section ---------- */
.ev-proof { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.ev-proof blockquote {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance;
  margin-top: 14px;
}
.ev-proof figcaption { margin-top: 18px; color: var(--ink-soft); font-weight: 600; }
.ev-proof figcaption b { display: block; color: var(--ink); }
.ev-proof .stars { display: inline-flex; gap: 2px; color: var(--sun-deep); }
.ev-proof .stars svg { width: 16px; height: 16px; }
.ev-case {
  display: block; border-radius: var(--r-card); overflow: hidden;
  background: var(--ink-surface); color: #fff; text-decoration: none;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s;
}
.ev-case:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.ev-case img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.ev-case__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.ev-case__meta { font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); font-weight: 600; }
.ev-case h3 { color: #fff; font-size: 1.2rem; line-height: 1.25; }
.ev-case__go { color: var(--sun); font-weight: 700; font-size: 0.95rem; margin-top: 4px; }
@media (max-width: 900px) { .ev-proof { grid-template-columns: 1fr; } }

/* ---------- Shiny headline (ported from React Bits <ShinyText />) ----------
   Same mechanics as the component: a gradient clipped to the glyphs, its
   position swept across the text, then held for the delay. Tuned to the brand:
   ink text, a soft sun glint with a pale core, speed 2.6s, delay 3s, direction
   left-to-right, paused on hover, off under reduced motion. The full stop
   keeps its own colour. */
.hero h1 {
  color: var(--ink);
  background-image: linear-gradient(120deg,
    var(--ink) 0%, var(--ink) 40%,
    var(--sun) 47%, #FFF1A8 50%, var(--sun) 53%,
    var(--ink) 60%, var(--ink) 100%);
  background-size: 220% auto;
  background-position: 150% center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ev-shine 3.8s linear 0.25s infinite;
}
.hero h1 .dot { -webkit-text-fill-color: var(--sun); }
.hero h1:hover { animation-play-state: paused; }
@keyframes ev-shine {
  0%   { background-position: 150% center; }
  55%  { background-position: -50% center; }
  100% { background-position: -50% center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; background-image: none; -webkit-text-fill-color: var(--ink); }
}

/* ---------- Logo loop (ported from React Bits <LogoLoop />) ----------
   Same mechanics as the component: one sequence of logos cloned to fill the
   track, moved at ~120px/s, edge fades in the page colour, pause on hover,
   scale on hover, stopped under reduced motion. elevate.js makes the clones
   and adds the pause control; without JS the strip is a static row. */
.trust__inner--loop { flex-wrap: nowrap; justify-content: flex-start; gap: clamp(18px, 3vw, 36px); }
.trust__inner--loop .trust__label { flex: none; }
.logoloop { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; --ll-gap: 44px; --ll-h: 36px; }
.logoloop__track { display: flex; width: max-content; user-select: none; }
.logoloop--ready .logoloop__track { animation: ll-scroll 5.1s linear infinite; will-change: transform; }
.logoloop__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.logoloop__item { flex: 0 0 auto; margin-right: var(--ll-gap); line-height: 1; padding-block: 6px; }
.trust .logoloop__item img {
  height: var(--ll-h); width: auto; display: block; pointer-events: none; -webkit-user-drag: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s;
}
.logoloop__item:hover img { transform: scale(1.2); filter: none; }
.logoloop:hover .logoloop__track, .logoloop.is-paused .logoloop__track { animation-play-state: paused; }
.logoloop::before, .logoloop::after { content: ''; position: absolute; top: 0; bottom: 0; width: clamp(24px, 8%, 120px); pointer-events: none; z-index: 1; }
.logoloop::before { left: 0; background: linear-gradient(to right, var(--paper), transparent); }
.logoloop::after { right: 0; background: linear-gradient(to left, var(--paper), transparent); }
@keyframes ll-scroll { to { transform: translate3d(-25%, 0, 0); } }
@media (max-width: 560px) {
  .trust__inner--loop { flex-wrap: wrap; justify-content: center; }
  .logoloop { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .logoloop--ready .logoloop__track { animation: none; }
  .trust .logoloop__item img { transition: none; }
}

/* ---------- Click sparks (ported from React Bits <ClickSpark />) ----------
   A full-viewport canvas that never takes pointer events; elevate.js draws
   eight short lines bursting from every click. Sun in dark mode, cobalt in
   light. Skipped under reduced motion. */
.ev-sparks { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }

/* ---------- Depth carousel (ported from React Bits <DepthCarousel />) ---------- */
.dc-wrap { position: relative; height: clamp(380px, 54vw, 540px); margin-top: clamp(24px, 4vw, 40px); overflow-x: clip; }
.depth-carousel {
  position: relative; width: 100%; height: 100%; min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  perspective: var(--dc-perspective, 1400px); perspective-origin: 50% 50%;
  touch-action: pan-y; outline: none; user-select: none; -webkit-user-select: none; cursor: grab;
}
.depth-carousel:active { cursor: grabbing; }
.depth-carousel:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; border-radius: 12px; }
.depth-carousel__stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.depth-carousel__card {
  position: absolute; top: 50%; left: 50%; transform-origin: center center; overflow: hidden;
  background: #0b0d12; border-radius: 18px; width: 300px; height: 380px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.65), 0 8px 20px -10px rgba(0, 0, 0, 0.5);
  will-change: transform, opacity, filter; cursor: pointer; transform: translate(-50%, -50%);
}
.depth-carousel__img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; -webkit-user-drag: none; }
.depth-carousel__tint { position: absolute; inset: 0; opacity: 0; pointer-events: none; mix-blend-mode: multiply; background: #05060a; }
.depth-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3000;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px;
  background: rgba(18, 20, 26, 0.55); backdrop-filter: blur(8px); color: #fff; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.depth-carousel__arrow:hover { background: rgba(28, 31, 40, 0.85); border-color: rgba(255, 255, 255, 0.4); }
.depth-carousel__arrow:active { transform: translateY(-50%) scale(0.94); }
.depth-carousel__arrow--prev { left: 16px; }
.depth-carousel__arrow--next { right: 16px; }
.depth-carousel__dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3000;
  display: flex; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: rgba(14, 16, 22, 0.4); backdrop-filter: blur(6px);
}
.depth-carousel__dot { width: 7px; height: 7px; padding: 0; border: none; border-radius: 999px; background: rgba(255, 255, 255, 0.32); cursor: pointer; transition: width 0.25s ease, background 0.25s ease; }
.depth-carousel__dot.is-active { width: 20px; background: var(--sun); }
@media (prefers-reduced-motion: reduce) {
  .depth-carousel__card { will-change: auto; }
  .depth-carousel__arrow, .depth-carousel__dot { transition: none; }
}

/* ---------- Split headline (ported from React Bits <SplitText />) ----------
   elevate.js wraps each word of the inner-page h1 in .st-w with an index. */
.st-w { display: inline-block; }
.st.is-ready .st-w {
  opacity: 0; transform: translateY(0.55em); filter: blur(6px);
  animation: st-in 0.75s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes st-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Spotlight cards (ported from React Bits <SpotlightCard />) ---------- */
.spot { position: relative; }
.spot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  opacity: 0; transition: opacity 0.35s ease;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), var(--spot-c, rgba(36, 71, 245, 0.16)), transparent 65%);
}
.spot:hover::after { opacity: 1; }
.work-card.spot { --spot-c: rgba(255, 201, 22, 0.22); }
.bento__cell--ink.spot, .section--cobalt .spot { --spot-c: rgba(255, 255, 255, 0.14); }
:root[data-theme="dark"] .spot { --spot-c: rgba(124, 151, 255, 0.2); }
/* Tilt on the work cards (React Bits <TiltedCard />). */
.work-card.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.18s ease, box-shadow 0.22s; }
.work-card.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }

/* ---------- Count-up numbers (React Bits <CountUp />) ---------- */
.cu { font-variant-numeric: tabular-nums; }

/* ---------- Magnetic buttons (React Bits <Magnet />) ---------- */
.mag { transition: translate 0.28s var(--ease-out), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s; }

/* ---------- Reading progress + back to top ---------- */
.ev-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 200; pointer-events: none;
  background: var(--sun); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
@supports (animation-timeline: scroll()) {
  .ev-progress { animation: ev-prog linear both; animation-timeline: scroll(root); }
}
@keyframes ev-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ev-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 110; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper); border: 1px solid var(--line); display: grid; place-items: center;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity 0.25s ease, translate 0.25s var(--ease-out), background 0.2s;
}
.ev-top.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.ev-top:hover { background: var(--cobalt-solid); color: #fff; }
.ev-top:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ---------- Services jump nav with scroll-spy ---------- */
.jumpnav { position: sticky; top: var(--head-h, 68px); z-index: 80; background: var(--paper); border-bottom: 1px solid var(--line); }
.jumpnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jumpnav .wrap::-webkit-scrollbar { display: none; }
.jumpnav a {
  flex: none; padding: 8px 14px; border-radius: var(--r-pill); font-weight: 700; font-size: 0.92rem;
  color: var(--ink-soft); text-decoration: none; transition: background 0.18s, color 0.18s;
}
.jumpnav a:hover { color: var(--ink); background: var(--mist); text-decoration: none; }
.jumpnav a.is-active { background: var(--sun); color: var(--on-sun); }
#design, #development, #ecommerce, #seo, #ai, #care { scroll-margin-top: calc(var(--head-h, 68px) + 64px); }

@media (prefers-reduced-motion: reduce) {
  .st.is-ready .st-w { animation: none; opacity: 1; transform: none; filter: none; }
  .work-card.tilt, .work-card.tilt:hover { transform: none; }
  .ev-progress { animation: none; }
}

/* ---------- Who we build for (homepage) ---------- */
.who-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; margin-top: clamp(24px, 4vw, 36px); }
.who-card { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); display: flex; flex-direction: column; gap: 8px; transition: border-color 0.2s, transform 0.22s var(--ease-out); }
.who-card:hover { border-color: var(--cobalt); transform: translateY(-2px); }
.who-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.who-card h3 i { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); flex: none; }
.who-card p { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.5; }
.review-strip { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-card); background: var(--ink); color: var(--paper); }
.review-strip h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; max-width: 30ch; }
.review-strip h3 .dot { color: var(--sun); }
.review-strip p { margin-top: 6px; opacity: 0.8; max-width: 52ch; }
.review-strip .btn--sun { flex: none; }

/* ---------- Package comparison (pricing) ---------- */
.cmp { margin-top: clamp(36px, 5vw, 56px); }
.cmp__scroll { overflow-x: auto; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.cmp table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.97rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-family: var(--font-display); font-size: 1.12rem; letter-spacing: -0.01em; border-bottom: 2px solid var(--ink); }
.cmp thead th small { display: block; font-family: var(--font-body, inherit); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; margin-top: 2px; }
.cmp th[scope="row"] { font-weight: 600; color: var(--ink-soft); width: 24%; }
.cmp .hot { background: var(--mist); }
.cmp .yes { color: var(--hedge); font-weight: 700; }
.cmp .no { color: var(--ink-soft); opacity: 0.6; }
.cmp__quote { margin-top: clamp(28px, 4vw, 40px); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-card); background: var(--mist); }
.cmp__quote .stars { display: flex; gap: 2px; color: var(--sun); }
.cmp__quote .stars svg { width: 18px; height: 18px; }
.cmp__quote blockquote { font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.35; letter-spacing: -0.01em; }
.cmp__quote figcaption { margin-top: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.cmp__quote figcaption b { color: var(--ink); margin-right: 6px; }
@media (max-width: 560px) { .cmp__quote { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -0.035em; line-height: 1; }

/* Drawn illustrations replace stock photography in the feature rows. */
.illo { width: 100%; height: auto; border-radius: var(--r-card); display: block; }
.i-ink { fill: var(--ink); }
.i-soft { fill: var(--ink-soft); }
.i-mist { fill: var(--mist); }
.i-deep { fill: var(--mist-deep); }
.i-surface { fill: var(--surface); }
.i-cobalt { fill: var(--cobalt-solid); }
.i-cobalt-l { fill: var(--cobalt); }
.i-sun { fill: var(--sun); }
.i-hedge { fill: var(--hedge); }
.i-white { fill: #FFFFFF; }
.i-white-l { fill: rgba(255, 255, 255, 0.72); }
.i-line { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.i-ring { fill: none; stroke: var(--ink); stroke-width: 3; }
.i-tick { fill: none; stroke: #FFFFFF; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.i-tick-w { fill: none; stroke: #FFFFFF; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.i-sig { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.i-mk { fill: none; stroke: var(--sun); stroke-width: 14; stroke-linecap: round; opacity: 0.9; mix-blend-mode: multiply; }
:root[data-theme="dark"] .i-mk { mix-blend-mode: normal; opacity: 0.85; }
/* On the cobalt band the card must stay white in both themes; on mist sections it sits on --surface. */
.section--cobalt .illo .i-surface { fill: #FFFFFF; }
.section--cobalt .illo .i-mist { fill: #EEF2FF; }
.section--cobalt .illo .i-deep { fill: #DDE5FF; }
.section--cobalt .illo .i-ink { fill: #0F1733; }
.section--cobalt .illo .i-soft { fill: #46507A; }
.section--mist .illo .i-mist { fill: var(--surface); }

/* Pricing reads as a decision: the price outranks the tier name; the popular
   tier comes first on a phone. */
.price-card h2, .price-card h3 { font-size: 1.35rem; letter-spacing: -0.015em; }
.price-card__amount { font-size: 3.2rem; letter-spacing: -0.03em; }
@media (max-width: 560px) { .price-card--hot { order: -1; } }

/* ---------- Reduced motion: everything at rest ---------- */
@media (prefers-reduced-motion: reduce) {
  .frame .f-shell { animation: none; stroke-dashoffset: 0; }
  .frame .mk { animation: none; opacity: 0; }
  .frame .b-h1, .frame .b-h2 { animation: none; fill: var(--ink); }
  .frame .b-p, .frame .b-logo, .frame .b-nav { animation: none; fill: var(--ink-soft); }
  .frame .b-cta { animation: none; fill: var(--cobalt-solid); }
  .frame .b-img { animation: none; fill: var(--hedge); }
  .frame .b-card { animation: none; fill: var(--mist); }
  .frame .b-cta-t, .frame .b-leaf, .frame .b-card-l { animation: none; opacity: 1; }
  .ev-chip { animation: none; opacity: 1; transform: none; }
  .ev-chip--live { transform: translateX(-50%); }
  .steps__line .ink { animation: none; stroke-dashoffset: 0; transition: none; }
  .ev-case { transition: none; }
}

/* ============================================================
   Critique fixes, 2026-09-06 (impeccable critique 21/32)
   ============================================================ */
/* P0: one-column forms on phones (base .form-grid has no breakpoint). */
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
/* Header CTA keeps its button colours on the page it points to. */
.site-nav a.btn--primary[aria-current="page"] { background: var(--btn-primary-bg); color: var(--sun); }
/* Pricing ticks: hedge green fails on dark surfaces; use the sun there. */
:root[data-theme="dark"] .cmp .yes { color: var(--sun); }
/* Nothing below 14px. */
.ev-chip small, .price-grid .price-card__tag, .price-card .price-card__tag, .cmp thead th small, .field .hint, label .hint, .form-grid .hint { font-size: 0.9rem; }
/* Tap targets: 44px hit areas without moving the layout. */
.depth-carousel__dot { width: 28px; height: 28px; background: transparent; position: relative; }
.depth-carousel__dot::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 7px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.32);
  transition: width 0.25s ease, background 0.25s ease;
}
.depth-carousel__dot.is-active { width: 40px; }
.depth-carousel__dot.is-active::before { width: 20px; background: var(--sun); }
.cell-link { display: inline-block; padding-block: 9px; margin-bottom: -9px; }
.breadcrumb a, .site-foot a, a[href^="tel:"], a[href^="mailto:"] { display: inline-block; padding-block: 7px; margin-block: -7px; }
/* P2: a compact "Start a project" beside the burger on phones (inserted by elevate.js). */
.ev-mcta { display: none; }
@media (max-width: 900px) {
  .ev-mcta { display: inline-flex; margin-left: auto; padding: 13px 14px; min-height: 44px; font-size: 0.9rem; }
  .nav-burger { margin-left: 0; }
}
/* Comparison table: say that it scrolls sideways on small screens. */
.cmp__hint { display: none; margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); }
@media (max-width: 720px) { .cmp__hint { display: block; } }

/* Chat widget hidden until its "Talk to a human" hand-off works (critique P1).
   Re-enable by deleting this block; burvic.js still builds it. */
.chat-fab, .chat-panel { display: none !important; }

/* ---------- Critique #3 fixes ---------- */
/* P0: the drawer's primary button inherited the drawer link colour (navy on cobalt). */
.nav-drawer a.btn--primary { color: var(--sun); }
/* P1: on phones the evidence chips stop floating and stack under the drawing, so they never collide. */
@media (max-width: 560px) {
  .hero__art { display: flex; flex-direction: column; gap: 10px; }
  .hero__art .frame { order: -1; }
  .ev-chip, .ev-chip--a, .ev-chip--b, .ev-chip--live {
    position: static; transform: none; opacity: 1; animation: none;
    flex-direction: row; align-items: baseline; gap: 10px; padding: 12px 16px; width: 100%;
  }
  .ev-chip--live { justify-content: center; align-items: center; }
}
/* Care plans get a card on the pricing page, where the recurring number belongs. */
.care-strip { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: clamp(20px, 3vw, 28px); display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px 28px; align-items: start; }
.care-strip h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
.care-strip p { color: var(--ink-soft); margin-top: 6px; font-size: 0.97rem; }
.care-strip .care-plan strong { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; }
.care-strip .care-plan strong small { font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; }
.care-strip .care-plan span { display: block; font-weight: 700; margin-top: 2px; }
.care-strip .care-plan ul { margin-top: 8px; padding-left: 18px; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }
.care-strip .care-plan ul li { margin: 0; }
.care-strip a { font-weight: 700; }
@media (max-width: 760px) { .care-strip { grid-template-columns: 1fr; } }

/* ---------- Assessment B fixes: 44px hit areas, star contrast ---------- */
.breadcrumb a, .site-foot a, a[href^="tel:"], a[href^="mailto:"] { padding-block: 12px; margin-block: -12px; }
.jumpnav a { padding-block: 12px; }
.depth-carousel__dot { height: 44px; }
.depth-carousel__dots { bottom: 8px; padding: 0 12px; }
.work-card__body p a, .cmp__quote figcaption a, .panel p a, .form-consent a, .care-strip p a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.panel a.btn, .panel .btn--sm { min-height: 44px; }
/* The gold stars on the case-study quote card read at 1.9:1 on white; deepen them in light mode only. */
:root:not([data-theme="dark"]) .quote-card .stars { color: #946A00; }
.site-foot__grid ul li a, .site-foot p a, .site-foot__bottom a { display: inline-block; padding-block: 12px; margin-block: -12px; }

/* ============================================================
   Motion layer, 2026-09-06: React Bits ports for the whole site.
   AnimatedContent (scroll reveal), BlurText (section titles),
   Aurora (hero glow), GlareHover (buttons), a sliding nav
   underline, drifting dot grids, BlobCursor-lite, smooth anchors,
   cross-document view transitions. Everything off under
   prefers-reduced-motion.
   ============================================================ */
html { scroll-behavior: smooth; }

/* Scroll reveal: elevate.js tags elements .ev-r with --d (stagger). */
.ev-r { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); will-change: opacity, transform; }
.ev-r.is-in { opacity: 1; transform: none; }
.ev-r.is-in.ev-r--done { will-change: auto; }
.no-io .ev-r, .no-js .ev-r { opacity: 1; transform: none; }

/* BlurText: words of revealed section titles blur in one after another. */
.bt-w { display: inline-block; opacity: 0; filter: blur(8px); transform: translateY(0.35em); transition: opacity 0.6s var(--ease-out), filter 0.6s var(--ease-out), transform 0.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms + var(--d, 0) * 90ms); }
.is-in .bt-w { opacity: 1; filter: blur(0); transform: none; }

/* Aurora behind the hero: two soft blobs drifting slowly. */
.hero { position: relative; isolation: isolate; }
.hero > .wrap { position: relative; z-index: 1; }
.hero::before, .hero::after {
  content: ''; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(70px); opacity: 0.28; will-change: transform;
}
.hero::before { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; left: -12vw; top: -18vw; background: radial-gradient(circle at 40% 40%, var(--cobalt) 0%, transparent 62%); animation: ev-aurora-a 22s ease-in-out infinite alternate; }
.hero::after { width: 40vw; height: 40vw; max-width: 540px; max-height: 540px; right: -10vw; bottom: -16vw; background: radial-gradient(circle at 60% 60%, var(--sun) 0%, transparent 62%); animation: ev-aurora-b 26s ease-in-out infinite alternate; }
:root[data-theme="dark"] .hero::before, :root[data-theme="dark"] .hero::after { opacity: 0.22; }
@keyframes ev-aurora-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(14vw, 10vw) scale(1.18); } }
@keyframes ev-aurora-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-12vw, -9vw) scale(0.92); } }

/* GlareHover on the primary buttons: a light sweep on hover. */
.btn--primary, .btn--sun { position: relative; overflow: hidden; }
.btn--primary::after, .btn--sun::after {
  content: ''; position: absolute; top: -60%; bottom: -60%; left: -40%; width: 40%; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: translateX(-120%) skewX(-18deg); transition: transform 0.55s var(--ease-out); opacity: 0.9;
}
.btn--primary:hover::after, .btn--sun:hover::after, .btn--primary:focus-visible::after, .btn--sun:focus-visible::after { transform: translateX(420%) skewX(-18deg); }

/* Nav: an underline that slides in from the left. */
.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left center; transition: transform 0.3s var(--ease-out); }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav a:not(.btn)[aria-current="page"]::after { display: none; }

/* Drifting dot grid on the cobalt bands. */
.section--cobalt { position: relative; }
.section--cobalt > .wrap { position: relative; z-index: 1; }
.section--cobalt::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.2px, transparent 1.6px); background-size: 28px 28px;
  animation: ev-grid 40s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 78%);
}
@keyframes ev-grid { to { background-position: 28px 28px; } }

/* BlobCursor-lite: a soft glow that trails the pointer (fine pointers only). */
.ev-glow { position: fixed; left: 0; top: 0; width: 320px; height: 320px; margin: -160px 0 0 -160px; border-radius: 50%; pointer-events: none; z-index: 5; opacity: 0; transition: opacity 0.4s ease; background: radial-gradient(circle, rgba(36, 71, 245, 0.16) 0%, rgba(36, 71, 245, 0) 62%); mix-blend-mode: multiply; will-change: transform; }
:root[data-theme="dark"] .ev-glow { background: radial-gradient(circle, rgba(255, 201, 22, 0.13) 0%, rgba(255, 201, 22, 0) 62%); mix-blend-mode: screen; }
.ev-glow.is-on { opacity: 1; }

/* Cross-document page transitions (progressive; Chromium today). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ev-vt-out 0.16s ease-in both; }
::view-transition-new(root) { animation: ev-vt-in 0.26s ease-out both; }
@keyframes ev-vt-out { to { opacity: 0; } }
@keyframes ev-vt-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ev-r, .bt-w { opacity: 1; transform: none; filter: none; transition: none; }
  .hero::before, .hero::after, .section--cobalt::before { animation: none; }
  .btn--primary::after, .btn--sun::after { display: none; }
  .ev-glow { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- Motion layer, batch 2 ---------- */
/* RotatingText under the hero note: "Built for tradies / clinics / ..." */
.hero__rotate { margin-top: 10px; font-weight: 600; color: var(--ink-soft); font-size: 1.02rem; display: flex; align-items: baseline; gap: 0.35ch; line-height: 1.5; }
.rt { display: inline-grid; align-items: baseline; height: 1.5em; line-height: 1.5em; overflow: hidden; text-align: left; }
.rt__w { grid-area: 1 / 1; line-height: 1.5em; opacity: 0; transform: translateY(105%); color: var(--cobalt); font-weight: 800; white-space: nowrap; transition: transform 0.55s var(--ease-out), opacity 0.4s ease; }
.rt__w.is-on { opacity: 1; transform: none; }
.rt__w.is-out { opacity: 0; transform: translateY(-105%); }
.rt__w .dot { color: var(--sun); }

/* StarBorder: a light running around the "Most popular" pricing card. */
@property --ev-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.price-card--hot { isolation: isolate; }
.price-card--hot::before {
  content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--ev-a, 0deg), transparent 0 62%, var(--sun) 80%, #FFF1A8 86%, var(--sun) 92%, transparent 100%);
  animation: ev-star 5s linear infinite;
}
@keyframes ev-star { to { --ev-a: 360deg; } }

/* Parallax drift on the drawn illustrations as they pass through the viewport. */
@supports (animation-timeline: view()) {
  .illo { animation: ev-parallax linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes ev-parallax { from { transform: translateY(26px); } to { transform: translateY(-26px); } }
}

/* Small elastic touches. */
.faq summary::after { transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.icon-dot { transition: background 0.2s, color 0.2s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bento__cell:hover .icon-dot, .feature-row:hover .icon-dot { transform: translateY(-3px) rotate(-8deg) scale(1.06); }
.who-card h3 i { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.who-card:hover h3 i { transform: scale(1.6); }
.step:hover .step__num { transform: translateY(-4px); }
.step__num { display: inline-block; transition: transform 0.4s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .rt__w:first-child { opacity: 1; transform: none; }
  .price-card--hot::before { animation: none; }
  .illo { animation: none; }
  .faq summary::after, .icon-dot, .who-card h3 i, .step__num { transition: none; }
}

/* ---------- Process timeline (/process) ---------- */
.tl { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: clamp(28px, 4vw, 44px); }
.tl::before { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: var(--line); }
.tl::after { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: var(--sun); transform-origin: top; transform: scaleY(0); }
@supports (animation-timeline: view()) { .tl::after { animation: ev-tl linear both; animation-timeline: view(); animation-range: entry 25% exit 85%; } }
@keyframes ev-tl { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.tl__item { display: grid; grid-template-columns: 56px 1fr; gap: clamp(16px, 3vw, 32px); align-items: start; position: relative; }
.tl__marker { width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 3px solid var(--sun); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; box-shadow: 0 0 0 6px var(--paper); position: relative; z-index: 1; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.tl__item:hover .tl__marker { transform: scale(1.1) rotate(-6deg); }
.tl__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(22px, 3vw, 32px); }
.tl__card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.tl__what { margin-top: 8px; color: var(--ink-soft); font-size: 1.05rem; max-width: 62ch; }
.tl__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px 32px; margin-top: 20px; }
.tl__cols h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 8px; }
.tl__cols p { color: var(--ink-soft); }
.tl__cols .tick-list { margin: 0; }
@media (max-width: 680px) { .tl__cols { grid-template-columns: 1fr; } .tl__item { grid-template-columns: 44px 1fr; } .tl__marker { width: 44px; height: 44px; font-size: 0.95rem; } .tl::before, .tl::after { left: 21px; } }

/* Timeline bars: fill grows when revealed. */
.tbars { display: grid; gap: 18px; }
.tbar { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: center; }
.tbar__label strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.tbar__label span { color: var(--ink-soft); font-size: 0.92rem; }
.tbar__track { height: 44px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tbar__fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--cobalt-solid), var(--cobalt)); display: flex; align-items: center; justify-content: flex-end; padding-right: 16px; color: #fff; font-weight: 700; white-space: nowrap; transition: width 1.1s var(--ease-out); }
.ev-r.is-in .tbar__fill, .tbar.is-in .tbar__fill { width: calc(var(--w) * 1%); }
.no-io .tbar__fill { width: calc(var(--w) * 1%); }
@media (max-width: 560px) { .tbar { grid-template-columns: 1fr; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .tl::after { animation: none; transform: scaleY(1); } .tbar__fill { transition: none; width: calc(var(--w) * 1%); } .tl__marker { transition: none; } }

/* ---------- Industry pages ---------- */
.ind-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ind-links a { padding: 12px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-weight: 700; text-decoration: none; color: var(--ink); transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-out); }
.ind-links a:hover { border-color: var(--cobalt); background: var(--mist); transform: translateY(-2px); text-decoration: none; }
.who-grid a.who-card { text-decoration: none; color: inherit; }
.who-grid a.who-card:hover h3 { color: var(--cobalt); }
.who-card__go { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--cobalt); font-size: 0.95rem; }
/* Tick marks draw themselves in when their block reveals. */
.tick-list svg path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.ev-r.is-in .tick-list svg path, .no-io .tick-list svg path, .is-in .tick-list svg path { animation: ev-tick 0.5s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 80ms + 250ms); }
.tick-list li:nth-child(1) svg path { --i: 0; } .tick-list li:nth-child(2) svg path { --i: 1; } .tick-list li:nth-child(3) svg path { --i: 2; } .tick-list li:nth-child(4) svg path { --i: 3; } .tick-list li:nth-child(5) svg path { --i: 4; } .tick-list li:nth-child(6) svg path { --i: 5; } .tick-list li:nth-child(n+7) svg path { --i: 6; }
@keyframes ev-tick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .tick-list svg path { stroke-dashoffset: 0; animation: none; } .ind-links a { transition: none; } }

/* ---------- Second case card on the homepage ---------- */
.ev-more { margin-top: 18px; }
.ev-more .ev-case { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 22px; }
.ev-more .ev-case img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .ev-more .ev-case { grid-template-columns: 1fr; } }

/* ---------- Homepage: two matching case cards + compact review ---------- */
.ev-cases { display: grid; gap: 18px; }
.ev-cases .ev-case { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 22px; }
.ev-cases .ev-case img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.ev-quote { margin-top: 22px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px 22px; padding: 18px 22px; border-radius: var(--r-card); background: var(--mist); }
.ev-quote .stars { display: flex; gap: 2px; color: var(--sun); }
.ev-quote .stars svg { width: 18px; height: 18px; }
:root:not([data-theme="dark"]) .ev-quote .stars { color: #946A00; }
.ev-quote blockquote { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.4; letter-spacing: -0.01em; }
.ev-quote figcaption { font-size: 0.92rem; color: var(--ink-soft); white-space: nowrap; }
.ev-quote figcaption b { color: var(--ink); margin-right: 6px; }
@media (max-width: 760px) { .ev-cases .ev-case { grid-template-columns: 1fr; } .ev-quote { grid-template-columns: 1fr; } .ev-quote figcaption { white-space: normal; } }

/* ---------- Typographic polish ---------- */
h1, h2, h3, .lede { text-wrap: balance; }
p, li, figcaption, blockquote { text-wrap: pretty; }
.lede { text-wrap: pretty; }
/* Work page: a two-up portfolio grid with matching crops. */
@media (min-width: 900px) { .work-grid .work-card { grid-column: span 6; } }
.work-grid .work-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; }
.work-grid .work-card h2 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); }

/* ---------- Critique #4 fixes ---------- */
/* Retired: cursor glow, drifting dot grid, running border, magnet pull. The drawn system stays. */
.ev-glow { display: none !important; }
.section--cobalt::before { display: none; }
.price-card--hot::before { display: none; }
.mag { translate: 0 0 !important; }
/* Contrast: stars on mist in light mode; the review strip in dark mode. */
:root:not([data-theme="dark"]) .cmp__quote .stars { color: #946A00; }
:root[data-theme="dark"] .review-strip { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
:root[data-theme="dark"] .review-strip p { opacity: 0.85; }
/* Only real links get link affordances. */
.who-card:not(a):hover { border-color: var(--line); transform: none; }
.who-card:not(a)::after { display: none; }
.who-card:not(a):hover h3 i { transform: none; }
/* Hero button pairs: wrap cleanly on phones instead of a stray indent. */
.page-hero p:has(> .btn + .btn) { display: flex; flex-wrap: wrap; gap: 10px; }
.page-hero p:has(> .btn + .btn) .btn { margin-left: 0 !important; }
/* Case-study hero image: 16:9 so the story starts sooner. */
.page-hero + .section--tight .wrap > picture img, .page-hero + .section--tight .wrap > img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
/* Five cards without an orphan row. */
.who-grid--five { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.contact__call { margin-top: 14px; }
@media (max-width: 900px) { #contact-grid { display: flex; flex-direction: column; } #contact-grid .contact__aside { order: -1; } }

/* ---------- Assessment B fixes ---------- */
/* Ghost buttons on cobalt bands read in white, both themes. */
.section--cobalt .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.section--cobalt .btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
/* Breadcrumb links: 48px wide hit area; inline lede links: 44px tall. */
.breadcrumb a { padding-inline: 4px; margin-inline: -4px; }
.page-hero .lede a { display: inline-block; padding-block: 11px; margin-block: -11px; }

/* ---------- Guides: reading layout ---------- */
.article { max-width: 70ch; }
.article > .lede { margin-bottom: 26px; }
.article h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 34px; margin-bottom: 10px; }
.article p { margin-top: 12px; line-height: 1.65; }
.article ol { margin-top: 12px; padding-left: 22px; display: grid; gap: 10px; }
.article ol li { line-height: 1.6; }
.article ol li::marker { font-family: var(--font-display); font-weight: 800; color: var(--cobalt); }
.article .tick-list { margin-top: 12px; }
.article em { font-style: italic; }
.article a { font-weight: 700; }

/* ---------- Quote estimator (/pricing#estimate) ---------- */
.est { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; align-items: start; }
.est__group { border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 18px 14px; background: var(--surface); margin: 0; min-width: 0; }
.est__group legend { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; padding: 0 6px; }
.est__opt { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 10px; cursor: pointer; min-height: 44px; }
.est__opt:hover { background: var(--mist); }
.est__opt input { width: 20px; height: 20px; accent-color: var(--cobalt-solid); flex: none; margin: 0; }
.est__opt input:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.est__result { grid-column: 1 / -1; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px 22px; padding: clamp(18px, 3vw, 26px); border-radius: var(--r-card); background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .est__result { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.est__tag { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.est__pkg { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
.est__price { font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.est__price small { font-size: 0.8rem; font-weight: 600; opacity: 0.75; }
.est__why, .est__care { grid-column: 1 / -1; opacity: 0.85; margin: 0; }
.est__care:empty { display: none; }
.est__result .btn { grid-column: 1 / -1; justify-self: start; }
.est__result .btn--primary { background: var(--sun); color: var(--on-sun); }
.est__result.is-changed { animation: est-pop 0.45s var(--ease-out); }
@keyframes est-pop { from { transform: scale(0.985); } to { transform: none; } }
@media (max-width: 860px) { .est { grid-template-columns: 1fr; } .est__result { grid-template-columns: 1fr; } }

/* ---------- Featured-work showcase ---------- */
.showcase { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 6vw, 72px); }
.showcase__head { margin-bottom: clamp(18px, 3vw, 28px); }
.showcase__viewport { position: relative; }
.showcase__track { list-style: none; margin: 0; padding: 0; display: grid; overflow-x: clip; }
.showcase__slide { grid-area: 1 / 1; opacity: 0; transform: translateX(28px) scale(0.985); pointer-events: none; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.showcase__slide.is-on { opacity: 1; transform: none; pointer-events: auto; position: relative; z-index: 1; }
.showcase__card { display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; background: var(--ink-surface, #10173A); color: #fff; border-radius: var(--r-card); overflow: hidden; text-decoration: none; box-shadow: 0 30px 60px -30px rgba(15, 23, 51, 0.5); min-height: 380px; }
.showcase__card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease-out); }
.showcase__card:hover img { transform: scale(1.03); }
.showcase__body { padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.showcase__tag { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sun); }
.showcase__body h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.showcase__body p { color: rgba(255, 255, 255, 0.78); }
.showcase__go { margin-top: 6px; font-weight: 700; color: var(--sun); }
.showcase__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.showcase__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.showcase__btn:hover { border-color: var(--cobalt); background: var(--mist); }
.showcase__btn:active { transform: scale(0.94); }
.showcase__dots { display: flex; gap: 8px; }
.showcase__dot { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.showcase__dot::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; border-radius: 999px; background: var(--line-control); transition: width 0.25s, background 0.25s; }
.showcase__dot.is-on::before { width: 24px; background: var(--sun); }
@media (max-width: 800px) { .showcase__card { grid-template-columns: 1fr; min-height: 0; } .showcase__card img { aspect-ratio: 16 / 9; height: auto; } }

/* ---------- Clients band ---------- */
.clients { padding-block: 10px clamp(18px, 3vw, 28px); }
.clients__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.clients__group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.clients__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px 26px; flex-wrap: wrap; }
.clients__list a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; padding-block: 8px; opacity: 0.85; transition: opacity 0.2s; }
.clients__list a:hover { opacity: 1; text-decoration: none; }
.clients__list img { height: 34px; width: auto; border-radius: 6px; }
.clients__word { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; }

/* ---------- Numbers band ---------- */
.stat-row--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; text-align: left; }
.stat-row--4 strong { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); display: block; letter-spacing: -0.03em; line-height: 1; }
.stat-row--4 span { display: block; margin-top: 8px; font-size: 0.96rem; }
@media (max-width: 800px) { .stat-row--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stat-row--4 { grid-template-columns: 1fr; } }
.ev-ref { margin-top: 18px; color: var(--ink-soft); font-weight: 600; }
.hero__note a { margin-left: 6px; font-weight: 700; }

/* ---------- Case-study previous / next ---------- */
.casenav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.casenav__link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color 0.2s, transform 0.25s var(--ease-out); }
.casenav__link:hover { border-color: var(--cobalt); transform: translateY(-2px); text-decoration: none; }
.casenav__link--next { text-align: right; align-items: flex-end; }
.casenav__dir { font-size: 0.85rem; font-weight: 700; color: var(--cobalt); }
.casenav__link strong { font-family: var(--font-display); font-size: 1.1rem; }
.casenav__t { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 560px) { .casenav { grid-template-columns: 1fr; } .casenav__link--next { text-align: left; align-items: flex-start; } }
/* Services: proof links under each service. */
.svc-proof { margin-top: 18px; padding: 12px 16px; border-left: 3px solid var(--sun); background: var(--mist); border-radius: 0 10px 10px 0; font-weight: 600; color: var(--ink-soft); }
.section--cobalt .svc-proof, .section--mist .svc-proof { background: rgba(255, 255, 255, 0.1); color: inherit; }
.section--cobalt .svc-proof a { color: #fff; }
.svc-proof a { font-weight: 700; }

/* ---------- Hero: real work in browser windows (replaces the drawn frame) ---------- */
.hero__art { position: relative; min-height: 380px; }
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(15, 23, 51, 0.45); }
:root[data-theme="dark"] .shot { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7); }
.shot__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--mist); border-bottom: 1px solid var(--line); }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-control); }
.shot__bar span { margin-left: 8px; font-size: 0.76rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.01em; }
.shot img { display: block; width: 100%; height: auto; }
.shot--main { width: 84%; opacity: 0; transform: translateY(18px); animation: ev-shotIn 0.8s 0.25s var(--ease-out) forwards; }
.shot--second { position: absolute; right: -2%; bottom: 8%; width: 50%; transform: rotate(2deg) translateY(18px); opacity: 0; animation: ev-shotIn2 0.8s 0.7s var(--ease-out) forwards; }
@keyframes ev-shotIn { to { opacity: 1; transform: none; } }
@keyframes ev-shotIn2 { to { opacity: 1; transform: rotate(2deg); } }
.ev-chip--a { animation-delay: 1.2s; } .ev-chip--b { animation-delay: 1.35s; } .ev-chip--live { animation-delay: 1.5s; }
@media (max-width: 560px) {
  .hero__art { min-height: 0; }
  .shot--main { width: 100%; order: -1; }
  .shot--second { position: static; width: 100%; transform: none; margin-top: 10px; animation-name: ev-shotIn; }
}
@media (prefers-reduced-motion: reduce) { .shot--main, .shot--second { animation: none; opacity: 1; transform: none; } }
/* Services lead cell: a real photo from a real build. */
.cell-shot { margin-top: 6px; border-radius: 12px; border: 1px solid var(--line); width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; }
