/* A A A Mat Co., Inc. Route service ticket. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 var(--s2); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--s2); max-width: 62ch; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[id] { scroll-margin-top: 84px; }
::selection { background: var(--indigo); color: var(--paper); }
html { scrollbar-color: var(--indigo) var(--paper-dim); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { max-width: var(--page-max); margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--indigo); color: var(--paper); padding: 12px 20px;
}
.skip:focus-visible { left: 12px; top: 12px; }

.muted { color: var(--ink-60); }
.smallcaps {
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--brass); font-family: var(--body);
}
.on-indigo .smallcaps { color: var(--brass-bright); }

/* ---------- perforation primitives ---------- */
/* A band of a given colour with punched-through holes (whatever is behind shows). */
.perf-x, .perf-y {
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 5px at center, transparent 4px, #000 4.6px);
          mask-image: radial-gradient(circle 5px at center, transparent 4px, #000 4.6px);
}
.perf-x {
  height: 16px;
  -webkit-mask-size: 22px 16px; mask-size: 22px 16px;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}
.perf-y {
  width: 16px;
  -webkit-mask-size: 16px 22px; mask-size: 16px 22px;
  -webkit-mask-repeat: repeat-y; mask-repeat: repeat-y;
}

/* Section tear: sits at the top of a section; carries the PREVIOUS section's colour. */
.tear { display: block; margin: 0; }
.tear--paper { background: var(--paper); }
.tear--dim { background: var(--paper-dim); }
.tear--indigo { background: var(--indigo); }
.tear--deep { background: var(--indigo-deep); }

/* ---------- ambient E19: carbon fibre + drifting dashed ruling ---------- */
.amb { position: relative; --amb-bg: var(--paper); }
.amb > * { position: relative; z-index: 2; }
.amb::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.141 0 0 0 0 0.157 0 0 0 0 0.294 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
}
.amb::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, transparent 0 55px, rgba(36, 40, 75, .075) 55px 56px);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 22px, transparent 22px 34px);
          mask-image: repeating-linear-gradient(90deg, #000 0 22px, transparent 22px 34px);
}
.amb--dim { --amb-bg: var(--paper-dim); }
html[data-anim] .amb::after { animation: rules-drift 80s linear infinite; }
@keyframes rules-drift {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; }
  to   { -webkit-mask-position: 68px 0; mask-position: 68px 0; }
}

/* ---------- dot leaders ---------- */
.dl { display: flex; align-items: baseline; gap: 12px; }
.dl-lead {
  flex: 1 1 24px; min-width: 24px; align-self: flex-end;
  border-bottom: 2px dotted rgba(36, 40, 75, .35);
  transform: translateY(-5px);
}
.dl-go { display: inline-block; transition: transform var(--t-quick) var(--ease-settle); }
a.dl:hover .dl-go, a.dl:focus-visible .dl-go { transform: translateX(4px); }

/* growing brass underline for text links */
.u-link { text-decoration: none; position: relative; }
.u-link::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-quick) var(--ease-settle);
}
.u-link:hover::after, .u-link:focus-visible::after { transform: scaleX(1); }

/* ---------- A35: the receipt strip ---------- */
.strip {
  position: absolute; top: 0; z-index: 60;
  left: max(20px, calc((100vw - var(--page-max)) / 2 + 20px));
  width: var(--strip-w);
  filter: drop-shadow(0 3px 7px rgba(35, 40, 73, .28));
}
.strip-body {
  background: var(--paper);
  margin-left: 16px;
  padding: var(--s3) var(--s3) var(--s2);
  position: relative;
}
/* punched stub column along the ticket's left edge */
.strip-holes {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: var(--paper);
}
.strip-body::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 5px;
  border-left: 1px solid var(--hairline-soft);
}
.strip-bottom { background: var(--paper); margin-left: 16px; }
.strip-name {
  font-family: var(--display); font-size: 1.32rem; line-height: 1.2;
  margin: 0 0 4px;
}
.strip-name a { text-decoration: none; }
.strip-sub { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--brass); margin: 0 0 var(--s2); }
.strip-nav ul { list-style: none; margin: 0; padding: 0; }
.strip-nav li + li { margin-top: 2px; }
.strip-nav a {
  text-decoration: none; font-size: .92rem; padding: 9px 0;
  color: var(--ink);
}
.strip-nav a[aria-current="page"] .dl-label { color: var(--brass); }
.strip-nav a:hover .dl-label { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass); }
.strip-phone {
  border-top: 1px solid var(--hairline);
  margin-top: var(--s2); padding: 12px 0 2px;
  font-size: .95rem;
}
.strip-phone a { text-decoration: none; }
.strip-phone .smallcaps { display: block; margin-bottom: 2px; }
.menu-btn { display: none; }

/* mobile: slim strip across the top, fold-out ticket */
@media (max-width: 899px) {
  .strip {
    position: sticky; top: 0; left: 0; width: 100%;
    filter: none; border-bottom: 1px solid var(--hairline);
    background: var(--paper);
  }
  .strip-holes, .strip-bottom { display: none; }
  .strip-body { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-left: 0; padding: 10px 20px; }
  .strip-body::before { display: none; }
  .strip-name { font-size: 1.1rem; margin: 0; }
  .strip-sub { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid var(--hairline); color: var(--ink);
    font-family: var(--body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
    padding: 11px 16px; min-height: 44px; cursor: pointer;
  }
  .menu-btn:hover { border-color: var(--brass); }
  .strip-fold {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: var(--s2) 20px var(--s3);
    box-shadow: 0 8px 16px rgba(35, 40, 73, .18);
  }
  .strip.open .strip-fold { display: block; }
  html:not(.js) .strip:focus-within .strip-fold { display: block; } /* no-JS fallback */
  .strip-nav a { display: flex; padding: 12px 0; min-height: 44px; align-items: center; }
  .strip-phone { padding-top: var(--s2); }
}
@media (min-width: 900px) {
  .strip-fold { display: block; }
  .strip-nav a { display: flex; }
}

/* ---------- B15 hero bands ---------- */
.hero-band-indigo {
  background: var(--indigo); color: var(--paper);
  padding: var(--s3) 0;
}
.hero-band-indigo .wrap {
  display: flex; justify-content: space-between; align-items: baseline;
  column-gap: var(--s3); row-gap: 6px; flex-wrap: wrap;
}
.hero-route { font-size: .78rem; letter-spacing: .17em; text-transform: uppercase; margin: 0; }
.hero-route .sep { color: var(--brass-bright); padding-inline: 10px; }
.hero-band-photo { position: relative; }
.hero-band-photo img { width: 100%; height: clamp(300px, 46vh, 480px); object-fit: cover; }
.hero-band-copy { padding: var(--s5) 0 var(--s4); }
.hero-est { max-width: 58ch; }
.hero-est strong { font-weight: 400; color: var(--brass); }
@media (min-width: 900px) {
  .hero-band-indigo .wrap, .hero-band-copy .wrap { padding-left: calc(var(--strip-w) + 72px); }
  .hero-band-copy .wrap { padding-left: clamp(48px, 8vw, 96px); }
}

/* ---------- C9 ruled CTA row ---------- */
.cta-row {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.cta-row > a {
  text-decoration: none; padding: var(--s3) var(--s3) var(--s3) 0;
  display: block; min-height: 44px;
}
.cta-row > a + a { border-left: 1px solid var(--hairline); padding-left: var(--s3); }
.cta-row .smallcaps { display: block; margin-bottom: 3px; }
.cta-act { font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.45rem); position: relative; display: inline-block; }
.cta-act::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-quick) var(--ease-settle);
}
.cta-row > a:hover .cta-act::after, .cta-row > a:focus-visible .cta-act::after { transform: scaleX(1); }
.cta-row .dl-go { margin-left: 8px; color: var(--brass); }
.cta-row > a:hover .dl-go { transform: translateX(4px); }
@media (max-width: 719px) {
  .cta-row { grid-template-columns: 1fr; }
  .cta-row > a { padding: var(--s2) 0; }
  .cta-row > a + a { border-left: 0; border-top: 1px solid var(--hairline); padding-left: 0; }
}

/* ---------- sections ---------- */
.sec { padding: var(--s6) 0; }
.sec > .tear { margin-top: calc(-1 * var(--s6)); margin-bottom: var(--s5); }
.sec-dim { background: var(--paper-dim); }
.sec-indigo { background: var(--indigo); color: var(--paper); }
.sec-head { margin-bottom: var(--s4); max-width: 640px; }

/* the route in three steps: staggered rows, not identical cards */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  display: grid; gap: var(--s3); align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  padding: var(--s4) 0;
}
.step + .step { border-top: 1px solid var(--hairline); }
.step:nth-child(2) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.step:nth-child(2) .step-copy { order: -1; }
.step-num {
  font-family: var(--display); font-size: 1rem; color: var(--brass);
  display: block; margin-bottom: 6px;
}
.step img { width: 100%; height: clamp(200px, 26vw, 320px); object-fit: cover; }
.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; }
@media (max-width: 719px) {
  .step, .step:nth-child(2) { grid-template-columns: 1fr; }
  .step:nth-child(2) .step-copy { order: 0; }
}

/* what rides the truck: manifest list + flanking photos */
.truck { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: start; }
.truck-list { list-style: none; margin: 0; padding: 0; }
.truck-list li { border-bottom: 1px solid var(--hairline-soft); }
.truck-list a { text-decoration: none; padding: 14px 0; font-size: 1.02rem; min-height: 44px; align-items: center; }
.truck-list .dl-label { font-family: var(--display); font-size: 1.15rem; }
.truck-list .dl-what { color: var(--ink-60); font-size: .92rem; }
.truck-fig { margin: 0; }
.truck-fig img { width: 100%; height: auto; }
.truck-fig figcaption { font-size: .8rem; color: var(--ink-60); padding-top: 8px; }
.truck-fig + .truck-fig { margin-top: var(--s3); }
@media (max-width: 839px) {
  .truck { grid-template-columns: 1fr; }
  .truck-side { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .truck-fig + .truck-fig { margin-top: 0; }
}
@media (max-width: 519px) {
  .truck-side { grid-template-columns: 1fr; }
  .truck-list .dl { flex-wrap: wrap; }
  .truck-list .dl-what { flex-basis: 100%; order: 4; margin-top: 2px; }
}

/* ---------- F16 signature: the vertical rail ---------- */
.rail-sec h2 { max-width: 520px; }
.rail { position: relative; margin-top: var(--s5); }
.rail-line-svg {
  position: absolute; top: 0; bottom: 0; left: 18px; width: 4px; height: 100%;
  overflow: visible;
}
.rail-line-svg line { stroke: var(--brass); stroke-width: 2; }
.rail-items { list-style: none; margin: 0; padding: 0 0 0 60px; position: relative; }
.rail-items > li { position: relative; }
.rail-ticket { padding: 0 0 var(--s5); max-width: 560px; }
.rail-card {
  background: var(--paper); position: relative;
  border: 1px solid var(--hairline);
  padding: var(--s3) var(--s3) var(--s3);
  box-shadow: 0 2px 6px rgba(35, 40, 73, .1);
}
/* clip: a brass ring hanging the ticket on the rail */
.rail-ticket::before {
  content: ""; position: absolute; left: -48px; top: 24px;
  width: 12px; height: 12px; border: 2px solid var(--brass);
  border-radius: 50%; background: var(--paper);
  z-index: 2;
}
.rail-ticket::after {
  content: ""; position: absolute; left: -34px; top: 30px; width: 34px; height: 0;
  border-top: 1px solid var(--brass);
}
.rail-year {
  font-family: var(--display); font-size: 1.7rem; line-height: 1;
  display: block; margin-bottom: 8px;
}
.rail-card p { margin-bottom: 8px; max-width: 52ch; }
.rail-src { font-size: .78rem; color: var(--ink-60); display: block; }
.rail-src::before { content: "source: "; color: var(--brass); }
/* unlabeled gap where the record is silent */
.rail-gap { height: 88px; }
.rail-gap::before {
  content: ""; position: absolute; left: -41px; top: 12px; bottom: 12px;
  border-left: 2px dashed rgba(140, 109, 47, .5);
}
.rail-foot { padding: var(--s2) 0 0; font-size: .95rem; }
@media (min-width: 900px) {
  .rail-line-svg { left: 50%; margin-left: -2px; }
  .rail-items { padding: 0; }
  .rail-ticket { width: calc(50% - 60px); }
  .rail-ticket.side-l { margin-right: auto; }
  .rail-ticket.side-r { margin-left: auto; }
  .rail-ticket.side-l::before { left: auto; right: -54px; }
  .rail-ticket.side-l::after { left: auto; right: -40px; }
  .rail-ticket.side-r::before { left: -54px; }
  .rail-ticket.side-r::after { left: -40px; }
  .rail-gap::before { left: 50%; margin-left: 8px; }
}

/* ---------- service page: the supply list ---------- */
.page-hero { position: relative; }
.page-hero img { width: 100%; height: clamp(240px, 36vh, 400px); object-fit: cover; }
.page-hero-copy { padding: var(--s4) 0 0; }
.supply { list-style: none; margin: 0; padding: 0; }
.supply > li {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--s4); padding: var(--s4) 0; align-items: start;
}
.supply > li + li { border-top: 1px solid var(--hairline); }
.supply img { width: 100%; height: clamp(180px, 20vw, 260px); object-fit: cover; }
.supply h3 { margin-bottom: 4px; }
.supply .dl { margin-top: 10px; font-size: .95rem; }
.supply .dl-what { color: var(--ink-60); }
@media (max-width: 719px) { .supply > li { grid-template-columns: 1fr; gap: var(--s2); } }

/* ---------- company page: the record ---------- */
.record { list-style: none; margin: 0; padding: 0; max-width: 640px; }
.record li { padding: 13px 0; border-bottom: 1px solid var(--hairline-soft); font-size: 1.02rem; }
.record .dl-label { color: var(--ink-60); }
.record .dl-val { font-family: var(--display); font-size: 1.1rem; text-align: right; }
.two-col { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s5); align-items: start; }
.two-col img { width: 100%; height: auto; }
@media (max-width: 839px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s6); align-items: start; }
@media (max-width: 839px) { .contact-grid { grid-template-columns: 1fr; } }
.nap { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.nap li { padding: 10px 0; border-bottom: 1px solid var(--hairline-soft); }
.nap .smallcaps { display: block; margin-bottom: 2px; }
.nap a { text-decoration: none; }
.nap a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass); }
.hours-note { font-size: .9rem; color: var(--ink-60); max-width: 44ch; }

.note-form {
  background: var(--paper); border: 1px solid var(--hairline);
  padding: var(--s4); position: relative;
  box-shadow: 0 2px 8px rgba(35, 40, 73, .1);
}
.note-form h2 { font-size: 1.5rem; }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--hairline);
  padding: 12px 14px; border-radius: 0;
}
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass);
}
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.send-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.send-btn {
  font-family: var(--body); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--indigo); color: var(--paper); border: 0; border-radius: 0;
  padding: 15px 28px; min-height: 48px; cursor: pointer;
  transition: transform var(--t-quick) var(--ease-settle), background var(--t-quick);
}
.send-btn:hover { background: var(--indigo-deep); transform: translateY(-1px); }
.send-btn:active { transform: translateY(1px); }
.form-msg { display: none; padding: var(--s2) 0 0; max-width: 46ch; }
.form-msg.show { display: block; }
.form-msg strong { font-weight: 400; color: var(--brass); }

/* ---------- footer ---------- */
footer {
  background: var(--indigo-deep); color: var(--paper);
  padding: var(--s5) 0 calc(var(--s5) + 60px);
  font-size: .92rem;
}
.foot-grid { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.foot-name { font-family: var(--display); font-size: 1.25rem; margin-bottom: 6px; }
footer a { color: var(--paper); text-underline-offset: 3px; }
footer a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-note { margin-top: var(--s3); padding-top: var(--s2); border-top: 1px solid rgba(247, 245, 239, .22); color: rgba(247, 245, 239, .72); font-size: .82rem; max-width: none; }
footer .smallcaps { color: var(--brass-bright); }
@media (min-width: 900px) { footer { padding-bottom: var(--s5); } }

/* ---------- mobile sticky call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--indigo); color: var(--paper);
  border-top: 1px solid rgba(247, 245, 239, .25);
  transform: translateY(0);
  transition: transform 300ms var(--ease-settle);
}
.callbar.hide { transform: translateY(105%); }
.callbar a {
  color: var(--paper); text-decoration: none; text-align: center;
  padding: 14px 10px; min-height: 48px; font-size: .92rem;
}
.callbar a + a { border-left: 1px solid rgba(247, 245, 239, .25); }
.callbar .smallcaps { display: block; font-size: .72rem; }
@media (min-width: 900px) { .callbar { display: none; } }

/* ---------- motion gating (H2) ---------- */
html[data-anim] .rise { opacity: 0; transform: translateY(12px); }
html[data-anim] .hero-band-indigo,
html[data-anim] .hero-band-photo,
html[data-anim] .hero-band-copy .wrap > * { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html[data-anim] .rise,
  html[data-anim] .hero-band-indigo,
  html[data-anim] .hero-band-photo,
  html[data-anim] .hero-band-copy .wrap > * { opacity: 1; transform: none; }
  .amb::after, html[data-anim] .amb::after { animation: none; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
