/* NIOSS Ltd – site styles */
:root {
  --navy: #13212F;
  --navy-2: #1F3047;
  --navy-3: #24364A;
  --ivory: #F5F6F3;
  --white: #FFFFFF;
  --line: #DDE2DA;
  --line-dark: #5A6E85;
  --text-muted: #4A5868;
  --text-on-dark: #C5D0DC;
  --text-on-dark-2: #DCE3EC;
  --footer-text: #AEBBC9;
  --orange: #E0892A;
  --orange-soft: #F0B36B;
  --orange-label: #A85A12;
  --blue: #1B5FBF;
  --blue-dark: #123F80;
  --blue-soft: #9CC8F2;
  --chip-bg: #E8EEF7;
  --red: #C9572E;
  --red-text: #A8401E;
  --track: #EEF0EB;
  --display: 'Space Grotesk', Arial, sans-serif;
  --body: 'IBM Plex Sans', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--navy);
  background: var(--ivory);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header & nav */
.site-header { background: var(--navy); color: var(--ivory); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; }
.brand:hover { color: var(--ivory); }
.brand-mark { display: inline-flex; width: 36px; height: 36px; border-radius: 8px; background: var(--orange); align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--navy); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 1px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links a { color: var(--text-on-dark-2); text-decoration: none; padding: 12px 14px; font-size: 16px; }
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--ivory); text-decoration: underline; text-underline-offset: 6px; font-weight: 600; }
.nav-links a.nav-cta { color: var(--navy); background: var(--orange); padding: 12px 18px; font-weight: 600; border-radius: 8px; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; padding: 14px 22px; border-radius: 8px; font-size: 17px; font-weight: 600; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-soft); color: var(--navy); }
.btn-ghost { border: 1px solid var(--line-dark); color: var(--ivory); font-weight: 500; }
.btn-ghost:hover { border-color: var(--ivory); color: var(--ivory); }
.btn-dark { background: var(--navy); color: var(--ivory); text-align: center; }
.btn-dark:hover { background: var(--navy-2); color: var(--ivory); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Text bits */
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: 2px; color: var(--orange-label); text-transform: uppercase; }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--orange-soft); }
.muted { color: var(--text-muted); }
.section { padding-top: 56px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head h2 { font-size: 40px; line-height: 1.15; }

/* Home hero */
.hero { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-weight: 700; font-size: clamp(40px, 6vw, 68px); line-height: 1.05; max-width: 880px; }
.hero .lead { font-size: 20px; line-height: 1.55; color: var(--text-on-dark); max-width: 720px; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 240px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font-size: 22px; }
.card p { font-size: 16px; line-height: 1.55; color: var(--text-muted); }
.card svg { stroke: var(--blue); }
.card-wide { flex-basis: 320px; }

/* Highlighted service */
.highlight { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--orange); border-radius: 14px; padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; }
.highlight-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.highlight-text h3 { font-size: 28px; line-height: 1.2; }
.highlight-text p:not(.eyebrow) { font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.highlight-list { flex: 1 1 300px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; align-self: center; }
.highlight-list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; }
.highlight-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; border-radius: 3px; background: var(--blue); }

/* Stats band */
.stats { display: flex; flex-wrap: wrap; gap: 20px; background: var(--navy); color: var(--ivory); border-radius: 16px; padding: 36px 40px; }
.stat { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--orange-soft); }
.stat-label { font-size: 16px; color: var(--text-on-dark); }

/* Recent work teaser */
.teaser { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.teaser-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.teaser-text h2 { font-size: 36px; line-height: 1.2; }
.teaser-text p { font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.teaser-text a { font-weight: 600; font-size: 17px; }
.meter-card { flex: 1 1 360px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.meter-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.meter-row p:first-child { font-size: 16px; color: var(--text-muted); }
.meter-val { font-family: var(--display); font-size: 28px; font-weight: 700; }
.meter-val.bad { color: var(--red-text); }
.meter-val.good { color: var(--blue); }
.meter { height: 12px; border-radius: 6px; background: var(--track); overflow: hidden; }
.meter span { display: block; height: 12px; }
.meter .bad { width: 60%; background: var(--red); }
.meter .good { width: 100%; background: var(--blue); }

/* Contact */
.contact { padding-top: 56px; padding-bottom: 96px; }
.contact-box { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.contact-box h2 { font-size: 34px; }
.contact-text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; }
.contact-text p { font-size: 17px; line-height: 1.55; color: var(--text-muted); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-actions p { font-size: 15px; color: var(--text-muted); }

/* Team page */
.profile { padding-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.photo { flex: 0 0 200px; width: 200px; height: 200px; border-radius: 20px; background: var(--navy-3); border: 2px dashed var(--line-dark); display: flex; align-items: center; justify-content: center; color: var(--footer-text); font-size: 15px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 14px; }
.profile-text h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; }
.profile-text .lead { font-size: 19px; line-height: 1.55; color: var(--text-on-dark); max-width: 700px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--chip-bg); color: var(--blue-dark); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.chip-dark { background: none; border: 1px solid var(--line-dark); color: var(--text-on-dark-2); padding: 5px 11px; }

.featured { background: var(--navy); color: var(--ivory); border-radius: 18px; padding: 40px; display: flex; flex-wrap: wrap; gap: 36px; }
.featured-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; }
.featured-text h3 { font-size: 30px; line-height: 1.2; }
.featured-text p { font-size: 17px; line-height: 1.6; color: var(--text-on-dark); }
.featured-text b { color: var(--ivory); }
.featured-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.figure { background: var(--navy-2); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.figure p { font-size: 15px; color: var(--text-on-dark); }
.figure .figure-num { font-family: var(--display); font-size: 40px; font-weight: 700; color: var(--orange-soft); }
.figure .figure-num.good { color: var(--blue-soft); }
.card .eyebrow { font-size: 13px; letter-spacing: 1.5px; }
.featured .eyebrow { font-size: 13px; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.timeline .when { flex: 0 0 150px; font-family: var(--mono); font-size: 15px; color: var(--text-muted); }
.timeline .what { flex: 1 1 400px; font-size: 17px; }
.experience { padding-bottom: 96px; }
.experience h2 { font-size: 32px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--footer-text); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.site-footer a { color: var(--text-on-dark-2); }

@media (max-width: 600px) {
  .section-head h2 { font-size: 32px; }
  .teaser-text h2 { font-size: 28px; }
  .stats, .contact-box, .featured { padding: 28px 24px; }
  .featured-text h3 { font-size: 26px; }
  .nav-links a { padding: 12px 10px; }
}
