/* ==========================================================================
   AMS Incorporated — static site
   Tokens follow the AMS design system v0.1.
   Accessibility floor: WCAG 2.1 AA. Nothing below 16px. Radius 0. No shadows.
   ========================================================================== */

:root {
  /* Color */
  --red:        #EC1C24; /* fields, rules, logo only — never text, never a text ground */
  --red-deep:   #C4161C; /* button grounds (white on it = 6.1:1) */
  --red-press:  #A51217;
  --red-ink:    #B4141B; /* the only red allowed as text on light (6.9:1) */
  --red-dark:   #F5424A; /* red as text on Ink (5.3:1) */
  --ink:        #141414;
  --steel:      #4A4E52;
  --body:       #3C3A38;
  --muted:      #6B6560;
  --paper:      #F4F1EC;
  --white:      #FFFFFF;
  --rule:       #D6D3CE;
  --rule-soft:  #EDEAE4;
  --on-dark:    #CFCBC4;
  --on-dark-2:  #A8A4A0;
  --on-dark-3:  #8E8A85;
  --rule-dark:  #3A3A3A;

  /* Type */
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Space */
  --gutter: 48px;
  --section-y: 72px;
  --max: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }

a { color: var(--red-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #8E0F15; text-decoration-thickness: 2px; }

*:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.process *:focus-visible,
.site-header *:focus-visible,
.site-footer *:focus-visible { outline-color: var(--white); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* --- Skip link ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 20px;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  color: var(--white);
}

/* --- Shared -------------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-ink);
}
.eyebrow--on-dark { color: var(--red-dark); }

.lede { font-size: 20px; line-height: 1.55; color: var(--body); }

.section-title {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 26ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 120ms linear;
}
.btn--primary { background: var(--red-deep); color: var(--white); }
.btn--primary:hover { background: var(--red-press); color: var(--white); }
.btn--block { display: flex; width: 100%; }

/* --- Header -------------------------------------------------------------- */
.site-header { background: var(--ink); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.site-header__logo { display: block; flex: 0 0 auto; }
.site-header__logo img { width: 232px; }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: 36px; }
.site-nav__list a {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.site-nav__list a:hover { color: var(--red-dark); }

.site-header__cta { min-height: 48px; padding: 0 22px; font-size: 16px; }
.site-header__cta-short { display: none; }

/* --- Hero ---------------------------------------------------------------- */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.hero .eyebrow { margin-bottom: 24px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
}
.hero__title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero__aside .lede { margin-bottom: 28px; }

/* --- Process ------------------------------------------------------------- */
.process {
  background: var(--ink);
  color: var(--white);
  padding: 64px 0 72px;
}
.process__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.process__head .eyebrow { margin-bottom: 16px; }
.process__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.026em;
  max-width: 24ch;
}
.process__intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-dark);
  max-width: 34ch;
}
.process__bookends {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin-bottom: 14px;
}

.track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--red);
}
.track__step { padding: 0 28px; border-left: 1px solid var(--rule-dark); }
.track__step:first-child { padding-left: 0; border-left: 0; }
.track__step:last-child { padding-right: 0; }
.track__tick {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--red);
  margin-top: -7px;
}
.track__num {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 18px 0 12px;
}
.track__name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 10px;
}
.track__desc { font-size: 16px; line-height: 1.6; color: var(--on-dark-2); }

/* --- Company ------------------------------------------------------------- */
.company { padding: var(--section-y) 0; border-bottom: 1px solid var(--rule); }
.company__grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 56px;
}
.company__body .section-title { margin-bottom: 24px; }
.company__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  color: var(--body);
}

/* --- Facts --------------------------------------------------------------- */
.facts { border-bottom: 1px solid var(--rule); }
.facts .container { padding: 0; }
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.facts__cell { padding: 40px 32px; border-left: 1px solid var(--rule); }
.facts__cell:first-child { border-left: 0; padding-left: var(--gutter); }
.facts__cell:last-child { padding-right: var(--gutter); }
.facts__figure {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--red-ink);
  margin-bottom: 10px;
}
.facts__desc { font-size: 16px; line-height: 1.55; color: var(--body); }

/* --- Contact ------------------------------------------------------------- */
.contact { background: var(--paper); padding: 80px 0; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.contact .eyebrow { margin-bottom: 18px; }
.contact__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: 18px;
}
.contact .lede { font-size: 18px; }

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card__label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.card__value { font-size: 21px; line-height: 1.45; }
.card__value a { font-weight: 600; }
.card__fax { color: var(--body); }
.card__note { color: var(--muted); font-size: 16px; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-dark-3); }
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1000px) {
  :root { --gutter: 32px; --section-y: 56px; }

  .hero__grid,
  .company__grid,
  .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .company__grid { gap: 20px; }
  .process__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .process__intro { max-width: 52ch; }

  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 0; }
  .track__step {
    padding: 0 0 32px 28px;
    border-left: 2px solid var(--red);
  }
  .track__step:first-child { padding-left: 28px; border-left: 2px solid var(--red); }
  .track__tick { margin: 6px 0 0 -34px; }
  .track__num { font-size: 16px; letter-spacing: 0.1em; color: var(--on-dark-3); margin: -12px 0 6px; }

  .facts__grid { grid-template-columns: minmax(0, 1fr); }
  .facts__cell {
    border-left: 0;
    border-top: 1px solid var(--rule-soft);
    padding: 28px var(--gutter);
  }
  .facts__cell:first-child { border-top: 0; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .site-header__inner { gap: 16px; }
  .site-header__logo img { width: 196px; }
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; padding: 0 18px; }
  .site-header__cta-full { display: none; }
  .site-header__cta-short { display: inline; }

  .hero { padding: 36px 0 32px; }
  .hero__title { font-size: 34px; letter-spacing: -0.028em; }
  .hero__aside .lede { font-size: 17px; }
  .hero .btn { display: flex; width: 100%; }

  .process { padding: 40px 0 44px; }
  .process__title { font-size: 28px; letter-spacing: -0.024em; }
  .process__bookends { display: none; }
  .track { grid-template-columns: minmax(0, 1fr); }
  .track__step:last-child { padding-bottom: 0; }

  .company__cols { grid-template-columns: minmax(0, 1fr); gap: 16px; font-size: 16px; }
  .section-title { font-size: 26px; }

  .facts__figure { font-size: 24px; }

  .contact { padding: 40px 0; }
  .contact__title { font-size: 28px; letter-spacing: -0.025em; }
  .card { padding: 0; border: 0; background: transparent; }
  .card__value { font-size: 19px; }

  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ==========================================================================
   Motion & print
   ========================================================================== */
@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;
  }
}

@media print {
  .site-header, .skip-link { display: none; }
  body { font-size: 12pt; color: #000; }
  .process { background: none; color: #000; }
  .track__desc, .process__intro { color: #000; }
  .track__num { color: #000; }
  .site-footer { background: none; color: #000; }
}
