/* =============================================================
   ARS Softech — global stylesheet
   Brand colours sampled from assets/images/ARS_logo_transparent.png
   blue #0146A0 · gold #F4A801
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --brand-blue: #0146a0;
  --brand-blue-dark: #013573;
  --brand-gold: #f4a801;
  --brand-gold-dark: #d59201;
  --navy-900: #04162e;
  --navy-800: #07213f;
  --navy-700: #0b2e55;
  --blue-600: #0a5bcb;

  --ink: #0f1c2e;
  --muted: #566b84;
  --surface: #ffffff;
  --surface-alt: #f4f7fc;
  --line: #e3e9f2;
  --card: #ffffff;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 24px;
  /* layered rather than single-blur: a tight contact shadow plus a soft ambient one */
  --shadow-sm: 0 1px 2px rgba(4, 22, 46, 0.05), 0 2px 8px rgba(4, 22, 46, 0.04);
  --shadow-md: 0 1px 2px rgba(4, 22, 46, 0.06), 0 10px 24px -12px rgba(4, 22, 46, 0.2);
  --shadow-lg: 0 2px 4px rgba(4, 22, 46, 0.06), 0 28px 56px -28px rgba(4, 22, 46, 0.36);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 80px;
  --section-y: clamp(56px, 6.5vw, 96px);

  --font-display: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Dark surfaces re-point the same tokens so components need no variants */
.is-dark {
  --ink: #ffffff;
  --muted: #aec2d9;
  --line: rgba(255, 255, 255, 0.13);
  --card: linear-gradient(165deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028));
  --surface: transparent;
  --surface-alt: transparent;
  color: var(--ink);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.006em;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* digits should align in columns and read as data, not prose */
.stat b,
.mock-kpi b,
.mock-row span:last-child,
.crumbs,
time {
  font-variant-numeric: tabular-nums lining-nums;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
iframe {
  max-width: 100%;
  display: block;
}

img {
  height: auto;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--brand-gold-dark);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.021em;
  margin: 0 0 0.55em;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 3.9vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.028em;
}
h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  letter-spacing: -0.024em;
}
h3 {
  font-size: clamp(1.08rem, 1.2vw, 1.2rem);
  line-height: 1.3;
  letter-spacing: -0.014em;
}
h4 {
  font-size: 1rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 1.05em;
  color: var(--muted);
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.is-dark :focus-visible {
  outline-color: var(--brand-gold);
}

::selection {
  background: var(--brand-gold);
  color: var(--navy-900);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--brand-gold);
  color: var(--navy-900);
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
  color: var(--navy-900);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--alt {
  background: var(--surface-alt);
}

.section--tight {
  padding-block: clamp(52px, 6vw, 84px);
}

.section--dark {
  background:
    radial-gradient(90rem 40rem at 82% -10%, rgba(244, 168, 1, 0.14), transparent 62%),
    linear-gradient(162deg, #03101f, var(--navy-900) 38%, var(--navy-800) 74%, var(--navy-700));
}

.grid {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
}

.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 headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin: 0 0 0.75rem;
}

.is-dark .eyebrow {
  color: var(--brand-gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand-gold);
  border-radius: 2px;
}

.section-head {
  max-width: 56ch;
  margin-bottom: clamp(26px, 3vw, 42px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

/* sub-group divider inside a section that holds more than one grid.
   max-width resets the 68ch measure that <p> carries, which would otherwise
   centre the label inside a narrow box rather than across the container. */
.group-label {
  display: flex;
  justify-content: center;
  max-width: none;
  margin: 0 0 1.4rem;
}

.group-label--next {
  margin-top: clamp(36px, 4.5vw, 56px);
}

/* keeps a two-card row from stretching to full container width */
.grid--narrow {
  max-width: 760px;
  margin-inline: auto;
}

.section-head p {
  font-size: 1.025rem;
  color: var(--muted);
}

.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-head--split > div {
  max-width: 58ch;
}

/* Gold swoosh echoing the arc under the "A" in the logo.
   Painted as a background so it re-draws per line when the phrase wraps. */
.hl {
  color: var(--brand-gold);
  padding-bottom: 0.16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 11.2C46 3.4 148 1.8 197 7.6' fill='none' stroke='%23F4A801' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E")
    no-repeat center bottom / 100% 0.26em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand-blue);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.915rem;
  letter-spacing: -0.006em;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background-color 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--btn-fg);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn--gold {
  --btn-bg: var(--brand-gold);
  --btn-fg: var(--navy-900);
}

.btn--gold:hover {
  --btn-bg: #ffb81f;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--brand-gold);
  --btn-fg: var(--brand-gold-dark);
}

.is-dark .btn--ghost:hover {
  --btn-fg: var(--brand-gold);
  background: rgba(255, 255, 255, 0.06);
}

.btn--sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.855rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Text link with sliding arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-blue);
}

.is-dark .arrow-link {
  color: var(--brand-gold);
}

.arrow-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.22s var(--ease);
}

.arrow-link:hover svg {
  transform: translateX(5px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    height 0.3s var(--ease);
}

.site-header.is-stuck {
  height: 70px;
  background: rgba(4, 22, 46, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-right: auto;
}

.brand img {
  height: 40px;
  width: auto;
  transition: height 0.3s var(--ease);
}

.site-header.is-stuck .brand img {
  height: 34px;
}

/* Wordmark lockup: name and tagline are tracked so both lines set to the
   same width, and a hairline rule separates them from the logo mark. */
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  line-height: 1;
  padding-left: 0.8rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em; /* caps need positive tracking to breathe */
  color: #fff;
}

.brand-text span {
  font-size: 0.48rem;
  font-weight: 600;
  letter-spacing: 0.05em; /* tuned so the tagline sets to the same width as the name */
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brand-gold);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.4vw, 1.1rem);
}

.nav-list a {
  position: relative;
  display: block;
  padding: 0.5rem 0.2rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gold);
  transition: right 0.25s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: #fff;
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  right: 0;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 101; /* must stay above the open drawer so it can close it */
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  place-items: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

body.nav-open .nav-toggle span {
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span::before {
  opacity: 0;
}

body.nav-open .nav-toggle span::after {
  transform: rotate(-90deg) translateX(-4px);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(4, 22, 46, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(44px, 6vw, 80px));
  padding-bottom: clamp(88px, 9vw, 132px);
  overflow: hidden;
  background:
    radial-gradient(70rem 42rem at 78% 8%, rgba(244, 168, 1, 0.2), transparent 60%),
    radial-gradient(56rem 40rem at 6% 84%, rgba(10, 91, 203, 0.34), transparent 62%),
    linear-gradient(158deg, #03101f 0%, var(--navy-900) 34%, var(--navy-800) 68%, var(--navy-700) 100%);
}

/* faint engineering grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 62% at 50% 34%, #000 30%, transparent 100%);
  pointer-events: none;
}

/* shallow diagonal hand-off into the light body */
.hero::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -1px;
  height: clamp(42px, 6vw, 86px);
  background: #f4f7fc; /* matches .section--alt, which always follows the hero */
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.1rem;
}

.hero-lead {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--brand-gold);
  flex: none;
}

/* Hero dashboard mock — pure CSS/SVG, no photography needed */
.mock {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem;
  backdrop-filter: blur(6px);
}

/* The mock sits inside .is-dark, so it re-points the tokens back to light */
.mock-window,
.mock-badge {
  --ink: #0f1c2e;
  --muted: #566b84;
  --line: #e3e9f2;
  --surface-alt: #f4f7fc;
  color: var(--ink);
}

.mock-window {
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.7);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d7dfec;
}

.mock-bar i:first-child {
  background: var(--brand-gold);
}

.mock-bar b {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock-body {
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.mock-kpi {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: #fff;
}

.mock-kpi span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock-kpi b {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
}

.mock-kpi.is-gold b {
  color: var(--brand-gold-dark);
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 84px;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mock-chart i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(var(--brand-blue), #3f7fd6);
  animation: bar-rise 1.1s var(--ease) both;
}

.mock-chart i:nth-child(2) {
  animation-delay: 0.08s;
}
.mock-chart i:nth-child(3) {
  animation-delay: 0.16s;
}
.mock-chart i:nth-child(4) {
  animation-delay: 0.24s;
  background: linear-gradient(var(--brand-gold), #ffcb59);
}
.mock-chart i:nth-child(5) {
  animation-delay: 0.32s;
}
.mock-chart i:nth-child(6) {
  animation-delay: 0.4s;
}

@keyframes bar-rise {
  from {
    transform: scaleY(0.12);
    transform-origin: bottom;
    opacity: 0;
  }
}

.mock-rows {
  display: grid;
  gap: 0.4rem;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  background: var(--surface-alt);
  font-size: 0.72rem;
  color: var(--muted);
}

.mock-row b {
  color: var(--ink);
  font-weight: 600;
}

.mock-row span:last-child {
  margin-left: auto;
  font-weight: 600;
  color: var(--brand-blue);
}

.mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ea86a;
  flex: none;
}

.mock-dot.is-amber {
  background: var(--brand-gold);
}

/* Kannada runs in the UI mock — never uppercased or tracked like Latin labels */
.knda {
  font-family: "Noto Sans Kannada", "Nirmala UI", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.mock-kpi .knda {
  font-size: 0.72rem;
}

.mock-offline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(244, 168, 1, 0.45);
  border-radius: 8px;
  background: rgba(244, 168, 1, 0.14);
  font-size: 0.68rem;
  font-weight: 600;
  color: #8a6200;
}

.mock-offline-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(244, 168, 1, 0.25);
}

/* "Upcoming" marker sitting inside a card heading */
.card h3 .chip {
  vertical-align: middle;
  margin-left: 0.45rem;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* floating badge on the mock */
.mock-badge {
  position: absolute;
  left: -18px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  font-size: 0.78rem;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
}

.mock-badge svg {
  width: 26px;
  height: 26px;
  color: var(--brand-gold);
}

.mock-badge small {
  display: block;
  font-weight: 500;
  color: var(--muted);
}

@keyframes float {
  50% {
    transform: translateY(-9px);
  }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(40px, 5vw, 66px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(60rem 34rem at 88% 0%, rgba(244, 168, 1, 0.18), transparent 60%),
    linear-gradient(152deg, #03101f, var(--navy-900) 40%, var(--navy-800) 76%, var(--navy-700));
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(64% 70% at 50% 30%, #000 20%, transparent 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 20ch;
}

.page-hero p {
  max-width: 62ch;
  font-size: 1.075rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--brand-gold);
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.28);
}

.crumbs li {
  display: flex;
  align-items: center;
}

/* The page hero already carries generous bottom space */
.page-hero + .section,
.page-hero + .anchor-nav + .container .product-row:first-child {
  padding-top: clamp(52px, 5.5vw, 80px);
}

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat {
  background: var(--card);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  text-align: center;
}

.section--dark .stat,
.is-dark .stat {
  background: rgba(255, 255, 255, 0.04);
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 2.7vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--brand-blue);
}

.is-dark .stat b {
  color: var(--brand-gold);
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats--floating {
  margin-top: calc(clamp(42px, 6vw, 86px) * -1 - 34px);
  position: relative;
  z-index: 2;
  background: var(--line);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 1.7vw, 1.7rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    border-color 0.28s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-gold), var(--brand-blue));
  transition: width 0.34s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(1, 70, 160, 0.26);
}

.is-dark .card:hover {
  border-color: rgba(244, 168, 1, 0.4);
}

.card:hover::before {
  width: 100%;
}

.card h3 {
  margin-bottom: 0.55rem;
}

.card p {
  font-size: 0.945rem;
  line-height: 1.6;
}

.card-index {
  position: absolute;
  top: 0.6rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.06;
  pointer-events: none;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(1, 70, 160, 0.12), rgba(244, 168, 1, 0.16));
  color: var(--brand-blue);
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease);
}

.is-dark .card-icon {
  background: rgba(255, 255, 255, 0.07);
  color: var(--brand-gold);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card:hover .card-icon {
  background: var(--brand-blue);
  color: #fff;
}

.is-dark .card:hover .card-icon {
  background: var(--brand-gold);
  color: var(--navy-900);
}

.card-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.card-list li,
.tick-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.91rem;
  color: var(--muted);
}

.card-list li::before,
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--brand-gold);
}

.tick-list {
  display: grid;
  gap: 0.6rem;
}

.tick-list li b {
  color: var(--ink);
  font-weight: 600;
}

.card .arrow-link {
  margin-top: auto;
  padding-top: 1.2rem;
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.chip {
  padding: 0.34rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface-alt);
}

.is-dark .chip {
  background: rgba(255, 255, 255, 0.06);
}

.chip--gold {
  border-color: rgba(244, 168, 1, 0.45);
  background: rgba(244, 168, 1, 0.12);
  color: var(--brand-gold-dark);
  font-weight: 600;
}

/* ---------- Media split rows ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}

.split--reverse .split-media {
  order: 2;
}

.split-media {
  position: relative;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: clamp(1.2rem, 2vw, 1.8rem);
  box-shadow: var(--shadow-md);
}

.panel--flat {
  box-shadow: none;
}

/* Dark-mounted SVG product/UI mock */
.visual {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.4vw, 2rem);
  background:
    radial-gradient(32rem 20rem at 82% 6%, rgba(244, 168, 1, 0.22), transparent 62%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  box-shadow: var(--shadow-md);
}

.visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45));
}

.visual-badge {
  position: absolute;
  left: -18px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.2rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}

.visual-badge b {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--brand-gold-dark);
}

.visual-badge span {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.visual-badge small {
  display: block;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- Process ---------- */
.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.process-step {
  position: relative;
  padding-top: 2.6rem;
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-gold);
}

.process-step::after {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 3rem;
  right: -1rem;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.process-step:last-child::after {
  display: none;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.95rem;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.4rem);
  padding-left: 2.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: linear-gradient(var(--brand-gold), var(--brand-blue));
  border-radius: 2px;
}

.timeline li {
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -2.2rem;
  top: 0.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand-gold);
}

.timeline h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.timeline .year {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 0.2rem;
}

/* brand blue is unreadable on navy */
.is-dark .timeline .year {
  color: #9dc0ec;
}

/* ---------- Portfolio ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(28px, 3vw, 42px);
}

.filter-btn {
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.filter-btn:hover {
  border-color: var(--brand-gold);
  color: var(--ink);
}

.filter-btn[aria-pressed="true"] {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.work-card {
  padding: 0;
}

.work-card[hidden] {
  display: none;
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background:
    radial-gradient(28rem 18rem at 78% 8%, rgba(244, 168, 1, 0.22), transparent 62%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  overflow: hidden;
}

.work-thumb svg {
  width: 100%;
  height: auto;
  max-height: 100%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s var(--ease);
}

.work-card:hover .work-thumb svg {
  transform: translateY(-6px) scale(1.02);
}

.work-body {
  padding: clamp(1.3rem, 2vw, 1.7rem);
}

.work-body h3 {
  margin-bottom: 0.4rem;
}

.work-cat {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold-dark);
  margin-bottom: 0.6rem;
  display: block;
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
  align-items: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-blue), var(--blue-600));
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--brand-gold);
  overflow: hidden;
}

/* A photo avatar drops the gradient: the rounded image antialiases against
   whatever sits behind it, and a coloured background bleeds through as a ring. */
.avatar--photo {
  background: none;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.team-card .role {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brand-gold-dark);
  margin-bottom: 0.7rem;
}

/* ---------- Products ---------- */
.anchor-nav {
  position: sticky;
  top: 70px; /* matches .site-header.is-stuck, which is always the state here */
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.anchor-nav .container {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.7rem;
  scrollbar-width: thin;
}

.anchor-nav a {
  flex: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.anchor-nav a:hover,
.anchor-nav a.is-active {
  background: var(--surface-alt);
  color: var(--brand-blue);
}

.product-row {
  padding-block: clamp(48px, 6vw, 84px);
  border-bottom: 1px solid var(--line);
}

.product-row:last-child {
  border-bottom: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.field label .req {
  color: #c0392b;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.925rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(1, 70, 160, 0.14);
}

.field .error {
  font-size: 0.82rem;
  color: #c0392b;
  min-height: 1.1em;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #c0392b;
}

.form-note {
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

.form-success {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(46, 168, 106, 0.4);
  background: rgba(46, 168, 106, 0.1);
  border-radius: var(--radius-sm);
  color: #1c6b45;
}

.form-success svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.form-success[hidden] {
  display: none;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.contact-card + .contact-card {
  margin-top: 1rem;
}

.contact-card .card-icon {
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 12px;
  flex: none;
}

.contact-card .card-icon svg {
  width: 21px;
  height: 21px;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.925rem;
  display: block;
}

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 340px;
  border: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem);
  background:
    radial-gradient(40rem 24rem at 88% 12%, rgba(244, 168, 1, 0.26), transparent 62%),
    linear-gradient(140deg, var(--brand-blue), var(--navy-800) 72%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band > div:first-child {
  flex: 1 1 26rem;
}

.cta-band .btn-row {
  flex: 0 0 auto;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5rem;
  max-width: 22ch;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(170deg, var(--navy-900), var(--navy-800));
  color: #a9bcd4;
  padding-top: clamp(56px, 7vw, 88px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.site-footer p {
  color: #a9bcd4;
  font-size: 0.95rem;
}

.site-footer a {
  color: #a9bcd4;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--brand-gold);
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-contact li {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
}

.footer-contact svg {
  width: 17px;
  height: 17px;
  margin-top: 0.3rem;
  color: var(--brand-gold);
  flex: none;
}

.footer-brand img {
  height: 46px;
  margin-bottom: 1.1rem;
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #fff;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.socials a:hover {
  background: var(--brand-gold);
  border-color: var(--brand-gold);
  color: var(--navy-900);
}

.socials svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.footer-bottom p {
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 560px;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step:nth-child(2)::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  .nav-toggle {
    display: grid;
    order: 3;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    width: min(360px, 86vw);
    height: 100dvh;
    padding: calc(var(--header-h) + 1.4rem) 1.8rem 2rem;
    background: linear-gradient(170deg, var(--navy-900), var(--navy-800));
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(102%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
  }

  body.nav-open .site-nav {
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list a {
    padding: 1rem 0;
    font-size: 1.05rem;
  }

  .nav-list a::after {
    display: none;
  }

}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .split--reverse .split-media {
    order: 0;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats--floating {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 16px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .process,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-step::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mock-badge,
  .visual-badge {
    position: static;
    margin-top: 0.9rem;
    animation: none;
  }

  .cta-band {
    text-align: left;
  }

  .btn {
    width: 100%;
  }

  .btn-row .btn {
    width: auto;
    flex: 1 1 auto;
  }

  .hero-meta {
    gap: 0.5rem 1rem;
  }
}

@media (max-width: 640px) {
  /* the strapline will not fit beside the mark and the menu button */
  .brand-text span {
    display: none;
  }

  .brand-text {
    gap: 0;
    padding-left: 0.65rem;
  }

  .brand-text b {
    font-size: 0.86rem;
    letter-spacing: 0.05em;
  }

  .brand img {
    height: 34px;
  }
}

@media (max-width: 420px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .mock-kpis {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .nav-backdrop,
  .cta-band,
  .map-frame {
    display: none !important;
  }

  body {
    color: #000;
  }
}
