/* ==========================================================================
   SSPO Consulting — stylesheet
   Palette, type and spacing tokens all live in :root. Change a value there
   and it updates everywhere on the site.
   ========================================================================== */

:root {
  /* Colour */
  --ink:      #0E1C24;   /* deepest slate — headings, header bar */
  --ink-2:    #243B49;   /* secondary dark */
  --slate:    #566E7E;   /* body text on light backgrounds */
  --paper:    #EDEFF1;   /* page background */
  --card:     #FFFFFF;
  --rule:     #C7D1D7;   /* hairlines */
  --signal:   #B8860B;   /* amber accent — used sparingly, on purpose */
  --signal-lt:#E8C25A;
  --live:     #2F7A5E;   /* status dots only */

  /* Type */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-display: clamp(2.5rem, 6.4vw, 5rem);
  --fs-h2:      clamp(1.6rem, 3.2vw, 2.5rem);
  --fs-h3:      1.15rem;
  --fs-body:    1.0625rem;
  --fs-small:   0.8125rem;

  /* Space */
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --section-y: clamp(4rem, 9vw, 8rem);
  --maxw: 1240px;
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* --- Shared layout -------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--section-y); }
.band--dark { background: var(--ink); color: var(--paper); }
.band--card { background: var(--card); }

/* Eyebrow label — the small monospace tag above each section heading.
   Encodes the section's role, not decoration. */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.band--dark .eyebrow::after { background: #33505F; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  font-stretch: 112%;
}
h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
h3 {
  font-size: var(--fs-h3);
  font-stretch: 100%;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.0625rem, 1.7vw, 1.3rem); color: var(--slate); max-width: 60ch; }
.band--dark .lede { color: #A9BDC8; }

/* --- Placeholder marker ---------------------------------------------------
   Anything wrapped in .tk is a fact I could not verify and must not invent.
   It is deliberately loud so it cannot ship by accident.
   Delete the <span class="tk"> wrapper once you replace the text.        */
.tk {
  background: var(--signal-lt);
  color: #3A2B00;
  padding: 0.05em 0.35em;
  border-radius: 2px;
  font-style: normal;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --- Header --------------------------------------------------------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 28, 36, 0.94);
  backdrop-filter: blur(8px);
  color: var(--paper);
  border-bottom: 1px solid #1F3644;
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 96px;
  transition: min-height 0.22s ease;
}
.wordmark { display: flex; align-items: center; text-decoration: none; }

/* Big logo at the top of the page. Height is the only thing set; width
   follows the aspect ratio, so the file can be swapped without touching
   the CSS. */
.wordmark__logo {
  height: 58px;
  width: auto;
  transition: height 0.22s ease;
}

/* Shrunk state, applied by script once you scroll past 60px. */
.masthead--small .masthead__inner { min-height: 64px; }
.masthead--small .wordmark__logo { height: 34px; }

/* Skip link — visible only when focused by keyboard. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--signal-lt);
  color: var(--ink);
  padding: 0.7rem 1.1rem;
  font-family: var(--mono);
  font-size: var(--fs-small);
  text-decoration: none;
}
.skip:focus { left: 0; }

.nav { display: flex; gap: 1.75rem; align-items: center; }
.nav a {
  font-family: var(--mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #B6C7D1;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav a:hover { color: #fff; border-bottom-color: var(--signal); }

.nav { gap: 1.4rem; }

/* --- Mobile menu ----------------------------------------------------------
   Previously the nav simply vanished with no way to reach it. The button is
   hidden on desktop and drops the nav into a panel on small screens. The
   breakpoint is 900px rather than 800px because the nav now carries five
   items and starts crowding the logo before that.                         */
.navtoggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0;
  background: none;
  border: 1px solid #33505F;
  cursor: pointer;
}
.navtoggle span {
  display: block;
  height: 1.5px;
  width: 20px;
  margin-inline: auto;
  background: #B6C7D1;
}
.navtoggle[aria-expanded="true"] { border-color: var(--signal); }

@media (max-width: 900px) {
  .navtoggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid #1F3644;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .nav--open { display: flex; }
  .nav a {
    padding-block: 0.85rem;
    border-bottom: 1px solid #1F3644;
  }
  .masthead__inner { position: relative; min-height: 74px; }
  .wordmark__logo { height: 40px; }
  .masthead--small .masthead__inner { min-height: 58px; }
  .masthead--small .wordmark__logo { height: 30px; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3.5rem, 8vw, 7rem) 0;
  overflow: hidden;
}
.hero h1 {
  font-size: var(--fs-display);
  font-stretch: 118%;
  max-width: 17ch;
  margin-bottom: 1.75rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--signal-lt);
}
.hero .lede { max-width: 54ch; }

/* --- Calls to action ------------------------------------------------------
   One solid button and one outlined companion. Used in the hero, after the
   engagement models, and nowhere else — a call to action that appears six
   times reads as nagging rather than confident.                           */
.ctarow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
}
.cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2rem;
  background: var(--signal-lt);
  color: var(--ink);
  border: 1px solid var(--signal-lt);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.cta:hover { background: var(--paper); border-color: var(--paper); }

.cta--ghost {
  background: transparent;
  color: var(--paper);
  border-color: #33505F;
}
.cta--ghost:hover { background: transparent; border-color: var(--paper); color: #fff; }

/* On light bands the solid button flips to ink so it does not shout. */
.band .cta { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band .cta:hover { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.band--dark .cta { background: var(--signal-lt); color: var(--ink); border-color: var(--signal-lt); }
.band--dark .cta:hover { background: var(--paper); border-color: var(--paper); }
.band--dark .ctarow__note { color: #8FA6B3; }

.ctarow__note {
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--slate);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: #8FA6B3;
  letter-spacing: 0.05em;
  margin-top: 2.5rem;
}
.hero__meta span { display: flex; align-items: center; gap: 0.5rem; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(47, 122, 94, 0.6);
  animation: ping 2.6s ease-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(47,122,94,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(47,122,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,122,94,0); }
}

/* SIGNATURE ELEMENT --------------------------------------------------------
   The trunk line: a network segment running the width of the page with
   labelled nodes and a signal travelling along it. This is the one bold
   move on the page; everything else stays quiet.                          */
.trunk {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 3.25rem;
}
.trunk__line {
  position: relative;
  height: 1px;
  background: #33505F;
}
.trunk__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 90px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--signal-lt), transparent);
  animation: travel 6.5s linear infinite;
}
@keyframes travel {
  from { left: -90px; }
  to   { left: 100%; }
}
.trunk__nodes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: -5px;
}
.trunk__node { position: relative; padding-top: 1.4rem; }
.trunk__node::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 9px; height: 9px;
  border: 1px solid var(--signal);
  background: var(--ink);
  transform: rotate(45deg) translate(-1px, -1px);
}
.trunk__node span {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8FA6B3;
}
@media (max-width: 680px) {
  .trunk__nodes { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; }
}

/* --- Services ------------------------------------------------------------- */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.svc {
  background: var(--card);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
}
.svc h3 { margin-bottom: 0.75rem; }
.svc p { color: var(--slate); font-size: 0.9688rem; margin-bottom: 0; }
.svc__tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 0.9rem;
}

/* --- Process (a genuine sequence, so it is genuinely numbered) ------------ */
.steps { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { border-top: 2px solid var(--signal); padding-top: 1.25rem; }
.step__n {
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--signal);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 { margin-bottom: 0.6rem; }
.step p { color: #A9BDC8; font-size: 0.9688rem; margin: 0; }

/* --- Service pillars ------------------------------------------------------
   Three long-form blocks rather than a row of shallow cards. The heading
   sits in a sticky left column on wide screens so it stays with its own
   copy while you read down the list.                                      */
.pillars { margin-top: 3rem; }

.pillar {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding-block: clamp(2.25rem, 4vw, 3.25rem);
  border-top: 1px solid var(--rule);
}
.pillar:last-child { border-bottom: 1px solid var(--rule); }

.pillar__head { position: sticky; top: 120px; align-self: start; }
.pillar__tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 0.9rem;
}
.pillar h3 {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-stretch: 112%;
  letter-spacing: -0.018em;
  max-width: 15ch;
}
.pillar__body p { color: var(--slate); margin-bottom: 1.1rem; max-width: 62ch; }
.pillar__body p:last-of-type { margin-bottom: 0; }

/* The concrete list. Deliberately plain: a buyer scanning for one specific
   capability should find it without reading the prose. */
.speclist {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.5rem 2rem;
}
.speclist li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--slate);
}
.speclist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border: 1px solid var(--signal);
  transform: rotate(45deg);
}

@media (max-width: 820px) {
  .pillar { grid-template-columns: 1fr; }
  .pillar__head { position: static; }
  .pillar h3 { max-width: none; }
}

/* --- Note block -----------------------------------------------------------
   Used for the "what we do not do" statement. Set apart so it reads as a
   deliberate disclosure rather than a caveat someone tried to bury.       */
.note {
  margin-top: 3rem;
  border-left: 2px solid var(--signal);
  padding: 0.25rem 0 0.25rem 1.5rem;
  max-width: 68ch;
}
.note p { color: var(--slate); font-size: 0.9688rem; margin-bottom: 0; }
.note__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.band--dark .note p { color: #A9BDC8; }
.band--dark .note__label { color: var(--paper); }

/* --- FAQ ------------------------------------------------------------------
   Native <details>, so it works with no JavaScript and is reachable by
   keyboard for free. The script at the foot of the page only closes the
   others.                                                                 */
.faq {
  margin-top: 2.75rem;
  border-top: 1px solid var(--rule);
  max-width: 80ch;
}
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 105%;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  transition: color 0.16s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--signal); }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--signal);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p {
  color: var(--slate);
  font-size: 0.9688rem;
  max-width: 68ch;
  margin: 0 0 1.4rem;
}

/* --- Contact -------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.detail { margin-bottom: 1.6rem; }
.detail dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 0.3rem;
}
.detail dd { margin: 0; font-size: 1.0625rem; }
.detail dd a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.detail dd a:hover { border-bottom-color: var(--signal); }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 0.7rem 0.85rem;
}
.field select { appearance: none; height: 46px; cursor: pointer; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); outline-offset: 1px; }
.field textarea { min-height: 130px; resize: vertical; }

.btn {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 0.95rem 2rem;
  cursor: pointer;
  transition: background 0.18s ease;
}
.btn:hover { background: var(--signal); color: var(--ink); }

.form-note {
  font-size: 0.8125rem;
  color: var(--slate);
  margin-top: 0.9rem;
}

/* --- Footer --------------------------------------------------------------- */
.foot {
  background: var(--ink);
  color: #7E96A4;
  padding-block: 2.5rem;
  font-family: var(--mono);
  font-size: var(--fs-small);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.foot__mark { height: 26px; width: auto; }
.foot__name {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 118%;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--paper);
}
.foot__name span { color: var(--signal-lt); }
.foot__legal { display: block; }
.foot a { color: #B6C7D1; text-decoration: none; }
.foot a:hover { color: var(--signal-lt); }
