/* =============================================================
   ITI Design System — Base + shared primitives
   No inline styles anywhere: every visual decision lives here.
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--iti-surface);
  color: var(--iti-text);
  font-family: var(--iti-font-sans);
  font-size: var(--iti-fs-body);
  line-height: var(--iti-lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--iti-blue); text-decoration: none; }
a:hover { color: var(--iti-blue-700); }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: var(--iti-lh-snug);
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--iti-electric);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */

/* .iti-wrap now lives in iti-shell.css, which loads site-wide. */

.iti-band { padding-block: var(--iti-section-y); }
.iti-band--paper   { background: var(--iti-paper); }
.iti-band--surface { background: var(--iti-surface); }
.iti-band--dark    { background: var(--iti-ink-850); color: var(--iti-on-dark); }
.iti-band--ink     { background: var(--iti-ink-900); color: var(--iti-on-dark); }

/* ---------- Circuit grid texture ----------
   One definition, used by every section. The line colour comes from
   --iti-grid, which each band sets to the dark- or light-ground value, so
   the same texture reads correctly on navy and on paper alike. */

.iti-textured {
  position: relative;
  overflow: hidden;
  --iti-grid: var(--iti-grid-line-light);
}
.iti-band--dark.iti-textured,
.iti-band--ink.iti-textured,
.hero.iti-textured { --iti-grid: var(--iti-grid-line); }

.iti-textured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--iti-grid) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, var(--iti-grid) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
}
/* Keep real content above the texture. */
.iti-textured > * { position: relative; }

/* Hairline rule that separates two dark bands without a hard seam. */
.iti-seam {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(var(--iti-electric-rgb), .45) 22%,
    rgba(var(--iti-electric-rgb), .45) 78%,
    transparent 100%);
}

/* ---------- Section header ---------- */

.iti-sec-head {
  display: grid;
  gap: var(--iti-s-3);
  max-width: 62ch;
  margin-bottom: var(--iti-s-7);
}

.iti-sec-head__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--iti-s-3);
  font-size: var(--iti-fs-xs);
  font-weight: 600;
  letter-spacing: var(--iti-track-label);
  text-transform: uppercase;
  color: var(--iti-electric-ink);
}
.iti-sec-head__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--iti-electric);
  box-shadow: 0 0 8px rgba(var(--iti-electric-rgb), .7);
  flex: none;
}
.iti-band--dark .iti-sec-head__eyebrow { color: var(--iti-electric); }
/* The units band is light, so its eyebrow needs the darkened teal. */
.units .iti-sec-head__eyebrow { color: var(--iti-electric-ink); }

/* Astra's inline stylesheet declares `h1,h2,h3,h4,h5,h6 { color: ... }`
   directly on the element, and a directly-declared colour always beats an
   inherited one no matter the specificity. So every heading in this design
   system states its own colour rather than inheriting one from its band. */
.iti-sec-head__title {
  font-size: var(--iti-fs-h2);
  letter-spacing: -.015em;
  color: var(--iti-text);
}
.iti-sec-head__title strong { font-weight: 700; }
.iti-sec-head__title em {
  font-style: normal;
  font-weight: 300;
  color: var(--iti-text-muted);
}
.iti-band--dark .iti-sec-head__title { color: var(--iti-on-dark); }
.iti-band--dark .iti-sec-head__title em { color: var(--iti-on-dark-muted); }

.iti-sec-head__lead {
  font-size: var(--iti-fs-lead);
  color: var(--iti-text-muted);
}
.iti-band--dark .iti-sec-head__lead { color: var(--iti-on-dark-muted); }

/* A section header that carries a counter on the right */
.iti-sec-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--iti-s-6);
  flex-wrap: wrap;
}
.iti-sec-row .iti-sec-head { margin-bottom: 0; }

.iti-count {
  display: flex;
  align-items: baseline;
  gap: var(--iti-s-2);
  padding-bottom: var(--iti-s-1);
  font-size: var(--iti-fs-sm);
  letter-spacing: var(--iti-track-label);
  text-transform: uppercase;
  color: var(--iti-text-faint);
  white-space: nowrap;
}
.iti-count__n {
  font-family: var(--iti-font-mono);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--iti-blue);
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */

/* Astra's inline stylesheet sets `button { padding: 15px 30px }`. Every
   button in this design system sizes itself, and 60px of horizontal
   padding inside a 44px box leaves zero content width — which is exactly
   why the hero's prev/next arrows rendered as empty outlines with their
   SVGs collapsed to 0px. Reset it for our own controls. */
.hero__arrow,
.hero__dot,
.iti-search-toggle,
.iti-burger,
.iti-search__close,
.iti-search__submit,
.iti-sub-toggle,
.iti-totop { padding: 0; }


.iti-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--iti-s-3);
  padding: .85rem 1.6rem;
  border: 1px solid transparent;
  font-size: var(--iti-fs-sm);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: var(--iti-clip-sm);
  transition: background var(--iti-dur) var(--iti-ease),
              border-color var(--iti-dur) var(--iti-ease),
              color var(--iti-dur) var(--iti-ease),
              box-shadow var(--iti-dur) var(--iti-ease);
}
.iti-btn__arrow { transition: transform var(--iti-dur) var(--iti-ease); }
.iti-btn:hover .iti-btn__arrow { transform: translateX(4px); }

.iti-btn--primary {
  background: var(--iti-blue);
  border-color: var(--iti-blue);
  color: var(--iti-on-dark);
}
.iti-btn--primary:hover {
  background: var(--iti-blue-700);
  border-color: var(--iti-electric);
  color: var(--iti-on-dark);
  box-shadow: var(--iti-glow);
}

.iti-btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: var(--iti-on-dark);
}
.iti-btn--ghost-light:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--iti-on-dark);
  color: var(--iti-on-dark);
}

/* A quiet text link with a trailing arrow */
.iti-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--iti-s-2);
  font-size: var(--iti-fs-sm);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--iti-blue);
}
.iti-link-arrow svg { transition: transform var(--iti-dur) var(--iti-ease); }
.iti-link-arrow:hover svg { transform: translateX(4px); }
.iti-band--dark .iti-link-arrow { color: var(--iti-electric); }

.iti-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
