/* TSNS · corporate-professional design system (post-redev brief, May 2026) */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Newsreader:opsz,wght@6.72,400;6.72,500&display=swap');

:root {
  /* Brand */
  --navy-deep: #002A47;
  --navy: #003C64;
  --navy-soft: #1F5A85;
  --teal: #00788C;
  --teal-deep: #005E70;
  --teal-light: #28A0A0;
  --teal-pale: #EAF4F5;
  --orange: #E85D04;
  --orange-soft: #F47A2E;
  --orange-pale: #FCE7D6;

  /* Neutrals · institutional, calmer */
  --bg: #FAFAF7;
  --bg-elev: #FFFFFF;
  --bg-deep: #F1EFEA;
  --bg-tint: #EAF4F5;
  --bg-ink: #0A1F33;
  --hairline: #E2DED6;
  --hairline-soft: #EFEBE3;
  --ink: #0A1F33;
  --ink-mid: #2F4054;
  --muted: #5C6A78;
  --muted-light: #8C97A2;

  /* Spacing · tighter, 8-based */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Type */
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Newsreader', Georgia, serif;

  /* Radii · restrained */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

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

/* ---------- Layout ---------- */
.shell { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; }
.shell-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }
.shell-tight { max-width: 760px; margin: 0 auto; padding: 0 32px; }

section { padding: var(--s-9) 0; position: relative; }
@media (max-width: 768px) {
  section { padding: var(--s-7) 0; }
  .shell, .shell-narrow, .shell-tight { padding: 0 24px; }
}

/* ---------- Type ---------- */
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--ink);
  line-height: 1.15;
}
h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 600; letter-spacing: -0.028em; line-height: 1.05; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.024em; line-height: 1.15; }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }
h4 { font-size: 17px; line-height: 1.3; }

p { margin: 0; color: var(--ink-mid); }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-mid); max-width: 62ch; }
.lead-lg { font-size: 22px; line-height: 1.45; color: var(--ink-mid); max-width: 60ch; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: ''; width: 14px; height: 1px; background: var(--teal); display: inline-block;
}

.serif-accent { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 200ms var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 220ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: #C84D00; border-color: #C84D00; }

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

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--navy); background: var(--bg-elev); }

.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--teal-deep); font-weight: 500; font-size: 15px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: gap 200ms var(--ease);
}
.btn-link:hover { gap: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1240px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 32px; width: auto; }
.nav-logo-text {
  display: flex; flex-direction: column; line-height: 1;
}
.nav-logo-text strong {
  font-size: 17px; font-weight: 600; letter-spacing: -0.012em;
  color: var(--navy);
}
.nav-logo-text small { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 500; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link { font-size: 14px; color: var(--ink-mid); font-weight: 500; transition: color 180ms; }
.nav-link:hover { color: var(--navy); }
.nav-link.active { color: var(--navy); }
.nav-link.active::after { content: ''; display: block; height: 1px; background: var(--orange); margin-top: 4px; }

.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-md); background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; }
.nav-cta:hover { background: var(--navy-deep); }

/* mobile nav */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { stroke: var(--navy); }
@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-elev); border-bottom: 1px solid var(--hairline); padding: 16px 0; }
  .nav-links.open { display: flex; }
  .nav-links .nav-link { padding: 12px 32px; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero (homepage) ---------- */
.hero {
  padding: var(--s-10) 0 var(--s-9);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0,120,140,0.08), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(232,93,4,0.05), transparent 50%),
    var(--bg);
}
/* Block 1 · intro (full-width text content) */
.hero-intro { max-width: 920px; }
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 { margin-bottom: 28px; max-width: 18ch; }
.hero h1 .accent { color: var(--teal); font-style: italic; font-family: var(--serif); font-weight: 400; }
.hero-lead { margin-bottom: 36px; max-width: 56ch; font-size: 21px; line-height: 1.5; color: var(--ink-mid); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 64px; }

/* Block 2 · trust 2×2 + loop diagram, side by side */
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.hero-trust {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
}
.hero-trust-item { font-size: 13px; color: var(--muted); line-height: 1.5; }
.hero-trust-item strong { display: block; font-size: 15px; color: var(--navy); font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
@media (max-width: 480px) {
  .hero-trust { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Section header pattern A: stacked left ---------- */
.sec-head {
  max-width: 720px;
  margin-bottom: var(--s-7);
}
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head h2 { margin-bottom: 18px; }
.sec-head p { font-size: 18px; color: var(--ink-mid); line-height: 1.5; max-width: 60ch; }

/* ---------- Section header pattern B: split ---------- */
.sec-head-split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-bottom: var(--s-7);
  align-items: end;
}
.sec-head-split .eyebrow { margin-bottom: 12px; }
.sec-head-split p { font-size: 18px; color: var(--ink-mid); line-height: 1.5; }
@media (max-width: 880px) { .sec-head-split { grid-template-columns: 1fr; gap: 24px; align-items: start; } }

/* ---------- Pattern: services grid (homepage what-we-do) ---------- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--bg-elev);
  overflow: hidden;
}
.service {
  padding: 36px 32px;
  border-right: 1px solid var(--hairline-soft);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: background 200ms;
}
.service:last-child { border-right: 0; }
.service:hover { background: #FCFBF8; }
.service-num {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-light); font-variant-numeric: tabular-nums;
}
.service h3 { font-size: 21px; line-height: 1.25; }
.service p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.service-tag {
  margin-top: auto; padding-top: 16px;
  font-size: 13px; color: var(--teal-deep); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
@media (max-width: 880px) {
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--hairline-soft); }
  .service:last-child { border-bottom: 0; }
}

/* ---------- Pattern: process steps (horizontal track) ---------- */
.process {
  background: var(--bg-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: ''; position: absolute; top: 18px; left: 0; right: 0;
  height: 1px; background: var(--hairline);
}
.process-step { padding: 0 24px 0 0; position: relative; }
.process-step::before {
  content: ''; position: absolute; top: 12px; left: 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-deep); border: 2px solid var(--teal-deep);
  z-index: 1;
}
.process-step .num { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 40px; padding-left: 26px; }
.process-step h3 { font-size: 19px; margin-top: 14px; padding-left: 26px; }
.process-step p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-top: 8px; padding-left: 26px; }
@media (max-width: 880px) {
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-grid::before { display: none; }
}

/* ---------- Pattern: trust strip (numeric+label tiles) ---------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust-tile {
  padding: 36px 28px;
  border-right: 1px solid var(--hairline-soft);
}
.trust-tile:last-child { border-right: 0; }
.trust-tile .label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.trust-tile .value { font-size: 22px; font-weight: 600; color: var(--navy); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 8px; }
.trust-tile .note { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 880px) { .trust-strip { grid-template-columns: 1fr 1fr; } .trust-tile:nth-child(2n) { border-right: 0; } }
@media (max-width: 480px) { .trust-strip { grid-template-columns: 1fr; } .trust-tile { border-right: 0; border-bottom: 1px solid var(--hairline-soft); } .trust-tile:last-child { border-bottom: 0; } }

/* ---------- Pattern: sector tiles (homepage teaser) ---------- */
.sector-teaser-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.sector-tile {
  background: var(--bg-elev);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all 220ms var(--ease);
  text-decoration: none;
  color: inherit;
}
.sector-tile:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(15,34,54,0.18); }
.sector-tile-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); }
.sector-tile h3 { font-size: 22px; }
.sector-tile p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.sector-tile-cta { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--teal-deep); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 880px) { .sector-teaser-grid { grid-template-columns: 1fr; } }

/* ---------- Pattern: pull-quote / why-strip ---------- */
.pull-quote {
  background: var(--navy);
  color: #fff;
  padding: var(--s-9) 0;
}
.pull-quote .eyebrow { color: var(--orange-soft); }
.pull-quote .eyebrow::before { background: var(--orange-soft); }
.pull-quote h2 { color: #fff; max-width: 22ch; margin-bottom: 24px; }
.pull-quote p { color: rgba(255,255,255,0.78); font-size: 18px; max-width: 56ch; }

/* ---------- Pattern: closing CTA strip ---------- */
.cta-strip {
  background: var(--bg-deep);
  border-top: 1px solid var(--hairline);
}
.cta-strip-inner {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-strip h2 { margin-bottom: 16px; max-width: 18ch; }
.cta-strip p { font-size: 17px; color: var(--ink-mid); max-width: 50ch; }
.cta-strip-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 880px) { .cta-strip-inner { grid-template-columns: 1fr; } .cta-strip-actions { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.78);
  padding: 72px 0 36px;
  font-size: 14.5px;
  line-height: 1.6;
}
.footer .shell { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; }
.footer-brand img { height: 36px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer-brand strong { display: block; color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 14px; max-width: 32ch; margin-top: 8px; }
.footer h4 { color: #fff; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul li a, .footer ul li { color: rgba(255,255,255,0.72); transition: color 200ms; font-size: 14px; }
.footer ul li a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
@media (max-width: 880px) { .footer .shell { grid-template-columns: 1fr 1fr; gap: 40px 32px; } }
@media (max-width: 540px) { .footer .shell { grid-template-columns: 1fr; } }

/* ---------- Icon utility ---------- */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  line-height: 0;
}
.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.icon-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Service-card icon · top-left, sits above the service-num */
.service .service-icon {
  color: var(--teal-deep);
  margin-bottom: 4px;
}

/* Process step icon · replaces the dot at the top of each step */
.process-step::before { display: none !important; }
.process-step .step-icon {
  position: absolute;
  top: 4px;
  left: -3px;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-deep);
  border-radius: 999px;
  color: var(--teal-deep);
  box-shadow: 0 0 0 4px var(--bg-deep);
  z-index: 2;
}

/* Trust-strip icons · navy, above the value */
.trust-tile .trust-icon {
  color: var(--navy);
  margin-bottom: 14px;
}

/* Sector teaser tile icon */
.sector-tile .sector-icon {
  color: var(--teal-deep);
  margin-bottom: 4px;
}

/* Hero right-column figure */
.hero-figure {
  display: block;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
}
@media (min-width: 960px) {
  .hero-trust { grid-template-columns: repeat(4, 1fr); gap: 28px 40px; }
}
.hero-figure {
  display: block;
  width: 100%;
  height: auto;
  max-width: 360px;
  margin-left: auto;
}
@media (max-width: 959px) {
  .hero-figure { margin: 8px auto 0; max-width: 300px; }
}

/* ---------- Utility ---------- */
.divider-soft { border: 0; border-top: 1px solid var(--hairline-soft); margin: 0; }
.text-muted { color: var(--muted); }
.text-navy { color: var(--navy); }
.text-teal { color: var(--teal-deep); }
.bg-tint { background: var(--bg-tint); }
.bg-deep { background: var(--bg-deep); }

/* tabular alignment for numbers */
.tabular { font-variant-numeric: tabular-nums; }

/* tag chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500;
  background: var(--bg-tint); color: var(--teal-deep);
  border: 1px solid var(--hairline);
  letter-spacing: -0.005em;
}
.chip-orange { background: var(--orange-pale); color: #B14000; border-color: #F4D9C4; }
.chip-navy { background: rgba(0,60,100,0.06); color: var(--navy); border-color: rgba(0,60,100,0.14); }

/* font-density tweaks (used by tweaks panel) */
[data-density="compact"] { font-size: 15px; }
[data-density="compact"] section { padding: 72px 0; }
[data-density="spacious"] { font-size: 17px; }
[data-density="spacious"] section { padding: 120px 0; }

/* font-scale tweak · accessibility, multiplies the root size */
[data-font-scale="sm"]   { font-size: 14px; }
[data-font-scale="md"]   { font-size: 16px; } /* default */
[data-font-scale="lg"]   { font-size: 18px; }
[data-font-scale="xl"]   { font-size: 20px; }

/* reduced-motion override · when user opts in via Tweaks */
[data-reduce-motion="on"] *,
[data-reduce-motion="on"] *::before,
[data-reduce-motion="on"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* respect OS-level setting too */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ---------- Accessibility: skip link + global focus-visible ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: -0.005em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 16px;
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--orange, #E85D04);
  outline-offset: 3px;
  border-radius: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--orange, #E85D04);
  outline-offset: 3px;
}
.nav-link:focus-visible,
.nav-cta:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--cream, #F4EBDC);
  outline-offset: 3px;
}
