/* Triad Import Specialists · direction 4c "Weekend Edition" · dark, earthy
   Mobile first. No inline styles anywhere in the HTML (CSP). */

:root {
  --bg: #171A16;            /* moss charcoal: page ground */
  --raised: #20241F;        /* fern shade: contact + call bands */
  --line: #343A33;          /* hairline row dividers */
  --line-strong: #464E45;   /* frames around map / archive photo */
  --rule: #66705F;          /* double rules, dotted leaders, closed dot (decorative only) */
  --text: #ECEAE0;          /* cotton */
  --text-2: #D1D0C3;        /* secondary copy */
  --muted: #A9AE9F;         /* lichen: captions, meta */
  --accent: #C9AFC0;        /* heather */
  --accent-hover: #D9C5D2;
  --accent-press: #B79BAD;
  --on-accent: #171A16;

  --serif: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 5vw, 56px);
  --space-section: clamp(64px, 8vw, 96px);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 30;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 16px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header (sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 3px double var(--rule);
}
.site-header__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 10px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "brand call" "nav nav";
  align-items: center;
  gap: 4px 16px;
}
.brand {
  grid-area: brand;
  font-family: var(--serif); font-weight: 700;
  font-size: 20px; line-height: 1.1;
  color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 16px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-2); text-decoration: none;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 8px;
}
.call-pill {
  grid-area: call;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--accent);
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 15px; white-space: nowrap;
}
.call-pill:hover { background: var(--accent); color: var(--on-accent); }
.call-pill:active { background: var(--accent-press); border-color: var(--accent-press); color: var(--on-accent); }

/* Desktop header from 1240px: name on the left, nav in the middle, call pill on the right.
   (Five nav links do not fit the handoff's centered-name layout.) */
@media (min-width: 1240px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav call";
    gap: 0 32px;
    padding: 18px var(--gutter);
  }
  .brand { font-size: 30px; line-height: 1; white-space: nowrap; }
  .nav { justify-content: center; flex-wrap: nowrap; gap: 0 24px; font-size: 16px; white-space: nowrap; }
  .call-pill { justify-self: end; font-size: 17px; padding: 11px 18px; }
}

/* ---------- Shared type ---------- */
.kicker {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 2vw, 26px); line-height: 1;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}
.h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(34px, 4vw, 46px); line-height: 1.05;
}
.more { font-family: var(--serif); font-style: italic; font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--sans); font-weight: 700; font-size: 19px;
  text-decoration: none; border: 0;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:active { background: var(--accent-press); color: var(--on-accent); }

/* Open / closed status (the one gentle motion) */
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 16px; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--rule); }
.status.is-open .status__dot { background: var(--accent); animation: porch 2.6s ease-in-out infinite; }
.status__text { font-weight: 600; color: var(--text); }
.status__where { color: var(--muted); }
@keyframes porch {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 175, 192, .55); }
  50% { box-shadow: 0 0 0 7px rgba(201, 175, 192, 0); }
}

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: var(--space-section) var(--gutter) 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px;
  border-top: 3px double var(--rule); padding-top: 12px;
}
.split { display: grid; gap: 20px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 320px minmax(0, 1fr); gap: 56px; }
}

/* ---------- Home: cover ---------- */
.cover { max-width: var(--max); margin: 0 auto; display: grid; }
.cover__media { min-height: 0; }
.cover__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cover__body { padding: 36px var(--gutter) 8px; }
.cover h1 {
  margin-top: 14px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(42px, 7vw, 80px); line-height: 1; text-wrap: balance;
}
.cover__sub { margin-top: 16px; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; color: var(--text-2); }
.cover__phone {
  display: inline-block; margin-top: 28px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(40px, 6.2vw, 76px); line-height: 1;
  color: var(--accent); text-decoration: none; white-space: nowrap;
}
.cover__phone:hover { color: var(--accent-hover); }
.cover__actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
@media (min-width: 960px) {
  .cover { grid-template-columns: 1fr 1fr; min-height: 660px; }
  .cover__media img { height: 100%; aspect-ratio: auto; }
  .cover__body { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- Home: In this edition ---------- */
.edition { list-style: none; padding: 0; }
.edition a {
  display: block; padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--text); text-decoration: none;
}
.edition li:last-child a { border-bottom: 1px solid var(--line); }
.edition__row { display: flex; align-items: baseline; gap: 12px; }
.edition__title { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.edition__leader { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--rule); }
.edition__go { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--accent); white-space: nowrap; }
.edition__desc { display: block; margin-top: 6px; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.edition__desc strong { color: var(--text); font-weight: 700; }
.edition a:hover .edition__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.edition a:hover .edition__go { color: var(--accent-hover); }

/* ---------- Home: letters ---------- */
.letters { text-align: center; }
.letters__lead {
  margin: 18px auto 0; max-width: 900px;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35;
}
.letters__second {
  margin: 24px auto 0; max-width: 720px;
  font-family: var(--serif); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.45;
  color: var(--text-2);
}
.letters__src { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* ---------- Team cards ---------- */
.team { list-style: none; padding: 0; margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
@media (min-width: 960px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.member img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--raised); }
.member figcaption { padding-top: 12px; margin-top: 10px; border-top: 3px double var(--rule); }
.member__name { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.member__role { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
  max-width: var(--max); margin: var(--space-section) auto 0;
  background: var(--raised);
  padding: 40px var(--gutter);
  display: grid; gap: 32px;
}
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px; } }
.contact__phone {
  display: inline-block; margin-top: 14px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(36px, 4vw, 44px); line-height: 1.1;
  color: var(--accent); text-decoration: none;
}
.contact__lines { margin-top: 12px; font-size: 18px; line-height: 1.6; }
.contact__lines a { overflow-wrap: anywhere; }

.hours { margin-top: 20px; font-size: 18px; }
.hours__row { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; }
.hours__row dt { display: flex; align-items: baseline; gap: 10px; flex: 1; }
.hours__row dt::after { content: ""; flex: 1; min-width: 16px; border-bottom: 1px dotted var(--rule); }
.hours__row--closed { color: var(--muted); }
.hours__row.is-today dd { color: var(--accent); font-weight: 700; }

.map {
  display: block; width: 100%; height: 100%; min-height: 300px;
  border: 1px solid var(--line-strong);
  filter: invert(.9) hue-rotate(180deg) saturate(.3) brightness(.95);
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max); margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  border-top: 3px double var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  font-size: 16px; line-height: 1.5; color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer__name { font-family: var(--serif); font-weight: 700; color: var(--text); }

/* ---------- Inner pages ---------- */
.page-head { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 0; }
.page-head h1 {
  margin-top: 12px;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(48px, 7.5vw, 88px); line-height: 1;
}
.page-head__lead {
  margin-top: 18px; max-width: 820px;
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35;
  color: var(--text-2);
}
.wide-photo { max-width: var(--max); margin: 48px auto 0; padding: 0 var(--gutter); }
.wide-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 960px) { .wide-photo img { aspect-ratio: 21 / 10; } }
.caption { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--muted); }

.rows { list-style: none; padding: 0; border-top: 3px double var(--rule); }
.rows li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows--names li { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; }
.rows--names small { font-family: var(--sans); font-weight: 400; font-size: 17px; color: var(--muted); }
.rows--points li { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }

.lead-line {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.25;
  margin-bottom: 24px;
}

/* About: the 1920s photograph */
.story { display: grid; gap: 32px; margin-top: 28px; }
@media (min-width: 960px) { .story { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; } }
.archive img { width: 100%; border: 1px solid var(--line-strong); }
.story__quote { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; }
.facts { margin-top: 28px; font-size: 18px; }
.facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; }

.mission {
  max-width: 820px; margin-top: 28px;
  font-family: var(--serif); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.6;
}
.mission::first-letter {
  float: left; font-weight: 700; font-size: 4.2em; line-height: .8;
  padding: 6px 10px 0 0; color: var(--accent);
}

/* Closing call band on inner pages */
.callband {
  max-width: var(--max); margin: var(--space-section) auto 0;
  background: var(--raised);
  padding: 40px var(--gutter);
  display: grid; gap: 16px;
}
@media (min-width: 960px) { .callband { padding: 56px; grid-template-columns: 1fr auto; align-items: center; gap: 32px; } }
.callband__text { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; }
.callband__text a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.callband__text a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Compare prices: a ruled table on wide screens, one block per job on phones */
.compare { margin-top: 28px; }
.compare__table { width: 100%; border-collapse: collapse; font-size: 18px; }
.compare__table caption { caption-side: bottom; text-align: left; padding-top: 12px; }
.compare__table th, .compare__table td { padding: 16px 12px; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line); }
.compare__table thead th { font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 3px double var(--rule); }
.compare__table tbody th { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.compare__table tbody th small { font-family: var(--sans); font-weight: 400; font-size: 15px; color: var(--muted); }
.compare__table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare__ours { color: var(--accent); font-weight: 700; }
.compare__save { font-weight: 700; }
@media (max-width: 719px) {
  .compare__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table th, .compare__table td { display: block; }
  .compare__table tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .compare__table tbody tr:first-child { border-top: 3px double var(--rule); }
  .compare__table th, .compare__table td { padding: 4px 0; border: 0; }
  .compare__table td { display: flex; justify-content: space-between; gap: 16px; }
  .compare__table td::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
  .compare__table caption { display: block; padding: 0 0 16px; }
}

/* Services list with icons (static layout; the motion is below) */
.rows--services li { display: flex; align-items: center; gap: 18px; }
.svc__icon { flex: none; width: 44px; height: 44px; color: var(--accent); overflow: visible; }
@media (min-width: 960px) { .svc__icon { width: 52px; height: 52px; } }

/* ---------- Motion ----------
   Small, meaningful moves. Everything here is off with prefers-reduced-motion.
   Scroll reveals only hide things once js/site.js has added .motion to <html>. */
@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(.2, .8, .2, 1); }

  /* Home cover: the text rises in once on load */
  .cover__body > * { animation: rise .8s var(--ease) both; }
  .cover__body > :nth-child(2) { animation-delay: .08s; }
  .cover__body > :nth-child(3) { animation-delay: .16s; }
  .cover__body > :nth-child(4) { animation-delay: .26s; }
  .cover__body > :nth-child(5) { animation-delay: .36s; }
  .cover__media img { animation: settle 1.6s var(--ease) both; }

  /* Rows and cards ease in one after another as they scroll into view */
  .motion [data-anim] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .motion [data-anim].is-in { opacity: 1; transform: none; }

  /* Buttons and links */
  .btn, .call-pill { transition: background-color .2s ease, color .2s ease, transform .15s ease; }
  .btn:active, .call-pill:active { transform: translateY(1px); }
  .cover__phone { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px; transition: background-size .35s var(--ease), color .2s ease; }
  .cover__phone:hover, .cover__phone:focus-visible { background-size: 100% 2px; }

  /* Home "In this edition": the dotted leader fills with heather and the arrow nudges */
  .edition__leader { position: relative; }
  .edition__leader::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; border-bottom: 1px dotted var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
  .edition a:hover .edition__leader::after, .edition a:focus-visible .edition__leader::after { transform: scaleX(1); }
  .edition__go { display: inline-block; transition: transform .3s var(--ease), color .2s ease; }
  .edition a:hover .edition__go, .edition a:focus-visible .edition__go { transform: translateX(5px); }

  /* Team: photos lean in, the double rule turns heather */
  .member { overflow: hidden; }
  .member img { transition: transform .6s var(--ease); }
  .member figcaption { transition: border-color .3s ease; }
  .member:hover img { transform: scale(1.04); }
  .member:hover figcaption { border-top-color: var(--accent); }

  /* About: the 1920s photo develops like an old print */
  .motion .archive img { filter: sepia(1) contrast(.55) brightness(1.35) blur(2px); transition: filter 2.2s ease-out; }
  .motion .archive.is-in img { filter: none; }

  /* Services: each icon acts out the job, on scroll-in and again on hover (.play) */
  .svc__icon * { transform-box: fill-box; }
  .svc.play .i-drop { animation: drip 1.1s var(--ease); transform-origin: 50% 100%; }
  .svc.play .i-shine { animation: fade-in 1.1s ease .5s both; }
  .svc.play .i-draw, .svc.play .svc__icon--inspection .i-draw { stroke-dasharray: 24; animation: draw .7s var(--ease) .15s both; }
  .svc.play .i-needle { transform-origin: 50% 100%; animation: needle 1.4s var(--ease); }
  .svc.play .i-spring { transform-origin: 50% 100%; animation: spring 1.1s var(--ease); }
  .svc.play .i-plate { animation: plate 1.1s var(--ease); }
  .svc.play .i-rotor { transform-origin: 50% 50%; animation: spin-down 1.3s cubic-bezier(.1, .7, .3, 1); }
  .svc.play .i-caliper { animation: clamp 1.3s ease; }
  .svc.play .i-pulley { transform-origin: 50% 50%; animation: spin-down 1.6s cubic-bezier(.2, .6, .3, 1); }
  .svc.play .i-belt { stroke-dasharray: 4 3; animation: belt 1.6s cubic-bezier(.2, .6, .3, 1); }
  .svc.play .i-gear { transform-origin: 50% 50%; animation: gear 1.4s var(--ease); }
  .rows--services li { transition: color .2s ease; }
  .rows--services li:hover { color: var(--accent-hover); }

  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { opacity: .4; transform: scale(1.04); } to { opacity: 1; transform: none; } }
  @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes drip { 0% { transform: translateY(-7px) scaleY(1.05); opacity: 0; } 55% { transform: translateY(1px) scaleY(.92); opacity: 1; } 75% { transform: translateY(-1px) scaleY(1.03); } 100% { transform: none; } }
  @keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
  @keyframes needle { 0% { transform: rotate(-70deg); } 55% { transform: rotate(58deg); } 75% { transform: rotate(32deg); } 100% { transform: rotate(40deg); } }
  @keyframes spring { 0% { transform: none; } 30% { transform: scaleY(.72); } 55% { transform: scaleY(1.08); } 75% { transform: scaleY(.96); } 100% { transform: none; } }
  @keyframes plate { 0% { transform: none; } 30% { transform: translateY(8px); } 55% { transform: translateY(-2.3px); } 75% { transform: translateY(1.2px); } 100% { transform: none; } }
  @keyframes spin-down { from { transform: rotate(-420deg); } to { transform: none; } }
  @keyframes clamp { 0%, 70% { transform: none; } 82% { transform: translateX(-2.5px); } 100% { transform: translateX(-1px); } }
  @keyframes belt { from { stroke-dashoffset: 42; } to { stroke-dashoffset: 0; } }
  @keyframes gear { from { transform: rotate(-135deg); } to { transform: none; } }
}
.svc__icon--tune .i-needle { transform: rotate(40deg); transform-origin: 50% 100%; transform-box: fill-box; }
.svc__icon--brakes .i-caliper { transform: translateX(-1px); transform-box: fill-box; }
.svc__icon--belt .i-belt { stroke-dasharray: 4 3; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* About: "What makes us unique" sits under its heading, no empty left column */
.unique { max-width: 920px; }
