/* ==========================================================================
   Eric Robb RC — site design system v3
   "Field day" theme: warm cream, sunny amber, sky blue. Friendly and
   inviting, with bold condensed headlines. Tool diagrams and LED demos
   intentionally stay dark, like screens on a workbench.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,600;0,700;0,800;1,700;1,800&family=Inter:wght@400;500;600;700;800&display=swap');

/* The browser's own [hidden] rule is weaker than any class that sets display,
   so `.field { display: flex }` and friends quietly un-hide things the JS
   meant to hide. Make the attribute win. */
[hidden] { display: none !important; }

:root {
  /* surfaces */
  --bg:        #faf6ee;   /* warm cream page background */
  --bg-2:      #f3ecdf;   /* deeper cream section */
  --panel:     #ffffff;   /* cards */
  --panel-2:   #fdf9f1;
  --line:      #e9dfcd;
  --line-2:    #d8cab1;

  /* text */
  --ink:       #33281a;   /* warm dark charcoal-brown */
  --muted:     #6e604d;
  --faint:     #9c8d76;

  /* brand accents */
  --blue:      #1273d4;   /* sky blue */
  --blue-soft: rgba(18, 115, 212, .10);
  --yellow:    #d97706;   /* readable amber (text-safe on cream) */
  --yellow-soft: rgba(217, 119, 6, .12);
  --orange:    #ee7413;   /* sunny CTA orange */
  --red:       #cf3427;
  --green:     #1e8f43;
  --purple:    #7c4fd0;

  /* dark "screen" surfaces for diagrams, demos & phone mockups */
  --screen:    #14202e;
  --screen-2:  #1c2c3e;
  --screen-line: rgba(148, 184, 230, .22);

  /* legacy aliases (older pages/scripts) */
  --navy: #33281a; --navy-2: #4a3b26; --navy-deep: #241c11;
  --blue-dark: #0f62b5; --white: #ffffff;
  --gray: #f3ecdf; --gray-2: #ffffff;
  --accent: #0f62b5; --gray-light: #f3ecdf; --gray-mid: #e9dfcd;
  --gray-dark: #6e604d; --text: #33281a; --navy-light: #4a3b26; --success: #1e8f43;

  --maxw: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 22px rgba(96, 72, 34, .09);
  --shadow-lg: 0 18px 44px rgba(96, 72, 34, .15);
  --font-display: "Barlow Condensed", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
::selection { background: rgba(238, 116, 19, .25); }

/* ---------- LED strip motif (brand divider) ---------- */
.ledstrip {
  height: 3px; border: 0; width: 100%;
  background: linear-gradient(90deg, #f43f2e, #f9a80c, #26b34f, #1273d4, #8b5cf6);
  opacity: .9;
}
.ledstrip--glow { box-shadow: 0 1px 10px rgba(238, 116, 19, .25); }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 76px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 48px 0; }
/* legacy section names */
.section--gray { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--bg-2); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .95rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 10px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.04; letter-spacing: .01em;
  color: var(--ink); font-weight: 800;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2.title { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 14px; }
h3 { letter-spacing: .02em; }
.hl { color: var(--orange); }
.hl-blue { color: var(--blue); }
.lead { font-size: 1.06rem; color: var(--muted); max-width: 680px; }
p strong { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 12px;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(238, 116, 19, .3); }
.btn--primary:hover { transform: translateY(-2px); background: #f8821f; box-shadow: 0 10px 26px rgba(238, 116, 19, .38); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(18, 115, 212, .25); }
.btn--blue:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(18, 115, 212, .35); }
.btn--ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--sm { padding: 9px 16px; font-size: .86rem; border-radius: 9px; }
.btn--block { width: 100%; }
/* legacy names */
.btn--navy { background: var(--blue); color: #fff; }
.btn--navy:hover { transform: translateY(-2px); }
.btn--light { background: var(--orange); color: #fff; }
.btn--light:hover { transform: translateY(-2px); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 249, 242, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__strip { height: 3px; background: linear-gradient(90deg, #f43f2e, #f9a80c, #26b34f, #1273d4, #8b5cf6); }
.hdr__inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.hdr__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.hdr__brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; background: #fff; border: 1px solid var(--line); }
.hdr__brandtext { display: flex; flex-direction: column; line-height: 1.05; }
.hdr__name { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 1.25rem; letter-spacing: .04em; text-transform: uppercase; }
.hdr__tag { font-size: .6rem; letter-spacing: .12em; color: var(--faint); text-transform: uppercase; font-weight: 600; }
.hdr__nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.hdr__link { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; transition: color .15s; white-space: nowrap; }
.hdr__link:hover, .hdr__link.active { color: var(--ink); }
.hdr__link--gear { color: var(--orange); }
.hdr__link--gear:hover { color: #c75d08; }
/* de-emphasized secondary link (YouTube) — present but not competing with the main paths */
.hdr__link--secondary { color: var(--faint); font-size: .86rem; }
.hdr__link--secondary:hover { color: var(--ink); }
.hdr__cta { flex-shrink: 0; }
.hdr__cta .btn { padding: 10px 18px; font-size: .88rem; }
.hdr__burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.hdr__burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 520px) {
  .hdr__tag { display: none; }
  .hdr__name { font-size: 1.1rem; }
}
@media (max-width: 1130px) {
  .hdr__nav { display: none; }
  .hdr__cta { display: none; }
  .hdr__burger { display: block; }
  .hdr__nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 69px; left: 0; right: 0;
    background: #fffdf8; border-bottom: 1px solid var(--line); padding: 8px 20px 18px;
    box-shadow: var(--shadow-lg);
  }
  .hdr__nav.open .hdr__link { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .hdr__nav.open .hdr__cta { display: block; margin-top: 14px; }
  .hdr__nav.open .hdr__cta .btn { width: 100%; }
}

/* ---------- cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
a.card { text-decoration: none; color: inherit; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
a.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card--pad { padding: 26px; }
.card__thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

/* tool cards */
.toolcard { display: flex; flex-direction: column; gap: 10px; padding: 26px; position: relative; overflow: hidden; }
.toolcard__icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue); flex-shrink: 0;
}
.toolcard h3 { font-size: 1.35rem; margin: 0; }
.toolcard p { font-size: .92rem; color: var(--muted); line-height: 1.6; margin: 0; }
.toolcard__go { font-size: .88rem; color: var(--orange); font-weight: 700; margin-top: auto; }
.toolcard__badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--yellow);
  background: var(--yellow-soft); border: 1px solid rgba(217, 119, 6, .3);
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2);
  padding: 7px 14px; border-radius: 999px;
  box-shadow: var(--shadow);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chip {
  display: inline-block; font-size: .76rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-dark);
  max-width: 100%;
}
.chip--yellow { background: var(--yellow-soft); color: var(--yellow); }
.chip--green { background: rgba(30, 143, 67, .12); color: var(--green); }
.chip--red { background: rgba(207, 52, 39, .1); color: var(--red); }

/* ---------- callouts ---------- */
.note {
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  font-size: .94rem; color: var(--muted);
}
.note strong { color: var(--ink); }
.note--warn { border-left-color: var(--yellow); }
.note--danger { border-left-color: var(--red); }
.note--good { border-left-color: var(--green); }

/* ---------- forms / tool inputs ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field input[type="number"], .field input[type="text"], .field select, .field textarea {
  width: 100%; min-width: 0;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 14px; font-size: 1rem; font-family: var(--font-body);
  outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e604d' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18, 115, 212, .18);
}
.field .hint { font-size: .78rem; color: var(--faint); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* segmented choice buttons */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  background: #fff; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 16px; font-size: .9rem; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; transition: all .15s;
}
.seg button:hover { border-color: var(--blue); color: var(--ink); }
.seg button.on {
  background: var(--blue-soft); border-color: var(--blue);
  color: var(--blue-dark); box-shadow: 0 0 0 3px rgba(18, 115, 212, .12);
}

/* stat tiles */
.stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px;
}
.stat__label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.stat__value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat__value small { font-size: 1.05rem; color: var(--muted); font-weight: 600; }
.stat__sub { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.stat--good { border-color: rgba(30, 143, 67, .45); }
.stat--warn { border-color: rgba(217, 119, 6, .45); }
.stat--bad { border-color: rgba(207, 52, 39, .5); }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th {
  text-align: left; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); font-weight: 700; padding: 10px 12px;
  border-bottom: 2px solid var(--line-2);
}
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: top; }
.tbl td:first-child, .tbl strong { color: var(--ink); }
.tbl-scroll { overflow-x: auto; }

/* ---------- video embeds ---------- */
.video__frame {
  position: relative; padding-top: 56.25%;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-2);
  background: #000;
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- media split ---------- */
.media { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.media > * { min-width: 0; }
.media__img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
@media (max-width: 860px) { .media { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- checklists ---------- */
.check { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.check li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--muted); line-height: 1.55; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }
.check--x li::before { content: "✗"; color: var(--red); }

/* ---------- prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.8rem; margin: 44px 0 14px; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose p { color: var(--muted); margin-bottom: 16px; }
.prose ul, .prose ol { color: var(--muted); margin: 0 0 16px 22px; }
.prose li { margin-bottom: 7px; }
.prose a:not(.btn) { color: var(--blue-dark); font-weight: 600; }
.prose .btn--primary, .btn--primary:visited { color: #fff; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); margin: 20px 0; }
.prose code { background: #f3e7cf; padding: 2px 7px; border-radius: 6px; font-size: .88em; color: #9a5b00; }

/* ---------- page hero ---------- */
.pagehero { padding: 42px 0 34px; background:
  radial-gradient(ellipse 900px 420px at 75% -10%, rgba(249, 168, 12, .12), transparent),
  radial-gradient(ellipse 700px 380px at 10% 110%, rgba(18, 115, 212, .07), transparent);
  border-bottom: 1px solid var(--line);
}
.pagehero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.pagehero .lead { font-size: 1.1rem; }

/* ---------- footer ---------- */
.footer { background: #2b2115; border-top: 1px solid var(--line); padding: 0 0 30px; color: #cbbda6; }
.footer .ledstrip { margin-bottom: 50px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__brand img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 14px; border-radius: 50%; background: #fff; }
.footer__brand p { font-size: .9rem; line-height: 1.6; color: #a5977f; max-width: 300px; }
.footer h4 {
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .18em;
  color: #f7edda; margin-bottom: 14px; text-transform: uppercase;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer a { color: #cbbda6; text-decoration: none; font-size: .9rem; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(247, 237, 218, .15); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .8rem; color: #a5977f;
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.disclosure { font-size: .8rem; color: var(--faint); line-height: 1.6; }

/* ---------- external authoritative links + "Official resources" box ----------
   Deliberately styled differently from affiliate links (which are orange/yellow
   with rel="sponsored"). These are neutral/blue with an ↗ and rel="noopener noreferrer". */
.exlink { color: var(--blue-dark); font-weight: 600; text-decoration: none; }
.exlink:hover { text-decoration: underline; color: var(--orange); }
.exlink::after { content: " ↗"; font-size: .8em; color: var(--faint); }
.offres {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm); padding: 20px 22px; margin: 22px 0;
}
.offres__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.offres__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; color: var(--ink); }
.offres__rev { font-size: .72rem; color: var(--faint); font-weight: 600; }
.offres ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.offres li { font-size: .92rem; line-height: 1.4; }
.offres__desc { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.gov-badge {
  display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--green); background: rgba(30,143,67,.1); border: 1px solid rgba(30,143,67,.3);
  padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.locnote { font-size: .86rem; color: var(--muted); font-style: italic; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.reviewed { font-size: .78rem; color: var(--faint); font-weight: 600; letter-spacing: .02em; }

/* ==========================================================================
   Motion layer — micro-interactions + scroll-reveal polish
   Hover/press feedback is universal; continuous/decorative motion is gated
   behind prefers-reduced-motion, and a global reduce rule neutralizes it all
   for users who ask. Transform/opacity only, so it stays smooth.
   ========================================================================== */

/* ---- buttons: press feedback, accessible focus ring, sheen on filled ---- */
.btn:active { transform: translateY(0) scale(.97); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(18, 115, 212, .4); }
.btn--primary, .btn--blue { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after, .btn--blue::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .28) 50%, transparent 62%);
  transform: translateX(-135%);
  transition: transform .6s ease;
}
.btn--primary:hover::after, .btn--blue:hover::after { transform: translateX(135%); }

/* ---- nav links: sliding underline ---- */
.hdr__link { position: relative; }
.hdr__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
  background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.hdr__link:hover::after, .hdr__link.active::after { transform: scaleX(1); }
.hdr__nav.open .hdr__link::after { display: none; }
.hdr__brand img { transition: transform .25s cubic-bezier(.2, .7, .3, 1); }
.hdr__brand:hover img { transform: rotate(-6deg) scale(1.05); }

/* ---- cards: image zoom + CTA/icon motion (lift is defined with the cards) ---- */
.card__thumb { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
a.card:hover .card__thumb { transform: scale(1.06); }
.collage figure img, .projcard img { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.collage figure:hover img, .projcard:hover img { transform: scale(1.06); }
.toolcard__go { display: inline-flex; transition: transform .2s ease; }
a.card:hover .toolcard__go { transform: translateX(5px); }
.toolcard__icon { transition: transform .25s cubic-bezier(.2, .7, .3, 1); }
a.card:hover .toolcard__icon { transform: scale(1.1) rotate(-4deg); }
.chip { transition: transform .2s ease; }
a.card:hover .chip { transform: translateY(-1px); }

/* ---- stat tiles: gentle lift ---- */
.stat { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }

/* ---- media images: subtle zoom on hover (kept un-clipped to preserve shadow) ---- */
.media__img img { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.media__img:hover img { transform: scale(1.03); }

@media (prefers-reduced-motion: no-preference) {
  /* the "welcome"/status dot gently pulses to read as live */
  .badge .dot { animation: dotPulse 2.4s ease-in-out infinite; }
  @keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(30, 143, 67, .5); }
    70%, 100% { box-shadow: 0 0 0 6px rgba(30, 143, 67, 0); }
  }
}

/* ---- global reduced-motion guard: neutralize all motion on request ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- tools workflow chain (homepage + tools hub) ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: stretch; }
.flowstep {
  display: flex; flex-direction: column; gap: 3px; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; min-width: 150px; flex: 1 1 150px; max-width: 190px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.flowstep:hover { transform: translateY(-3px); border-color: var(--orange); box-shadow: var(--shadow); }
.flowstep b { font-family: var(--font-display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.flowstep span { font-size: .95rem; font-weight: 700; color: var(--ink); }
.flowstep small { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .flowstep { max-width: none; } }

/* stage tag on tool cards */
.stagetag { font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* "path" cards (homepage three-paths + gear featured guides) */
.path { display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; position: relative; height: 100%; }
.path__num { font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; }
.path h3 { font-size: 1.5rem; margin: 0; }
.path p { font-size: .93rem; color: var(--muted); line-height: 1.6; margin: 0; }
.path .toolcard__go { margin-top: auto; padding-top: 8px; }

/* section heading block (hubs) */
.sechead { margin: 8px 0 4px; }

/* "next in the workflow" hand-off band (tool pages) */
.nextstep { border-left: 4px solid var(--orange); }
.nextstep .eyebrow { margin-bottom: 6px; }

/* related / "keep building" block (project + guide pages) */
.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 820px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .related { grid-template-columns: 1fr; } }
.related h4 { font-family: var(--font-display); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.related a { font-size: .9rem; color: var(--blue-dark); font-weight: 600; text-decoration: none; }
.related a:hover { color: var(--orange); }

/* print */
@media print {
  body { background: #fff; color: #111; }
  .hdr, .footer, .no-print { display: none !important; }
  .card, .stat { border: 1px solid #ccc; box-shadow: none; background: #fff; }
  .stat__value, h1, h2, h3, .tbl td:first-child { color: #111 !important; }
}

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1); }
a.card.reveal.in { transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1), border-color .18s ease, box-shadow .18s ease; }

@media (prefers-reduced-motion: no-preference) {
  /* gentle entrance for page heroes */
  .pagehero .wrap, .homehero__grid { animation: heroRise .6s cubic-bezier(.2,.7,.3,1) both; }
  @keyframes heroRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  /* slow shimmer on the brand LED strip */
  .hdr__strip, .footer .ledstrip {
    background-size: 200% 100%;
    animation: ledFlow 14s linear infinite;
  }
  @keyframes ledFlow { from { background-position: 0% 0; } to { background-position: 200% 0; } }
}

/* ── email signup form (reusable: any form[data-signup]) ────────────── */
.signup { max-width: 460px; }
.signup__label { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.signup__row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup__input {
  flex: 1; min-width: 0; font: inherit; font-size: 1rem;
  padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--ink);
}
.signup__input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,115,212,.18); }
.signup__btn { flex-shrink: 0; }
/* honeypot — hidden from people, catchable by bots */
.signup__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup__msg { font-size: .88rem; line-height: 1.5; margin: 10px 0 0; min-height: 1.2em; }
.signup__msg.is-ok { color: var(--green); }
.signup__msg.is-err { color: var(--red); }
.signup__fine { font-size: .78rem; color: var(--faint); margin: 8px 0 0; }
