:root {
  --ink: #0B1B2B;
  --navy: #10283B;
  --navy-2: #163449;
  --teal: #1BA39C;
  --teal-ink: #0B7069;
  --teal-soft: #CFEDEA;
  --paper: #F4F1EA;
  --paper-2: #EAE5DA;
  --text: #13212E;
  --muted: #4E5B66;
  --muted-dark: #A9B7C2;
  --line: rgba(19, 33, 46, .14);
  --line-dark: rgba(244, 241, 234, .14);

  --f-display: "Bricolage Grotesque", Georgia, serif;
  --f-body: "Instrument Sans", "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", Consolas, monospace;

  --radius: 18px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.02; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
.mono { font-family: var(--f-mono); font-size: .78rem; letter-spacing: .02em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--teal); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.4rem; border-radius: 999px;
  background: var(--teal); color: var(--ink);
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s, box-shadow .3s, color .3s;
  cursor: pointer; font-family: inherit; font-size: 1rem;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(27, 163, 156, .7); }
.btn:hover span { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--teal); box-shadow: none; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--navy-2); box-shadow: 0 10px 30px -12px rgba(11, 27, 43, .6); }
.btn-small { padding: .6rem 1.1rem; font-size: .92rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 27, 43, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--paper); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; }
.brand-mark img { width: 42px; height: 42px; }
/* Poppins SemiBold matches the official "Yashmitra" wordmark */
.brand-word { font-family: "Poppins", var(--f-body); font-weight: 600; font-size: 1.45rem; line-height: 1; letter-spacing: -.01em; }
.brand-word small {
  display: block; font-family: var(--f-mono); font-weight: 400; font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-top: .3rem;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links > li > a:not(.btn), .menu-trigger {
  color: var(--paper); text-decoration: none; font-size: .95rem; opacity: .82;
  position: relative; transition: opacity .2s;
}
.nav-links > li > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links > li > a:not(.btn):hover, .menu-trigger:hover, .nav-links [aria-current="page"] { opacity: 1; }
.nav-links > li > a:not(.btn):hover::after, .nav-links > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Services mega menu ---------- */
.menu-trigger {
  display: inline-flex; align-items: center; gap: .45rem; background: none; border: 0; padding: 0;
  font-family: inherit; cursor: pointer;
}
.menu-trigger.is-current { opacity: 1; }
.chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
.menu-trigger[aria-expanded="true"] { opacity: 1; color: var(--teal); }
.menu-trigger[aria-expanded="true"] .chev { transform: translateY(1px) rotate(-135deg); }
.site-header:has(.has-menu.open) { background: var(--ink); border-bottom-color: var(--line-dark); }

.mega {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 2;
  background: var(--paper); color: var(--text);
  border-top: 3px solid var(--teal);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
  transition: opacity .22s, transform .3s var(--ease), visibility .3s;
  max-height: calc(100vh - 76px); overflow-y: auto;
}
.has-menu.open .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mega-scrim {
  position: fixed; inset: 76px 0 0 0; z-index: -1; background: rgba(6, 14, 24, .35);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.site-header:has(.has-menu.open) .mega-scrim { opacity: 1; visibility: visible; }

/* Compact, fixed-height body: columns 2 and 3 scroll internally instead of growing the menu. */
.mega { --mm-h: clamp(300px, calc(55vh - 100px), 350px); }
.mega-inner { padding-block: 1rem; }
.mm-groups { position: relative; height: var(--mm-h); }
.mm-group { width: 280px; }
.mm-tab {
  width: 100%; display: flex; align-items: center; gap: .7rem; text-align: left;
  padding: .4rem .7rem; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: inherit; color: var(--text); transition: background .2s, color .2s;
}
.mm-icon { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 8px; background: var(--paper-2); color: var(--teal-ink); transition: background .2s, color .2s; }
.mm-tab-text { flex: 1; min-width: 0; line-height: 1.2; white-space: nowrap; }
.mm-tab-text strong { font-family: var(--f-display); font-weight: 600; font-size: .95rem; }
.mm-tab-arrow { width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0; transition: opacity .2s, transform .3s var(--ease); }
.mm-tab:hover { background: var(--paper-2); }
.mm-group.is-active .mm-tab { background: var(--ink); color: var(--paper); }
.mm-group.is-active .mm-icon { background: var(--teal); color: var(--ink); }
.mm-group.is-active .mm-tab-text small { color: var(--muted-dark); }
.mm-group.is-active .mm-tab-arrow { opacity: 1; transform: translateX(2px) rotate(45deg); }

/* Column 2: sub-categories of the active practice */
.mm-panel {
  position: absolute; top: 0; left: 296px; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  padding-left: 1.25rem; border-left: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateX(8px);
  transition: opacity .2s, transform .25s var(--ease), visibility .25s;
}
/* Scoped to .open: otherwise these "visible" children escape the closed menu's hidden state and catch hover/focus. */
.has-menu.open .mm-group.is-active .mm-panel { opacity: 1; visibility: visible; transform: none; }
.mm-practice-link {
  flex: none; display: block; width: 270px; padding: .2rem .7rem .55rem; margin-bottom: .25rem; border-bottom: 1px dashed var(--line);
  font-family: var(--f-display); font-weight: 600; font-size: .95rem; line-height: 1.25; color: var(--teal-ink); text-decoration: none;
}
.mm-practice-link span { display: inline-block; transition: transform .3s var(--ease); }
.mm-practice-link:hover span { transform: translateX(4px); }
.mm-subs { flex: 1; min-height: 0; width: 270px; overflow-y: auto; overscroll-behavior: contain; }
.mm-subtab {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .7rem; text-align: left;
  padding: .4rem .7rem; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font: inherit; font-size: .86rem; font-weight: 500; line-height: 1.3; color: var(--text); transition: background .2s, color .2s;
}
.mm-subtab em { flex: none; font-style: normal; font-size: .64rem; color: var(--muted); padding: .05rem .4rem; border-radius: 999px; background: var(--paper-2); }
.mm-subtab:hover { background: var(--paper-2); }
.mm-sub.is-active .mm-subtab { background: var(--paper-2); color: var(--teal-ink); box-shadow: inset 3px 0 0 var(--teal); }
.mm-sub.is-active .mm-subtab em { background: var(--teal); color: var(--ink); }

/* Column 3: services of the active sub-category */
.mm-services {
  position: absolute; top: 0; bottom: 0; left: calc(1.25rem + 270px + 1.25rem); right: 0;
  padding-left: 1.25rem; border-left: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s;
}
/* Must include .mm-group.is-active: every practice keeps an active sub-category, and without this their invisible
   services columns stack on top of the visible one and swallow clicks. */
.has-menu.open .mm-group.is-active .mm-sub.is-active .mm-services { opacity: 1; visibility: visible; }
.mm-services-head {
  position: sticky; top: 0; z-index: 1; background: var(--paper);
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .2rem 0 .5rem; margin-bottom: .3rem; border-bottom: 1px dashed var(--line);
}
.mm-services-head strong { font-family: var(--f-display); font-weight: 600; font-size: .95rem; line-height: 1.25; }
.mm-services-head strong em { font-style: normal; font-family: var(--f-mono); font-size: .66rem; font-weight: 400; color: var(--muted); margin-left: .4rem; }
.mm-explore { flex: none; font-weight: 600; font-size: .86rem; color: var(--teal-ink); text-decoration: none; white-space: nowrap; }
.mm-explore span { display: inline-block; transition: transform .3s var(--ease); }
.mm-explore:hover span { transform: translateX(4px); }
.mm-svc-list { display: grid; gap: 0 1rem; }
.mm-svc-list.is-two { grid-template-columns: 1fr 1fr; }
.mm-svc-list a {
  display: block; position: relative; padding: .28rem .4rem .28rem 1rem; border-radius: 6px;
  font-size: .84rem; line-height: 1.3; text-decoration: none; transition: background .2s, color .2s;
}
.mm-svc-list a::before { content: ""; position: absolute; left: .25rem; top: .75em; width: 6px; height: 5px; background: var(--teal); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.mm-svc-list a:hover { background: var(--paper-2); color: var(--teal-ink); }
.mm-subs, .mm-services { scrollbar-width: thin; scrollbar-color: rgba(19, 33, 46, .25) transparent; }
/* Fades hint that a column scrolls (class toggled by script.js only while more content is below).
   .mm-subs can't use a mask: it would also clip column 3, which is positioned outside it. */
.mm-services { padding-bottom: .6rem; }
.mm-services.has-more { -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.mm-subs { padding-bottom: .4rem; }
.mm-subs.has-more::after { content: ""; position: sticky; bottom: -.4rem; display: block; height: 28px; margin-top: -28px; background: linear-gradient(rgba(244, 241, 234, 0), var(--paper)); pointer-events: none; }

.mega-foot { background: var(--paper-2); border-top: 1px solid var(--line); }
.mega-foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: .55rem; flex-wrap: wrap; }
.mega-foot p { font-size: .86rem; color: var(--muted); }
.mega-foot p strong { color: var(--text); }
.mm-quick { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.mm-quick a:not(.btn) { font-size: .86rem; font-weight: 500; text-decoration: none; }
.mm-quick a:not(.btn):hover { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 4px; }
.mm-quick .btn { padding: .45rem .95rem; font-size: .86rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, #0C192A 0%, #0F2234 60%, #112A3D 100%);
  color: var(--paper);
  padding-top: 76px;
}
/* Diagonal shards + dot texture, taken from the official X/Facebook banner */
.hero-shards { position: absolute; inset: 0; pointer-events: none; }
.hero-shards::before {
  content: ""; position: absolute; top: 0; right: 0; width: 46%; height: 100%;
  background-image: radial-gradient(rgba(244, 241, 234, .13) 1px, transparent 1.2px);
  background-size: 16px 16px;
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.hero-shards span { position: absolute; right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.hero-shards span:first-child { top: 0; width: 34%; height: 62%; background: #10394A; opacity: .75; }
.hero-shards span:last-child { top: 44%; width: 13%; height: 26%; background: #0F4F57; opacity: .9; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: end;
  min-height: min(calc(100vh - 76px - 110px), 700px); padding-top: 5rem;
}
.hero-copy { padding-bottom: 4.5rem; }
.hero-intro {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: "Poppins", var(--f-body); font-weight: 600; font-size: .95rem; color: var(--muted-dark);
}
.hero-intro::before {
  content: ""; width: 14px; height: 9px; background: #00918C; clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.hero h1 {
  font-size: clamp(3.1rem, 8vw, 7.2rem); font-weight: 800; line-height: .96; letter-spacing: -.03em;
  margin: 1.4rem 0 1.8rem;
}
.hero h1 .stop { color: var(--teal); }
.lede { max-width: 33rem; color: var(--muted-dark); font-size: 1.15rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-top: 2.2rem; }
.text-link {
  color: var(--paper); text-decoration: underline; text-decoration-color: var(--teal);
  text-decoration-thickness: 2px; text-underline-offset: 6px; font-weight: 600;
  transition: color .2s;
}
.text-link:hover { color: var(--teal); }

.hero-mark { width: min(100%, 400px); justify-self: end; align-self: end; overflow: visible; translate: 0 3.7%; }
.hero-mark .hm-a, .hero-mark .hm-b, .hero-mark .hm-c, .hero-mark .hm-d, .hero-mark .hm-tri {
  transform-box: fill-box; opacity: 0; animation: assemble .9s var(--ease) forwards;
}
.hero-mark .hm-c { --from: -40px, 0; animation-delay: .25s; }
.hero-mark .hm-d { --from: 40px, 0; animation-delay: .35s; }
.hero-mark .hm-a { --from: -30px, -30px; animation-delay: .5s; }
.hero-mark .hm-b { --from: 30px, -30px; animation-delay: .6s; }
.hero-mark .hm-tri { --from: 0, -40px; animation-delay: .85s; }

.hero-foot {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem;
  border-top: 1px solid var(--line-dark); padding-block: 1.5rem 2rem;
}
.hero-foot p { display: grid; gap: .35rem; font-size: .98rem; color: var(--paper); }
.hero-foot .mono { color: var(--muted-dark); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; }

/* ---------- Sections ---------- */
section { position: relative; }
.section-light { background: var(--paper); color: var(--text); padding-block: clamp(5rem, 10vw, 8rem); }
.section-dark { background: var(--ink); color: var(--paper); padding-block: clamp(5rem, 10vw, 8rem); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: 3.5rem; }
.section-head .kicker { grid-column: 1 / -1; }
.section-head h2:last-child { grid-column: 1 / -1; }
.kicker {
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-ink); margin-bottom: 1rem;
}
.section-dark .kicker, .on-dark .kicker { color: var(--teal); }
.section-sub { color: var(--muted); max-width: 32rem; font-size: 1.08rem; }

.section-alt { background: var(--paper-2); color: var(--text); padding-block: clamp(5rem, 10vw, 8rem); }
.on-dark-sub { color: var(--muted-dark); }
.section-sub a { color: var(--teal-ink); text-underline-offset: 4px; }

/* Practices (home) */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.practice {
  position: relative; background: var(--paper); padding: 1.8rem 1.7rem 1.6rem;
  display: flex; flex-direction: column; gap: .9rem; min-height: 380px;
}
.practice-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.practice-icon { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--paper-2); color: var(--teal-ink); transition: background .3s, color .3s; }
.practice:hover .practice-icon { background: var(--ink); color: var(--teal); }
.practice:hover { background: #FFFDF8; }
.practice-link { position: absolute; inset: 0; z-index: 1; }
.practice-link:focus-visible { outline-offset: -4px; border-radius: 22px; }
.practice-no { color: var(--teal-ink); }
.practice h3 { font-size: 1.55rem; font-weight: 800; line-height: 1.08; }
.practice > p { color: var(--muted); font-size: .95rem; }
.practice-services { display: grid; gap: .35rem; margin-top: .3rem; font-size: .9rem; }
.practice-services li { padding-left: 1rem; position: relative; }
.practice-services li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--teal); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.practice-services .more { color: var(--muted); }
.practice-services .more::before { display: none; }
.practice-cta { margin-top: auto; font-weight: 600; display: inline-flex; gap: .4rem; }
.practice-cta span { transition: transform .3s var(--ease); }
.practice:hover .practice-cta { color: var(--teal-ink); }
.practice:hover .practice-cta span { transform: translateX(4px); }
.practice-cta-card { background: var(--ink); color: var(--paper); justify-content: flex-start; }
.practice-cta-card:hover { background: var(--navy); }
.practice-cta-card .practice-no { color: var(--teal); }
.practice-cta-card > p { color: var(--muted-dark); }
.practice-cta-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; position: relative; z-index: 2; }

/* Text link on light backgrounds */
.text-link-dark { color: var(--text); text-decoration-color: var(--teal-ink); }
.text-link-dark:hover { color: var(--teal-ink); }
.industry-more { margin-top: 2rem; }

/* Engagement models */
.engage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.engage-grid li { background: var(--paper); padding: 1.6rem 1.5rem 1.8rem; display: grid; gap: .55rem; align-content: start; transition: background .3s; }
.engage-grid li:hover { background: #FFFDF8; }
.engage-grid .mono { color: var(--teal-ink); }
.engage-grid h3 { font-size: 1.2rem; }
.engage-grid p { color: var(--muted); font-size: .93rem; }

/* Industries */
.industry-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; border-top: 1px solid var(--line); }
.industry-list li {
  display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.industry-list .mono { color: var(--teal-ink); padding-top: .3rem; grid-row: span 2; }
.industry-list h3 { font-size: 1.25rem; }
.industry-list p { color: var(--muted); font-size: .95rem; margin-top: .25rem; }

/* Packages */
.package-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
.package {
  position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 2rem 1.6rem;
  border: 1px solid var(--line-dark); border-radius: 20px; background: rgba(16, 40, 59, .5);
}
.package h3 { font-size: 2rem; font-weight: 800; }
.package-for { color: var(--teal); font-weight: 500; margin-top: -.5rem; }
.package ul { display: grid; gap: .55rem; margin-bottom: .5rem; }
.package li { padding-left: 1.5rem; position: relative; color: var(--muted-dark); font-size: .95rem; }
.package li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.package > p:not(.package-for) { color: var(--muted-dark); }
.package .btn { margin-top: auto; justify-content: center; }
.package.is-featured { background: var(--paper); color: var(--text); border-color: var(--paper); }
.package.is-featured .package-for { color: var(--teal-ink); }
.package.is-featured li { color: var(--text); }
.package.is-featured li::before { border-color: var(--teal-ink); }
.package-flag { position: absolute; top: -.75rem; left: 1.6rem; background: var(--teal); color: var(--ink); padding: .25rem .6rem; border-radius: 6px; font-weight: 500; }
.package-custom { border-style: dashed; background: transparent; }

/* Tech stack */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.tech-group { background: var(--paper-2); padding: 1.5rem; }
.tech-group h3 { color: var(--teal-ink); text-transform: uppercase; letter-spacing: .14em; font-weight: 500; margin-bottom: 1rem; font-size: .72rem; }
.tech-group ul { display: flex; flex-wrap: wrap; gap: .45rem; }
.tech-group li { font-size: .88rem; padding: .35rem .75rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }

/* FAQ */
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.faq-inner > header { position: sticky; top: 110px; display: grid; gap: 1rem; }
.faq-inner > header .kicker { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-ink); }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq p { color: var(--muted); padding: 0 3rem 1.5rem 0; max-width: 46rem; }

/* Inner page hero */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(100deg, #0C192A 0%, #0F2234 60%, #112A3D 100%); color: var(--paper); padding-top: 76px; }
.page-hero-inner { position: relative; z-index: 1; padding-block: 4.5rem 5rem; }
.page-hero-inner.has-aside { display: grid; grid-template-columns: 1.3fr .7fr; gap: 4rem; align-items: center; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 1.1rem 0 1.4rem; }
.page-hero .lede { max-width: 38rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--muted-dark); margin-bottom: 2rem; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.crumbs a { color: var(--muted-dark); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.crumbs [aria-current] { color: var(--paper); }
.hero-index { background: rgba(12, 25, 42, .7); border: 1px solid var(--line-dark); border-radius: 18px; padding: 1.4rem; backdrop-filter: blur(6px); }
.hero-index > p { color: var(--teal); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; margin-bottom: .8rem; }
.hero-index ol { display: grid; }
.hero-index a { display: flex; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line-dark); color: var(--paper); text-decoration: none; font-size: .92rem; transition: color .2s, padding .3s var(--ease); }
.hero-index a:hover { color: var(--teal); padding-left: .3rem; }
.hero-index .mono { color: var(--muted-dark); padding-top: .15rem; }
.hero-index .hi-name { flex: 1; }
.hero-index .hi-count { color: var(--teal); }

/* Services hub */
.jump-bar { position: sticky; top: 76px; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.jump { display: flex; gap: .4rem; overflow-x: auto; padding-block: .8rem; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump a { display: inline-flex; gap: .5rem; align-items: center; white-space: nowrap; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; transition: background .2s, color .2s; }
.jump a span { font-family: var(--f-mono); font-size: .72rem; color: var(--teal-ink); }
.jump a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.jump a:hover span { color: var(--teal); }
/* Full catalogue (services.html) */
.catalog-block { scroll-margin-top: 140px; }
.catalog-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 4rem; align-items: end; margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.catalog-head .kicker { margin-bottom: .8rem; }
.catalog-head h2 { display: flex; align-items: center; gap: 1rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.catalog-icon { flex: none; width: 54px; height: 54px; padding: 11px; border-radius: 14px; background: var(--ink); color: var(--teal); }
.catalog-head > div:last-child { display: grid; gap: 1rem; justify-items: start; }
.catalog-cols { columns: 3; column-gap: 1.25rem; }
.catalog-card {
  break-inside: avoid; margin-bottom: 1.25rem; padding: 1.5rem; border-radius: 18px;
  background: #FFFDF8; border: 1px solid var(--line);
}
.section-alt .catalog-card { background: var(--paper); }
.catalog-card h3 { font-size: 1.2rem; line-height: 1.2; }
.catalog-card h3 a { text-decoration: none; }
.catalog-card h3 a:hover { color: var(--teal-ink); }
.catalog-card > .mono { color: var(--teal-ink); margin: .35rem 0 1rem; }
.catalog-items { display: grid; gap: .45rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.catalog-items li, .svc-items li { position: relative; padding-left: 1.1rem; font-size: .9rem; line-height: 1.4; }
.catalog-items li::before, .svc-items li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 6px; background: var(--teal);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Practice page: category sections */
.cat-section { scroll-margin-top: 140px; }
.cat-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
.cat-head { position: sticky; top: 150px; display: grid; gap: 1.1rem; justify-items: start; }
.cat-head .kicker { margin-bottom: 0; }
.cat-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.svc-items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; border-top: 1px solid var(--line); }
.svc-items li { padding: 1rem 0 1rem 1.4rem; border-bottom: 1px solid var(--line); font-size: 1rem; font-weight: 500; transition: color .2s, padding .3s var(--ease); }
.svc-items li::before { top: 1.45em; width: 8px; height: 7px; }
.svc-items li:hover { color: var(--teal-ink); padding-left: 1.7rem; }
.svc-items li { scroll-margin-top: 150px; }
.svc-items li:target { color: var(--teal-ink); background: linear-gradient(90deg, rgba(27, 163, 156, .14), transparent 80%); padding-left: 1.7rem; }
/* Practice pages with service pages enabled: each service is a link with its summary */
.svc-items.is-linked { grid-template-columns: 1fr; }
.svc-items.is-linked li { padding: 0; font-weight: 400; }
.svc-items.is-linked li::before { top: 1.6em; left: .1rem; }
.svc-items.is-linked li:hover, .svc-items.is-linked li:target { padding-left: 0; }
.svc-items.is-linked a { display: grid; gap: .25rem; padding: 1rem .5rem 1rem 1.5rem; text-decoration: none; transition: background .2s, padding .3s var(--ease); }
.svc-items.is-linked strong { font-weight: 600; font-size: 1.02rem; }
.svc-items.is-linked span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.svc-items.is-linked a:hover { background: rgba(27, 163, 156, .07); padding-left: 1.8rem; }
.svc-items.is-linked a:hover strong { color: var(--teal-ink); }

/* ---------- Individual service pages ---------- */
.svc-glance { background: rgba(12, 25, 42, .7); border: 1px solid var(--line-dark); border-radius: 18px; padding: 1.4rem; backdrop-filter: blur(6px); }
.svc-glance > p { color: var(--teal); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; margin-bottom: .6rem; }
.svc-glance dl { display: grid; margin: 0; }
.svc-glance dl > div { padding: .7rem 0; border-top: 1px solid var(--line-dark); display: grid; gap: .3rem; }
.svc-glance dt { font-family: var(--f-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-dark); }
.svc-glance dd { margin: 0; font-size: .93rem; color: var(--paper); }
.svc-glance dd a { color: var(--paper); text-decoration-color: var(--teal); text-underline-offset: 3px; }
.svc-glance dd a:hover { color: var(--teal); }
.chip-list { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip-list li { font-size: .8rem; padding: .2rem .6rem; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(244, 241, 234, .06); }
.svc-overview-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: start; }
.svc-overview-copy { display: grid; gap: 1.1rem; }
.svc-overview-copy .kicker { margin-bottom: 0; }
.svc-overview-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: .4rem; }
.svc-overview-copy > p { color: #2A3945; font-size: 1.06rem; line-height: 1.75; max-width: 40rem; }
.svc-also { font-size: .92rem; color: var(--muted) !important; }
.svc-also a, .svc-more a { color: var(--teal-ink); }
.svc-included { position: sticky; top: 100px; padding: 1.8rem; border-radius: 20px; background: #FFFDF8; border: 1px solid var(--line); box-shadow: 0 30px 60px -45px rgba(11, 27, 43, .5); }
.svc-included h3 { color: var(--teal-ink); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 500; margin-bottom: 1rem; }
.svc-included ul { display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.svc-included li { position: relative; padding-left: 1.6rem; font-size: .97rem; line-height: 1.45; }
.svc-included li::before { content: ""; position: absolute; left: .1rem; top: .35em; width: 10px; height: 6px; border-left: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: rotate(-45deg); }
.svc-ideal { align-self: end; }
.svc-ideal .mono { color: var(--teal); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; margin-bottom: .6rem; }
.svc-ideal ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-ideal li { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--paper); font-size: .9rem; }
.svc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
.svc-steps li { display: grid; gap: .7rem; align-content: start; padding: 1.5rem; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.svc-steps .step-no { width: 3.2rem; height: 3.2rem; font-size: 1rem; }
.svc-steps h3 { font-size: 1.3rem; }
.svc-steps p { color: var(--muted); font-size: .95rem; }
.svc-models { margin-top: 2.5rem; }
.svc-models > .mono { color: var(--teal-ink); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; margin-bottom: .9rem; }
.svc-models ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.svc-models li { display: grid; gap: .25rem; padding: 1.1rem 1.2rem; background: var(--paper-2); }
.svc-models strong { font-family: var(--f-display); font-weight: 600; }
.svc-models span { color: var(--muted); font-size: .88rem; }
.svc-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc-related a {
  position: relative; display: grid; gap: .45rem; height: 100%; padding: 1.4rem 3rem 1.4rem 1.4rem; border-radius: 16px;
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .3s var(--ease);
}
.svc-related strong { font-family: var(--f-display); font-size: 1.1rem; line-height: 1.25; }
.svc-related span:not(.arrow) { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.svc-related .arrow { position: absolute; right: 1.3rem; top: 1.4rem; transition: transform .3s var(--ease); }
.svc-related a:hover { border-color: var(--teal); transform: translateY(-3px); }
.svc-related a:hover .arrow { transform: translateX(4px); color: var(--teal-ink); }
.svc-more { margin-top: 1.8rem; }
/* Why / perks */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.why-grid > div { border-top: 2px solid var(--teal); padding-top: 1.4rem; display: grid; gap: .7rem; align-content: start; }
.why-grid h3 { font-size: 1.45rem; }
.why-grid p { color: var(--muted-dark); }
.why-light p { color: var(--muted); }

/* Related practices */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-grid a {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .2rem; align-items: center;
  padding: 1.2rem 3.2rem 1.2rem 1.2rem; border-radius: 16px;
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .3s var(--ease);
}
.related-icon { grid-row: span 2; width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--paper-2); color: var(--teal-ink); }
.related-grid strong { font-family: var(--f-display); font-size: 1.1rem; line-height: 1.2; }
.related-grid span:not(.arrow) { color: var(--muted); font-size: .85rem; font-family: var(--f-mono); }
.related-grid .arrow { position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); transition: transform .3s var(--ease); }
.related-grid a:hover { border-color: var(--teal); transform: translateY(-3px); }
.related-grid a:hover .arrow { transform: translate(4px, -50%); color: var(--teal-ink); }

/* CTA band */
.cta-band { padding-block: 4.5rem; border-bottom: 1px solid var(--line-dark); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
.cta-inner p { color: var(--muted-dark); margin-top: .7rem; max-width: 36rem; }

/* Careers */
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.role-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.role-card h3 { font-size: 1.3rem; margin-bottom: .8rem; }
.role-card a { display: flex; justify-content: space-between; padding: .6rem 0; border-top: 1px solid var(--line); text-decoration: none; font-size: .95rem; transition: color .2s; }
.role-card a:hover { color: var(--teal-ink); }

/* Who */
.who { overflow: hidden; }
.who::before {
  content: ""; position: absolute; left: -120px; bottom: -120px; width: 420px; height: 420px;
  background: var(--teal); opacity: .08; clip-path: polygon(0 0, 100% 0, 50% 60%); transform: rotate(180deg);
}
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.who-card {
  position: relative; padding: 2rem 1.6rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy) 0%, rgba(16, 40, 59, .4) 100%);
  border: 1px solid var(--line-dark); display: grid; gap: .9rem; align-content: start;
  transition: transform .4s var(--ease), border-color .4s;
}
.who-card:nth-child(even) { transform: translateY(2.5rem); }
.who-card:hover { border-color: rgba(27, 163, 156, .6); transform: translateY(-6px); }
.who-card:nth-child(even):hover { transform: translateY(calc(2.5rem - 6px)); }
.who-tag {
  justify-self: start; color: var(--ink); background: var(--teal); padding: .25rem .6rem; border-radius: 6px; font-weight: 500;
}
.who-card h3 { font-size: 1.6rem; }
.who-card p { color: var(--muted-dark); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2.1rem; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.step { position: relative; display: grid; gap: .8rem; align-content: start; }
.step:nth-child(2) { margin-top: 2.5rem; }
.step:nth-child(3) { margin-top: 5rem; }
.step:nth-child(4) { margin-top: 7.5rem; }
.step-no {
  display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--text);
  font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; position: relative; z-index: 1;
  transition: background .3s, color .3s;
}
.step:hover .step-no { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.step h3 { font-size: 1.7rem; font-weight: 800; }
.step p { color: var(--muted); }

/* Story */
.story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.story-words { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.word { display: grid; gap: .3rem; }
.dev { font-family: "Noto Sans Devanagari", var(--f-display); font-size: clamp(3.5rem, 8vw, 6.5rem); font-weight: 700; line-height: 1.1; color: var(--paper); }
.word:last-child .dev { color: var(--teal); }
.latin { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; }
.gloss { color: var(--muted-dark); text-transform: uppercase; letter-spacing: .14em; }
.plus { font-family: var(--f-display); font-size: 3rem; color: var(--muted-dark); font-weight: 300; }
.story-copy { display: grid; gap: 1.3rem; }
.story-copy .kicker { margin-bottom: 0; }
.story-copy h2 em { color: var(--teal); font-weight: 400; font-style: italic; }
.story-copy > p { color: var(--muted-dark); max-width: 32rem; }
.principles { display: grid; gap: .7rem; margin-top: .5rem; }
.principles li { padding-left: 1.6rem; position: relative; color: var(--muted-dark); }
.principles li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .55rem;
  background: var(--teal); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.principles strong { color: var(--paper); font-weight: 600; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-copy { display: grid; gap: 1.3rem; }
.contact-copy .kicker { margin-bottom: 0; }
.contact-meta { display: grid; gap: 1rem; margin: 1rem 0 0; }
.contact-meta div { display: grid; gap: .15rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.contact-meta dt { color: var(--teal-ink); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }
.contact-meta dd { margin: 0; font-size: 1.1rem; font-weight: 500; overflow-wrap: anywhere; }
.contact-meta a { text-decoration-color: var(--teal); text-underline-offset: 4px; }
.socials { display: flex; gap: .6rem; margin-top: .5rem; }
.socials a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.socials svg { width: 20px; height: 20px; fill: var(--text); transition: fill .3s; }
.socials a:hover { background: var(--ink); border-color: var(--ink); transform: translateY(-3px); }
.socials a:hover svg { fill: var(--teal); }

.contact-form {
  background: #FFFDF8; border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.2rem;
  box-shadow: 0 40px 80px -50px rgba(11, 27, 43, .45);
}
.field { display: grid; gap: .45rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; width: 100%;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select {
  appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 52%, calc(100% - .95rem) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--teal); background-color: #fff; box-shadow: 0 0 0 4px rgba(27, 163, 156, .18);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #B3261E; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--teal-ink); }
.check input[aria-invalid="true"] { outline: 2px solid #B3261E; outline-offset: 2px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: -.4rem; }
.form-note a { color: var(--teal-ink); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .3rem; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .88rem; font-weight: 500; transition: .2s; user-select: none;
}
.chips label:hover span { border-color: var(--teal); }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.form-status { min-height: 1.4em; font-size: .92rem; color: var(--teal-ink); font-weight: 500; }
.form-status.error { color: #B3261E; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form[aria-busy="true"] button[type="submit"] { opacity: .6; cursor: progress; }

/* Footer */
.site-footer { padding-block: 4.5rem 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1fr; gap: 2.5rem 3rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.footer-tag { font-family: var(--f-display); font-size: 1.3rem; }
.footer-note { color: var(--muted-dark); font-size: .92rem; max-width: 22rem; }
.footer-h { font-family: var(--f-mono); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--teal); margin-bottom: 1rem; }
.footer-links { display: grid; gap: .55rem; font-size: .93rem; color: var(--muted-dark); }
.footer-links a { text-decoration: none; color: var(--muted-dark); transition: color .2s; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--teal); }
.socials-dark a { border-color: var(--line-dark); }
.socials-dark svg { fill: var(--paper); }
.socials-dark a:hover { background: var(--teal); border-color: var(--teal); }
.socials-dark a:hover svg { fill: var(--ink); }
.copyright { color: var(--muted-dark); }
.footer-nap { display: grid; gap: .45rem; font-style: normal; font-size: .93rem; color: var(--muted-dark); margin-bottom: .55rem; line-height: 1.5; }
.footer-nap strong { color: var(--paper); font-weight: 600; }
.footer-nap a { color: var(--muted-dark); text-decoration: none; overflow-wrap: anywhere; }
.footer-nap a:hover { color: var(--teal); }
.contact-meta address { font-style: normal; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.contact-meta .map-link { display: inline-block; margin-top: .35rem; font-size: .9rem; color: var(--teal-ink); }
.footer-legal { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); }
.legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; }
.legal-links a { color: var(--muted-dark); text-decoration: none; }
.legal-links a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Insights / articles ---------- */
.article-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.article-cards a {
  position: relative; display: grid; align-content: start; gap: .55rem; height: 100%; padding: 1.5rem 1.5rem 1.7rem; border-radius: 18px;
  background: #FFFDF8; border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .3s var(--ease);
}
.article-cards .mono { color: var(--teal-ink); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.article-cards strong { font-family: var(--f-display); font-size: 1.22rem; line-height: 1.25; padding-right: 1.5rem; }
.article-card-desc { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.article-cards .arrow { position: absolute; right: 1.3rem; top: 1.4rem; transition: transform .3s var(--ease); }
.article-cards a:hover { border-color: var(--teal); transform: translateY(-3px); }
.article-cards a:hover .arrow { transform: translateX(4px); color: var(--teal-ink); }
.article-inner { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; }
.article-body { max-width: 46rem; min-width: 0; }
.article-body > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 2.6rem 0 1rem; scroll-margin-top: 100px; }
.article-body > h3 { font-size: 1.25rem; margin: 1.8rem 0 .7rem; }
.article-body > p, .article-body li { color: #2A3945; font-size: 1.06rem; line-height: 1.8; }
.article-body > p + p { margin-top: 1rem; }
.article-body > ul, .article-body > ol { display: grid; gap: .5rem; margin: 1rem 0; padding-left: 1.3rem; }
.article-body a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-summary { padding: 1.4rem 1.6rem; border-radius: 16px; background: var(--paper-2); border-left: 3px solid var(--teal); margin-bottom: 2rem; }
.article-summary .mono { color: var(--teal-ink); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; margin-bottom: .5rem; }
.article-summary p:last-child { font-size: 1.05rem; line-height: 1.7; }
.article-callout { margin: 1.6rem 0; padding: 1.2rem 1.4rem; border-radius: 14px; background: #FFFDF8; border: 1px solid var(--line); }
.article-callout p { color: #2A3945; line-height: 1.7; }
.article-byline { margin-top: 2.5rem !important; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem !important; color: var(--muted) !important; }
.industry-list li.has-link h3 a { text-decoration: none; background-image: linear-gradient(var(--teal), var(--teal)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s var(--ease), color .2s; }
.industry-list li.has-link h3 a:hover { color: var(--teal-ink); background-size: 100% 2px; }

/* ---------- Legal & trust pages ---------- */
.btn-ghost-dark { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--text); box-shadow: none; }
.legal-inner { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; }
.legal-toc { position: sticky; top: 100px; display: grid; gap: 1rem; justify-items: start; max-height: calc(100vh - 120px); overflow-y: auto; }
.legal-toc > .mono { color: var(--teal-ink); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }
.legal-toc ol { display: grid; gap: .1rem; counter-reset: toc; border-left: 1px solid var(--line); }
.legal-toc li { counter-increment: toc; }
.legal-toc ol a { display: block; padding: .35rem .8rem; margin-left: -1px; border-left: 2px solid transparent; font-size: .88rem; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.legal-toc ol a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--f-mono); font-size: .7rem; color: var(--teal-ink); }
.legal-toc ol a:hover, .legal-toc ol a.is-current { color: var(--text); border-left-color: var(--teal); }
.legal-toc > .text-link { margin-top: .2rem; }
.legal-dates { display: grid; gap: .4rem; margin: .5rem 0 0; font-size: .82rem; }
.legal-dates div { display: flex; gap: .5rem; }
.legal-dates dt { color: var(--muted); }
.legal-dates dd { margin: 0; font-weight: 600; }
.legal-body { max-width: 52rem; min-width: 0; }
.legal-section { scroll-margin-top: 100px; padding-bottom: 2.4rem; margin-bottom: 2.4rem; border-bottom: 1px solid var(--line); }
.legal-section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-section h2 { display: flex; align-items: baseline; gap: .9rem; font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 1rem; }
.legal-num { flex: none; font-size: .75rem; color: var(--teal-ink); font-weight: 500; letter-spacing: .06em; }
.legal-section p, .legal-section li { color: #2A3945; line-height: 1.7; }
.legal-section p + p, .legal-section p + ul, .legal-section ul + p, .legal-section .table-wrap + p, .legal-section p + .table-wrap, .legal-section p + dl { margin-top: .9rem; }
.legal-section ul { display: grid; gap: .45rem; padding-left: 1.2rem; list-style: none; }
.legal-section ul li { position: relative; }
.legal-section ul li::before { content: ""; position: absolute; left: -1.1rem; top: .7em; width: 7px; height: 6px; background: var(--teal); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.legal-section a { color: var(--teal-ink); text-underline-offset: 3px; }
.legal-section code { font-family: var(--f-mono); font-size: .85em; background: var(--paper-2); padding: .1rem .35rem; border-radius: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #FFFDF8; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-wrap th { text-align: left; font-family: var(--f-mono); font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-ink); background: var(--paper-2); padding: .8rem 1rem; }
.table-wrap td { padding: .85rem 1rem; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.55; color: #2A3945; }
.table-wrap td ul { padding-left: 1.1rem; }
mark.tbc { background: #FFE8A3; color: #5C4400; padding: .05rem .4rem; border-radius: 4px; font-weight: 600; }
.legal-contact { display: grid; gap: 0; margin: 1rem 0 0; border: 1px solid var(--line); border-radius: 14px; background: #FFFDF8; overflow: hidden; }
.legal-contact div { display: grid; grid-template-columns: 170px 1fr; gap: 1rem; padding: .75rem 1.1rem; }
.legal-contact div + div { border-top: 1px solid var(--line); }
.legal-contact dt { font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-ink); padding-top: .2rem; }
.legal-contact dd { margin: 0; overflow-wrap: anywhere; }
.legal-extra { margin-bottom: 3rem; }
.privacy-form { max-width: 46rem; }

/* Consent preferences */
.consent-form { display: grid; gap: .9rem; max-width: 46rem; }
.consent-option { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin: 0; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: #FFFDF8; }
.consent-option legend { float: left; padding: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.consent-option div p { clear: both; color: var(--muted); font-size: .92rem; margin-top: .2rem; }
.switch { position: relative; flex: none; width: 52px; height: 30px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit; }
.switch span[aria-hidden] { position: absolute; inset: 0; border-radius: 999px; background: #C9C4B8; transition: background .25s; }
.switch span[aria-hidden]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease); }
.switch input:checked + span[aria-hidden] { background: var(--teal-ink); }
.switch input:checked + span[aria-hidden]::after { transform: translateX(22px); }
.switch input:focus-visible + span[aria-hidden] { outline: 2px solid var(--teal); outline-offset: 3px; }
.switch.is-locked { cursor: not-allowed; opacity: .7; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .4rem; }
.consent-note { font-size: .88rem; color: var(--muted); }

/* Cookie banner (only rendered when optional tracking is configured) */
.consent-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 760px; margin-inline: auto;
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding: 1.1rem 1.3rem;
  background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
}
.consent-banner[hidden] { display: none; }
.consent-banner p { flex: 1 1 320px; font-size: .9rem; }
.consent-banner a { color: var(--teal-ink); }
.consent-banner-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.consent-banner-actions a { font-size: .88rem; font-weight: 600; margin-left: .3rem; }

/* Legal & trust centre */
.legal-group + .legal-group { margin-top: 3rem; }
.legal-group h2 { font-size: .74rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--teal-ink); margin-bottom: 1rem; }
.legal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.legal-cards a {
  position: relative; display: grid; gap: .4rem; height: 100%; padding: 1.4rem 3rem 1.4rem 1.4rem; border-radius: 16px;
  background: #FFFDF8; border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .3s var(--ease);
}
.legal-cards strong { font-family: var(--f-display); font-size: 1.12rem; }
.legal-cards span:not(.arrow) { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.legal-cards .arrow { position: absolute; right: 1.3rem; top: 1.4rem; transition: transform .3s var(--ease); }
.legal-cards a:hover { border-color: var(--teal); transform: translateY(-3px); }
.legal-cards a:hover .arrow { transform: translateX(4px); color: var(--teal-ink); }

@media print {
  .site-header, .site-footer, .legal-toc, .page-hero .hero-shards, .consent-banner, .hero-cta { display: none !important; }
  .page-hero { background: none; color: #000; padding: 0; }
  .legal-inner { display: block; }
  .section-light { padding: 0; }
}

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--d) * .12s + .1s); }
/* Uses `translate` (not `transform`) so hover transforms on the same elements keep working */
.js .reveal-on-scroll { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .8s var(--ease), transform .4s var(--ease), background .4s var(--ease), color .4s, border-color .4s, padding .4s var(--ease); }
.js .reveal-on-scroll.in { opacity: 1; translate: 0 0; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes assemble { from { opacity: 0; transform: translate(var(--from)); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .practice-grid, .package-grid { grid-template-columns: repeat(2, 1fr); }
  .practice { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .who-grid, .engage-grid { grid-template-columns: repeat(2, 1fr); }
  .who-card:nth-child(even) { transform: translateY(1.5rem); }
  .who-card:nth-child(even):hover { transform: translateY(calc(1.5rem - 6px)); }
  .catalog-cols { columns: 2; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; padding-top: 3.5rem; gap: 0; }
  .hero-copy { padding-bottom: 2rem; }
  .hero-mark { width: 240px; margin-top: -1rem; }
  .story-inner, .contact-inner, .faq-inner, .cat-inner, .catalog-head { grid-template-columns: 1fr; gap: 2rem; }
  .faq-inner > header, .cat-head { position: static; }
  .page-hero-inner.has-aside { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .steps::before { display: none; }
  .step:nth-child(n) { margin-top: 0; }
  .tech-grid, .roles-grid, .related-grid, .legal-cards, .svc-steps, .svc-models ul, .svc-related { grid-template-columns: repeat(2, 1fr); }
  .svc-overview-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .svc-included { position: static; }
  .legal-inner, .article-inner { grid-template-columns: 1fr; gap: 2rem; }
  .article-cards { grid-template-columns: repeat(2, 1fr); }
  .legal-toc { position: static; max-height: none; padding: 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: #FFFDF8; width: 100%; }
  .nav-links { gap: 1.4rem; }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 46px; height: 46px; border-radius: 12px;
    background: transparent; border: 1px solid var(--line-dark); cursor: pointer;
  }
  .nav-toggle .bar { width: 20px; height: 2px; background: var(--paper); transition: transform .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; max-height: calc(100vh - 76px); overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line-dark);
    transform: translateY(-110%); opacity: 0; visibility: hidden;
    transition: transform .4s var(--ease), opacity .3s, visibility .4s; z-index: -1;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links > li > a:not(.btn), .menu-trigger { display: flex; width: 100%; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1.1rem; opacity: 1; }
  .nav-links > li > a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 1rem; width: 100%; justify-content: center; }
  .site-header:has(.nav-links.open) { background: var(--ink); }
  .mega { position: static; transform: none; box-shadow: none; border-top: 0; border-radius: 14px; display: none; max-height: none; margin: .5rem 0 .75rem; }
  .has-menu.open .mega { display: block; transform: none; }
  .mega-scrim { display: none; }
  .mega-inner { padding: .6rem; width: auto; }
  .mm-groups { height: auto; }
  .mm-group { width: auto; }
  .mm-group + .mm-group { border-top: 1px solid var(--line); }
  .mm-group.is-active .mm-tab { background: none; color: var(--text); }
  .mm-group.is-active .mm-tab-text small { color: var(--muted); }
  .mm-tab-arrow { opacity: 1; transform: rotate(135deg); }
  .mm-group.is-active .mm-tab-arrow { transform: rotate(-45deg); }
  .mm-panel { position: static; display: none; padding: 0 .4rem .8rem; border: 0; opacity: 1; visibility: visible; transform: none; }
  .mm-group.is-active .mm-panel { display: block; }
  .mm-practice-link, .mm-subs { width: auto; }
  .mm-subs { overflow: visible; }
  .mm-subs::after, .mm-subs.has-more::after { display: none; }
  .mm-subs, .mm-services, .mm-services.has-more { -webkit-mask-image: none; mask-image: none; padding-bottom: 0; }
  .mm-sub + .mm-sub { border-top: 1px solid var(--line); }
  .mm-subtab { padding: .75rem .6rem; border-radius: 8px; }
  .mm-sub.is-active .mm-subtab { box-shadow: none; }
  .mm-services { position: static; display: none; padding: 0 .4rem .6rem; border: 0; overflow: visible; opacity: 1; visibility: visible; }
  .mm-sub.is-active .mm-services { display: block; }
  .mm-services-head { position: static; background: none; border: 0; margin: 0; padding: .2rem 0 .3rem .6rem; }
  .mm-services-head strong { display: none; }
  .mm-tab { padding: .6rem .7rem; }
  .mm-svc-list.is-two { grid-template-columns: 1fr; }
  .mega-foot { border-radius: 0 0 14px 14px; }
  .mega-foot-inner { width: auto; padding: 1rem; }
  .mega-foot p { display: none; }
  .mm-quick { gap: .9rem 1.2rem; }
  .mm-quick li:last-child { width: 100%; }
  .mm-quick .btn { width: 100%; justify-content: center; margin: 0; }

  .section-head { grid-template-columns: 1fr; }
  .practice-grid, .package-grid, .industry-list, .tech-grid, .why-grid, .roles-grid, .related-grid, .engage-grid, .svc-items, .legal-cards, .svc-steps, .svc-models ul, .svc-related, .article-cards { grid-template-columns: 1fr; }
  .svc-included { padding: 1.4rem; }
  .legal-contact div { grid-template-columns: 1fr; gap: .2rem; }
  .table-wrap table { min-width: 560px; }
  .consent-option { align-items: flex-start; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .catalog-cols { columns: 1; }
  .catalog-head h2 { font-size: 1.9rem; }
  .catalog-icon { width: 44px; height: 44px; padding: 9px; }
  .why-grid { gap: 2rem; }
  .faq p { padding-right: 0; }
  .who-grid { grid-template-columns: 1fr; }
  .who-card:nth-child(even) { transform: none; }
  .who-card:nth-child(even):hover { transform: translateY(-6px); }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-mark { width: 150px; margin-top: 0; }
  .hero-foot { grid-template-columns: 1fr; gap: 1.1rem; }
  .hero-shards span:first-child { width: 55%; height: 32%; }
  .hero-shards span:last-child { display: none; }
  .page-hero-inner { padding-block: 3rem 3.5rem; }
  .hero-index { display: none; }
  .jump-bar { top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
