:root {
  --ink: #0C0C0F;
  --paper: #F4F6F8;
  --emerald: #00A67E;
  --emerald-deep: #007A5C;
  --ink-soft: #2A2D33;
  --ink-muted: #4A4F57;
  --paper-muted: #B9BFC7;
  --line-dark: rgba(244, 246, 248, 0.14);
  --line-light: rgba(12, 12, 15, 0.12);
  --maxw: 1120px;
  --gutter: 24px;
  --radius: 12px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

a { color: inherit; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--emerald); color: var(--ink);
  padding: 8px 14px; border-radius: 6px; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Surfaces */
.ink { background: var(--ink); color: var(--paper); }
.paper { background: var(--paper); color: var(--ink); }

section { padding: 112px 0; }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 15, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; font-weight: 700; font-size: 1rem; letter-spacing: -0.005em;
  min-width: 0;
}
.brand img { width: 36px; height: 36px; flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line-dark); color: var(--paper);
  font: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 8px; cursor: pointer;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  color: var(--paper-muted);
}
.site-nav a:hover { color: var(--paper); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .site-nav a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line-dark); }
  .site-nav li:last-child a { border-bottom: 0; }
  /* No-JS fallback: show nav inline */
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { display: block; position: static; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  border: 2px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--emerald); color: var(--ink); }
.btn-primary:hover { background: #00BD90; }
.btn-ghost-dark { border-color: var(--line-dark); color: var(--paper); }
.btn-ghost-dark:hover { border-color: var(--paper); }
.btn-ghost-light { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light:hover { background: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero */
.hero { padding: 132px 0 140px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.hero-mark { width: 220px; height: 220px; }
.hero .eyebrow { color: var(--emerald); }
.hero h1 { margin: 16px 0 24px; max-width: 14ch; }
.hero .subline { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: var(--paper-muted); max-width: 40ch; margin-bottom: 40px; }
@media (max-width: 860px) {
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { width: 96px; height: 96px; border-radius: 18px; order: -1; }
}

.eyebrow {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}

/* Section heads */
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .lead { margin-top: 20px; font-size: 1.2rem; }
.paper .lead { color: var(--ink-soft); }
.ink .lead { color: var(--paper-muted); }
.paper .eyebrow { color: var(--emerald-deep); }
.ink .eyebrow { color: var(--emerald); }
.section-head .eyebrow { display: block; margin-bottom: 14px; }

/* Companies */
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

.covers { list-style: none; margin: 0; padding: 0; }
.covers li {
  padding: 18px 0 18px 28px; position: relative;
  border-top: 1px solid var(--line-light);
}
.covers li:last-child { border-bottom: 1px solid var(--line-light); }
.covers li::before {
  content: ""; position: absolute; left: 0; top: 29px;
  width: 10px; height: 10px; background: var(--emerald); border-radius: 2px;
}
.covers strong { font-weight: 700; }

.panel {
  background: #FFFFFF; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 28px;
}
.panel + .panel { margin-top: 20px; }
.panel h3 { margin-bottom: 12px; }
.panel p { color: var(--ink-soft); }
.proof { list-style: none; margin: 0; padding: 0; }
.proof li { padding: 12px 0; color: var(--ink-soft); border-top: 1px solid var(--line-light); }
.proof li:first-child { border-top: 0; padding-top: 0; }
.companies-cta { margin-top: 48px; }

/* Applications */
.app-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .app-grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 32px;
  background: #15161B;
}
.card-feature { border-color: rgba(0, 166, 126, 0.55); }
.card h3 { margin-bottom: 12px; font-size: 1.6rem; }
.card p { color: var(--paper-muted); }
.facts {
  margin: 20px 0 28px; padding: 14px 16px; border-radius: 8px;
  background: rgba(0, 166, 126, 0.12); color: var(--paper) !important; font-size: 0.98rem;
}
.under-card { margin-top: 16px; color: var(--paper-muted); font-size: 0.98rem; }
.card-quiet { background: transparent; }
.card-quiet .quiet-title { color: var(--paper); font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }

/* About */
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.about-photo { width: 260px; height: 260px; }
.about-grid .bio { font-size: 1.1rem; color: var(--ink-soft); max-width: 68ch; }
.link-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.link-list a { font-weight: 700; color: var(--emerald-deep); text-underline-offset: 4px; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { width: 160px; height: 160px; }
}

/* Contact */
.contact .line { font-size: 1.2rem; color: var(--paper-muted); margin: 20px 0 32px; max-width: 52ch; }
.contact .support { margin-top: 32px; color: var(--paper-muted); }
.contact .support a { color: var(--paper); font-weight: 700; text-underline-offset: 4px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper-muted); border-top: 1px solid var(--line-dark); padding: 40px 0; font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 44px; height: 44px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-links a { color: var(--paper); text-underline-offset: 4px; }

/* 404 */
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound .wrap { text-align: left; }
.notfound img { width: 72px; height: 72px; border-radius: 14px; margin-bottom: 32px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 28px; }

/* Section rhythm: eyebrow, H2, lead */
.hero .eyebrow, .section-head .eyebrow, .contact .eyebrow { display: block; margin-bottom: 14px; }
.contact .eyebrow { color: var(--emerald); }
.sub-head { margin: 0 0 20px; }

/* Nav CTA */
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.92rem; }
.site-nav ul { align-items: center; }
.site-nav .nav-cta a.btn { color: var(--ink); }
@media (max-width: 860px) {
  .site-nav ul { align-items: stretch; }
  .site-nav .nav-cta { padding-top: 14px; }
  .site-nav .nav-cta a.btn { display: inline-flex; border-bottom: 0; padding: 8px 16px; }
}

/* Service cards */
.svc-grid { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc-card {
  background: #FFFFFF; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0;
  color: var(--ink-soft); font-size: 1rem;
}
.svc-card strong { color: var(--ink); display: block; font-size: 1.1rem; margin-bottom: 4px; }
.svc-icon { width: 36px; height: 36px; color: var(--emerald-deep); }
.svc-card-accent { border-color: var(--emerald); }
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.engage {
  border-left: 4px solid var(--emerald); padding: 4px 0 4px 24px; margin: 0 0 56px; max-width: 760px;
}
.engage h3 { margin-bottom: 10px; }
.engage p { color: var(--ink-soft); }

/* Proof cards with stat callouts */
.proof-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .proof-grid { grid-template-columns: 1fr; } }
.proof-card {
  background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.proof-card p { color: var(--paper-muted); }
.stat-row { display: flex; flex-wrap: wrap; gap: 28px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--emerald); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.85rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--paper-muted); }
.tag {
  align-self: flex-start; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 4px 12px; color: var(--paper);
}

/* Case study: Fast Facts shown in its own brand, not LSG's */
.case {
  --ff-navy: #101432; --ff-navy-2: #1B2150; --ff-sun: #FFC845; --ff-text: #E9ECFF; --ff-muted: #B4BAE0;
  background: var(--ff-navy); color: var(--ff-text); border-radius: 16px; overflow: hidden; min-width: 0;
}
.case-top { padding: 32px 32px 24px; background: var(--ff-navy-2); }
.case-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ff-sun); margin-bottom: 12px; }
.case h3 { font-size: 1.7rem; margin-bottom: 10px; color: #FFFFFF; }
.case-line { color: var(--ff-muted); }
.case-body { padding: 24px 32px 32px; display: flex; flex-direction: column; gap: 16px; }
.case-sub { font-weight: 700; color: #FFFFFF; }
.delivered { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.delivered li { position: relative; padding-left: 22px; color: var(--ff-text); font-size: 1rem; }
.delivered li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--ff-sun); }
.case-status { color: var(--ff-muted); font-size: 0.95rem; }
.btn-case { align-self: flex-start; background: var(--ff-sun); color: var(--ff-navy); }
.btn-case:hover { background: #FFD66E; }
.case :focus-visible { outline-color: var(--ff-sun); }

/* Revision 3 */
.case-title { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.case-title h3 { margin-bottom: 0; min-width: 0; }
.case-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.about-photo { width: 260px; height: 260px; border-radius: 24px; object-fit: cover; }
@media (max-width: 860px) { .about-photo { width: 160px; height: 160px; border-radius: 18px; } }
.contact .contact-email { margin: -12px 0 32px; color: var(--paper-muted); font-size: 1.1rem; }
.contact .contact-email a { color: var(--paper); font-weight: 700; text-underline-offset: 4px; }
