/* ==========================================================================
   Tagthose Design Consultation LLP — tagthose.in
   Global stylesheet
   --------------------------------------------------------------------------
   Brand blue #5956E9 sampled directly from the logo artwork.
   Single typeface (Figtree) for everything readable; IBM Plex Mono is used
   only for eyebrow labels and figures, never for running text.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Brand */
  --brand:        #5956E9;
  --brand-deep:   #413EC9;
  --brand-dark:   #2E2C96;
  --brand-soft:   #EFEEFE;
  --brand-line:   #CFCDFA;

  /* Neutrals — cool, slightly blue-biased to sit with the brand */
  --ink:          #0B0B14;
  --ink-2:        #2C2C3D;
  --ink-3:        #55566A;
  --muted:        #767889;
  --rule:         #E4E4EC;
  --rule-strong:  #C9CAD6;
  --ground:       #F5F5F9;
  --surface:      #FFFFFF;
  --surface-2:    #EFEFF5;

  /* Dark ground — the trust block */
  --night:        #100F23;
  --night-2:      #1A1936;
  --night-rule:   #2C2B4E;
  --night-ink:    #FFFFFF;
  --night-ink-2:  #B9B8D4;

  /* Semantic */
  --positive:     #0E7A5A;

  /* Type */
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --container: 1280px;
  --gutter: 24px;
  --pad-sec: 128px;
  --pad-chapter: 184px;
  --radius: 0px;
  --radius-sm: 0px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --t-fast: .22s;
  --t-med: .38s;
  --t-slow: .72s;

  /* Display */
  --track-display: -.028em;
  --track-tight: -.015em;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 500; letter-spacing: -0.028em; text-wrap: balance; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--brand); color: #fff; }

/* --------------------------------------------------------------------------
   3. Type scale
   Additive leading: line-height tracks font-size + ~10px, so display sizes
   set as dense blocks while body copy stays open.
   -------------------------------------------------------------------------- */
.t-display {
  font-size: clamp(40px, 6.1vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 300;
}
.t-h1 {
  font-size: clamp(38px, 6.1vw, 88px);
  line-height: 1.035;
  letter-spacing: -0.034em;
  font-weight: 280;
}
.t-h2 {
  font-size: clamp(29px, 4.2vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 300;
}
.t-h3 {
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.22;
  letter-spacing: -0.022em;
  font-weight: 500;
}
.t-h4 {
  font-size: 19px;
  line-height: 1.38;
  letter-spacing: -0.016em;
  font-weight: 600;
}
/* Emphasis inside a light display line */
.t-h1 strong, .t-h2 strong, .t-h1 b, .t-h2 b { font-weight: 600; }
.t-h1 em, .t-h2 em { font-style: normal; color: var(--brand); }
.t-lead {
  font-size: clamp(17px, 1.42vw, 19.5px);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink-3);
}
.t-body  { font-size: 17px; line-height: 1.62; color: var(--ink-3); }
.t-small { font-size: 15px; line-height: 1.6;  color: var(--muted); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--brand);
  display: block;
}
.eyebrow--muted { color: var(--muted); }

.measure    { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

/* Accent treatments */
.hl { color: var(--brand); }

.underline-brand {
  background-image: linear-gradient(var(--brand), var(--brand));
  background-repeat: no-repeat;
  background-size: 100% 6px;
  background-position: 0 92%;
  padding-bottom: 2px;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.section { padding-block: var(--pad-sec); }
.section--chapter  { padding-block: var(--pad-chapter); }
.section--tight    { padding-block: 64px; }
.section--flush-top { padding-top: 0; }

/* Dark trust block */
.section--dark {
  background: var(--night);
  color: var(--night-ink);
}
.section--dark .t-lead,
.section--dark .t-body,
.section--dark .t-small { color: var(--night-ink-2); }
.section--dark .eyebrow { color: #9D9BF5; }

.stack   { display: flex; flex-direction: column; }
.stack-8  > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.stack-32 > * + * { margin-top: 32px; }
.stack-48 > * + * { margin-top: 48px; }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 32px 56px;
  align-items: end;
  margin-bottom: 56px;
}
.section-head__aside { padding-bottom: 4px; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }
.section--dark .rule { background: var(--night-rule); }

/* --------------------------------------------------------------------------
   5. Buttons & links
   Unlike the reference sites we studied, every page has one unmistakable
   filled primary action. Ghost and text links are strictly secondary.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding-inline: 30px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.012em;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--rule-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.btn--onDark { background: #fff; color: var(--ink); }
.btn--onDark:hover { background: var(--brand); color: #fff; }

.btn--ghostDark {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3);
}
.btn--ghostDark:hover { box-shadow: inset 0 0 0 1.5px #fff; }

.btn--sm { height: 44px; padding-inline: 22px; font-size: 15px; }
.btn--block { width: 100%; }

.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.012em;
  position: relative;
  padding-bottom: 3px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1.5px;
  width: 28%;
  background: currentColor;
  transition: width var(--t-fast) var(--ease);
}
.link-arrow:hover::after,
.link-arrow:focus-visible::after { width: 100%; }
.link-arrow svg { transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow--light { color: #fff; }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 18px;
  transition: background var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              padding var(--t-med) var(--ease);
}
.site-head.is-stuck {
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--rule);
  padding-block: 12px;
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 132px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--brand);
  transition: width var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.head-actions { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1.5px var(--rule-strong);
  transition: box-shadow var(--t-fast) var(--ease);
}
.menu-toggle:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.menu-toggle span {
  display: block;
  width: 18px; height: 1.6px;
  background: var(--ink);
  position: relative;
  transition: background var(--t-fast) var(--ease);
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.6px;
  background: var(--ink);
  transition: transform var(--t-med) var(--ease);
}
.menu-toggle span::before { top: -5.5px; }
.menu-toggle span::after  { top:  5.5px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Menu overlay — doubles as a conversion surface
   -------------------------------------------------------------------------- */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
}
.menu-panel.is-open { opacity: 1; visibility: visible; }

.menu-panel__main {
  background: var(--brand);
  color: #fff;
  padding: 120px clamp(28px, 6vw, 88px) 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}
.menu-panel__aside {
  background: var(--night);
  color: #fff;
  padding: 120px clamp(28px, 4vw, 56px) 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  overflow-y: auto;
}

.menu-primary { display: flex; flex-direction: column; gap: 2px; margin-bottom: 44px; }
.menu-primary a {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.16;
  width: max-content;
  max-width: 100%;
  position: relative;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.menu-primary a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  height: 3px; width: 0;
  background: #fff;
  transition: width var(--t-med) var(--ease);
}
.menu-primary a:hover { transform: translateX(6px); }
.menu-primary a:hover::after { width: 100%; }

.menu-cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 40px; }
.menu-cols h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.62);
  margin-bottom: 12px;
}
.menu-cols li + li { margin-top: 7px; }
.menu-cols a {
  font-size: 15.5px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  transition: color var(--t-fast) var(--ease);
}
.menu-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.menu-cta__title {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 300;
  letter-spacing: -0.032em;
  line-height: 1.18;
  margin-bottom: 20px;
}
.menu-offices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.menu-offices dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.5);
  margin-bottom: 5px;
}
.menu-offices dd { margin: 0; font-size: 15px; color: rgba(255,255,255,.9); line-height: 1.5; }

/* The ask travels with the navigation on small screens too. */
.menu-mobile-cta { display: none; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.26); }
.menu-mobile-cta p { font-size: 17px; font-weight: 600; letter-spacing: -0.018em; margin-bottom: 16px; }
.menu-mobile-cta .meta { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.78); margin-top: 16px; margin-bottom: 0; }
.menu-mobile-cta .meta a { text-decoration: underline; text-underline-offset: 3px; }

/* The wordmark is black artwork — invert it while it sits on the blue panel. */
body.is-locked .brand img { filter: brightness(0) invert(1); }
body.is-locked .site-head { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.is-locked .menu-toggle { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
body.is-locked .menu-toggle span,
body.is-locked .menu-toggle span::before,
body.is-locked .menu-toggle span::after { background: #fff; }
body.is-locked .menu-toggle[aria-expanded="true"] span { background: transparent; }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { padding-top: 176px; padding-bottom: 72px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -340px; right: -220px;
  width: 760px; height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89,86,233,.14) 0%, rgba(89,86,233,0) 68%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 56px;
  align-items: center;
}
.hero__title { margin-bottom: 26px; }
.hero__swap {
  display: inline-block;
  color: var(--brand);
  min-height: 1.06em;
}
.hero__swap .w { display: inline-block; animation: swapIn .5s var(--ease); }
@keyframes swapIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__sub { margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 48px; }

.hero__visual {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--night) 0%, #241F5A 55%, var(--brand) 140%);
  aspect-ratio: 4 / 4.4;
  display: flex;
  align-items: flex-end;
  padding: 26px;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 34px 34px;
}
.hero__visual::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89,86,233,.55), transparent 65%);
  top: 12%; left: 50%;
  transform: translateX(-50%);
  filter: blur(14px);
}
.hero__badge {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0;
  padding: 18px 20px;
  color: #fff;
  width: 100%;
}
.hero__badge .n {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.hero__badge .l {
  font-size: 14px;
  color: rgba(255,255,255,.76);
  margin-top: 6px;
  display: block;
  line-height: 1.45;
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.stat__n {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat__l {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 8px;
  display: block;
  line-height: 1.45;
}
.section--dark .stat-row { border-color: var(--night-rule); }
.section--dark .stat__l { color: var(--night-ink-2); }

/* --------------------------------------------------------------------------
   9. Logo wall
   -------------------------------------------------------------------------- */
.logowall { padding-block: 56px; }
.logowall__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 30px;
}
.logowall__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
}
.logowall__grid img {
  height: 34px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .62;
  transition: filter var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}
.logowall__grid a:hover img,
.logowall__grid img:hover { filter: grayscale(0); opacity: 1; }
.logowall__grid img.is-tall { height: 44px; }

/* --------------------------------------------------------------------------
   10. Service pillars
   -------------------------------------------------------------------------- */
.pillar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  padding-block: 44px;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillar__step {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--brand);
  display: block;
  margin-bottom: 10px;
}
.pillar__title { margin-bottom: 0; }
.pillar__list { columns: 2; column-gap: 28px; }
.pillar__list li {
  font-size: 15.5px;
  color: var(--ink-3);
  padding-left: 18px;
  position: relative;
  margin-bottom: 9px;
  break-inside: avoid;
}
.pillar__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-line);
}
.pillar__list li.is-key::before { background: var(--brand); }

/* --------------------------------------------------------------------------
   11. Work cards — inverse-scale hover (frame recedes, image advances)
   -------------------------------------------------------------------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.work-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; }

.work-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  min-height: 420px;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  transition: transform var(--t-med) var(--ease);
}
.work-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform var(--t-med) var(--ease);
  background-size: cover;
  background-position: center;
}
.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16,15,35,.08) 0%, rgba(16,15,35,.52) 100%);
}
.work-card:hover { transform: scale(.975); }
.work-card:hover .work-card__bg { transform: scale(1.09); }
.work-card:hover .work-card__info { box-shadow: 0 10px 30px -8px rgba(89,86,233,.42); }

.work-card__info {
  background: var(--surface);
  border-radius: 0;
  padding: 20px 20px 18px;
  width: 100%;
  transition: box-shadow var(--t-med) var(--ease);
}
.work-card__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--brand);
  display: block;
  margin-bottom: 8px;
}
.work-card__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.026em;
  line-height: 1.28;
  margin-bottom: 7px;
}
.work-card__desc { font-size: 14.5px; color: var(--muted); line-height: 1.52; margin-bottom: 14px; }
.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.work-card__meta span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  padding: 4px 11px;
}

/* Gradient placeholders used where no photography exists yet. */
.ph-1 { background-image: linear-gradient(145deg, #1B1A3C 0%, #3B2F8F 55%, #5956E9 120%); }
.ph-2 { background-image: linear-gradient(145deg, #0F2A33 0%, #16555E 55%, #2BA3A8 120%); }
.ph-3 { background-image: linear-gradient(145deg, #2C1430 0%, #6B2458 55%, #C2437F 120%); }
.ph-4 { background-image: linear-gradient(145deg, #11203D 0%, #1C4C8A 55%, #3C8BD9 120%); }
.ph-5 { background-image: linear-gradient(145deg, #2B1E0E 0%, #7A4C14 55%, #D99A3C 120%); }
.ph-6 { background-image: linear-gradient(145deg, #15241A 0%, #27603C 55%, #4FAE6E 120%); }

/* --------------------------------------------------------------------------
   12. Cards (generic)
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border-radius: 0;
  padding: 30px;
  border: 1px solid var(--rule);
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.card--hover:hover { border-color: var(--brand-line); transform: translateY(-3px); }
.card__icon {
  width: 44px; height: 44px;
  border-radius: 0;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.section--dark .card {
  background: var(--night-2);
  border-color: var(--night-rule);
}
.section--dark .card__icon { background: rgba(89,86,233,.2); color: #A9A7F8; }

/* Industry card */
.ind-card {
  padding: 26px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 40px minmax(0,1fr);
  gap: 20px;
  transition: border-color var(--t-fast) var(--ease);
}
.ind-card__n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
  padding-top: 5px;
}
.ind-card h3 { margin-bottom: 7px; }
.ind-card:hover { border-color: var(--brand); }

/* --------------------------------------------------------------------------
   13. Process steps
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr);
  gap: 28px;
  padding-block: 36px;
  border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__n {
  counter-increment: step;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: .1em;
}
.step__n::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin-bottom: 10px; }
.section--dark .step { border-color: var(--night-rule); }

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }

.quote {
  background: var(--night-2);
  border: 1px solid var(--night-rule);
  border-radius: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color var(--t-med) var(--ease);
}
.quote:hover { border-color: rgba(89,86,233,.6); }
.quote--feature {
  background: linear-gradient(140deg, #241F5A 0%, var(--brand-dark) 100%);
  border-color: transparent;
}
.quote__mark {
  font-size: 46px;
  line-height: .7;
  color: var(--brand);
  font-weight: 300;
  height: 20px;
}
.quote--feature .quote__mark { color: #A9A7F8; }
.quote__text {
  font-size: 18px;
  line-height: 1.58;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.012em;
  flex: 1;
}
.quote--feature .quote__text { font-size: 21px; }
.quote__by { display: flex; align-items: center; gap: 14px; }
.quote__av {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  background: var(--brand);
}
.quote__av--initials {
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: -0.02em;
}
.quote__name { font-size: 15.5px; font-weight: 700; color: #fff; display: block; line-height: 1.3; }
.quote__role { font-size: 13.5px; color: var(--night-ink-2); display: block; margin-top: 2px; }
.quote__metric {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  background: rgba(89,86,233,.18);
  border: 1px solid rgba(89,86,233,.42);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  width: max-content;
}
.quote__metric b {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.quote__metric span { font-size: 12.5px; color: var(--night-ink-2); }

/* Light-ground variant */
.quote--light {
  background: var(--surface);
  border-color: var(--rule);
}
.quote--light .quote__text { color: var(--ink); }
.quote--light .quote__name { color: var(--ink); }
.quote--light .quote__role { color: var(--muted); }

/* --------------------------------------------------------------------------
   15. Accordion (FAQ / services detail)
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--rule); }
.acc__item { border-bottom: 1px solid var(--rule); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
  transition: color var(--t-fast) var(--ease);
}
.acc__btn:hover { color: var(--brand); }
.acc__ico {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  position: relative;
  transition: background var(--t-fast) var(--ease), transform var(--t-med) var(--ease);
}
.acc__ico::before,
.acc__ico::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.acc__ico::before { width: 11px; height: 1.8px; }
.acc__ico::after  { width: 1.8px; height: 11px; }
.acc__btn[aria-expanded="true"] .acc__ico { background: var(--brand); color: #fff; transform: rotate(180deg); }
.acc__btn[aria-expanded="true"] .acc__ico::after { opacity: 0; }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med) var(--ease);
}
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 24px; max-width: 70ch; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   16. Big CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--night);
  border-radius: 0;
  padding: clamp(44px, 6vw, 76px) clamp(26px, 5vw, 72px);
  position: relative;
  overflow: hidden;
  color: #fff;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 640px; height: 640px;
  border-radius: 50%;
  right: -180px; bottom: -340px;
  background: radial-gradient(circle, rgba(89,86,233,.5) 0%, rgba(89,86,233,0) 66%);
}
.cta-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta-band__note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255,255,255,.6);
  margin-top: 16px;
  letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.008em;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 14px 16px;
  width: 100%;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field input::placeholder,
.field textarea::placeholder { color: #9A9CAC; }
.field__hint { font-size: 13px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.chip input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }

.form-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   18. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { padding-top: 164px; padding-bottom: 64px; }
.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 48px;
  align-items: end;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-foot {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding-block: 72px 36px;
}
.foot-social {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.foot-social a {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 300;
  letter-spacing: -0.038em;
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.foot-social a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2.5px; width: 0;
  background: var(--brand);
  transition: width var(--t-med) var(--ease);
}
.foot-social a:hover { color: var(--brand); }
.foot-social a:hover::after { width: 100%; }

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-bottom: 56px;
}
.foot-grid h4 {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 16px;
}
.foot-grid li + li { margin-top: 10px; }
.foot-grid a {
  font-size: 15.5px;
  color: var(--ink-3);
  transition: color var(--t-fast) var(--ease);
}
.foot-grid a:hover { color: var(--brand); }
.foot-brand img { width: 136px; margin-bottom: 18px; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}
.foot-base nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot-base a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   20. Reveal on scroll
   Resting state is VISIBLE. The hidden state is only applied when JS is
   running, and a failsafe in main.js reveals everything after 2.4s so
   content can never be stranded at opacity:0.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  :root { --pad-sec: 104px; --pad-chapter: 148px; }
  .pillar { grid-template-columns: 180px minmax(0,1fr) minmax(0,1fr); gap: 20px 32px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 36px; }
}

@media (max-width: 920px) {
  .nav, .head-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .menu-panel { grid-template-columns: 1fr; }
  .menu-panel__main { padding-top: 104px; padding-bottom: 48px; justify-content: flex-start; }
  .menu-panel__aside { display: none; }
  .menu-mobile-cta { display: block; }
  /* The panel scrolls under the fixed header — give the bar its own ground
     so the wordmark never collides with a passing nav item. */
  body.is-locked .site-head { background: var(--brand) !important; }

  .hero { padding-top: 132px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { aspect-ratio: 16 / 11; }
  .page-hero { padding-top: 124px; }
  .page-hero__grid { grid-template-columns: 1fr; gap: 28px; align-items: start; }

  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .pillar { grid-template-columns: 1fr; gap: 16px; padding-block: 34px; }
  .pillar__list { columns: 2; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .quote-grid { grid-template-columns: 1fr; }
  .cta-band__inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-band__actions { justify-content: flex-start; }
  .work-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; --pad-sec: 76px; --pad-chapter: 100px; }
  body { font-size: 16px; }
  .hero { padding-top: 116px; padding-bottom: 48px; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .stat-row { grid-template-columns: 1fr; gap: 18px; }
  .stat-row > div { display: flex; align-items: baseline; gap: 12px; }
  .stat__n { font-size: 30px; }
  .stat__l { margin-top: 0; }
  .work-grid, .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .work-card { min-height: 360px; }
  .pillar__list { columns: 1; }
  .menu-cols { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .ind-card { grid-template-columns: 1fr; gap: 8px; }
  .logowall__grid { gap: 26px 32px; }
  .logowall__grid img { height: 26px; }
  .logowall__grid img.is-tall { height: 34px; }
  .cta-band { border-radius: 0; }
}

/* Print — occasionally a prospect prints the services page */
@media print {
  .site-head, .menu-panel, .cta-band, .site-foot { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
