/* Base palette */
:root{
  --bg: #0b1020;
  --fg: #eaf0ff;
  --muted: #adbad6;
  --brand: #2e3094;      /* bay-of-many */
  --brand-2: #6063ac;    /* scampi */
  --brand-soft: rgba(46,48,148,.10);
  --border: rgba(234, 240, 255, 0.14);
  --fs-base: 16px;
  --ink: #333333;
  --ink-2: #858585;
  --blue-haze: #cccce3;
  --header-h: 54px; /* was 58px */
  --mx: 50%;
  --my: 50%;
  --bg-soft-1: #f7f8ff;
  --bg-soft-2: #eef1ff;
  --bg-soft-3: #fafbff;
}

*{ box-sizing:border-box }
html,body{ height:100% }
body{
  background:#ffffff;
  color: var(--ink);
  font: 400 var(--fs-base)/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  margin:0;
  padding-top: var(--header-h);
}

/* Utilities */
.container{ width:min(1180px, 92%); margin-inline:auto; }
.muted{ color: var(--ink-2); }
.visually-hidden{ position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* Top announcement bar */
.bar{
  display:flex; gap:.75rem; justify-content:center; align-items:center;
  padding:.5rem .75rem; background: #f3f4fb; color:#333;
  border-bottom:1px solid #eceef7;
}
.bar-cta{
  padding:.25rem .6rem; border-radius:999px; border:1px solid var(--brand);
  text-decoration:none; color:#fff; background:var(--brand);
  font-weight:600; font-size:.85rem;
}

/* Header / nav */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(255,255,255,.86);           /* translucent */
  border-bottom: 1px solid #eceef7;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  width: 100%;
  backdrop-filter: saturate(1.2) blur(10px);    /* glassy */
  -webkit-backdrop-filter: blur(10px);
  transition: background .2s ease, box-shadow .2s ease;
}
/* optional tighter header on scroll (add .compact on .site-header via JS if desired) */
.site-header.compact{
  box-shadow: 0 8px 28px rgba(0,0,0,.10);
  background: rgba(255,255,255,.82);
}
.site-header.compact .nav-rail{
  padding: .2rem 0;
}
.site-header{ background:#fff !important; }
 .nav-rail{
  display:flex; align-items:center; justify-content:space-between;
  padding:.35rem 0; /* was .45rem 0 */
  gap:1rem;
}
.brand{ display:flex; align-items:center; gap:.6rem; text-decoration:none; }
.site-header .logo-img{ height: 40px; width:auto; display:block; }

/* Footer logo — independent sizing (keeps aspect ratio) */
.footer .logo-img,
.footer-logo img{
  width: 200px;      /* adjust as needed */
  height: auto;      /* preserve aspect ratio */
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem auto; /* center in footer column */
}

/* Ensure no other rules compress the footer logo */
.footer .logo-img[height],
.footer-logo img[height]{
  height: auto !important;
}

.primary-nav{ display:block; }
.nav-list{
  position:relative;
  list-style:none;
  margin:0;
  padding:.25rem .4rem;
  display:flex;
  flex-wrap:nowrap;
  gap:.4rem;
  align-items:center;
  border-radius:12px;
  background:#f7f8ff;
  white-space:nowrap;
}
.nav-list > li{ margin:0; padding:0; }
.nav-list a{
  position:relative; z-index:2;
  display:block; padding:.45rem .7rem; border-radius:10px; text-decoration:none;
  color:#333; font-weight:600; font-size:.95rem;
}
.nav-list a.active{ color:#fff; }
.nav-list a:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:2px;
  border-radius:10px;
}

.nav-pill{
  position:absolute;
  z-index:0;
  top:50%;
  transform: translate(-999px, -50%);
  height:34px; border-radius:10px;
  background: var(--brand-soft);
  transition: transform 260ms ease, width 260ms ease, background 160ms ease;
}
.nav-list a:hover{ color:#2e3094; }
.nav-actions .btn{ white-space:nowrap; }

/* Mobile menu button */
.nav-toggle-btn{
  display:none; background:transparent; border:0; padding:.25rem; gap:4px; flex-direction:column;
}
.nav-toggle-btn span{ width:22px; height:2px; background:#333; display:block; border-radius:2px; }

/* Mobile drawer */
.mobile-drawer{
  display:none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background:#fff;
  border-top:1px solid #eceef7;
  max-height: calc(100dvh - var(--header-h));
  overflow:auto;
  z-index: 9999;
}
.mobile-drawer.open{ display:block; }
.mobile-menu{ display:flex; flex-direction:column; padding:.5rem; }
.mobile-menu a{ padding:.75rem; color:#333; text-decoration:none; border-radius:8px; }
.mobile-menu a:hover{ background:#f3f4fb; color:#2e3094; }
.drawer-actions{ padding:.75rem; }

/* Buttons */
.btn{
  display:inline-block; text-decoration:none; font-weight:700; border-radius:12px; padding:.7rem 1rem; border:1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.btn--primary{ background:var(--brand); color:#fff; }
.btn--primary:hover{ transform:translateY(-1px); box-shadow:0 6px 18px rgba(46,48,148,.18); }
.btn:hover{ box-shadow:0 10px 28px rgba(0,0,0,.08); }
.btn--white:hover, .btn--ghost:hover{ background:#f7f8ff; border-color:#dfe3fb; color:#111; }
.btn--white{ background:#fff; color:#333; border-color:#e7e9f6; }
.btn--ghost{ background:transparent; color:#333; border-color:#e7e9f6; }
.btn--outline{ background:transparent; color:var(--brand); border-color:var(--brand); }
.btn.full{ display:block; text-align:center; }

/* Hero */
.hero{ position:relative; overflow:hidden; }
/* Subtle layered background for hero */
.hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(156,158,204,.18), transparent 55%),
    radial-gradient(900px 520px at 82% 28%, rgba(96,99,172,.15), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f9faff 100%);
  z-index:0;
}
/* Cursor-reactive spotlight (falls back to centered if no JS) */
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(280px 220px at var(--mx) var(--my), rgba(46,48,148,.12), transparent 65%);
  filter: blur(2px);
  opacity:.9;
  pointer-events:none;
  z-index:0;
  transition: background 180ms ease;
}
.hero > *{ position:relative; z-index:1; }
.hero-surface{ position:absolute; inset:0; pointer-events:none; }
.grid-overlay{
  position:absolute; inset:0;
  background:
    radial-gradient(600px 360px at 18% 12%, rgba(156,158,204,.14), transparent 60%),
    radial-gradient(520px 320px at 78% 30%, rgba(96,99,172,.12), transparent 62%);
  opacity:.9;
}
.dot{ position:absolute; width:8px; height:8px; border-radius:50%; background:rgba(46,48,148,.35); }
/* light parallax via CSS variables (JS will update --mx/--my) */
.dot{ transform: translate(calc((var(--mx, 50%) - 50%) * .02), calc((var(--my, 50%) - 50%) * .02)); }
.dot.d1{ top:18%; left:15%; }
.dot.d2{ bottom:22%; right:22%; }
.glow{ position:absolute; filter:blur(42px); background:rgba(156,158,204,.35); width:220px; height:220px; border-radius:50%; }
.glow.g1{ top:10%; right:5%; }
.glow.g2{ bottom:8%; left:10%; }

.hero-wrap{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  align-items:center;
  gap:2.2rem;
  min-height: 76vh;
  padding: 3.2rem 0 1.6rem;
}
.hero-copy .eyebrow{ font-weight:800; color:#2e3094; letter-spacing:.02em; }
.hero h1{ font-size: clamp(28px, 5vw, 46px); line-height:1.15; margin:.25rem 0 .5rem; color:#111; }
.hero .lead{ color:#444; max-width: 60ch; }
.cta{ display:flex; gap:.6rem; flex-wrap:wrap; margin-top:.75rem; }
.kpi-stack{ list-style:none; margin:1.2rem 0 0; padding:0; display:grid; gap:.6rem; }
.kpi-stack .num{ font-weight:800; font-size: clamp(28px, 5.4vw, 44px); color:#2e3094; line-height:1; display:block; }
.kpi-stack .label{ color:#3a3a3a; font-weight:600; }

.hero-figure .photo-frame{ position:relative; border-radius:16px; overflow:hidden; box-shadow: 0 14px 44px rgba(0,0,0,.12); }
.hero-figure img{ display:block; width:100%; height:auto; }
.ring{ position:absolute; border:2px solid rgba(46,48,148,.25); border-radius:16px; inset:-12px; }
.r2{ inset:-22px; border-color: rgba(156,158,204,.25); }

/* Scroll cue */
.scroll-cue{ position:absolute; left:50%; bottom:10px; transform:translateX(-50%); text-decoration:none; color:#2e3094; font-weight:800; }

/* Section */
.section{ padding: clamp(48px, 7vw, 88px) 0; scroll-margin-top: 84px; }
.section.alt{
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(46,48,148,.06), transparent 60%),
    linear-gradient(180deg, var(--bg-soft-3), #ffffff);
}
.section.alt2{
  background:
    radial-gradient(900px 480px at 90% 10%, rgba(96,99,172,.06), transparent 60%),
    linear-gradient(180deg, #ffffff, var(--bg-soft-1));
}
/* Cursor reactive accent on sections (very subtle) */
.section.interactive::after{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(220px 200px at var(--mx) var(--my), rgba(46,48,148,.07), transparent 65%);
  opacity:.85;
  pointer-events:none;
  transition: background 180ms ease;
}
.section-head{ text-align:center; margin-bottom: 1.4rem; }
.section-head h2{ font-size: clamp(22px, 4.4vw, 36px); margin:0 0 .25rem; color:#111; }
.section-head .lead{ color:#555; }

/* About layout */
.about{ display:grid; grid-template-columns: 1.1fr .9fr; gap:2rem; align-items:center; }
.a-list p{ margin:.6rem 0; }
.band-ctas{ display:flex; gap:.6rem; margin-top:.6rem; }
.story-art img{ border-radius:14px; box-shadow:0 14px 44px rgba(0,0,0,.12); }

/* Timeline (robust, image+text, alternating) */
.timeline{ position:relative; }
.tl-track{ position:absolute; left:50%; top:0; bottom:0; width:2px; background:#e7e9f6; transform:translateX(-50%); }
.tl-progress{ position:absolute; left:0; top:0; width:100%; height:0; background: var(--brand); transition: height .25s ease; z-index:1; }

.tl-items{ list-style:none; margin:0; padding:0; display:grid; gap:2rem; }
.tl-item{ position:relative; display:grid; grid-template-columns: 1fr 1fr; gap:1rem; align-items:center; padding-top:.5rem; }

/* Hide oversized year badges if present */
.tl-item .tl-year{ display:none !important; }

.tl-item h4{ margin:.2rem 0 .35rem; color:#111; line-height:1.25; }
.tl-item time{ display:block; font-weight:700; color: var(--brand); margin-bottom:.25rem; }

/* Generic media/text targeting (works with either direct children or .tl-media/.tl-text wrappers) */
.tl-item > img,
.tl-item .tl-media{ order:1; }
.tl-item > div,
.tl-item .tl-text{ order:2; }

/* Alternate sides */
.tl-item.left > img,
.tl-item.left .tl-media{ grid-column:1; }
.tl-item.left > div,
.tl-item.left .tl-text{ grid-column:2; }

.tl-item.right > img,
.tl-item.right .tl-media{ grid-column:2; }
.tl-item.right > div,
.tl-item.right .tl-text{ grid-column:1; }

.tl-item img{ width:100%; height:auto; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.12); }

/* Mobile: stack all in one column and hide the vertical line for clarity */
@media (max-width: 900px){
  .tl-track{ display:none; }
  .tl-item{ grid-template-columns: 1fr; }
  .tl-item > img, .tl-item .tl-media,
  .tl-item > div, .tl-item .tl-text{ grid-column:1; }
}

/* Services */
.service-chooser{
  display:flex; justify-content:center; align-items:stretch; gap:1rem; flex-wrap:wrap;
  margin: 1rem auto 0;
  max-width: 980px;
}
.big-card{ border:1px solid var(--blue-haze); background:#fff; padding:1.25rem; border-radius:12px; text-align:left; cursor:pointer; min-width:280px; max-width:520px; }
.big-card.active{ outline:2px solid var(--brand); background: #f4f5ff; }

.service-panel{ display:none; margin-top: 1rem; }
.service-panel.show{ display:block; }

.service-grid{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:1rem; }
@media (max-width: 900px){ .service-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px){ .service-grid{ grid-template-columns: 1fr; } }

.card{ background:#fff; border:1px solid #eceef7; border-radius:12px; padding:1rem; box-shadow: 0 8px 22px rgba(0,0,0,.04); transition: transform .16s ease, box-shadow .16s ease; }
.card:hover{ transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.10); }

/* Projects slider */
.project-slider{ position:relative; overflow:hidden; }
.project-slider .slides{ display:flex; transition: transform .45s ease; }
.slide{ min-width:100%; display:grid; grid-template-columns: 1.2fr .8fr; gap:1rem; align-items:center; padding:.25rem; }
.slide img{ width:100%; height:auto; border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.12); }
.slide-text h4{ margin:.2rem 0 .35rem; color:#111; }
.slide-nav{ position:absolute; top:50%; transform:translateY(-50%); background:#fff; color:#333; border:1px solid #e7e9f6; border-radius:8px; padding:.25rem .55rem; cursor:pointer; }
.slide-nav.prev{ left:.5rem; } .slide-nav.next{ right:.5rem; }

/* Pricing */
.pricing{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:1rem; }
.pricing .price h3{ margin:.25rem 0 .35rem; color:#111; }
.pricing .price ul{ margin:.25rem 0 .5rem .95rem; }
.pricing .price li{ margin:.1rem 0; }
.middle-neutral{ background:#fff; }

/* Testimonials */
.tmq{ overflow:hidden; }
.tmq-track{
  display:flex; gap:1rem; align-items:center; gap:1rem; align-items:stretch;
  animation: marquee linear infinite; animation-duration: 20s;
}
.tmq:hover .tmq-track{ animation-play-state: paused; }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.t-card{ min-width: 340px; max-width: 380px; background:#fff; border:1px solid #eceef7; border-radius:12px; padding:1rem; box-shadow:0 8px 22px rgba(0,0,0,.04); }
.t-meta{ display:flex; align-items:center; gap:.65rem; margin-bottom:.4rem; }
.t-avatar{ width:40px; height:40px; border-radius:50%; }

/* CTA band */
.cta-band{ background: #eef0ff; padding: 36px 0; }
.band{ display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.band-ctas{ display:flex; gap:.6rem; flex-wrap:wrap; }

/* Footer */
.footer-top{ height:8px; background: linear-gradient(90deg, #2e3094, #6063ac); }
.footer{ background:#eef1ff; color:#333; padding-top: 0; }
.footer-grid{ display:grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap:1rem; padding: 24px 0; }
.brand.foot{ display:flex; align-items:center; justify-content:center; gap:.5rem; }
.foot-badges{ display:flex; gap:.5rem; flex-wrap:wrap; margin-top:.35rem; }
.badge{ background:#fff; border:1px solid #e7e9f6; border-radius:999px; padding:.25rem .6rem; font-weight:600; }
.ftitle{ font-weight:800; color:#2e3094; display:block; margin-bottom:.35rem; }
.flist{ list-style:none; padding:0; margin:0; }
.flist a{ color:#333; text-decoration:none; padding:.25rem 0; display:inline-block; }
.foot-actions .btn--white{ background:#fff; color:#333; border-color:#e7e9f6; }
.fbottom{ display:flex; align-items:center; justify-content:space-between; padding: 10px 0 24px; border-top:1px solid #dde1f5; }

/* Footer social icons standard size */
.social{ display:flex; gap:.5rem; align-items:center; }

/* Reset list styling in case social is used on a <ul> */
.social{
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.social a{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:8px; background:#fff; border:1px solid #e7e9f6; transition:transform .16s ease, box-shadow .16s ease; }
.social a:hover{ transform: translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.08); }
.social a svg, .social a img{ width:18px; height:18px; }

/* Footer logo fix */
.footer-logo img {
    width: 160px;        /* increase or decrease as needed */
    height: auto;        /* preserves aspect ratio */
    object-fit: contain; /* keeps it from distorting */
    display: block;
    margin: 0 auto 1rem auto; /* centers it */
}

/* Footer container spacing adjustments */
.site-footer .footer-inner {
    padding: 2rem 1rem;
}

/* MOBILE HEADER THINNER & LOGO SIZING */
@media (max-width: 640px){
  :root { --header-h: 56px; } /* was 54px */
  .site-header{ background:#fff; }
  .logo-img{
    height:26px;        /* was 32px */
    margin-top: 4px;    /* was 6px */
    width:auto;
    display:block;
  }
  .nav-rail{ padding:.4rem 0; } /* was .5rem 0 */
  .kpi-stack .num{ font-size: clamp(24px, 7vw, 34px); }
  .band{ flex-direction:column; align-items:flex-start; }
  .pricing{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .tl-item .tl-year{
    font-size: clamp(32px, 10vw, 60px);
    opacity:.18;
    position:absolute;
    inset:auto auto auto 0;
    transform:none;
    z-index:0;
  }
  .tl-item{ padding-top:1.1rem; }
}

/* Reveal animation defaults */
.reveal{ opacity:1; transform:none; transition: opacity 420ms ease, transform 420ms ease; will-change: opacity, transform; }
.js .reveal{ opacity:0; transform: translateY(16px); }
.js .reveal.in{ opacity:1; transform:none; }
.no-js .reveal{ opacity:1 !important; transform:none !important; }

/* Responsive */
@media (max-width: 1024px){
  .hero-wrap{ grid-template-columns: 1fr; }
  /* Reorder hero on smaller screens: photo first, text second */
  .hero-figure{ order: -1; }
  .hero-copy{ order: 2; }
  .hero-wrap{ gap: 1.25rem; }
  .about{ grid-template-columns: 1fr; }
  .slide{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px){
  .primary-nav{ display:none; }
  .nav-toggle-btn{ display:flex; }
}

/* Stack order guards */
.site-header{ z-index: 9999; }
.tl-item .tl-year{ z-index: 0; }

/* --- end --- */


/* ============================
   WHAT I DO image smaller
   ============================ */

.story-art.story-art--smaller img {
  max-width: 520px;
  width: 100%;
  height: auto;
}
@media (max-width: 900px){
  .story-art.story-art--smaller img { max-width: 85vw; }
}

/* ============================
   Service chooser cards: larger & clearer
   ============================ */

.service-chooser {
  justify-content: center;
  align-items: stretch;
}
.service-chooser .big-card {
  padding: 1.6rem 1.85rem;
  min-height: 148px;
}
.service-chooser .big-card .bc-title {
  font-size: 1.6rem;
  line-height: 1.2;
}
.service-chooser .big-card p {
  font-size: 1.08rem;
}

@media (max-width: 780px){
  .service-chooser .big-card { min-height: 136px; }
  .service-chooser .big-card .bc-title { font-size: 1.45rem; }
  .service-chooser .big-card p { font-size: 1.02rem; }
}

/* (Optional) tighten section lead on small screens */
@media (max-width: 640px){
  .section .section-head .lead { font-size: 1rem; }
}

/* Fixed header guard */
.hero, .section, .footer, .mobile-drawer { will-change: transform; }

/* SERVICES CHOOSER — place these near your other services rules */
.service-chooser{
  display:flex;
  gap:1rem;
  justify-content:center;
  align-items:stretch;
  flex-wrap:nowrap;           /* side-by-side on desktop */
  margin:1.25rem auto 0;
  max-width:1100px;
}
.service-chooser .big-card{
  flex:1 1 340px;             /* grow evenly */
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:120px;
}
.service-chooser .bc-title{ font-size:1.15rem; margin:0 0 .25rem; }
.service-chooser .muted{ font-size:.95rem; }

@media (max-width: 720px){
  .service-chooser{ flex-wrap:wrap; }     /* stack on phones */
  .service-chooser .big-card{ flex:1 1 100%; }
}
/* TIMELINE DATE VISIBILITY — add without removing existing timeline rules */
.timeline .tl-text time{
  display:inline-block;
  font-weight:600;
  font-size:.85rem;
  letter-spacing:.02em;
  padding:.25rem .5rem;
  border-radius:999px;
  background:rgba(46,48,148,.10);   /* light bay-of-many */
  color:#2e3094;
  border:1px solid rgba(46,48,148,.18);
  margin-bottom:.35rem;
}

.timeline .tl-track{
  width:4px;
  background:linear-gradient(to bottom, rgba(46,48,148,.15), rgba(46,48,148,.35));
}
.timeline .tl-progress{
  background:linear-gradient(to bottom, #2e3094, #6063ac);
}

/* Mobile: stack media/text but keep the order readable */
@media (max-width: 720px){
  .timeline .tl-content{ grid-template-columns: 1fr !important; }
  .timeline .tl-text{ order:2; }
  .timeline .tl-media{ order:1; }
}
/* FOOTER THINNER + TIDIER */
.footer{
  background: var(--blue-haze, #cccce3);
  color: var(--mine-shaft, #333333);
  padding: 28px 0 18px;   /* was taller; now thinner */
}
.footer-top{ height:8px; }  /* if you have the top accent bar */

.footer-grid{ gap:1.25rem; }

.footer .btn{
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  min-height: 40px;
  padding:.55rem .9rem;
}
.footer .btn.btn--white{
  background:#fff;
  color:#2e3094;
  border:1px solid rgba(46,48,148,.25);
}

/* Social icons smaller */
.social .ico{ width:18px; height:18px; }
.social li a{ padding:.25rem; }
/* NAV PILL — deeper blue and layered under links */
.nav-pill{
  position:absolute;
  top:50%;
  left:0;
  height:36px;
  border-radius:999px;
  transform:translateY(-50%);
  background: var(--bay-of-many, #2e3094);
  box-shadow: 0 6px 14px rgba(46,48,148,0.28), 0 1px 0 rgba(255,255,255,0.25) inset;
  transition: transform 260ms cubic-bezier(.22,.61,.36,1), width 260ms cubic-bezier(.22,.61,.36,1);
  z-index:0;
  opacity:1;
}
.primary-nav .nav-list a{ position:relative; z-index:1; }
.primary-nav .nav-list a:hover{ color:#2e3094; }
.primary-nav .nav-list a.active{ color:#ffffff; }  /* white text on pill */
/* PRICING HOVER CONTRAST */
.pricing .price:hover h3,
.pricing .price:hover p,
.pricing .price:hover li{ color:#2a2a2a; }

/* ===== Timeline compaction & responsiveness (override) ===== */
.timeline{
  max-width: 1100px;                 /* keep lines readable */
  margin-inline: auto;
}

.timeline .tl-items{
  display: grid;
  row-gap: 1.1rem;                    /* tighter vertical rhythm */
  margin-top: .5rem;
}

.timeline .tl-item{
  padding: .6rem 0;                   /* less top/bottom padding per event */
}

.timeline .tl-content{
  display: grid;
  grid-template-columns: 1fr 1fr;     /* balanced halves */
  gap: 1rem;                          /* narrower gap across the rail */
  align-items: center;
}

.timeline .tl-text{
  padding: .25rem 0;                  /* reduce internal spacing */
}

.timeline .tl-media{
  padding: .25rem 0;
}

.timeline .tl-media img{
  width: 100%;
  height: auto;
  max-height: 280px;                  /* consistent visual height */
  object-fit: cover;
  border-radius: 10px;
}

/* Slimmer center rail (reclaims a bit of space) */
.timeline .tl-track{ width: 3px; }
.timeline .tl-progress{ width: 100%; }

/* Desktop refinements: pull columns even closer */
@media (min-width: 900px){
  .timeline .tl-content{
    gap: .875rem;                     /* slightly tighter on wide screens */
  }
  .timeline .tl-item.left .tl-content,
  .timeline .tl-item.right .tl-content{
    grid-template-columns: 1fr 1fr;
  }
}

/* Tablet / Mobile: stack compactly and keep images tidy */
@media (max-width: 720px){
  .timeline{ max-width: 100%; }
  .timeline .tl-content{
    grid-template-columns: 1fr !important;  /* stack text/media */
    gap: .75rem;                             /* compact stack gap */
  }
  .timeline .tl-media img{
    max-height: 220px;                       /* smaller visuals on phones */
    border-radius: 8px;
  }
  /* Show media first, then text on mobile (usually reads better) */
  .timeline .tl-media{ order: 1; }
  .timeline .tl-text{ order: 2; }
}

/* ================================
   TIMELINE — CONDENSED / MOBILE-FIRST
   (Paste at END of styles.css)
   ================================ */

.timeline{
  --tl-gap-y: .85rem;       /* space between items */
  --tl-gap-x: .875rem;      /* gap between text & media */
  --tl-img-h: 240px;        /* desktop image height */
  --tl-img-h-sm: 200px;     /* mobile image height */
  --tl-rail: 3px;           /* center line width */
}

.timeline .tl-items{
  display: grid;
  row-gap: var(--tl-gap-y);
  margin-top: .35rem;       /* pull list closer to heading */
}

.timeline .tl-item{
  padding: .45rem 0;        /* tighter item padding */
}

/* Two-column content hugging the center rail on desktop */
.timeline .tl-content{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tl-gap-x);
  align-items: center;
}

/* Keep titles & descriptions prominent but compact */
.timeline .tl-text h4{
  margin: 0 0 .25rem 0;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.25;
}
.timeline .tl-text time{
  display: inline-block;
  margin: 0 0 .25rem;
  font-weight: 600;
  opacity: .85;
}
.timeline .tl-text p{
  margin: 0;               /* remove extra paragraph space */
  font-size: .98rem;
  line-height: 1.45;       /* tighter but readable */
}

/* Media kept consistent */
.timeline .tl-media{ padding: 0; }
.timeline .tl-media img{
  width: 100%;
  height: var(--tl-img-h);
  object-fit: cover;
  border-radius: 10px;
}

/* Center rail minimal footprint */
.timeline .tl-track{ width: var(--tl-rail); }
.timeline .tl-progress{ width: 100%; }

/* Optional small year pill if you’re using .tl-year in markup */
.timeline .tl-year{
  font-size: .85rem;
  padding: .15rem .4rem;
  border-radius: 999px;
  background: rgba(46,48,148,.08);
  color: #2e3094;
  position: relative;
  top: -.1rem;
}

/* Desktop fine-tuning */
@media (min-width: 960px){
  .timeline{
    --tl-gap-y: .75rem;
    --tl-gap-x: .75rem;
    --tl-img-h: 220px;
  }
  .timeline .tl-text p{ line-height: 1.4; }
}

/* Tablet & down: stack compactly and keep media small */
@media (max-width: 780px){
  .timeline{ --tl-img-h: var(--tl-img-h-sm); }
  .timeline .tl-content{
    grid-template-columns: 1fr !important;
    gap: .65rem;
  }
  /* Keep order text -> image for readability on phones */
  .timeline .tl-media{ order: 2; }
  .timeline .tl-text{ order: 1; }
}

/* Ultra-small phones */
@media (max-width: 380px){
  .timeline{ --tl-gap-y: .65rem; --tl-img-h-sm: 180px; }
  .timeline .tl-text h4{ font-size: 1rem; }
}

/* ===========================================
   TIMELINE — DENSER, LESS WHITE SPACE, MOBILE-OPTIMIZED
   (Place at END of styles.css)
   =========================================== */

/* Widen story container slightly and reduce gutters */
#story .container{
  max-width: 1240px;                     /* pulls edges outward on desktop */
  padding-left: clamp(12px, 2.5vw, 20px);
  padding-right: clamp(12px, 2.5vw, 20px);
}

/* Tighter top/bottom for the whole section */
#story.section{
  padding-top: 48px;
  padding-bottom: 48px;
}

/* Core timeline density controls */
.timeline{
  --tl-gap-y: .5rem;        /* vertical space between items */
  --tl-gap-x: .55rem;       /* space between text & image */
  --tl-img-h: 200px;        /* default image height */
  --tl-img-h-lg: 210px;     /* slightly taller on big screens */
  --tl-img-h-sm: 176px;     /* compact on phones */
  --tl-rail: 3px;           /* width of center line */
}

.timeline .tl-items{
  row-gap: var(--tl-gap-y);
  margin-top: .25rem;
}

.timeline .tl-item{
  padding: .35rem 0;
}

/* Keep the classic left/right look but hug the center more closely */
.timeline .tl-content{
  display: grid;
  grid-template-columns: 1fr 1fr;  /* symmetric halves */
  gap: var(--tl-gap-x);
  align-items: center;
}

/* Text block: compact but readable */
.timeline .tl-text time{
  margin: 0 0 .2rem;
  font-weight: 600;
  opacity: .85;
}

.timeline .tl-text h4{
  margin: 0 0 .2rem;
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  line-height: 1.22;
}

.timeline .tl-text p{
  margin: 0;
  font-size: .97rem;
  line-height: 1.4;
}

/* Media: consistent, modest height */
.timeline .tl-media img{
  width: 100%;
  height: var(--tl-img-h);
  object-fit: cover;
  border-radius: 10px;
}

/* Center rail is slim; progress fills track */
.timeline .tl-track{
  width: var(--tl-rail);
}

.timeline .tl-progress{
  width: 100%;
}

/* If .tl-year chips are present, make them subtle and compact */
.timeline .tl-year{
  font-size: .8rem;
  padding: .1rem .35rem;
  border-radius: 999px;
  background: rgba(46,48,148,.08);
  color: #2e3094;
  position: relative;
  top: -.1rem;
}

/* Large desktop: a touch more breathing room for images */
@media (min-width: 1200px){
  .timeline{
    --tl-img-h: var(--tl-img-h-lg);
    --tl-gap-x: .6rem;
  }
}

@media (max-width: 860px){
  #story .container{
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .timeline{
    --tl-img-h: var(--tl-img-h-sm);
    --tl-gap-x: .5rem;
  }
  .timeline .tl-content{
    grid-template-columns: 1fr !important;
    gap: .5rem;
  }
  /* readable order on phones */
  .timeline .tl-text{ order: 1; }
  .timeline .tl-media{ order: 2; }
}

/* Very small phones */
@media (max-width: 380px){
  .timeline{ --tl-gap-y: .5rem; }
  .timeline .tl-text h4{ font-size: 1rem; }
}
/* ===== Compact Timeline v2 ===== */
.timeline2 { position: relative; --rail: 3px; --gap: 18px; --card-px: 16px; --card-py: 14px; }
.timeline2 .tl2-rail{
  position:absolute; left:50%; top:0; bottom:0; width:var(--rail);
  transform:translateX(-50%); background: linear-gradient(to bottom, rgba(46,48,148,.22), rgba(156,158,204,.22));
}
.tl2-items{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap: var(--gap) 26px; }
.tl2-item{ position:relative; }
.tl2-item:nth-child(odd){ grid-column:1 }
.tl2-item:nth-child(even){ grid-column:2 }

.tl2-dot{
  position:absolute; top: 16px; width:12px; height:12px; border-radius:50%;
  background:#2e3094; box-shadow:0 0 0 3px rgba(46,48,148,.12);
}
.tl2-item:nth-child(odd) .tl2-dot{ right:-19px; }
.tl2-item:nth-child(even) .tl2-dot{ left:-19px; }

.tl2-card{
  background:#fff; border:1px solid rgba(46,48,148,.14); border-radius:12px;
  padding: var(--card-py) var(--card-px); box-shadow: 0 8px 20px rgba(0,0,0,.06);
  display:grid; grid-template-columns: 1fr; gap:10px;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.tl2-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  border-color: rgba(46,48,148,.28);
}

.tl2-head{ display:flex; flex-direction:column; gap:4px; }
.tl2-time{ font: 700 12px/1.1 "Inter", system-ui; letter-spacing:.02em; color:#6063ac; text-transform:uppercase; }
.tl2-title{ font: 700 18px/1.3 "Inter", system-ui; color:#333; margin:0; }
.tl2-body p{ margin:0 0 8px; color:#4a4a4a; }
.tl2-media{ width:100%; height:auto; border-radius:10px; display:block; }

/* Reveal animation reuse */
.timeline2 .reveal{ opacity:0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
.timeline2 .reveal.in{ opacity:1; transform:none; }

/* Condensed spacing */
.timeline2 .tl2-item{ margin-bottom: 10px; }
.timeline2{ margin-top: 4px; }

/* Mobile: single column, rail left */
@media (max-width: 900px){
  .tl2-items{ grid-template-columns: 1fr; gap: 14px; }
  .tl2-item:nth-child(odd), .tl2-item:nth-child(even){ grid-column:auto; }
  .timeline2 .tl2-rail{ left: 12px; transform:none; width:2px; background: rgba(96,99,172,.25); }
  .tl2-dot{ left: 7px; right:auto; }
  .tl2-card{ margin-left: 26px; }
}

/* Larger: slightly tighter */
@media (min-width: 1200px){
  .tl2-items{ gap: 20px 28px; }
  .tl2-card{ padding: 16px 18px; }
}

/* Timeline dates — clearer and slightly larger */
.tl2-time{
  font-weight: 600;
  opacity: .95;
  color: var(--scampi, #6063ac);
  font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.15rem);
  letter-spacing: 0.2px;
}
/* Services chooser centered */
.service-chooser{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 820px;
  margin: 1rem auto 0;
  justify-content: center;
  align-items: stretch;
}
@media (max-width: 640px){
  .service-chooser{ grid-template-columns: 1fr; }
}
.services-hint{
  text-align: center;
  margin: .75rem auto 1.25rem;
  color: var(--gray, #858585);
}
.services-hint.hide{ display: none; }

/* Category cards: nicer hover/active */
.big-card{
  border: 1px solid var(--border, rgba(0,0,0,0.12));
  background: rgba(46,48,148,.04);
  padding: 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.big-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  background: rgba(46,48,148,.06);
}
.big-card.active{
  outline: 2px solid var(--bay-of-many, #2e3094);
  background: rgba(46,48,148,.08);
  border-color: transparent;
}

/* Panels: hidden until a pick is made */
.service-panel{ display: none; }
.service-panel.show{ display: block; animation: fadeInUp .28s ease both; }
@keyframes fadeInUp{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}

/* Service grid stays clean on mobile */
.service-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
}
@media (max-width: 960px){ .service-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .service-grid{ grid-template-columns: 1fr; } }

/* ===== KPI Row Redesign (inline, blue number + black text) ===== */
.kpi-stack{
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  margin-top: 1rem;
  padding: .25rem 0;
}

.kpi-stack .kpi-row{
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  background: rgba(46,48,148,0.05);
  border: 1px solid rgba(46,48,148,0.14);
  border-radius: 12px;
  padding: .6rem .9rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
  width: fit-content;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}
.kpi-stack .kpi-row:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  background: rgba(46,48,148,0.06);
  border-color: rgba(46,48,148,0.22);
}
.kpi-stack .kpi-num{
  color: #2e3094;
  font-weight: 900;
  letter-spacing: .25px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1;
}
.kpi-stack .kpi-text{
  color: #222;
  font-weight: 600;
  font-size: clamp(.98rem, 1.8vw, 1.15rem);
  line-height: 1.2;
  white-space: nowrap;
}

/* Hide any older stacked label styles if they exist */
.kpi-stack .label{ display: none !important; }
.kpi-stack .num{ color: inherit; }

.kpi-stack .kpi-row:hover .kpi-num,
.kpi-stack .kpi-row:focus-within .kpi-num{
  text-shadow: 0 2px 10px rgba(46,48,148,.15);
}

@media (min-width: 700px){
  .kpi-stack{ grid-template-columns: 1fr; gap: .6rem; }
}

@media (max-width: 640px){
  .kpi-stack .kpi-row{ padding: .5rem .7rem; }
}

/* Footer image reset to avoid scrunching from global rules */
.footer img{ max-width: 100%; height: auto; }

.scroll-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--bay-of-many), var(--scampi));
  box-shadow: 0 0 12px rgba(46,48,148,.35);
  z-index: 9999; transition: width .15s linear;
}
@media (prefers-reduced-motion: reduce){
  .scroll-progress{ transition: none; }
}


/* Mobile drawer slide-down animation */
.mobile-drawer{
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.mobile-drawer.open{
  transform: translateY(0);
  opacity: 1;
}
/* ==========================================================
   Performance & Visual Depth Enhancements (append-only)
   - Keeps existing look/feel; adds polish and speed
   ========================================================== */

/* Timing + easing tokens */
:root{
  --e-fast: 140ms;
  --e-med: 240ms;
  --e-slow: 400ms;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Prefer lightweight paint: disable blanket will-change from earlier block */
.hero, .section, .footer, .mobile-drawer { will-change: auto; }

/* Use will-change only when hovering (prevents constant extra layers) */
.card:hover,
.big-card:hover,
.btn:hover{ will-change: transform; }

/* Defer rendering of off-screen sections for faster first paint */
.hero,
.section,
.footer{
  content-visibility: auto;
  contain-intrinsic-size: 720px;     /* fallback size to prevent layout jumps */
}

/* Make lazy images even cheaper to render */
img[loading="lazy"]{
  content-visibility: auto;
  contain-intrinsic-size: 320px 200px;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tmq-track{ animation: none !important; transform: none !important; }
}

/* Subtle depth for cards & big category tiles */
.card,
.big-card,
.pricing .price{
  background: #fff;
  border: 1px solid rgba(46,48,148,.12);
  border-radius: 12px;
  transition: transform var(--e-med) var(--ease),
              box-shadow var(--e-med) var(--ease),
              border-color var(--e-fast) var(--ease),
              background var(--e-fast) var(--ease);
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  position: relative;
  isolation: isolate;
}
.card::before,
.big-card::before,
.pricing .price::before{
  content:"";
  position:absolute; inset:0;
  border-radius: inherit;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(46,48,148,.08), rgba(96,99,172,.06));
  opacity: 0;
  transition: opacity var(--e-med) var(--ease);
  z-index: -1;
}
.card:hover,
.big-card:hover,
.pricing .price:hover{
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,.10);
  border-color: rgba(46,48,148,.22);
}
.card:hover::before,
.big-card:hover::before,
.pricing .price:hover::before{ opacity:.12; }

/* Focus states — keyboard friendly */
.card:focus-within,
.big-card:focus-within,
.pricing .price:focus-within{
  outline: 2px solid #2e3094;
  outline-offset: 2px;
}

/* Buttons: clearer elevation and tap feedback */
.btn{
  transition: transform var(--e-fast) var(--ease),
              box-shadow var(--e-fast) var(--ease),
              background var(--e-fast) var(--ease),
              color var(--e-fast) var(--ease);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.btn:active{ transform: translateY(1px) scale(.99); }

/* Hero KPI rows — add a gentle sheen animation */
@keyframes sheen{
  from{ background-position: -120% 0; }
  to{ background-position: 220% 0; }
}
.kpi-stack .kpi-row{
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.0), rgba(255,255,255,.35), rgba(255,255,255,0)) no-repeat 0 0 / 200% 100%,
    rgba(46,48,148,0.06);
}
.kpi-stack .kpi-row:hover{
  animation: sheen 1600ms var(--ease);
}

/* Nav ink pill: better contrast + GPU promoted transform */
.nav-pill{
  background: #2e3094;
  box-shadow: 0 8px 18px rgba(46,48,148,.28);
  transform: translate3d(0,-50%,0);   /* hardware accelerate */
}

/* Section separators — very light gradient edges to “lift” sections */
.section{
  position: relative;
}
.section::before,
.section::after{
  content:"";
  position:absolute; left:0; right:0; height:14px;
  pointer-events:none;
  background: radial-gradient(100% 60% at 50% 0%, rgba(46,48,148,.04), transparent 70%);
}
.section::before{ top:-14px; }
.section::after{
  bottom:-14px;
  transform: scaleY(-1);
}

/* Hero surface dots: drift slowly (adds life without heavy cost) */
@keyframes drift{
  0%{ transform: translateY(0) translateX(0); }
  50%{ transform: translateY(6px) translateX(4px); }
  100%{ transform: translateY(0) translateX(0); }
}
.dot{ animation: drift 6s ease-in-out infinite; }
.dot.d2{ animation-duration: 8s; }

/* Testimonial marquee — smoother & slightly slower by default for readability */
.tmq-track{ animation-duration: 24s; }

/* Scroll progress bar: thinner and only visible while scrolling */
.scroll-progress{
  height: 2px;
  opacity: 0;
  transition: width .15s linear, opacity .25s var(--ease);
}
body.scrolling .scroll-progress{ opacity: 1; }

/* Mobile header polish: avoid logo “hugging” edges during browser UI resize */
@media (max-width: 640px){
  .site-header .nav-rail{ padding: .35rem 0; }
  .site-header .logo-img{ margin-top: 2px; }
}

/* Footer polish: compact spacing on tiny phones */
@media (max-width: 380px){
  .footer .btn{ min-height: 36px; padding:.45rem .75rem; }
  .social a{ width:32px; height:32px; }
}

/* Containment hints on heavy sections (keeps repaints local) */
.timeline2,
.project-slider,
.tmq{ contain: layout paint style; }
/* Reusable live background layer (attach to any .section or wrapper) */
.live-bg{
  position: relative;
  isolation: isolate;
}
.live-bg::after{
  content:"";
  position:absolute; inset:0;
  z-index:0; pointer-events:none;
  background: radial-gradient(260px 200px at var(--mx) var(--my), rgba(46,48,148,.07), transparent 60%);
  transition: background 160ms ease;
}
.live-bg > *{ position:relative; z-index:1; }
@media (prefers-reduced-motion: reduce){
  .hero::after,
  .section.interactive::after,
  .live-bg::after{ display:none; }
}
/* =====================================================
   BESSIRE IT – Stability, Mobile & Performance Enhancements
   (append-only overrides; safe to paste at end of file)
   ===================================================== */

/***** 1) Baseline tokens & safe-areas *****/
:root{
  --bp-xs: 380px;
  --bp-sm: 640px;
  --bp-md: 860px;
  --bp-lg: 1024px;
  --tap: 44px; /* min touch target */
}

/* Respect iOS safe-area insets for fixed header spacing */
body{ padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.site-header{ padding-top: env(safe-area-inset-top, 0px); }

/***** 2) Logo stability (keeps aspect ratio across breakpoints) *****/
.site-header .logo-img{
  height: auto;
  width: auto;
  max-height: 42px;            /* default desktop max */
  aspect-ratio: auto;          /* prevent CSS from forcing wrong ratio */
  object-fit: contain;
}
@media (min-width: 1200px){
  .site-header .logo-img{ max-height: 52px; }
}
@media (max-width: 640px){
  .site-header .logo-img{ max-height: 28px; margin-top: 4px; }
}

/***** 3) Primary nav: horizontal stability + scroll-on-overflow on small widths *****/
.nav-list{
  overflow-x: auto;             /* avoid wrapping to multiple lines */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; /* gentle snap on mobile */
}
.nav-list > li{ scroll-snap-align: start; }
/* Hide scrollbar without killing keyboard accessibility */
.nav-list{ scrollbar-width: thin; }
.nav-list::-webkit-scrollbar{ height: 6px; }
.nav-list::-webkit-scrollbar-thumb{ background: rgba(46,48,148,.25); border-radius: 999px; }

/* Larger hit-area for links on touch devices */
@media (hover: none) and (pointer: coarse){
  .nav-list a{ padding: .6rem .8rem; min-height: var(--tap); }
}

/***** 4) Hover fallbacks for touch – prevent jumpy transforms *****/
@media (hover: none), (pointer: coarse){
  .card:hover, .big-card:hover, .pricing .price:hover{ transform: none; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
}

/***** 5) Mobile header density & menu polish *****/
@media (max-width: 640px){
  :root{ --header-h: 54px; }
  .site-header .nav-rail{ padding: .32rem 0; }
  .nav-toggle-btn{ padding: .35rem; }
  .mobile-drawer{ border-top: 1px solid #e5e8fb; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
  .mobile-menu a{ min-height: var(--tap); }
}

/***** 6) KPI rows: ensure wrap nicely on small screens *****/
.kpi-stack .kpi-row{ max-width: 100%; }
@media (max-width: 420px){
  .kpi-stack .kpi-text{ font-size: .95rem; }
}

/***** 7) Timeline: consistent spacing & image containment on all sizes *****/
.timeline .tl-media img{
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: auto;           /* never distort */
}
/* Guard against oversized captions pushing widths */
.timeline .tl-text{ min-width: 0; }

/***** 8) Services chooser: unify duplicates and ensure equal heights *****/
.service-chooser{ align-items: stretch; }
.service-chooser .big-card{ display: flex; flex-direction: column; justify-content: center; }

/***** 9) Performance: avoid heavy effects while scrolling *****/
body.scrolling .card:hover,
body.scrolling .big-card:hover,
body.scrolling .pricing .price:hover{ transform:none; box-shadow: 0 6px 18px rgba(0,0,0,.06); }

/***** 10) Reduced motion: also stop parallax sheens *****/
@media (prefers-reduced-motion: reduce){
  .dot{ animation: none !important; }
  .kpi-stack .kpi-row{ animation: none !important; }
}

/***** 11) Footer: consistent logo & tighter spacing on tiny phones *****/
.footer-logo img{ max-width: 180px; height: auto; object-fit: contain; }
@media (max-width: 380px){
  .footer-logo img{ max-width: 160px; }
  .fbottom{ flex-direction: column; gap: .4rem; align-items: flex-start; }
}

/***** 12) Scroll progress visibility only while moving *****/
letScrolling();
@keyframes _noop{ from{opacity:1} to{opacity:1} }
/* the JS toggles body.scrolling; CSS just handles opacity already above */

/* End of overrides */