/* ==========================================================================
   TanmayiSoft design system
   Phase 5. Tokens, base styles and components.

    1. Tokens          6. Cards         11. Breadcrumb
    2. Reset/base      7. Navigation    12. Sections
    3. Layout          8. Footer        13. Utilities
    4. Typography      9. Forms         14. Motion
    5. Buttons        10. Accordion
   ========================================================================== */

/* 1. TOKENS ================================================================ */

:root {
  /* Brand — derived from #081E66, hue 226deg */
  --brand-950: #050F33;
  --brand-900: #081E66;
  --brand-800: #0D2B8C;
  --brand-700: #1339B3;
  --brand-600: #1B4BD6;
  --brand-500: #2E63EE;
  --brand-400: #5C87F5;
  --brand-300: #8CAAF9;
  --brand-100: #DCE6FE;
  --brand-050: #EFF4FF;

  /* Light surfaces */
  --paper:       #FFFFFF;
  --paper-50:    #FAFAFB;
  --paper-100:   #F3F4F7;
  --line:        #E4E6EC;
  --line-strong: #CDD1DB;

  /* Dark surfaces */
  --ink-950: #050F33;
  --ink-900: #081E66;
  --ink-line: rgba(255, 255, 255, .12);
  --ink-line-strong: rgba(255, 255, 255, .22);

  /* Text */
  --text:        #101426;
  --text-muted:  #545B70;
  --text-subtle: #767D91;
  --text-on-dark: #F4F6FC;
  --text-on-dark-muted: #A9B6DA;

  --success: #1D7A4C;
  --warning: #A2650C;
  --danger:  #B93028;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Restrained shadows. No glow, no coloured spread. */
  --shadow-sm: 0 1px 2px rgba(8,30,102,.05), 0 1px 3px rgba(8,30,102,.07);
  --shadow-md: 0 4px 14px rgba(8,30,102,.08);
  --shadow-lg: 0 18px 48px rgba(8,30,102,.12);

  --container: 1200px;
  --container-narrow: 720px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  --space-1: .25rem;  --space-2: .5rem;   --space-3: .75rem;
  --space-4: 1rem;    --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;    --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;   --space-20: 5rem;   --space-24: 6rem;

  /* Fluid type scale */
  --fs-display: clamp(2.5rem, 1.55rem + 4.2vw, 4.5rem);
  --fs-h1:   clamp(2.1rem, 1.5rem + 2.7vw, 3.4rem);
  --fs-h2:   clamp(1.75rem, 1.4rem + 1.8vw, 2.6rem);
  --fs-h3:   clamp(1.3rem, 1.15rem + .8vw, 1.7rem);
  --fs-h4:   clamp(1.1rem, 1.03rem + .35vw, 1.25rem);
  --fs-lead: clamp(1.05rem, 1rem + .38vw, 1.28rem);
  --fs-body: 1rem;
  --fs-sm:   .9rem;
  --fs-xs:   .8rem;

  --font-display: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
}

/* Self-hosted variable fonts, latin subset. Two files, 73 KB total.
   Self-hosted rather than loaded from a font CDN so there is no extra DNS
   lookup and TLS handshake on the critical path. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* 2. RESET AND BASE ======================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* Any author `display` rule outranks the user-agent style for [hidden], so a
   flex or grid component stays visible when it should not. This makes the
   attribute mean what it says everywhere. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-500); }

:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--brand-100); color: var(--brand-900); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand-900); color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* 3. LAYOUT ================================================================ */

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

.stack > * + * { margin-top: var(--space-4); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* 4. TYPOGRAPHY ============================================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.015em; }
h4 { font-size: var(--fs-h4); letter-spacing: -.01em; }

.display { font-size: var(--fs-display); line-height: 1.03; letter-spacing: -.035em; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); }
.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--space-12); }
.prose h3 { margin-top: var(--space-8); }

.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }

/* Eyebrow labels what kind of section follows. A label, not decoration. */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-700);
  margin: 0 0 var(--space-4);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55; }

/* 5. BUTTONS =============================================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500;
  line-height: 1;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand-500); color: #fff; border-color: var(--brand-500); }
.btn--primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.btn--secondary { background: transparent; color: var(--brand-700); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-050); }

.btn--ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn--ghost:hover { color: var(--brand-700); background: var(--paper-100); }

.btn--lg { padding: 1.05rem 1.9rem; font-size: var(--fs-body); }
.btn--sm { padding: .6rem 1.05rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* On dark backgrounds the accent must lighten or it disappears. */
.on-dark .btn--secondary { color: var(--text-on-dark); border-color: var(--ink-line-strong); }
.on-dark .btn--secondary:hover {
  border-color: var(--brand-400); color: var(--brand-300); background: rgba(92,135,245,.1);
}
.on-dark .btn--ghost { color: var(--text-on-dark-muted); }
.on-dark .btn--ghost:hover { color: var(--text-on-dark); background: rgba(255,255,255,.07); }

/* 6. CARDS ================================================================= */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }

.card__title { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.card__text { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-4); }
.card__link {
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.card__link::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
.card:hover .card__link::after { transform: translateX(3px); }

.on-dark .card { background: rgba(255,255,255,.035); border-color: var(--ink-line); }
.on-dark .card:hover { border-color: var(--ink-line-strong); box-shadow: none; }
.on-dark .card__text { color: var(--text-on-dark-muted); }

/* Stat. For verified facts only — never invented metrics. */
.stat__value {
  font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600;
  letter-spacing: -.03em; line-height: 1; color: var(--brand-800);
}
.stat__label { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--space-2); }
.on-dark .stat__value { color: var(--brand-300); }
.on-dark .stat__label { color: var(--text-on-dark-muted); }

/* Numbered step. Only where the content genuinely is a sequence. */
.step { border-top: 1px solid var(--line); padding-top: var(--space-5); }
.step__index {
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--brand-500); letter-spacing: .05em;
  display: block; margin-bottom: var(--space-3);
}
.on-dark .step { border-color: var(--ink-line); }
.on-dark .step__index { color: var(--brand-400); }

.chip {
  display: inline-flex; align-items: center;
  font-size: var(--fs-xs); font-weight: 500;
  padding: .35rem .75rem;
  border-radius: var(--radius-full);
  background: var(--brand-050); color: var(--brand-800);
  border: 1px solid var(--brand-100);
}
.on-dark .chip { background: rgba(92,135,245,.12); color: var(--brand-300); border-color: rgba(92,135,245,.25); }

/* 7. NAVIGATION ============================================================ */

.topbar {
  background: var(--ink-950); color: var(--text-on-dark-muted);
  font-size: var(--fs-xs); border-bottom: 1px solid var(--ink-line);
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4); min-height: 38px;
}
.topbar__note { white-space: nowrap; }
@media (max-width: 720px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: flex-end; }
}
.topbar a { color: var(--text-on-dark-muted); text-decoration: none; }
.topbar a:hover { color: var(--text-on-dark); }

.nav {
  background: var(--ink-900); color: var(--text-on-dark);
  position: relative; z-index: 40;
  border-bottom: 1px solid var(--ink-line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-6); min-height: 78px;
}
/* Logo lockup. Mark inherits colour from the link, wordmark is live text. */
/* Lockup proportions measured from the original artwork:
   mark height = 1.21x the wordmark's visual height, gap = 0.15x.
   Both are expressed in em so the whole lockup scales as one unit. */
.logo {
  display: inline-flex; align-items: center; gap: .26em;
  text-decoration: none; color: var(--brand-400);
  font-size: 1.22rem;
}
.logo__mark {
  width: auto; height: 2.13em; flex: none;
  color: var(--brand-400);
  transition: color var(--dur) var(--ease);
}
.logo:hover .logo__mark { color: var(--brand-300); }
.logo--dark .logo__mark { color: var(--brand-500); }
/* Stacked wordmark — matches the established lockup. The tagline is
   deliberately not here: at nav scale it is illegible. It lives in the
   footer and on documents, where there is room to read it. */
.logo__word {
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: 700; font-size: 1em;
  letter-spacing: -.03em; line-height: 1.06; color: var(--text-on-dark);
}
.logo__line { display: block; }
.logo__word-accent { color: var(--brand-400); }
.logo:hover .logo__word-accent { color: var(--brand-300); }

/* On light surfaces the mark and accent darken. */
.logo--dark { color: var(--brand-500); }
.logo--dark .logo__word { color: var(--text); }
.logo--dark .logo__word-accent { color: var(--brand-500); }

@media (max-width: 420px) {
  .logo { font-size: 1.02rem; }
}

/* Footer lockup. Here the tagline is legible and does real work. */
.footer__logo { margin-bottom: var(--space-3); }
.footer__logo { font-size: 1.35rem; }
.footer__tagline {
  font-size: var(--fs-xs); color: var(--text-on-dark-muted);
  letter-spacing: .01em; margin: var(--space-3) 0 var(--space-4);
}
.nav__links { display: flex; align-items: center; gap: var(--space-6); }
.nav__links a {
  color: var(--text-on-dark-muted); text-decoration: none;
  font-size: var(--fs-sm); transition: color var(--dur) var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text-on-dark); }
.nav__actions { display: flex; align-items: center; gap: var(--space-3); }

.nav__toggle {
  display: none; background: none;
  border: 1px solid var(--ink-line-strong); color: var(--text-on-dark);
  border-radius: var(--radius-sm); padding: .5rem .7rem;
  cursor: pointer; font-size: var(--fs-sm);
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-900); border-top: 1px solid var(--ink-line);
    padding: var(--space-2) var(--gutter) var(--space-6);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: var(--space-4) 0; border-bottom: 1px solid var(--ink-line); }
  /* The primary CTA moves inside the menu rather than disappearing. */
  .nav__actions > .btn--primary { display: none; }
  .nav__links .btn--primary {
    display: inline-flex; margin-top: var(--space-5); border-bottom: 0; padding: .95rem 1.5rem;
  }
}
@media (min-width: 901px) {
  .nav__links .btn--primary { display: none; }
}

/* 8. FOOTER ================================================================ */

.footer { background: var(--ink-950); color: var(--text-on-dark-muted); padding: var(--space-20) 0 var(--space-8); }
.footer h4 { color: var(--text-on-dark); font-size: var(--fs-sm); letter-spacing: 0; margin-bottom: var(--space-4); }
.footer a { color: var(--text-on-dark-muted); text-decoration: none; font-size: var(--fs-sm); }
.footer a:hover { color: var(--text-on-dark); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: var(--space-3); }
.footer__bottom {
  margin-top: var(--space-12); padding-top: var(--space-6);
  border-top: 1px solid var(--ink-line);
  display: flex; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap; font-size: var(--fs-xs);
}

/* 9. FORMS ================================================================= */

.field { margin-bottom: var(--space-5); }
.field__label { display: block; font-size: var(--fs-sm); font-weight: 500; margin-bottom: var(--space-2); }
.field__hint { font-size: var(--fs-xs); color: var(--text-subtle); margin-top: var(--space-2); }
.field__error { font-size: var(--fs-xs); color: var(--danger); margin-top: var(--space-2); }

.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: var(--fs-body);
  color: var(--text); background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: var(--radius-md);
  padding: .8rem 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-subtle); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(46, 99, 238, .15);
}
.textarea { min-height: 140px; resize: vertical; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); }

/* Honeypot — hidden from people, visible to naive bots. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* 10. ACCORDION ============================================================ */

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: var(--space-4);
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 500;
  color: var(--text); text-align: left; padding: var(--space-5) 0;
}
.accordion__trigger:hover { color: var(--brand-700); }
.accordion__icon { flex: none; color: var(--brand-500); transition: transform var(--dur) var(--ease); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel { padding: 0 0 var(--space-5); color: var(--text-muted); max-width: 68ch; }

/* 11. BREADCRUMB =========================================================== */

.breadcrumb { font-size: var(--fs-xs); color: var(--text-subtle); padding: var(--space-5) 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); opacity: .5; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-700); }

/* 12. SECTIONS ============================================================= */

.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark { background: var(--ink-900); color: var(--text-on-dark); }
.section--darker { background: var(--ink-950); color: var(--text-on-dark); }
.section--tint { background: var(--paper-50); }

.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.section--darker h1, .section--darker h2, .section--darker h3, .section--darker h4 {
  color: var(--text-on-dark);
}
.section--dark .lead, .section--darker .lead,
.section--dark .muted, .section--darker .muted { color: var(--text-on-dark-muted); }
.section--dark .eyebrow, .section--darker .eyebrow { color: var(--brand-300); }
.section--dark a:not(.btn), .section--darker a:not(.btn) { color: var(--brand-300); }

.section__head { max-width: 720px; margin-bottom: var(--space-12); }

/* Opening band. Tighter than a mid-page section so the headline sits
   closer to the navigation instead of floating. */
.section--hero { padding: clamp(2.75rem, 4.5vw, 4.5rem) 0 clamp(3rem, 5vw, 5rem); }
.section--hero .display { margin-bottom: var(--space-5); }
.section--hero .lead { max-width: 60ch; }

/* 13. UTILITIES ============================================================ */

.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;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: var(--space-12) 0; }
.on-dark .divider { background: var(--ink-line); }

/* 14. MOTION =============================================================== */

/* Scroll reveal via IntersectionObserver, not a library.
   The .js class is set by app.js, so without JS everything stays visible. */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}


/* HOMEPAGE ================================================================= */

.hero__lead { max-width: 58ch; margin-top: var(--space-6); }
.hero__actions { margin-top: var(--space-8); }


.services__more { margin-top: var(--space-8); color: var(--text-muted); font-size: var(--fs-sm); }

.work-card__industry {
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-600); margin: 0 0 var(--space-2);
}
.work__more { margin-top: var(--space-8); gap: var(--space-5); }

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li + li { margin-top: var(--space-2); }
.link-list a { font-size: var(--fs-sm); text-decoration: none; }
.link-list a:hover { text-decoration: underline; }

.tick-list { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.tick-list li { position: relative; padding-left: 1.4em; }
.tick-list li + li { margin-top: var(--space-2); }
.tick-list li::before {
  content: "\2713"; position: absolute; left: 0; color: var(--brand-500);
}
.on-dark .tick-list { color: var(--text-on-dark-muted); }
.on-dark .tick-list li::before { color: var(--brand-400); }

.engagement__note { margin-top: var(--space-8); color: var(--text-on-dark-muted); }
.process__cta { margin-top: var(--space-10); }


.quote { display: flex; flex-direction: column; gap: var(--space-5); }
.quote blockquote {
  margin: 0; min-width: 0; font-size: var(--fs-body); line-height: 1.6; color: var(--text);
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after { content: "\201D"; }
.quote figcaption { margin-top: auto; font-size: var(--fs-sm); }

.accordion__heading { margin: 0; font-size: inherit; }

.final-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-10); align-items: center; }
.final-cta__actions { justify-content: flex-end; }
@media (max-width: 900px) {
  .final-cta { grid-template-columns: 1fr; }
  .final-cta__actions { justify-content: flex-start; }
}

/* SERVICES BENTO ==========================================================
   A four-column grid where the first card spans two. The uneven weighting is
   the point: it says which service most enquiries start from, instead of
   presenting six equal boxes and making the visitor choose blind.
   ========================================================================= */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.svc {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-decoration: none; color: inherit;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
a.svc:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); }

.svc--feature {
  grid-column: span 2;
  background: var(--ink-900);
  border-color: transparent;
  color: var(--text-on-dark);
  position: relative; overflow: hidden;
}
.svc--feature::before {
  content: ""; position: absolute; inset: auto -30% -60% auto;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle closest-side,
              rgba(92, 135, 245, .28), rgba(92, 135, 245, 0) 70%);
  pointer-events: none;
}
a.svc--feature:hover { border-color: var(--brand-400); box-shadow: none; }

.svc__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-6);
}
.svc__icon { color: var(--brand-500); }
.svc--feature .svc__icon { color: var(--brand-300); }

.svc__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-full);
  border: 1px solid var(--line); color: var(--text-muted);
  font-size: .95rem; line-height: 1;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
a.svc:hover .svc__arrow {
  background: var(--brand-500); border-color: var(--brand-500);
  color: #fff; transform: translate(2px, -2px);
}
.svc--feature .svc__arrow { border-color: var(--ink-line-strong); color: var(--text-on-dark-muted); }
a.svc--feature:hover .svc__arrow { background: var(--brand-400); border-color: var(--brand-400); color: var(--ink-950); }

.svc__title {
  font-size: var(--fs-h4); margin: 0 0 var(--space-2);
}
.svc--feature .svc__title { font-size: var(--fs-h3); color: var(--text-on-dark); }

.svc__text {
  color: var(--text-muted); font-size: var(--fs-sm);
  margin: 0 0 var(--space-5);
}
.svc--feature .svc__text { color: var(--text-on-dark-muted); font-size: var(--fs-body); max-width: 46ch; }

.svc__list {
  list-style: none; margin: auto 0 0; padding: var(--space-5) 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--text-muted);
}
.svc--feature .svc__list {
  border-color: var(--ink-line); color: var(--text-on-dark-muted);
  columns: 2; column-gap: var(--space-6);
}
.svc__list li { position: relative; padding-left: 1.35em; break-inside: avoid; }
.svc__list li + li { margin-top: var(--space-2); }
.svc__list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-400);
}
.svc--feature .svc__list li + li { margin-top: var(--space-3); }

.svc--cta {
  background: var(--brand-050);
  border-color: var(--brand-100);
  justify-content: center;
}
.svc--cta .svc__title { color: var(--brand-900); }
.svc--cta .svc__text { color: var(--brand-800); }
.svc--cta .btn { align-self: flex-start; }

@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc--feature { grid-column: span 2; }
  .svc--feature .svc__list { columns: 2; }
}
@media (max-width: 620px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc--feature, .svc--feature .svc__list { grid-column: auto; columns: 1; }
}

/* MOTION ==================================================================
   No animation library. transform/opacity only, so everything stays on the
   compositor. All of it is disabled under prefers-reduced-motion, and nothing
   animates content into existence — without JS the page is fully visible.
   ========================================================================= */

/* --- Mask reveal ---------------------------------------------------------
   Text rises from behind an invisible edge. This is the one move the page is
   built around: it reads as deliberate where a fade reads as incidental. */
.js .mask { display: block; overflow: hidden; }
.js .mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 900ms cubic-bezier(.16, 1, .3, 1) var(--anim-delay, 0ms);
}
.js .mask.is-in > span { transform: none; }

/* --- Rise ---------------------------------------------------------------- */
.js .anim { opacity: 0; transform: translateY(26px); }
.js .anim.is-in {
  opacity: 1; transform: none;
  transition:
    opacity 700ms var(--ease) var(--anim-delay, 0ms),
    transform 800ms cubic-bezier(.16, 1, .3, 1) var(--anim-delay, 0ms);
}

/* --- Cards: rise with a slight scale so the grid feels like it settles ---- */
.js .reveal { opacity: 0; transform: translateY(30px) scale(.985); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition:
    opacity 640ms var(--ease) var(--anim-delay, 0ms),
    transform 820ms cubic-bezier(.16, 1, .3, 1) var(--anim-delay, 0ms);
}
/* Hover has to out-rank the reveal end-state, or the lift never fires. */
.js .card.reveal.is-visible:hover,
.js a.svc.reveal.is-visible:hover { transform: translateY(-4px); }

/* --- Chips pop in one after another -------------------------------------- */
.js .chip-in { opacity: 0; transform: translateY(10px) scale(.94); }
.js .chip-in.is-in {
  opacity: 1; transform: none;
  transition:
    opacity 380ms var(--ease) var(--anim-delay, 0ms),
    transform 480ms cubic-bezier(.34, 1.4, .5, 1) var(--anim-delay, 0ms);
}

/* --- Hero ambient glow ---------------------------------------------------
   A single slow-moving radial wash. One element, no blur filter, no canvas. */
.section--hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none;
  width: 90vmax; height: 90vmax; top: -45vmax; right: -25vmax;
  background: radial-gradient(circle closest-side,
              rgba(92, 135, 245, .30), rgba(92, 135, 245, 0) 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-9%, 7%, 0) scale(1.14); }
}

/* --- Capability strip scrolls -------------------------------------------- */
.marquee-wrap {
  margin-top: var(--space-16); padding-top: var(--space-6);
  border-top: 1px solid var(--ink-line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--space-8); width: max-content;
  font-size: var(--fs-sm); color: var(--text-on-dark-muted);
  animation: slide 34s linear infinite;
}
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.marquee li { display: flex; align-items: center; gap: var(--space-8); white-space: nowrap; }
.marquee li::after { content: "·"; opacity: .45; }
@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --- Hero headline: words rise --------------------------------------------- */
.js .hero-word { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(1.5deg); }
.js .hero-word.is-in {
  opacity: 1; transform: none;
  transition:
    opacity 520ms var(--ease) var(--anim-delay, 0ms),
    transform 820ms cubic-bezier(.16, 1, .3, 1) var(--anim-delay, 0ms);
}

/* --- Counting numbers ------------------------------------------------------ */
.stat__value { font-variant-numeric: tabular-nums; }

/* --- Nav condenses on scroll ----------------------------------------------- */
.nav { position: sticky; top: 0; transition: background-color var(--dur) var(--ease); }
.nav__inner { transition: min-height var(--dur) var(--ease); }
.nav.is-stuck {
  background: rgba(5, 15, 51, .9);
  backdrop-filter: saturate(150%) blur(12px);
  box-shadow: 0 1px 0 var(--ink-line-strong);
}
.nav.is-stuck .nav__inner { min-height: 64px; }

/* --- Buttons --------------------------------------------------------------- */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22), transparent 70%);
  transform: translateX(-110%);
  transition: transform 700ms var(--ease);
}
.btn--primary:hover::after { transform: translateX(110%); }

/* --- Text links sweep an underline ----------------------------------------- */
.link-list a, .services__more a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size var(--dur) var(--ease);
  text-decoration: none;
}
.link-list a:hover, .services__more a:hover { background-size: 100% 1px; }

/* --- Step index counts as a rule ------------------------------------------- */
.step { position: relative; }
.step::after {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0;
  background: var(--brand-500); transition: width 900ms var(--ease) var(--anim-delay, 0ms);
}
.js .step.is-visible::after { width: 100%; }
.on-dark .step::after { background: var(--brand-400); }

@media (prefers-reduced-motion: reduce) {
  .js .mask > span,
  .js .anim, .js .reveal, .js .chip-in, .js .hero-word {
    opacity: 1; transform: none; transition: none;
  }
  .hero-glow, .marquee { animation: none; }
  .marquee { width: auto; flex-wrap: wrap; }
  .btn--primary::after { display: none; }
  .step::after { width: 100%; transition: none; }
  .nav.is-stuck { backdrop-filter: none; }
}


/* TECHNOLOGY SYSTEM ========================================================
   Each orbit is a layer of the stack. Planet positions are set by a single
   requestAnimationFrame loop in JS, not by CSS animation, so labels stay
   upright and cannot drift out of sync with their orbit.
   ========================================================================= */

.system { margin-top: var(--space-4); }

.system__filters { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
.system__filter {
  font: inherit; font-size: var(--fs-xs); font-weight: 500;
  padding: .5rem 1.05rem; border-radius: var(--radius-full);
  background: transparent; color: var(--text-on-dark-muted);
  border: 1px solid var(--ink-line); cursor: pointer;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease);
}
.system__filter:hover { color: var(--text-on-dark); border-color: var(--ink-line-strong); }
.system__filter.is-active { color: #fff; background: var(--brand-500); border-color: var(--brand-500); }

/* --- Chip list: the layout below 900px and without JS --------------------- */
.system__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.system__chip {
  font: inherit; font-size: var(--fs-sm); font-weight: 500;
  padding: .55rem 1.05rem; border-radius: var(--radius-full);
  background: rgba(255,255,255,.04); color: var(--text-on-dark-muted);
  border: 1px solid var(--ink-line); cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.system__chip:hover { color: var(--text-on-dark); border-color: rgba(92,135,245,.45); }
.system__chip.is-selected { background: var(--brand-500); border-color: var(--brand-300); color: #fff; }
.system__item[hidden] { display: none; }

.system__space { display: none; }

.system__panel {
  margin-top: var(--space-8);
  padding: var(--space-6) var(--space-8);
  border-left: 2px solid var(--brand-500);
  background: rgba(255,255,255,.03);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.system__panel-label {
  font-size: var(--fs-xs); letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-300); margin: 0 0 var(--space-2);
}
.system__panel-title {
  font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600;
  color: var(--text-on-dark); margin: 0 0 var(--space-2); letter-spacing: -.02em;
}
.system__panel-text { font-size: var(--fs-sm); color: var(--text-on-dark-muted); margin: 0; max-width: 62ch; }

/* --- The system, above 900px only ---------------------------------------- */
@media (min-width: 900px) {
  .system__list, .system__panel { display: none; }

  .system__space {
    display: block; position: relative;
    height: 660px;
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-lg);
    background:
      radial-gradient(ellipse 60% 45% at 50% 45%, rgba(46,99,238,.20), transparent 70%),
      radial-gradient(ellipse 90% 70% at 80% 100%, rgba(92,135,245,.10), transparent 70%),
      var(--brand-950);
    overflow: hidden;
    isolation: isolate;
  }
}

.system__stars { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute; width: var(--s, 1.5px); height: var(--s, 1.5px);
  border-radius: 50%; background: #fff; opacity: .2;
  animation: twinkle 5s ease-in-out var(--d, 0s) infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .1; } 50% { opacity: .6; } }

.system__orbits { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.orbit-path {
  fill: none; stroke: rgba(140,170,249,.16); stroke-width: 1;
  transition: stroke .3s var(--ease);
}
.orbit-path.is-lit { stroke: rgba(140,170,249,.55); }
.orbit-path.is-back { stroke: rgba(140,170,249,.07); }

/* --- Core ---------------------------------------------------------------- */
.core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 190px; height: 190px; border-radius: 50%;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: var(--space-5);
  background: radial-gradient(circle at 40% 35%, #1B4BD6, #081E66 70%);
  border: 1px solid rgba(140,170,249,.35);
  box-shadow: 0 0 60px rgba(46,99,238,.35);
  z-index: 5;
}
.core__label {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-300); margin: 0 0 var(--space-2);
}
.core__title {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  letter-spacing: -.02em; color: #fff; margin: 0 0 var(--space-2);
}
.core__text { font-size: 11px; line-height: 1.5; color: rgba(220,230,254,.8); margin: 0; }
.core__label, .core__title, .core__text { transition: opacity .18s var(--ease); }
.core.is-swapping .core__label,
.core.is-swapping .core__title,
.core.is-swapping .core__text { opacity: 0; }

/* --- Planets ------------------------------------------------------------- */
.planet {
  position: absolute; left: 0; top: 0;
  display: inline-flex; align-items: center; gap: .45rem;
  font: inherit; font-size: 12px; font-weight: 500;
  padding: .35rem .7rem .35rem .45rem;
  border-radius: var(--radius-full);
  background: rgba(8,30,102,.85);
  border: 1px solid var(--ink-line);
  color: var(--text-on-dark-muted);
  cursor: pointer; white-space: nowrap;
  will-change: transform;
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background-color .25s var(--ease), opacity .3s var(--ease);
}
.planet__body {
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--brand-300), var(--brand-700) 75%);
  flex: none;
  animation: pulse 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.37s);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(92,135,245,.35); }
  50%      { box-shadow: 0 0 13px rgba(140,170,249,.75); }
}
.planet:hover, .planet:focus-visible {
  color: #fff; border-color: rgba(140,170,249,.7); background: rgba(19,57,179,.92);
}
.planet.is-selected {
  color: #fff; background: var(--brand-500); border-color: var(--brand-300);
}
.planet.is-selected .planet__body {
  background: #fff; box-shadow: 0 0 0 4px rgba(140,170,249,.35), 0 0 14px rgba(255,255,255,.6);
}
.planet.is-back { opacity: .34; }
.planet.is-back .planet__body { animation: none; box-shadow: 0 0 4px rgba(92,135,245,.2); }
.planet.is-lit {
  color: var(--text-on-dark); border-color: rgba(140,170,249,.55);
  background: rgba(19,57,179,.85);
}

.js .planet { opacity: 0; }
.js .system.is-in .planet { opacity: 1; transition: opacity 600ms var(--ease) calc(var(--i, 0) * 60ms),
  color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease); }
.js .system.is-in .planet.is-back { opacity: .34; }

@media (prefers-reduced-motion: reduce) {
  .star { animation: none; opacity: .3; }
  .js .planet { opacity: 1; transition: none; }
}

/* SERVICE PAGES ============================================================ */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-12); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: var(--space-8); } }
.split__head h2 { margin-bottom: 0; }

/* Problem list. Numbered, because "here are four things that go wrong" reads
   as a diagnosis rather than a sales list. */
.issues { list-style: none; margin: 0; padding: 0; counter-reset: issue; }
.issues li {
  counter-increment: issue;
  position: relative; padding: var(--space-5) 0 var(--space-5) var(--space-12);
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}
.issues li:last-child { border-bottom: 1px solid var(--line); }
.issues li::before {
  content: counter(issue, decimal-leading-zero);
  position: absolute; left: 0; top: var(--space-5);
  font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--brand-500);
}

.cap { padding-top: var(--space-5); border-top: 1px solid var(--line); }
.cap__index {
  display: block; font-family: var(--font-mono); font-size: var(--fs-xs);
  color: var(--brand-500); margin-bottom: var(--space-3);
}
.cap__title { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.cap__text { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }

.deliverables { margin-top: var(--space-6); }
.stack-note { margin-top: var(--space-5); }

.services-planned { margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.services-planned .h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin: 0 0 var(--space-5); letter-spacing: -.015em; }
.chip--link { text-decoration: none; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.chip--link:hover { background: var(--brand-100); border-color: var(--brand-300); }

/* QUOTE FORM =============================================================== */

.promises { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); font-size: var(--fs-sm); color: var(--text-on-dark-muted); }
.promises li { position: relative; padding-left: 1.4em; }
.promises li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand-300); }

/* Renamed from .quote — that class already belongs to the testimonial figure,
   and the collision squeezed testimonial text into a narrow grid column. */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: var(--space-12); align-items: start; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; gap: var(--space-8); } }

.quote__block { border: 0; padding: 0; margin: 0 0 var(--space-12); }
.quote__legend {
  display: flex; align-items: baseline; gap: var(--space-3);
  font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600;
  letter-spacing: -.015em; margin-bottom: var(--space-6); padding: 0;
}
.quote__legend span { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--brand-500); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* Budget and timeline as tappable chips rather than a dropdown: fewer taps on
   a phone, and every option is visible without opening anything. */
.chip-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-radio { position: relative; }
.chip-radio input {
  position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.chip-radio span {
  display: inline-block; font-size: var(--fs-sm); font-weight: 500;
  padding: .55rem 1.05rem; border-radius: var(--radius-full);
  border: 1px solid var(--line-strong); color: var(--text-muted);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.chip-radio input:hover + span { border-color: var(--brand-500); color: var(--brand-700); }
.chip-radio input:checked + span {
  background: var(--brand-500); border-color: var(--brand-500); color: #fff;
}
.chip-radio input:focus-visible + span { outline: 2px solid var(--brand-500); outline-offset: 3px; }

.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); }
.consent input { margin-top: .3rem; flex: none; }

.quote__legal { margin-top: var(--space-5); }

.quote__aside { display: grid; gap: var(--space-5); position: sticky; top: 110px; }
@media (max-width: 900px) { .quote__aside { position: static; } }
.quote__card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); background: var(--paper-50); }
.quote__card .h4 { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: 600; margin: 0 0 var(--space-4); letter-spacing: -.01em; }

.numbered { margin: 0; padding-left: 1.15rem; font-size: var(--fs-sm); color: var(--text-muted); }
.numbered li + li { margin-top: var(--space-3); }

.alert { padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); font-size: var(--fs-sm); margin-bottom: var(--space-8); }
.alert--error { background: #FDF2F1; border: 1px solid #F0C4C0; color: var(--danger); }

/* PROCESS, PRICING, CONTACT ================================================ */

.stage { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--space-8); padding: var(--space-10) 0; border-top: 1px solid var(--line); }
.stage:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .stage { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-8) 0; } }

.stage__marker { display: flex; flex-direction: column; gap: var(--space-2); }
.stage__num { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--brand-500); }
.stage__duration { font-size: var(--fs-xs); color: var(--text-subtle); }
@media (max-width: 760px) { .stage__marker { flex-direction: row; align-items: baseline; gap: var(--space-4); } }

.stage__title { font-size: var(--fs-h3); margin-bottom: var(--space-4); }
.stage__text { color: var(--text-muted); max-width: 68ch; margin-bottom: var(--space-6); }
.stage__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
@media (max-width: 760px) { .stage__cols { grid-template-columns: 1fr; gap: var(--space-5); } }
.stage__label { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--text-subtle); margin-bottom: var(--space-3); }

.model__when { font-size: var(--fs-sm); font-weight: 500; color: var(--brand-700); margin-bottom: var(--space-3); }
.model__best { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }

.driver { padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.driver:last-child { border-bottom: 1px solid var(--line); }
.driver__title { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.driver__text { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; max-width: 66ch; }

.contact-card { padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.contact-card address { font-style: normal; color: var(--text-muted); font-size: var(--fs-sm); }

.hours { width: 100%; border-collapse: collapse; margin: var(--space-6) 0; font-size: var(--fs-sm); }
.hours th, .hours td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.hours thead th { font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); font-weight: 500; }
.hours tbody th { font-weight: 500; color: var(--text); }
.hours tbody td { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.hours__note { max-width: 66ch; }
.hours__promise { margin-top: var(--space-6); }

/* INDUSTRY PAGES =========================================================== */
.build-list { font-size: var(--fs-body); }
.build-list li + li { margin-top: var(--space-3); }

/* LEGAL PAGES ============================================================== */
.legal { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: var(--space-12); align-items: start; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: var(--space-8); } }
.legal__updated { margin-top: calc(var(--space-4) * -1); margin-bottom: var(--space-6); }
.legal__section { margin-top: var(--space-10); }
.legal__section h2 { font-size: var(--fs-h3); margin-bottom: var(--space-4); }
.legal__aside { position: sticky; top: 110px; }
@media (max-width: 900px) { .legal__aside { position: static; } }
.legal__aside-title { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-subtle); font-weight: 500; margin: 0 0 var(--space-4); font-family: var(--font-body); }
.legal__nav { list-style: none; margin: 0; padding: 0; }
.legal__nav li + li { margin-top: var(--space-3); }
.legal__nav a { font-size: var(--fs-sm); text-decoration: none; color: var(--text-muted); }
.legal__nav a:hover { color: var(--brand-700); }
.legal__nav a[aria-current="page"] { color: var(--brand-700); font-weight: 500; }

/* GOOGLE REVIEWS =========================================================== */

.reviews__head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-5);
  padding-bottom: var(--space-6); margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--line);
}
.reviews__score { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--space-3); }
.reviews__rating {
  font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 600;
  letter-spacing: -.03em; line-height: 1; color: var(--text);
}
.reviews__count { font-size: var(--fs-sm); color: var(--text-muted); }

.reviews__stars { display: inline-flex; gap: 2px; }
.star-icon { color: var(--line-strong); font-size: 1rem; line-height: 1; }
.star-icon.is-on { color: #E8A317; }

.quote .reviews__stars { margin-bottom: var(--space-2); }

.reviews__author { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.reviews__avatar { border-radius: 50%; flex: none; }
.reviews__author a { text-decoration: none; }
.reviews__author a:hover { text-decoration: underline; }

.reviews__attribution { margin-top: var(--space-6); }



/* Google mark in the score block. Required attribution wherever the rating
   is shown, and it also makes the source obvious at a glance. */
.reviews__mark { display: inline-flex; align-items: center; }
.reviews__mark svg { display: block; }

/* REVIEW CAROUSEL ==========================================================
   Scroll-snap rather than a JS-positioned slider: the browser handles the
   motion, touch swipe works for free, and the track stays keyboard and
   screen-reader accessible if the script never runs.
   ========================================================================= */

.rv { position: relative; }

.rv__track {
  display: flex; gap: var(--space-5);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: var(--space-2) 0 var(--space-6);
  /* Hide the scrollbar without removing the ability to scroll. */
  scrollbar-width: none; -ms-overflow-style: none;
}
.rv__track::-webkit-scrollbar { display: none; }
.rv__track:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 4px; border-radius: var(--radius-md); }

.rv__card {
  flex: 0 0 clamp(260px, 78vw, 320px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: var(--space-6);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rv__card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
@media (min-width: 700px) { .rv__card { flex-basis: 320px; } }

.rv__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); }

.rv__avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.rv__avatar--initial {
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: #fff;
  background: hsl(var(--h, 220) 45% 46%);
}

.rv__who { display: flex; flex-direction: column; min-width: 0; }
.rv__name {
  font-weight: 500; font-size: var(--fs-sm); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rv__date { font-size: var(--fs-xs); color: var(--text-subtle); }

.rv__stars { display: inline-flex; gap: 2px; margin-bottom: var(--space-3); }

.rv__body { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.rv__body p { margin: 0; }
.rv__body.is-clamped p {
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}

.rv__more {
  align-self: flex-start; margin-top: var(--space-2);
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: var(--fs-xs); font-weight: 500; color: var(--brand-700);
}
.rv__more:hover { text-decoration: underline; }

.rv__foot {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: auto; padding-top: var(--space-5);
  font-size: var(--fs-xs); color: var(--text-subtle);
}

.rv__controls { display: flex; gap: var(--space-2); justify-content: flex-end; }
.rv__nav {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--paper); color: var(--text-muted); cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
              background-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.rv__nav:hover:not(:disabled) { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-050); }
.rv__nav:disabled { opacity: .35; cursor: default; }

/* WORK / CASE STUDIES ====================================================== */

.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-6); }

.work-item__link {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--paper);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.work-item__link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.work-item__shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-100); }
.work-item__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-item__shot--empty {
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-900), var(--brand-700));
}
.work-item__shot--empty span { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: rgba(255,255,255,.35); }

.work-item__body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); }
.work-item__industry { font-size: var(--fs-xs); font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-600); }
.work-item__name { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.015em; }
.work-item__tagline { color: var(--text-muted); font-size: var(--fs-sm); }
.work-item__stack { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.chip--sm { font-size: 11px; padding: .25rem .6rem; }

.factbar { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: var(--space-10) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--ink-line); }
.factbar dt { font-size: var(--fs-xs); letter-spacing: .07em; text-transform: uppercase; color: var(--brand-300); margin-bottom: var(--space-2); }
.factbar dd { margin: 0; font-size: var(--fs-sm); color: var(--text-on-dark); }

.shot { margin: 0 0 var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.shot img { width: 100%; height: auto; display: block; }

.callout { border-left: 2px solid var(--brand-500); padding-left: var(--space-5); color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-6); }

/* ABOUT / CAREERS ========================================================== */
.person { padding-top: var(--space-5); border-top: 1px solid var(--ink-line); }
.person__name { font-size: var(--fs-h4); margin-bottom: var(--space-2); }
.person__role { font-size: var(--fs-sm); color: var(--brand-300); margin-bottom: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: baseline; }
.person__where { font-size: var(--fs-xs); color: var(--text-on-dark-muted); border: 1px solid var(--ink-line); border-radius: var(--radius-full); padding: .1rem .55rem; }
.statement { font-size: var(--fs-h2); max-width: 22ch; margin-inline: auto; }
@media (max-width: 700px) { .statement { max-width: none; } }

/* INSIGHTS ================================================================= */

.posts { display: grid; gap: var(--space-2); }
.post__link {
  display: block; text-decoration: none; color: inherit;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--line);
  transition: background-color var(--dur) var(--ease);
}
.post:last-child .post__link { border-bottom: 1px solid var(--line); }
.post__link:hover .post__title { color: var(--brand-700); }
.post__link:hover .card__link::after { transform: translateX(3px); }

.post__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  font-size: var(--fs-xs); color: var(--text-subtle); margin-bottom: var(--space-3);
}
.post__cat { color: var(--brand-600); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.post__title {
  font-size: var(--fs-h3); margin-bottom: var(--space-3);
  transition: color var(--dur) var(--ease); max-width: 30ch;
}
.post__excerpt { color: var(--text-muted); max-width: 68ch; margin-bottom: var(--space-4); }

.article__head { padding-bottom: var(--space-8); margin-bottom: var(--space-10); border-bottom: 1px solid var(--line); }
.article__meta { font-size: var(--fs-sm); color: var(--text-subtle); margin-top: var(--space-6); }

/* Long-form reading: a slightly larger body size and a measure that stays
   comfortable. Headings get more space above than below so sections read as
   groups rather than an even stream. */
.article { font-size: 1.06rem; line-height: 1.75; }
.article h2 { font-size: var(--fs-h3); margin-top: var(--space-16); margin-bottom: var(--space-4); }
.article h3 { font-size: var(--fs-h4); margin-top: var(--space-10); margin-bottom: var(--space-3); }
.article p { margin-bottom: var(--space-5); color: var(--text-muted); }
.article strong { color: var(--text); font-weight: 600; }

.article__list, .article__steps { margin: 0 0 var(--space-6); padding-left: 1.4rem; color: var(--text-muted); }
.article__list li, .article__steps li { margin-bottom: var(--space-3); padding-left: .3rem; }
.article__steps li::marker { color: var(--brand-500); font-variant-numeric: tabular-nums; }
.article__list li::marker { color: var(--brand-500); }

.article__quote {
  margin: var(--space-8) 0; padding-left: var(--space-6);
  border-left: 2px solid var(--brand-500);
  font-size: var(--fs-lead); color: var(--text);
}

.article__note {
  margin: var(--space-10) 0; padding: var(--space-6);
  background: var(--brand-050); border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm); color: var(--brand-900);
}

/* INDUSTRY GRID ============================================================
   Sectors with delivered work take the filled treatment and lead the grid.
   The emphasis carries information: it shows where the proof is.
   ========================================================================= */

.ind-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.ind {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper); overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.ind:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.ind__link {
  display: flex; flex-direction: column; height: 100%;
  padding: var(--space-6); text-decoration: none; color: inherit;
}

.ind__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.ind__icon { color: var(--brand-500); }

.ind__arrow {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--text-subtle);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ind:hover .ind__arrow {
  transform: rotate(45deg); background: var(--brand-500);
  border-color: var(--brand-500); color: #fff;
}

.ind__proof {
  font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: var(--space-2);
}
.ind__name {
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600;
  letter-spacing: -.015em; line-height: 1.2; margin-bottom: var(--space-3);
}
.ind__text { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.ind__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-5); }

/* Proven sectors: navy fill, lighter accent, and a soft wash echoing the hero. */
.ind--proven { background: var(--brand-900); border-color: transparent; position: relative; }
.ind--proven::before {
  content: ""; position: absolute; inset: auto -35% -60% auto;
  width: 22rem; height: 22rem; border-radius: 50%;
  background: radial-gradient(circle closest-side, rgba(92,135,245,.28), transparent 70%);
  pointer-events: none;
}
.ind--proven .ind__link { position: relative; z-index: 1; }
.ind--proven .ind__icon { color: var(--brand-300); }
.ind--proven .ind__proof { color: var(--brand-300); }
.ind--proven .ind__name { color: var(--text-on-dark); }
.ind--proven .ind__text { color: var(--text-on-dark-muted); }
.ind--proven .ind__arrow { border-color: var(--ink-line-strong); color: var(--text-on-dark-muted); }
.ind--proven:hover .ind__arrow { background: var(--brand-500); border-color: var(--brand-400); color: #fff; }

.js .ind { opacity: 0; transform: translateY(26px); }
.js .ind.is-visible {
  opacity: 1; transform: none;
  transition: opacity 600ms var(--ease) var(--anim-delay, 0ms),
              transform 780ms cubic-bezier(.16,1,.3,1) var(--anim-delay, 0ms);
}
.js .ind.is-visible:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .js .ind { opacity: 1; transform: none; transition: none; }
  .js .ind.is-visible:hover, .ind:hover { transform: none; }
  .ind:hover .ind__arrow, .ind--proven:hover .ind__arrow { transform: none; }
}

/* CHAT WIDGET ==============================================================
   Two floating actions, not eight. WhatsApp for people who prefer messaging,
   and the assistant for everyone else. No social sidebar: icons pinned down
   the page edge send visitors away, and on a B2B site that is the opposite of
   what the page is for.
   ========================================================================= */

.fab {
  position: fixed; right: var(--space-5); bottom: var(--space-5); z-index: 60;
  display: flex; flex-direction: column; gap: var(--space-3);
}
@media (max-width: 620px) { .fab { right: var(--space-4); bottom: var(--space-4); } }

.fab__btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; cursor: pointer; color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.fab__btn:hover { transform: translateY(-2px); }
.fab__btn--wa { background: #25D366; }
.fab__btn--wa:hover { background: #1FB855; }
.fab__btn--chat { background: var(--brand-500); position: relative; }
.fab__btn--chat:hover { background: var(--brand-600); }

.fab__icon-close { display: none; }
.fab.is-open .fab__icon-chat { display: none; }
.fab.is-open .fab__icon-close { display: block; }
.fab.is-open .fab__btn--wa { display: none; }

.chat {
  position: fixed; right: var(--space-5); bottom: calc(var(--space-5) + 66px);
  z-index: 61; width: min(370px, calc(100vw - var(--space-8)));
  max-height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (max-width: 620px) {
  .chat { right: var(--space-4); left: var(--space-4); width: auto; bottom: calc(var(--space-4) + 64px); }
}

.chat__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--brand-900); color: var(--text-on-dark);
}
.chat__who { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 500; }
.chat__dot { width: 7px; height: 7px; border-radius: 50%; background: #34D399; }
.chat__close { background: none; border: 0; color: var(--text-on-dark-muted); cursor: pointer; padding: 4px; }
.chat__close:hover { color: #fff; }

.chat__log {
  flex: 1; min-height: 140px; overflow-y: auto; padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  background: var(--paper-50);
}

.chat__msg {
  max-width: 86%; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); font-size: var(--fs-sm); line-height: 1.55;
  white-space: pre-line;
}
.chat__msg--bot { background: var(--paper); border: 1px solid var(--line); color: var(--text); align-self: flex-start; }
.chat__msg--me { background: var(--brand-500); color: #fff; align-self: flex-end; }

.chat__typing { display: flex; gap: 4px; padding: var(--space-3) var(--space-4); align-self: flex-start; }
.chat__typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong);
  animation: chat-blink 1.2s infinite;
}
.chat__typing span:nth-child(2) { animation-delay: .18s; }
.chat__typing span:nth-child(3) { animation-delay: .36s; }
@keyframes chat-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.chat__foot { padding: var(--space-4); border-top: 1px solid var(--line); background: var(--paper); }
.chat__options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chat__option {
  font: inherit; font-size: var(--fs-xs); font-weight: 500;
  padding: .5rem .9rem; border-radius: var(--radius-full);
  background: var(--paper); color: var(--brand-700);
  border: 1px solid var(--line-strong); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.chat__option:hover { border-color: var(--brand-500); background: var(--brand-050); }

.chat__form { display: flex; gap: var(--space-2); }
.chat__form .input { font-size: var(--fs-sm); padding: .6rem .8rem; }
.chat__send {
  flex: none; width: 40px; border: 0; border-radius: var(--radius-md);
  background: var(--brand-500); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.chat__send:hover { background: var(--brand-600); }

.chat__links { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chat__links a {
  font-size: var(--fs-xs); font-weight: 500; text-decoration: none;
  padding: .5rem .9rem; border-radius: var(--radius-full);
  background: var(--brand-500); color: #fff;
}
.chat__links a:hover { background: var(--brand-600); color: #fff; }

.chat__note {
  margin: 0; padding: var(--space-3) var(--space-5);
  font-size: 11px; color: var(--text-subtle);
  border-top: 1px solid var(--line); background: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  .fab__btn:hover { transform: none; }
  .chat__typing span { animation: none; opacity: .5; }
}


.partner {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
}
.partner__label {
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .07em;
  text-transform: uppercase; color: var(--brand-700);
  margin: 0 0 var(--space-3);
}
.partner__text {
  font-size: var(--fs-sm); line-height: 1.65; color: var(--text);
  margin: 0 0 var(--space-4);
}
.partner__link { margin: 0; font-size: var(--fs-sm); font-weight: 500; }