/* Backer Logic
   Tokens first. Change these and the whole page follows. */

:root {
  --paper:      #FAF8F3;   /* warm off-white */
  --tint:       #F1ECE1;   /* banded sections, warmer than the paper */
  --panel:      #E8EFF5;   /* cool panel, pulled from the accent */
  --ink:        #1F1C18;   /* warm dark */
  --ink-2:      #5C574F;   /* warm grey */
  --rule:       #DED7C9;
  --accent:     #2C5F8A;   /* the blue from the logo */
  --accent-dp:  #1C4160;   /* deeper, for fills and the footer */
  --accent-lt:  #6E9CBF;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --wrap: 64rem;
}

*, *::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(--serif);
  font-size: clamp(1.0625rem, 0.35vw + 1rem, 1.1875rem);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-underline-offset: 0.18em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; background: var(--ink); color: var(--paper);
        padding: .6rem 1rem; font-family: var(--sans); font-size: .9rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; }

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

/* ---------- header ---------- */

.head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--pad);
}
.brand { display: inline-flex; align-items: center; gap: 1.05rem; color: var(--ink); text-decoration: none; }
.brand-mark { display: block; width: 5.5rem; height: 5.5rem; color: var(--accent); flex: none; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-word { display: flex; flex-direction: column; align-items: stretch; line-height: 1.02; }
/* BACKER sets the width. LOGIC is five letters distributed across exactly that
   width with space-between, so the two words align on both edges in any font.
   Tracking cannot do this reliably: a value that matches in one typeface will
   not match in another. */
.brand-word b, .brand-word i {
  font-family: var(--sans); font-style: normal;
  font-size: 1.85rem; line-height: 1.02; color: var(--ink);
}
.brand-word b { display: block; font-weight: 400; letter-spacing: .055em; }
.brand-word i { display: flex; justify-content: space-between; font-weight: 700; }
.brand-word i em { font-style: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden;
      clip: rect(0 0 0 0); white-space: nowrap; }

.nav { display: flex; gap: clamp(1rem, 3vw, 2.1rem); font-family: var(--sans); font-size: .98rem; }
.nav a { color: var(--ink-2); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- section rhythm ---------- */

section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band { background: var(--tint); }
.band-panel { background: var(--panel); }
.dark { background: var(--accent-dp); color: #EAF1F7; }
.dark h2 { color: #fff; }
.dark p { color: #C9DCEA; }

h1, h2, h3 { font-family: var(--serif); text-wrap: balance; margin: 0; }

h1 {
  font-weight: 300;
  font-size: clamp(2.3rem, 6.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 1.3rem;
  max-width: 19ch;
}

h2 {
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: -.012em;
  margin-bottom: 1.2rem;
}

h3 { font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em; margin-bottom: .55rem; }

.eyebrow {
  font-family: var(--sans); font-size: .75rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--accent); }

/* ---------- hero ---------- */

.hero { padding-top: clamp(1rem, 3vw, 2.5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.25fr) auto; gap: clamp(2rem,4vw,3.25rem); align-items: center; }
.hero-art { width: clamp(12rem, 22vw, 20.5rem); height: auto; color: var(--accent); opacity: .95; flex: none; }
.hero-art svg { display: block; width: 100%; height: auto; }

.lede { font-size: clamp(1.15rem, 1vw + 1rem, 1.45rem); line-height: 1.45; color: var(--ink); max-width: 40ch; margin-bottom: 1.6rem; }
.lede-2 { font-size: 1.06rem; color: var(--ink-2); max-width: 52ch; }

/* ---------- figures ---------- */

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.fig { background: var(--paper); padding: 1.5rem 1.4rem; }
.fig b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem,3.6vw,2.9rem);
         line-height: 1; color: var(--accent); letter-spacing: -.02em; margin-bottom: .5rem; }
.fig span { font-family: var(--sans); font-size: .85rem; line-height: 1.45; color: var(--ink-2); display: block; }

/* ---------- steps ---------- */

.steps { display: grid; gap: clamp(1.5rem,3vw,2rem); grid-template-columns: repeat(auto-fit, minmax(17rem,1fr)); margin-top: 2rem; }
/* four items want two columns, not three with one stranded */
.steps-2 { grid-template-columns: repeat(auto-fit, minmax(22rem,1fr)); }
.step { background: var(--paper); border-top: 3px solid var(--accent); padding: 1.5rem 1.5rem 1.6rem; }
.band .step { background: var(--paper); }
.step-n { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .1em; color: var(--accent-lt); display: block; margin-bottom: .7rem; }
.step p { font-size: .99rem; color: var(--ink-2); }
.step p:first-of-type { color: var(--ink); }

/* ---------- lists ---------- */

.tags { list-style: none; margin: 1.8rem 0 0; padding: 0;
        display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem,1fr)); gap: .55rem 1.75rem; max-width: var(--measure); }
.tags li { padding: .55rem 0 .55rem 1.4rem; border-bottom: 1px solid var(--rule); font-size: .98rem; position: relative; }
.tags li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-lt); }

.industries { font-size: 1.02rem; }

/* a closing line under a grid of steps */
.mt { margin-top: clamp(2rem, 4vw, 2.75rem); }

/* ---------- roles ---------- */

.roles { margin: 2rem 0 0; display: grid; gap: 1.5rem; }
.role { background: var(--paper); border-left: 3px solid var(--accent); padding: 1.35rem 1.5rem; }
.role dt { font-family: var(--sans); font-weight: 600; font-size: .97rem; margin-bottom: .5rem; }
.role dt span { font-weight: 400; color: var(--accent); }
.role dd { margin: 0; color: var(--ink-2); max-width: var(--measure); }
.role dd.scope { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--rule); font-size: .94rem; line-height: 1.65; }
.aside { margin-top: 1.8rem; color: var(--ink-2); font-size: 1rem; }

/* ---------- form ---------- */

.form { margin-top: 2rem; max-width: 30rem; }
.field { margin-bottom: 1.1rem; }
.form label { display: block; font-family: var(--sans); font-size: .82rem; color: var(--ink-2); margin-bottom: .4rem; }
.form input[type=text], .form input[type=email], .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #FFFDF9;
  border: 1px solid var(--rule); border-radius: 3px; padding: .65rem .75rem; }
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea { resize: vertical; }
.form button { font-family: var(--sans); font-size: .92rem; font-weight: 600; letter-spacing: .01em;
  color: #fff; background: var(--accent); border: none; border-radius: 3px; padding: .75rem 1.8rem; cursor: pointer; }
.form button:hover { background: var(--accent-dp); }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: #C6C0B4; font-family: var(--sans); font-size: .84rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 2rem 2.5rem; }
.foot p { margin: 0; max-width: none; }
.foot-mark { display: inline-flex; align-items: center; gap: .6rem; color: #C6C0B4; }
.foot-mark svg { width: 2.6rem; height: 2.6rem; }

@media (max-width: 46rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  h1 { max-width: none; }
  .lede { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
