/* ==========================================================================
   Muraho Technology — static site stylesheet

   Art direction: daylight engineering. A bright canvas, deep ink type, the
   logo's blue as the spine, and amber/orange used the way a highlighter is
   used — for emphasis, never for body text. Everything is hand-written: no
   frameworks, no CDNs, no third-party requests.
   ========================================================================== */

/* ------------------------------------------------------------------- tokens */

:root {
  /* ink & text */
  --ink: #071523;
  --heading: #071523;
  --body: #4c5f70;
  --muted: #64758a; /* 4.7:1 on white */

  /* brand — the starburst blue, extended */
  --blue-700: #0a4f7d;
  --blue-600: #0f74b3;
  --blue-500: #1793d1;
  --blue-400: #2aa6e0;
  --blue-100: #dcefFB;
  --blue-50: #f1f9ff;

  /* accents */
  --amber: #ffb020;
  --amber-deep: #b45309; /* 5.0:1 on white — amber text has to be dark to be legible */
  --orange: #ff6a3d;
  --violet: #7c5cff;

  /* surfaces */
  --surface: #ffffff;
  --canvas: #fbfcfe;
  --tint-cool: #f4f8fc;
  --tint-warm: #fff8ec;
  --tint-blue: #eef8ff;

  /* lines */
  --border: #e5ecf4;
  --border-strong: #d2dde9;
  --border-dark: rgba(255, 255, 255, 0.14);

  /* geometry */
  --r-xs: 10px;
  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
  --section-y: clamp(68px, 7.5vw, 116px);
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* elevation — soft, slightly blue */
  --shadow-1: 0 1px 2px rgba(7, 21, 35, 0.05), 0 14px 30px -24px rgba(7, 21, 35, 0.4);
  --shadow-2: 0 2px 6px rgba(7, 21, 35, 0.05), 0 34px 60px -42px rgba(7, 21, 35, 0.5);
  --shadow-blue: 0 16px 36px -20px rgba(15, 116, 179, 0.55);

  --font-display: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* --------------------------------------------------------------------- base */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.45rem + 2.6vw, 3.5rem); }
h2 { font-size: clamp(1.62rem, 1.15rem + 1.9vw, 2.7rem); line-height: 1.08; }
h3 { font-size: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem); letter-spacing: -0.02em; }
h4 { font-size: 1.06rem; }

p { margin: 0 0 1.1em; }
strong, b { color: var(--heading); font-weight: 600; }
em, i { font-style: italic; }

a { color: var(--blue-600); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--blue-500); }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin: 0 0 0.45em; }

:where([id]) { scroll-margin-top: calc(var(--header-h) + 24px); }
:target { scroll-margin-top: calc(var(--header-h) + 32px); }

::selection { background: rgba(255, 176, 32, 0.35); color: var(--ink); }

:focus-visible {
  outline: 2.5px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 80;
  padding: 11px 20px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-family: var(--font-display); font-size: 0.86rem; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; color: #fff; }

/* ------------------------------------------------------- type & decorations */

.lede {
  max-width: 56ch;
  color: var(--body);
  font-size: clamp(1.04rem, 1rem + 0.3vw, 1.17rem);
  line-height: 1.68;
}

/* small uppercase label above a section heading */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--blue-600);
  font-family: var(--font-display);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 20px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

/* status pill (hero + page heroes) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-1);
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.pill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.22);
}

/* colour blobs — the "life" layer, purely decorative */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.62;
  will-change: transform;
}
.blob-blue {
  width: 50vw; height: 50vw;
  max-width: 720px; max-height: 720px;
  top: -16%; right: -8%;
  background: radial-gradient(circle at 40% 40%, rgba(42, 166, 224, 0.72), rgba(42, 166, 224, 0) 68%);
}
.blob-amber {
  width: 38vw; height: 38vw;
  max-width: 500px; max-height: 500px;
  top: 30%; right: 24%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 176, 32, 0.66), rgba(255, 176, 32, 0) 66%);
}
.blob-orange {
  width: 34vw; height: 34vw;
  max-width: 470px; max-height: 470px;
  bottom: -20%; left: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 106, 61, 0.46), rgba(255, 106, 61, 0) 68%);
}

/* -------------------------------------------------------------------- icons */

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 18px;
  background: var(--tone-bg, var(--blue-50));
  color: var(--tone, var(--blue-600));
  box-shadow: inset 0 0 0 1px var(--tone-bd, var(--border));
}
.tile-icon .icon { width: 26px; height: 26px; }
.icon { display: block; }

.tone-blue { --tone: #0f74b3; --tone-bg: #eaf6fe; --tone-bd: #d3ebfa; }
.tone-amber { --tone: #b3720a; --tone-bg: #fff5e0; --tone-bd: #ffe3ab; }
.tone-orange { --tone: #d64a1c; --tone-bg: #fff0e9; --tone-bd: #ffd9c9; }
.tone-violet { --tone: #5b3fe0; --tone-bg: #f1eeff; --tone-bd: #ddd6ff; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.92em 1.65em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 55%, var(--blue-700) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow: var(--shadow-blue);
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease, background 0.22s ease,
    color 0.18s ease, border-color 0.18s ease;
}
.btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -20px rgba(15, 116, 179, 0.7);
}
.btn:active { transform: translateY(0); }

.btn-arrow { transition: transform 0.22s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-ghost {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--heading);
  box-shadow: var(--shadow-1);
}
.btn-ghost:hover {
  border-color: var(--blue-400);
  color: var(--blue-700);
  box-shadow: 0 16px 32px -24px rgba(15, 116, 179, 0.6);
}

.btn-sm { padding: 0.62em 1.15em; font-size: 0.86rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 1.9em 0 0;
}

/* ------------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px -38px rgba(7, 21, 35, 0.8);
}

/* scroll progress, driven by JS */
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue-500), var(--amber), var(--orange));
  border-radius: 0 2px 2px 0;
  transition: width 0.08s linear;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: clamp(130px, 12vw, 156px); height: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list li { margin: 0; }
.nav-list a {
  position: relative;
  display: block;
  padding: 8px 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  transition: right 0.26s var(--ease);
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { right: 0; }
.nav-list a[aria-current="page"] { color: var(--blue-600); }

/* the header action stays quiet so the hero keeps the only primary button */
.nav-cta {
  margin-left: 4px;
  background: #fff;
  color: var(--heading);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-1);
}
.nav-cta:hover {
  background: #fff;
  color: var(--blue-700);
  border-color: var(--blue-400);
  box-shadow: 0 14px 28px -22px rgba(15, 116, 179, 0.7);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 42px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  display: block;
  width: 18px; height: 1.6px;
  border-radius: 2px;
  background: var(--heading);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle-bar::before { transform: translateY(-5.5px); }
.nav-toggle-bar::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: rotate(-45deg) translateY(-1px); }

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #f5faff 0%, #ffffff 70%);
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(38px, 4.6vw, 72px);
  padding-top: clamp(46px, 5vw, 76px);
  padding-bottom: clamp(58px, 6.4vw, 96px);
}

.hero-copy { max-width: 34rem; }
.hero-title {
  margin-bottom: 0.42em;
  font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
}
/* highlighter sweep behind a word, not a gradient headline */
.hl {
  position: relative;
  white-space: nowrap;
  background: linear-gradient(180deg, transparent 58%, rgba(255, 176, 32, 0.55) 58%, rgba(255, 176, 32, 0.4) 94%, transparent 94%);
  padding: 0 0.06em;
}
.hero-copy .lede { margin-top: 0.4em; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 1.6em 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
}
.hero-tags li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-tags span { color: var(--amber); font-size: 0.9em; }

.hero-visual { position: relative; }

.hero-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}

/* slim gradient bezel around the photo */
.hero-shot {
  margin: 0;
  padding: 4px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, #2aa6e0 0%, #8fd3f2 42%, #ffc24d 100%);
  box-shadow: var(--shadow-2);
}
.hero-shot .hero-photo { margin: 0; }
.hero-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: calc(var(--r-xl) - 4px);
}

/* small overlapping print, slightly tilted */
.hero-float {
  position: absolute;
  right: -16px;
  top: -22px;
  width: clamp(92px, 10vw, 124px);
  margin: 0;
  padding: 5px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  transform: rotate(6deg);
  transition: transform 0.4s var(--ease);
}
.hero-stack:hover .hero-float { transform: rotate(1deg) translateY(-4px); }
.hero-float img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 15px;
}

.hero-partner {
  position: absolute;
  left: -22px;
  bottom: -26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 18px 15px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(8px);
}
.hero-partner-logo { display: block; width: 116px; height: auto; }
.hero-partner-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------------- ribbon */

.ribbon {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ribbon-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.ribbon-word {
  font-family: var(--font-display);
  font-size: clamp(0.86rem, 1.1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
}
.ribbon-star { color: var(--amber); font-size: 0.8em; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------- inner page heads */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #f3faff 0%, #ffffff 78%);
  border-bottom: 1px solid var(--border);
}
.page-hero .wrap { position: relative; z-index: 1; }
/* the home hero carries the full colour field; inner pages keep a single soft
   wash so the title never sits on a warm smudge */
.page-hero .blob-amber { display: none; }
.page-hero-inner {
  padding-top: clamp(50px, 5.6vw, 84px);
  padding-bottom: clamp(44px, 5.2vw, 68px);
}
.page-hero .page-title {
  max-width: 22ch;
  margin-bottom: 0.4em;
}
.page-hero .lede + .lede { margin-top: -0.35em; }
.page-hero .lede + p:not(.lede):not(.hero-actions) { max-width: 58ch; }
.page-hero-media { padding-bottom: clamp(40px, 5.5vw, 68px); }

/* ------------------------------------------------------------------ sections */

.section { padding: var(--section-y) 0; }
.section-tint { background: var(--tint-cool); border-block: 1px solid var(--border); }
.section-cool { background: linear-gradient(180deg, var(--tint-blue) 0%, var(--canvas) 62%); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(34px, 4vw, 58px);
}
.section-head .lede { margin-bottom: 0.8em; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
  flex-wrap: wrap;
}

.section-title { margin-bottom: 0.45em; }

.section-outro {
  max-width: 46ch;
  margin: 1.6em 0 0;
  padding: 2px 0 2px 22px;
  border-left: 3px solid var(--amber);
  color: var(--body);
  font-size: 0.98rem;
}

/* -------------------------------------------------------------------- split */

.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
}
.split-copy { max-width: 52ch; }
.split-media { margin: 0; }

/* the source node-map is drawn in near-white grey; inverted + screened onto a
   navy panel the network reads instead of looking like an empty box */
.map-panel {
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(110% 130% at 84% 8%, rgba(42, 166, 224, 0.34), rgba(42, 166, 224, 0) 58%),
    linear-gradient(155deg, #123a55, var(--ink));
  box-shadow: var(--shadow-2);
}
.map-figure { margin: 0; }
.map-figure img {
  border-radius: calc(var(--r-lg) - 12px);
  filter: invert(1) hue-rotate(180deg) brightness(2.5) saturate(1.6);
  mix-blend-mode: screen;
}

/* ------------------------------------------------------------- statement band */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(58px, 7vw, 104px) 0;
  /* amber over mid-blue mixes to a sickly green, so the band stays in the blue
     family and the warm accent lives on the rule and the mark */
  background:
    radial-gradient(72% 130% at 88% 4%, rgba(42, 166, 224, 0.5), rgba(42, 166, 224, 0) 58%),
    linear-gradient(118deg, #062a44 0%, var(--blue-700) 42%, var(--blue-600) 100%);
  color: #fff;
}
.band-glow {
  position: absolute;
  z-index: 0;
  left: -12%;
  bottom: -62%;
  width: 46vw; height: 46vw;
  max-width: 560px; max-height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.28), rgba(124, 92, 255, 0) 68%);
  filter: blur(34px);
}
.band-inner { position: relative; z-index: 1; text-align: center; }
.band-mark {
  display: block;
  width: 52px; height: 52px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -90deg at 50% 50%,
    #fff 0 3deg,
    rgba(255, 255, 255, 0) 3deg 30deg
  );
  -webkit-mask-image: radial-gradient(closest-side, transparent 0 26%, #000 30% 74%, transparent 80%);
  mask-image: radial-gradient(closest-side, transparent 0 26%, #000 30% 74%, transparent 80%);
}
.band-title {
  max-width: 20ch;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(1.7rem, 1.2rem + 2.3vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
.band-title::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin: 28px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(255, 176, 32, 0.2));
}

/* -------------------------------------------------------------------- cards */

.cards { display: grid; gap: clamp(16px, 1.8vw, 24px); }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-dense { grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); }
.cards-team { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* pointer-tracked highlight (JS sets --mx/--my) */
[data-spot] { position: relative; }
[data-spot]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(15, 116, 179, 0.09), transparent 72%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
[data-spot]:hover::after { opacity: 1; }

.card {
  position: relative;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-100);
  box-shadow: var(--shadow-2);
}
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.5em; }
.card-actions { margin: 1.5em 0 0; }

/* home: the two practice panels */
.card-service {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card-service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tone, var(--blue-600)), color-mix(in srgb, var(--tone, var(--blue-600)) 20%, white));
}
.card-service h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); }
.card-service .card-actions { margin-top: auto; padding-top: 1.4em; }

/* qa services taxonomy */
.card-service-tile { padding: clamp(20px, 2.2vw, 26px); border-radius: var(--r); }
.card-service-tile h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.55em;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card-service-tile h3::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 3px;
  background: linear-gradient(140deg, var(--amber), var(--orange));
}
.card-service-tile p { margin-bottom: 0; font-size: 0.95rem; }

/* people */
.card-person { display: flex; flex-direction: column; }
.person-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px -14px rgba(15, 116, 179, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.person-name { margin-bottom: 0.15em; font-size: 1.13rem; }
.person-role {
  margin: 0 0 1.05em;
  padding-bottom: 1.05em;
  border-bottom: 1px solid var(--border);
  color: var(--blue-600);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card-person p:last-child { font-size: 0.96rem; }

/* ----------------------------------------------------------------- photo rail */

.rail-band {
  position: relative;
  margin: clamp(30px, 4vw, 54px) 0;
}
.rail {
  display: flex;
  gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 8px var(--gutter) 22px;
  scrollbar-width: none;
  cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail-item {
  flex: 0 0 clamp(260px, 34vw, 520px);
  margin: 0;
  scroll-snap-align: center;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  background: var(--tint-cool);
}
.rail-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.6s var(--ease), filter 0.4s ease;
}
.rail-item:hover img { transform: scale(1.045); }
.rail-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.rail-btn {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--heading);
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ease),
    color 0.2s ease, opacity 0.2s ease;
}
.rail-btn:hover { border-color: var(--blue-400); background: var(--blue-50); transform: translateY(-1px); }
.rail-btn[disabled] { opacity: 0.35; cursor: default; transform: none; }
.rail-hint {
  margin-left: 6px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------- method / steps */

.method-head { margin-bottom: 20px; }
.method-foot { margin-top: clamp(24px, 3vw, 36px); }
.method-foot .section-outro { max-width: 62ch; }

.steps {
  display: grid;
  gap: 10px;
}
.step {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.step:hover { border-color: var(--blue-100); }
.step.is-open {
  border-color: transparent;
  box-shadow: var(--shadow-2);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}
.step-h { margin: 0; }
.step-btn {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 22px);
  width: 100%;
  padding: 20px clamp(18px, 2.2vw, 26px);
  background: none;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--heading);
}
.step-num {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--muted);
  transition: color 0.25s ease;
}
.step.is-open .step-num {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step-label {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.step-tick {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}
.step-tick::before,
.step-tick::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.6px;
  border-radius: 2px;
  background: var(--heading);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background 0.25s ease;
}
.step-tick::after { transform: translate(-50%, -50%) rotate(90deg); }
.step.is-open .step-tick { background: var(--heading); border-color: var(--heading); }
.step.is-open .step-tick::before { background: #fff; transform: translate(-50%, -50%) rotate(180deg); }
.step.is-open .step-tick::after { background: #fff; transform: translate(-50%, -50%) rotate(180deg); }

.step-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease);
}
.step.is-open .step-body { grid-template-rows: 1fr; }
.step-inner { overflow: hidden; }
.step-inner p {
  max-width: 78ch;
  margin: 0;
  padding: 0 clamp(18px, 2.2vw, 26px) 24px calc(clamp(18px, 2.2vw, 26px) + 46px);
  font-size: 0.99rem;
  color: var(--body);
}

/* --------------------------------------------------------------------- bento */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 1.7vw, 22px);
}
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 38px);
  border-radius: var(--r-lg);
  background: var(--tone-bg, #fff);
  border: 1px solid var(--tone-bd, var(--border));
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.bento-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tone, #0f74b3) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.bento-card .tile-icon { background: #fff; }
.bento-card h3 { position: relative; font-size: clamp(1.12rem, 1rem + 0.55vw, 1.38rem); }
.bento-card p { position: relative; margin-bottom: 0; font-size: 0.97rem; }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }

/* ------------------------------------------------------------------ partners */

.partners { background: var(--tint-warm); border-top: 1px solid #ffe9c4; }
.logo-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(10px, 1.3vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-grid li {
  /* fourteen logos: 128px basis lands them 7 x 2 with no orphan row */
  flex: 1 1 128px;
  max-width: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  margin: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(255, 227, 171, 0.9);
  border-radius: var(--r-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.logo-grid li:hover {
  transform: translateY(-3px);
  border-color: var(--amber);
  box-shadow: var(--shadow-1);
}
.partner-logo {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.62;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.logo-grid li:hover .partner-logo { filter: none; opacity: 1; }

/* -------------------------------------------------------------------- subnav */

.subnav { margin-top: clamp(26px, 3vw, 38px); }
.subnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.subnav li { margin: 0; }
.subnav a {
  display: inline-block;
  padding: 9px 17px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 500;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.subnav a:hover { border-color: var(--blue-400); background: var(--blue-50); color: var(--blue-700); }

/* ------------------------------------------------------------------- contact */

.contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 3vw, 38px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--amber), var(--orange));
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.contact-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.contact-label {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-list a {
  color: var(--heading);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.contact-list a:hover { color: var(--blue-600); }
.contact-card-wide { max-width: 460px; margin: 0 auto; text-align: left; }

/* ---------------------------------------------------------------------- jobs */

.job {
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(26px, 3.4vw, 50px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
}
.job-heading { margin-bottom: 0.45em; }
.job-heading:not(:first-child) {
  margin-top: 2em;
  color: var(--blue-600);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.job-text { max-width: 68ch; }
.job-text-intro { color: var(--ink); font-size: 1.06rem; }
.job-text:last-of-type { margin-bottom: 0; }
.job .hero-actions { margin-top: 2.2em; padding-top: 26px; border-top: 1px solid var(--border); }

/* ------------------------------------------------------------------ pictures */

.frame { margin: 0; }
.frame img { display: block; width: 100%; height: auto; border-radius: var(--r); }

.media-banner img {
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  max-height: 520px;
  object-fit: cover;
}
.inline-mark { margin: 0 0 18px; }
.inline-mark img {
  width: clamp(40px, 5vw, 50px);
  filter: brightness(0) saturate(100%) invert(36%) sepia(62%) saturate(1466%)
    hue-rotate(172deg) brightness(93%) contrast(94%);
}
.landing-logo { display: flex; justify-content: center; margin: 0 0 28px; }
.landing-logo img { width: clamp(170px, 26vw, 226px); }

/* ------------------------------------------------------------------- landing */

.page-hero.landing { text-align: center; }
.page-hero.landing .page-hero-inner {
  padding-top: clamp(52px, 6.4vw, 90px);
  padding-bottom: clamp(50px, 6.2vw, 84px);
}
.page-hero.landing .page-title { max-width: none; }
.thanks {
  margin: 0 0 0.4em;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1rem + 0.55vw, 1.3rem);
  font-weight: 500;
}
.thanks a { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------------- footer */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #0a1c2c 0%, var(--ink) 100%);
  color: rgba(255, 255, 255, 0.74);
  padding: clamp(54px, 6vw, 88px) 0 28px;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--amber), var(--orange));
}
.site-footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -8%; bottom: -40%;
  width: 46vw; height: 46vw;
  max-width: 520px; max-height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 166, 224, 0.22), rgba(42, 166, 224, 0) 68%);
  filter: blur(24px);
}
.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 64px);
}
.footer-brand img {
  width: 164px;
  height: auto;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
}
.footer-tagline {
  margin: 18px 0 0;
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.94rem;
}
.footer-cta { margin-top: 24px; }
.footer-head {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.74); font-size: 0.95rem; }
.site-footer a:hover { color: var(--amber); }
.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(34px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-base p { margin: 0; }

/* -------------------------------------------------------------------- motion */

/* Reveals hide only when JS is present, so a script failure can never blank
   the page. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-visual,
  .page-hero-inner,
  .page-hero-media {
    animation: rise 0.7s var(--ease) both;
  }
  .hero-visual, .page-hero-media { animation-delay: 0.09s; }
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(46px, 7vw, 64px); }
  .hero-copy { max-width: 40rem; }
  .hero-stack { margin-left: 0; max-width: 560px; }
  .hero-float { right: 10px; }
  .split-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px var(--gutter) 24px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
  }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-list a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav-list a::after { display: none; }
  .nav-cta { margin-top: 18px; align-self: flex-start; }
  .span-7, .span-5 { grid-column: span 12; }
}

@media (max-width: 640px) {
  :root { --section-y: clamp(54px, 12vw, 76px); }
  .hero-partner { left: 10px; bottom: -22px; padding: 12px 15px 13px; }
  .hero-partner-logo { width: 100px; }
  .hero-partner-note { font-size: 0.58rem; }
  .hero-float { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .rail-item { flex-basis: 82vw; }
  .step-inner p { padding-left: clamp(18px, 2.2vw, 26px); }
  .logo-grid li { flex-basis: 130px; min-height: 82px; padding: 13px 15px; }
  .media-banner img { max-height: 320px; }
  .hero-tags { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy, .hero-visual, .page-hero-inner, .page-hero-media { animation: none; }
  .ribbon-track { animation: none; }
  .btn:hover, .card:hover, .bento-card:hover,
  .logo-grid li:hover, .rail-item:hover img, .hero-stack:hover .hero-float { transform: none; }
  * { transition-duration: 0.001ms !important; }
}

@media print {
  .site-header, .site-footer, .ribbon, .hero-bg, .hero-partner,
  .rail-controls, .hero-actions .btn { display: none; }
  body { color: #000; font-size: 11pt; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
  .card, .job, .contact-card, .bento-card { box-shadow: none; border-color: #ccc; }
}
