/* Iron & Silicon — the whole stylesheet.
   Tokens are the brand guide's, verbatim. No colour appears anywhere below
   :root except through var(); grep for '#' outside this block should find none. */
:root {
  --is-navy: #0F3575;
  --is-navy-deep: #0B2A5B;
  --is-white: #FFFFFF;
  --is-mist: #EEF1F6;
  --is-line: #D5DAE3;
  --is-slate: #56657F;
  --is-haze: #C9D3E6;

  --font-mark: "Michroma", Eurostile, Helvetica, Arial, sans-serif;
  --font-body: "Geist", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", Menlo, Consolas, monospace;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  --radius-s: 6px; --radius-m: 10px; --radius-l: 16px;
  --content-max: 1120px;
  --text-max: 68ch;

  --header-h: 72px;
}

/* ---------- one screen ----------
   Header, hero, legal line, stacked to exactly the viewport: the hero takes
   whatever height is left and centres its copy in it. Nothing is clipped —
   on a screen too small to hold it all (a phone in landscape) the page
   scrolls rather than hide anything. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--is-white);
  color: var(--is-navy-deep);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, p { margin: 0; }
p { text-wrap: pretty; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--is-navy); outline-offset: 2px; }

.wrap {
  width: min(100% - 2 * var(--space-5), var(--content-max));
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  flex: none;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--is-line);
}
/* Lockup geometry, from the guide:
     icon 32px; icon = 1.8 x wordmark cap height  -> cap height 17.78px.
     Cap height is 1536 of the wordmark's 1600 units, so its box is 18.52px
     tall and 264.8px wide.
     Gap = 0.35 x icon = 11.2px, measured to the I's stem; the I sits 192 units
     (2.2px) inside the box, so the flex gap is 9px.
   Clear space: 1X = 17.8px; the header leaves 20px above and below. */
.lockup {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--is-navy);
  text-decoration: none;
  border-radius: var(--radius-s);
}
.lockup-icon { width: 32px; height: 32px; flex: none; }
.icon-bg { fill: var(--is-navy); }
.icon-fg { fill: var(--is-white); }
.lockup-word { width: 264.8px; height: 18.52px; flex: none; }

/* ---------- hero ---------- */
.hero {
  flex: 1 0 auto;
  display: flex; align-items: center;
  padding-block: var(--space-7);
  position: relative;
  isolation: isolate;
}
/* Stars and sand (stars-and-sand.js): a canvas behind the copy, framed by
   the header and legal rules so the logo stays on flat white. It fades in
   once drawn; without JS it never appears. */
.sky {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.sky.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sky { transition: none; } }
@media print { .sky { display: none; } }
/* The hero is two sentences, set apart so each reads at a glance: what the
   firm does, large; how it works, smaller and quieter (the guide's "one
   sentence below in Geist 20px Slate"). Plain Geist, the way Thrive, USIT,
   Renaissance and Paradigm do it; Michroma stays in the logo. Both are
   balanced, so their lines come out even instead of one long and one short. */
.statement {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--is-navy-deep);
  max-width: 22em;   /* about 40 characters a line: a block, not a banner */
  margin-bottom: var(--space-4);
  text-wrap: balance;
}
.approach {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--is-slate);
  max-width: 30em;
  margin-bottom: var(--space-7);
  text-wrap: balance;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius-s);
  font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn-primary { background: var(--is-navy); color: var(--is-white); }
.btn-primary:hover, .btn-primary:active { background: var(--is-navy-deep); }

/* ---------- legal line ----------
   One thin row: the © line left, LinkedIn right. The icon's 32px box is its
   tap target; the negative margin puts the glyph itself on the grid edge. */
.site-legal {
  flex: none;
  border-top: 1px solid var(--is-line);
  padding-block: var(--space-2);
  font-family: var(--font-mono); font-size: 11px; line-height: 1.6;
  color: var(--is-slate);
}
.site-legal .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
}
.legal { letter-spacing: 0.12em; text-transform: uppercase; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-right: -7px;
  color: var(--is-slate);
  border-radius: var(--radius-s);
  transition: color 0.15s ease;
}
.social:hover { color: var(--is-navy); }
.social svg { width: 18px; height: 18px; }

/* ---------- mobile: under 640 ---------- */
@media (max-width: 639px) {
  body { font-size: 16px; }
  .hero { padding-block: var(--space-6); }
  .statement { margin-bottom: var(--space-3); }
  .approach { margin-bottom: var(--space-6); }

  /* Mobile header: icon alone at 28px, wordmark hidden. */
  .lockup-icon { width: 28px; height: 28px; }
  .lockup-word { display: none; }
}

/* ---------- short phones (360x640 and the like) ----------
   Take a little from the spacing so the page still fits one screen. */
@media (max-width: 639px) and (max-height: 700px) {
  .hero { padding-block: var(--space-5); }
  .approach { margin-bottom: var(--space-5); }
}
