/* Fonts: Inter Tight + IBM Plex Mono = core SVIND (justified in tokens.css).
   Passion One + Open Sans are scoped to arz.css only, measured from the
   arrodz.com source via getComputedStyle - not a generic pairing. They load
   here to avoid FOIT on the ARZ sections but are never used outside .arz. */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&family=Passion+One:wght@400;700&family=Open+Sans:wght@400;600;700&display=swap");

/* ==========================================================================
   SVIND v2 - base.css
   Reset, document defaults, layout primitives, a11y utilities.
   Depends on tokens.css. Load order: tokens.css → base.css → components.css
   Mobile-first. min-width media queries only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd,
fieldset, legend,
ul, ol {
  margin: 0;
  padding: 0;
}

ul[class],
ol[class] {
  list-style: none;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sticky nav must not cover anchored headings */
  scroll-padding-top: calc(var(--nav-h) + var(--space-5));
  overflow-x: clip;
}

body {
  min-height: 100%;
  background-color: var(--color-concrete);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--lh-body);
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

th {
  text-align: left;
  font-weight: var(--weight-semibold);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-hairline);
  margin: 0;
}

[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. HEADING + TEXT RESETS
   Headings carry no intrinsic size. Apply a type class, or use the
   band-scoped defaults below. Sentence case throughout.
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  text-transform: none;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display-xl);
  line-height: var(--lh-display-xl);
  letter-spacing: var(--tracking-display-xl);
}

h2 {
  font-size: var(--text-display-l);
  line-height: var(--lh-display-l);
  letter-spacing: var(--tracking-display-l);
}

h3 {
  font-size: var(--text-display-m);
  line-height: var(--lh-display-m);
  letter-spacing: var(--tracking-display-m);
}

h4, h5, h6 {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  letter-spacing: 0;
}

p {
  text-wrap: pretty;
}

strong, b {
  font-weight: var(--weight-semibold);
}

small {
  font-size: var(--text-body-s);
}

/* --------------------------------------------------------------------------
   3. TYPE UTILITY CLASSES
   The full recalibrated scale as classes, so HTML never hard-codes sizes.
   -------------------------------------------------------------------------- */

.t-display-xxl {
  font-family: var(--font-display);
  font-size: var(--text-display-xxl);
  font-weight: var(--weight-display-xxl);
  line-height: var(--lh-display-xxl);
  letter-spacing: var(--tracking-display-xxl);
  text-transform: var(--case-display-xxl);
}

.t-display-xl {
  font-family: var(--font-display);
  font-size: var(--text-display-xl);
  font-weight: var(--weight-display-xl);
  line-height: var(--lh-display-xl);
  letter-spacing: var(--tracking-display-xl);
  text-transform: var(--case-display-xl);
}

.t-display-l {
  font-family: var(--font-display);
  font-size: var(--text-display-l);
  font-weight: var(--weight-display-l);
  line-height: var(--lh-display-l);
  letter-spacing: var(--tracking-display-l);
  text-transform: var(--case-display-l);
}

.t-display-m {
  font-family: var(--font-display);
  font-size: var(--text-display-m);
  font-weight: var(--weight-display-m);
  line-height: var(--lh-display-m);
  letter-spacing: var(--tracking-display-m);
  text-transform: var(--case-display-m);
}

.t-lead {
  font-size: var(--text-lead);
  font-weight: var(--weight-lead);
  line-height: var(--lh-lead);
  color: var(--color-text-secondary);
}

.t-body {
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--lh-body);
}

.t-body-s {
  font-size: var(--text-body-s);
  font-weight: var(--weight-body-s);
  line-height: var(--lh-body-s);
}

/* --------------------------------------------------------------------------
   4. MONO / SLASHED ZERO
   Engineering data must look like engineering data. "zero" 1 gives the
   slashed zero in IBM Plex Mono; tnum keeps columns aligned.
   -------------------------------------------------------------------------- */

.mono,
.spec,
.spec-table td,
.index-row__num,
.stat__value,
.form__step {
  font-family: var(--font-mono);
  font-feature-settings: "zero" 1, "tnum" 1, "calt" 0;
  font-variant-numeric: tabular-nums slashed-zero;
}

.mono {
  font-size: var(--text-spec-mono);
  font-weight: var(--weight-spec-mono);
  line-height: var(--lh-spec-mono);
  letter-spacing: var(--tracking-spec-mono);
}

/* --------------------------------------------------------------------------
   5. LINKS
   -------------------------------------------------------------------------- */

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--color-copper);
}

/* Inline prose links keep an underline for non-colour affordance */
.measure a:not([class]),
p a:not([class]) {
  border-bottom: 1px solid var(--color-hairline-2);
  padding-bottom: 1px;
}

.measure a:not([class]):hover,
p a:not([class]):hover {
  border-bottom-color: var(--color-copper);
}

/* --------------------------------------------------------------------------
   6. FOCUS
   2px solid copper at 2px offset. Never removed.
   -------------------------------------------------------------------------- */

:focus {
  outline: none;
}

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-sm);
}

/* On ink surfaces the ring needs its own colour as well as breathing room.
   The comment here used to read "the copper ring still passes 3:1" and only
   set the offset -- true of a copper ring, but --focus-ring-color is
   --color-navy now, and #1E3A6B on #1A1D21 measures 1.51:1. That is below the
   3:1 WCAG 2.2 non-text minimum and in practice invisible: every focusable on
   an ink surface, all 23 footer links included, had an unseeable ring. White
   inverts that to 16.91:1. */
.band--ink :focus-visible,
.footer :focus-visible,
.nav__overlay :focus-visible {
  outline-color: var(--color-text-on-dark);
  outline-offset: 3px;
}

/* ...except on the pale strip, where a white ring is 1.12:1 -- worse than the
   navy it replaced. There the ink ring is right: 15.1:1 against the beige.
   Scoped under .footer so it also beats the rule above on specificity.

   The beige BUTTON is deliberately not in this list. Its ring is drawn at a
   3px offset, which puts it outside the beige fill and on the ink band, so it
   wants the white ring the rule above already gives it (16.91:1). Colouring
   it by the element's own fill rather than by what the ring actually crosses
   would have made it a 1:1 ink-on-ink ring. */
.footer .footer__baseline :focus-visible {
  outline-color: var(--color-ink);
}

/* --------------------------------------------------------------------------
   7. SELECTION
   -------------------------------------------------------------------------- */

::selection {
  background-color: var(--color-copper);
  color: var(--color-text-on-accent);
}

/* --------------------------------------------------------------------------
   8. CONTAINER - fluid, 1240px max, clamped gutter
   -------------------------------------------------------------------------- */

/* Used by the nav rail, the footer and the mobile overlay -- all of which
   paint full width and cap only their contents. The inline padding is
   --band-inset, the same token the bands use, so the wordmark, the footer
   columns and the band content all sit on one vertical line at every
   viewport. A fixed max-width here would break that alignment as soon as
   the viewport passed the cap: the nav would stay narrow while the bands
   below it kept widening. */
.container {
  width: 100%;
  padding-inline: var(--band-inset);
}

/* Full-bleed product stages */
/* The two variants below opt back INTO a capped, centred measure. The base
   .container no longer sets a max-width, so each carries its own plus the
   auto margin that centres it. Neither is used by a built page yet; they are
   kept coherent so adopting one does not silently produce a full-width
   block. */
.container--wide {
  max-width: var(--max-wide);
  margin-inline: auto;
}

/* Narrow, for single-column editorial */
.container--narrow {
  max-width: 880px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   9. BAND - the section wrapper. Whitespace is the separator.
   Colour bands ≤2 per page: --ink once, plus the footer.
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  padding-block: var(--band-y);
  background-color: var(--color-concrete);
}

.band--tight {
  padding-block: var(--band-y-tight);
}

.band--flush-top {
  padding-block-start: 0;
}

.band--flush-bottom {
  padding-block-end: 0;
}

/* Dark band. Use once per page. */
.band--ink {
  background-color: var(--color-ink);
  color: var(--color-text-on-dark);
}

.band--ink h1,
.band--ink h2,
.band--ink h3 {
  color: var(--color-text-on-dark);
}

.band--ink .t-lead,
.band--ink p {
  color: var(--color-text-on-dark-muted);
}

.band--ink a:hover {
  color: var(--color-copper);
}

/* Card-field band */
.band--white {
  background-color: var(--color-white);
}

/* Second light step, for a quiet shift without a colour band */
.band--concrete-2 {
  background-color: var(--color-concrete-2);
}

/* Optional hairline seam where two same-colour bands meet */
.band--seam {
  border-block-start: 1px solid var(--color-hairline);
}

.band--ink.band--seam {
  border-block-start-color: var(--color-hairline-dark);
}

/* Band header lockup: eyebrow + H2 + lead */
.band__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-block-end: var(--space-7);
}

@media (min-width: 1024px) {
  .band__head {
    margin-block-end: var(--space-8);
  }
}

/* --------------------------------------------------------------------------
   10. GRID - 12 columns with named asymmetric helpers
   Single column below 768px. Asymmetry from 1024px up.
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  }
}

/* Column span helpers, full width until md */
.grid > .col-1,
.grid > .col-2,
.grid > .col-3,
.grid > .col-4,
.grid > .col-5,
.grid > .col-6,
.grid > .col-7,
.grid > .col-8,
.grid > .col-9,
.grid > .col-10,
.grid > .col-11,
.grid > .col-12 {
  grid-column: auto / span 1;
}

@media (min-width: 768px) {
  .grid > .col-1  { grid-column: auto / span 1; }
  .grid > .col-2  { grid-column: auto / span 2; }
  .grid > .col-3  { grid-column: auto / span 3; }
  .grid > .col-4  { grid-column: auto / span 4; }
  .grid > .col-5  { grid-column: auto / span 5; }
  .grid > .col-6  { grid-column: auto / span 6; }
  .grid > .col-7  { grid-column: auto / span 7; }
  .grid > .col-8  { grid-column: auto / span 8; }
  .grid > .col-9  { grid-column: auto / span 9; }
  .grid > .col-10 { grid-column: auto / span 10; }
  .grid > .col-11 { grid-column: auto / span 11; }
  .grid > .col-12 { grid-column: auto / span 12; }

  .grid > .col-start-2 { grid-column-start: 2; }
  .grid > .col-start-3 { grid-column-start: 3; }
  .grid > .col-start-6 { grid-column-start: 6; }
  .grid > .col-start-7 { grid-column-start: 7; }
  .grid > .col-start-8 { grid-column-start: 8; }
}

/* Named asymmetric splits - exactly two children each */
.grid--7-5,
.grid--8-4,
.grid--5-7,
.grid--4-8,
.grid--6-6 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
}

@media (min-width: 1024px) {
  .grid--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .grid--8-4 { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
  .grid--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .grid--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .grid--6-6 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  /* Wider trough on asymmetric splits reads more deliberate */
  .grid--7-5,
  .grid--8-4,
  .grid--5-7,
  .grid--4-8 {
    gap: clamp(32px, 5vw, 96px);
  }
}

/* Auto-fitting card rows */
.grid--cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grid-gap);
}

@media (min-width: 640px) {
  .grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   11. MEASURE + SMALL LAYOUT UTILITIES
   -------------------------------------------------------------------------- */

.measure {
  max-width: var(--max-text);
}

.measure > * + * {
  margin-block-start: var(--space-5);
}

.measure--tight {
  max-width: 52ch;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.stack--sm { gap: var(--space-3); }
.stack--lg { gap: var(--space-7); }

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.hairline-top    { border-block-start: 1px solid var(--color-hairline); }
.hairline-bottom { border-block-end: 1px solid var(--color-hairline); }

.band--ink .hairline-top    { border-block-start-color: var(--color-hairline-dark); }
.band--ink .hairline-bottom { border-block-end-color: var(--color-hairline-dark); }

.text-muted     { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }

/* Sticky side rail for asymmetric splits, desktop only */
@media (min-width: 1024px) {
  .is-sticky {
    position: sticky;
    top: calc(var(--nav-h-scrolled) + var(--space-6));
  }
}

/* --------------------------------------------------------------------------
   12. A11Y UTILITIES
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: var(--z-skip);
  transform: translateY(-200%);
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-ink);
  color: var(--color-text-on-dark);
  font-size: var(--text-micro-caps);
  font-weight: var(--weight-micro-caps);
  letter-spacing: var(--tracking-micro-caps);
  text-transform: var(--case-micro-caps);
  border-radius: var(--radius-sm);
  transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
  color: var(--color-text-on-dark);
}

/* Prevent background scroll while the mobile nav overlay is open */
body.is-locked {
  overflow: hidden;
}

/* Bottom clearance so the fixed mobile bar never covers page end content */
@media (max-width: 767.98px) {
  body {
    padding-block-end: var(--mobile-bar-h);
  }
}

/* --------------------------------------------------------------------------
   13. REDUCED MOTION
   Reveals off, final states kept, counters static.
   -------------------------------------------------------------------------- */

@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;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveal targets sit in their final state immediately */
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  /* No lift, no slide, no scale on interaction */
  .card:hover,
  .card:focus-within,
  .card--product:hover,
  .btn:hover,
  .btn:active,
  .chips__item:hover {
    transform: none !important;
  }

  .nav__overlay {
    transition: none !important;
  }
}
